/* ============================================
   Bakery by the Bay — Mobile-First Editorial Design
   Typography: Cormorant Garamond + DM Sans
   Palette: Cream, Espresso, Sage, Terracotta
   Built mobile-first: 375px base, min-width breakpoints only
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Colors */
    --cream: #FAF7F2;
    --warm-white: #FFFDF9;
    --espresso: #1A1A1A;
    --brown-mid: #4A4A4A;
    --brown-light: #8A8A8A;
    --sage: #8A9E8C;
    --sage-dark: #6B7F6D;
    --terracotta: #C4785A;
    --terracotta-hover: #AE6448;
    --terracotta-light: #E8A98A;
    --border: rgba(0, 0, 0, 0.12);
    --border-light: rgba(0, 0, 0, 0.06);
    --border-dark: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 16px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 48px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.14);

    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Type scale — mobile base */
    --text-hero:    clamp(2.8rem, 9vw, 7rem);
    --text-display: clamp(2rem, 6vw, 3.8rem);
    --text-heading: clamp(1.3rem, 3.5vw, 1.8rem);
    --text-lg:      clamp(1.05rem, 2.5vw, 1.2rem);
    --text-base:    1rem;
    --text-sm:      0.875rem;
    --text-xs:      0.72rem;

    /* Layout */
    --max-width: 1200px;
    --page-padding: clamp(1.25rem, 4vw, 6rem);


    /* Transitions */
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration-slow: 0.6s;
    --duration: 0.4s;
    --duration-fast: 0.2s;

    /* Nav */
    --nav-height: 60px;
}

/* Breakpoints (min-width only):
   sm:  640px  — large phones / small tablets
   md:  768px  — tablet portrait
   lg:  1024px — tablet landscape / laptop
   xl:  1280px — desktop
   2xl: 1536px — wide desktop
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    background: var(--espresso); /* prevent iOS bounce showing white */
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--espresso);
    background: var(--cream);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    padding-top: var(--nav-height);
    animation: pageEntrance 0.4s ease forwards;
}

@keyframes pageEntrance {
    from { opacity: 0; }
    to { opacity: 1; }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--espresso);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-smooth);
}

a:hover { color: var(--terracotta); }

::selection {
    background: var(--terracotta);
    color: var(--warm-white);
}

/* ============================================
   iOS / TOUCH FIXES
   ============================================ */
a, button, .btn, .menu-category-btn, .add-to-cart,
.cart-toggle, .cart-drawer-close, .cart-item-qty-btn,
.cart-item-remove, .copy-btn, .header__toggle,
.header__nav-link, .header__cart-btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

input, textarea, select {
    font-size: max(16px, 1rem); /* prevents iOS Safari auto-zoom */
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, .h1 {
    font-family: var(--font-heading);
    font-weight: 300;
    font-style: italic;
    letter-spacing: -0.02em;
    line-height: 1.05;
    font-size: var(--text-hero);
}

h2, .h2 {
    font-family: var(--font-heading);
    font-weight: 300;
    font-style: italic;
    font-size: var(--text-display);
    line-height: 1.1;
}

h3, .h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: var(--text-heading);
    line-height: 1.15;
}

h4, .h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brown-light);
    margin-bottom: 0.5rem;
}

p {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--brown-mid);
}

.text-muted { color: var(--brown-light); }
.text-small { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-center { text-align: center; }

/* ============================================
   GRAIN TEXTURE OVERLAY
   ============================================ */
.grain::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.35;
}

/* Warm gradient wash for hero text area */
.hero-text-bg {
    background: linear-gradient(135deg, var(--cream) 0%, #F5EFE6 100%);
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--page-padding);
}

.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--page-padding);
}

.section {
    padding: 0; /* individual sections handle their own spacing */
}

/* ============================================
   HEADER / NAVIGATION — Mobile-first
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--espresso);
    height: var(--nav-height);
    padding-left: max(var(--page-padding), env(safe-area-inset-left));
    padding-right: var(--page-padding);
    transition: background var(--duration) var(--ease-smooth),
                box-shadow var(--duration) var(--ease-smooth);
}

.header.scrolled {
    background: rgba(26, 26, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border-dark);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    max-width: 1400px;
    margin: 0 auto;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--cream);
    flex-shrink: 0;
    min-height: 44px;
}

.header__logo:hover { color: var(--cream); }

.header__logo img {
    height: 26px;
    width: auto;
}

.header__logo-text {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 1.15rem;
    color: var(--cream);
    line-height: 1.1;
}

.header__logo-divider,
.header__logo-tagline {
    display: none; /* hidden on mobile */
}

/* Desktop nav — hidden on mobile */
.header__nav {
    display: none;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.header__nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(250, 247, 242, 0.65);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-smooth);
    min-height: 44px;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: calc(100% - 1.7rem);
    height: 2px;
    background: var(--terracotta);
    transition: transform var(--duration) var(--ease-smooth);
    transform-origin: left center;
}

.header__nav-link:hover {
    color: var(--cream);
    text-decoration: none;
}

.header__nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.header__nav-link:active {
    color: var(--cream);
}

.header__nav-link--active {
    color: var(--cream) !important;
}

.header__nav-link--active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Cart SVG Icon in nav */
.header__cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    color: rgba(250, 247, 242, 0.65);
    transition: color var(--duration-fast) var(--ease-smooth);
}

.header__cart-btn:hover { color: var(--cream); }
.header__cart-btn:active { color: var(--cream); }

.header__cart-btn svg {
    width: 22px;
    height: 22px;
}

.cart-badge-nav {
    position: absolute;
    top: 4px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: var(--terracotta);
    border-radius: 50%;
    display: none;
}

.cart-badge-nav.has-items { display: block; }

/* Hamburger toggle — visible on mobile */
.header__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    color: var(--cream);
    font-size: 1.5rem;
}

