@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Fredoka+One&display=swap');

/* ============================================
   BUTTER IN — TEAL COLOR SYSTEM
   ============================================ */
:root {
    --teal-main:    #1A9E9B;   /* Primary page background */
    --teal-header:  #148582;   /* Header / Nav bg */
    --teal-footer:  #0C6B69;   /* Footer bg */
    --teal-deeper:  #096260;   /* Extra depth */
    --teal-illus:   #13807D;   /* Illustration line color (darker teal on teal) */
    --teal-card:    #0F716E;   /* Card area / search overlay */

    --card-red:       #BF1F40;  /* Vibrant card red — matches reference image */
    --card-red-dark:  #A01832;  /* Darker shade for image area */
    --card-red-badge: rgba(150,14,42,0.85); /* Badge overlay */

    --orange:         #F55D0E;
    --orange-light:   #FF7A30;

    --cream:          #FDE9A2;
    --cream-light:    #FFF6D6;
    --cream-dim:      rgba(253,233,162,0.55);

    --yellow:         #F5DC3C;  /* Card border — matches reference */
    --yellow-dim:     rgba(245,220,60,0.55);

    --border-cream:   rgba(253,233,162,0.35);
    --border-orange:  rgba(245,93,14,0.4);
    --border-yellow:  rgba(245,220,60,0.55);

    --radius-xl:   24px;
    --radius-lg:   18px;
    --radius-md:   14px;
    --radius-sm:   10px;
    --radius-pill: 999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   BACKGROUND SIDE DECORATIONS
   (the teal area left/right of the app on wider screens)
   ============================================ */
.bg-deco {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

/* Top-left: large daisy */
.bg-deco-tl {
    top: -80px;
    left: -80px;
    width: 280px;
    height: 280px;
    animation: bgDecoFloat 7s ease-in-out infinite;
}

/* Bottom-left: leaf sprig */
.bg-deco-bl {
    bottom:  -60px;
    left:    -20px;
    width:   160px;
    height:  240px;
    transform-origin: bottom center;
    animation: bgDecoSway 9s ease-in-out infinite;
}

/* Top-right: star anise */
.bg-deco-tr {
    top:   -60px;
    right: -60px;
    width:  220px;
    height: 220px;
    animation: bgDecoSpin 18s linear infinite;
}

/* Bottom-right: paisley */
.bg-deco-br {
    bottom: -70px;
    right:  -40px;
    width:  180px;
    height: 255px;
    animation: bgDecoFloat 10s ease-in-out infinite reverse;
}

/* Floating dots */
.bg-dot {
    position: fixed;
    border-radius: 50%;
    background: #F55D0E;
    z-index: 0;
    pointer-events: none;
    opacity: 0.75;
}
.bg-dot-1 { width: 22px; height: 22px; top:  18%; left:  3%;  animation: bgDecoFloat 6s 0s   ease-in-out infinite; }
.bg-dot-2 { width: 14px; height: 14px; top:  42%; left:  1%;  animation: bgDecoFloat 7s 1s   ease-in-out infinite; }
.bg-dot-3 { width: 18px; height: 18px; top:  25%; right: 2%;  animation: bgDecoFloat 8s 0.5s ease-in-out infinite; }
.bg-dot-4 { width: 26px; height: 26px; bottom:22%; right: 1%; animation: bgDecoFloat 9s 2s   ease-in-out infinite; }

@keyframes bgDecoFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-16px); }
}
@keyframes bgDecoSway {
    0%, 100% { transform: rotate(-5deg); }
    50%       { transform: rotate(5deg); }
}
@keyframes bgDecoSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Hide on very narrow screens where there's no side space */
@media (max-width: 540px) {
    .bg-deco, .bg-dot { display: none; }
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0; padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--teal-main);
    color: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.hidden {
    display: none !important;
}

/* ============================================
   SPLASH SCREEN — TEAL with orange flowers
   ============================================ */
