/* ============================================================
   Furn Fawz — vanilla CSS for the production PHP site.
   Palette: warm cream, terracotta primary, amber accent, ink footer.
   ============================================================ */

:root {
    --bg:               #fbf6ec;
    --surface:          #ffffff;
    --card:             #fffaf2;
    --foreground:       #2a1e16;
    --muted-foreground: #7a6757;
    --primary:          #b9542a;
    --primary-strong:   #9d4421;
    --primary-soft:     #fbe7d6;
    --primary-foreground: #fffaf2;
    --accent:           #d39b48;
    --accent-soft:      #f6e4c6;
    --secondary:        #f0e3d0;
    --border:           #e8d8c5;
    --border-soft:      #f0e1cc;
    --ink:              #221913;
    --ink-foreground:   #f3e6d2;
    --ink-muted:        rgba(243, 230, 210, 0.65);
    --destructive:      #b42318;
    --success:          #3a6f38;
    --success-bg:       #ecf6e8;
    --shadow-sm:        0 4px 12px rgba(34, 25, 19, 0.06);
    --shadow-md:        0 12px 28px rgba(34, 25, 19, 0.08);
    --shadow-lg:        0 24px 60px rgba(34, 25, 19, 0.12);
    --radius:           0.875rem;
    --radius-sm:        0.5rem;
    --radius-md:        0.7rem;
    --radius-lg:        0.875rem;
    --radius-xl:        1.25rem;
    --radius-2xl:       1.6rem;
    --radius-3xl:       2rem;
    --radius-full:      999px;
    --max-width:        1180px;

    --font-serif: 'Playfair Display', 'Fraunces', Georgia, serif;
    --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
}

* { box-sizing: border-box; }
html { font-family: var(--font-sans); }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.55;
    color: var(--foreground);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    max-width: 100%;
    overflow-x: clip;
}

html,
body,
.table-wrap,
.admin-nav,
.notification-list {
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
.admin-nav::-webkit-scrollbar,
.notification-list::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    letter-spacing: 0;
    margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(185, 84, 42, 0.35);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.is-hidden { display: none !important; }

/* ---------- Layout ---------- */
.container {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 0 1.25rem;
}
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }

main { display: block; flex: 1 0 auto; }

/* ---------- Inline SVG icon defaults ---------- */
.icon { width: 1.1rem; height: 1.1rem; flex: none; }
.icon-sm { width: 0.9rem; height: 0.9rem; }
.icon-lg { width: 1.4rem; height: 1.4rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    border: 1px solid transparent; border-radius: var(--radius-full);
    padding: 0.75rem 1.25rem;
    font-weight: 600; font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    white-space: nowrap;
    line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: wait; transform: none; }

