/* ============================================================
   Naari 🌸 — Categories Module CSS v2
   Compact & Dense 3D Grid — Full Redesign
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

/* ═══ DESIGN TOKENS ═══ */
:root {
    --bg: #FFFFFF;
    --bg-alt: #FDF5F5;
    --surface: #FFFFFF;
    --surface-2: #FAF0F0;
    --text-head: #1C1C1E;
    --text-body: #4A4A52;
    --text-muted: #8A8A96;
    --accent: #D91C1C;
    --accent-lt: #FDEAEA;
    --accent-dk: #B51515;
    --accent-glow: rgba(217, 28, 28, 0.35);
    --gold: #F59E0B;
    --green: #22c55e;
    --border: rgba(28, 28, 30, .10);
    --shadow-sm: 0 2px 8px rgba(217, 28, 28, .06);
    --shadow-md: 0 6px 24px rgba(217, 28, 28, .10);
    --shadow-lg: 0 12px 48px rgba(217, 28, 28, .15);
    --radius: 20px;
    --radius-sm: 12px;
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --t: .3s;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-body);
    line-height: 1.65;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-head);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ═══════════════════════════════════════════════════════════
   PAGE WRAPPER
═══════════════════════════════════════════════════════════ */
.cat-page {
    padding-top: calc(80px + var(--strip-height));
    min-height: 100vh;
    transition: padding-top .3s ease;
}

/* ═══════════════════════════════════════════════════════════
   VIEW SYSTEM — SPA transitions
═══════════════════════════════════════════════════════════ */
.cat-view {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.cat-view.active {
    display: block;
    animation: viewEnter .4s var(--ease) forwards;
}

@keyframes viewEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════
   ── CATEGORIES HERO (ch-*) ──
═══════════════════════════════════════════════════════════ */

/* Hero wrapper */
.ch-hero {
    position: relative;
    overflow: hidden;
    background: #fff;
    padding: 60px 0 52px;
    min-height: 520px;
    display: flex;
    align-items: center;
}

/* Background image — identical to Home page hero (hero_bg.png @ 0.25 opacity) */
.ch-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero_bg.png') center / cover no-repeat;
    opacity: 0.25;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 0;
}

/* Background blobs (on top of bg image, below content) */
.ch-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
    z-index: 0;
    animation: chBlobFloat 8s ease-in-out infinite alternate;
}
.ch-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(217,28,28,.10), transparent 70%);
    top: -120px;
    right: -80px;
}
.ch-blob-2 {
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(245,158,11,.08), transparent 70%);
    bottom: -80px;
    left: 20%;
    animation-delay: -4s;
}
@keyframes chBlobFloat {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.08) translate(12px, -18px); }
}

/* Inner two-column layout */
.ch-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ── LEFT COLUMN ── */
.ch-left {
    max-width: 520px;
}

/* Live pill */
.ch-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8f8f9;
    border: 1px solid rgba(28,28,30,.08);
    border-radius: 40px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-head);
    margin-bottom: 22px;
}
.ch-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
    animation: chPulse 1.4s ease infinite;
}
@keyframes chPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
    50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* Heading */
.ch-heading {
    font-family: var(--font-head);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-head);
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}
.ch-heading-accent {
    color: var(--accent);
    display: block;
}

/* Description */
.ch-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 32px;
    max-width: 440px;
}

/* CTA buttons */
.ch-ctas {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.ch-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    background: var(--accent);
    color: #fff !important;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    border-radius: 40px;
    box-shadow: 0 4px 20px rgba(217,28,28,.30);
    transition: background .25s, transform .25s, box-shadow .25s;
    white-space: nowrap;
}
.ch-btn-primary:hover {
    background: var(--accent-dk);
    box-shadow: 0 6px 28px rgba(217,28,28,.42);
    transform: translateY(-2px);
}
.ch-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    background: transparent;
    color: var(--text-head) !important;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border-radius: 40px;
    border: 1.5px solid rgba(28,28,30,.2);
    transition: border-color .25s, background .25s, transform .25s;
    white-space: nowrap;
}
.ch-btn-secondary:hover {
    border-color: var(--accent);
    background: var(--accent-lt);
    transform: translateY(-2px);
}

/* Stats row */
.ch-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.ch-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ch-stat-num {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}
.ch-star {
    color: #F59E0B;
}
.ch-stat-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.ch-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ── RIGHT COLUMN ── */
.ch-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

/* Floating badges */
.ch-float-label {
    position: absolute;
    background: #fff;
    border: 1px solid rgba(28,28,30,.08);
    border-radius: 40px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-head);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    z-index: 10;
    white-space: nowrap;
    animation: chLabelFloat 5s ease-in-out infinite alternate;
}
.ch-fl-1 { top: 10px; right: 0; animation-delay: 0s; }
.ch-fl-2 { top: 45%; right: -10px; animation-delay: -1.6s; }
.ch-fl-3 { bottom: 12px; left: 10px; animation-delay: -3s; }
@keyframes chLabelFloat {
    from { transform: translateY(0); }
    to   { transform: translateY(-8px); }
}

/* Cards grid — 3 cols, 2 rows, center col spans full height */
.ch-cards-grid {
    display: grid;
    grid-template-columns: 118px 148px 118px;
    grid-template-rows: 155px 128px;
    gap: 8px;
    transform: perspective(1000px) rotateY(-4deg) rotateX(3deg);
    transform-style: preserve-3d;
    transition: transform .5s var(--ease);
    will-change: transform;
}
.ch-right:hover .ch-cards-grid {
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg) scale(1.02);
}

/* Individual cards */
.ch-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
    transition: transform .3s var(--ease), box-shadow .3s;
}
.ch-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 16px 40px rgba(0,0,0,.20);
}
.ch-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ch-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 55%);
}
.ch-card-label {
    position: absolute;
    bottom: 10px;
    left: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.ch-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(217,28,28,.92);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 20px;
    padding: 3px 10px;
}

/* Featured card — center column, spans both rows */
.ch-card-featured {
    grid-column: 2;
    grid-row: 1 / 3;
}

