/* ════════════════════════════════════════════════════
   THE ARTISAN — Premium Boutique Menu
   Complete Rewrite · Dark Emerald & Antique Gold
   ════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────── */
:root {
    /* Colors — Deep Emerald / Antique Gold */
    --ink: hsl(162, 40%, 8%);
    --ink-soft: hsl(162, 20%, 18%);
    --page: hsl(40, 20%, 96%);
    --surface: hsl(40, 25%, 98%);
    --muted: hsl(200, 12%, 50%);
    --border: hsl(200, 15%, 90%);

    --emerald: hsl(162, 72%, 20%);
    --emerald-lt: hsl(162, 50%, 94%);
    --emerald-grd: linear-gradient(145deg, hsl(165, 45%, 32%) 0%, hsl(162, 72%, 14%) 100%);
    --emerald-glo: hsl(162, 72%, 20%, 0.2);

    --gold: hsl(42, 75%, 52%);
    --gold-lt: hsl(42, 90%, 92%);
    --gold-grd: linear-gradient(135deg, hsl(45, 95%, 78%) 0%, hsl(38, 72%, 48%) 100%);
    --gold-glo: hsl(42, 75%, 52%, 0.3);

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'DM Sans', system-ui, sans-serif;

    /* Spacing */
    --nav-h: 64px;

    /* Easings */
    --spring: cubic-bezier(0.16, 1, 0.3, 1);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows — Nuanced depth */
    --s1: 0 1px 3px rgba(0, 0, 0, .04), 0 4px 12px rgba(0, 0, 0, .04);
    --s2: 0 8px 24px -6px rgba(0, 0, 0, .08), 0 2px 8px rgba(0, 0, 0, .04);
    --s3: 0 20px 60px -15px rgba(0, 0, 0, .14), 0 8px 20px rgba(0, 0, 0, .06);

    /* Radius */
    --r-sm: 10px;
    --r-md: 18px;
    --r-lg: 28px;
    --r-xl: 40px;
    --r-full: 999px;
}

/* ── Reset ──────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--page);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

button {
    cursor: pointer;
    font-family: var(--font-sans);
    background: none;
}

input,
textarea {
    font-family: var(--font-sans);
}

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--r-full);
}

/* ══════════════════════════════════════════════════════
   NAVIGATION
════════════════════════════════════════════════════════ */
.a-nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    z-index: 900;
    background: hsla(162, 40%, 8%, 0.92);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-bottom: 1px solid hsla(162, 40%, 30%, 0.4);
}

.a-nav__inner {
    height: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand */
.a-nav__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-emblem {
    width: 34px;
    height: 34px;
    background: var(--gold-grd);
    color: var(--ink);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.brand-text h1 {
    font-family: var(--font-serif);
    color: #FFF;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.1;
}

.brand-text span {
    font-size: 0.6875rem;
    color: hsla(0, 0%, 100%, 0.45);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Call Waiter Button */
.waiter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: hsla(0, 0%, 100%, 0.06);
    border: 1px solid hsla(0, 0%, 100%, 0.12);
    border-radius: var(--r-full);
    color: hsla(0, 0%, 100%, 0.75);
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.35s var(--spring);
    letter-spacing: 0.01em;
}

.waiter-btn:hover {
    background: var(--gold-grd);
    color: var(--ink);
    border-color: transparent;
    transform: scale(1.02);
    box-shadow: 0 8px 20px var(--gold-glo);
}

/* ══════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════ */
.a-hero {
    position: relative;
    padding-top: var(--nav-h);
    height: 100svh;
    max-height: 680px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

/* Background */
.a-hero__bg {
    position: absolute;
    inset: 0;
}

.a-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.a-hero__vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            hsla(162, 40%, 8%, 0.5) 0%,
            hsla(162, 40%, 8%, 0.1) 35%,
            hsla(162, 40%, 8%, 0.0) 55%,
            hsla(40, 20%, 96%, 0.0) 60%,
            hsla(40, 20%, 96%, 1.0) 100%);
}

/* Overlapping Card */
.a-hero__card {
    position: relative;
    z-index: 2;
    background: var(--surface);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: 1.75rem 1.5rem 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.12);
}

.a-hero__card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.info-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: var(--page);
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--border);
}

