:root {
    /* Surfaces — refined warm cream */
    --bg: #F1E8D5;
    --bg-soft: #ECE2CC;
    --paper: #FAF5EB;

    /* Ink — deep warm near-black, mirrors the logo */
    --ink: #1A1611;
    --ink-soft: #6F5F4D;

    /* Warm brown family — body accents */
    --brown: #6B4427;
    --brown-dark: #2E1D10;

    /* Gold/bronze — single chromatic accent, used sparingly */
    --gold: #B89058;
    --gold-soft: #D9C29C;

    /* "Teal" repurposed as deep monochrome ink (no green) — keeps prior selectors valid */
    --teal: #1A1611;
    --teal-dark: #0F0C09;
    --teal-deep: #14110D;

    --red: #B5432A;
    --shadow: 0 10px 30px rgba(20, 15, 10, 0.10);
    --shadow-strong: 0 18px 44px rgba(20, 15, 10, 0.22);
    --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); }

/* TOPBAR — compact black band, logo centered */
.topbar {
    position: sticky;
    top: 0;
    background: #000;
    color: #fff;
    z-index: 60;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar-inner {
    max-width: 1300px;
    margin: 0 auto;
    height: 78px;
    padding: 0 14px;
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    align-items: center;
    gap: 8px;
}
.topbar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-decoration: none;
}
.topbar-logo img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
    display: block;
}
.topbar-cart,
.topbar-toggle {
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}
.topbar-cart svg { width: 24px; height: 24px; }
.topbar-cart .cart-count {
    position: absolute;
    top: 4px;
    right: 0;
    background: var(--gold);
    color: var(--ink);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.topbar-toggle {
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
}
@media (min-width: 861px) {
    .topbar-toggle { display: none; }
    .topbar-inner { grid-template-columns: 1fr auto 1fr; }
    .topbar-cart { justify-self: start; }
    .topbar-logo { justify-self: center; }
}
.topbar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.15s ease;
}
.topbar-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topbar-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.topbar-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 600px) {
    .topbar-inner { height: 64px; padding: 0 10px; }
    .topbar-logo img { max-height: 42px; }
}

/* PAGE HEAD — compact breadcrumb + title */
.page-head {
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 16px 24px 14px;
}
.page-head-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}
.breadcrumb {
    margin: 0;
    font-size: 12px;
    color: var(--ink-soft);
    letter-spacing: 0.02em;
}
.breadcrumb a {
    color: var(--ink-soft);
    text-decoration: none;
    transition: color 0.15s ease;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { margin: 0 6px; color: rgba(0, 0, 0, 0.25); }
.page-title {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
}

@media (max-width: 600px) {
    .page-head { padding: 12px 16px 12px; }
    .page-title { font-size: 20px; }
    .page-head-inner { gap: 10px; }
}

/* DIAMOND LOGO (used in footer) */
.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.brand-diamond {
    position: relative;
    width: 320px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}
.brand-diamond-shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.brand-diamond-inner {
    position: relative;
    text-align: center;
    color: var(--brown);
    z-index: 2;
    padding: 0 56px;
}
.brand-symbol {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 2px;
    line-height: 1;
}
.brand-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 9px;
    letter-spacing: 0.25em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.brand-meta span:first-child::after,
.brand-meta span:last-child::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 1px;
    background: var(--gold);
    vertical-align: middle;
    margin: 0 6px;
}
.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3.5vw, 34px);
    line-height: 1;
    color: var(--brown);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-weight: 700;
}
.brand-name .line {
    display: block;
}


/* CATEGORIES NAV — sits below the sticky topbar */
.main-nav {
    position: sticky;
    top: 78px;
    background: var(--paper);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 50;
}
.main-nav-bar { display: none; }
.main-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 16px;
}
.nav-spacer { flex: 1; }