.header__toggle:active {
    color: var(--terracotta-light);
}

/* Mobile Overlay Menu — full-screen */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    background: var(--espresso);
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.mobile-overlay__links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-overlay__link {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(2rem, 6vw, 3rem);
    color: rgba(250, 247, 242, 0.7);
    text-decoration: none;
    padding: 0.75rem 2rem;
    display: block;
    min-height: 44px;
    transition: color var(--duration) var(--ease-smooth);
}

.mobile-overlay__link:hover,
.mobile-overlay__link--active {
    color: var(--cream);
}

.mobile-overlay__link:active {
    color: var(--cream);
}

/* Desktop nav breakpoint */
/* sm: 640px — show tagline/divider on logo */
@media (min-width: 640px) {
    .header__logo-divider,
    .header__logo-tagline {
        display: inline;
    }
    .header__logo-divider {
        color: var(--brown-light);
        font-weight: 300;
        opacity: 0.5;
        margin: 0 0.25rem;
    }
    .header__logo-tagline {
        font-family: var(--font-body);
        font-size: 0.65rem;
        font-weight: 400;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--brown-light);
        line-height: 1;
    }
}

/* lg: 1024px — show inline nav, hide hamburger */
@media (min-width: 1024px) {
    :root { --nav-height: 72px; }
    body { padding-top: var(--nav-height); }

    .header__toggle { display: none; }
    .header__nav { display: flex; }
    .mobile-overlay { display: none; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--duration) var(--ease-smooth);
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
    border: none;
    min-height: 48px;
    user-select: none;
    border-radius: 2px;
    touch-action: manipulation;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn--primary {
    background: var(--terracotta);
    color: var(--warm-white);
}

.btn--primary:hover {
    background: var(--terracotta-hover);
    color: var(--warm-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn--primary:active {
    background: var(--terracotta-hover);
    transform: scale(0.98);
}

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

.btn--outline:hover {
    border-color: var(--espresso);
    background: var(--espresso);
    color: var(--cream);
}

.btn--outline:active {
    border-color: var(--espresso);
    background: var(--espresso);
    color: var(--cream);
    transform: scale(0.98);
}

.btn--ghost {
    background: transparent;
    color: var(--brown-mid);
    padding: 0.5rem 1rem;
}

.btn--ghost:hover {
    color: var(--espresso);
    background: var(--border-light);
}

.btn--ghost:active {
    background: var(--border);
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 0.95rem;
    min-height: 56px;
}

.btn--sm {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
    min-height: 44px;
}

.btn--block { width: 100%; }

.btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Text link style */
.text-link {
    color: var(--terracotta);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 400;
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    transition: color var(--duration-fast) var(--ease-smooth);
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--terracotta);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration) var(--ease-smooth);
}

.text-link:hover { color: var(--terracotta-hover); }
.text-link:hover::after { transform: scaleX(1); }
.text-link:active { color: var(--terracotta-hover); }

/* ============================================
   HERO SECTION — Mobile-first
   ============================================ */
.hero-section {
    display: grid;
    grid-template-columns: 1fr; /* stacked on mobile */
    background: var(--warm-white);
}

/* Hero image — full width on mobile */
.hero-section__image-wrap {
    position: relative;
    overflow: hidden;
    height: 45vh;
    min-height: 250px;
}

.hero-section__image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.hero-section__image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, var(--cream) 0%, transparent 55%);
    z-index: 1;
    pointer-events: none;
}

/* Hero content — mobile */
.hero-section__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem var(--page-padding) 3rem;
    background: var(--cream);
}

.hero-section__eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 0.75rem;
}

.hero-section__title {
    font-family: var(--font-heading);
    font-weight: 300;
    font-style: italic;
    font-size: var(--text-hero);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--espresso);
    margin-bottom: 1rem;
}

.hero-section__sub {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--brown-mid);
    margin-bottom: 1.5rem;
}

.hero-section__cta {
    width: 100%;
    min-height: 52px;
}

/* sm: 640px+ — wider image, narrower text */
@media (min-width: 640px) {
    .hero-section__image-wrap {
        height: 50vh;
    }
    .hero-section__sub {
        max-width: 580px;
    }
    .hero-section__cta {
        width: auto;
        padding: 0 2.5rem;
    }
}

/* lg: 1024px+ — side-by-side split */
@media (min-width: 1024px) {
    .hero-section {
        grid-template-columns: 55fr 45fr;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-section__image-wrap {
        height: auto;
        min-height: auto;
    }

    .hero-section__image-overlay {
        background: linear-gradient(to right, transparent 40%, var(--cream) 100%);
    }

    .hero-section__content {
        padding: clamp(3rem, 8vw, 6rem);
    }

    .hero-section__cta {
        width: auto;
        align-self: flex-start;
    }

    .hero-section__sub {
        max-width: 420px;
    }
}

/* ============================================
   FEATURED PRODUCTS — Mobile-first Product Grid
   ============================================ */
.featured-section {
    background: var(--warm-white);
    padding: 1.5rem var(--page-padding);
}

.featured-section__header {
    max-width: var(--max-width);
    margin: 0 auto 1rem;
}

.featured-section__grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.featured-card {
    position: relative;
    overflow: hidden;
    background: var(--warm-white);
    display: block;
    text-decoration: none;
    color: var(--espresso);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
    transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.featured-card:hover { 
    text-decoration: none; 
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.featured-card:active {
    transform: translateY(-1px);
}

.featured-card__image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.featured-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease-smooth);
}

.featured-card:hover .featured-card__image {
    transform: scale(1.06);
}

.featured-card__info {
    padding: 0.75rem 0 0.5rem;
}

.featured-card__name {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--espresso);
    margin-bottom: 0.1rem;
    line-height: 1.2;
}

.featured-card__price {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 300;
    color: var(--brown-light);
}

