/* ============================================================
   FoodHouse — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ─── CSS Variables ───────────────────────────────────────── */
:root {
    --primary:       #F5A623;
    --primary-dark:  #D4891A;
    --primary-light: #FFF3D6;
    --accent:        #E74C3C;
    --navy:          #1A1A2E;
    --navy-light:    #2D2D44;
    --text:          #1C1C1C;
    --text-muted:    #6B7280;
    --border:        #E5E7EB;
    --bg:            #F9FAFB;
    --white:         #FFFFFF;
    --success:       #10B981;
    --warning:       #F59E0B;
    --danger:        #EF4444;
    --card-shadow:   0 2px 12px rgba(0,0,0,.08);
    --card-hover:    0 8px 32px rgba(0,0,0,.14);
    --radius:        12px;
    --radius-sm:     8px;
    --radius-lg:     20px;
    --sidebar-w:     360px;
    --header-h:      64px;
    --transition:    .2s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; max-width: 100vw; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── Typography ──────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: 'Outfit', sans-serif; font-weight: 700; }

/* ─── Top Header ──────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--navy);
    height: var(--header-h);
    display: flex; align-items: center;
    padding: 0 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.site-header .logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem; font-weight: 800;
    color: var(--white);
    display: flex; align-items: center; gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
.site-header .logo img { height: 40px; border-radius: 50%; }
.site-header .logo span { color: var(--primary); }
.site-header .header-right {
    margin-left: auto;
    display: flex; align-items: center; gap: 16px;
}
.btn-header {
    padding: 8px 20px; border-radius: 999px;
    font-size: .875rem; font-weight: 500;
    transition: var(--transition);
}
.btn-login {
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,.3);
}
.btn-login:hover { border-color: var(--primary); color: var(--primary); }
.btn-orders {
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,.3);
}
.btn-orders:hover { border-color: var(--primary); color: var(--primary); }
.btn-register {
    background: var(--primary);
    color: var(--navy);
    font-weight: 600;
}
.btn-register:hover { background: var(--primary-dark); }

.user-menu {
    display: flex; align-items: center; gap: 10px;
    color: var(--white); font-size: .875rem;
}
.user-menu .user-name { font-weight: 600; }
.btn-logout {
    color: rgba(255,255,255,.6); font-size: .8rem;
    padding: 4px 12px; border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    transition: var(--transition);
}
.btn-logout:hover { color: var(--danger); border-color: var(--danger); }

/* ─── Hero Section ────────────────────────────────────────── */
.hero {
    position: relative;
    height: 440px;
    background: #1a1a1a;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.hero-bg {
    position: absolute; inset: 0;
    background: url('../images/hero-bg.png') center/cover no-repeat;
    opacity: .72;
}
/* Dark gradient overlay to improve text readability */
.hero::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,.25) 0%,
        rgba(0,0,0,.50) 60%,
        rgba(0,0,0,.70) 100%);
    z-index: 0;
}
.hero-content {
    position: relative; z-index: 1;
    text-align: center; color: var(--white);
    padding: 0 24px;
}
.hero-logo {
    width: 116px; height: 116px;
    border-radius: 50%;
    background: var(--white);
    overflow: hidden;
    margin: 0 auto 18px;
    box-shadow: 0 6px 32px rgba(0,0,0,.6);
    border: 4px solid rgba(255,255,255,.9);
    flex-shrink: 0;
}
.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem; font-weight: 800;
    letter-spacing: -.5px;
    margin-bottom: 6px;
    text-shadow: 0 2px 12px rgba(0,0,0,.7);
    line-height: 1.15;
}
.hero-official {
    font-family: 'Inter', sans-serif;
    font-size: 1rem; font-weight: 400;
    letter-spacing: .5px;
    opacity: .9;
    margin-bottom: 6px;
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: .95rem;
    font-style: italic;
    opacity: .82;
    margin-bottom: 28px;
    text-shadow: 0 1px 6px rgba(0,0,0,.5);
    letter-spacing: .3px;
}
.btn-hero {
    display: inline-block;
    background: var(--primary);
    color: #1a1a1a;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem; font-weight: 800;
    padding: 16px 48px; border-radius: 999px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 6px 28px rgba(245,166,35,.5);
    transition: var(--transition);
    border: 2.5px solid rgba(255,255,255,.15);
    animation: pulse-glow 3s ease-in-out infinite;
}
.btn-hero:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(245,166,35,.65);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 6px 28px rgba(245,166,35,.5); }
    50%       { box-shadow: 0 6px 44px rgba(245,166,35,.8); }
}