.nav-group { position: relative; }
.nav-group-btn,
.main-nav .nav-cart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 20px 16px;
    background: none;
    border: none;
    font-family: inherit;
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s ease;
}
.nav-group-btn:hover,
.nav-group-btn[aria-expanded="true"],
.main-nav .nav-cart:hover { color: var(--brown-dark); }
.nav-caret { width: 11px; height: 7px; transition: transform 0.2s ease; }
.nav-group-btn[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--paper);
    box-shadow: 0 14px 30px rgba(20, 14, 8, 0.18);
    border-top: 2px solid var(--teal);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s linear 0.15s;
    z-index: 60;
}
.nav-group[data-open] .nav-dropdown,
.nav-group:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s;
}
.nav-dropdown a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    transition: background 0.12s ease, color 0.12s ease;
}
.nav-dropdown a:hover {
    background: var(--bg-soft);
    color: var(--brown-dark);
}

.main-nav .nav-cart {
    color: var(--brown-dark);
}
.main-nav .nav-cart .cart-count { background: var(--teal); color: #fff; }
.nav-cart-mobile { display: none; }

/* HAMBURGER */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.15s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
    .main-nav { top: 64px; border-bottom: none; }

    .main-nav-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: var(--paper);
        border-top: 1px solid rgba(93, 169, 161, 0.25);
    }
    .main-nav.open .main-nav-inner {
        max-height: calc(100vh - 64px);
        overflow-y: auto;
    }

    .nav-group { width: 100%; }
    .nav-group-btn {
        width: 100%;
        justify-content: space-between;
        padding: 16px 22px;
        border-bottom: 1px solid rgba(60, 35, 15, 0.06);
    }
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        box-shadow: none;
        border-top: none;
        padding: 0;
        background: var(--bg-soft);
        max-height: 0;
        overflow: hidden;
        min-width: 0;
    }
    .nav-group[data-open] .nav-dropdown {
        max-height: 600px;
        padding: 6px 0 10px;
    }
    .nav-group:hover .nav-dropdown {
        max-height: 0;
        padding: 0;
    }
    .nav-group[data-open]:hover .nav-dropdown {
        max-height: 600px;
        padding: 6px 0 10px;
    }
    .nav-dropdown a { padding: 12px 36px; }

    .nav-spacer { display: none; }
}

/* CART COUNT BADGE */
.cart-count {
    background: var(--gold);
    color: var(--ink);
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    display: inline-block;
}

/* CATALOG */
.catalog {
    max-width: 1300px;
    margin: 0 auto;
    padding: 50px 24px 120px;
}
.category { margin-bottom: 80px; scroll-margin-top: 70px; }
.category-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 3.4vw, 36px);
    color: var(--brown-dark);
    margin: 0 0 30px;
    text-align: center;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
}
.category-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--gold);
    margin: 14px auto 0;
}
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* PRODUCT CARD — Editorial Patisserie */
.card {
    --card-pad: 22px;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 1px solid rgba(184, 144, 88, 0.16);
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}
/* Inner gold ornaments — top-right and bottom-left, fade in on hover */
.card::before,
.card::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: opacity 0.35s ease, inset 0.35s ease;
    z-index: 3;
    pointer-events: none;
}
.card::before {
    top: 10px; right: 10px;
    border-top: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
}
.card::after {
    bottom: 10px; left: 10px;
    border-bottom: 1px solid var(--gold);
    border-left: 1px solid var(--gold);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(46, 29, 16, 0.13), 0 6px 14px rgba(46, 29, 16, 0.06);
    border-color: rgba(184, 144, 88, 0.34);
}
.card:hover::before { opacity: 0.95; top: 14px; right: 14px; }
.card:hover::after { opacity: 0.95; bottom: 14px; left: 14px; }

.card-image {
    aspect-ratio: 1 / 1;
    background: radial-gradient(ellipse at 50% 45%, var(--bg-soft) 0%, #E5D9BF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.card-image::after {
    /* subtle vignette on the image area */
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(46, 29, 16, 0.08) 100%);
    pointer-events: none;
    z-index: 1;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(.2,.7,.2,1), filter 0.4s ease;
    position: relative;
    z-index: 0;
}
.card:hover .card-image img {
    transform: scale(1.06);
    filter: saturate(1.06);
}

