/* O Rei dos Queijos — Loja (estilo e-commerce moderno) */

:root {
    --color-accent: #E67E22;
    --color-accent-dark: #D35400;
    --color-accent-light: #FEF3E7;
    --color-gold: #D4A853;
    --color-gold-dark: #B8892E;
    --color-ink: #1A1A1A;
    --color-muted: #6B7280;
    --color-border: #E5E7EB;
    --color-surface: #F9FAFB;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06);
    --header-utility-height: 2.75rem;
    --header-height: 6.25rem;
}

html[data-theme='dark'] {
    --color-ink: #F3F4F6;
    --color-muted: #9CA3AF;
    --color-border: #374151;
    --color-surface: #111827;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #fff;
    color: var(--color-ink);
    transition: background-color 0.2s ease, color 0.2s ease;
}

html[data-theme='dark'] body {
    background: #0f172a;
    color: var(--color-ink);
}

/* ── Barra superior do header ── */
.header-utility {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}

html[data-theme='dark'] .header-utility {
    background: #111827;
}

.header-utility-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    min-height: var(--header-utility-height);
    padding: 0.375rem 1rem;
}

.header-utility-group {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.header-utility-tools {
    justify-content: center;
}

.header-utility-contact {
    justify-content: flex-end;
    gap: 0.75rem;
    text-align: right;
}

.lang-flag {
    display: inline-flex;
    width: 1.75rem;
    height: 1.25rem;
    border-radius: 0.2rem;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.55;
    transition: opacity 0.15s, border-color 0.15s, transform 0.15s;
}

.lang-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lang-flag:hover,
.lang-flag.active {
    opacity: 1;
    border-color: var(--color-accent);
}

.lang-flag.active {
    transform: scale(1.05);
}

.dark-mode-control {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dark-mode-icon {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--color-muted);
    display: inline-flex;
}

.dark-mode-icon svg {
    width: 100%;
    height: 100%;
}

.dark-mode-toggle {
    position: relative;
    width: 2.75rem;
    height: 1.375rem;
    border: none;
    border-radius: 9999px;
    background: #D1D5DB;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s;
}

html[data-theme='dark'] .dark-mode-toggle,
.dark-mode-toggle.is-active {
    background: #4B5563;
}

.dark-mode-toggle-thumb {
    position: absolute;
    top: 0.1875rem;
    left: 0.1875rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.dark-mode-toggle.is-active .dark-mode-toggle-thumb {
    transform: translateX(1.375rem);
}

.dark-mode-info {
    position: relative;
}

.dark-mode-info-btn {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 50%;
    border: none;
    background: #E67E22;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 800;
    font-style: italic;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.dark-mode-tooltip {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 80;
    width: min(18rem, 70vw);
    padding: 0.75rem 0.875rem;
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--color-ink);
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    font-size: 0.8125rem;
    line-height: 1.45;
    display: none;
}

html[data-theme='dark'] .dark-mode-tooltip {
    background: #1f2937;
    border-color: #374151;
}

.dark-mode-tooltip.is-visible {
    display: block;
}

.header-contact-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    color: var(--color-accent);
}

.header-contact-icon svg {
    width: 100%;
    height: 100%;
}

.header-contact-line,
.header-contact-email {
    margin: 0;
    line-height: 1.35;
    font-size: 0.8125rem;
}

.header-contact-line strong {
    font-weight: 700;
    margin-right: 0.35rem;
}

.header-contact-line a,
.header-contact-email a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

.header-contact-email a {
    color: var(--color-muted);
    font-weight: 500;
}

.header-contact-line a:hover,
.header-contact-email a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .header-utility-inner {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            'lang tools'
            'contact contact';
    }

    .header-utility-lang { grid-area: lang; }
    .header-utility-tools { grid-area: tools; justify-content: flex-end; }
    .header-utility-contact {
        grid-area: contact;
        justify-content: center;
        border-top: 1px solid var(--color-border);
        padding-top: 0.5rem;
        margin-top: 0.125rem;
    }
}

@media (max-width: 480px) {
    .header-contact-line,
    .header-contact-email {
        font-size: 0.75rem;
    }

    .header-contact-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
}