.splash-screen {
    position: fixed;
    inset: 0;
    background: var(--teal-main);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}
.splash-screen.hidden {
    display: flex !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Flower top-left */
.flower-tl {
    position: absolute;
    top: -70px;
    left: -70px;
    width: 240px;
    height: 240px;
}
/* Flower bottom-right */
.flower-br {
    position: absolute;
    bottom: -55px;
    right: -55px;
    width: 170px;
    height: 170px;
    transform: rotate(30deg);
}

/* Star anise — top right corner */
.deco-star-tr {
    position: absolute;
    top: -45px;
    right: -45px;
    width: 140px;
    height: 140px;
}

/* Leaf sprig — left middle edge */
.deco-sprig-ml {
    position: absolute;
    top: 50%;
    left: -22px;
    transform: translateY(-50%);
    width: 78px;
    height: 150px;
}

/* Paisley — bottom right */
.deco-paisley-br {
    position: absolute;
    bottom: -50px;
    right: -30px;
    width: 140px;
    height: 180px;
    transform: rotate(10deg);
}

/* Orange dots — accent only (fewer, repositioned) */
.dot { position: absolute; border-radius: 50%; background: var(--orange); }
.dot-1 { width: 18px; height: 18px; top: 56%; left: 58px; }
.dot-2 { width: 12px; height: 12px; top: 28%; left: 30px; }
.dot-3 { width: 14px; height: 14px; top: 22%; right: 85px; }

/* Splash center */
.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: splashPop 0.7s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes splashPop {
    from { opacity: 0; transform: scale(0.75); }
    to   { opacity: 1; transform: scale(1); }
}


/* Splash logo image */
.splash-logo-img {
    width: 240px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
}
@keyframes floatBowl {
    0%, 100% { transform: translateY(0px) rotate(-3deg); }
    50%       { transform: translateY(-12px) rotate(3deg); }
}

.splash-menu-word {
    font-family: 'Fredoka One', cursive;
    font-size: 28px;
    color: var(--cream);
    letter-spacing: 8px;
    opacity: 0.85;
    margin-top: 2px;
}

.splash-loader {
    width: 90px;
    height: 3px;
    background: rgba(253,233,162,0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 22px;
}
.splash-loader-bar {
    height: 100%;
    background: var(--cream);
    border-radius: 2px;
    animation: loadBar 2.5s ease-in-out forwards;
}
@keyframes loadBar {
    0%   { width: 0%; }
    70%  { width: 85%; }
    100% { width: 100%; }
}

/* ============================================
/* ============================================
   LINK TREE SCREEN
   ============================================ */
.link-tree-screen {
    position: fixed;
    inset: 0;
    background: var(--teal-main);
    z-index: 10000;
    display: flex;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px 20px;
}

.link-tree-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.link-tree-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}
.link-tree-tl {
    top: -60px; left: -60px;
    width: 220px; height: 220px;
    animation: bgDecoSpin 20s linear infinite;
}
.link-tree-br {
    bottom: -40px; right: -40px;
    width: 150px; height: 180px;
    animation: bgDecoSway 10s ease-in-out infinite;
}

.link-tree-content {
    position: relative;
    z-index: 1;
    margin: auto;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: splashPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.link-tree-logo {
    width: 210px;
    height: auto;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.3));
    margin-bottom: 30px;
}

.link-tree-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-tree-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    color: var(--cream);
    background: rgba(253,233,162,0.1);
    border: 1.5px solid rgba(253,233,162,0.25);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.link-tree-btn svg, .link-tree-btn i, .link-tree-btn-img {
    width: 24px;
    height: 24px;
    color: var(--yellow);
    flex-shrink: 0;
    object-fit: contain;
}

.link-tree-btn-img.icon-lg {
    width: 36px;
    height: 36px;
    margin-left: -6px;
}

.link-tree-btn:hover {
    transform: translateY(-3px);
    background: rgba(253,233,162,0.15);
    border-color: var(--yellow);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 2px 8px rgba(245,220,60,0.2);
}
.link-tree-btn:active {
    transform: translateY(0);
}