.info-badge--open {
    background: var(--emerald-lt);
    color: var(--emerald);
    border-color: hsla(162, 72%, 20%, 0.2);
}

.info-badge--rating {
    background: var(--gold-lt);
    color: hsl(38, 72%, 35%);
    border-color: var(--gold-glo);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--emerald);
    border-radius: 50%;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.a-hero__card-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    padding-bottom: 2rem;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.a-hero__title {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1.0;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.a-hero__title em {
    font-style: italic;
    background: var(--emerald-grd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.a-hero__sub {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
    max-width: 26ch;
}

/* Discover Button */
.btn-discover {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--emerald-grd);
    color: #FFF;
    border-radius: var(--r-lg);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 12px 28px var(--emerald-glo);
    transition: all 0.4s var(--spring);
}

.btn-discover:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 18px 40px var(--emerald-glo);
}

.btn-discover:active {
    transform: scale(0.97);
}

/* ══════════════════════════════════════════════════════
   CONTROLS (Search + Categories)
════════════════════════════════════════════════════════ */
.a-controls {
    position: sticky;
    top: var(--nav-h);
    z-index: 800;
    background: var(--page);
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--border);
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
    left: 0;
    right: 0;
}

/* Sticky needs to cover full width */
.a-controls {
    position: sticky;
    width: 100%;
    max-width: none;
    padding: 1rem max(1.25rem, env(safe-area-inset-left)) 0.75rem;
}

.a-search {
    position: relative;
    margin-bottom: 1rem;
}

.a-search__ico {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.a-search input {
    width: 100%;
    padding: 0.875rem 1.125rem 0.875rem 2.75rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-size: 0.9375rem;
    color: var(--ink);
    outline: none;
    transition: all 0.3s var(--ease);
}

.a-search input::placeholder {
    color: var(--muted);
}

.a-search input:focus {
    border-color: var(--emerald);
    background: #FFF;
    box-shadow: 0 0 0 4px var(--emerald-lt);
}

/* Category Pills */
.a-categories {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 1px;
}

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

.cat-btn {
    padding: 0.45rem 1rem;
    background: #FFF;
    border: 1.5px solid var(--border);
    border-radius: var(--r-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    transition: all 0.25s var(--ease);
}

.cat-btn:hover {
    border-color: var(--emerald);
    color: var(--emerald);
}

.cat-btn.active {
    background: var(--emerald-grd);
    color: #FFF;
    border-color: transparent;
    box-shadow: 0 4px 14px var(--emerald-glo);
}

/* ══════════════════════════════════════════════════════
   MENU ITEMS
════════════════════════════════════════════════════════ */
.a-menu {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1.25rem 9rem;
}

/* Section */
.menu-section {
    margin-bottom: 3.5rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold-grd);
    border-radius: var(--r-full);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.625rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.section-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    background: var(--page);
    padding: 0.25rem 0.75rem;
    border-radius: var(--r-full);
    border: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.items-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ── Item Card ──────────────────────────────────────── */
.artisan-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--s1);
    transition: all 0.45s var(--spring);
    animation: cardReveal 0.6s var(--spring) both;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.artisan-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--emerald-grd);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    border-radius: inherit;
}

.artisan-card:hover {
    border-color: hsla(162, 72%, 20%, 0.25);
    box-shadow: var(--s2);
    transform: translateY(-2px);
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Left (Text) */
.card-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 90px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.375rem;
}

.item-tag {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 7px;
    border-radius: var(--r-full);
}

.item-tag--veg {
    background: var(--emerald-lt);
    color: var(--emerald);
}

.item-tag--spicy {
    background: hsl(14, 95%, 94%);
    color: hsl(14, 80%, 45%);
}

.item-tag--best {
    background: var(--gold-lt);
    color: hsl(38, 72%, 38%);
}

.item-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}

.item-desc {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.875rem;
}

.card-foot {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.item-price {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--emerald);
}

/* Card Right (Image + Button) */
.card-visual {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    flex-shrink: 0;
}

.item-img-box {
    width: 90px;
    height: 90px;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 2px solid var(--border);
    position: relative;
}

.item-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--spring);
}

.artisan-card:hover .item-img-box img {
    transform: scale(1.07);
}

/* Add Button */
.add-trigger {
    width: 36px;
    height: 36px;
    background: var(--emerald-grd);
    color: #FFF;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 400;
    transition: all 0.3s var(--spring);
    box-shadow: 0 4px 12px var(--emerald-glo);
    flex-shrink: 0;
}