.btn-primary    { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-outline    { background: var(--surface); color: var(--foreground); border-color: var(--border); }
.btn-outline:hover { background: var(--card); border-color: rgba(185, 84, 42, 0.45); color: var(--primary); }
.btn-ghost      { background: transparent; color: var(--muted-foreground); }
.btn-ghost:hover { background: var(--card); color: var(--foreground); }
.btn-destructive { background: rgba(180, 35, 24, 0.08); color: var(--destructive); }
.btn-destructive:hover { background: rgba(180, 35, 24, 0.15); }
.btn-link {
    background: none; border: none; color: var(--primary); padding: 0;
    text-decoration: underline; font-weight: 600; cursor: pointer;
}

.btn-lg { padding: 0.95rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
.btn-icon {
    width: 2.5rem; height: 2.5rem; padding: 0;
    border-radius: var(--radius-full);
}

/* ---------- Eyebrow / Header tags ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.22em;
    color: var(--primary);
}
.eyebrow .bar { display: inline-block; width: 2rem; height: 1px; background: rgba(185, 84, 42, 0.45); }

/* ============================================================
   Site Header
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 246, 236, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 4rem; gap: 0.75rem;
}
.brand {
    display: inline-flex; align-items: center; gap: 0.5rem;
    min-width: 0;
}
@media (min-width: 640px) { .brand { gap: 0.65rem; } }
.brand-mark {
    width: 1.75rem; height: 1.75rem;
    display: inline-grid; place-items: center;
    background: var(--primary); color: var(--primary-foreground);
    border-radius: var(--radius-full);
    box-shadow: 0 6px 16px rgba(185, 84, 42, 0.25);
}
@media (min-width: 640px) { .brand-mark { width: 2.25rem; height: 2.25rem; } }
.brand-mark img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.brand-mark .icon { width: 0.95rem; height: 0.95rem; }
@media (min-width: 640px) { .brand-mark .icon { width: 1.15rem; height: 1.15rem; } }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; overflow: hidden; }
.brand-text strong {
    font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700;
    color: var(--foreground); letter-spacing: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-text small {
    margin-top: 0.2rem;
    font-size: 0.62rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.22em;
    color: var(--muted-foreground);
}

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
    font-size: 0.92rem; font-weight: 500;
    color: var(--muted-foreground);
    transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--foreground); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex: none; }
.header-phone {
    display: none; align-items: center; gap: 0.5rem;
    font-size: 0.9rem; font-weight: 500; color: var(--muted-foreground);
}
.header-phone .icon { color: var(--primary); }
.header-phone:hover { color: var(--foreground); }

.cart-btn {
    position: relative;
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: var(--radius-full);
    background: var(--primary); color: var(--primary-foreground);
    border: none; font-weight: 600; cursor: pointer;
    transition: background 0.15s ease;
}
.cart-btn:hover { background: var(--primary-strong); }
.cart-btn-label { display: none; }
.cart-badge {
    position: absolute; top: -0.25rem; right: -0.25rem;
    min-width: 1.25rem; height: 1.25rem; padding: 0 0.25rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent); color: var(--ink);
    border-radius: var(--radius-full);
    font-size: 0.7rem; font-weight: 700;
    transition: transform 0.15s ease;
}
.cart-badge.bounce {
    animation: badge-bounce 0.3s ease;
}
@keyframes badge-bounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.mobile-nav-toggle {
    display: none; align-items: center; justify-content: center;
    width: 2.35rem; height: 2.35rem;
    flex: none;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--foreground); cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.mobile-nav-toggle:hover { background: var(--secondary); }
.mobile-nav-toggle.is-open {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--primary-foreground);
}
.mobile-nav-icon {
    position: relative;
    display: block;
    width: 1.1rem;
    height: 0.85rem;
}
.mobile-nav-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: var(--radius-full);
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
}
.mobile-nav-icon span:nth-child(1) { top: 0; }
.mobile-nav-icon span:nth-child(2) { top: calc(50% - 1px); }
.mobile-nav-icon span:nth-child(3) { bottom: 0; }
.mobile-nav-toggle.is-open .mobile-nav-icon span:nth-child(1) { transform: translateY(0.425rem) rotate(45deg); }
.mobile-nav-toggle.is-open .mobile-nav-icon span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.is-open .mobile-nav-icon span:nth-child(3) { transform: translateY(-0.425rem) rotate(-45deg); }
.mobile-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
    background: var(--surface);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-lg);
    padding: 0.65rem 1rem;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.mobile-nav a {
    display: flex; align-items: center;
    min-height: 2.75rem;
    padding: 0.75rem 0.9rem;
    font-weight: 500; color: var(--foreground);
    border-radius: var(--radius-md);
    transition: background 0.12s ease, color 0.12s ease;
}
.mobile-nav a:hover { background: var(--secondary); color: var(--primary); }
.mobile-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
@media (min-width: 768px)  { .main-nav { display: flex; } .cart-btn-label { display: inline; } .mobile-nav-toggle, .mobile-nav { display: none; } }
@media (max-width: 767px)  {
    .header-inner { height: 4.25rem; gap: 0.55rem; }
    .header-inner .brand { flex: 1 1 auto; }
    .brand-text strong { font-size: 1.1rem; }
    .brand-text small { font-size: 0.56rem; letter-spacing: 0.16em; }
    .main-nav { display: none; }
    .mobile-nav-toggle { display: inline-flex; }
    .mobile-nav { display: block; }
    .header-actions { gap: 0.5rem; }
    .site-header:not(.admin-header) .header-actions { display: none; }
    .cart-btn {
        width: 2.35rem; height: 2.35rem;
        padding: 0;
        justify-content: center;
    }
}
@media (min-width: 1024px) { .header-phone { display: inline-flex; } }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative; overflow: hidden;
    border-bottom: 1px solid var(--border-soft);
}
.hero-grid {
    display: grid; gap: 2rem; align-items: center;
    padding-block: 2rem 3rem;
}
@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr 1fr; padding-block: 4rem; gap: 3.5rem; }
}
.hero-copy { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-copy h1 {
    font-size: 2.35rem;
    line-height: 1.05; font-weight: 700;
    max-width: 16ch; text-wrap: balance;
}
.hero-copy p.lead {
    font-size: 1.1rem; color: var(--muted-foreground);
    max-width: 32rem; line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-trust {
    display: flex; flex-wrap: wrap; gap: 1rem 2rem;
    padding-top: 1.5rem; margin-top: 0.5rem;
    border-top: 1px solid var(--border-soft);
    font-size: 0.92rem;
}
.hero-trust span {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-weight: 500; color: var(--foreground);
}
.hero-trust .icon { color: var(--primary); }
.hero-trust .icon-star { color: var(--accent); fill: var(--accent); }

.hero-media { position: relative; }
.hero-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-soft);
    background: var(--card);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-fallback {
    display: grid; place-items: center; height: 100%; color: var(--primary);
    background: linear-gradient(140deg, #f9e0c5 0%, #f0c498 100%);
    font-family: var(--font-serif); font-size: 4rem; font-weight: 700;
}
.hero-badge {
    position: absolute; left: 1.25rem; bottom: -1.25rem;
    display: inline-flex; align-items: center; gap: 0.75rem;
    background: var(--surface);
    border-radius: var(--radius-2xl);
    padding: 0.75rem 1rem;
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-soft);
}
.hero-badge-icon {
    display: inline-grid; place-items: center;
    width: 2.5rem; height: 2.5rem;
    border-radius: var(--radius-full);
    background: var(--primary-soft); color: var(--primary);
}
.hero-badge-text strong {
    display: block; font-family: var(--font-serif); font-size: 1rem; font-weight: 700;
}
.hero-badge-text small { color: var(--muted-foreground); font-size: 0.8rem; }
@media (min-width: 640px) {
    .hero-copy h1 { font-size: 3rem; }
}
@media (min-width: 1024px) {
    .hero-copy h1 { font-size: 3.75rem; }
}
@media (max-width: 639px) {
    .hero-copy { gap: 1.15rem; }
    .hero-copy p.lead { font-size: 1rem; }
    .hero-actions { display: grid; grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    .hero-trust {
        gap: 0.65rem;
        padding-top: 1rem;
        font-size: 0.86rem;
    }
    .hero-trust span { width: 100%; }
    .hero-photo { border-radius: var(--radius-xl); }
    .hero-badge {
        left: 0.75rem;
        right: 0.75rem;
        bottom: -1rem;
        width: auto;
        border-radius: var(--radius-xl);
    }
}

/* ============================================================
   Menu Section
   ============================================================ */
.menu-section { padding: 2rem 0 1rem; }
@media (min-width: 640px) { .menu-section { padding: 3rem 0 1.5rem; } }
@media (min-width: 1024px) { .menu-section { padding: 4rem 0 2rem; } }
.menu-head {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    text-align: center;
}
@media (min-width: 640px) { .menu-head { gap: 0.75rem; } }
.menu-head h2 {
    font-size: 1.8rem;
    font-weight: 700;
}
@media (min-width: 640px) { .menu-head h2 { font-size: 2.2rem; } }
@media (min-width: 1024px) { .menu-head h2 { font-size: 2.4rem; } }
.menu-head p { color: var(--muted-foreground); max-width: 32rem; margin: 0; }

.menu-toolbar {
    margin-top: 1.25rem;
    display: flex; flex-direction: column; gap: 0.75rem;
    align-items: stretch;
}
@media (min-width: 640px) {
    .menu-toolbar { margin-top: 1.5rem; flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; }
    .search-box { max-width: 22rem; }
}
.search-box { position: relative; width: 100%; }
.search-box .icon {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    color: var(--muted-foreground);
}
.search-box input {
    width: 100%; padding: 0.7rem 1rem 0.7rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--surface); color: var(--foreground);
}
.category-chips {
    display: flex; gap: 0.5rem;
    overflow-x: auto; flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    margin-bottom: -0.5rem;
}
.category-chips::-webkit-scrollbar { display: none; }
.chip {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.45rem 1rem;
    border: 1px solid var(--border);
    background: var(--surface); color: var(--muted-foreground);
    border-radius: var(--radius-full); cursor: pointer; font-size: 0.88rem; font-weight: 500;
    transition: all 0.15s ease;
}
.chip:hover { color: var(--foreground); border-color: rgba(185, 84, 42, 0.4); }
.chip.is-active {
    background: var(--primary); color: var(--primary-foreground);
    border-color: var(--primary);
}
.chip-extra { display: none; }
.chip-extra.is-active { display: inline-flex; }
.chip-toggle {
    color: var(--primary); border-color: var(--primary);
    background: var(--surface);
}
.category-chips.is-expanded .chip-extra { display: inline-flex; }
.category-chips.is-expanded .chip-toggle { display: none; }

.chips-sticky {
    position: sticky; top: 4rem; z-index: 30;
    background: var(--bg);
    padding: 0.5rem 0;
    margin-top: 0.75rem;
}
.chips-sticky::after {
    content: '';
    position: absolute; right: 0; top: 0; bottom: 0;
    width: 2.5rem;
    background: linear-gradient(to left, var(--bg), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}
.chips-sticky.is-overflowing::after { opacity: 1; }

.product-grid {
    margin-top: 1.25rem;
    display: grid; gap: 0.75rem;
    grid-template-columns: 1fr;
}
@media (min-width: 560px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 640px)  { .product-grid { margin-top: 1.5rem; gap: 1.5rem; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
    display: flex; flex-direction: column;
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(185, 84, 42, 0.2);
    border-color: rgba(185, 84, 42, 0.22);
}
.product-card.is-filtered-hidden { display: none; }

.product-media {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden;
    background: linear-gradient(140deg, #f7e6cf 0%, #f0c697 100%);
}
.product-media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease;
}
.product-card:hover .product-media img { transform: scale(1.05); }
.product-media-fallback {
    display: grid; place-items: center; height: 100%;
    color: var(--primary); font-family: var(--font-serif);
    font-size: 2.6rem; font-weight: 700;
}
.product-tag {
    position: absolute; left: 0.8rem; top: 0.8rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    padding: 0.3rem 0.7rem;
    font-size: 0.7rem; font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(6px);
}
.product-body {
    display: flex; flex-direction: column; gap: 0.5rem; flex: 1;
    padding: 1.25rem;
}
@media (min-width: 640px) {
    .product-body { gap: 0.7rem; padding: 1.5rem; }
}
.product-cat {
    font-size: 0.55rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--muted-foreground);
}
@media (min-width: 640px) { .product-cat { font-size: 0.62rem; } }
.product-name {
    font-family: var(--font-serif); font-size: 1rem; font-weight: 600;
    line-height: 1.25;
}
@media (min-width: 640px) { .product-name { font-size: 1.15rem; } }
.product-desc {
    color: var(--muted-foreground); font-size: 0.8rem;
    line-height: 1.4; flex: 1; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (min-width: 640px) { .product-desc { font-size: 0.9rem; } }
.product-footer {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 0.5rem;
    padding-top: 0.6rem; border-top: 1px solid var(--border-soft);
}
@media (min-width: 640px) { .product-footer { padding-top: 0.9rem; } }
.product-price {
    font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700;
}
@media (min-width: 640px) { .product-price { font-size: 1.3rem; } }
.product-price small {
    display: block; font-family: var(--font-sans); font-size: 0.62rem;
    color: var(--muted-foreground); font-weight: 600;
}
@media (min-width: 640px) { .product-price small { font-size: 0.72rem; } }
.product-cart-note {
    margin: 0; color: var(--success); font-size: 0.78rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 0.3rem;
}

.menu-empty {
    margin: 3rem auto 1rem;
    padding: 4rem 1rem;
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius-2xl);
    color: var(--muted-foreground);
}
.menu-empty h3 { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; color: var(--foreground); margin: 0; }
.menu-empty p { margin: 0; }

/* ============================================================
   About Section
   ============================================================ */
.about-section {
    background: var(--secondary);
    margin-top: 2rem;
}
.about-inner { padding-block: 4rem; }
.about-head {
    display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
    text-align: center; max-width: 36rem; margin: 0 auto;
}
.about-head h2 {
    font-size: 1.8rem; font-weight: 700;
}
@media (min-width: 640px) { .about-head h2 { font-size: 2.2rem; } }
@media (min-width: 1024px) { .about-head h2 { font-size: 2.4rem; } }
.about-head p { color: var(--muted-foreground); }
.about-features {
    margin-top: 3rem;
    display: grid; gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .about-features { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-2xl);
    padding: 1.8rem 1.5rem;
    text-align: center;
    box-shadow: 0 0 0 1px var(--border-soft);
    transition: box-shadow 0.2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-md), 0 0 0 1px var(--border-soft); }
.feature-card .feature-number {
    position: absolute; right: 1.25rem; top: 0.9rem;
    font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700;
    color: rgba(185, 84, 42, 0.10);
}
.feature-card .feature-icon {
    width: 3rem; height: 3rem; margin: 0 auto 1rem;
    display: grid; place-items: center;
    border-radius: var(--radius-full);
    background: var(--primary-soft); color: var(--primary);
}
.feature-card h3 {
    font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600;
    margin-bottom: 0.5rem;
}
.feature-card p { color: var(--muted-foreground); font-size: 0.9rem; margin: 0; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--ink); color: var(--ink-foreground);
    flex: none;
}
.site-footer .container { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.footer-grid {
    display: grid; gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-col {
    display: flex; flex-direction: column; gap: 0.75rem;
    min-width: 0;
}
.footer-col h3 {
    font-family: var(--font-serif); font-size: 1rem; font-weight: 600;
    color: var(--ink-foreground); margin: 0;
}
.footer-col p, .footer-col a {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.875rem; line-height: 1.5;
    color: var(--ink-muted);
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--ink-foreground); }
.footer-col .icon { color: var(--accent); width: 1rem; height: 1rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-brand .brand-mark { background: var(--primary); }
.footer-brand strong { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--ink-foreground); }
.footer-about { max-width: 20rem; color: var(--ink-muted); font-size: 0.875rem; line-height: 1.5; }
.footer-social { display: flex; gap: 0.5rem; margin-top: 0.25rem; }
.footer-social a {
    width: 2.25rem; height: 2.25rem;
    background: rgba(243, 230, 210, 0.15); color: var(--ink-foreground);
    border: 1px solid rgba(243, 230, 210, 0.12);
    border-radius: var(--radius-full);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    margin: 0;
}
.footer-social a:hover { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.footer-social a .icon { width: 1rem; height: 1rem; }
.footer-bottom {
    margin-top: 2.5rem; padding: 1.25rem 0;
    border-top: 1px solid rgba(243, 230, 210, 0.1);
    text-align: center; font-size: 0.875rem;
    color: rgba(243, 230, 210, 0.6);
}
@media (max-width: 639px) {
    .site-footer .container { padding-top: 2.5rem; padding-bottom: 2.5rem; }
    .footer-grid { gap: 1.75rem; }
}

/* ============================================================
   Alerts / feedback
   ============================================================ */
.alert {
    padding: 0.9rem 1.1rem;
    border: 1px solid;
    border-radius: var(--radius-md);
    font-weight: 500;
    margin-bottom: 1rem;
}
.alert h2 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.alert p { margin: 0; }
.alert-success { color: var(--success); border-color: #b9d6a8; background: var(--success-bg); }
.alert-error   { color: #9f3a38; border-color: #e3b7b6; background: #fdf0ef; }

/* Toast for inline cart feedback */
.toast-stack {
    position: fixed; right: max(1rem, env(safe-area-inset-right, 0)); bottom: max(1rem, env(safe-area-inset-bottom, 0)); z-index: 200;
    display: flex; flex-direction: column; gap: 0.5rem;
    pointer-events: none;
}
.toast {
    background: var(--ink); color: var(--ink-foreground);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem; font-weight: 500;
    pointer-events: auto;
    animation: toast-in 0.18s ease-out;
}
.toast.is-error { background: #7a1a14; }
@keyframes toast-in {
    from { transform: translateY(6px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* ============================================================
   Sticky checkout bar
   ============================================================ */
.cart-sticky-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    padding: 0.75rem 1.25rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0));
    background: var(--surface);
    border-top: 1px solid var(--border-soft);
    box-shadow: 0 -4px 20px rgba(34, 25, 19, 0.1);
    animation: sticky-bar-in 0.2s ease-out;
}
@keyframes sticky-bar-in {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.cart-sticky-bar button {
    display: flex; align-items: center; gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: none; border-radius: var(--radius-full);
    background: var(--primary); color: var(--primary-foreground);
    font-weight: 600; font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}
.cart-sticky-bar button:hover { background: var(--primary-strong); }
.cart-sticky-icon {
    display: inline-flex; align-items: center;
}
.cart-sticky-text { flex: 1; text-align: left; }

/* ============================================================
   Cart drawer
   ============================================================ */
.drawer-backdrop {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(34, 25, 19, 0.45);
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
}
.drawer-backdrop.is-visible { opacity: 1; pointer-events: auto; }

.drawer {
    position: fixed; top: 0; right: 0; z-index: 100;
    width: min(100%, 28rem); height: 100dvh;
    display: flex; flex-direction: column;
    background: var(--surface);
    border-left: 1px solid var(--border-soft);
    box-shadow: -20px 0 60px rgba(34, 25, 19, 0.18);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    padding-right: env(safe-area-inset-right, 0);
}
.drawer.is-open { transform: translateX(0); }
body.is-drawer-open { overflow: hidden; }
body.is-drawer-open .cart-sticky-bar { display: none; }

.drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-soft);
    flex: none;
}
.drawer-header h2 {
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700;
}
.drawer-header h2 .icon { color: var(--primary); }
.drawer-close {
    width: 2.25rem; height: 2.25rem;
    display: inline-grid; place-items: center;
    background: transparent; border: 1px solid var(--border);
    border-radius: var(--radius-full); color: var(--foreground); cursor: pointer;
}
.drawer-close:hover { background: var(--card); }

.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem; }
.drawer-empty {
    height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.75rem; text-align: center; padding: 0 1.5rem;
}
.drawer-empty-icon {
    width: 4rem; height: 4rem; border-radius: var(--radius-full);
    background: var(--secondary); color: var(--muted-foreground);
    display: flex; align-items: center; justify-content: center;
}
.drawer-empty-icon .icon-lg { width: 1.75rem; height: 1.75rem; }
.drawer-empty h3 { font-family: var(--font-serif); font-size: 1.125rem; font-weight: 600; }
.drawer-empty p { color: var(--muted-foreground); font-size: 0.875rem; margin: 0; }

.drawer-items { display: flex; flex-direction: column; gap: 1rem; }
.drawer-item { display: flex; gap: 0.75rem; }
.drawer-thumb {
    width: 4rem; height: 4rem; flex: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--secondary); color: var(--primary);
    display: grid; place-items: center;
    font-family: var(--font-serif); font-weight: 700;
}
.drawer-thumb img { width: 100%; height: 100%; object-fit: cover; }
.drawer-item-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.drawer-item-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 0.5rem;
}
.drawer-item-name { font-size: 0.875rem; font-weight: 600; color: var(--foreground); }
.drawer-item-remove {
    background: none; border: none; color: var(--muted-foreground); cursor: pointer;
    padding: 0.15rem; transition: color 0.15s ease;
}
.drawer-item-remove:hover { color: var(--destructive); }
.drawer-item-remove .icon-sm { width: 1rem; height: 1rem; }
.drawer-item-price { font-size: 0.875rem; color: var(--muted-foreground); }
.drawer-item-bottom {
    margin-top: auto; padding-top: 0.5rem;
    display: flex; align-items: center; justify-content: space-between;
}
.qty-control {
    display: inline-flex; align-items: center; gap: 0.25rem;
    border: 1px solid var(--border); border-radius: var(--radius-full);
    padding: 0.125rem;
    overflow: visible;
}
.qty-control button {
    width: 1.75rem; height: 1.75rem;
    display: grid; place-items: center;
    background: transparent; border: none; border-radius: var(--radius-full);
    color: var(--foreground); cursor: pointer;
    transition: background 0.15s ease;
}
.qty-control button:hover { background: var(--secondary); }
.qty-control button:disabled { color: var(--muted-foreground); cursor: not-allowed; }
.qty-control button .icon-sm { width: 0.875rem; height: 0.875rem; }
.qty-value { min-width: 1.5rem; text-align: center; font-size: 0.875rem; font-weight: 600; }
.drawer-line-total { font-size: 0.875rem; font-weight: 700; }

.drawer-divider {
    margin: 1.25rem 0; height: 1px; background: var(--border-soft); border: 0;
}

.drawer-form { display: flex; flex-direction: column; gap: 0.75rem; }
.drawer-form-title {
    font-family: var(--font-serif); font-size: 1rem; font-weight: 600;
}
.drawer-form .field { display: flex; flex-direction: column; gap: 0.3rem; }
.drawer-form label { font-size: 0.85rem; font-weight: 600; }
.drawer-form input,
.drawer-form textarea {
    width: 100%; padding: 0.6rem 0.85rem;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--surface); color: var(--foreground);
}
.drawer-form textarea { min-height: 4rem; resize: vertical; }
.drawer-form .field-error {
    font-size: 0.8rem; color: var(--destructive); font-weight: 600; margin: 0;
}
.drawer-form .field-error:empty { display: none; }
.drawer-form input[aria-invalid="true"],
.drawer-form textarea[aria-invalid="true"] {
    border-color: var(--destructive);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.drawer-footer {
    flex: none; border-top: 1px solid var(--border-soft);
    padding: 1rem 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0));
    background: var(--surface);
    display: flex; flex-direction: column; gap: 0.75rem;
}
.drawer-subtotal {
    display: flex; align-items: center; justify-content: space-between;
}
.drawer-subtotal .label { color: var(--muted-foreground); }
.drawer-subtotal .value {
    font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700;
}
.drawer-subtotal .value small {
    display: block; font-family: var(--font-sans);
    font-size: 0.72rem; font-weight: 600; color: var(--muted-foreground);
    text-align: right;
}
.drawer-clear {
    background: none; border: none; color: var(--muted-foreground);
    font-size: 0.85rem; cursor: pointer; text-align: center;
    padding: 0.25rem; transition: color 0.15s ease;
}
.drawer-clear:hover { color: var(--destructive); }