/* Staggered entrance animations */
.ch-card-anim-1 { animation: chCardIn .6s var(--ease) .1s both; }
.ch-card-anim-2 { animation: chCardIn .6s var(--ease) .2s both; }
.ch-card-anim-3 { animation: chCardIn .6s var(--ease) .3s both; }
.ch-card-anim-4 { animation: chCardIn .6s var(--ease) .4s both; }
.ch-card-anim-5 { animation: chCardIn .6s var(--ease) .5s both; }
.ch-card-anim-6 { animation: chCardIn .6s var(--ease) .6s both; }
@keyframes chCardIn {
    from { opacity: 0; transform: translateY(24px) scale(.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scroll hint */
.ch-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}
.ch-scroll-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: chScrollBounce 1.8s ease-in-out infinite;
}
@keyframes chScrollBounce {
    0%, 100% { transform: scaleY(1) translateY(0); opacity: 1; }
    50%       { transform: scaleY(.6) translateY(4px); opacity: .4; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .ch-cards-grid {
        grid-template-columns: 105px 132px 105px;
        grid-template-rows: 138px 114px;
    }
}
@media (max-width: 860px) {
    .ch-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .ch-right {
        min-height: 280px;
    }
    .ch-cards-grid {
        grid-template-columns: 100px 124px 100px;
        grid-template-rows: 130px 105px;
    }
    .ch-left { max-width: 100%; }
}
@media (max-width: 540px) {
    .ch-hero { padding: 40px 0 24px; }
    .ch-heading { font-size: 36px; }
    .ch-cards-grid {
        grid-template-columns: 88px 108px 88px;
        grid-template-rows: 112px 90px;
        gap: 6px;
    }
    .ch-float-label { display: none; }
    .ch-scroll-hint { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   ── VIEW 1: COMPACT CATEGORIES GRID ──
═══════════════════════════════════════════════════════════ */


/* Compact page top bar */
.cat-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

.cat-topbar-left h1 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-head);
    font-family: var(--font-head);
}

.cat-topbar-left h1 em {
    font-style: normal;
    color: var(--accent);
}

.cat-topbar-left p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.cat-topbar-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cat-stat-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-body);
}

.cat-stat-chip .cs-num {
    color: var(--accent);
    font-weight: 800;
}

.cat-live-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1
    }

    50% {
        transform: scale(1.5);
        opacity: .6
    }
}

/* ── Category Cards Grid ── */
.cat-grid-section {
    padding-top: 36px;
    padding-bottom: 28px;
}

.cat-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* Individual category card — compact 3D card */
.cat-card {
    position: relative;
    height: 210px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    transform-style: preserve-3d;
    background: #111;
    border: 1.5px solid rgba(255, 255, 255, .04);
}

.cat-card:hover {
    transform: perspective(800px) rotateX(-4deg) translateY(-8px) scale(1.02);
    box-shadow: 0 24px 56px rgba(0, 0, 0, .28), 0 0 0 2px var(--cat-accent, var(--accent));
    z-index: 4;
}

/* Food image background */
.cat-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease), filter .4s;
    filter: saturate(1.1) brightness(.75);
}

.cat-card:hover .cat-card-img {
    transform: scale(1.1);
    filter: saturate(1.3) brightness(.7);
}

/* Emoji fallback center */
.cat-card-emoji-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    background: radial-gradient(circle at center, var(--cat-bg, #1a0505), #0d0d0d);
}

/* Gradient overlays */
.cat-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .3) 55%, rgba(0, 0, 0, .06) 100%);
    z-index: 2;
}

/* Color accent tint in top-right corner */
.cat-card-tint {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 50%;
    background: var(--cat-accent, rgba(217, 28, 28, .15));
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity .4s;
}

.cat-card:hover .cat-card-tint {
    opacity: 1;
}

/* Category label (top) */
.cat-card-label {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(6px);
    padding: 3px 9px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .1);
}

.cat-card-label-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--cat-accent, var(--accent));
    filter: brightness(2.5);
    animation: pulseDot 2s ease-in-out infinite;
}

/* Dish count badge (top-right) */
.cat-card-count {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(6px);
    padding: 3px 9px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .1);
}

/* Ghost number watermark */
.cat-card-num {
    position: absolute;
    bottom: -8px;
    right: 8px;
    z-index: 2;
    font-family: var(--font-head);
    font-size: 80px;
    font-weight: 900;
    color: rgba(255, 255, 255, .06);
    line-height: 1;
    user-select: none;
    pointer-events: none;
    transition: color .4s, transform .4s;
}

.cat-card:hover .cat-card-num {
    color: rgba(255, 255, 255, .11);
    transform: scale(1.06);
}

/* Content at bottom */
.cat-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 14px 14px 14px;
}

.cat-card-emoji {
    font-size: 22px;
    margin-bottom: 4px;
    display: block;
}

.cat-card-name {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.cat-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cat-card-dishes-info {
    font-size: 11px;
    color: rgba(255, 255, 255, .65);
    font-weight: 500;
}

.cat-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--cat-btn, var(--accent));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, opacity .2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
    position: relative;
    overflow: hidden;
}

.cat-card-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .18);
    transform: translateX(-100%);
    transition: transform .3s var(--ease);
}

.cat-card-cta:hover::before {
    transform: translateX(0);
}

.cat-card-cta:hover {
    transform: scale(1.07);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}

.cat-card-cta svg {
    transition: transform .2s;
    flex-shrink: 0;
}

.cat-card-cta:hover svg {
    transform: translateX(3px);
}

/* Hover progress bar */
.cat-card-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2.5px;
    background: var(--cat-btn, var(--accent));
    width: 0;
    transition: width .55s var(--ease);
    border-radius: 0 3px 3px 0;
    z-index: 4;
    opacity: .8;
}

.cat-card:hover .cat-card-progress {
    width: 100%;
}

/* Shimmer flare on hover */
.cat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(255, 255, 255, .12) 0%, transparent 40%, rgba(255, 255, 255, .06) 100%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
    z-index: 5;
}

.cat-card:hover::after {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   ── VIEW 2: DISHES IN CATEGORY — COMPACT ──
═══════════════════════════════════════════════════════════ */

/* Slim category header */
.dishes-header-slim {
    position: relative;
    height: 130px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-end;
    padding: 16px 20px;
}

.dishes-header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1C1C1E 0%, #2d0808 100%);
    z-index: 0;
}

.dishes-header-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .28;
    z-index: 1;
    transition: transform 8s ease;
    transform: scale(1.05);
}

.dishes-header-img.zoomed {
    transform: scale(1);
}