/* ── Header ── */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

html[data-theme='dark'] .site-header {
    background: #111827;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: var(--header-height);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    color: var(--color-ink);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.header-home-btn:hover,
.header-home-btn.is-active {
    background: var(--color-surface);
    color: var(--color-accent);
}

@media (min-width: 768px) {
    .header-home-btn {
        width: 2.75rem;
        height: 2.75rem;
    }

    .header-home-btn svg {
        width: 1.375rem;
        height: 1.375rem;
    }
}

.header-logo img {
    height: 3.5rem;
    width: auto;
    max-width: min(280px, 48vw);
    display: block;
}

@media (min-width: 768px) {
    .header-logo img {
        height: 4.25rem;
        max-width: 340px;
    }
}

@media (min-width: 1024px) {
    :root {
        --header-height: 7.25rem;
    }

    .header-logo img {
        height: 4.75rem;
        max-width: 400px;
    }
}

.header-nav-links {
    display: none;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .header-nav-links { display: flex; }
}

.header-nav-links a {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-ink);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}

.header-nav-links a:hover,
.header-nav-links a.active {
    color: var(--color-accent);
}

.header-search {
    flex: 1;
    max-width: 560px;
    margin: 0 auto;
    display: none;
    position: relative;
}

@media (min-width: 768px) {
    .header-search { display: block; }
}

.mobile-nav-search {
    position: relative;
    margin-bottom: 0.75rem;
}

.mobile-nav-search form {
    display: flex;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.mobile-nav-search input {
    flex: 1;
    border: none;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    outline: none;
}

.mobile-nav-search button {
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 0 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 60;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.search-dropdown[hidden] {
    display: none !important;
}

.search-dropdown-message {
    padding: 1rem 1.125rem;
    font-size: 0.875rem;
    color: var(--color-muted);
    text-align: center;
}

.search-dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0.375rem 0;
    max-height: 22rem;
    overflow-y: auto;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}

.search-dropdown-item:hover {
    background: var(--color-surface);
}

.search-dropdown-thumb {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-dropdown-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-dropdown-thumb-placeholder {
    font-size: 1.25rem;
    opacity: 0.5;
}

.search-dropdown-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-dropdown-category {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-muted);
}

.search-dropdown-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-dropdown-price {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-accent-dark);
    margin-top: 0.125rem;
}

.search-dropdown-footer {
    display: block;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-ink);
    text-decoration: none;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
    transition: background 0.15s;
}

.search-dropdown-footer:hover {
    background: #fff;
    color: var(--color-accent);
}

.header-search form {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 9999px;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.header-search form:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.12);
}

.header-search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.625rem 1rem 0.625rem 1.25rem;
    font-size: 0.875rem;
    outline: none;
    color: var(--color-ink);
}

.header-search input::placeholder {
    color: #9CA3AF;
}

.header-search button {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    color: var(--color-muted);
    cursor: pointer;
    transition: color 0.15s;
}

.header-search button:hover {
    color: var(--color-accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    color: var(--color-ink);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    position: relative;
}

.header-icon-btn:hover {
    background: var(--color-surface);
    color: var(--color-accent);
}

.header-cart-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius-md);
    color: var(--color-ink);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.header-cart-link:hover {
    background: var(--color-surface);
    color: var(--color-accent);
}

.header-cart-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.header-cart-total {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-accent);
    white-space: nowrap;
    line-height: 1;
}

@media (max-width: 479px) {
    .header-cart-total {
        display: none;
    }
}

.header-cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 1.125rem;
    height: 1.125rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.header-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--color-ink);
}

@media (min-width: 1024px) {
    .header-menu-btn { display: none; }
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--color-border);
    background: #fff;
    padding: 0.75rem 1rem 1rem;
}

.mobile-nav.open { display: block; }

.mobile-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mobile-nav-links a {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-ink);
    text-decoration: none;
    border-radius: var(--radius-md);
    background: var(--color-surface);
}

.mobile-nav-links a.active {
    background: var(--color-accent-light);
    color: var(--color-accent-dark);
    font-weight: 600;
}