/* ─── Info Bar ────────────────────────────────────────────── */
.info-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    display: flex; align-items: center; gap: 24px;
    font-size: .875rem; color: var(--text-muted);
    flex-wrap: wrap;
}
.info-bar .info-item { display: flex; align-items: center; gap: 6px; }
.info-bar .badge-open {
    display: flex; align-items: center; gap: 5px;
    color: var(--success); font-weight: 600;
}
.info-bar .badge-open::before {
    content: ''; width: 8px; height: 8px;
    border-radius: 50%; background: var(--success);
    animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:.3; } }

/* ─── Main Layout ─────────────────────────────────────────── */
.main-container {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-w);
    min-height: calc(100vh - var(--header-h));
    width: 100%;
}

/* ─── Menu Area ───────────────────────────────────────────── */
.menu-area { padding: 0; min-width: 0; width: 100%; display: flex; flex-direction: column; }

/* ─── Category Nav Wrapper (Card/Bar) ─────────────────────── */
.cat-nav-wrapper {
    position: sticky;
    top: var(--header-h);
    z-index: 90;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* ─── Search Bar (Inside Nav Wrapper) ─────────────────────── */
.cat-nav-wrapper .search-bar {
    position: relative;
    width: 100%;
    flex-shrink: 0;
}
.cat-nav-wrapper .search-input {
    width: 100%;
    padding: 10px 16px 10px 38px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-size: .875rem;
    background: var(--bg);
    transition: var(--transition);
    outline: none;
}
.cat-nav-wrapper .search-input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.12);
}
.cat-nav-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
    font-size: 0.9rem;
}
.cat-nav-wrapper .search-bar:focus-within .search-icon {
    color: var(--primary);
    transform: translateY(-50%) scale(1.15);
}

.cat-nav-divider {
    display: none;
}

/* ─── Category Nav ────────────────────────────────────────── */
.cat-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding: 0;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-btn {
    flex-shrink: 0;
    padding: 8px 18px; border-radius: 999px;
    font-size: .875rem; font-weight: 500;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    background: var(--white);
    transition: var(--transition);
    display: flex; align-items: center; gap: 6px;
}
.cat-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.cat-btn.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
    font-weight: 600;
}

#menu-sections {
    padding-bottom: 40px;
}

/* ─── Category Section ────────────────────────────────────── */
.category-section {
    padding: 32px 24px 0;
    scroll-margin-top: calc(var(--header-h) + 80px);
    width: 100%;
    box-sizing: border-box;
}
.category-section + .category-section { padding-top: 16px; }

.section-title {
    font-size: 1.4rem; font-weight: 700;
    color: var(--navy); margin-bottom: 4px;
}
.section-count {
    font-size: .8rem; color: var(--text-muted);
    margin-bottom: 20px;
}

/* ─── Menu Item Row ───────────────────────────────────────── */
.item-list { display: flex; flex-direction: column; gap: 12px; width: 100%; box-sizing: border-box; }

.item-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex; align-items: center; gap: 16px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}
.item-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px; background: var(--primary);
    transform: scaleY(0); transform-origin: center;
    transition: var(--transition);
}
.item-card:hover {
    border-color: var(--primary);
    box-shadow: var(--card-hover);
    transform: translateY(-1px);
}
.item-card:hover::before { transform: scaleY(1); }