.dishes-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(20, 20, 24, .92) 0%, rgba(20, 20, 24, .5) 60%, transparent 100%);
    z-index: 2;
}

.dishes-header-content {
    position: relative;
    z-index: 3;
    flex: 1;
}

.dishes-header-tag {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 4px;
}

.dishes-header-title {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
}

.dishes-header-title span {
    color: #FFB3B3;
}

.dishes-header-right {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.dh-stat-pill {
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .12);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: rgba(255, 255, 255, .8);
    font-weight: 600;
}

/* Nav bar for dishes view */
.dishes-nav-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.dishes-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 40px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    transition: border-color .22s, color .22s, background .22s, transform .22s, box-shadow .22s;
    flex-shrink: 0;
}

.dishes-back-btn svg {
    transition: transform .22s;
}

.dishes-back-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-lt);
    box-shadow: 0 3px 12px rgba(217, 28, 28, .12);
    transform: translateX(-4px);
}

.dishes-back-btn:hover svg {
    transform: translateX(-4px);
}

.nav-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    flex: 1;
}

/* Back Button Styles */
.nav-back-btn {
    background: rgba(217, 28, 28, .06);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    cursor: pointer;
    transition: background .2s, transform .2s, color .2s;
    margin-right: 8px;
    flex-shrink: 0;
}

.nav-back-btn:hover {
    background: var(--accent);
    color: #fff;
    transform: translateX(-2px);
}

.dd-hero-breadcrumb .nav-back-btn {
    margin-right: 10px;
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

.dd-hero-breadcrumb .nav-back-btn:hover {
    background: #fff;
    color: var(--accent);
    transform: translateX(-3px);
}

.nav-breadcrumb a {
    color: var(--accent);
    font-weight: 500;
    transition: opacity .2s;
}

.nav-breadcrumb a:hover {
    opacity: .75;
}

.nav-breadcrumb span {
    color: var(--accent);
}

/* ── Dish Cards Grid ── */
.dish-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-bottom: 28px;
}

/* Individual dish card */
.dish-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--surface);
    border: 1.5px solid var(--border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
}

.dish-card:hover {
    transform: perspective(700px) rotateX(-3deg) translateY(-8px) scale(1.01);
    box-shadow: 0 20px 52px rgba(217, 28, 28, .2), 0 4px 20px rgba(0, 0, 0, .12);
    border-color: rgba(217, 28, 28, .4);
    z-index: 3;
}

/* Image */
.dish-card-visual {
    position: relative;
    height: 160px;
    overflow: hidden;
    flex-shrink: 0;
}

.dish-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease), filter .4s;
    filter: saturate(1.05);
}

.dish-card:hover .dish-card-img {
    transform: scale(1.1);
    filter: saturate(1.2);
}

.dish-card-emoji-big {
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    background: var(--bg-alt);
}

/* "Cooking Now" badge */
.dish-card-live {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(217, 28, 28, .9);
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .4px;
    padding: 3px 9px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.live-dot {
    width: 5px;
    height: 5px;
    background: #4ade80;
    border-radius: 50%;
    animation: livePulse 1.4s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .5;
        transform: scale(1.6)
    }
}

/* Price badge on image */
.dish-card-price-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(8px);
    color: #fff;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .12);
}

/* Shimmer */
.dish-card-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .12) 0%, transparent 50%, rgba(255, 255, 255, .06) 100%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
    z-index: 3;
}

.dish-card:hover .dish-card-visual::after {
    opacity: 1;
}

/* Top accent line */
.dish-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity .3s;
    z-index: 4;
}

.dish-card:hover::before {
    opacity: .7;
}

/* Card body */
.dish-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dish-card-cat-label {
    font-size: 9.5px;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}

.dish-card-name {
    font-family: var(--font-head);
    font-size: 14.5px;
    font-weight: 800;
    color: var(--text-head);
    line-height: 1.25;
    margin-bottom: 4px;
    transition: color .25s;
}

.dish-card:hover .dish-card-name {
    color: var(--accent);
}

.dish-card-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dish-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.dish-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
}

.dish-card-rating .stars {
    color: var(--gold);
    font-size: 10px;
}

.dish-card-rating .score {
    font-weight: 700;
    color: var(--text-head);
}

.dish-card-rating .cnt {
    color: var(--text-muted);
}

/* Chefs stack */
.dish-card-chefs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chef-avatar-stack {
    display: flex;
}

.chef-avatar-mini {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--surface);
    overflow: hidden;
    margin-left: -8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .14);
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.chef-avatar-mini:first-child {
    margin-left: 0;
}

.chef-avatar-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chef-count-text {
    font-size: 10.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

.chef-count-text strong {
    color: var(--text-head);
}

/* CTA button */
.dish-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--accent);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 2px 10px rgba(217, 28, 28, .2);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.dish-card-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .15);
    transform: translateX(-100%);
    transition: transform .3s var(--ease);
}

.dish-card-btn:hover::before {
    transform: translateX(0);
}

.dish-card-btn:hover {
    background: var(--accent-dk);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 28, 28, .32);
}

/* ═══════════════════════════════════════════════════════════
   ── VIEW 3: DISH DETAIL + CHEF SELECTION — COMPACT ──
═══════════════════════════════════════════════════════════ */

/* Compact hero — 280px instead of 520px */
.dd-hero {
    position: relative;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 24px;
}

.dd-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
    transform: scale(1.06);
}

.dd-hero-img.loaded {
    transform: scale(1);
}

.dd-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 20, 24, .96) 0%, rgba(20, 20, 24, .42) 45%, rgba(0, 0, 0, .12) 100%);
}

.dd-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px 24px;
    z-index: 2;
}

.dd-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 8px;
}

.dd-hero-breadcrumb a {
    color: rgba(255, 255, 255, .7);
    transition: color .2s;
}

.dd-hero-breadcrumb a:hover {
    color: #fff;
}

.dd-hero-title {
    font-size: clamp(20px, 3.5vw, 36px);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 10px;
}

.dd-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dd-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .9);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}

.dd-meta-pill.accent-pill {
    background: rgba(217, 28, 28, .85);
    border-color: transparent;
}

/* ── Two-column detail layout ── */
.dd-body {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: start;
    padding-bottom: 48px;
}

/* Left column */
.dd-left {}

/* Description block */
.dd-desc-block {
    margin-bottom: 16px;
}

.dd-desc-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-head);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: .8px;
    font-size: 11px;
}