/* ============================================================
   Cart / Checkout fallback pages (keeps existing routes working)
   ============================================================ */
.cart-page, .checkout-page { padding-block: 3rem; }
.cart-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.cart-page-header h1 { font-size: 2rem; font-weight: 700; }
@media (min-width: 768px) { .cart-page-header h1 { font-size: 2.4rem; } }
.page-copy { color: var(--muted-foreground); margin: 0.25rem 0 0; }
.empty-state {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-2xl);
    padding: 3rem 1.5rem; text-align: center;
}
.empty-state h2 { font-family: var(--font-serif); font-weight: 700; margin-bottom: 0.5rem; }
.empty-state p { color: var(--muted-foreground); margin-bottom: 1rem; }

.success-card {
    max-width: 36rem; margin: 3rem auto 0;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-2xl);
    padding: 2.5rem 2rem; text-align: center;
    box-shadow: var(--shadow-md);
}
.success-card .success-icon {
    width: 4rem; height: 4rem; margin: 0 auto 1rem;
    border-radius: var(--radius-full);
    background: var(--success-bg); color: var(--success);
    display: grid; place-items: center;
}
.success-card h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.success-card .actions {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ============================================================
   Admin
   ============================================================ */
body.admin-body { background: var(--bg); }

/* Admin container overrides */
.admin-header .container,
.admin-page .container {
    max-width: 1200px;
    padding-inline: var(--space-4);
}
@media (min-width: 640px) {
    .admin-header .container,
    .admin-page .container {
        padding-inline: var(--space-5);
    }
}

.admin-header {
    background: var(--surface); border-bottom: 1px solid var(--border-soft);
    position: sticky; top: 0; z-index: 20;
}
.admin-header .header-inner {
    height: 4.5rem;
    padding-block: 1.125rem;
}
.admin-header .brand { min-width: 0; flex: 0 1 18rem; }
.admin-header .brand-text small { color: var(--primary); }
.admin-welcome {
    margin: 0.2rem 0 0; color: var(--muted-foreground); font-size: 0.82rem;
}
.admin-nav {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 1.75rem);
    align-items: center;
    min-width: 0;
}
.admin-nav a {
    font-size: 0.9rem; font-weight: 500; color: var(--muted-foreground);
    padding: 0.5rem 0;
    white-space: nowrap;
}
.admin-nav a.active, .admin-nav a:hover { color: var(--foreground); }
.admin-nav-toggle { display: none !important; }

