/* ==========================================================
   Trecena Kombucha — brand styles
   Palette taken from the logo & labels: black, lime, white, gold
   ========================================================== */
:root {
    --black: #090908;
    --surface: #131311;
    --surface-2: #1b1b18;
    --line: #2b2a25;
    --text: #efece4;
    --muted: #a39f93;
    --lime: #86ef6b;          /* logo green */
    --lime-dark: #5fcf45;
    --gold-1: #f3cd86;        /* "¡Estás tomando vida!" gradient */
    --gold-2: #c88a3e;
    --gold-3: #8a5622;
    --gold: linear-gradient(180deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3));
    --radius: 14px;

    /* Maya numeral 13 (three dots over two bars) */
    --maya13: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cg fill='%2386ef6b'%3E%3Ccircle cx='9' cy='7' r='6'/%3E%3Ccircle cx='30' cy='7' r='6'/%3E%3Ccircle cx='51' cy='7' r='6'/%3E%3Crect y='18' width='60' height='7' rx='1'/%3E%3Crect y='31' width='60' height='7' rx='1'/%3E%3C/g%3E%3C/svg%3E");
    /* Greek-key band, as on the bottle labels */
    --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M0 1.5H24M0 22.5H24M3 22.5V5H19V19H8V9.5H14.5V14.5' fill='none' stroke='%23c88a3e' stroke-width='1.6'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Josefin Sans', 'Segoe UI', system-ui, sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.6;
    background: var(--black);
    color: var(--text);
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Cinzel', Georgia, serif; font-weight: 500; letter-spacing: 0.04em; line-height: 1.2; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0.2rem 0 1rem; }

.eyebrow {
    margin: 0;
    color: var(--lime);
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.78rem;
    font-weight: 600;
}
.tagline {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 1.2rem 0 0;
}

/* ---------- Brand motifs ---------- */
.maya13 {
    display: inline-block;
    width: 30px;
    height: 20px;
    background: var(--maya13) center / contain no-repeat;
    flex-shrink: 0;
}
.maya13.small { width: 21px; height: 14px; }
.meander {
    height: 16px;
    background: var(--meander) left center / 16px 16px repeat-x;
    opacity: 0.85;
}

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem clamp(1rem, 4vw, 3rem);
    background: rgba(9, 9, 8, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--text); }
.logo-text { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.35rem; letter-spacing: 0.18em; text-transform: uppercase; }
.navbar nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.navbar nav a {
    color: var(--muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    transition: color 0.2s;
}
.navbar nav a:hover { color: var(--lime); }
.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--lime);
    border-radius: 999px;
    padding: 0.45rem 0.6rem 0.45rem 1rem;
    font: inherit;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.cart-btn:hover { background: var(--lime); color: var(--black); }
.cart-count {
    background: var(--lime);
    color: var(--black);
    border-radius: 999px;
    min-width: 1.6rem;
    padding: 0.1rem 0.4rem;
    font-weight: 600;
    letter-spacing: 0;
    text-align: center;
}
.cart-btn:hover .cart-count { background: var(--black); color: var(--lime); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 6vw, 4rem) 1rem clamp(3rem, 7vw, 5rem);
    text-align: center;
    /* fine "fizz" like the sparkle in the product photos */
    background:
        radial-gradient(circle at 50% 40%, rgba(134, 239, 107, 0.10), transparent 55%),
        radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.5px) 0 0 / 22px 22px,
        var(--black);
}
.hero h1 { margin: 0; }
.hero-logo {
    width: min(620px, 92vw);
    aspect-ratio: 1080 / 760;      /* crop the empty black under the tagline */
    object-fit: cover;
    object-position: top;
    margin: 0 auto;
    mix-blend-mode: lighten;       /* lets the logo's black merge with the fizz background */
}
.hero-sub {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.85rem;
    margin: 0.5rem 0 2rem;
}