.dd-desc-title::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(217, 28, 28, .2), transparent);
    border-radius: 2px;
}

.dd-description {
    font-size: 13.5px;
    color: var(--text-body);
    line-height: 1.72;
}

/* Tags */
.dd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 16px;
}

.dd-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    background: var(--bg-alt);
    color: var(--text-body);
    border: 1px solid var(--border);
    transition: border-color .2s, background .2s;
}

.dd-tag:hover {
    border-color: rgba(217, 28, 28, .3);
    background: var(--accent-lt);
}

/* Compact price block */
.dd-price-block {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--accent-lt), rgba(253, 234, 234, 0));
    border-radius: 14px;
    border: 1px solid rgba(217, 28, 28, .14);
    margin-bottom: 20px;
}

.dd-price {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

.dd-price-detail {
    flex: 1;
}

.dd-price-label {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.dd-price-note {
    font-size: 11.5px;
    color: var(--text-body);
}

/* Chef selection — compact */
.dd-chef-section {
    margin-bottom: 16px;
}

.dd-chef-title {
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-head);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.dd-chef-title::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(217, 28, 28, .2), transparent);
    border-radius: 2px;
}

/* ── Chef count bar ── */
.chef-count-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 11px;
}

.chef-count-bar .chef-total {
    color: var(--text-muted);
    font-weight: 500;
}

.chef-count-bar .chef-online-count {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(34, 197, 94, .10);
    border: 1px solid rgba(34, 197, 94, .2);
    color: #16a34a;
    padding: 3px 9px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 10.5px;
}

.chef-count-bar .chef-online-count .cod {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: livePulse 2s infinite;
}

/* ── Scrollable container ── */
.chef-options-container {
    position: relative;
    max-height: 380px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 8px;
    background: var(--bg-alt);
    scroll-behavior: smooth;
}

.chef-options-container::-webkit-scrollbar {
    width: 4px;
}

.chef-options-container::-webkit-scrollbar-track {
    background: transparent;
}

.chef-options-container::-webkit-scrollbar-thumb {
    background: rgba(217, 28, 28, .22);
    border-radius: 4px;
}

.chef-options-container::-webkit-scrollbar-thumb:hover {
    background: rgba(217, 28, 28, .4);
}

/* Fade-out gradient hint at bottom */
.chef-options-container::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 24px;
    display: block;
    background: linear-gradient(to top, var(--bg-alt), transparent);
    pointer-events: none;
    margin-top: -24px;
}

/* ── 2-column grid ── */
.chef-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

/* ── Compact chef card ── */
.chef-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1.5px solid rgba(28, 28, 30, .09);
    background: var(--surface);
    cursor: pointer;
    transition: border-color .22s, box-shadow .22s, transform .22s, background .22s;
    overflow: hidden;
    min-width: 0;
}

/* Accent shimmer */
.chef-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(217, 28, 28, .05), transparent);
    opacity: 0;
    transition: opacity .25s;
}

/* Selected left bar */
.chef-option::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transition: transform .3s var(--ease-spring);
}

.chef-option:hover {
    border-color: rgba(217, 28, 28, .4);
    box-shadow: 0 4px 16px rgba(217, 28, 28, .12);
    transform: translateY(-2px);
    z-index: 1;
}

.chef-option:hover::before {
    opacity: 1;
}

.chef-option.selected {
    border-color: var(--accent);
    background: var(--accent-lt);
    box-shadow: 0 4px 18px rgba(217, 28, 28, .16);
}

.chef-option.selected::before {
    opacity: 1;
}

.chef-option.selected::after {
    transform: scaleY(1);
}

/* Avatar — compact 38px */
.chef-option-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    position: relative;
    flex-shrink: 0;
}

.chef-option-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chef-online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: var(--green);
    border-radius: 50%;
    border: 2px solid var(--surface);
    animation: livePulse 2s infinite;
}

/* Info column */
.chef-option-info {
    flex: 1;
    min-width: 0;
}

.chef-option-name {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 800;
    color: var(--text-head);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 1px;
}

.chef-option-specialty {
    font-size: 9.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.chef-option-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 9.5px;
}

.chef-option-rating .stars {
    color: var(--gold);
    font-size: 8px;
    letter-spacing: -0.5px;
}

.chef-option-rating .score {
    font-weight: 700;
    color: var(--text-head);
}

.chef-option-rating .orders {
    color: var(--text-muted);
}

.chef-option-city {
    font-size: 9.5px;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 3px;
}

.chef-city-online {
    color: #16a34a;
    font-weight: 700;
}

/* Price column */
.chef-option-price {
    text-align: right;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chef-option-price .price {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

.chef-option-price .per {
    font-size: 8.5px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.selected-check {
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 9px;
    margin-top: 4px;
    opacity: 0;
    transform: scale(0);
    transition: opacity .22s, transform .22s var(--ease-spring);
}

.chef-option.selected .selected-check {
    opacity: 1;
    transform: scale(1);
}

/* ── Sticky right order panel — compact ── */
.dd-right {}

.dd-order-panel {
    position: sticky;
    top: calc(80px + var(--strip-height));
    background: var(--surface);
    border-radius: 18px;
    border: 1.5px solid var(--border);
    padding: 20px;
    box-shadow: 0 6px 32px rgba(0, 0, 0, .08);
}

.dd-order-title {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-head);
}

.dd-selected-chef-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--accent-lt);
    border-radius: 12px;
    border: 1px solid rgba(217, 28, 28, .15);
    margin-bottom: 16px;
    min-height: 64px;
}

.dd-scp-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent);
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.dd-scp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dd-scp-info {
    flex: 1;
}

.dd-scp-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-head);
}

.dd-scp-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.dd-scp-empty {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

.dd-scp-price {
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 900;
    color: var(--accent);
}

/* Portion selector */
.dd-portion-section {
    margin-bottom: 16px;
}

.dd-portion-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-head);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 10px;
}

.dd-portion-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.portion-btn {
    padding: 8px 4px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-body);
    cursor: pointer;
    transition: border-color .22s, color .22s, background .22s, transform .22s;
    text-align: center;
}

.portion-btn span {
    display: block;
    font-size: 9px;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 1px;
}

.portion-btn:hover {
    border-color: rgba(217, 28, 28, .4);
    color: var(--accent);
    transform: translateY(-2px);
}