/* Primary Highlight variants */
.link-tree-btn.highlight {
    background: linear-gradient(135deg, var(--orange) 0%, #D84200 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(245, 93, 14, 0.4);
}
.link-tree-btn.highlight svg, .link-tree-btn.highlight i {
    color: #fff;
}
.link-tree-btn.highlight:hover {
    background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 100%);
    box-shadow: 0 8px 24px rgba(245, 93, 14, 0.6);
}


/* ============================================
   APP CONTAINER
   ============================================ */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--teal-main);
    position: relative;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--teal-header);
    padding: 15px 20px 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(253,233,162,0.18);
    overflow: hidden;
}

.header-flower {
    position: absolute;
    top: -28px;
    right: -28px;
    width: 80px;
    height: 80px;
    opacity: 0.22;
    pointer-events: none;
}

.header-left { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }

/* Header logo image */
.header-logo-img {
    height: 68px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    transition: var(--transition);
    cursor: pointer;
}
.header-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.tagline {
    font-size: 11px;
    color: var(--cream-dim);
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-top: 3px;
}

.header-actions { display: flex; gap: 8px; position: relative; z-index: 1; }

.icon-btn {
    width: 40px; height: 40px;
    background: rgba(253,233,162,0.12);
    border: 1.5px solid var(--border-cream);
    border-radius: var(--radius-sm);
    color: var(--cream);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.icon-btn:hover, .icon-btn:active {
    background: rgba(245,93,14,0.28);
    border-color: var(--orange);
    color: var(--orange);
    transform: scale(0.94);
}
.icon-btn svg { width: 18px; height: 18px; }

/* ============================================
   CATEGORY NAV
   ============================================ */
.category-nav {
    background: var(--teal-header);
    position: sticky;
    top: 68px;
    z-index: 90;
    padding: 10px 0 12px;
    border-bottom: 1px solid rgba(253,233,162,0.15);
}

.category-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 20px;
    scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }

.category-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition);
    user-select: none;
    padding: 2px 0;
}
.category-pill-image-box {
    width: 65px;
    height: 65px;
    border-radius: 14px;
    border: 1.5px solid rgba(245,220,60,0.15);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1A1208 0%, #150A04 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.category-pill:hover .category-pill-image-box {
    border-color: rgba(245,220,60,0.4);
    transform: translateY(-2px);
}
.category-pill.active .category-pill-image-box {
    border-color: var(--yellow);
    box-shadow: 0 0 0 2.5px var(--yellow), 0 8px 16px rgba(245,220,60,0.25);
    transform: scale(1.05);
}
.category-pill-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-pill-emoji {
    font-size: 26px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.category-pill-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--cream-dim);
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}
.category-pill.active .category-pill-name {
    color: var(--yellow);
    font-weight: 700;
}

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    background: var(--teal-main);
}

.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: 30px;
    font-weight: 400;
    color: var(--cream);
}

.item-count-badge {
    background: rgba(245,93,14,0.2);
    border: 1px solid var(--border-orange);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 700;
    color: var(--orange-light);
    letter-spacing: 0.5px;
}

/* ============================================
   MENU CONTAINER
   ============================================ */
.menu-container {
    flex: 1;
    background: var(--teal-main);
    padding: 4px 16px 16px;
    position: relative;
}

/* Subtle dot-grid texture (like reference menu page) */
.menu-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
    background-size: 22px 22px;
    pointer-events: none;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    position: relative;
    z-index: 1;
}

/* ============================================
   MENU CARDS — crimson on teal (great contrast)
   Yellow border matching the reference
   ============================================ */
.menu-card {
    background: linear-gradient(160deg, #b01b38 0%, #8c102a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: var(--transition);
    animation: cardIn 0.4s ease both;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0,0,0,0.2);
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(18px) scale(0.94); }
    to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