/* ——— Placeholder card (no product image) ——— */
.featured-card--placeholder .featured-card__placeholder {
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-color, var(--sage));
    transition: background var(--duration) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

/* Subtle grain overlay on placeholder */
.featured-card--placeholder .featured-card__placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
}

.featured-card--placeholder:hover .featured-card__placeholder {
    /* Fallback: slightly darken by overlaying a transparent black layer */
    background: var(--card-color, var(--sage));
}

@supports (color-mix(in srgb, red, blue)) {
    .featured-card--placeholder:hover .featured-card__placeholder {
        background: color-mix(in srgb, var(--card-color, var(--sage)) 85%, #000);
    }
}

.featured-card__emoji {
    font-size: 2.8rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.4s var(--ease-smooth);
    position: relative;
    z-index: 1;
}

.featured-card--placeholder:hover .featured-card__emoji {
    transform: scale(1.15) rotate(-4deg);
}

/* sm: 640px+ — 3 columns */
@media (min-width: 640px) {
    .featured-section__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* lg: 1024px+ — 4 columns */
@media (min-width: 1024px) {
    .featured-section__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }

    .featured-card {
        border-bottom: none;
    }

    .featured-card__info {
        padding: 1rem 0 0.5rem;
    }

    .featured-card__name {
        font-size: 1.15rem;
    }

    .featured-card__emoji {
        font-size: 3.2rem;
    }
}

/* ============================================
   ABOUT / MEET THE DUO — Mobile-first
   ============================================ */
.about-section {
    display: grid;
    grid-template-columns: 1fr; /* stacked on mobile */
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 0;
    padding: 1rem var(--page-padding) 0.75rem;
}

.about-section__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.25rem 0 1rem;
    order: 1; /* text first on mobile */
}

.about-section__content h2 {
    font-family: var(--font-heading);
    font-weight: 300;
    font-style: italic;
    font-size: var(--text-display);
    margin-bottom: 1rem;
    color: var(--espresso);
}

.about-section__content p {
    color: var(--brown-mid);
    margin-bottom: 0.85rem;
    font-size: var(--text-base);
    line-height: 1.7;
}

.about-section__pullquote {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: var(--text-lg);
    line-height: 1.4;
    color: var(--brown-mid);
    border-left: 3px solid var(--terracotta);
    padding-left: 1.25rem;
    margin: 1.25rem 0;
}

.about-section__image-wrap {
    position: relative;
    order: 2; /* image after text on mobile */
}

.about-section__image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: top;
    border: 4px solid var(--warm-white);
    outline: 4px solid var(--warm-white);
    outline-offset: -8px;
    box-shadow: var(--shadow-sm);
}

/* lg: 1024px+ — side-by-side */
@media (min-width: 1024px) {
    .about-section {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 1.5rem var(--page-padding) 1.5rem;
    }

    .about-section__content {
        padding: 0.5rem 0;
    }

    .about-section__image {
        margin-top: -4rem;
        max-height: 600px;
    }
}

/* ============================================
   LOCATIONS — Mobile-first
   ============================================ */
.locations-section {
    background: var(--espresso);
    color: var(--cream);
    padding: 1.5rem var(--page-padding);
}

.locations-section__header {
    max-width: var(--max-width);
    margin: 0 auto 2rem;
}

.locations-section__header .eyebrow {
    color: var(--sage);
}

.locations-section__header h2 {
    font-family: var(--font-heading);
    font-weight: 300;
    font-style: italic;
    font-size: var(--text-display);
    color: var(--cream);
}

.locations-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr; /* single column on mobile */
    gap: 0;
}

.location-block {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.location-block:first-child {
    border-top: none;
    padding-top: 0;
}

.location-block__eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 0.35rem;
}

.location-block__name {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: 1.6rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.location-block__address {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(250, 247, 242, 0.6);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.location-block__phone {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--terracotta-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0;
    margin-bottom: 0.25rem;
}

.location-block__phone:hover { color: var(--terracotta); }
.location-block__phone:active { color: var(--terracotta); }

.location-block__hours {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(250, 247, 242, 0.45);
    line-height: 1.5;
}

.location-divider {
    display: none; /* hidden on mobile */
}

.location-brand {
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.5rem;
}

.location-brand__quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: 1.2rem;
    color: rgba(250, 247, 242, 0.6);
    line-height: 1.5;
}

/* md: 768px+ — 2-column for locations */
@media (min-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .location-block {
        border-top: none;
        padding: 0;
    }

    .location-brand {
        grid-column: 1 / -1;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 2rem;
    }
}

/* lg: 1024px+ — 3-column with dividers */
@media (min-width: 1024px) {
    .locations-grid {
        grid-template-columns: 1fr auto 1fr auto 1fr;
        gap: 0;
        align-items: start;
    }

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

    .location-divider {
        display: block;
        width: 1px;
        height: 120px;
        background: var(--brown-light);
        opacity: 0.3;
        align-self: center;
    }

    .location-brand {
        grid-column: auto;
        border-top: none;
        padding: 0 2rem;
        margin-top: 0;
    }
}

/* ============================================
   FOOTER — Mobile-first
   ============================================ */
.footer {
    background: var(--espresso);
    padding: 2rem var(--page-padding) 0;
}

.footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr; /* single column on mobile */
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    text-align: center;
}

.footer__brand h3 {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.footer__brand p {
    font-size: var(--text-sm);
    color: rgba(250, 247, 242, 0.5);
    line-height: 1.7;
    max-width: 360px;
    margin: 0 auto;
}

.footer__links h4 {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brown-light);
    margin-bottom: 1rem;
}

.footer__links ul {
    list-style: none;
}

.footer__links li {
    margin-bottom: 0;
}

.footer__links a {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 300;
    color: rgba(250, 247, 242, 0.55);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0;
    transition: color var(--duration-fast) var(--ease-smooth);
}

.footer__links a:hover { color: var(--cream); }
.footer__links a:active { color: var(--cream); }