/* ── Hero ── */
.hero-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 35%, #FDBA74 70%, #FB923C 100%);
}

.hero-slides {
    position: relative;
    height: 280px;
}

@media (min-width: 768px) {
    .hero-slides { height: 360px; }
}

@media (min-width: 1024px) {
    .hero-slides { height: 400px; }
}

.hero-slide {
    position: absolute;
    inset: 0;
    transition: opacity 1s ease;
}

.hero-slide-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
}

.hero-slide h1 {
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    font-weight: 800;
    color: var(--color-ink);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.hero-slide p {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    color: #44403C;
    margin-top: 0.75rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-slide .hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    background: var(--color-ink);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.2s, transform 0.2s;
}

.hero-slide .hero-cta:hover {
    background: #333;
    transform: translateY(-1px);
    color: #fff;
}

.hero-slide img.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-youtube {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;
    min-width: 100%;
    min-height: 100%;
    height: 56.25vw;
    transform: translate(-50%, -50%);
    border: 0;
}

.hero-slide .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(254,243,199,0.92) 0%, rgba(253,186,116,0.85) 50%, rgba(251,146,60,0.8) 100%);
}

.hero-slide .hero-overlay--video {
    background: linear-gradient(135deg, rgba(254,243,199,0.82) 0%, rgba(253,186,116,0.72) 50%, rgba(251,146,60,0.68) 100%);
}

.hero-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 0.375rem;
}

.hero-dot {
    height: 0.375rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(0,0,0,0.2);
    width: 1.5rem;
}

.hero-dot.active {
    background: var(--color-ink);
    width: 2rem;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(0,0,0,0.08);
    color: var(--color-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
}

.hero-arrow.left { left: 1rem; }
.hero-arrow.right { right: 1rem; }

.hero-arrow:hover { background: #fff; }

/* ── Categorias (grelha) ── */
.categories-section {
    position: relative;
    padding: 2.5rem 0;
    overflow: hidden;
}

.categories-section-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.92)),
        url('../images/logo.png') center / 40% no-repeat;
    opacity: 0.35;
    pointer-events: none;
}

.categories-section-inner {
    position: relative;
    z-index: 1;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1rem;
    }
}

.category-card {
    display: block;
    text-decoration: none;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.category-card-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f3f4f6;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
}

.category-card:hover .category-card-image img {
    transform: scale(1.05);
}

.category-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
}