.add-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px var(--emerald-glo);
}

.add-trigger:active {
    transform: scale(0.92);
}

.add-trigger.active {
    background: var(--gold-grd);
    color: var(--ink);
    box-shadow: 0 4px 12px var(--gold-glo);
    font-size: 0.875rem;
    font-weight: 700;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 0;
    color: var(--muted);
    font-size: 0.9375rem;
}

/* ══════════════════════════════════════════════════════
   FLOATING CART BAR
════════════════════════════════════════════════════════ */
.a-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 850;
    padding: 0.75rem 1.25rem max(0.75rem, env(safe-area-inset-bottom));
    background: var(--ink);
}

.a-cart-bar__inner {
    max-width: 640px;
    margin: 0 auto;
    background: var(--emerald-grd);
    border-radius: var(--r-lg);
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 8px 30px var(--emerald-glo);
    transition: all 0.3s var(--spring);
    animation: barSlideUp 0.6s var(--spring) both;
}

.a-cart-bar__inner:hover {
    transform: scale(1.01);
}

.a-cart-bar__inner:active {
    transform: scale(0.99);
}

@keyframes barSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.a-cart-bar__left {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: #FFF;
}

.cart-icon-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    background: hsla(0, 0%, 100%, 0.12);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    background: var(--gold-grd);
    color: var(--ink);
    font-size: 0.6rem;
    font-weight: 800;
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--ink);
}

.cart-label-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsla(0, 0%, 100%, 0.9);
}

.a-cart-bar__total {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: #FFF;
}

.pulse-cart {
    animation: cartBounce 0.4s var(--spring);
}

@keyframes cartBounce {

    0%,
    100% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.06);
    }
}

/* ══════════════════════════════════════════════════════
   BOTTOM SHEET & MODALS
════════════════════════════════════════════════════════ */
.a-sheet {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: flex-end;
}

.a-sheet--center {
    align-items: center;
    justify-content: center;
}

.a-sheet__scrim {
    position: absolute;
    inset: 0;
    background: hsla(162, 40%, 6%, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.a-sheet__panel {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    display: flex;
    flex-direction: column;
    max-height: 90svh;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.18);
    animation: sheetUp 0.5s var(--spring);
}

@keyframes sheetUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.a-sheet__panel--dialog {
    border-radius: var(--r-xl);
    width: calc(100% - 2rem);
    margin: 1rem;
    max-height: none;
    padding: 2.5rem 2rem;
    text-align: center;
    animation: dialogIn 0.5s var(--spring);
}

@keyframes dialogIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.a-sheet__handle {
    width: 36px;
    height: 4px;
    background: var(--border);
    border-radius: var(--r-full);
    margin: 1rem auto 0;
    flex-shrink: 0;
}

.a-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem 0;
    flex-shrink: 0;
}

.a-sheet__header-left {
    display: flex;
    align-items: baseline;
    gap: 0.875rem;
}

.a-sheet__title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.text-btn {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.25s;
}

.text-btn:hover {
    color: hsl(38, 72%, 40%);
}

.a-sheet__close {
    width: 32px;
    height: 32px;
    background: var(--page);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all 0.25s;
}

.a-sheet__close:hover {
    background: var(--border);
    color: var(--ink);
}

.a-sheet__body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

/* Cart Items */
.cart-items-container {
    margin-bottom: 0.5rem;
}

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

.item-cart-info {
    flex: 1;
}

.item-cart-info h5 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 2px;
}

.item-cart-meta {
    font-size: 0.75rem;
    color: var(--muted);
}

.item-cart-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-cart-price {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--emerald);
    min-width: 3.5rem;
    text-align: right;
}

.cart-ctrl {
    display: flex;
    align-items: center;
    gap: 0;
    /* tight */
    background: var(--page);
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    overflow: hidden;
}

.cart-ctrl-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--emerald);
    transition: background 0.2s;
}

.cart-ctrl-btn:hover {
    background: var(--emerald-lt);
}

.cart-ctrl-qty {
    min-width: 26px;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--ink);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

/* ── Order Form ─────────────────────────────────────── */
.order-form {
    margin-top: 1.5rem;
}

.form-section-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.form-section-label span {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    white-space: nowrap;
}