/* No-image placeholder: circular gold-rule frame around the emoji */
.card-image .no-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 1px solid rgba(184, 144, 88, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: var(--brown);
    opacity: 0.55;
    background: rgba(250, 245, 235, 0.35);
    position: relative;
    z-index: 2;
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--ink);
    color: var(--paper);
    padding: 4px 10px;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    z-index: 4;
}

/* legacy hover-overlay CTA — disabled in new design */
.card-cta { display: none !important; }

.card-body {
    padding: 22px var(--card-pad) 22px;
    display: flex;
    flex-direction: column;
    text-align: left;
    background: var(--paper);
    position: relative;
    flex: 1;
}
.card-body::before {
    /* hairline gold rule between image and body */
    content: '';
    position: absolute;
    top: 0;
    left: var(--card-pad);
    right: var(--card-pad);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184, 144, 88, 0.45), transparent);
}

.card-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin: 0 0 11px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    line-height: 1;
}
.card-eyebrow::before {
    content: '';
    width: 18px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.22;
    color: var(--brown-dark);
    margin: 0 0 5px;
    letter-spacing: 0.005em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.44em;
}

.card-unit {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-style: italic;
    color: var(--ink-soft);
    margin: 0 0 14px;
    letter-spacing: 0.02em;
}

.card-price {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 18px;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.005em;
}
.card-price .currency {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--gold);
    transform: translateY(-2px);
    margin-right: 1px;
}
.card-price.is-empty {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-style: italic;
    font-weight: 400;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
}

.card-add {
    background: var(--ink);
    color: var(--paper);
    border: none;
    padding: 14px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    margin-top: auto;
    transition: color 0.3s ease, letter-spacing 0.35s ease;
}
.card-add::before {
    /* gold sweep from left on hover */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 100%);
    transform: translateX(-101%);
    transition: transform 0.45s cubic-bezier(.2,.7,.2,1);
    z-index: 0;
}
.card-add > * {
    position: relative;
    z-index: 1;
}
.card-add:hover {
    color: var(--ink);
    letter-spacing: 0.26em;
}
.card-add:hover::before {
    transform: translateX(0);
}
.card-add .arrow {
    width: 14px;
    height: 1px;
    background: currentColor;
    position: relative;
    transition: width 0.3s ease;
    flex-shrink: 0;
    align-self: center;
}
.card-add .arrow::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
    transform-origin: right center;
}
.card-add:hover .arrow { width: 22px; }

/* "added" confirmation flash */
.card-add.is-added {
    background: var(--gold);
    color: var(--ink);
    pointer-events: none;
    letter-spacing: 0.22em;
}
.card-add.is-added::before { display: none; }
.card-add.is-added .arrow { display: none; }

@media (max-width: 540px) {
    .card { --card-pad: 14px; }
    .card-body { padding: 17px 14px 16px; }
    .card-title { font-size: 15.5px; min-height: 2.44em; }
    .card-unit { font-size: 11.5px; margin-bottom: 11px; }
    .card-price { font-size: 18px; margin-bottom: 13px; }
    .card-price .currency { font-size: 12px; }
    .card-eyebrow { font-size: 9px; letter-spacing: 0.22em; gap: 7px; margin-bottom: 9px; }
    .card-eyebrow::before { width: 12px; }
    .card-add { padding: 11px 10px; font-size: 9.5px; letter-spacing: 0.16em; gap: 6px; }
    .card-add:hover { letter-spacing: 0.18em; }
    .card-add .arrow,
    .card-add:hover .arrow { display: none; }
    .card-add-rest { display: none; }
    .card-image .no-image { width: 80px; height: 80px; font-size: 36px; }
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--ink-soft);
}