.category-placeholder-atum { background: linear-gradient(135deg, #64748b, #475569); }
.category-placeholder-bolachas { background: linear-gradient(135deg, #92400e, #b45309); }
.category-placeholder-cha { background: linear-gradient(135deg, #166534, #15803d); }
.category-placeholder-compotas { background: linear-gradient(135deg, #c2410c, #ea580c); }
.category-placeholder-docarias { background: linear-gradient(135deg, #7c2d12, #9a3412); }
.category-placeholder-especiarias { background: linear-gradient(135deg, #a16207, #ca8a04); }
.category-placeholder-manteigas { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.category-placeholder-mel { background: linear-gradient(135deg, #d97706, #f59e0b); }
.category-placeholder-pao { background: linear-gradient(135deg, #a8a29e, #78716c); }
.category-placeholder-pimentas { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.category-placeholder-queijos { background: linear-gradient(135deg, #d4a853, #b8892e); }
.category-placeholder-vinhos { background: linear-gradient(135deg, #7f1d1d, #991b1b); }

.category-card-label {
    background: #f0c14b;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: center;
    padding: 0.625rem 0.5rem;
    line-height: 1.2;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .category-card-label {
        font-size: 0.75rem;
        padding: 0.75rem 0.5rem;
    }
}

/* ── Vantagens da loja ── */
.highlights-section {
    padding: 2rem 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

@media (min-width: 768px) {
    .highlights-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.highlight-card {
    padding: 1.75rem 1.5rem;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}

@media (min-width: 768px) {
    .highlight-card {
        border-bottom: none;
        border-right: 1px solid var(--color-border);
    }

    .highlight-card:last-child {
        border-right: none;
    }
}

.highlight-card:last-child {
    border-bottom: none;
}

.highlight-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.highlight-icon svg {
    width: 3rem;
    height: 3rem;
}

.highlight-title {
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent);
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.highlight-description {
    font-size: 0.8125rem;
    color: var(--color-muted);
    line-height: 1.5;
    max-width: 18rem;
    margin: 0 auto;
}

/* ── Secções ── */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-block {
    padding: 2rem 0;
}

.section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-bar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-accent {
    width: 4px;
    height: 1.75rem;
    background: var(--color-accent);
    border-radius: 2px;
    flex-shrink: 0;
}

.section-bar h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-ink);
    letter-spacing: -0.01em;
}

.btn-more {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-ink);
    border: 1.5px solid var(--color-ink);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s;
}

.btn-more:hover {
    background: var(--color-ink);
    color: #fff;
}

/* ── Grelha produtos ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

@media (min-width: 1024px) {
    .product-grid { grid-template-columns: repeat(5, 1fr); }
}

.product-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
    position: relative;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: #D1D5DB;
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-image {
    aspect-ratio: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    position: relative;
}

.product-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 0.75rem 0.875rem 1rem;
    border-top: 1px solid var(--color-border);
}

.product-card-category {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-card-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-ink);
    margin-top: 0.25rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
}

.product-card-price {
    margin-top: 0.5rem;
}

/* ── Preços (estilo promoção PCDIGA) ── */
.product-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.625rem;
}

.product-price-current {
    font-weight: 800;
    color: var(--color-ink);
    line-height: 1.1;
}

.product-price--promo .product-price-current {
    color: #DC2626;
}

.product-price-old {
    color: #4B5563;
    text-decoration: line-through;
    font-weight: 500;
    line-height: 1.1;
}

.product-price-discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FACC15;
    color: #111827;
    font-weight: 800;
    line-height: 1;
    border-radius: 0.25rem;
    padding: 0.2rem 0.45rem;
}

.product-price-unit {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-muted);
}

.product-price--md .product-price-current {
    font-size: 1.375rem;
}

.product-price--md .product-price-old {
    font-size: 0.9375rem;
}

.product-price--md .product-price-discount {
    font-size: 0.75rem;
}

.product-price--lg .product-price-current {
    font-size: 2.25rem;
}

.product-price--lg .product-price-old {
    font-size: 1.25rem;
}

.product-price--lg .product-price-discount {
    font-size: 0.9375rem;
    padding: 0.3rem 0.55rem;
}

.product-price--lg .product-price-unit {
    font-size: 0.875rem;
    margin-top: 0.35rem;
}

html[data-theme='dark'] .product-price-current {
    color: #f3f4f6;
}

html[data-theme='dark'] .product-price--promo .product-price-current {
    color: #f87171;
}

html[data-theme='dark'] .product-price-old {
    color: #9ca3af;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.9375rem;
}

.product-stock-label {
    font-weight: 600;
    color: var(--color-ink);
}

.product-stock-value {
    font-weight: 600;
}

.product-stock--available .product-stock-value {
    color: #15803d;
}

.product-stock--out_of_stock .product-stock-value {
    color: #b91c1c;
}

.product-stock--on_order .product-stock-value {
    color: #b45309;
}

html[data-theme='dark'] .product-stock--available .product-stock-value {
    color: #4ade80;
}

html[data-theme='dark'] .product-stock--out_of_stock .product-stock-value {
    color: #f87171;
}

html[data-theme='dark'] .product-stock--on_order .product-stock-value {
    color: #fbbf24;
}

.product-barcode {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.9375rem;
}

.product-barcode-label {
    font-weight: 600;
    color: var(--color-ink);
}

.product-barcode-value {
    font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    color: var(--color-muted);
}

.badge-tag {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 5;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-md);
}

.badge-novidade {
    background: #2563EB;
    color: #fff;
}

.badge-promo {
    background: #DC2626;
    color: #fff;
}

/* ── Botões ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--color-ink);
    border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-dark {
    background: var(--color-ink);
    color: #fff;
}

.btn-dark:hover {
    background: #333;
    color: #fff;
}

/* ── Cards genéricos ── */
.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-hover {
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.card-hover:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: #D1D5DB;
    transform: translateY(-2px);
}

/* ── Formulários ── */
.form-input {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}

.form-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.12);
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
}

/* ── Alertas ── */
.alert {
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.alert-success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ── Secções legado (outras páginas) ── */
.section-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-ink);
    line-height: 1.2;
}

.section-subtitle {
    color: var(--color-muted);
    margin-top: 0.375rem;
    font-size: 0.9375rem;
}

.section-alt {
    background: var(--color-surface);
}

/* ── Mesas de queijo (eventos) ── */
.cheese-tables-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .cheese-tables-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .cheese-tables-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.cheese-table-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-surface);
}

.cheese-table-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cheese-table-card:hover .cheese-table-card-image img {
    transform: scale(1.04);
}

.cheese-table-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.35;
}

.cheese-table-number {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(26, 26, 26, 0.82);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.65rem;
    border-radius: 0.25rem;
}

.cheese-table-card-body {
    padding: 1rem 1.125rem 1.25rem;
    flex: 1;
}

.cheese-table-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--color-ink);
    line-height: 1.35;
}

.cheese-table-card-desc {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-muted);
}

/* ── Banner eventos ── */
.promo-strip {
    background: linear-gradient(135deg, var(--color-ink) 0%, #292524 100%);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .promo-strip {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        padding: 2rem 2.5rem;
    }
}

.promo-strip h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.promo-strip p {
    color: #A8A29E;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ── Footer ── */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 1024px) {
    .footer-brand {
        align-items: flex-start;
    }
}

.footer-logo {
    height: 3.125rem;
    width: auto;
    max-width: 268px;
}

@media (min-width: 768px) {
    .footer-logo {
        height: 3.25rem;
    }
}

.site-footer {
    background: var(--color-ink);
    color: #9CA3AF;
    border-top: 3px solid var(--color-accent);
    margin-top: auto;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        text-align: left;
    }

    .footer-disclaimer {
        text-align: right;
        max-width: 22rem;
    }
}

.footer-disclaimer {
    font-size: 0.6875rem;
    line-height: 1.5;
    color: #6B7280;
    margin: 0;
}

.footer-top {
    width: 100%;
}

.footer-hours {
    text-align: center;
}

@media (min-width: 1024px) {
    .footer-hours {
        text-align: left;
    }
}

.footer-hours-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.75rem;
    letter-spacing: 0.02em;
}

.footer-hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.75rem;
    line-height: 1.6;
}

.footer-hours-list li {
    color: #D1D5DB;
}

.footer-hours-time {
    color: #9CA3AF;
    font-weight: 500;
}

.footer-hours-time.is-closed {
    color: #F87171;
    font-weight: 700;
}

.footer-links {
    align-self: center;
}

@media (min-width: 1024px) {
    .footer-links {
        align-self: flex-start;
        padding-top: 0.125rem;
    }
}

/* ── Carrinho responsivo ── */
@media (max-width: 640px) {
    .cart-table thead { display: none; }
    .cart-table tr {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--color-border);
    }
    .cart-table td {
        display: block;
        padding: 0.25rem 0;
        border: none;
    }
}

/* ── Paginação ── */
.pagination nav { display: flex; justify-content: center; }
.pagination .flex { gap: 0.25rem; }
.pagination a, .pagination span {
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}
.pagination a { color: var(--color-ink); border: 1px solid var(--color-border); }
.pagination a:hover { background: var(--color-surface); }
.pagination span[aria-current] { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* ── Páginas legais ── */
.legal-page {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
}

@media (min-width: 768px) {
    .legal-page {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .legal-page {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

.legal-page-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-page-header h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--color-ink);
    line-height: 1.25;
}

.legal-page-kicker {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.legal-page-subtitle {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    color: var(--color-muted);
}

.legal-page-caps {
    font-weight: 600;
    color: var(--color-ink);
}

.legal-page-body ul ul {
    margin-top: 0.5rem;
    list-style: circle;
}

.legal-page-body section {
    margin-bottom: 2.25rem;
}

.legal-page-body h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-ink);
    margin-bottom: 0.875rem;
}

.legal-page-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-ink);
    margin: 1.5rem 0 0.75rem;
}

.legal-page-body p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--color-muted);
    margin-bottom: 0.875rem;
}

.legal-page-body ul {
    margin: 0.75rem 0 1rem 1.25rem;
    list-style: disc;
}

.legal-page-body li {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

.legal-page-body a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-page-body a:hover {
    color: var(--color-accent-dark);
}

.legal-page-notice {
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.legal-page-notice h2 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

html[data-theme='dark'] .legal-page-notice {
    background: #1f2937;
    border-color: #374151;
}

/* ── Dark mode (componentes da loja) ── */
html[data-theme='dark'] .header-search form,
html[data-theme='dark'] .mobile-nav-search form,
html[data-theme='dark'] .search-dropdown {
    background: #1f2937;
    border-color: #374151;
}

html[data-theme='dark'] .header-search input,
html[data-theme='dark'] .mobile-nav-search input {
    color: #f3f4f6;
}

html[data-theme='dark'] .mobile-nav {
    background: #111827;
    border-color: #374151;
}

html[data-theme='dark'] .product-card,
html[data-theme='dark'] .category-card {
    background: #1f2937;
    border-color: #374151;
}

html[data-theme='dark'] .product-card-name,
html[data-theme='dark'] .category-card-label,
html[data-theme='dark'] .header-nav-links a {
    color: #f3f4f6;
}

html[data-theme='dark'] .header-icon-btn {
    color: #f3f4f6;
}

html[data-theme='dark'] .header-cart-link {
    color: var(--color-ink);
}

html[data-theme='dark'] .header-cart-total {
    color: var(--color-accent);
}

html[data-theme='dark'] .header-icon-btn:hover,
html[data-theme='dark'] .header-cart-link:hover,
html[data-theme='dark'] .header-home-btn:hover,
html[data-theme='dark'] .header-home-btn.is-active {
    background: #1f2937;
}

html[data-theme='dark'] .alert-success {
    background: #14532d;
    color: #dcfce7;
}

html[data-theme='dark'] .alert-error {
    background: #7f1d1d;
    color: #fee2e2;
}

/* ── Consentimento de cookies ── */
:root {
    --cookie-primary: #e30613;
    --cookie-primary-hover: #c70511;
    --cookie-dark: #1a1a1a;
}

body.cookie-banner-visible {
    padding-bottom: 0;
}

body.cookie-modal-open {
    overflow: hidden;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: #fff;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1rem;
}

.cookie-banner-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-ink);
    margin-bottom: 0.375rem;
}

.cookie-banner-text {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--color-muted);
    max-width: 52rem;
}