.menu-card:hover {
    border-color: rgba(245, 220, 60, 0.5);
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(245, 220, 60, 0.15);
}
.menu-card:active { transform: scale(0.96); }

/* Card image / emoji area */
.card-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(145deg, rgba(140,15,40,0.65) 0%, rgba(245,93,14,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image-wrapper::before {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,93,14,0.12) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.card-emoji {
    font-size: 52px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}
.menu-card:hover .card-emoji { transform: scale(1.15) rotate(-5deg); }

/* Real food photo inside card */
.card-food-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    z-index: 1;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-card:hover .card-food-img {
    transform: scale(1.08);
}

/* When card has a photo, tone down the radial bg */
.card-image-wrapper.has-photo {
    background: var(--card-red-dark);
}
.card-image-wrapper.has-photo::before {
    display: none;
}
/* Gradient fade-up overlay on photo cards */
.card-image-wrapper.has-photo::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 100%;
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(176, 27, 56, 1) 0%,
        rgba(176, 27, 56, 0.85) 8%,
        rgba(176, 27, 56, 0.40) 16%,
        transparent 28%
    );
    pointer-events: none;
}

.card-badge {
    position: absolute;
    top: 8px; left: 8px;
    z-index: 2;
    background: var(--card-red-badge);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(245,220,60,0.4);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    font-size: 8.5px;
    font-weight: 800;
    color: var(--cream);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-veg-dot {
    position: absolute;
    top: 8px; right: 8px;
    z-index: 2;
    width: 16px; height: 16px;
    border-radius: 3px;
    border: 1.5px solid;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.25);
}
.card-veg-dot.veg     { border-color: #4CAF50; }
.card-veg-dot.non-veg { border-color: #E53935; }
.card-veg-dot::after  { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.card-veg-dot.veg::after     { background: #4CAF50; }
.card-veg-dot.non-veg::after { background: #E53935; }

.card-content {
    background: linear-gradient(180deg, rgba(176, 27, 56, 0.95) 0%, rgba(140, 16, 42, 1) 100%);
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    position: relative;
    border-top: none;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.card-calories {
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: -6px;
    letter-spacing: 0.3px;
}
.card-calories svg {
    width: 12px;
    height: 12px;
    color: var(--orange);
    margin-bottom: 2px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-price { 
    font-family: 'Outfit', sans-serif;
    align-items: baseline;
    display: flex;
    gap: 3px;
}
.price-currency {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
}
.price-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--yellow);
    letter-spacing: -0.5px;
}

.card-add-btn {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--orange) 0%, #D84200 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245, 93, 14, 0.3);
}
.card-add-btn:hover {
    background: linear-gradient(135deg, var(--orange-light) 0%, var(--orange) 100%);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(245, 93, 14, 0.5);
}
.card-add-btn svg { width: 16px; height: 16px; color: #fff; stroke-width: 2.5; }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.empty-icon { font-size: 50px; opacity: 0.45; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: rgba(255,255,255,0.7); }
.empty-state p  { font-size: 13px; color: rgba(255,255,255,0.45); }

/* ============================================
   ILLUSTRATION SECTION
   ============================================ */
.illustration-wrapper {
    background: var(--teal-main);
    padding: 0;
    width: 100%;
    overflow: hidden;
    position: relative;
    line-height: 0;
    margin-top: 8px;
}

.scene-illustration {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.75;
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    background: var(--teal-header);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.search-overlay.active { opacity: 1; pointer-events: all; }

.search-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 16px 16px;
    border-bottom: 1px solid rgba(245,220,60,0.2);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(253,233,162,0.1);
    border: 1.5px solid rgba(245,220,60,0.45);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}
.search-input-wrapper svg { width: 18px; height: 18px; color: var(--yellow); flex-shrink: 0; }
.search-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    color: var(--cream-light);
    outline: none;
}
.search-input-wrapper input::placeholder { color: rgba(253,233,162,0.38); }

.close-search {
    width: 44px; height: 44px;
    background: rgba(253,233,162,0.1);
    border: 1.5px solid var(--border-cream);
    border-radius: var(--radius-sm);
    color: var(--cream);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.close-search:hover {
    background: rgba(245,93,14,0.25);
    border-color: var(--orange);
    color: var(--orange);
}
.close-search svg { width: 18px; height: 18px; }

.search-results-area {
    flex: 1;
    overflow-y: auto;
    background: var(--teal-main);
    padding: 16px;
}
.search-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Ensure search result cards also use the vibrant red */
.search-results-grid .menu-card {
    background: var(--card-red);
}

.search-hint {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.45);
    font-size: 14px;
}
.search-hint svg { width: 38px; height: 38px; opacity: 0.4; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--teal-footer);
    padding: 28px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    border-top: 1px solid rgba(245,220,60,0.18);
}

.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 6px; }
/* Footer logo image */
.footer-logo-img {
    height: 72px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}
.footer-tagline {
    font-size: 10px;
    color: var(--cream-dim);
    text-transform: uppercase;
    letter-spacing: 2.5px;
}

.footer-ornament { color: var(--yellow); opacity: 0.5; font-size: 16px; }

.footer-info { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.footer-info-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--cream-dim);
    text-align: center;
}
.footer-info-row svg { width: 13px; height: 13px; color: var(--orange); flex-shrink: 0; }

.footer-social { display: flex; gap: 10px; }
.social-btn {
    width: 36px; height: 36px;
    background: rgba(253,233,162,0.1);
    border: 1px solid var(--border-cream);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--cream-dim);
    text-decoration: none;
    transition: var(--transition);
}
.social-btn:hover {
    background: rgba(245,93,14,0.25);
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-3px);
}
.social-btn svg { width: 16px; height: 16px; }