@media (min-width: 961px) {
    .admin-header .admin-nav { display: flex !important; }
    .admin-header .admin-nav-toggle { display: none !important; }
}

@media (max-width: 960px) {
    .admin-header .header-inner {
        height: auto;
        min-height: 4.5rem;
        padding-block: 0.75rem;
        gap: 0.5rem;
    }
    .admin-header .brand {
        flex: 1 1 auto;
        max-width: none;
    }
    .admin-header .brand-text strong { font-size: 1.05rem; }
    .admin-header .brand-text small {
        max-width: 9rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .admin-header .header-actions { margin-left: auto; gap: 0.4rem; }
    .admin-header .btn.btn-ghost { display: none; }
    .admin-header .nav-button {
        min-height: 2.35rem;
        padding: 0.45rem 0.7rem;
    }

    .admin-header .admin-nav-toggle {
        display: inline-flex !important; align-items: center; justify-content: center;
        width: 2.35rem; height: 2.35rem;
        background: none; border: 1px solid var(--border);
        border-radius: var(--radius-full);
        color: var(--foreground); cursor: pointer;
    }
    .admin-header .admin-nav-toggle:hover { background: var(--card); }

    .admin-header .admin-nav {
        position: fixed; top: 4.5rem; left: 0; right: 0; z-index: 25;
        flex-direction: column; gap: 0;
        align-items: stretch;
        justify-content: flex-start;
        background: var(--surface);
        border-bottom: 1px solid var(--border-soft);
        box-shadow: var(--shadow-md);
        padding: 0.5rem var(--space-4);
        display: none !important;
    }
    .admin-header .admin-nav.is-open { display: flex !important; }
    .admin-header .admin-nav a {
        padding: 0.75rem 0.9rem;
        border-radius: var(--radius-md);
        white-space: nowrap;
    }
    .admin-header .admin-nav a.active { background: var(--card); }
}
.logout-form { margin: 0; }
.nav-button {
    background: none; border: 1px solid var(--border); color: var(--foreground);
    padding: 0.4rem 0.9rem; border-radius: var(--radius-full); cursor: pointer;
    font-size: 0.85rem;
}
.nav-button:hover { background: var(--card); border-color: var(--primary); color: var(--primary); }

.admin-page { padding: var(--space-6) 0 var(--space-8); }
.admin-grid { display: grid; gap: var(--space-6); }

.panel-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) {
    .panel-card { padding: var(--space-6); }
}
.panel-card-flush { padding: 0; }
.panel-card-flush > .panel-header,
.panel-card-flush > .alert,
.panel-card-flush > .admin-form-card,
.panel-card-flush > .table-wrap { padding: var(--space-5); }
@media (min-width: 768px) {
    .panel-card-flush > .panel-header,
    .panel-card-flush > .alert,
    .panel-card-flush > .admin-form-card,
    .panel-card-flush > .table-wrap { padding: var(--space-6); }
}
.panel-card-flush > .panel-header + .alert { padding-top: 0; }
.panel-card-flush > .table-wrap {
    padding: 0 var(--space-5);
}
@media (min-width: 768px) {
    .panel-card-flush > .table-wrap { padding: 0 var(--space-6); }
}
.panel-card-flush > .table-wrap .admin-table { margin: 0; }
.panel-header {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}
.admin-toolbar-card .panel-header {
    margin-bottom: var(--space-4);
}
.panel-header h1, .panel-header h2 { font-family: var(--font-serif); font-weight: 700; }
.panel-header h1 { font-size: 1.85rem; }
.panel-header h2 { font-size: 1.3rem; }