/* PRODUCT DETAIL MODAL */
.product-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.product-modal.open { display: flex; }
.product-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 14, 8, 0.55);
}
.product-modal-panel {
    position: relative;
    background: var(--paper);
    width: min(900px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-strong);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.product-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--ink);
    cursor: pointer;
    z-index: 3;
    line-height: 1;
}
.product-modal-image {
    background: var(--bg-soft);
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-modal-image img { width: 100%; height: 100%; object-fit: cover; }
.product-modal-body {
    padding: 56px 38px 38px;
    display: flex;
    flex-direction: column;
}
.product-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: var(--brown-dark);
    margin: 0 0 14px;
    line-height: 1.15;
}
.product-modal-price {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--ink);
    margin: 0 0 8px;
    font-weight: 500;
}
.product-modal-unit {
    color: var(--ink-soft);
    font-size: 14px;
    margin: 0 0 22px;
    letter-spacing: 0.04em;
}
.product-modal-desc {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 22px;
}
.product-modal-divider {
    height: 1px;
    background: rgba(60, 35, 15, 0.12);
    margin: 0 0 22px;
}
.product-modal-actions {
    display: flex;
    gap: 0;
    margin-top: auto;
}
.qty-stepper {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-soft);
    padding: 0 18px;
    flex: 1;
    justify-content: center;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: 0.2em;
    font-size: 12px;
    text-transform: uppercase;
}
.qty-stepper button {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    font-size: 18px;
    cursor: pointer;
    color: var(--ink);
    font-weight: 700;
}
.qty-stepper .num { min-width: 22px; text-align: center; font-weight: 700; }
.product-modal-add {
    flex: 1;
    background: var(--teal-deep);
    color: #fff;
    border: none;
    padding: 18px 22px;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease;
}
.product-modal-add:hover { background: var(--teal-dark); }
.product-modal-note {
    margin-top: 18px;
    font-size: 13px;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
}

@media (max-width: 760px) {
    .product-modal-panel {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }
    .product-modal-body { padding: 28px 22px 24px; }
    .product-modal-title { font-size: 22px; }
    .product-modal-price { font-size: 26px; }
}

/* BUTTONS */
.btn-primary {
    background: var(--teal-deep);
    color: #fff;
    border: none;
    padding: 14px 26px;
    border-radius: 0;
    font-weight: 600;
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--teal-dark); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary.full { width: 100%; }
.btn-link {
    background: none;
    border: none;
    color: var(--ink-soft);
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
    padding: 8px;
}

/* CART DRAWER */
.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
}
.cart-drawer.open { pointer-events: auto; }
.cart-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 14, 8, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.cart-drawer.open .cart-overlay { opacity: 1; }
.cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 92%);
    background: var(--paper);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s ease;
}
.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-head {
    padding: 22px 22px;
    border-bottom: 1px solid rgba(60, 35, 15, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
}
.cart-head h2 {
    font-family: 'Playfair Display', serif;
    margin: 0;
    color: var(--brown-dark);
    font-size: 22px;
    letter-spacing: 0.04em;
}
.icon-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--ink-soft);
    padding: 4px 10px;
}
.icon-btn:hover { color: var(--ink); }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}
.cart-empty {
    text-align: center;
    color: var(--ink-soft);
    padding: 40px 20px;
}
.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 14px 8px;
    border-bottom: 1px solid rgba(60, 35, 15, 0.08);
    align-items: center;
}
.cart-item .name { font-weight: 600; color: var(--brown-dark); }
.cart-item .meta { font-size: 13px; color: var(--ink-soft); grid-column: 1; }
.cart-item .qty {
    display: flex;
    align-items: center;
    gap: 6px;
    grid-column: 2;
    grid-row: 1 / span 2;
}
.qty button {
    background: var(--bg-soft);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 700;
    color: var(--brown);
    font-size: 16px;
}
.qty button:hover { background: var(--gold-soft); }
.qty .num { min-width: 24px; text-align: center; font-weight: 600; }
.cart-item .line-price {
    grid-column: 1;
    color: var(--brown-dark);
    font-weight: 600;
    font-size: 14px;
}
.cart-item .remove {
    grid-column: 2;
    background: none;
    border: none;
    color: var(--red);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    justify-self: end;
}