.footer__address {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(250, 247, 242, 0.5);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer__hours {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(250, 247, 242, 0.4);
    line-height: 1.5;
}

.footer__bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 0;
    border-top: 1px solid var(--border-dark);
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: rgba(250, 247, 242, 0.35);
}

/* md: 768px+ — multi-column footer */
@media (min-width: 768px) {
    .footer__inner {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2.5rem;
        text-align: left;
    }

    .footer__brand p { margin: 0; }
}

/* ============================================
   MENU PAGE
   ============================================ */

/* Menu Header Banner */
.menu-header {
    background: var(--warm-white);
    padding: calc(var(--nav-height) + 0.75rem) var(--page-padding) 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.menu-header__eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 0.5rem;
}

.menu-header__title {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    color: var(--espresso);
    margin-bottom: 0.35rem;
}

.menu-header__date {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 300;
    color: var(--brown-light);
}

/* lg: 1024px+ — tighter header */
@media (min-width: 1024px) {
    .menu-header {
        padding: calc(var(--nav-height) + 0.75rem) var(--page-padding) 1.5rem;
        text-align: center;
    }
}

/* Category Filter Pills — horizontally scrollable */
.menu-categories {
    display: flex;
    gap: 0.5rem;
    padding: 1.25rem var(--page-padding) 0.75rem;
    max-width: var(--max-width);
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    white-space: nowrap;
    justify-content: flex-start;
}

.menu-categories::-webkit-scrollbar { display: none; }

.menu-category-btn {
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--brown-mid);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-smooth);
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 100px;
    min-height: 44px;
}

.menu-category-btn:hover {
    border-color: var(--espresso);
    color: var(--espresso);
}

.menu-category-btn:active {
    background: var(--espresso);
    color: var(--cream);
    border-color: var(--espresso);
}

.menu-category-btn.active {
    background: var(--espresso);
    color: var(--cream);
    border-color: var(--espresso);
}

/* lg: 1024px+ — center pills */
@media (min-width: 1024px) {
    .menu-categories {
        justify-content: center;
    }
}

/* Menu Section layout */
.menu-section {
    padding: 1.5rem 0;
}

.menu-section__header {
    padding: 0 var(--page-padding);
    max-width: var(--max-width);
    margin: 0 auto 0.5rem;
}

.menu-section__title {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: var(--text-display);
    color: var(--espresso);
    margin-bottom: 0.25rem;
}

.menu-section__sub {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 300;
    color: var(--brown-light);
}

/* ===== Daily Lunch Highlight Section ===== */
.menu-section--lunch {
    background: var(--warm-white);
    border-top: 1px solid var(--border);
    margin-top: 1rem;
    padding: 1.5rem 0 2rem;
}

.lunch-highlight {
    padding: 0 var(--page-padding);
    max-width: var(--max-width);
    margin: 0 auto 1.25rem;
}

.lunch-highlight__inner {
    background: linear-gradient(135deg, #FAF7F2 0%, #F5EFE6 100%);
    border: 2px solid var(--terracotta);
    border-radius: 4px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lunch-highlight__inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--terracotta), var(--terracotta-light), var(--terracotta));
}

.lunch-highlight__badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--terracotta);
    border: 1px solid var(--terracotta);
    padding: 0.3rem 0.85rem;
    margin-bottom: 0.75rem;
}

.lunch-highlight__title {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: 1.8rem;
    color: var(--espresso);
    margin-bottom: 0.25rem;
}

.lunch-highlight__date {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brown-light);
    margin-bottom: 0.5rem;
}

.lunch-highlight__desc {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--brown-mid);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.menu-item-card--lunch {
    border-color: var(--terracotta-light);
    border-left: 3px solid var(--terracotta);
}

.menu-item-card--lunch:hover {
    border-color: var(--terracotta);
}

/* lg: 1024px+ — larger lunch highlight */
@media (min-width: 1024px) {
    .lunch-highlight__inner {
        padding: 2.5rem 2rem;
    }
    .lunch-highlight__title {
        font-size: 2.2rem;
    }
}

/* Menu Items Grid — mobile-first */
.menu-items-grid {
    display: grid;
    grid-template-columns: 1fr; /* single column on mobile */
    gap: 0.85rem;
    padding: 1rem var(--page-padding) 6rem; /* large bottom padding for FAB */
    max-width: var(--max-width);
    margin: 0 auto;
}

.menu-item-card {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: border-color var(--duration) var(--ease-smooth);
}

.menu-item-card:hover {
    border-color: var(--espresso);
    box-shadow: var(--shadow-sm);
}

.menu-item-photo {
    margin: -1.25rem -1.25rem 1rem;
    border-radius: 2px 2px 0 0;
    overflow: hidden;
    background: var(--border);
}

.menu-item-photo img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--duration) var(--ease-smooth);
}

.menu-item-card:hover .menu-item-photo img {
    transform: scale(1.04);
}

.menu-item-card .item-category {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brown-light);
    margin-bottom: 0.35rem;
}

.menu-item-card h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--espresso);
    margin-bottom: 0;
}

.item-description {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--brown-light);
    line-height: 1.5;
    margin: 0.35rem 0 0.75rem;
}

.menu-item-card .item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

.menu-item-card .item-price {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--brown-light);
}

.add-to-cart {
    padding: 0.5rem 1.2rem;
    background: transparent;
    color: var(--espresso);
    border: 1px solid var(--espresso);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-smooth);
    white-space: nowrap;
    border-radius: 2px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.add-to-cart:hover {
    background: var(--espresso);
    color: var(--cream);
}

.add-to-cart:active {
    background: var(--espresso);
    color: var(--cream);
    transform: scale(0.98);
}

.add-to-cart.added {
    background: var(--sage);
    color: var(--cream);
    border-color: var(--sage);
}