.portion-btn.active {
    border-color: var(--accent);
    background: var(--accent-lt);
    color: var(--accent);
}

/* Qty control */
.dd-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dd-qty-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-head);
}

.dd-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-alt);
    border-radius: 40px;
    padding: 3px 8px;
}

.dd-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-head);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.dd-qty-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.1);
}

.dd-qty-num {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-head);
    min-width: 26px;
    text-align: center;
}

/* Total */
.dd-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--border);
    margin-bottom: 14px;
}

.dd-total-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-body);
}

.dd-total-price {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 900;
    color: var(--accent);
}

/* Order button */
.dd-order-btn {
    width: 100%;
    padding: 13px;
    border-radius: 40px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 5px 20px rgba(217, 28, 28, .3);
    letter-spacing: .2px;
    position: relative;
    overflow: hidden;
}

.dd-order-btn:not([disabled]):hover {
    background: var(--accent-dk);
    transform: translateY(-2px);
    box-shadow: 0 9px 28px rgba(217, 28, 28, .4);
}

.dd-order-btn:active {
    transform: translateY(0);
}

.dd-order-btn.loading {
    pointer-events: none;
    animation: btnPulse .9s ease-in-out infinite;
}

@keyframes btnPulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .65
    }
}

/* Ripple */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
    transform: scale(0);
    animation: rippleAnim .6s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Trust row */
.dd-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.dd-trust-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   ORDER CONFIRMATION OVERLAY
═══════════════════════════════════════════════════════════ */
.order-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 28, 30, .72);
    backdrop-filter: blur(10px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s;
}

.order-confirm-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.order-confirm-box {
    background: var(--surface);
    border-radius: 28px;
    padding: 40px 36px;
    max-width: 460px;
    width: 90%;
    text-align: center;
    transform: scale(.88) translateY(28px);
    transition: transform .5s var(--ease-spring);
    box-shadow: 0 40px 100px rgba(0, 0, 0, .3);
}

.order-confirm-overlay.open .order-confirm-box {
    transform: scale(1) translateY(0);
}

.order-confirm-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 36px rgba(34, 197, 94, .35);
    animation: successPop .65s var(--ease-spring) .1s both;
}

@keyframes successPop {
    from {
        transform: scale(0)rotate(-180deg)
    }

    to {
        transform: scale(1)rotate(0)
    }
}

.order-confirm-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-head);
    margin-bottom: 10px;
}

.order-confirm-sub {
    font-size: 13.5px;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 22px;
}

.order-confirm-summary {
    background: var(--bg-alt);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.ocs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--text-body);
}

.ocs-row+.ocs-row {
    margin-top: 8px;
}

.ocs-row strong {
    color: var(--text-head);
}

.ocs-total {
    border-top: 1px solid var(--border);
    margin-top: 12px;
    padding-top: 12px;
}

.ocs-total strong {
    font-size: 16px;
    color: var(--accent);
}

.order-confirm-btns {
    display: flex;
    gap: 10px;
}

.ocb-primary {
    flex: 1;
    padding: 12px;
    border-radius: 40px;
    background: var(--accent);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.ocb-primary:hover {
    background: var(--accent-dk);
    transform: translateY(-1px);
}

.ocb-secondary {
    flex: 1;
    padding: 12px;
    border-radius: 40px;
    background: var(--bg-alt);
    color: var(--text-body);
    font-size: 13.5px;
    font-weight: 600;
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.ocb-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Confetti */
.confetti-piece {
    position: fixed;
    top: -24px;
    border-radius: 3px;
    animation: confettiFall linear forwards;
    z-index: 5001;
    pointer-events: none;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
    background: var(--text-head);
    padding: 48px 0 24px;
    border: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 80px;
    max-height: 100%;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 4px;
}

.footer-brand p {
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    line-height: 1.7;
    max-width: 260px;
    margin-bottom: 18px;
}

/* Newsletter in footer */
.footer-newsletter {
    display: flex;
    gap: 8px;
    max-width: 320px;
}

.footer-newsletter input {
    flex: 1;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 13px;
    outline: none;
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, .3);
}

.footer-newsletter button {
    padding: 9px 16px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
    white-space: nowrap;
    font-family: 'Outfit', sans-serif;
}

.footer-newsletter button:hover {
    background: var(--accent-dk);
    transform: translateY(-1px);
}

.footer-newsletter button:active {
    transform: translateY(0);
}

.footer-col h4 {
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 9px;
    transition: color .2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, .35);
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════ */
.anim-in {
    animation: viewEnter .45s var(--ease) both;
    animation-play-state: paused;
}

.anim-in.playing {
    animation-play-state: running;
}

.anim-delay-1 {
    animation-delay: .04s;
}

.anim-delay-2 {
    animation-delay: .08s;
}

.anim-delay-3 {
    animation-delay: .12s;
}

.anim-delay-4 {
    animation-delay: .16s;
}

.anim-delay-5 {
    animation-delay: .20s;
}

.anim-delay-6 {
    animation-delay: .24s;
}

.anim-delay-7 {
    animation-delay: .28s;
}

.anim-delay-8 {
    animation-delay: .32s;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .cat-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .dish-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .dd-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .dd-order-panel {
        position: relative;
        top: auto;
    }

    .dd-hero {
        height: 220px;
    }

    .chef-options {
        grid-template-columns: 1fr;
    }

    .chef-options-container {
        max-height: 300px;
    }
}

@media (max-width: 768px) {
    .cat-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .dish-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cat-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .dishes-nav-bar {
        flex-wrap: wrap;
    }
}

@media (max-width: 540px) {
    .cat-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .cat-card {
        height: 170px;
    }

    .cat-card-num {
        font-size: 60px;
    }

    .dish-cards-grid {
        grid-template-columns: 1fr;
    }

    .chef-options {
        grid-template-columns: 1fr;
    }

    .chef-options-container {
        max-height: 240px;
    }

    .dd-hero {
        height: 190px;
        border-radius: 14px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .order-confirm-btns {
        flex-direction: column;
    }
}

/*═══════════════════════════════════════════════════════
  CATEGORIES HERO SECTION
═══════════════════════════════════════════════════════*/
.cat-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg);
    padding-top: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.cat-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cat-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.25;
    mix-blend-mode: multiply;
}

/* Background image can be added if needed, like url('../images/hero_bg.png') */