.analytics-cards {
    display: grid; gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
@media (max-width: 767px) {
    .analytics-cards { grid-template-columns: 1fr; }
}
.stat-card {
    background: var(--surface); border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl); padding: 1.25rem;
}
.stat-card .eyebrow {
    display: block; color: var(--muted-foreground); font-size: 0.68rem;
    margin-bottom: var(--space-2);
}
.stat-card h2 {
    font-family: var(--font-serif); font-size: 2.1rem; font-weight: 700;
    line-height: 1.1; padding-top: 0.15em;
    margin: 0 0 var(--space-2);
}
.stat-card .stat-icon {
    width: 2.5rem; height: 2.5rem; border-radius: var(--radius-md);
    background: var(--primary-soft); color: var(--primary);
    display: grid; place-items: center; margin-bottom: 0.75rem;
}

.admin-form-card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    padding: 1.25rem; background: var(--surface);
    margin-bottom: var(--space-5);
}
@media (min-width: 768px) {
    .admin-form-card { padding: var(--space-6); }
}
.admin-form {
    display: grid; gap: 1.25rem 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .admin-form { grid-template-columns: repeat(2, 1fr); } }
.admin-form label { font-weight: 600; font-size: 0.9rem; display: block; }
.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%; margin-top: 0.375rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--surface); color: var(--foreground);
}
.admin-form input[type="file"] { padding: 0.5rem 0.75rem; }
.admin-form textarea { min-height: 5rem; resize: vertical; }
.admin-form input[type="checkbox"] {
    width: auto; margin-top: 0;
    width: 1.05rem; height: 1.05rem; accent-color: var(--primary);
}
.admin-form .form-full { grid-column: 1 / -1; }
.admin-form .form-actions {
    grid-column: 1 / -1; display: flex; gap: 0.5rem; flex-wrap: wrap;
    margin-top: 0.5rem;
}
.admin-form-submit {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.admin-form .checkbox-inline {
    margin-block: var(--space-4);
}
.checkbox-inline {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-weight: 500;
}
.form-note { color: var(--muted-foreground); font-size: 0.85rem; margin: 0.375rem 0 0; display: block; }
.admin-image-preview { display: grid; gap: 0.5rem; }
.admin-image-preview img {
    width: 100%; max-width: 14rem; height: auto;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    object-fit: cover;
}

.inline-form { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.inline-form select {
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--surface);
}
.inline-form button[type="submit"] {
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--surface);
    color: var(--foreground);
    font-weight: 600; font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.inline-form button[type="submit"]:hover {
    background: var(--card);
    border-color: var(--primary);
    color: var(--primary);
}

.table-wrap {
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
    padding: var(--space-4) var(--space-4); text-align: left;
    border-bottom: 1px solid var(--border-soft); vertical-align: middle;
}
.admin-table th { background: var(--card); font-weight: 600; font-size: 0.85rem; color: var(--muted-foreground); }
.admin-table tbody tr:hover { background: rgba(251, 231, 214, 0.4); }
.table-actions { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.table-actions .btn-ghost { border-color: var(--border); }
.table-muted { color: var(--muted-foreground); font-size: 0.85rem; }
.table-thumb {
    width: 3rem; height: 3rem; border-radius: var(--radius-md);
    overflow: hidden; background: var(--secondary);
}
.table-thumb img { width: 100%; height: 100%; object-fit: cover; }
.status-pill {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.25rem 0.7rem; border-radius: var(--radius-full);
    font-size: 0.78rem; font-weight: 700; text-transform: capitalize;
    line-height: 1.25;
}
.status-pill-success { background: var(--success-bg); color: var(--success); }
.status-pill-warn    { background: #fff1d6; color: #8a5a14; }
.status-pill-muted   { background: var(--secondary); color: var(--muted-foreground); }

.filter-form { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-end; }
.order-filter-form {
    display: grid;
    grid-template-columns: minmax(14rem, 22rem) auto auto;
    align-items: end;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: var(--card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
}
.filter-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: min(100%, 18rem);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted-foreground);
}
.filter-field select {
    width: min(100%, 18rem);
    min-width: 0;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--foreground);
}
.order-filter-form .filter-field {
    min-width: 0;
}
.order-filter-form .filter-field select {
    width: 100%;
}
.filter-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: var(--space-4);
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: rgba(251, 231, 214, 0.35);
    color: var(--muted-foreground);
    font-size: 0.9rem;
}
.filter-summary strong { color: var(--foreground); }