.add-to-cart:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* sm: 640px+ — 2-column grid */
@media (min-width: 640px) {
    .menu-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* lg: 1024px+ — 3-column grid */
@media (min-width: 1024px) {
    .menu-items-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
        padding-bottom: 4rem;
    }
}

/* ============================================
   CART DRAWER — Mobile-first
   Mobile: bottom sheet, Desktop: side drawer
   ============================================ */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration) var(--ease-smooth),
                visibility var(--duration) var(--ease-smooth);
}

.cart-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Mobile (base): bottom sheet */
.cart-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    background: var(--warm-white);
    box-shadow: 0 -8px 48px rgba(28, 18, 9, 0.1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border-radius: 16px 16px 0 0;
    padding: 0 1.5rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
    transform: translateY(100%);
    -webkit-overflow-scrolling: touch;
}

/* Handle bar for mobile bottom sheet */
.cart-drawer-handle {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0.75rem auto 1rem;
    flex-shrink: 0;
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

.cart-drawer-header h2 {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: 1.4rem;
    color: var(--espresso);
    margin: 0;
}

.cart-drawer-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--brown-light);
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--duration-fast) var(--ease-smooth);
}

.cart-drawer-close:hover { color: var(--espresso); }
.cart-drawer-close:active { color: var(--espresso); }

.cart-items {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-item:last-child { border-bottom: none; }

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: var(--text-base);
    color: var(--espresso);
    display: block;
    margin-bottom: 0.35rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-qty-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--brown-mid);
    font-size: 0.9rem;
    font-family: var(--font-body);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--duration-fast) var(--ease-smooth);
}

.cart-item-qty-btn:hover {
    border-color: var(--espresso);
    background: var(--espresso);
    color: var(--cream);
}

.cart-item-qty-btn:active {
    border-color: var(--espresso);
    background: var(--espresso);
    color: var(--cream);
}

.cart-item-qty {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    min-width: 24px;
    text-align: center;
    color: var(--espresso);
}

.cart-item-price {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--brown-light);
    white-space: nowrap;
    text-align: right;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--brown-light);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.4rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--duration-fast) var(--ease-smooth);
}

.cart-item-remove:hover { color: var(--terracotta); }
.cart-item-remove:active { color: var(--terracotta); }

.cart-footer {
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--warm-white);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-top: 0.5rem;
    border-top: 2px solid var(--espresso);
}

.cart-total-label {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--espresso);
}

.cart-total-value {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--espresso);
}

.btn-checkout {
    width: 100%;
    padding: 0.9rem;
    background: var(--terracotta);
    color: var(--warm-white);
    border: none;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--duration) var(--ease-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    border-radius: 2px;
    min-height: 52px;
}

.btn-checkout:hover {
    background: var(--terracotta-hover);
    color: var(--warm-white);
    transform: translateY(-1px);
}

.btn-checkout:active {
    background: var(--terracotta-hover);
    transform: scale(0.98);
}

/* Desktop: side drawer */
@media (min-width: 1024px) {
    .cart-drawer {
        top: 0;
        left: auto;
        right: 0;
        bottom: auto;
        width: 420px;
        max-width: 90vw;
        max-height: none;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        padding: 2rem;
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
        transform: translateX(100%);
        box-shadow: -8px 0 48px rgba(28, 18, 9, 0.1);
    }

    .cart-drawer-handle {
        display: none; /* no handle on desktop */
    }

    .cart-drawer-header {
        margin-bottom: 1rem;
    }

    .cart-items {
        padding: 0.5rem 0;
    }
}

/* ============================================
   FLOATING CART BUTTON (FAB) — Mobile-first
   ============================================ */
.cart-toggle {
    position: fixed;
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    background: var(--espresso);
    color: var(--cream);
    height: 52px;
    padding: 0 2rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    box-shadow: var(--shadow-lg);
    z-index: 50;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    /* Hidden by default, shown when items in cart */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cart-toggle.has-items {
    opacity: 1;
    pointer-events: auto;
}

.cart-toggle svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.cart-toggle .cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--terracotta);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Hide FAB on desktop — use side drawer nav button instead */
@media (min-width: 1024px) {
    .cart-toggle {
        display: none;
    }
}

/* ============================================
   EMPTY STATES
   ============================================ */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 1rem;
}

.empty-state__icon,
.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    opacity: 0.3;
}

.empty-state__icon svg,
.empty-state-icon svg {
    width: 100%;
    height: 100%;
}

.empty-state__text {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--brown-mid);
    margin-bottom: 0.5rem;
}

.empty-state__sub {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--brown-light);
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--brown-mid);
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--brown-light);
    margin: 0;
}

/* ============================================
   CHECKOUT PAGE — Mobile-first
   ============================================ */
.checkout-page {
    padding: calc(var(--nav-height) + 1.5rem) var(--page-padding) 3rem;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

.checkout-header {
    margin-bottom: 1.5rem;
}

.checkout-header__eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brown-light);
    margin-bottom: 0.35rem;
}

.checkout-header h1 {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: var(--text-display);
    color: var(--espresso);
    margin-bottom: 0.35rem;
}

.checkout-header p {
    font-size: var(--text-sm);
    color: var(--brown-light);
}

.checkout-card {
    background: var(--warm-white);
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 2px;
}

.order-summary-card {
    background: var(--cream);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: 2px;
}

.order-summary-card h3 {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brown-light);
    margin-bottom: 0.65rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    border-bottom: 1px solid var(--border-light);
}

.order-item:last-child { border-bottom: none; }

.order-item-name { flex: 1; color: var(--espresso); }
.order-item-qty { color: var(--brown-light); margin: 0 0.75rem; font-size: 0.8rem; }
.order-item-price { font-weight: 400; color: var(--brown-mid); }

.order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 2px solid var(--espresso);
}

.order-total-label {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--espresso);
}

.order-total-value {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--espresso);
}