.cookie-banner-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.625rem;
    flex-shrink: 0;
    min-width: 11rem;
}

.cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.cookie-btn-primary {
    background: var(--cookie-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    min-width: 10rem;
}

.cookie-btn-primary:hover {
    background: var(--cookie-primary-hover);
}

.cookie-btn-dark {
    background: var(--cookie-dark);
    color: #fff;
    padding: 0.625rem 1rem;
}

.cookie-btn-dark:hover {
    background: #333;
}

.cookie-btn-link {
    background: transparent;
    color: var(--color-ink);
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0.25rem 0.5rem;
}

.footer-cookie-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.footer-cookie-link:hover {
    color: #fff;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-modal[hidden] {
    display: none !important;
}

.cookie-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.cookie-modal-panel {
    position: relative;
    width: min(100%, 42rem);
    max-height: min(90vh, 720px);
    background: #fff;
    border-radius: 0.25rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.75rem;
}

.cookie-modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-ink);
}

.cookie-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
}

.cookie-modal-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.cookie-modal-tabs {
    display: flex;
    gap: 0;
    padding: 0 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.cookie-tab {
    appearance: none;
    border: 1px solid transparent;
    border-bottom: none;
    background: #f3f4f6;
    color: var(--color-ink);
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: -1px;
}

.cookie-tab.active {
    background: #fff;
    border-color: var(--color-border);
}

.cookie-modal-body {
    flex: 1;
    overflow: auto;
    padding: 1rem 1.25rem;
}

.cookie-modal-intro {
    font-size: 0.8125rem;
    line-height: 1.65;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.cookie-modal-intro a {
    color: var(--color-ink);
    text-decoration: underline;
}

.cookie-modal-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cookie-category-list {
    border-top: 1px solid var(--color-border);
}

.cookie-category {
    border-bottom: 1px solid var(--color-border);
}

.cookie-category-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 0;
    cursor: pointer;
    list-style: none;
}

.cookie-category-summary::-webkit-details-marker {
    display: none;
}

.cookie-category-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-ink);
    padding-left: 1.25rem;
    position: relative;
}