.item-img {
    width: 72px; height: 72px;
    border-radius: var(--radius-sm);
    object-fit: cover; flex-shrink: 0;
    background: var(--bg);
}
.item-img-placeholder {
    width: 72px; height: 72px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary-light), #fff);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; flex-shrink: 0;
}
.item-info { flex: 1; min-width: 0; }
.item-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem; font-weight: 600;
    color: var(--navy); margin-bottom: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.item-desc {
    font-size: .8rem; color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.item-tags { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.tag {
    font-size: .7rem; padding: 2px 8px; border-radius: 999px;
    background: var(--primary-light); color: var(--primary-dark);
    font-weight: 500;
}

.item-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.item-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem; font-weight: 700;
    color: var(--navy);
}
.item-price .from { font-size: .75rem; color: var(--text-muted); font-weight: 400; }

.btn-add {
    width: 42px; height: 42px;
    border-radius: 50%; background: var(--navy);
    color: var(--white);
    font-size: 1.3rem; font-weight: 300;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.btn-add:hover {
    background: var(--primary);
    transform: rotate(90deg) scale(1.1);
}

/* ─── Item Modal ──────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
    background: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%; max-width: 560px;
    max-height: 90vh;
    display: flex; flex-direction: column;
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0;
}
.modal-title { font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.modal-close {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg); color: var(--text-muted);
    font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.modal-close:hover { background: var(--danger); color: var(--white); }

.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }

.modal-desc {
    font-size: .9rem; color: var(--text-muted);
    margin-bottom: 20px;
}

.size-section h4, .options-section h4 {
    font-size: .85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .8px;
    color: var(--text-muted); margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.required-badge {
    background: var(--danger); color: var(--white);
    font-size: .65rem; padding: 2px 6px; border-radius: 999px;
}

.size-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.size-opt {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.size-opt:hover { border-color: var(--primary); }
.size-opt.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}
.size-opt label {
    display: flex; align-items: center; gap: 12px;
    cursor: pointer; flex: 1;
}
.size-opt input[type=radio] { display: none; }
.size-radio {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); flex-shrink: 0;
}
.size-opt.selected .size-radio {
    border-color: var(--primary); background: var(--primary);
}
.size-opt.selected .size-radio::after {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--white);
}
.size-name { font-weight: 500; }
.size-price-tag { font-weight: 700; color: var(--navy); font-size: .95rem; }

.modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 16px;
    flex-shrink: 0;
}
.qty-stepper {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg); border-radius: 999px;
    padding: 6px 4px;
}
.qty-btn {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: var(--text-muted);
    background: var(--white);
    transition: var(--transition);
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-val { font-weight: 700; min-width: 24px; text-align: center; }

.btn-add-cart {
    flex: 1;
    padding: 14px;
    background: var(--navy);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem; font-weight: 700;
    border-radius: var(--radius);
    letter-spacing: .3px;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: space-between;
}
.btn-add-cart:hover { background: var(--primary); color: var(--navy); }
.btn-add-cart:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; }

/* ─── Cart Sidebar ────────────────────────────────────────── */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--sidebar-w);
    height: 100vh;
    z-index: 105;
    background: var(--white);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.08);
}

.cart-header {
    padding: 20px 24px 0;
    flex-shrink: 0;
}
.cart-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem; font-weight: 700;
    color: var(--navy); margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.cart-count-badge {
    background: var(--primary);
    color: var(--navy);
    font-size: .75rem; font-weight: 700;
    padding: 2px 8px; border-radius: 999px;
}