@media (max-width: 960px) {
    .admin-page { padding-block: var(--space-5) var(--space-7); }
    .admin-grid { gap: var(--space-5); }
    .panel-header {
        align-items: stretch;
        gap: 0.75rem;
    }
    .panel-header h1 { font-size: 1.65rem; }
    .panel-header h2 { font-size: 1.2rem; }
    .panel-header .btn,
    .filter-form,
    .filter-form .filter-field,
    .filter-form button,
    .filter-form a,
    .admin-form-submit .btn {
        width: 100%;
    }
    .order-filter-form {
        grid-template-columns: 1fr;
        padding: 0.9rem;
    }
    .filter-field select { width: 100%; }
    .panel-card-flush > .table-wrap {
        padding: 0 1.25rem 1.25rem;
        overflow: visible;
    }
    .admin-table,
    .admin-table thead,
    .admin-table tbody,
    .admin-table tr,
    .admin-table th,
    .admin-table td {
        display: block;
    }
    .admin-table thead { display: none; }
    .admin-table tbody {
        display: grid;
        gap: 0.85rem;
    }
    .admin-table tr {
        border: 1px solid var(--border-soft);
        border-radius: var(--radius-lg);
        background: var(--surface);
        padding: 0.95rem;
        box-shadow: var(--shadow-sm);
    }
    .admin-table td {
        border-bottom: 0;
        padding: 0;
    }
    .admin-table td + td { margin-top: 0.65rem; }
    .admin-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.2rem;
        color: var(--muted-foreground);
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.12em;
    }
    .admin-table td[data-label=""]::before { display: none; }
    .table-actions,
    .inline-form {
        width: 100%;
        align-items: stretch;
    }
    .table-actions > *,
    .table-actions form,
    .inline-form select,
    .inline-form button,
    .table-actions .btn {
        width: 100%;
    }
    .table-thumb {
        width: 4.5rem;
        height: 4.5rem;
    }
}

.order-detail-grid {
    display: grid; gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) { .order-detail-grid { grid-template-columns: 1fr 1fr; } }
.order-detail-grid h3 { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 0.5rem; }
.order-detail-grid p { margin: 0.25rem 0; }

/* ---------- Auth page ---------- */
.auth-page {
    min-height: 100vh;
    display: grid; place-items: center;
    padding: 2rem; background: var(--bg);
}
.auth-card {
    width: min(100%, 26rem);
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-2xl);
    padding: 2.25rem 1.75rem;
    box-shadow: var(--shadow-md);
}
.auth-card .auth-logo {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-bottom: 1rem;
}
.auth-card h1 { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700; }
.auth-card .auth-copy { color: var(--muted-foreground); margin: 0.25rem 0 1.5rem; }
.auth-card label { display: block; margin-bottom: 1rem; font-weight: 600; font-size: 0.9rem; }
.auth-card input {
    width: 100%; margin-top: 0.4rem;
    padding: 0.7rem 0.95rem;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--surface); color: var(--foreground);
}
.auth-card button[type="submit"] { width: 100%; margin-top: 0.25rem; }
.auth-card .auth-back {
    display: inline-block; margin-top: 1.25rem;
    color: var(--muted-foreground); font-size: 0.85rem;
}
.auth-card .auth-back:hover { color: var(--foreground); }

/* ============================================================
   Upgrade additions: tracking timeline, analytics, notifications,
   pagination, theme colour picker, order tracking page.
   ============================================================ */

/* --- Order tracking timeline (public + admin) --- */
.track-timeline {
    list-style: none; margin: 1.25rem 0; padding: 0;
    display: grid; gap: 0.25rem;
}
.track-timeline-admin { margin: 1rem 1.5rem; }
.track-step {
    display: flex; align-items: flex-start; gap: 0.85rem;
    padding-bottom: 1rem; position: relative;
}
.track-step:not(:last-child)::before {
    content: ""; position: absolute; left: 13px; top: 26px; bottom: 0;
    width: 2px; background: var(--border);
}
.track-step.is-done:not(:last-child)::before { background: var(--primary); }
.track-dot {
    flex: 0 0 auto; width: 28px; height: 28px; border-radius: 999px;
    background: var(--secondary); color: var(--primary-foreground);
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--border); z-index: 1;
}
.track-step.is-done .track-dot { background: var(--primary); border-color: var(--primary); }
.track-step.is-current .track-dot { border-color: var(--primary); background: var(--primary-soft); }
.track-step-body { display: flex; flex-direction: column; padding-top: 0.2rem; }
.track-step-body strong { font-size: 0.95rem; }
.track-step.is-done .track-step-body strong { color: var(--foreground); }
.track-step:not(.is-done) .track-step-body strong { color: var(--muted-foreground); }
.track-step-body small { color: var(--muted-foreground); font-size: 0.78rem; }