/* ---------- Buttons ---------- */
.cta-button {
    display: inline-block;
    background: var(--lime);
    color: var(--black);
    border: 1px solid var(--lime);
    padding: 0.85rem 2rem;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cta-button:hover { background: var(--lime-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(134, 239, 107, 0.25); }
.cta-button.ghost { background: transparent; color: var(--lime); }
.cta-button.ghost:hover { background: var(--lime); color: var(--black); }
.cta-button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.secondary-btn {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    transition: color 0.2s, border-color 0.2s;
}
.secondary-btn:hover { color: var(--text); border-color: var(--muted); }
.full-width { width: 100%; margin-top: 1rem; }

/* ---------- Story ---------- */
.story {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.story-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}
.story-text p { color: var(--muted); }
.features { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.8rem; }
.features li { display: flex; align-items: center; gap: 0.9rem; font-weight: 400; }

/* ---------- Catalog ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem); }
.catalog-header { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-end; margin-bottom: 1.5rem; }
.catalog-header h2 { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.75rem; }

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(134, 239, 107, 0.45); box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55); }
.card-media { overflow: hidden; background: #000; }
.product-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 55%;   /* keep the label in frame */
    transition: transform 0.6s ease;
}
.product-card:hover img { transform: scale(1.04); }
.product-card .meander { height: 12px; background-size: 12px 12px; }
.card-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.card-body h3 { margin: 0; font-size: 1.5rem; letter-spacing: 0.08em; }
.volume { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; white-space: nowrap; }
.card-body .desc { color: var(--muted); margin: 0.5rem 0 1rem; flex: 1; }
.card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.price { font-family: 'Cinzel', serif; font-size: 1.35rem; font-weight: 700; color: var(--lime); margin: 0; }
.stock-status { color: var(--muted); font-size: 0.8rem; margin: 0; }
.stock-status.out { color: #e8846b; }
.card-actions { display: flex; gap: 0.5rem; align-items: center; }
.card-actions .cta-button { flex: 1; text-align: center; padding: 0.75rem 1rem; }

.product-card.in-cart { border-color: rgba(134, 239, 107, 0.6); }
.cta-button.full { width: 100%; padding: 0.75rem 1rem; }
.in-cart-label { margin: 0 0 0.6rem; font-size: 0.85rem; color: var(--muted); }
.in-cart-label strong { color: var(--lime); font-weight: 600; }
.qty-stepper {
    display: inline-flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    border: 1px solid var(--lime);
    border-radius: 999px;
    overflow: hidden;
}
.qty-stepper button {
    width: 2.6rem;
    height: 2.5rem;
    background: transparent;
    color: var(--lime);
    border: none;
    font: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s;
}
.qty-stepper button:hover:not(:disabled) { background: rgba(134, 239, 107, 0.15); }
.qty-stepper button:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-stepper span { font-weight: 600; min-width: 2rem; text-align: center; }
.remove-btn {
    background: transparent;
    color: #e8846b;
    border: 1px solid rgba(232, 132, 107, 0.45);
    border-radius: 999px;
    padding: 0 1rem;
    height: 2.5rem;
    font: inherit;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.remove-btn:hover { background: #e8846b; color: var(--black); }
.edit-btn {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    background: rgba(9, 9, 8, 0.7);
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font: inherit;
    font-size: 0.72rem;
    cursor: pointer;
}
.edit-btn:hover { color: var(--text); }
body:not(.is-admin) .admin-only { display: none; }

/* Bottle cut-outs from the catalog: show whole bottle on a soft glow */
.card-media.cutout {
    background:
        radial-gradient(ellipse at 50% 60%, rgba(243, 205, 134, 0.22), transparent 62%),
        radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1.5px) 0 0 / 18px 18px,
        #0d0d0b;
}
.card-media.cutout img { object-fit: contain; transform: scale(1.15); transform-origin: 50% 62%; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.7)); }
.product-card:hover .card-media.cutout img { transform: scale(1.2); }

.line-tag { margin: 0 0 0.3rem; color: var(--lime); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; }
.base { margin: 0.35rem 0 0; color: var(--gold-1); font-size: 0.85rem; }
.iva { font-family: 'Josefin Sans', sans-serif; font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.box-price { margin: -0.6rem 0 0.9rem; font-size: 0.78rem; color: var(--muted); }

/* Flavor profile meter (acidez / dulzor / amargor), colors as in the catalog */
.profile { display: grid; gap: 0.3rem; margin: 0 0 1rem; }
.meter-row { display: flex; align-items: center; gap: 0.6rem; }
.meter-label { width: 4.6rem; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.meter { display: flex; align-items: flex-end; gap: 3px; height: 14px; }
.meter i { width: 6px; height: 40%; background: var(--line); border-radius: 1px; }
.meter i:nth-child(1) { height: 40%; } .meter i:nth-child(2) { height: 46%; } .meter i:nth-child(3) { height: 52%; }
.meter i:nth-child(4) { height: 58%; } .meter i:nth-child(5) { height: 64%; } .meter i:nth-child(6) { height: 70%; }
.meter i:nth-child(7) { height: 76%; } .meter i:nth-child(8) { height: 84%; } .meter i:nth-child(9) { height: 92%; }
.meter i:nth-child(10) { height: 100%; }
.meter i.on:nth-child(-n+3) { background: #e5383b; }
.meter i.on:nth-child(n+4) { background: #f5d90a; }
.meter i.on:nth-child(n+9) { background: #2bb04a; }

/* Line filter chips */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.chip {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font: inherit;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.active { background: var(--lime); border-color: var(--lime); color: var(--black); font-weight: 600; }

.box-btn {
    background: transparent;
    color: var(--gold-1);
    border: 1px solid rgba(243, 205, 134, 0.45);
    border-radius: 999px;
    padding: 0 0.9rem;
    height: 2.5rem;
    font: inherit;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.box-btn:hover:not(:disabled) { background: var(--gold-1); color: var(--black); }
.box-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.remove-btn.full { width: 100%; margin-top: 0.5rem; height: 2.2rem; }

/* Business / barrel */
.business-grid { display: grid; gap: 1.5rem; }
.business-card {
    display: grid;
    grid-template-columns: minmax(200px, 0.8fr) 1.2fr;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.business-card img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; }
.business-body { padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.business-body h3 { font-size: 1.8rem; margin: 0.4rem 0 0.6rem; }
.business-body .desc { color: var(--muted); }
.business-body .price { margin: 0.5rem 0 1.5rem; }
@media (max-width: 700px) {
    .business-card { grid-template-columns: 1fr; }
    .business-card img { max-height: 260px; }
}

/* Cart breakdown */
.cart-breakdown { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 0.6rem; }
.cart-breakdown p { display: flex; justify-content: space-between; margin: 0.25rem 0; color: var(--muted); font-size: 0.92rem; }

/* Footer contact */
.contact { list-style: none; padding: 0; margin: 1.2rem 0 0.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; }
.contact a { color: var(--text); text-decoration: none; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
.contact a:hover { color: var(--lime); border-color: var(--lime); }

/* Minimum order */
.min-order {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.min-order-rule { display: flex; align-items: center; gap: 0.7rem; margin: 0; }
.min-order-rule strong { color: var(--lime); font-weight: 600; }
.min-order .order-progress { flex: 1; min-width: 220px; max-width: 380px; }
.min-order-note { margin: 0 0 0.5rem; font-size: 0.85rem; color: var(--muted); }
.order-progress { margin-top: 0.25rem; }
.modal .order-progress { margin-top: 1.25rem; }
.progress-bar { height: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 999px; transition: width 0.3s; }
.order-progress.met .progress-bar span { background: var(--lime); }
.progress-text { margin: 0.4rem 0 0; font-size: 0.82rem; color: var(--muted); }
.order-progress.met .progress-text { color: var(--lime); }

.badge {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    background: var(--gold);
    color: #1a1005;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

/* ---------- Banner ---------- */
.banner {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 4rem clamp(1rem, 6vw, 5rem);
    background:
        linear-gradient(90deg, rgba(9, 9, 8, 0.92) 0%, rgba(9, 9, 8, 0.55) 45%, rgba(9, 9, 8, 0.1) 100%),
        url('/static/images/kombucha_en_copa_top.jpeg') center / cover;
}
.banner-inner { max-width: 440px; }
.banner-inner p:last-child { color: #d6d2c7; }

/* ---------- Points of sale ---------- */
.section-intro { color: var(--muted); margin: 0.6rem 0 0; }
.chip-count { margin-left: 0.35rem; opacity: 0.7; letter-spacing: 0; }
.store-groups { display: grid; gap: 2.25rem; }
.city-title {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0 0 1rem;
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
}
.store-grid-inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.9rem; }
.store-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid rgba(134, 239, 107, 0.55);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s;
}
.store-card:hover { transform: translateY(-2px); border-color: rgba(134, 239, 107, 0.45); }
.store-map { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); }
.store-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-pin {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    background: var(--lime);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 0 0 5px rgba(134, 239, 107, 0.15);
}
.store-body { padding: 0.9rem 1.1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.store-name { margin: 0; color: var(--text); font-weight: 600; font-size: 1rem; }
.store-line { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.store-district { margin: 0.25rem 0 0; color: var(--gold-1); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.maps-link {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 0.7rem;
    color: var(--lime);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s;
}
.maps-link:hover { opacity: 0.75; text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { margin-top: 2rem; background: #050504; }
.footer-inner { text-align: center; padding: 3rem 1rem; display: flex; flex-direction: column; align-items: center; }
.footer-brand { font-family: 'Cinzel', serif; font-size: 1.6rem; letter-spacing: 0.2em; text-transform: uppercase; margin: 1rem 0 0; }
.footer-brand span { display: block; font-family: 'Josefin Sans', sans-serif; font-size: 0.8rem; letter-spacing: 0.9em; color: var(--muted); margin-right: -0.9em; }
.footer .tagline { font-size: 1.2rem; margin-top: 0.8rem; }
.footer-small { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; }

/* ---------- Modals ---------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    padding: 1rem;
}
.modal-content {
    background: var(--surface);
    border: 1px solid var(--line);
    max-width: 500px;
    margin: 6vh auto;
    padding: 2rem;
    border-radius: var(--radius);
    position: relative;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.modal-content h2 { font-size: 1.8rem; }
.modal-content h3 { font-size: 1rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--lime); margin: 1.5rem 0 0.5rem; }
.close { position: absolute; right: 1.2rem; top: 0.8rem; font-size: 1.8rem; cursor: pointer; color: var(--muted); }
.close:hover { color: var(--text); }
form label { display: block; margin-top: 0.9rem; font-weight: 400; font-size: 0.85rem; color: var(--muted); letter-spacing: 0.05em; }
form input, form textarea, select, .cart-summary input {
    width: 100%;
    padding: 0.7rem 0.8rem;
    margin-top: 0.35rem;
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    font-size: 0.95rem;
}
.cart-summary input { margin-top: 0.6rem; }
form input:focus, form textarea:focus, select:focus, .cart-summary input:focus { outline: none; border-color: var(--lime); }
.checkbox-label { display: flex; align-items: center; gap: 0.6rem; margin-top: 1rem; }
.checkbox-label input { width: auto; margin: 0; accent-color: var(--lime); }
.cart-item {
    display: grid;
    grid-template-columns: 1fr auto 5.5rem auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
}
.cart-item-info { display: flex; flex-direction: column; line-height: 1.3; }
.cart-item .qty { color: var(--muted); font-size: 0.8rem; }
.cart-item .qty-stepper { flex: none; }
.cart-item .qty-stepper button { width: 2rem; height: 2rem; font-size: 1.05rem; }
.cart-item .qty-stepper span { min-width: 1.6rem; }
.cart-item-subtotal { text-align: right; }
.cart-remove { background: none; border: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; padding: 0 0.25rem; }
.cart-remove:hover { color: #e8846b; }
@media (max-width: 420px) {
    .cart-item { grid-template-columns: 1fr auto auto; }
    .cart-item-subtotal { grid-column: 1; text-align: left; }
}
.cart-total-row { display: flex; justify-content: space-between; font-family: 'Cinzel', serif; font-size: 1.3rem; margin: 1rem 0 0; }
.cart-total-row span:last-child { color: var(--lime); font-weight: 700; }
.empty { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
    .story { grid-template-columns: 1fr; }
    .banner { min-height: 340px; background-position: 65% center; }
}
@media (max-width: 520px) {
    .navbar { justify-content: center; }
    .navbar nav { justify-content: center; gap: 0.4rem 1rem; }
    .hero-sub { letter-spacing: 0.18em; }
}

/* ===== Admin page (/admin) ===== */
.admin-page [hidden] { display: none; }
.admin-main { max-width: 760px; margin: 0 auto; padding: 3rem 16px 4rem; }
.admin-main h1 { font-size: 2rem; margin-bottom: 1.5rem; }
.admin-login { max-width: 360px; display: grid; gap: 0.6rem; }
.admin-error { color: #ff8a7a; min-height: 1.2em; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.admin-order { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.admin-order header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.admin-order ul { margin: 0.5rem 0; padding-left: 1.2rem; }
.admin-order p { margin: 0.4rem 0; overflow-wrap: anywhere; }
.admin-status { font-size: 0.85rem; letter-spacing: 0.05em; color: var(--muted); }
.status-awaiting_transfer .admin-status, .status-pending .admin-status { color: var(--gold-1); }
.status-paid .admin-status { color: var(--lime); }