.delivery-toggle {
    display: flex; background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 4px; margin-bottom: 12px;
}
.delivery-btn {
    flex: 1; padding: 8px; border-radius: var(--radius-sm);
    font-size: .875rem; font-weight: 500; color: var(--text-muted);
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.delivery-btn.active {
    background: var(--navy); color: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.discount-badge {
    background: #FFF8E1; color: #92600A;
    font-size: .75rem; font-weight: 600;
    padding: 4px 12px; border-radius: 999px;
    text-align: center; margin-bottom: 4px;
    border: 1px solid #F5CC6B;
}

/* ─── Cart Items ──────────────────────────────────────────── */
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

.cart-empty {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; height: 200px;
    color: var(--text-muted); text-align: center;
}
.cart-empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: .4; }
.cart-empty-text { font-size: .9rem; }

.cart-item {
    padding: 14px 0; border-bottom: 1px solid var(--border);
    animation: slide-in .2s ease;
}
@keyframes slide-in { from { opacity:0; transform:translateY(-8px); } }

.cart-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cart-item-name {
    font-weight: 600; font-size: .9rem; color: var(--navy); line-height: 1.3;
}
.cart-item-meta { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.cart-item-price { font-weight: 700; font-size: .95rem; color: var(--navy); flex-shrink: 0; }

.cart-item-controls {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 8px; margin-top: 8px;
}
.cart-ctrl-btn {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem; color: var(--text-muted);
    transition: var(--transition);
}
.cart-ctrl-btn:hover { border-color: var(--primary); color: var(--primary); }
.cart-ctrl-btn.delete:hover { border-color: var(--danger); color: var(--danger); }
.cart-ctrl-qty { font-weight: 600; min-width: 20px; text-align: center; font-size: .9rem; }

/* ─── Cart Footer ─────────────────────────────────────────── */
.cart-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.cart-totals { margin-bottom: 16px; }
.cart-row {
    display: flex; justify-content: space-between;
    font-size: .875rem; color: var(--text-muted);
    margin-bottom: 6px;
}
.cart-row.total {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem; font-weight: 700;
    color: var(--navy); margin-top: 10px; padding-top: 10px;
    border-top: 1.5px solid var(--border);
}

.btn-checkout {
    width: 100%; padding: 15px;
    background: var(--primary);
    color: var(--navy);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem; font-weight: 700;
    border-radius: var(--radius);
    letter-spacing: .3px;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-checkout:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-checkout:disabled { background: var(--border); color: var(--text-muted); cursor: not-allowed; transform: none; }

.payment-icons { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.payment-icon {
    width: 36px; height: 24px; border-radius: 4px;
    background: var(--bg); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: .6rem; font-weight: 700; color: var(--text-muted);
}

/* ─── Floating Cart Button (mobile) ──────────────────────── */
.floating-cart {
    display: none;
    position: fixed; bottom: 24px; right: 24px; z-index: 150;
    background: var(--navy); color: var(--white);
    width: 60px; height: 60px; border-radius: 50%;
    align-items: center; justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    transition: var(--transition);
}
.floating-cart .fc-badge {
    position: absolute; top: -4px; right: -4px;
    background: var(--primary); color: var(--navy);
    font-size: .7rem; font-weight: 700;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.floating-cart:hover { background: var(--primary); transform: scale(1.05); }

/* ─── Loading Skeleton ────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel-card { height: 96px; margin-bottom: 12px; border-radius: var(--radius); }

/* ─── Toast ───────────────────────────────────────────────── */
.toast-container {
    position: fixed; top: 80px; right: 24px; z-index: 500;
    display: flex; flex-direction: column; gap: 10px;
    pointer-events: none;
}
.toast {
    background: var(--navy); color: var(--white);
    padding: 12px 20px 12px 16px;
    border-radius: var(--radius-sm);
    font-size: .875rem; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    transform: translateX(100%); opacity: 0;
    transition: all .3s cubic-bezier(.34,1.56,.64,1);
    min-width: 240px;
    border-left: 4px solid var(--primary);
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }

/* ─── Utility ─────────────────────────────────────────────── */
.no-results {
    text-align: center; padding: 60px 24px;
    color: var(--text-muted);
}
.no-results-icon { font-size: 3rem; margin-bottom: 12px; }

/* ─── Cart Close Button ───────────────────────────────────── */
.cart-close-mobile {
    margin-left: auto; width: 32px; height: 32px;
    border-radius: 50%; background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 1rem;
}
.cart-close-mobile:hover { background: var(--danger); color: var(--white); }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .main-container { grid-template-columns: 1fr; }
    .cart-sidebar {
        display: none;
        position: fixed; inset: 0; z-index: 300;
        height: 100vh; width: 100%;
        animation: slide-up .3s ease-out;
    }
    @keyframes slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
    .cart-sidebar.mobile-open { display: flex; }
    .floating-cart { display: flex; }
    .hero-title { font-size: 2.2rem; }
    .hero-official { font-size: .9rem; }
    .hero-subtitle { font-size: .85rem; }
    .btn-hero { font-size: .9rem; padding: 14px 36px; letter-spacing: 1px; }
    .coupons-slider {
        scrollbar-width: none;
        padding-bottom: 0;
    }
    .coupons-slider::-webkit-scrollbar {
        display: none;
    }
}

@media (min-width: 901px) {
    .cart-close-mobile { display: none; }
    .site-header {
        padding-right: calc(var(--sidebar-w) + 24px);
    }
    .info-bar {
        padding-right: calc(var(--sidebar-w) + 24px);
    }
    .hero {
        padding-right: var(--sidebar-w);
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .user-name-text { display: none; }
    .btn-header .btn-text { display: none; }
    .user-menu { gap: 8px; }
}

@media (max-width: 480px) {
    .site-header { padding: 0 12px; gap: 8px; }
    .site-header .logo { font-size: 1.1rem; gap: 4px; }
    .site-header .logo img { height: 32px; }
    .site-header .header-right { gap: 8px; }
    .btn-header { padding: 6px 12px; font-size: .8rem; }
    .user-name { display: none; }
    .user-menu { gap: 6px; }
    .hero { height: 320px; }
    .hero-logo { width: 84px; height: 84px; }
    .hero-title { font-size: 1.75rem; }
    .hero-official { font-size: .85rem; }
    .hero-subtitle { font-size: .8rem; margin-bottom: 20px; }
    .btn-hero { font-size: .82rem; padding: 12px 28px; letter-spacing: .8px; }
    .info-bar { padding: 10px 12px; gap: 8px; font-size: .75rem; justify-content: center; text-align: center; }
    .info-bar .info-item { justify-content: center; }
    .cat-nav-wrapper { padding: 12px 16px; }
    .category-section { padding: 24px 16px 0; }
    .item-card { padding: 12px 14px; gap: 10px; }
    .item-right { gap: 10px; }
    .item-img, .item-img-placeholder { width: 56px; height: 56px; }
    .btn-add { width: 36px; height: 36px; font-size: 1.2rem; }
}

/* ─── Site Footer ─────────────────────────────────────────── */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 24px;
    margin-top: auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    text-align: center;
}
.site-footer .footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
}
.site-footer .footer-brand {
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}
.site-footer .footer-sep {
    opacity: 0.4;
}
@media (max-width: 600px) {
    .site-footer .footer-sep { display: none; }
    .site-footer .footer-row { flex-direction: column; gap: 8px; }
}

/* ─── Coupons Section Styles ────────────────────────────── */
.coupons-banner-section {
    background: var(--white);
    padding: 16px 32px;
    border-bottom: 1px solid var(--border);
}
.coupons-banner-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.coupons-banner-title small {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-muted);
}
.coupons-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.coupons-slider::-webkit-scrollbar {
    height: 4px;
}
.coupons-slider::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 999px;
}
.coupon-banner-card {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy) 0%, #29293F 100%);
    color: var(--white);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    cursor: pointer;
    transition: var(--transition);
    border: 1.5px dashed rgba(255, 255, 255, 0.15);
    user-select: none;
}
.coupon-banner-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 6px 16px rgba(245, 166, 35, 0.12);
}
.coupon-banner-card.copied-card {
    border-color: var(--success);
    background: linear-gradient(135deg, #064E3B 0%, #0F172A 100%);
}
.coupon-card-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    border-right: 1.5px dashed rgba(255, 255, 255, 0.2);
    padding-right: 12px;
    margin-right: 12px;
}
.coupon-card-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.coupon-card-code {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}
.coupon-card-min {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}
.coupon-card-copy-badge {
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 16px;
    text-transform: uppercase;
    transition: var(--transition);
}
.coupon-banner-card:hover .coupon-card-copy-badge {
    background: var(--primary);
    color: var(--navy);
}
.coupon-card-copy-badge.copied {
    background: var(--success) !important;
    color: var(--white) !important;
}

/* ─── Checkout Coupons ──────────────────────────────────── */
.checkout-coupon-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}
.coupon-input-group {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}
.coupon-message {
    font-size: 0.8rem;
    margin-top: 6px;
    font-weight: 600;
}
.coupon-message.success {
    color: var(--success);
}
.coupon-message.error {
    color: var(--danger);
}

@media (max-width: 480px) {
    .coupons-banner-section {
        padding: 12px 16px;
    }
    .coupons-slider {
        scrollbar-width: none;
        padding-bottom: 0;
    }
    .coupons-slider::-webkit-scrollbar {
        display: none;
    }
    .coupon-banner-card {
        padding: 8px 12px;
    }
    .coupon-card-value {
        font-size: 1.1rem;
        padding-right: 8px;
        margin-right: 8px;
    }
    .coupon-card-code {
        font-size: 0.85rem;
    }
    .coupon-card-min {
        font-size: 0.65rem;
    }
    .coupon-card-copy-badge {
        margin-left: 8px;
        font-size: 0.6rem;
    }
}