.track-layout { display: grid; gap: 1.5rem; }
@media (min-width: 860px) {
    .track-layout { grid-template-columns: minmax(280px, 360px) 1fr; align-items: start; }
    .track-form-card { position: sticky; top: 1.5rem; }
}
.track-result-card .order-detail-grid { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border-soft); }
.track-form { display: grid; gap: 1rem; margin-top: 1rem; }
.track-form .field span { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.track-form input {
    width: 100%; padding: 0.7rem 0.95rem;
    border: 1px solid var(--border); border-radius: var(--radius-md);
    background: var(--surface); color: var(--foreground);
}
.footer-track-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: var(--ink-foreground); opacity: 0.85;
}
.footer-track-link:hover { opacity: 1; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; justify-content: space-between; align-items: center; }
.footer-bottom-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.footer-admin-link {
    display: inline-flex; align-items: center; gap: 0.35rem;
    color: var(--ink-muted); font-size: 0.8rem; opacity: 0.7;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.footer-admin-link:hover { opacity: 1; color: var(--ink-foreground); }
@media (max-width: 560px) {
    .footer-bottom { justify-content: center; text-align: center; }
    .footer-bottom-links { justify-content: center; }
}

/* --- Dashboard analytics --- */
.analytics-grid {
    display: grid; gap: 1.25rem; margin-bottom: 1.5rem;
    grid-template-columns: 1fr;
    align-items: stretch;
}
.analytics-grid > .panel-card { margin: 0; display: flex; flex-direction: column; }
@media (min-width: 760px) {
    .analytics-grid { grid-template-columns: 1fr 1fr; }
    .analytics-grid .chart-card { grid-column: 1 / -1; }
}
@media (min-width: 1040px) {
    .analytics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .analytics-grid .chart-card { grid-column: auto; }
}
.revenue-chart { width: 100%; height: 180px; display: block; margin-top: auto; }
.chart-axis { display: flex; justify-content: space-between; color: var(--muted-foreground); font-size: 0.78rem; margin-top: 0.4rem; }
.top-products, .status-breakdown { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.top-products li, .status-breakdown li {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    padding-bottom: 0.55rem; border-bottom: 1px solid var(--border-soft);
}
.top-products li:last-child, .status-breakdown li:last-child { border-bottom: 0; padding-bottom: 0; }
.top-products-name { font-weight: 600; font-size: 0.9rem; }
.top-products-units { color: var(--muted-foreground); font-size: 0.82rem; white-space: nowrap; }

/* --- Pagination --- */
.pagination {
    display: flex; align-items: center; gap: 1rem; justify-content: center;
    padding: 1.25rem 1.5rem;
}
.pagination-info { color: var(--muted-foreground); font-size: 0.85rem; }

/* --- Admin notification bell --- */
.notif-bell { position: relative; }
.notif-bell-btn {
    position: relative; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-md); width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--foreground); cursor: pointer;
}
.notif-bell-btn:hover { background: var(--secondary); }
.notif-badge {
    position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
    padding: 0 4px; border-radius: 999px; background: var(--primary);
    color: var(--primary-foreground); font-size: 0.7rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}
.notif-panel {
    position: absolute; right: 0; top: calc(100% + 8px); width: 300px; max-width: 80vw;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: 60;
    overflow: hidden;
}
.notif-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-soft);
    font-size: 0.9rem;
}
.notif-sound-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.72rem; font-weight: 600; cursor: pointer;
    padding: 0.25rem 0.55rem; border-radius: 999px;
    border: 1px solid var(--border); background: var(--card); color: var(--success);
}
.notif-sound-btn:hover { background: var(--secondary); }
.notif-sound-btn .icon { width: 15px; height: 15px; }
.notif-sound-btn.is-muted { color: var(--muted-foreground); }
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item { display: block; padding: 0.7rem 1rem; border-bottom: 1px solid var(--border-soft); font-size: 0.85rem; color: var(--foreground); }
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: var(--card); }
.notif-item-meta { display: block; color: var(--muted-foreground); font-size: 0.76rem; margin-top: 0.15rem; }
.notif-empty { padding: 1rem; color: var(--muted-foreground); font-size: 0.85rem; margin: 0; }