.footer-copy {
    font-size: 11px;
    color: rgba(253,233,162,0.3);
    text-align: center;
    border-top: 1px solid rgba(253,233,162,0.1);
    padding-top: 14px;
    width: 100%;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--teal-header); }
::-webkit-scrollbar-thumb { background: rgba(245,220,60,0.3); border-radius: 2px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 360px) {
    .menu-grid, .search-results-grid { gap: 10px; }
    .card-title  { font-size: 12px; }
    .price-value { font-size: 17px; }
    .section-title { font-size: 26px; }
    .card-emoji  { font-size: 44px; }
}

/* ============================================
   DISH DETAIL MODAL
   ============================================ */

/* Overlay backdrop */
.item-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.item-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Modal card */
.item-modal {
    background: #1A1208;
    border: 2px solid #C8923A;
    border-radius: 22px;
    width: 100%;
    max-width: 340px;
    overflow: hidden;
    transform: scale(0.82) translateY(40px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(200,146,58,0.15);
}
.item-modal-overlay.active .item-modal {
    transform: scale(1) translateY(0);
}

/* ── Image / Emoji area ── */
.item-modal-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(160deg, #2A1608 0%, #150A04 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Radial gold glow behind emoji */
.item-modal-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(200,146,58,0.18) 0%,
        rgba(200,146,58,0.06) 45%,
        transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

/* Large emoji */
.item-modal-emoji-large {
    font-size: 110px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 28px rgba(0,0,0,0.5));
    animation: modalEmojiFloat 3.5s ease-in-out infinite;
}
@keyframes modalEmojiFloat {
    0%, 100% { transform: translateY(0)   rotate(-4deg); }
    50%       { transform: translateY(-14px) rotate(4deg);  }
}

/* Real food photo in modal */
.item-modal-food-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    z-index: 1;
    animation: modalImgFloat 4s ease-in-out infinite;
}
@keyframes modalImgFloat {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.03); }
}

/* Close button */
.item-modal-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(26,18,8,0.88);
    border: 1.5px solid rgba(200,146,58,0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.22s ease;
}
.item-modal-close:hover {
    background: rgba(200,146,58,0.25);
    border-color: #C8923A;
    transform: rotate(90deg);
}
.item-modal-close svg { width: 16px; height: 16px; }