.cart-foot {
    border-top: 1px solid rgba(60, 35, 15, 0.1);
    padding: 18px 22px 22px;
    background: var(--bg);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    font-size: 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.cart-total strong {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    color: var(--brown-dark);
    text-transform: none;
}

/* CHECKOUT MODAL */
.modal {
    position: fixed;
    inset: 0;
    z-index: 130;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.open { display: flex; }
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 14, 8, 0.55);
}
.modal-panel {
    position: relative;
    background: var(--paper);
    width: min(480px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-strong);
}
.modal-head {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(60, 35, 15, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg);
}
.modal-head h2 {
    font-family: 'Playfair Display', serif;
    margin: 0;
    color: var(--brown-dark);
    font-size: 20px;
}
#checkout-form {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
#checkout-form label {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink);
    gap: 6px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
#checkout-form input,
#checkout-form textarea {
    border: 1px solid rgba(60, 35, 15, 0.18);
    border-radius: 0;
    padding: 11px 12px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    color: var(--ink);
    text-transform: none;
    letter-spacing: normal;
}
#checkout-form input:focus,
#checkout-form textarea:focus {
    outline: 2px solid var(--teal);
    border-color: var(--teal);
}
#checkout-form fieldset {
    border: 1px solid rgba(60, 35, 15, 0.18);
    border-radius: 0;
    padding: 10px 14px 14px;
}
#checkout-form fieldset legend { padding: 0 6px; font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.radio { flex-direction: row !important; align-items: center; font-weight: 400 !important; padding: 4px 0; gap: 8px !important; text-transform: none !important; letter-spacing: normal !important; font-size: 14px !important; }

.form-error {
    background: #FBE3E3;
    color: #7A1F1F;
    padding: 10px 14px;
    margin: 0;
    font-size: 14px;
}

.muted { color: var(--ink-soft); }
.muted.small, .small { font-size: 13px; }

/* FLOATING WHATSAPP BUTTON */
.wa-fab {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
    z-index: 80;
    transition: transform 0.15s ease;
}
.wa-fab:hover { transform: translateY(-2px); }
.wa-fab svg { width: 30px; height: 30px; }

/* FOOTER */
.site-footer {
    background: #000;
    color: #fff;
    padding: 64px 24px 28px;
    position: relative;
}
.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
.footer-col--brand {
    align-items: flex-start;
    gap: 18px;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    padding-bottom: 12px;
}
.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: var(--gold);
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
    letter-spacing: 0.01em;
}
.footer-bullet {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--gold);
    margin-top: 2px;
}
.footer-list a {
    color: #fff;
    text-decoration: none;
    transition: color 0.18s ease, border-color 0.18s ease;
    border-bottom: 1px solid transparent;
}
.footer-list a:hover {
    color: var(--gold-soft);
    border-bottom-color: var(--gold-soft);
}

.footer-meta {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
}

.footer-logo {
    display: block;
    width: 100%;
    max-width: 220px;
    line-height: 0;
}
.footer-logo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
.footer-tagline {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    font-style: italic;
    letter-spacing: 0.01em;
    max-width: 260px;
}

.footer-socials {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}
.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.footer-socials a svg { width: 16px; height: 16px; }
.footer-socials a:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 56px;
    padding-top: 22px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.04em;
    position: relative;
}
.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(184, 144, 88, 0.35) 50%,
        transparent 100%);
}
.footer-copy { letter-spacing: 0.05em; }
.footer-credit {
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.55);
}
.footer-credit a {
    color: var(--gold-soft);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.18s ease, color 0.18s ease;
}
.footer-credit a:hover {
    color: var(--gold);
    border-bottom-color: var(--gold);
}
.footer-admin {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.18s ease;
    letter-spacing: 0.06em;
}
.footer-admin:hover { color: var(--gold-soft); }