.cookie-category-name::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--color-muted);
    transform: rotate(90deg);
    transition: transform 0.15s;
}

.cookie-category[open] .cookie-category-name::before {
    transform: rotate(-90deg);
}

.cookie-category-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-muted);
    white-space: nowrap;
}

.cookie-category-desc {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--color-muted);
    padding: 0 0 1rem 1.25rem;
}

.cookie-toggle {
    position: relative;
    display: inline-flex;
    width: 2.75rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cookie-toggle-slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 9999px;
    transition: background 0.2s;
    cursor: pointer;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    width: 1.125rem;
    height: 1.125rem;
    left: 0.2rem;
    top: 0.1875rem;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: var(--cookie-primary);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(1.25rem);
}

.cookie-simple-list {
    margin: 0;
    padding-left: 1.25rem;
}

.cookie-simple-list li {
    font-size: 0.8125rem;
    line-height: 1.65;
    color: var(--color-muted);
    margin-bottom: 0.625rem;
}

.cookie-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.875rem 1.25rem 1.25rem;
    border-top: 1px solid var(--color-border);
}

.cookie-tab-panel[hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        width: 100%;
        min-width: 0;
    }

    .cookie-btn-primary {
        width: 100%;
    }

    .cookie-modal-panel {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .cookie-modal {
        padding: 0;
        align-items: flex-end;
    }

    .cookie-modal-tabs {
        overflow-x: auto;
    }

    .cookie-tab {
        white-space: nowrap;
    }
}

