/* ==========================================================================
   ARAFAT RESTAURANT — Design System
   Modern Tanzanian restaurant + premium food delivery experience.
   Palette: terracotta, warm cream, charcoal. Type: Fraunces + Inter.
   ========================================================================== */

@font-face {
    font-family: 'Fraunces';
    src: url('../fonts/fraunces-latin-400.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Fraunces';
    src: url('../fonts/fraunces-latin-600.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Fraunces';
    src: url('../fonts/fraunces-latin-700.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-latin-400.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-latin-500.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-latin-600.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-latin-700.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}

:root {
    --primary: #EA580C;
    --primary-dark: #C2410C;
    --primary-deep: #9A3412;
    --primary-soft: #FFF1E6;
    --primary-tint: #FFE4CE;
    --ink: #221A14;
    --muted: #7A6E64;
    --cream: #FFF9F3;
    --cream-2: #FDF1E5;
    --surface: #FFFFFF;
    --line: #F0E4D8;
    --gold: #E8A33D;
    --green: #1E9E52;
    --green-soft: #E7F6EC;
    --red: #D64545;
    --red-soft: #FCEAEA;
    --blue: #2F6FED;
    --blue-soft: #E8F0FD;
    --purple: #8B5CF6;
    --purple-soft: #F1EBFE;
    --orange-soft: #FFF0E0;
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 3px rgba(34, 26, 20, .07), 0 1px 2px rgba(34, 26, 20, .05);
    --shadow-md: 0 6px 18px -6px rgba(34, 26, 20, .12), 0 2px 6px -2px rgba(34, 26, 20, .06);
    --shadow-lg: 0 18px 40px -12px rgba(34, 26, 20, .18);
    --shadow-primary: 0 10px 24px -8px rgba(234, 88, 12, .5);
}

/* ---------- Base ---------- */

* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; }

a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }

h1, h2, h3, h4, h5, .display-serif { font-family: var(--font-display); font-weight: 600; color: var(--ink); }

::selection { background: var(--primary); color: #fff; }

:focus-visible { outline: 3px solid rgba(234, 88, 12, .4); outline-offset: 2px; border-radius: 6px; }

.container { max-width: 1200px; }

/* ---------- Buttons ---------- */

.btn {
    font-weight: 600;
    border-radius: 999px;
    padding: .65rem 1.4rem;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:active { transform: scale(.97); }

.btn-primary-custom {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
    box-shadow: var(--shadow-primary);
}
.btn-primary-custom:hover, .btn-primary-custom:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-custom {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary-dark);
}
.btn-outline-custom:hover, .btn-outline-custom:focus {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.btn-dark-custom {
    background: var(--ink);
    border: 1px solid var(--ink);
    color: #fff;
}
.btn-dark-custom:hover { background: #3B2E23; color: #fff; transform: translateY(-1px); }

.btn-ghost-custom {
    background: var(--primary-soft);
    border: 1px solid transparent;
    color: var(--primary-dark);
}
.btn-ghost-custom:hover { background: var(--primary-tint); color: var(--primary-dark); }

.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-lg { padding: .85rem 1.9rem; font-size: 1.05rem; }

.card-actions { display: inline-flex; gap: .45rem; }
.btn-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    font-size: 1rem;
    transition: transform .15s ease, background-color .15s ease;
}
.btn-card-call { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn-card-call:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-card-wa { background: #25D366; color: #fff; box-shadow: 0 8px 20px -8px rgba(37, 211, 102, .6); }
.btn-card-wa:hover { background: #1EBE5A; transform: translateY(-1px); }
.btn-card-action:active { transform: scale(.95); }

/* ---------- Header / Navbar ---------- */

.site-header { position: sticky; top: 0; z-index: 1030; }

.navbar-custom {
    background: rgba(255, 249, 243, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: .55rem 0;
}

.navbar-custom .container { display: flex; align-items: center; gap: 1.1rem; }

.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .2px; }
.brand-sub { font-size: .68rem; letter-spacing: .32em; text-transform: uppercase; color: var(--primary); font-weight: 600; }

.nav-links { gap: .35rem; margin-left: .4rem; }
.nav-link-custom {
    color: var(--ink);
    font-weight: 500;
    font-size: .95rem;
    padding: .5rem .9rem;
    border-radius: 999px;
    transition: background-color .15s ease, color .15s ease;
}
.nav-link-custom:hover { background: var(--primary-soft); color: var(--primary-dark); }
.nav-link-custom.active { background: var(--primary); color: #fff; }

.nav-search {
    position: relative;
    flex: 1;
    max-width: 340px;
    margin-left: auto;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: .4rem .95rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.nav-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(234, 88, 12, .12); }
.nav-search i { color: var(--muted); font-size: .85rem; }
.nav-search input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: .9rem;
    padding: .15rem .55rem;
    color: var(--ink);
}

.search-suggest {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 1050;
}
.search-suggest-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem .8rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    cursor: pointer;
}
.search-suggest-item:last-child { border-bottom: none; }
.search-suggest-item:hover { background: var(--cream-2); }
.search-suggest-item img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.search-suggest-item .ss-name { font-weight: 600; font-size: .88rem; }
.search-suggest-item .ss-price { color: var(--primary-dark); font-size: .8rem; font-weight: 600; }
.search-suggest-empty { padding: .8rem; color: var(--muted); font-size: .85rem; }

.nav-actions { display: flex; align-items: center; gap: .55rem; margin-left: auto; }
.nav-search + .nav-actions { margin-left: 0; }

.nav-icon {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line);
    font-size: 1rem;
    transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.nav-icon:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    min-width: 19px;
    height: 19px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--cream);
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
}

.account-menu { border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: .4rem 0; }
.account-menu-head { padding: .65rem 1rem .35rem; }
.account-menu-head strong { display: block; font-size: .92rem; }
.account-menu-head span { color: var(--muted); font-size: .8rem; word-break: break-all; }
.account-menu .dropdown-item { font-size: .9rem; padding: .5rem 1rem; border-radius: 8px; margin: 0 .35rem; width: auto; }
.account-menu .dropdown-item:hover { background: var(--cream-2); color: var(--ink); }

.notif-badge {
    background: var(--red);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    margin-left: .4rem;
}

/* ---------- Flash messages ---------- */

.flash-wrap { padding-top: 1.1rem; }
.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-radius: var(--radius-sm);
    padding: .85rem 1.1rem;
    margin-bottom: .6rem;
    font-size: .92rem;
    font-weight: 500;
    border: 1px solid transparent;
    animation: flashIn .3s ease;
}
@keyframes flashIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.flash-success { background: var(--green-soft); color: #14532D; border-color: #BBE7CB; }
.flash-error, .flash-danger { background: var(--red-soft); color: #7F1D1D; border-color: #F5C6C6; }
.flash-info { background: var(--blue-soft); color: #1E3A8A; border-color: #C7D9F8; }
.flash-warning { background: var(--orange-soft); color: #7C2D12; border-color: #FAD9B8; }
.flash-close { background: none; border: none; font-size: 1.15rem; color: inherit; opacity: .6; line-height: 1; }
.flash-close:hover { opacity: 1; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    color: #fff;
    padding: 6.5rem 0 6rem;
    background:
        linear-gradient(100deg, rgba(20, 11, 4, .88) 8%, rgba(20, 11, 4, .55) 45%, rgba(20, 11, 4, .18) 100%),
        url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?auto=format&fit=crop&w=1600&q=75') center/cover no-repeat;
    overflow: hidden;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(6px);
    border-radius: 999px;
    padding: .45rem 1rem;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
}
.hero h1 {
    color: #fff;
    font-size: clamp(2.3rem, 5vw, 3.9rem);
    line-height: 1.08;
    margin: 1.1rem 0 .9rem;
    font-weight: 700;
}
.hero h1 em { font-style: italic; color: #FFB26B; }
.hero p.lead { color: rgba(255, 255, 255, .88); font-size: 1.08rem; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero .btn-outline-custom { border-color: rgba(255, 255, 255, .7); color: #fff; }
.hero .btn-outline-custom:hover { background: #fff; border-color: #fff; color: var(--primary-dark); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 3rem; }
.hero-stat strong { display: block; font-family: var(--font-display); font-size: 1.55rem; color: #FFB26B; }
.hero-stat span { font-size: .82rem; color: rgba(255, 255, 255, .75); }

/* ---------- Sections ---------- */

.section { padding: 4.2rem 0; }
.section-alt { background: #fff; }
.section-tight { padding: 2.5rem 0; }

.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-eyebrow {
    color: var(--primary);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: .35rem 0 .5rem; }
.section-sub { color: var(--muted); margin-bottom: 0; }

.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Category chips ---------- */

.category-chip-grid { display: flex; flex-wrap: wrap; gap: .8rem; }
.category-chip {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: .55rem 1.15rem;
    color: var(--ink);
    font-weight: 600;
    font-size: .9rem;
    transition: border-color .15s ease, background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.category-chip:hover { border-color: var(--primary); color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.category-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.category-chip img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.category-chip .chip-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-dark); display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; }

/* Category tiles (home) */
.category-tile {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.category-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.category-tile:hover img { transform: scale(1.06); }
.category-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 11, 4, 0) 35%, rgba(20, 11, 4, .78) 100%);
}
.category-tile-label {
    position: absolute;
    z-index: 1;
    left: 1rem;
    right: 1rem;
    bottom: .85rem;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
}
.category-tile-count { position: absolute; z-index: 1; top: .8rem; right: .8rem; background: rgba(255,255,255,.9); color: var(--ink); font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; }

/* ---------- Product cards ---------- */

.product-grid { --cols: 4; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 1.4rem; }

.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.product-media { position: relative; aspect-ratio: 1 / .86; overflow: hidden; background: var(--cream-2); }
.product-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-media > img { transform: scale(1.05); }

.fav-btn {
    position: absolute;
    top: .7rem;
    right: .7rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, color .15s ease;
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.faved { color: var(--red); }
.fav-btn.faved i { font-weight: 900; }

.pill-tag {
    position: absolute;
    z-index: 2;
    top: .8rem;
    left: .8rem;
    background: var(--gold);
    color: #3B2507;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .03em;
    padding: .3rem .65rem;
    border-radius: 999px;
    text-transform: uppercase;
}
.pill-tag.unavailable { background: #6B6159; color: #fff; }

.product-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.product-cat { color: var(--primary-dark); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.product-name { font-size: 1.13rem; margin: .25rem 0 .3rem; font-weight: 600; }
.product-name a { color: var(--ink); }
.product-name a:hover { color: var(--primary-dark); }
.product-desc {
    color: var(--muted);
    font-size: .85rem;
    margin: 0 0 .6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.product-rating { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 600; color: var(--ink); }
.product-rating i { color: var(--gold); font-size: .78rem; }
.product-rating small { color: var(--muted); font-weight: 400; }

.product-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: .7rem; }
.price-now { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.price-old { color: var(--muted); font-size: .82rem; text-decoration: line-through; margin-left: .4rem; }

.product-card.unavailable .product-media > img { filter: grayscale(.9); opacity: .6; }
.product-card.unavailable .btn-card-action { pointer-events: none; background: #D6CCC2; box-shadow: none; }

/* ---------- Rating stars ---------- */

.stars { display: inline-flex; gap: 2px; color: var(--gold); font-size: .85rem; }
.stars .empty { color: #E3D6C8; }
.rating-summary { display: flex; align-items: center; gap: .6rem; }
.rating-big { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; }
.rating-big + .stars { font-size: 1rem; }

/* ---------- Why choose / features ---------- */

.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.feature-card p { color: var(--muted); font-size: .88rem; margin: 0; }

/* ---------- Offers ---------- */

.offer-card {
    position: relative;
    border-radius: var(--radius);
    padding: 1.9rem 1.6rem;
    color: #fff;
    height: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform .2s ease, box-shadow .2s ease;
}
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.offer-card .offer-tag {
    display: inline-block;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    padding: .3rem .75rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: .9rem;
}
.offer-card h3 { color: #fff; font-size: 1.35rem; margin-bottom: .4rem; }
.offer-card p { color: rgba(255, 255, 255, .85); font-size: .9rem; margin-bottom: 1.1rem; }
.offer-card .btn { background: #fff; color: var(--ink); border: none; }
.offer-card .btn:hover { background: var(--cream-2); }
.offer-1 { background: linear-gradient(135deg, #C2410C, #EA580C); }
.offer-2 { background: linear-gradient(135deg, #7C2D12, #C2410C); }
.offer-3 { background: linear-gradient(135deg, #9A3412, #EA580C); }
.offer-emoji { position: absolute; right: 1rem; bottom: .6rem; font-size: 4.2rem; opacity: .25; transform: rotate(-12deg); }

/* ---------- How it works ---------- */

.step-card { text-align: center; padding: 1.6rem 1rem; background: transparent; border: none; height: 100%; }
.step-num {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--primary);
    color: var(--primary-dark);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.step-card:hover .step-num { background: var(--primary); color: #fff; transform: scale(1.08); }
.step-card h3 { font-size: 1.05rem; }
.step-card p { color: var(--muted); font-size: .87rem; margin: 0; }

/* ---------- Testimonials ---------- */

.testimonial-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
}
.testimonial-card .stars { margin-bottom: .7rem; }
.testimonial-card p { color: #4A3E34; font-size: .92rem; }
.testimonial-author { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; }
.testimonial-author .avatar { background: var(--ink); }
.testimonial-author strong { display: block; font-size: .9rem; }
.testimonial-author span { color: var(--muted); font-size: .78rem; }

/* ---------- CTA band ---------- */

.cta-band {
    background: linear-gradient(120deg, #9A3412, #EA580C);
    border-radius: 24px;
    color: #fff;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    top: -140px;
    right: -80px;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .5rem; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-bottom: 1.6rem; }
.cta-band .btn { background: #fff; color: var(--primary-dark); border: none; }
.cta-band .btn:hover { background: var(--cream-2); }

/* ---------- Status badges ---------- */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .78rem;
    font-weight: 600;
    padding: .32rem .75rem;
    border-radius: 999px;
    white-space: nowrap;
}
.status-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-warning { background: #FFF7E6; color: #92600A; }
.status-info { background: var(--blue-soft); color: #1E429F; }
.status-primary { background: var(--primary-soft); color: var(--primary-dark); }
.status-purple { background: var(--purple-soft); color: #6D28D9; }
.status-orange { background: var(--orange-soft); color: #C2410C; }
.status-success { background: var(--green-soft); color: #15803D; }
.status-danger { background: var(--red-soft); color: #B91C1C; }
.status-secondary { background: #F1EDE8; color: #57534E; }

/* ---------- Food detail page ---------- */

.food-detail { padding-top: 2.2rem; }
.food-gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / .95; background: var(--cream-2); }
.food-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.food-thumbs { display: flex; gap: .6rem; margin-top: .6rem; }
.food-thumbs img, .food-thumbs .thumb {
    width: 74px;
    height: 74px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .75;
    transition: opacity .15s ease, border-color .15s ease;
    background: var(--cream-2);
}
.food-thumbs img.active, .food-thumbs img:hover { border-color: var(--primary); opacity: 1; }

.food-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: .3rem 0 .5rem; }
.food-price-row { display: flex; align-items: baseline; gap: .7rem; margin: .8rem 0; }
.food-price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--primary-dark); }
.food-desc { color: #4A3E34; line-height: 1.65; }

.addon-list { display: flex; flex-direction: column; gap: .55rem; }
.addon-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .65rem .9rem;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
    user-select: none;
}
.addon-item:hover { border-color: var(--primary); }
.addon-item.checked { border-color: var(--primary); background: var(--primary-soft); }
.addon-item input { accent-color: var(--primary); width: 17px; height: 17px; }
.addon-item .addon-name { font-weight: 600; font-size: .92rem; flex: 1; }
.addon-item .addon-price { color: var(--primary-dark); font-weight: 600; font-size: .9rem; }

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}
.qty-stepper button {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    color: var(--ink);
    font-size: 1rem;
    transition: background-color .15s ease;
}
.qty-stepper button:hover { background: var(--cream-2); color: var(--primary-dark); }
.qty-stepper input {
    width: 46px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    background: transparent;
    -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.ingredient-tag {
    display: inline-block;
    background: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .35rem .8rem;
    font-size: .8rem;
    color: #4A3E34;
    margin: 0 .35rem .35rem 0;
}

/* ---------- Forms ---------- */

.form-control, .form-select {
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .65rem .9rem;
    font-size: .93rem;
    background-color: #fff;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, .12);
}
.form-label { font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.form-text { font-size: .78rem; }
textarea.form-control { min-height: 100px; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

.auth-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 2.4rem;
    box-shadow: var(--shadow-md);
    max-width: 480px;
    margin: 0 auto;
}
.auth-card h1 { font-size: 1.7rem; margin-bottom: .35rem; }
.auth-card .auth-sub { color: var(--muted); margin-bottom: 1.5rem; }

/* ---------- Cart page ---------- */

.cart-lines { display: flex; flex-direction: column; gap: .9rem; }
.cart-line {
    display: flex;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
    align-items: center;
}
.cart-line-img { width: 84px; height: 84px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: var(--cream-2); }
.cart-line-body { flex: 1; min-width: 0; }
.cart-line-name { font-weight: 700; font-size: .98rem; }
.cart-line-addons { color: var(--muted); font-size: .78rem; }
.cart-line-instructions { color: var(--primary-dark); font-size: .78rem; font-style: italic; }
.cart-line-price { font-weight: 700; white-space: nowrap; }

.cart-summary {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: sticky;
    top: 96px;
}
.cart-summary h4 { font-size: 1.2rem; }
.summary-row { display: flex; justify-content: space-between; padding: .45rem 0; font-size: .92rem; }
.summary-row.total { border-top: 1.5px dashed var(--line); margin-top: .5rem; padding-top: .9rem; font-size: 1.1rem; font-weight: 700; }
.summary-row .discount { color: var(--green); font-weight: 600; }
.free-delivery-note { color: var(--muted); font-size: .78rem; margin-top: .5rem; }

/* ---------- Checkout wizard ---------- */

.checkout-steps { display: flex; justify-content: center; gap: 0; margin-bottom: 2rem; flex-wrap: wrap; }
.checkout-step {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 1.1rem;
    color: var(--muted);
    font-weight: 600;
    font-size: .88rem;
    position: relative;
}
.checkout-step + .checkout-step::before {
    content: '';
    width: 28px;
    height: 1.5px;
    background: var(--line);
    margin-right: .6rem;
}
.checkout-step .step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    font-weight: 700;
}
.checkout-step.active { color: var(--primary-dark); }
.checkout-step.active .step-circle { background: var(--primary); border-color: var(--primary); color: #fff; }
.checkout-step.done { color: var(--green); }
.checkout-step.done .step-circle { background: var(--green); border-color: var(--green); color: #fff; }

.checkout-panel { display: none; }
.checkout-panel.active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.payment-option {
    display: flex;
    align-items: center;
    gap: .8rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    padding: .85rem 1rem;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
    background: #fff;
}
.payment-option:hover { border-color: var(--primary); }
.payment-option.checked { border-color: var(--primary); background: var(--primary-soft); }
.payment-option input { accent-color: var(--primary); }
.payment-option .pay-icon { font-size: 1.15rem; color: var(--primary-dark); width: 26px; text-align: center; }
.payment-option .pay-name { font-weight: 600; font-size: .93rem; }
.payment-option .pay-note { color: var(--muted); font-size: .78rem; }

.order-summary-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }

/* ---------- Order timeline ---------- */

.timeline { position: relative; padding-left: 0; list-style: none; }
.timeline-item { position: relative; padding-left: 2.6rem; padding-bottom: 1.4rem; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 30px;
    bottom: 0;
    width: 2px;
    background: var(--line);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:last-child::before { display: none; }
.timeline-dot {
    position: absolute;
    left: 0;
    top: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    color: var(--muted);
}
.timeline-item.done .timeline-dot { background: var(--green); border-color: var(--green); color: #fff; }
.timeline-item.current .timeline-dot { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 5px rgba(234, 88, 12, .15); }
.timeline-item.cancelled .timeline-dot { background: var(--red); border-color: var(--red); color: #fff; }
.timeline-title { font-weight: 700; font-size: .93rem; }
.timeline-item.done .timeline-title, .timeline-item.current .timeline-title { color: var(--ink); }
.timeline-item:not(.done):not(.current) .timeline-title { color: var(--muted); }
.timeline-time { color: var(--muted); font-size: .78rem; }
.timeline-note { color: #4A3E34; font-size: .82rem; margin-top: .15rem; }

/* ---------- Order confirmation ---------- */

.confirm-hero { text-align: center; padding: 2.6rem 0 1.4rem; }
.confirm-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    font-size: 2.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    animation: popIn .45s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Empty states ---------- */

.empty-state { text-align: center; padding: 3.4rem 1.4rem; }
.empty-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--cream-2);
    color: #C9B8A6;
    font-size: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}
.empty-state h3 { font-size: 1.4rem; }
.empty-state p { color: var(--muted); max-width: 420px; margin: 0 auto 1.4rem; }

/* ---------- Pagination ---------- */

.pagination { gap: .35rem; }
.page-link {
    border: 1.5px solid var(--line);
    border-radius: 10px !important;
    color: var(--ink);
    font-weight: 600;
    font-size: .9rem;
    padding: .45rem .85rem;
    margin: 0;
    background: #fff;
}
.page-link:hover { background: var(--cream-2); color: var(--primary-dark); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-item.disabled .page-link { color: #C9B8A6; }

/* ---------- Footer ---------- */

.site-footer { background: #201811; color: rgba(255, 255, 255, .75); padding: 3.6rem 0 0; margin-top: 1rem; }
.brand-footer { color: #fff; margin-bottom: 1rem; }
.brand-footer .brand-sub { color: #FFB26B; }
.footer-about { font-size: .88rem; line-height: 1.65; max-width: 340px; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255, 255, 255, .7); font-size: .9rem; }
.footer-links a:hover { color: #FFB26B; }
.footer-contact { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .6rem; font-size: .88rem; align-items: flex-start; }
.footer-contact i { color: #FFB26B; margin-top: .2rem; width: 16px; }
.footer-contact a { color: rgba(255, 255, 255, .7); }
.footer-contact a:hover { color: #FFB26B; }

.social-links { display: flex; gap: .6rem; margin-top: 1.1rem; }
.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease, transform .15s ease;
}
.social-links a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.newsletter-form { display: flex; gap: .5rem; }
.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: #fff;
    padding: .5rem 1rem;
    font-size: .85rem;
    outline: none;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, .45); }
.newsletter-form input:focus { border-color: #FFB26B; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 2.6rem;
    padding: 1.3rem 0 1.6rem;
    font-size: .82rem;
}
.footer-legal a { color: rgba(255, 255, 255, .65); }
.footer-legal a:hover { color: #FFB26B; }
.footer-legal .sep { margin: 0 .4rem; color: rgba(255, 255, 255, .3); }

/* ---------- Mobile bottom nav + cart bar ---------- */

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    display: flex;
    padding: .4rem .3rem calc(.4rem + env(safe-area-inset-bottom));
}
.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 600;
    padding: .3rem 0;
}
.bottom-nav-item i { font-size: 1.15rem; }
.bottom-nav-item.active { color: var(--primary-dark); }

.cart-bar {
    position: fixed;
    left: .9rem;
    right: .9rem;
    bottom: calc(72px + env(safe-area-inset-bottom));
    z-index: 1031;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    padding: .55rem .65rem .55rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    box-shadow: var(--shadow-lg);
    animation: fadeUp .3s ease;
}
.cart-bar-info { display: flex; flex-direction: column; line-height: 1.2; }
.cart-bar-count { font-size: .74rem; color: rgba(255, 255, 255, .75); }
.cart-bar-total { font-weight: 700; font-size: .95rem; }

body { padding-bottom: 0; }
@media (max-width: 767.98px) {
    body.has-bottom-nav { padding-bottom: 76px; }
    .wa-float { bottom: 86px; }
}

/* ---------- WhatsApp float ---------- */

.wa-float {
    position: fixed;
    right: 1.1rem;
    bottom: 1.4rem;
    z-index: 1032;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .65);
    transition: transform .2s ease;
    animation: waPulse 2.6s infinite;
}
.wa-float:hover { color: #fff; transform: scale(1.08); }
@keyframes waPulse {
    0% { box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .65), 0 0 0 0 rgba(37, 211, 102, .4); }
    70% { box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .65), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .65), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Toasts ---------- */

.toast-container {
    position: fixed;
    top: 84px;
    right: 1rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    max-width: min(92vw, 380px);
}
.toast-custom {
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: .8rem 1.1rem;
    font-size: .88rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: .6rem;
    animation: toastIn .3s cubic-bezier(.2, 1.2, .4, 1);
}
.toast-custom.leaving { animation: toastOut .25s ease forwards; }
.toast-custom i { color: #FFB26B; }
.toast-custom.error i { color: #F87171; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: .01ms !important; }
}

/* ---------- Content pages ---------- */

.content-page { max-width: 820px; }
.content-page h1 { font-size: 2.1rem; margin-bottom: 1rem; }
.content-page h2 { font-size: 1.4rem; margin: 1.8rem 0 .6rem; }
.content-page p, .content-page li { color: #4A3E34; line-height: 1.7; }

.faq-accordion .accordion-item { border: 1px solid var(--line); border-radius: var(--radius-sm) !important; margin-bottom: .7rem; overflow: hidden; }
.faq-accordion .accordion-button { font-weight: 600; font-size: .95rem; background: #fff; box-shadow: none; }
.faq-accordion .accordion-button:not(.collapsed) { background: var(--primary-soft); color: var(--primary-dark); }
.faq-accordion .accordion-button:focus { box-shadow: 0 0 0 4px rgba(234, 88, 12, .12); }

.contact-info-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.3rem;
    height: 100%;
}
.contact-info-card .feature-icon { margin-bottom: .7rem; }

.map-frame { border: 0; display: block; width: 100%; max-width: 100%; box-sizing: border-box; height: 320px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* Bulletproof map container: the iframe is pinned to the wrapper's exact
   width/height, so it can never exceed its card or column. */
.map-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background: var(--cream-2);
    padding-top: var(--map-ratio, 56.25%); /* 16:9 default, override with style="--map-ratio:45%" */
}
.map-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-info-card { overflow: hidden; min-width: 0; }

/* ---------- Tables (account pages) ---------- */

.table-custom { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-custom thead th {
    background: var(--cream-2);
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    border: none;
    padding: .8rem 1rem;
    white-space: nowrap;
}
.table-custom tbody td { border-color: var(--line); padding: .9rem 1rem; vertical-align: middle; font-size: .9rem; }
.table-custom tbody tr:last-child td { border-bottom: none; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
    background: linear-gradient(100deg, rgba(20, 11, 4, .85) 10%, rgba(20, 11, 4, .5)),
        url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?auto=format&fit=crop&w=1600&q=70') center/cover no-repeat;
    color: #fff;
    padding: 3.6rem 0;
    text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .4rem; }
.page-hero p { color: rgba(255, 255, 255, .85); margin: 0; }

/* ---------- Skeleton ---------- */

.skeleton {
    background: linear-gradient(90deg, #F3E9DD 25%, #FBF4EA 50%, #F3E9DD 75%);
    background-size: 200% 100%;
    animation: shimmer 1.3s infinite;
    border-radius: 10px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Responsive ---------- */

@media (max-width: 1199.98px) { .product-grid { --cols: 3; } }
@media (max-width: 991.98px) {
    .product-grid { --cols: 3; gap: 1.1rem; }
    .hero { padding: 4.6rem 0 4.4rem; }
}
@media (max-width: 767.98px) {
    .product-grid { --cols: 2; gap: .9rem; }
    .section { padding: 2.9rem 0; }
    .hero { padding: 3.4rem 0 3.2rem; }
    .hero h1 { font-size: 2.05rem; }
    .hero-stats { gap: 1.4rem; margin-top: 2.2rem; }
    .cart-line { flex-wrap: wrap; }
    .cart-line-img { width: 68px; height: 68px; }
    .cart-line-actions { width: 100%; display: flex; justify-content: space-between; align-items: center; }
    .auth-card { padding: 1.6rem 1.2rem; }
    .checkout-step { padding: .4rem .55rem; font-size: .78rem; }
    .checkout-step + .checkout-step::before { width: 12px; margin-right: .3rem; }
    .checkout-step .step-circle { width: 26px; height: 26px; }
    .section-head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 374.98px) {
    .product-grid { --cols: 2; gap: .7rem; }
    .product-name { font-size: 1rem; }
    .price-now { font-size: 1.02rem; }
    .btn-add { padding: .45rem .8rem; font-size: .82rem; }
}

/* ---------- Error page ---------- */

.error-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.error-card { max-width: 520px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 3rem 2rem; box-shadow: var(--shadow-md); }
.error-code { font-family: var(--font-display); font-size: 4.4rem; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: .6rem; }
.error-card h1 { font-size: 1.6rem; }

/* ==========================================================================
   Menu photo gallery (showcase)
   ========================================================================== */

/* Sticky section navigation */
.gallery-nav-sticky {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 249, 243, .92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.gallery-pills {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    padding: .72rem 0;
    scrollbar-width: none;
}
.gallery-pills::-webkit-scrollbar { display: none; }
.gallery-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .48rem 1.05rem;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    font-size: .86rem;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.gallery-pill i { color: var(--primary); font-size: .8rem; }
.gallery-pill:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.gallery-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.gallery-pill.active i { color: #fff; }

/* Sections */
.gallery-section { scroll-margin-top: 84px; margin-bottom: 3.6rem; }
.gallery-section-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.35rem; }
.gallery-section-num {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}
.gallery-section-title { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 0 0 .12rem; }
.gallery-section-meta { color: var(--muted); font-size: .88rem; margin: 0; }

/* Photo grid */
.gallery-grid {
    --cols: 4;
    display: grid;
    grid-template-columns: repeat(var(--cols), 1fr);
    gap: 1.1rem;
}

.gallery-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease;
}
.gallery-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.gallery-tile:active { transform: scale(.99); }
.gallery-tile img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.gallery-tile:hover img { transform: scale(1.05); }
/* Dish name + price in the caption bar below the photo — always readable */
.gallery-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: .22rem;
    padding: .75rem 1rem .85rem;
    text-align: left;
}
.gallery-label-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.32;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gallery-label-price {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: .82rem;
    color: var(--primary-dark);
}
.gallery-label-name.menu-special { color: #EE0000; }
.gallery-special-tag {
    position: absolute;
    z-index: 1;
    top: .7rem;
    left: .7rem;
    background: #EE0000;
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: .24rem .6rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.gallery-badge {
    position: absolute;
    z-index: 1;
    top: .7rem;
    right: .7rem;
    background: rgba(255, 255, 255, .93);
    color: var(--ink);
    font-size: .72rem;
    font-weight: 700;
    padding: .22rem .62rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    box-shadow: var(--shadow-sm);
}

/* Lightbox (Bootstrap modal, custom-styled).
   The stage has a FIXED size (aspect ratio), so swapping between photos of
   different shapes never resizes/re-centers the modal — no jumping. */
.gallery-lightbox .gallery-modal-dialog {
    max-width: min(1120px, 96vw);
    /* Bootstrap gives .modal-dialog pointer-events:none and re-enables them on
       .modal-content — but this lightbox has no .modal-content wrapper, so the
       whole dialog (stage, swipe, arrows, close) would ignore every touch. */
    pointer-events: auto;
}
.gallery-lightbox .gallery-stage {
    position: relative;
    background: #100B08;
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 82vh;
    touch-action: pan-y; /* keep page scroll, hand horizontal swipes to our JS */
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.gallery-lightbox .gallery-stage.dragging { cursor: grabbing; }
.gallery-lightbox .gallery-stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.gallery-close {
    position: absolute;
    top: .8rem;
    right: .8rem;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(16, 11, 8, .55);
    color: #fff;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease;
}
.gallery-close:hover { background: var(--primary); }
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(16, 11, 8, .55);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease;
}
.gallery-nav:hover { background: var(--primary); }
.gallery-nav-prev { left: .8rem; }
.gallery-nav-next { right: .8rem; }
.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    padding: 2.6rem 1.15rem 1.05rem;
    background: linear-gradient(180deg, rgba(16, 11, 8, 0) 0%, rgba(16, 11, 8, .88) 100%);
    color: #fff;
    pointer-events: none;
}
.gallery-caption-text { min-width: 0; display: flex; flex-direction: column; gap: .12rem; }
.gallery-caption-eyebrow { font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; opacity: .75; font-weight: 600; }
.gallery-caption-title { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; }
.gallery-counter { font-size: .82rem; opacity: .85; white-space: nowrap; padding-bottom: .15rem; }

@media (max-width: 1199.98px) { .gallery-grid { --cols: 3; } }
@media (max-width: 991.98px) { .gallery-grid { --cols: 3; gap: 1rem; } }
@media (max-width: 767.98px) {
    .gallery-grid { --cols: 2; gap: .7rem; }
    .gallery-label { font-size: .85rem; }
    .gallery-nav { width: 38px; height: 38px; }
    .gallery-lightbox .gallery-stage { aspect-ratio: 3 / 4; max-height: 70vh; }
    .gallery-close { width: 36px; height: 36px; }
    .gallery-section-head { gap: .8rem; }
    .gallery-section-num { width: 40px; height: 40px; border-radius: 12px; font-size: .95rem; }
}
@media (max-width: 374.98px) { .gallery-grid { --cols: 1; } }

/* ==========================================================================
   Menu page (photo cards + prices)
   ========================================================================== */

.menu-section { scroll-margin-top: 84px; margin-bottom: 3.2rem; }

.menu-section-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.35rem; }
.menu-card-emoji {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    font-size: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-card-title { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 0 0 .1rem; }
.menu-card-sub { color: var(--muted); font-size: .9rem; margin: 0; }

.menu-group-title {
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    padding-bottom: .55rem;
    margin: 1.9rem 0 1rem;
}

/* dishes without a photo: compact name — price list */
.menu-mini {
    list-style: none;
    padding: 0;
    margin: .2rem 0 1.6rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .35rem 2.2rem;
}
.menu-mini li {
    display: flex;
    align-items: baseline;
    gap: .45rem;
    padding: .35rem 0;
    border-bottom: 1px dashed #EDE1D2;
    min-width: 0;
}
.menu-mini-name { font-weight: 600; font-size: .9rem; color: var(--ink); }
.menu-mini-name.menu-special { color: #EE0000; }
.menu-mini-sub { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-mini-dots { flex: 1; border-bottom: 2px dotted #E0D2BF; margin: 0 .2rem .25rem; min-width: 1.5rem; }
.menu-mini-price { font-weight: 700; font-size: .88rem; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* "more photos" strip for sections with extra (unnamed) photos */
.menu-extras { margin-top: 1.1rem; }
.menu-photo-extra {
    display: flex;
    align-items: center;
    gap: .7rem;
    border: 1.5px dashed var(--line);
    background: var(--cream);
    border-radius: 14px;
    padding: .55rem 1rem .55rem .55rem;
    cursor: zoom-in;
    color: var(--ink);
    font-weight: 600;
    font-size: .88rem;
    transition: border-color .18s ease, background-color .18s ease;
}
.menu-photo-extra:hover { border-color: var(--primary); }
.menu-photo-extra img { width: 56px; height: 44px; border-radius: 9px; object-fit: cover; }
.menu-photo-extra i { color: var(--primary); }

/* lightbox price line */
.gallery-caption-price { font-family: var(--font-body); font-size: .82rem; font-weight: 600; color: rgba(255, 255, 255, .88); }

.menu-foot-note { margin-top: 2rem; color: var(--muted); font-size: .85rem; text-align: center; }

@media (max-width: 767.98px) {
    .menu-mini { grid-template-columns: 1fr; }
    .menu-card-emoji { width: 46px; height: 46px; font-size: 1.3rem; }
}

/* ---------- Print ---------- */
@media print {
    .site-header, .site-footer, .bottom-nav, .cart-bar, .wa-float, .toast-container { display: none !important; }
}