/* Veg/non-veg badge */
.item-modal-veg-badge {
    position: absolute;
    top: 12px; left: 12px;
    width: 22px; height: 22px;
    border-radius: 5px;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26,18,8,0.82);
}
.item-modal-veg-badge.veg     { border-color: #4CAF50; }
.item-modal-veg-badge.non-veg { border-color: #E53935; }
.item-modal-veg-badge::after  { content: ''; width: 10px; height: 10px; border-radius: 50%; }
.item-modal-veg-badge.veg::after     { background: #4CAF50; }
.item-modal-veg-badge.non-veg::after { background: #E53935; }

/* Gold separator line at bottom of image */
.item-modal-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #C8923A, transparent);
}

/* ── Content body ── */
.item-modal-body {
    padding: 22px 24px 28px;
    background: #1A1208;
}

/* Dish name — large italic serif, gold */
.item-modal-name {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 600;
    font-style: italic;
    color: #C8923A;
    line-height: 1.2;
    margin-bottom: 10px;
}

/* Category label */
.item-modal-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    border-bottom: 1.5px solid rgba(255,255,255,0.12);
    padding-bottom: 10px;
    margin-bottom: 14px;
}

/* Description */
.item-modal-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
    margin-bottom: 16px;
}

/* Meta info (calories & allergens) */
.item-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(200, 146, 58, 0.12);
    border: 1px solid rgba(200, 146, 58, 0.35);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #C8923A;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.meta-item svg { width: 14px; height: 14px; padding-bottom: 1px; }

/* Price row */
.item-modal-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.item-modal-sar {
    font-size: 14px;
    font-weight: 700;
    color: #C8923A;
    opacity: 0.85;
}
.item-modal-price-val {
    font-size: 32px;
    font-weight: 800;
    color: #C8923A;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
}

/* ============================================
   LANGUAGE SWITCH BUTTON
   ============================================ */
.lang-switch-btn {
    height: 40px;
    padding: 0 12px;
    background: rgba(253,233,162,0.12);
    border: 1.5px solid var(--border-cream);
    border-radius: var(--radius-sm);
    color: var(--cream);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.lang-switch-btn:hover {
    background: rgba(245,93,14,0.2);
    border-color: var(--orange);
}

.lang-label-en, .lang-label-ar {
    opacity: 0.5;
    transition: var(--transition);
}

[dir="ltr"] .lang-label-en,
[dir="rtl"] .lang-label-ar {
    opacity: 1;
    color: var(--yellow);
}

/* ============================================
   RTL SUPPORT
   ============================================ */
[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
}

[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
}

[dir="rtl"] .header-left {
    flex-direction: row-reverse;
}

[dir="rtl"] .tagline {
    letter-spacing: 0;
}

[dir="rtl"] .category-pill-name {
    font-size: 13px;
    letter-spacing: 0;
}

[dir="rtl"] .section-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

[dir="rtl"] .card-title {
    font-family: 'Cairo', sans-serif;
    text-align: right;
}

[dir="rtl"] .card-price {
    flex-direction: row-reverse;
}

[dir="rtl"] .item-modal-name {
    font-family: 'Cairo', sans-serif;
    text-align: right;
}

[dir="rtl"] .item-modal-desc {
    text-align: right;
    line-height: 1.6;
}

[dir="rtl"] .meta-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .item-modal-price-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .close-search {
    left: 20px;
    right: auto;
}

[dir="rtl"] .search-input-wrapper i {
    right: 16px;
    left: auto;
}

[dir="rtl"] .search-input-wrapper input {
    padding-right: 48px;
    padding-left: 16px;
    text-align: right;
}

/* Custom button styles for Arabic */
[dir="rtl"] .link-tree-btn {
    flex-direction: row-reverse;
    text-align: right;
}