/* Desarrollado por ECOSOFT */
.ecosoft-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px 0;
    text-align: center;
}
.ecosoft-label {
    margin: 0 0 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.20);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    min-height: 14px;
}
.ecosoft-label span {
    display: inline-block;
    opacity: 0;
    transform: scale(0.3);
    color: rgba(255, 255, 255, 0.15);
    transition: none;
}
.ecosoft-label span.show {
    opacity: 1;
    transform: scale(1);
    color: rgba(255, 255, 255, 0.85);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.6s ease;
}
.ecosoft-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    transition: filter 0.5s ease;
}
.ecosoft-link:hover {
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.4));
}
.ecosoft-text {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.025em;
    background: linear-gradient(
        to right,
        rgba(253, 224, 71, 0.8) 0%,
        #fbbf24 50%,
        rgba(253, 224, 71, 0.8) 100%
    );
    background-size: 200% auto;
    background-position: 0% center;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.ecosoft-link:hover .ecosoft-text {
    animation: ecosoft-shimmer 2s linear infinite;
}
@keyframes ecosoft-shimmer {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}
.ecosoft-bolt {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    margin: -2px 2px 0;
}
.ecosoft-underline {
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        #fbbf24 50%,
        transparent 100%
    );
    transition: width 0.5s ease, left 0.5s ease;
}
.ecosoft-link:hover .ecosoft-underline {
    width: 100%;
    left: 0;
}

/* Back to top button */
.back-to-top {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: 42px;
    height: 42px;
    border: none;
    background: var(--gold);
    color: #1A1611;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, transform 0.18s ease;
}
.back-to-top:hover { background: var(--gold-soft); transform: translateY(-2px); }
.back-to-top svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
    .site-footer { padding: 56px 24px 28px; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "brand   brand"
            "locales hours"
            "contact contact";
        gap: 40px 36px;
    }
    .footer-col--brand    { grid-area: brand; align-items: center; text-align: center; }
    .footer-col--locales  { grid-area: locales; }
    .footer-col--hours    { grid-area: hours; }
    .footer-col--contact  { grid-area: contact; }
    .footer-col--brand .footer-tagline { max-width: 360px; }
    .footer-col--brand .footer-socials { justify-content: center; }
    .footer-col--brand .footer-logo { margin: 0 auto; }
}

@media (max-width: 600px) {
    .site-footer { padding: 44px 20px 80px; }
    .footer-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "locales"
            "hours"
            "contact";
        gap: 36px;
    }
    .footer-col {
        align-items: center;
        text-align: center;
    }
    .footer-title { padding-bottom: 10px; }
    .footer-title::after { left: 50%; transform: translateX(-50%); }
    .footer-list li { justify-content: center; }
    .footer-bottom {
        margin-top: 40px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .back-to-top { right: 16px; bottom: 16px; }
}

@media (max-width: 900px) {
    .grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 600px) {
    .catalog { padding: 30px 0 100px; }
    .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .category-title { font-size: 22px; }
    .product-modal-add { padding: 16px 18px; font-size: 11px; }
}

/* ============================================================
   RITUAL CRIOLLO — tema oscuro "carnicería" (overrides)
   Pizarra fría (matchea el fondo del logo #121317) + rojo carne.
   Este bloque va al final: gana por orden de cascada.
   ============================================================ */
:root {
    --bg:         #131318;
    --bg-soft:    #1E1E25;
    --paper:      #191920;
    --ink:        #F0EBE0;
    --ink-soft:   #A9A296;
    --brown:      #C9A15C;   /* cuero — detalle */
    --brown-dark: #F4ECDD;   /* títulos en crema */
    --gold:       #C0341F;   /* ROJO CARNE — acento principal */
    --gold-soft:  #7E1E12;
    --teal:       #C0341F;
    --teal-dark:  #8A2317;
    --teal-deep:  #B02D1A;   /* botones primarios (rojo) */
    --red:        #E2574A;
    --shadow:        0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-strong: 0 22px 50px rgba(0, 0, 0, 0.60);
}

body { background: var(--bg); }

/* Tipografía de títulos — engraved/criolla */
.page-title, .category-title, .card-title, .cart-head h2, .modal-head h2,
.product-modal-title, .footer-title, .cart-total strong {
    font-family: 'Cinzel', 'Playfair Display', serif;
}