.form-section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.form-group {
    margin-bottom: 0.875rem;
}

.form-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    background: var(--page);
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 0.9375rem;
    color: var(--ink);
    outline: none;
    transition: all 0.3s var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald);
    background: #FFF;
    box-shadow: 0 0 0 3px var(--emerald-lt);
}

.form-group textarea {
    resize: none;
    line-height: 1.5;
}

/* Segmented Control */
.seg-control {
    position: relative;
    display: flex;
    background: var(--page);
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    padding: 3px;
    gap: 2px;
}

.seg-slider {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc(33.33% - 2px);
    background: var(--emerald-grd);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--emerald-glo);
    transition: transform 0.4s var(--spring);
    z-index: 0;
}

.seg-control:has(input[value="dine-in"]:checked) .seg-slider {
    transform: translateX(0);
}

.seg-control:has(input[value="takeaway"]:checked) .seg-slider {
    transform: translateX(100%);
}

.seg-control:has(input[value="cod"]:checked) .seg-slider {
    transform: translateX(200%);
}

.seg-option {
    flex: 1;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.seg-option input {
    display: none;
}

.seg-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    transition: color 0.3s;
    border-radius: 8px;
}

.seg-option input:checked+span {
    color: #FFF;
}

/* ── Sheet Footer ───────────────────────────────────── */
.a-sheet__footer {
    padding: 1.25rem 1.5rem max(1.25rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
}

.summary-block {
    margin-bottom: 1.25rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 0.375rem;
}

.summary-line--total {
    font-size: 1.35rem;
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--ink);
    margin-top: 0.375rem;
}

.summary-line--total span:last-child {
    color: var(--emerald);
}

/* Place Order Button */
.btn-place-order {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1.1rem;
    background: var(--emerald-grd);
    color: #FFF;
    border-radius: var(--r-lg);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px var(--emerald-glo);
    transition: all 0.35s var(--spring);
    position: relative;
    overflow: hidden;
}

.btn-place-order::before {
    content: '';
    position: absolute;
    inset: 0 -100% 0 auto;
    width: 30%;
    background: linear-gradient(90deg, transparent, hsla(0, 0%, 100%, 0.12), transparent);
    transition: all 0.6s var(--ease);
}

.btn-place-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px var(--emerald-glo);
}

.btn-place-order:hover::before {
    inset: 0 auto 0 100%;
}

.btn-place-order:active {
    transform: scale(0.98);
}

/* ══════════════════════════════════════════════════════
   WAITER DIALOG
════════════════════════════════════════════════════════ */
.waiter-ring {
    position: relative;
    width: 72px;
    height: 72px;
    background: var(--emerald-lt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald);
    margin: 0 auto 1.5rem;
}

.waiter-ring__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--emerald-lt);
    animation: ringPulse 2s ease-out infinite;
}

.waiter-ring__pulse:nth-child(2) {
    animation-delay: 0.6s;
}

@keyframes ringPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.waiter-modal-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.waiter-modal-sub {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 1.75rem;
}

.btn-dismiss {
    padding: 0.75rem 2rem;
    background: var(--page);
    border: 1.5px solid var(--border);
    border-radius: var(--r-full);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    transition: all 0.3s;
}

.btn-dismiss:hover {
    background: var(--emerald-grd);
    color: #FFF;
    border-color: transparent;
}