/* Checkout Form */
.checkout-form .form-group {
    margin-bottom: 1.5rem;
}

.checkout-form .form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--brown-light);
    margin-bottom: 0.35rem;
    letter-spacing: 0.05em;
}

.checkout-form .form-input {
    width: 100%;
    padding: 0.75rem 0;
    font-family: var(--font-body);
    font-size: max(16px, 1rem);
    font-weight: 400;
    color: var(--espresso);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    outline: none;
    transition: border-color var(--duration) var(--ease-smooth);
    -webkit-appearance: none;
    border-radius: 0;
    min-height: 48px;
}

.checkout-form .form-input:focus {
    border-bottom-color: var(--terracotta);
}

.checkout-form .form-input::placeholder {
    color: var(--brown-light);
    opacity: 0.5;
}

.privacy-note {
    margin-top: 1rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--brown-light);
    text-align: center;
    line-height: 1.5;
}

/* md: 768px+ larger card */
@media (min-width: 768px) {
    .checkout-page {
        padding-top: calc(var(--nav-height) + 2rem);
    }
    .checkout-card {
        padding: 2rem;
    }
}

/* ============================================
   CONFIRMATION PAGE — Mobile-first
   ============================================ */
.confirmation-page {
    padding: calc(var(--nav-height) + 1.5rem) var(--page-padding) 3rem;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.confirmation-card {
    background: var(--warm-white);
    padding: 2rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    text-align: center;
}

.confirmation-checkmark {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
}

.confirmation-checkmark svg {
    width: 100%;
    height: 100%;
}

/* CSS draw-on animation for checkmark */
.check-circle {
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    animation: draw 0.6s ease forwards 0.2s;
}

.check-tick {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: draw 0.4s ease forwards 0.8s;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

.confirmation-card h1 {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    color: var(--espresso);
    margin-bottom: 0.5rem;
}

.confirmation-card .subtitle {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--brown-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.booking-id-display {
    padding: 1.5rem;
    border: 2px dashed var(--border);
    margin-bottom: 1.5rem;
}

.booking-id-display label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brown-light);
    margin-bottom: 0.35rem;
}

.booking-id-display .booking-id {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.1em;
    font-size: 2.2rem;
    color: var(--espresso);
    display: block;
    margin-bottom: 0.75rem;
    word-break: break-all;
}

.copy-btn {
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--brown-light);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-smooth);
    min-height: 44px;
    border-radius: 2px;
}

.copy-btn:hover {
    border-color: var(--espresso);
    color: var(--espresso);
}

.copy-btn:active {
    border-color: var(--espresso);
    background: var(--espresso);
    color: var(--cream);
}

.confirmation-items {
    margin-bottom: 1rem;
    text-align: left;
    border: 1px solid var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}

.confirmation-items-header {
    padding: 0.65rem 1rem;
    background: var(--cream);
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brown-light);
    border-bottom: 1px solid var(--border-light);
}

.confirmation-items-list {
    list-style: none;
    padding: 0;
}

.confirmation-items-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--brown-mid);
}

.confirmation-items-list li:last-child { border-bottom: none; }

.confirmation-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--cream);
    border-top: 1px solid var(--border-light);
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--espresso);
}

.confirmation-message {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: var(--text-base);
    color: var(--brown-mid);
    margin: 1.5rem 0;
    line-height: 1.5;
}

.confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.confirmation-actions .btn { width: 100%; }

/* md: 768px+ */
@media (min-width: 768px) {
    .confirmation-card {
        padding: 2.5rem 2rem;
    }
}

/* ============================================
   FEEDBACK / CONTACT PAGE — Mobile-first
   ============================================ */
.feedback-page {
    padding: calc(var(--nav-height) + 1.5rem) var(--page-padding) 3rem;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.feedback-layout {
    display: grid;
    grid-template-columns: 1fr; /* single column on mobile */
    gap: 2rem;
}

.feedback-brand {
    text-align: center;
    padding-top: 0;
}

.feedback-brand__heading {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(2.2rem, 6vw, 3rem);
    color: var(--espresso);
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.feedback-brand__sub {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--brown-light);
    line-height: 1.7;
}

.feedback-form-card {
    background: var(--warm-white);
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 2px;
}

.feedback-form .form-group {
    margin-bottom: 1.5rem;
}

.feedback-form .form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--brown-light);
    margin-bottom: 0.35rem;
    letter-spacing: 0.05em;
}

.feedback-form .form-input,
.feedback-form .form-textarea {
    width: 100%;
    padding: 0.75rem 0;
    font-family: var(--font-body);
    font-size: max(16px, 1rem);
    font-weight: 400;
    color: var(--espresso);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    outline: none;
    transition: border-color var(--duration) var(--ease-smooth);
    -webkit-appearance: none;
    border-radius: 0;
    min-height: 48px;
}

.feedback-form .form-textarea {
    min-height: 100px;
    resize: vertical;
    padding: 0.5rem 0;
    border: 1px solid var(--border);
    padding: 0.75rem;
}

.feedback-form .form-input:focus,
.feedback-form .form-textarea:focus {
    border-bottom-color: var(--terracotta);
}

.feedback-form .form-textarea:focus {
    border-color: var(--terracotta);
}

.feedback-form .form-input::placeholder,
.feedback-form .form-textarea::placeholder {
    color: var(--brown-light);
    opacity: 0.5;
}