html[data-theme='dark'] .cookie-banner,
html[data-theme='dark'] .cookie-modal-panel {
    background: #111827;
    border-color: #374151;
}

html[data-theme='dark'] .cookie-tab {
    background: #1f2937;
    color: #f3f4f6;
}

html[data-theme='dark'] .cookie-tab.active {
    background: #111827;
    border-color: #374151;
}

/* Meeting request modal */
body.shop-modal-open {
    overflow: hidden;
}

.cheese-tables-meeting-cta {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.shop-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.shop-modal[hidden] {
    display: none !important;
}

.shop-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.shop-modal-panel {
    position: relative;
    width: min(100%, 32rem);
    max-height: min(90vh, 720px);
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.shop-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.25rem 0.75rem;
}

.shop-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-ink);
}

.shop-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
}

.shop-modal-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.shop-modal-body {
    padding: 0 1.25rem 1.25rem;
    overflow-y: auto;
}

.shop-modal-intro {
    color: var(--color-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.meeting-request-category {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--color-gold-light, #fef3c7);
    color: var(--color-gold-dark, #92400e);
    font-size: 0.8125rem;
    font-weight: 600;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.shop-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.meeting-request-error {
    margin-top: 0.5rem;
    color: #b91c1c;
    font-size: 0.875rem;
}

.meeting-request-success {
    margin-top: 0.5rem;
    color: #15803d;
    font-size: 0.875rem;
}

@media (max-width: 540px) {
    .form-field-grid {
        grid-template-columns: 1fr;
    }

    .shop-modal-footer {
        flex-direction: column-reverse;
    }

    .shop-modal-footer .btn {
        width: 100%;
    }
}

html[data-theme='dark'] .shop-modal-panel {
    background: #111827;
    border: 1px solid #374151;
}

html[data-theme='dark'] .meeting-request-category {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}