/* Barras oscuras igualadas al fondo del logo (sin costura del recuadro) */
.topbar    { background: #121317; border-bottom: 1px solid rgba(255,255,255,0.06); }
.main-nav  { background: #121317; border-bottom: 1px solid rgba(255,255,255,0.06); }
.page-head { background: #121317; border-bottom: 1px solid rgba(255,255,255,0.06); }
.site-footer { background: #0F0F13; }
.topbar-logo img, .footer-logo img { border-radius: 4px; }

.nav-dropdown { background: #1A1A21; border-top: 2px solid var(--gold); box-shadow: 0 18px 36px rgba(0,0,0,0.55); }
.nav-dropdown a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.main-nav .nav-cart .cart-count { background: var(--gold); color: #fff; }
.breadcrumb .sep { color: rgba(255,255,255,0.25); }

/* Tarjetas de producto sobre fondo oscuro */
.card { border-color: rgba(201,161,92,0.16); }
.card:hover { box-shadow: 0 22px 50px rgba(0,0,0,0.55); border-color: rgba(201,161,92,0.38); }
.card-image { background: radial-gradient(ellipse at 50% 42%, #2A2018 0%, #14110D 100%); }
.card-image .no-image { border-color: rgba(192,52,31,0.5); background: rgba(255,255,255,0.03); color: var(--brown); opacity: 0.85; }
.card-add { background: var(--gold); color: #fff; }
.card-add::before { background: linear-gradient(90deg, #D2492F 0%, #A8261A 100%); }
.card-add:hover { color: #fff; }
.card-add.is-added { background: #5E9E34; color: #fff; }

/* Líneas/separadores visibles en oscuro */
.cart-head, .cart-foot, .modal-head, .cart-item { border-color: rgba(255,255,255,0.08); }
.product-modal-divider { background: rgba(255,255,255,0.10); }
.qty button { color: var(--brown); }

/* Campos del checkout en oscuro */
#checkout-form input, #checkout-form textarea {
    background: #0F0F13; color: var(--ink); border-color: rgba(255,255,255,0.16);
}
#checkout-form input::placeholder, #checkout-form textarea::placeholder { color: rgba(255,255,255,0.34); }
#checkout-form fieldset { border-color: rgba(255,255,255,0.14); }
.form-error { background: #2C1413; color: #F3B4AB; }

/* ===== HERO con video ===== */
.hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: flex-end;          /* el contenido va abajo; el centro queda libre para la marca del video */
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #0C0A08;
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: saturate(1.05) contrast(1.03);
}
.hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* claro arriba (se ve la marca del video) → oscuro abajo (texto legible) */
    background: linear-gradient(180deg,
        rgba(10,9,7,0.15) 0%,
        rgba(10,9,7,0.08) 35%,
        rgba(10,9,7,0.55) 72%,
        rgba(10,9,7,0.92) 100%);
}
.hero-inner {
    position: relative;
    z-index: 2;
    padding: 0 22px 72px;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.hero-eyebrow {
    margin: 0;
    font-family: 'Cinzel', serif;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
    color: #E7C16A;
    padding-left: 0.42em;
}
/* El video ya trae la marca incrustada: el hero no superpone logo ni título,
   sólo bajada + CTA anclados abajo para no tapar la marca del video. */
.hero-sub {
    margin: 0;
    font-size: clamp(15px, 2.2vw, 19px);
    line-height: 1.6;
    color: rgba(255,255,255,0.92);
    max-width: 520px;
    text-shadow: 0 2px 14px rgba(0,0,0,0.85);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.hero-btn--primary { background: var(--gold); color: #fff; }
.hero-btn--primary:hover { background: #D2492F; transform: translateY(-2px); }
.hero-btn--ghost { border: 1.5px solid rgba(255,255,255,0.7); color: #fff; }
.hero-btn--ghost:hover { background: #fff; color: #15110D; transform: translateY(-2px); }
.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,0.8);
    animation: heroBob 1.8s ease-in-out infinite;
}
.hero-scroll svg { width: 30px; height: 30px; }
@keyframes heroBob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(6px); }
}
@media (max-width: 600px) {
    .hero { min-height: 74vh; }
    .hero-eyebrow { letter-spacing: 0.3em; font-size: 11px; }
    .hero-inner { gap: 14px; padding: 48px 18px; }
}