/* ── Category page: subtle background pattern (no orbs — unique to this page) ── */
.cat-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 85% 20%, rgba(217, 28, 28, 0.08) 0%, transparent 65%),
        radial-gradient(ellipse 40% 50% at 10% 80%, rgba(217, 28, 28, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 30% 35% at 60% 90%, rgba(250, 176, 176, 0.06) 0%, transparent 55%);
    pointer-events: none;
}

/* Floating aroma badges — slide-in-from-right (different from Our Food's pure vertical float) */
.cat-aroma-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(217, 28, 28, 0.12), 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(217, 28, 28, 0.15);
    color: var(--text-head);
    padding: 8px 16px;
    border-radius: 40px;
    font-size: 12.5px;
    font-weight: 600;
    z-index: 20;
    animation: abSlideBreath 6s ease-in-out infinite alternate;
}

.cat-ab-1 {
    top: 18%;
    right: 8%;
    animation-delay: 0s;
    animation-duration: 5.5s;
}

.cat-ab-2 {
    top: 48%;
    right: 3%;
    animation-delay: 1.8s;
    animation-duration: 6.5s;
}

.cat-ab-3 {
    bottom: 22%;
    right: 15%;
    animation-delay: 3.4s;
    animation-duration: 5s;
}

@keyframes abSlideBreath {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0.85;
    }

    50% {
        transform: translateX(-8px) translateY(-6px);
        opacity: 1;
    }

    100% {
        transform: translateX(4px) translateY(-10px);
        opacity: 0.9;
    }
}

.cat-hero-inner {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

/* Hero text */
.cat-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-lt);
    border: 1px solid rgba(217, 28, 28, 0.22);
    padding: 7px 18px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

.cat-pill-dot {
    width: 8px;
    height: 8px;
    background: #7DBFA0;
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
    flex-shrink: 0;
}

.cat-hero-title {
    font-size: clamp(36px, 5.5vw, 68px);
    font-weight: 900;
    color: var(--text-head);
    line-height: 1.05;
    margin-bottom: 22px;
    font-family: var(--font-head);
}

.cat-title-gradient {
    color: var(--accent);
}

.cat-hero-sub {
    font-size: 17px;
    color: var(--text-body);
    max-width: 500px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.cat-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background .2s, transform .2s, border-color .2s;
    cursor: pointer;
    border: none;
}

.cat-btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 3px 16px rgba(217, 28, 28, 0.3);
}

.cat-btn-primary:hover {
    background: var(--accent-dk);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(217, 28, 28, 0.4);
    color: #fff;
}

.cat-btn-ghost {
    background: transparent;
    color: var(--text-head);
    border: 1.5px solid var(--border);
}

.cat-btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.cat-hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
}

.cat-hstat {
    text-align: center;
    padding: 0 24px;
}

.cat-hstat:first-child {
    padding-left: 0;
}

.cat-hstat-num {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 3px;
}

.cat-hstat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.cat-hstat-div {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* ══════════════════════════════════════════════════════════
   CATEGORIES HERO — MOSAIC TILE VISUAL
   Completely distinct from Our Food orbit system.
   Concept: 3-column perspective-tilted tile grid with
   staggered float-in + shimmer wave + depth breath.
══════════════════════════════════════════════════════════ */

.cat-hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 24px;
}

/* Perspective scene wrapper — the whole grid tilts in 3D */
.cat-mosaic-scene {
    display: flex;
    align-items: stretch;
    gap: 10px;
    perspective: 900px;
    perspective-origin: 50% 45%;
    transform: rotateY(-8deg) rotateX(4deg);
    animation: mosaicBreathe 9s ease-in-out infinite alternate;
    transform-style: preserve-3d;
    flex-shrink: 0;
}

@keyframes mosaicBreathe {
    0% {
        transform: rotateY(-8deg) rotateX(4deg) scale(1);
    }

    50% {
        transform: rotateY(-4deg) rotateX(2deg) scale(1.02);
    }

    100% {
        transform: rotateY(-10deg) rotateX(5deg) scale(0.99);
    }
}

/* Each column */
.cat-mosaic-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 116px;
}

.cat-mosaic-col-mid {
    width: 148px;
    margin-top: -18px;
    /* stagger centre col upward */
}

/* ── Individual tile ── */
.cat-tile {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 130px;
    cursor: pointer;
    background: #1a0a0a;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.22), 0 1px 4px rgba(0, 0, 0, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.07);
    /* staggered entry */
    animation: tileFloatIn 0.8s var(--ease-spring) both;
    animation-delay: var(--td, 0s);
    /* continuous depth-shimmer after entry */
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.cat-tile:hover {
    transform: translateY(-6px) scale(1.04) rotateY(3deg);
    box-shadow: 0 18px 48px rgba(217, 28, 28, 0.25), 0 4px 16px rgba(0, 0, 0, 0.18);
    z-index: 5;
}

/* Taller variant */
.cat-tile-lg {
    height: 168px;
}

/* Central feature tile */
.cat-tile-feature {
    height: 220px;
    border: 2px solid rgba(217, 28, 28, 0.45);
    box-shadow: 0 0 0 4px rgba(217, 28, 28, 0.08), 0 10px 40px rgba(217, 28, 28, 0.2), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cat-tile-feature:hover {
    transform: translateY(-8px) scale(1.05) rotateY(2deg);
    box-shadow: 0 0 0 4px rgba(217, 28, 28, 0.15), 0 24px 60px rgba(217, 28, 28, 0.32), 0 6px 24px rgba(0, 0, 0, 0.24);
}

/* Image fills tile */
.cat-tile-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--ease), filter 0.4s;
    filter: saturate(1.1) brightness(0.78);
}

.cat-tile:hover .cat-tile-img {
    transform: scale(1.1);
    filter: saturate(1.35) brightness(0.72);
}

/* Gradient overlay */
.cat-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 5, 5, 0.85) 0%, rgba(15, 5, 5, 0.25) 55%, rgba(0, 0, 0, 0.04) 100%);
    z-index: 2;
}

.cat-tile-overlay-strong {
    background: linear-gradient(to top, rgba(20, 4, 4, 0.92) 0%, rgba(20, 4, 4, 0.35) 50%, rgba(0, 0, 0, 0.08) 100%);
}