/* Star Rating */
.rating-stars {
    display: flex;
    gap: 0.25rem;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star {
    font-size: 1.8rem;
    color: var(--border);
    cursor: pointer;
    transition: color var(--duration-fast) var(--ease-smooth);
    line-height: 1;
    padding: 0.25rem;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.star:hover,
.star:hover ~ .star {
    color: var(--terracotta) !important;
}

.star.active {
    color: var(--terracotta);
}

.feedback-note {
    margin-top: 1rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--brown-light);
    text-align: center;
    line-height: 1.5;
}

/* lg: 1024px+ — split layout */
@media (min-width: 1024px) {
    .feedback-layout {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start;
    }

    .feedback-brand {
        text-align: left;
        padding-top: 1rem;
    }

    .feedback-form-card {
        padding: 2rem;
    }
}

/* ============================================
   FORM ELEMENTS (Shared)
   ============================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--brown-light);
    margin-bottom: 0.35rem;
    letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    font-family: var(--font-body);
    font-size: max(16px, 1rem);
    font-weight: 400;
    color: var(--espresso);
    background: var(--warm-white);
    border: 1px solid var(--border);
    transition: border-color var(--duration) var(--ease-smooth),
                box-shadow var(--duration) var(--ease-smooth);
    outline: none;
    -webkit-appearance: none;
    border-radius: 2px;
    min-height: 48px;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--terracotta);
    box-shadow: 0 0 0 1px var(--terracotta);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--brown-light);
    opacity: 0.5;
}

/* ============================================
   MESSAGES
   ============================================ */
.message {
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    display: none;
    animation: slideDown 0.3s var(--ease-smooth);
    margin-bottom: 1rem;
    border-radius: 2px;
}

.message.show { display: block; }

.message--error {
    background: rgba(196, 120, 90, 0.08);
    color: var(--terracotta-hover);
    border: 1px solid rgba(196, 120, 90, 0.2);
}

.message--success {
    background: rgba(138, 158, 140, 0.08);
    color: var(--sage-dark);
    border: 1px solid rgba(138, 158, 140, 0.2);
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: var(--brown-light);
    gap: 0.75rem;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--espresso);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

.animate-fade-in { animation: fadeIn 0.5s var(--ease-smooth); }
.animate-fade-in-up { animation: fadeInUp 0.6s var(--ease-smooth); }

/* ============================================
   BACK BUTTON
   ============================================ */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--brown-light);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-smooth);
    margin-bottom: 1.25rem;
    min-height: 44px;
}

.btn-back:hover { color: var(--espresso); text-decoration: none; }
.btn-back:active { color: var(--espresso); }

/* ============================================
   REVEAL ANIMATION CLASS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: none;
}

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

    body {
        opacity: 1;
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   ADMIN PAGES — Sidebar, Login, Dashboard, Upload
   These styles support the admin directory.
   ============================================ */

/* Admin Login */
.admin-login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 2rem;
    background: var(--cream);
    /* Negate body padding-top since admin login has no fixed header */
    margin-top: calc(-1 * var(--nav-height));
    padding-top: 0;
}

.login-card {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-md);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.login-logo h1 {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: var(--text-display);
    color: var(--espresso);
    margin-bottom: 0.5rem;
}

.login-logo p {
    font-size: var(--text-sm);
    color: var(--brown-light);
}

.login-form .form-group { margin-bottom: 1.25rem; }

.login-form .btn { margin-top: 0.75rem; }

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    /* Negate body padding-top since admin pages have sidebar instead of header */
    margin-top: calc(-1 * var(--nav-height));
    padding-top: 0;
}

.admin-sidebar {
    width: 240px;
    background: var(--espresso);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
}

.admin-sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-dark);
}

.admin-sidebar-brand h2 {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 1.2rem;
    color: var(--cream);
    margin-bottom: 0.25rem;
}

.admin-sidebar-brand p {
    font-size: 0.75rem;
    color: var(--brown-light);
    margin: 0;
}

.admin-sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: rgba(250, 247, 242, 0.6);
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-smooth);
    min-height: 44px;
    width: 100%;
    text-align: left;
}

.admin-sidebar-link:hover {
    color: var(--cream);
    background: rgba(250, 247, 242, 0.06);
}

.admin-sidebar-link.active {
    color: var(--cream);
    background: rgba(250, 247, 242, 0.1);
    border-right: 2px solid var(--terracotta);
}

.admin-sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-dark);
}

/* Admin Main */
.admin-main {
    flex: 1;
    background: var(--cream);
    overflow-x: auto;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--warm-white);
}

.admin-topbar h1 {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--espresso);
    margin: 0;
}

.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--brown-mid);
}

.admin-content {
    padding: 2rem;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .admin-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

.admin-section {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.admin-section-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.admin-section-header h2 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brown-mid);
    margin: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 1.25rem;
    text-align: center;
}

.stat-card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.stat-card-value {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 2rem;
    color: var(--espresso);
}

.stat-card-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--brown-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: var(--text-sm);
}

table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brown-light);
    border-bottom: 1px solid var(--border);
    background: var(--cream);
    white-space: nowrap;
}

table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--brown-mid);
    vertical-align: top;
}

table tr:last-child td { border-bottom: none; }

.status-select {
    padding: 0.35rem 0.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: var(--warm-white);
    color: var(--espresso);
    cursor: pointer;
}

.status-select:focus {
    outline: none;
    border-color: var(--terracotta);
}

/* Upload / Menu Editor */
.upload-container {
    max-width: 720px;
}

.upload-steps {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.upload-step {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--brown-light);
    background: var(--cream);
    border-right: 1px solid var(--border);
}

.upload-step:last-child { border-right: none; }

.upload-step.active {
    background: var(--warm-white);
    color: var(--espresso);
    font-weight: 500;
}

.upload-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border);
    color: var(--brown-mid);
    font-size: 0.75rem;
    font-weight: 500;
    flex-shrink: 0;
}

.upload-step.active .upload-step-number {
    background: var(--espresso);
    color: var(--cream);
}

.upload-step-text {
    white-space: nowrap;
}

/* Card component */
.card {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.card__header h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--espresso);
    margin: 0;
}

/* Instructions box */
.instructions-box {
    background: rgba(138, 158, 140, 0.08);
    border: 1px solid rgba(138, 158, 140, 0.2);
    border-radius: 2px;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--sage-dark);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* Camera section */