/* ══════════════════════════════════════════════════════
   UTILITIES
════════════════════════════════════════════════════════ */
.empty-msg {
    text-align: center;
    padding: 2.5rem 0 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

/* ══════════════════════════════════════════════════════
   MOBILE RESPONSIVE — Comprehensive Audit
   Breakpoints: 380px (XS) · 480px (SM) · 640px (LG)
════════════════════════════════════════════════════════ */

/* ── GLOBAL: Ensure nothing overflows ───────────────── */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* ── CONTROLS: Fix sticky covering whole width ─────── */
.a-controls {
    position: sticky;
    top: var(--nav-h);
    z-index: 800;
    background: var(--page);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 1.25rem 0.75rem;
    /* Remove the duplicate margin/max-width from before */
}

/* ── MENU: Max-width centering ──────────────────────── */
.a-menu {
    width: 100%;
}

/* ══ XS — Phones under 380px (SE, Moto G) ══════════ */
@media (max-width: 379px) {

    /* Nav: Hide waiter button text, show just icon */
    .waiter-btn span {
        display: none;
    }

    .waiter-btn {
        padding: 0.5rem 0.75rem;
    }

    /* Hero: Tighter text */
    .a-hero__title {
        font-size: 2.25rem;
    }

    .a-hero__card {
        border-radius: 24px 24px 0 0;
    }

    .a-hero__card-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding-bottom: 1.75rem;
    }

    .btn-discover {
        width: 100%;
        justify-content: center;
    }

    /* Cards: Stack vertically, smaller image */
    .artisan-card {
        gap: 0.75rem;
    }

    .item-img-box {
        width: 72px;
        height: 72px;
    }

    .item-name {
        font-size: 1.05rem;
    }

    /* Form: Collapse 2-col to 1-col */
    .form-row-2 {
        grid-template-columns: 1fr;
    }

    /* Cart bar */
    .a-cart-bar__inner {
        padding: 0.75rem 1.125rem;
    }

    /* Segmented: Tiny text */
    .seg-option span {
        font-size: 0.7rem;
        gap: 0.2rem;
    }

    .seg-option span svg {
        display: none;
        /* hide icons on tiny screens */
    }
}