/* Shimmer sweep on hover */
.cat-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.13) 45%, transparent 90%);
    transform: translateX(-110%);
    transition: transform 0.55s ease;
    z-index: 6;
    pointer-events: none;
}

.cat-tile:hover::after {
    transform: translateX(110%);
}

/* Label at bottom */
.cat-tile-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 4;
    font-family: var(--font-head);
    font-size: 11.5px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.2px;
    transition: transform 0.3s var(--ease);
}

.cat-tile:hover .cat-tile-label {
    transform: translateY(-3px);
}

.cat-tile-label-lg {
    font-size: 14px;
    bottom: 16px;
    left: 14px;
}

/* Chef's Pick live badge on feature tile */
.cat-feature-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(217, 28, 28, 0.88);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.cat-fb-dot {
    width: 6px;
    height: 6px;
    background: #86efac;
    border-radius: 50%;
    animation: catFbPulse 1.6s ease-in-out infinite;
}

@keyframes catFbPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: 0.55;
        transform: scale(1.5)
    }
}

/* ── Entry animation ── */
@keyframes tileFloatIn {
    from {
        opacity: 0;
        transform: translateY(36px) rotateX(-12deg) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
}

/* ── Continuous subtle float on individual tiles (wave pattern) ── */
.cat-mosaic-col:nth-child(1) .cat-tile {
    animation-name: tileFloatIn, tileWave;
    animation-duration: 0.8s, 7s;
    animation-timing-function: var(--ease-spring), ease-in-out;
    animation-fill-mode: both, none;
    animation-iteration-count: 1, infinite;
    animation-direction: normal, alternate;
}

.cat-mosaic-col:nth-child(2) .cat-tile {
    animation-name: tileFloatIn, tileWave;
    animation-duration: 0.8s, 8s;
    animation-timing-function: var(--ease-spring), ease-in-out;
    animation-fill-mode: both, none;
    animation-iteration-count: 1, infinite;
    animation-direction: normal, alternate;
    animation-delay: var(--td, 0s), 0.5s;
}

.cat-mosaic-col:nth-child(3) .cat-tile {
    animation-name: tileFloatIn, tileWave;
    animation-duration: 0.8s, 6.5s;
    animation-timing-function: var(--ease-spring), ease-in-out;
    animation-fill-mode: both, none;
    animation-iteration-count: 1, infinite;
    animation-direction: normal, alternate;
    animation-delay: var(--td, 0s), 1s;
}

@keyframes tileWave {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-7px);
    }
}

/* ── Scroll cue ── */
.cat-scroll-cue {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 5;
}

.cat-scroll-cue span {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.cat-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollLinePulse 2s ease-in-out infinite;
}

@keyframes scrollLinePulse {
    0% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ── Hero entry ── */
.cat-hero-text {
    animation: heroSlideUp 0.9s ease both;
}

.cat-hero-visual {
    animation: heroSlideUp 0.9s 0.15s ease both;
}

@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ── */
@media(max-width:1024px) {
    .cat-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cat-hero-visual {
        display: none;
    }

    .cat-hero-pill,
    .cat-hero-actions,
    .cat-hero-stats {
        justify-content: center;
    }

    .cat-hero-sub {
        margin: 0 auto 32px;
    }

    .cat-aroma-badge {
        display: none;
    }
}

@media(max-width:480px) {
    .cat-hero-title {
        font-size: clamp(30px, 10vw, 42px);
    }

    .cat-hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .cat-hstat-div {
        display: none;
    }

    .cat-hstat {
        padding: 0 10px;
    }
}

/* ══════════════════════════════════════════════════════════
   SECTION A — TRENDING DISHES  (ctd-* prefix, scoped)
══════════════════════════════════════════════════════════ */

.ctd-section {
    position: relative;
    padding: 32px 0;
    /* Normalized tight spacing */
    overflow: hidden;
    margin-top: 16px;
}

/* Background ambient orbs — scoped to section */
.ctd-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ctd-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.10;
}

.ctd-orb-1 {
    width: 400px;
    height: 400px;
    background: #D91C1C;
    top: -120px;
    right: -60px;
    animation: ctdOrbDrift 12s ease-in-out infinite alternate;
}

.ctd-orb-2 {
    width: 300px;
    height: 300px;
    background: #FAB0B0;
    bottom: -80px;
    left: -40px;
    animation: ctdOrbDrift 16s ease-in-out 4s infinite alternate-reverse;
}

@keyframes ctdOrbDrift {
    from {
        transform: scale(1) translate(0, 0);
    }

    to {
        transform: scale(1.12) translate(24px, -16px);
    }
}

/* Section header */
.ctd-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    padding: 0 20px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.ctd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.ctd-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
    animation: ctdLivePulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
    display: inline-block;
}

.ctd-live-dot-sm {
    width: 6px;
    height: 6px;
}

@keyframes ctdLivePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(1.5);
    }
}

.ctd-title {
    font-family: var(--font-head);
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 900;
    color: var(--text-head);
    line-height: 1.1;
    margin-bottom: 8px;
}

.ctd-title-accent {
    color: var(--accent);
}

.ctd-subtitle {
    font-size: 14.5px;
    color: var(--text-muted);
    max-width: 420px;
    line-height: 1.65;
}

.ctd-see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 40px;
    border: 1.5px solid rgba(217, 28, 28, 0.28);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    background: var(--accent-lt);
    transition: background var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
}

.ctd-see-all:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 28, 28, 0.28);
}

/* ── Card track — horizontal scroll on mobile ── */
.ctd-track {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 20px 20px 28px;
    max-width: 1280px;
    margin: 0 auto;
    /* perspective so child 3D transforms look right */
    perspective: 1000px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ctd-track::-webkit-scrollbar {
    display: none;
}

/* ── Individual card ── */
.ctd-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(217, 28, 28, 0.10);
    box-shadow: 0 4px 20px rgba(217, 28, 28, 0.07), 0 1px 4px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.38s ease,
        border-color 0.3s;
    will-change: transform;
    /* Staggered float animation — use CSS variable for delay */
    animation: ctdCardFloat 5s ease-in-out infinite;
}

.ctd-card:nth-child(1) {
    animation-duration: 5.0s;
    animation-delay: 0.0s;
}

.ctd-card:nth-child(2) {
    animation-duration: 6.2s;
    animation-delay: 0.6s;
}

.ctd-card:nth-child(3) {
    animation-duration: 5.6s;
    animation-delay: 1.2s;
}