/* --- Theme colour picker (admin settings) --- */
.color-field { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 0.4rem; }
.color-field input[type="color"] {
    width: 48px; height: 38px; padding: 2px; border: 1px solid var(--border);
    border-radius: var(--radius-sm); background: var(--surface); cursor: pointer;
}
.color-field-hex {
    width: 110px; padding: 0.5rem 0.7rem; border: 1px solid var(--border);
    border-radius: var(--radius-sm); background: var(--card); color: var(--muted-foreground);
    font-family: monospace;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================================
   Binary QA polish (2026-10)
   ============================================================ */
.nowrap { white-space: nowrap; }

/* Footer credit */
.footer-credit { color: inherit; opacity: 0.8; }
.footer-credit a { color: inherit; font-weight: 700; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; }

/* Cart toasts appear at the top so they never cover the cart drawer buttons */
.toast-stack {
    top: max(1rem, env(safe-area-inset-top, 0)); bottom: auto;
    left: 50%; right: auto; transform: translateX(-50%);
    align-items: center;
}

/* Menu: 2 per row on phones; last row centred on wide screens (no empty gap) */
.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (max-width: 639px) {
    .product-body { padding: 0.8rem 0.8rem 0.9rem; gap: 0.35rem; }
    .product-desc { font-size: 0.78rem; }
    .product-footer { flex-wrap: nowrap; }
    .product-footer .btn { padding-inline: 0.7rem; }
    .product-tag { left: 0.5rem; top: 0.5rem; }
}
@media (min-width: 640px) {
    .product-grid { display: flex; flex-wrap: wrap; justify-content: center; }
    .product-grid > .product-card { flex: 0 1 calc((100% - 1.5rem) / 2); }
}
@media (min-width: 1024px) {
    .product-grid > .product-card { flex-basis: calc((100% - 3rem) / 3); }
}
@media (min-width: 1240px) {
    .product-grid > .product-card { flex-basis: calc((100% - 4.5rem) / 4); }
}

/* Buttons side by side on phones */
@media (max-width: 639px) {
    .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .hero-actions .btn { width: 100%; padding-inline: 0.75rem; }
    .success-card { padding: 2rem 1.25rem; }
    .success-card h1 { font-size: 1.55rem; }
    .success-card .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .success-card .actions .btn-primary { grid-column: 1 / -1; }
    .success-card .actions .btn { width: 100%; padding-inline: 0.75rem; }
}
/* The cart drawer already shows what was added; no toast on top of it */
body.is-drawer-open .toast-stack { display: none; }
@media (max-width: 639px) {
    .product-price small { white-space: nowrap; font-size: 0.58rem; }
}

/* ---- Live order page --------------------------------------------------- */
.live-order {
    max-width: 38rem; margin: 2.5rem auto 0;
    background: var(--surface); border: 1px solid var(--border-soft);
    border-radius: var(--radius-2xl); box-shadow: var(--shadow-md);
    padding: 2rem 2rem 1.6rem;
}
.live-order.just-changed { animation: live-pop 600ms ease; }
@keyframes live-pop { 0% { transform: scale(1); } 40% { transform: scale(1.015); } 100% { transform: scale(1); } }
.live-head { display: flex; align-items: center; gap: 0.6rem; color: var(--muted-foreground); font-size: 0.85rem; font-weight: 600; }
.live-pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); flex: 0 0 auto; }
.live-pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--primary); opacity: 0; animation: live-ring 1.8s ease-out infinite; }
.live-pulse.is-still::after { display: none; }
@keyframes live-ring { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }
.live-order h1 { margin-top: 0.9rem; font-size: 1.9rem; line-height: 1.2; }
.live-detail { margin-top: 0.4rem; color: var(--muted-foreground); }
.live-eta { margin-top: 0.8rem; display: inline-block; border-radius: 999px; background: var(--success-bg, #e6f4ea); color: var(--success, #1f6a4a); padding: 0.35rem 0.9rem; font-size: 0.9rem; }
.live-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.4rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.live-steps li { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; color: var(--muted-foreground); font-size: 0.8rem; font-weight: 600; position: relative; }
.live-steps li::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 3px; border-radius: 3px; background: var(--border-soft); }
.live-steps li:first-child::before { display: none; }
.live-steps li.is-done::before, .live-steps li.is-current::before { background: var(--primary); }
.live-dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border-soft); background: var(--surface); color: transparent; position: relative; z-index: 1; }
.live-steps li.is-done .live-dot { border-color: var(--primary); background: var(--primary); color: #fff; }
.live-steps li.is-current .live-dot { border-color: var(--primary); box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 18%, transparent); }
.live-steps li.is-current { color: var(--foreground); }
.live-steps small { font-weight: 500; font-size: 0.72rem; min-height: 1em; }
.live-steps.is-cancelled { opacity: 0.45; }
.live-items { margin-top: 1.6rem; border-top: 1px solid var(--border-soft); padding-top: 1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.live-items > div { display: flex; justify-content: space-between; gap: 1rem; }
.live-total { border-top: 1px dashed var(--border-soft); margin-top: 0.3rem; padding-top: 0.6rem; font-weight: 700; }
.live-total small { color: var(--muted-foreground); font-weight: 500; margin-left: 0.3rem; }
.live-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.live-actions .btn { flex: 1 1 auto; justify-content: center; }
.live-note { margin-top: 0.9rem; color: var(--muted-foreground); font-size: 0.82rem; text-align: center; }
@media (max-width: 639px) {
    .live-order { padding: 1.4rem 1.1rem 1.2rem; margin-top: 1.25rem; }
    .live-order h1 { font-size: 1.5rem; }
    .live-steps li { font-size: 0.68rem; }
    .live-dot { width: 28px; height: 28px; }
    .live-steps li::before { top: 13px; left: calc(-50% + 16px); right: calc(50% + 16px); }
    .live-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ---- Open / closed ----------------------------------------------------- */
.closed-banner { display: flex; align-items: center; justify-content: center; gap: 0.5rem; background: var(--ink, #231a15); color: #fff; padding: 0.6rem 1rem; font-size: 0.9rem; font-weight: 600; text-align: center; }
.drawer-closed { border-radius: var(--radius-md); background: var(--muted, #f4efe8); color: var(--foreground); padding: 0.85rem 1rem; font-size: 0.9rem; font-weight: 600; text-align: center; }
.live-eta[hidden], [data-live-order] [hidden] { display: none !important; }
.cart-badge[hidden], .cart-sticky-bar[hidden], [data-cart-drawer-footer][hidden] { display: none !important; }

/* ---- Cart & checkout pages (v2) --------------------------------------- */
.container-narrow { max-width: 980px; }
.page-cart .cart-sticky-bar { display: none !important; }
.cart-page-header .page-copy { margin-top: 0.4rem; color: var(--muted-foreground); }
.summary-card { border: 1px solid var(--border-soft, #eadfd3); border-radius: 20px; background: var(--card, #fff); padding: 1.4rem; box-shadow: 0 1px 2px rgba(40, 25, 15, 0.04), 0 10px 30px rgba(40, 25, 15, 0.05); }
.summary-card h2 { margin-bottom: 0.6rem; font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; }
.summary-list { margin: 0; padding: 0; list-style: none; }
.summary-list li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border-soft, #eadfd3); padding: 0.65rem 0; }
.summary-list b { color: var(--primary); font-weight: 700; }
.summary-total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 0.9rem; font-size: 1.1rem; font-weight: 700; }
.summary-total small { margin-left: 0.3rem; color: var(--muted-foreground); font-size: 0.8rem; font-weight: 600; }
.summary-actions { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.2rem; }
.summary-actions .btn { min-width: 140px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.checkout-form { display: flex; flex-direction: column; gap: 1rem; }
.co-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.co-field { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.9rem; font-weight: 600; }
.co-field small { color: var(--muted-foreground); font-weight: 500; }
.co-field input, .co-field textarea { width: 100%; border: 1px solid var(--border-soft, #eadfd3); border-radius: 12px; background: #fff; padding: 0.75rem 0.9rem; font: inherit; font-weight: 400; }
.co-field input:focus, .co-field textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.btn-block { width: 100%; }
.summary-side { position: sticky; top: 6rem; }
.track-page .container, .track-wrap { display: flex; justify-content: center; }
@media (max-width: 767px) {
  .cart-page, .checkout-page { padding-block: 1.75rem 2.5rem; }
  .cart-page-header { flex-wrap: wrap; align-items: center; }
  .cart-page-header > div { flex: 1 1 100%; }
  .checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .summary-side { position: static; order: -1; }
  .co-row { grid-template-columns: minmax(0, 1fr); }
  .summary-actions .btn { flex: 1; min-width: 0; }
}
.track-layout:has(> :only-child) { grid-template-columns: minmax(0, 460px); justify-content: center; }
.track-form-card { padding: 1.75rem; }

/* ---- View order: floating glass pill (replaces the full-width bar) ----- */
.cart-sticky-bar {
    position: fixed; left: 50%; right: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 80;
    width: min(100% - 24px, 420px);
    padding: 0; border: 0; background: none; box-shadow: none;
    transform: translateX(-50%);
    animation: pill-in 0.42s cubic-bezier(0.3, 1.3, 0.45, 1) both;
}
@keyframes pill-in { from { opacity: 0; transform: translate(-50%, 24px) scale(0.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.cart-sticky-bar.is-bump button { animation: pill-bump 0.32s ease; }
@keyframes pill-bump { 40% { transform: scale(1.03); } }
.cart-sticky-bar button {
    position: relative; display: flex; align-items: center; gap: 0.75rem;
    width: 100%; min-height: 62px; padding: 7px 7px 7px 8px;
    border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 55%, rgba(0, 0, 0, 0.04) 100%), var(--primary);
    color: #fff; font-weight: 600; font-size: 1rem; text-align: left; cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 14px 34px color-mix(in srgb, var(--primary) 38%, transparent), 0 3px 10px rgba(34, 25, 19, 0.16);
    -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cart-sticky-bar button:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 55%, rgba(0, 0, 0, 0.04) 100%), var(--primary-strong); transform: translateY(-1px); }
.cart-sticky-bar button:active { transform: scale(0.98); }
.cart-sticky-icon {
    position: relative; display: grid; place-items: center; flex: 0 0 auto;
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.18); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.cart-sticky-icon .icon { width: 20px; height: 20px; }
.cart-sticky-count {
    position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px; background: #fff; color: var(--primary);
    font-size: 0.72rem; font-weight: 800; line-height: 20px; text-align: center;
    box-shadow: 0 2px 6px rgba(34, 25, 19, 0.2);
}
.cart-sticky-text { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.2; }
.cart-sticky-text strong { font-size: 1rem; font-weight: 700; }
.cart-sticky-text small { font-size: 0.8rem; font-weight: 500; opacity: 0.85; }
.cart-sticky-total {
    flex: 0 0 auto; border-radius: 999px; background: #fff; color: var(--primary);
    padding: 0.8rem 1.1rem; font-weight: 800; font-size: 1rem; line-height: 1;
    box-shadow: 0 2px 8px rgba(34, 25, 19, 0.12);
}
body:has(.cart-sticky-bar:not([hidden])) .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
@media (prefers-reduced-motion: reduce) { .cart-sticky-bar { animation: none; } }