/* ══ SM — Standard phones 380px–480px (most Android, older iPhone) ══ */
@media (max-width: 480px) {
  .a-sheet__panel{
        bottom: 0%;
    }
    /* Nav */
    .a-nav__inner {
        padding: 0 1rem;
    }

    .brand-text span {
        display: none;
        /* hide "Fine Dining" subtitle on sm */
    }

    /* Hero card */
    .a-hero__card {
        padding: 1.5rem 1.25rem 0;
    }

    .a-hero__card-body {
        padding-bottom: 1.75rem;
    }

    .a-hero__title {
        font-size: 2.6rem;
    }

    /* Controls */
    .a-controls {
        padding: 0.75rem 1rem 0.625rem;
    }

    .a-search input {
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        font-size: 0.9rem;
    }

    /* Menu */
    .a-menu {
        padding: 1.5rem 1rem 9rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    /* Item cards */
    .artisan-card {
        padding: 1rem;
        gap: 0.875rem;
    }

    .item-img-box {
        width: 80px;
        height: 80px;
        border-radius: 12px;
    }

    .item-name {
        font-size: 1.1rem;
    }

    .item-desc {
        font-size: 0.775rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .item-price {
        font-size: 1.1rem;
    }

    .add-trigger {
        width: 34px;
        height: 34px;
    }

    /* Cart bar */
    .a-cart-bar {
        padding: 0.625rem 1rem max(0.625rem, env(safe-area-inset-bottom));
    }

    .a-cart-bar__inner {
        padding: 0.875rem 1.25rem;
        border-radius: 20px;
    }

    .a-cart-bar__total {
        font-size: 1.1rem;
    }

    /* Sheet */
    .a-sheet__panel {
        border-radius: 28px 28px 0 0;
    }

    .a-sheet__body {
        padding: 1rem 1.25rem;
    }

    .a-sheet__header {
        padding: 1rem 1.25rem 0;
    }

    .a-sheet__footer {
        padding: 1rem 1.25rem max(1rem, env(safe-area-inset-bottom));
    }

    /* Form 2-col: stay as grid but tighter */
    .form-row-2 {
        grid-template-columns: 1fr 1fr;
        gap: 0.625rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.7rem 0.875rem;
    }

    /* Seg control */
    .seg-option span {
        font-size: 0.75rem;
        padding: 0.6rem 0.2rem;
    }

    /* Cart items in sheet */
    .cart-item-row {
        gap: 0.75rem;
    }

    .item-cart-right {
        gap: 0.75rem;
    }

    /* Checkout button */
    .btn-place-order {
        padding: 1rem;
        font-size: 0.9375rem;
        border-radius: 20px;
    }

    /* Summary */
    .summary-line--total {
        font-size: 1.2rem;
    }

    /* Waiter dialog */
    .a-sheet__panel--dialog {
        padding: 2rem 1.5rem;
        width: calc(100% - 2rem);
    }
}

/* ══ MD+: Wider phones & small tablets 481px–640px ══ */
@media (min-width: 481px) and (max-width: 640px) {

    .a-sheet__panel{
        bottom: 20%;
    }
}
    .a-hero__title {
        font-size: 3rem;
    }

    .a-hero__card-body {
        gap: 1.5rem;
        padding-bottom: 2.25rem;
    }

    .artisan-card {
        padding: 1.375rem;
    }

    .item-img-box {
        width: 95px;
        height: 95px;
    }


/* ══ LG: Wide viewports (tablets, landscape) ══════ */
@media (min-width: 641px) {

    /* Nav: Full centered layout */
    .a-nav__inner,
    .a-controls,
    .a-menu {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Hero card wider */
    .a-hero__card {
        max-width: 720px;
        margin: 0 auto;
        padding: 2rem 2.5rem 0;
        border-radius: 40px 40px 0 0;
    }

    .a-hero__title {
        font-size: 3.5rem;
    }

    /* Menu items — 2 column on large screens */
    .items-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .a-menu {
        padding: 2.5rem 1.5rem 9rem;
    }

    /* Cart sheet - max width centered */
    .a-sheet__panel {
        max-width: 720px;
        margin: 0 auto;
    }

    .a-sheet__panel--dialog {
        max-width: 480px;
    }
}

/* ══ Safe Area: Notched phones (iPhone X+) ══ */
@supports (padding: max(0px)) {
    .a-nav {
        padding-top: env(safe-area-inset-top);
    }

    .a-cart-bar {
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
    }

    .a-sheet__footer {
        padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    }

    /* Hero height accounts for notch */
    .a-hero {
        max-height: calc(680px + env(safe-area-inset-top));
    }
}

/* ══ Touch: Improve tap targets ══ */
@media (hover: none) and (pointer: coarse) {

    /* Larger tap targets for touch */
    .cat-btn {
        padding: 0.6rem 1.25rem;
        min-height: 44px;
    }

    .add-trigger {
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .cart-ctrl-btn {
        min-width: 40px;
        min-height: 40px;
    }

    .a-sheet__close {
        min-width: 44px;
        min-height: 44px;
    }

    .waiter-btn {
        min-height: 44px;
    }

    /* Remove hover effects on touch */
    .artisan-card:hover {
        transform: none;
        box-shadow: var(--s1);
    }

    .artisan-card:active {
        transform: scale(0.98);
        box-shadow: var(--s2);
    }

    .btn-discover:hover {
        transform: none;
    }

    .btn-discover:active {
        transform: scale(0.97);
    }
}

/* ══ Landscape Orientation ══ */
@media (orientation: landscape) and (max-height: 500px) {
    .a-hero {
        height: 100svh;
        max-height: 100svh;
    }

    .a-hero__title {
        font-size: 2rem;
    }

    .a-hero__sub {
        display: none;
    }

    .a-hero__card-body {
        padding-bottom: 1.25rem;
    }

    .info-badges {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
}

/* ══ Reduced Motion ══ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .live-dot {
        animation: none;
    }

    .waiter-ring__pulse {
        animation: none;
    }
}


/* Payment Methods - Scrollable Pill Row */
.payment-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 4px;
    margin-top: 8px;
}
.payment-scroll::-webkit-scrollbar {
    height: 3px;
}
.payment-scroll::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: var(--r-full);
}
.payment-scroll::-webkit-scrollbar-thumb {
    background: var(--emerald);
    border-radius: var(--r-full);
}
.payment-pill {
    flex-shrink: 0;
    cursor: pointer;
}
.payment-pill input {
    display: none;
}
.payment-pill span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: #FFF;
    border: 1.5px solid var(--border);
    border-radius: var(--r-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    transition: all 0.2s var(--ease);
}
.payment-pill input:checked + span {
    background: var(--emerald-grd);
    color: #FFF;
    border-color: transparent;
    box-shadow: 0 4px 12px var(--emerald-glo);
}
.payment-pill:hover span {
    border-color: var(--emerald);
    color: var(--emerald);
}

/* Stripe card element styling */
.stripe-card {
    background: #F9F7F4;
    border: 1px solid #E6E0D8;
    border-radius: 12px;
    padding: 12px;
    transition: border 0.2s;
}
.stripe-card:focus-within {
    border-color: #C7A17A;
    box-shadow: 0 0 0 2px rgba(199,161,122,0.2);
}
.stripe-error {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 8px;
    font-family: 'DM Sans', sans-serif;
}