.camera-section {
    margin-top: 1rem;
}

.camera-preview {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    background: var(--espresso);
    border-radius: 2px;
    margin-bottom: 1rem;
}

.camera-preview video {
    width: 100%;
    height: auto;
    display: block;
}

.camera-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.camera-actions .btn {
    flex: 1;
    min-width: 120px;
}

.file-input {
    display: none;
}

/* Menu editor - admin editable cards */
.menu-item-card.editable {
    background: var(--warm-white);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.menu-item-card.editable h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1rem;
    color: var(--espresso);
    flex: 1;
    min-width: 120px;
    margin: 0;
}

.menu-item-card.editable .price {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--brown-light);
    min-width: 60px;
}

.menu-item-card.editable .category {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brown-light);
    min-width: 80px;
}

.menu-item-inputs {
    width: 100%;
    display: none;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.menu-item-inputs.active { display: block; }

.menu-item-inputs .form-group {
    margin-bottom: 0.75rem;
}

.menu-item-inputs .form-group label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--brown-light);
    margin-bottom: 0.25rem;
}

.menu-item-inputs input[type="text"],
.menu-item-inputs input[type="number"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: var(--cream);
    color: var(--espresso);
}

.menu-item-inputs input:focus {
    outline: none;
    border-color: var(--terracotta);
}

.menu-item-inputs input[type="checkbox"] {
    margin-right: 0.35rem;
}

.btn-edit {
    padding: 0.4rem 0.85rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--brown-light);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-smooth);
    white-space: nowrap;
}

.btn-edit:hover {
    border-color: var(--espresso);
    color: var(--espresso);
}

/* Mobile responsive admin
   < 768px: sidebar becomes a fixed bottom navigation bar
   Keeps desktop layout unchanged
*/
@media (max-width: 767px) {
    /* Bottom nav bar replaces fixed sidebar */
    .admin-layout {
        flex-direction: column;
        padding-bottom: 0;
    }

    .admin-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        height: auto;
        z-index: 100;
        flex-direction: row;
        background: var(--espresso);
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom, 0);
        border-top: 1px solid var(--border-dark);
        box-shadow: 0 -2px 16px rgba(0,0,0,0.15);
    }

    .admin-sidebar-brand {
        display: none;
    }

    .admin-sidebar-nav {
        display: flex;
        flex-direction: row;
        padding: 0;
        width: 100%;
    }

    .admin-sidebar-link {
        flex: 1;
        flex-direction: column;
        padding: 0.5rem 0.35rem;
        gap: 0.2rem;
        font-size: 0.7rem;
        font-weight: 500;
        letter-spacing: 0.04em;
        justify-content: center;
        align-items: center;
        text-align: center;
        min-height: 60px;
        border-radius: 0;
    }

    .admin-sidebar-link span:first-child {
        font-size: 1.4rem;
        display: inline-block;
    }

    /* Keep text labels visible on mobile */
    .admin-sidebar-link span:not(:first-child) {
        display: inline-block;
        font-size: 0.7rem;
        line-height: 1.2;
        white-space: nowrap;
    }

    .admin-sidebar-link.active {
        border-right: none;
        border-top: 2px solid var(--terracotta);
        background: rgba(250, 247, 242, 0.08);
    }

    .admin-sidebar-footer {
        display: none;
    }

    /* Main content fills full width */
    .admin-main {
        width: 100%;
    }

    .admin-topbar {
        padding: 0.6rem 1rem;
    }

    .admin-topbar h1 {
        font-size: 1.1rem;
    }

    .admin-user {
        gap: 0.4rem;
    }

    .admin-user span {
        font-size: 0.75rem;
    }

    .admin-content {
        padding: 1rem;
        padding-bottom: calc(80px + 1.5rem); /* space for bottom nav + safe area */
    }

    /* Stats grid: 2 columns on mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        margin-bottom: 1rem;
    }

    .stat-card {
        padding: 0.75rem;
    }

    .stat-card-icon {
        font-size: 1.2rem;
        margin-bottom: 0.35rem;
    }

    .stat-card-value {
        font-size: 1.4rem;
    }

    .stat-card-label {
        font-size: 0.65rem;
    }

    /* Admin section headers tighter */
    .admin-section-header {
        padding: 0.6rem 0.85rem;
    }

    .admin-section-header h2 {
        font-size: 0.65rem;
    }

    /* Tables more compact */
    table th,
    table td {
        padding: 0.5rem 0.65rem;
        font-size: 0.72rem;
    }

    /* Upload steps: stack vertically */
    .upload-steps {
        flex-direction: column;
    }

    .upload-step {
        border-right: none;
        border-bottom: 1px solid var(--border);
        font-size: 0.8rem;
    }

    .upload-step:last-child { border-bottom: none; }

    /* Camera actions: stack */
    .camera-actions {
        flex-direction: column;
    }

    .camera-actions .btn {
        width: 100%;
    }

    .card {
        padding: 1rem;
    }

    .card__header h3 {
        font-size: 1rem;
    }

    .admin-grid {
        gap: 1rem;
    }

    .menu-item-card.editable {
        padding: 0.75rem 1rem;
    }

    /* Hide mobile topbar logout button since Sign Out is now in bottom nav */
    .btn-logout-mobile {
        display: none !important;
    }
}

/* Compact mobile logout button — visible only on mobile in topbar */
.btn-logout-mobile {
    display: none;
    padding: 0.35rem 0.5rem;
    font-size: 1rem;
    min-height: 44px;
    color: var(--brown-light);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: color var(--duration-fast) var(--ease-smooth);
    border-radius: 2px;
}

.btn-logout-mobile:hover {
    color: var(--terracotta);
    background: var(--border-light);
}

.btn-logout-mobile:active {
    color: var(--terracotta);
    background: var(--border-light);
}

@media (max-width: 767px) {
    .btn-logout-mobile {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