.ctd-card:nth-child(4) {
    animation-duration: 6.8s;
    animation-delay: 0.3s;
}

.ctd-card:nth-child(5) {
    animation-duration: 5.4s;
    animation-delay: 0.9s;
}

@keyframes ctdCardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

.ctd-card:hover {
    transform: translateY(-12px) rotateX(-3deg) scale(1.03);
    box-shadow:
        0 24px 56px rgba(217, 28, 28, 0.20),
        0 4px 16px rgba(0, 0, 0, 0.10);
    border-color: rgba(217, 28, 28, 0.30);
    animation-play-state: paused;
}

/* Featured card — slightly taller */
.ctd-card--featured {
    border-color: rgba(217, 28, 28, 0.22);
    background: linear-gradient(180deg, var(--surface) 60%, var(--accent-lt) 100%);
}

/* Glow (visible on hover) */
.ctd-card-glow {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(circle at 50% 0%, rgba(217, 28, 28, 0.12) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 0;
}

.ctd-card-glow--featured {
    background: radial-gradient(circle at 50% 30%, rgba(245, 158, 11, 0.14) 0%, transparent 65%);
}

.ctd-card:hover .ctd-card-glow {
    opacity: 1;
}

/* Image wrapper */
.ctd-card-img-wrap {
    position: relative;
    height: 155px;
    overflow: hidden;
}

.ctd-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--ease), filter 0.4s;
    filter: saturate(1.05);
}

.ctd-card:hover .ctd-card-img {
    transform: scale(1.1);
    filter: saturate(1.2);
}

.ctd-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 35%, rgba(10, 5, 5, 0.55) 100%);
}

/* Badges */
.ctd-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.ctd-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.2px;
    padding: 3px 9px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
}

.ctd-badge-hot {
    background: rgba(217, 28, 28, 0.88);
    color: #fff;
}

.ctd-badge-gold {
    background: rgba(245, 158, 11, 0.92);
    color: #6b3800;
}

.ctd-badge-purple {
    background: rgba(100, 80, 220, 0.88);
    color: #fff;
}

.ctd-badge-green {
    background: rgba(34, 197, 94, 0.82);
    color: #0a3d1e;
}

.ctd-badge-live {
    background: rgba(255, 255, 255, 0.93);
    color: #16a34a;
    font-size: 9px;
}

/* Price badge */
.ctd-card-price {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Card body */
.ctd-card-body {
    padding: 12px 14px 14px;
    position: relative;
    z-index: 1;
}

.ctd-card-cat {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}

.ctd-card-name {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 800;
    color: var(--text-head);
    line-height: 1.25;
    margin-bottom: 8px;
    transition: color 0.25s;
}

.ctd-card:hover .ctd-card-name {
    color: var(--accent);
}

/* Chef row */
.ctd-card-chef {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 10px;
}

.ctd-chef-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 1.5px solid var(--border);
    flex-shrink: 0;
}

/* Add to Cart button */
.ctd-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 10px rgba(217, 28, 28, 0.22);
    position: relative;
    overflow: hidden;
}

.ctd-add-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease);
}

.ctd-add-btn:hover::before {
    transform: translateX(0);
}

.ctd-add-btn:hover {
    background: var(--accent-dk);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 28, 28, 0.32);
}

.ctd-add-btn:active {
    transform: translateY(0) scale(0.97);
}

/* Responsive */
@media(max-width: 1100px) {
    .ctd-track {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 700px) {
    .ctd-track {
        grid-template-columns: repeat(2, 260px);
    }
}

@media(max-width: 520px) {
    .ctd-track {
        grid-template-columns: 1fr;
    }

    .ctd-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ══════════════════════════════════════════════════════════
   SECTION B — TOP CHEFS MARQUEE  (ccs-* prefix, scoped)
══════════════════════════════════════════════════════════ */
.ccs-section {
    padding: 72px 0 80px;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.ccs-header {
    text-align: center;
    padding: 0 20px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ccs-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.ccs-title {
    font-family: var(--font-head);
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 900;
    color: var(--text-head);
    margin-bottom: 10px;
}

.ccs-sub {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Marquee wrapper — masks overflow, fade edges */
.ccs-marquee-wrap {
    position: relative;
    overflow: hidden;
}

.ccs-marquee-wrap::before,
.ccs-marquee-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.ccs-marquee-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-alt), transparent);
}

.ccs-marquee-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-alt), transparent);
}

/* Track — CSS animation for infinite scroll */
.ccs-marquee-track {
    display: flex;
    gap: 18px;
    width: max-content;
    animation: ccsMarqueeScroll 28s linear infinite;
    padding: 10px 0 16px;
}

.ccs-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes ccsMarqueeScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Individual chef card */
.ccs-chef-card {
    flex-shrink: 0;
    width: 200px;
    background: var(--surface);
    border: 1px solid rgba(217, 28, 28, 0.10);
    border-radius: 20px;
    padding: 20px 18px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(217, 28, 28, 0.07), 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s ease,
        border-color 0.3s;
    cursor: default;
}

.ccs-chef-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 48px rgba(217, 28, 28, 0.16), 0 3px 12px rgba(0, 0, 0, 0.09);
    border-color: rgba(217, 28, 28, 0.25);
}

/* Avatar + online ring */
.ccs-chef-img-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}

.ccs-chef-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 3px solid var(--surface);
    box-shadow: 0 4px 16px rgba(217, 28, 28, 0.14);
}

.ccs-online-ring {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #22c55e;
    border: 2.5px solid var(--surface);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
    animation: ctdLivePulse 2s ease-in-out infinite;
}

.ccs-online-ring--offline {
    background: #9ca3af;
    box-shadow: none;
    animation: none;
}

/* Text */
.ccs-chef-name {
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 800;
    color: var(--text-head);
    margin-bottom: 4px;
    line-height: 1.2;
}

.ccs-chef-cuisine {
    font-size: 11.5px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
}

.ccs-chef-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* Profile button */
.ccs-chef-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 18px;
    border-radius: 40px;
    border: 1.5px solid rgba(217, 28, 28, 0.28);
    color: var(--accent);
    font-size: 11.5px;
    font-weight: 700;
    background: var(--accent-lt);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.ccs-chef-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.04);
}

/* Footer CTA */
.ccs-footer-cta {
    text-align: center;
    margin-top: 36px;
}

