/* =========================================
   LA CASA DE BON — Premium Brand CSS
   ========================================= */

/* --- CSS Variables (Design Tokens) --- */
:root {
    --gold:        #C9A84C;
    --gold-light:  #E8D08A;
    --gold-dark:   #8A6820;
    --cream:       #F5EFE0;
    --cream-light: #FDFAF4;
    --dark:        #1A1209;
    --dark-mid:    #2C2110;
    --dark-light:  #3D3020;
    --text-main:   #2C2110;
    --text-muted:  #7A6845;
    --text-light:  #A89060;
    --white:       #FFFFFF;
    --green-wa:    #25D366;

    --radius-xl:   24px;
    --radius-lg:   16px;
    --radius-md:   12px;
    --radius-pill: 100px;

    --shadow-gold: 0 8px 32px rgba(201,168,76,0.25);
    --shadow-soft: 0 4px 20px rgba(44,33,16,0.08);
    --shadow-card: 0 2px 12px rgba(44,33,16,0.06);

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

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box; margin: 0; padding: 0;
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Tajawal', sans-serif; /* Fallback to standard if custom fails */
    background: var(--cream);
    color: var(--text-main);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.hidden { display: none !important; }
.full-width { width: 100%; }
.optional { color: var(--text-muted); font-size: 0.85rem; font-weight: 400; }

/* =========================================
   TOP NAV BAR (Sticky Cart)
   ========================================= */
.nav-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    background: rgba(201,168,76,0.1);
    border: 1.5px solid rgba(201,168,76,0.4);
    color: var(--gold-light);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.nav-cart-btn:hover {
    background: rgba(201,168,76,0.22);
    border-color: var(--gold);
    transform: scale(1.08);
}
.nav-cart-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    background: var(--gold-dark);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Tajawal', sans-serif;
}

/* =========================================
   HERO HEADER
   ========================================= */
.hero-header {
    --hero-deep:  #1A0507;
    --hero-mid:   #3B0F12;
    --hero-ember: #5C1A10;
    --hero-brass: #C98B4A;
    --hero-brass-light: #F0D3A6;
    position: relative;
    min-height: 85svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(155deg, var(--hero-deep) 0%, var(--hero-mid) 55%, var(--hero-ember) 100%);
}

/* Brass decorative border pattern */
.hero-header::before {
    content: '';
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(201,139,74,0.3);
    border-radius: 4px;
    pointer-events: none;
    z-index: 2;
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    animation: heroKenBurns 22s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.09); }
}

/* Cinematic color-grade — unifies the photo with the brand's oxblood/brass palette */
.hero-tint {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(160deg, rgba(92,26,16,0.65) 0%, rgba(201,139,74,0.22) 100%);
    mix-blend-mode: overlay;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(10,2,3,0.55) 0%, rgba(10,2,3,0.72) 55%, rgba(6,1,2,0.92) 100%),
        radial-gradient(ellipse at center, rgba(10,2,3,0.25) 15%, rgba(8,2,3,0.65) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 30px;
    animation: heroFadeIn 1s ease 1.5s both;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    color: var(--hero-brass-light);
    font-size: 1.15rem;
    letter-spacing: 5px;
    margin-bottom: 18px;
    opacity: 0.92;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9), 0 1px 3px rgba(0,0,0,0.8);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.6rem, 8vw, 3.7rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 3px;
    margin-bottom: 26px;
    /* Animated Gradient — warm champagne shimmer */
    background: linear-gradient(to right, var(--hero-brass-light), #fff3d6, var(--hero-brass-light), #f3e5ab, var(--hero-brass-light));
    background-size: 300% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textShine 14s ease-in-out infinite;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.95)) drop-shadow(0 1px 3px rgba(0,0,0,0.9));
}
@keyframes textShine {
    0%, 15%  { background-position: 0% center; }
    50%      { background-position: 100% center; }
    85%, 100% { background-position: 0% center; }
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 22px;
}
.hero-divider::before,
.hero-divider::after {
    content: '';
    flex: 1;
    max-width: 90px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--hero-brass));
}
.hero-divider::after { background: linear-gradient(90deg, var(--hero-brass), transparent); }
.divider-gem {
    color: var(--hero-brass-light);
    display: inline-flex;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
    animation: gemSpin 8s ease-in-out infinite;
}
@keyframes gemSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50%      { transform: rotate(180deg) scale(1.15); }
}

.hero-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    text-transform: none;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 40px;
    /* Animated Gradient */
    background: linear-gradient(to right, var(--hero-brass-light), var(--cream), var(--white), var(--hero-brass-light));
    background-size: 300% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textShine 14s ease-in-out infinite reverse;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.9));
}

.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid rgba(255,255,255,0.9);
    padding: 14px 36px;
    border-radius: var(--radius-pill);
    font-family: 'Tajawal', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}
.hero-cta-btn span:first-child {
    background: linear-gradient(120deg, var(--gold), #a0522d, var(--hero-brass), #c9a84c, var(--gold));
    background-size: 300% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: ctaBorderShift 6s ease-in-out infinite;
}
@keyframes ctaBorderShift {
    0%   { background-position: 0% center; }
    50%  { background-position: 100% center; }
    100% { background-position: 0% center; }
}
.hero-cta-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 24px rgba(255,255,255,0.4);
}
.cta-arrow {
    animation: drift 3.5s ease-in-out infinite;
    display: inline-block;
    color: var(--gold-dark, #a0732f);
}
@keyframes drift {
    0%, 100% { transform: translateY(0); opacity: 0.85; }
    50%       { transform: translateY(3px); opacity: 1; }
}



/* =========================================
   MENU SECTION
   ========================================= */
#menu-section { padding: 50px 0 120px; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 28px;
    padding: 0 24px;
}
.section-eyebrow {
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 4px;
    font-weight: 400;
}

/* Cart button in menu header */
.menu-cart-btn {
    position: absolute;
    left: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: transparent;
    border: 1.5px solid rgba(201,168,76,0.4);
    color: var(--gold-dark);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    position: absolute;
    left: 24px;
}
.menu-cart-btn:hover {
    background: rgba(201,168,76,0.1);
    border-color: var(--gold);
    transform: scale(1.08);
}
/* --- Categories --- */
.categories-wrapper {
    padding: 0 20px;
    margin-bottom: 28px;
    overflow: hidden;
}
.categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.categories::-webkit-scrollbar { display: none; }

.category-tab {
    flex-shrink: 0;
    padding: 9px 22px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--gold-dark);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    background: transparent;
    transition: var(--transition);
    white-space: nowrap;
    font-family: 'Tajawal', sans-serif;
}
.category-tab:hover { border-color: var(--gold); color: var(--gold-dark); }
.category-tab.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}

/* --- Products --- */
.products-grid {
    padding: 0 10px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns for better image sizes */
    gap: 10px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 30px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}
.empty-icon { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--gold-dark);
    margin-bottom: 8px;
}
.empty-state p { font-size: 1rem; opacity: 0.7; }

/* Product Card - Premium Redesign */
.product-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(201,168,76,0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(201,168,76,0.15);
    border-color: rgba(201,168,76,0.3);
}
.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 65%; /* 3:2 aspect ratio - more compact for mobile */
    overflow: hidden;
    background: var(--cream);
}

/* Minimalist Drink Card */
.minimal-drink-card {
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
    text-align: center;
    gap: 12px;
}
.minimal-drink-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}
.minimal-drink-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Tajawal', sans-serif;
    letter-spacing: 0.5px;
}
.minimal-drink-price {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gold);
    font-family: 'Tajawal', sans-serif;
}
.minimal-add-btn {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    width: auto;
    padding: 8px 24px;
    border-radius: 6px;
    margin: 0;
    box-shadow: none;
    animation: none;
}
.minimal-add-btn:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-2px);
}

/* Cocktail Soda / Freska Bar — elegant gold sheen (matches the brand, not a disco neon) */
.cocktail-soda-bar {
    background: linear-gradient(-45deg, var(--gold-dark), var(--gold-light), var(--gold), #fff6d6, var(--gold-dark)) !important;
    background-size: 400% 400% !important;
    animation: gradientBG 9s ease infinite !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}
.cocktail-soda-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg,
        rgba(0,0,0,0.12),
        rgba(0,0,0,0),
        rgba(0,0,0,0.12));
    pointer-events: none;
}
.cocktail-soda-bar .category-card-title {
    color: var(--dark);
    text-shadow: 0 1px 3px rgba(255,255,255,0.5);
    letter-spacing: 3px;
    font-size: 1.15rem;
}
.product-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image {
    transform: scale(1.08);
}
.product-info {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: linear-gradient(to bottom, #ffffff, #faf7f0);
}
.product-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 8px;
}
.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark);
    font-family: 'Tajawal', sans-serif;
    line-height: 1.3;
}
.product-price-badge {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.8rem;
    border: none;
    white-space: nowrap;
    font-family: 'Tajawal', sans-serif;
    
    /* Animated Gold Gradient Text */
    background: linear-gradient(270deg, #c9a84c, #a0732f, #d4af37, #e5c158, #c9a84c);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientShift 4s ease infinite;
}
@keyframes textGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.product-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.size-badges-wrapper {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.size-badge {
    font-size: 0.55rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'Tajawal', sans-serif;
    text-transform: uppercase;
}
.size-s { background: rgba(201,168,76,0.12); color: var(--gold-dark); border: 1px solid rgba(201,168,76,0.3); }
.size-d { background: rgba(201,168,76,0.22); color: var(--gold-dark); border: 1px solid rgba(201,168,76,0.5); }
.size-t { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--white); border: none; }

.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: all 0.3s ease;
    
    /* Animated Wavy/Gradient Background */
    background: linear-gradient(270deg, #1a1209, #3a2c1f, #0f0a05, #241a10, #1a1209);
    background-size: 300% 300%;
    color: #ffffff;
    animation: btnGradientShift 6s ease infinite;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.add-to-cart-btn:hover {
    background: linear-gradient(270deg, #c9a84c, #d4af37, #a0732f, #e5c158, #c9a84c);
    background-size: 300% 300%;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(201,168,76,0.4);
    transform: translateY(-2px);
}
.add-to-cart-btn:active {
    transform: scale(0.97);
}
@keyframes btnGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =========================================
   MODALS (Bottom Sheets)
   ========================================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26,18,9,0.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
}
.modal-sheet {
    position: relative;
    background: var(--cream-light);
    width: 100%;
    max-width: 600px;
    max-height: 90svh;
    border-radius: 28px 28px 0 0;
    padding: 16px 24px 40px;
    overflow-y: auto;
    animation: sheetUp 0.35s cubic-bezier(0.34,1.2,0.64,1);
    box-shadow: 0 -8px 40px rgba(44,33,16,0.2);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.sheet-handle {
    width: 40px; height: 4px;
    border-radius: 4px;
    background: rgba(44,33,16,0.15);
    margin: 0 auto 20px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(201,168,76,0.2);
}
.modal-header h2 { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--dark); }
.close-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(44,33,16,0.15);
    background: transparent;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.close-btn:hover { background: var(--dark); color: white; }

/* Cart Items */
.cart-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(201,168,76,0.2);
}
.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    border: 1px solid rgba(201,168,76,0.2);
}
.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cart-item-name { font-weight: 700; color: var(--dark); font-size: 1rem; font-family: 'Tajawal', sans-serif;}
.cart-item-notes {
    display: block;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 2px;
}
.order-item-note {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 2px 0 6px 0;
}
.cart-item-price { font-size: 0.9rem; color: var(--gold-dark); font-weight: 700; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; background: rgba(201,168,76,0.05); padding: 4px 8px; border-radius: 20px; border: 1px solid rgba(201,168,76,0.2); }
.cart-item-qty button { background: none; border: none; font-size: 1.2rem; color: var(--dark); cursor: pointer; padding: 0 4px; }
.cart-item-qty span { font-weight: 700; min-width: 20px; text-align: center; }
.cart-item-delete {
    background: transparent;
    border: 1px solid rgba(220,50,50,0.3);
    color: #cc3333;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.cart-item-delete:hover {
    background: rgba(220,50,50,0.1);
    border-color: #cc3333;
    transform: scale(1.1);
}

.cart-footer { position: sticky; bottom: 0; background: var(--cream-light); padding-top: 16px; }
.cart-total-row {
    display: flex; justify-content: space-between;
    font-size: 1.2rem; font-weight: 700; color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(44,33,16,0.1);
}

/* Product Modal */
.product-modal-body { margin-bottom: 24px; }
#modal-product-img { width: 100%; height: 180px; object-fit: cover; border-radius: 16px; margin-bottom: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 1px solid rgba(201,168,76,0.2); }
.modal-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}
.size-options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
/* Checkout Form */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid rgba(201,168,76,0.3);
    border-radius: var(--radius-md);
    background: var(--white);
    font-size: 1rem;
    font-family: 'Tajawal', sans-serif;
    color: var(--dark);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-light); }
.field-error {
    display: block;
    color: #b3261e;
    font-size: 0.78rem;
    margin-top: 6px;
    font-family: 'Tajawal', sans-serif;
}
.form-group input.input-invalid {
    border-color: #b3261e !important;
    box-shadow: 0 0 0 2px rgba(179,38,30,0.12);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-group textarea { resize: vertical; min-height: 85px; }

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    border: none;
    border-radius: var(--radius-pill);
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn:active { transform: scale(0.96); }
.btn.primary { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--dark); box-shadow: 0 6px 20px rgba(201,168,76,0.4); }
.btn.primary:hover { box-shadow: 0 8px 28px rgba(201,168,76,0.55); }
.btn.secondary { background: var(--cream); color: var(--dark); border: 1px solid rgba(44,33,16,0.15); }
.btn.danger { background: #c0392b; color: white; }
.btn.whatsapp { background: var(--green-wa); color: white; font-size: 1.1rem; box-shadow: 0 6px 20px rgba(37,211,102,0.3); }
.btn.whatsapp:hover { box-shadow: 0 8px 28px rgba(37,211,102,0.5); }

/* =========================================
   ADMIN VIEW
   ========================================= */
#admin-view { padding: 30px 20px 100px; }
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1.5px solid rgba(201,168,76,0.25);
}
.admin-header-title { display: flex; flex-direction: column; gap: 4px; }
.admin-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    margin: 0;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.admin-clock { font-size: 0.82rem; color: var(--text-muted); letter-spacing: 0.3px; font-weight: 400; }
.admin-actions { display: flex; gap: 10px; }

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab-btn {
    flex-shrink: 0;
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    border: 1.5px solid rgba(201,168,76,0.4);
    background: transparent;
    color: var(--text-muted);
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.admin-tab-btn.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}
.admin-stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 14px 10px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border-top: 3px solid var(--gold);
    transition: var(--transition);
}
.admin-stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.admin-stat-value { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--dark); display: block; }
.admin-stat-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; display: block; }

/* Search bar above orders/predictions lists */
.admin-search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1.5px solid rgba(201,168,76,0.3);
    border-radius: var(--radius-pill);
    padding: 10px 16px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-card);
}
.admin-search-icon { width: 18px; height: 18px; color: var(--gold-dark); flex-shrink: 0; }
.admin-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.92rem;
    color: var(--text-main);
}
.admin-search-input::placeholder { color: var(--text-light); }

.orders-list { display: flex; flex-direction: column; gap: 16px; }
.order-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-card);
    border-right: 4px solid var(--gold);
    animation: fadeUp 0.3s ease;
    transition: var(--transition);
}
.order-card:hover { box-shadow: var(--shadow-gold); }
.order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(44,33,16,0.1);
}
.order-number {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gold-dark);
    background: rgba(201,168,76,0.12);
    border-radius: var(--radius-pill);
    padding: 2px 10px;
    flex-shrink: 0;
}
.order-customer-name { font-weight: 700; font-size: 1.1rem; color: var(--dark); flex: 1; }
.order-date { color: var(--text-muted); font-size: 0.85rem; white-space: nowrap; }
.order-meta p { display: flex; align-items: center; gap: 6px; font-size: 0.92rem; margin-bottom: 6px; color: var(--text-main); }
.order-meta svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--gold-dark); }
.order-phone-link { color: var(--text-main); text-decoration: none; }
.order-phone-link:hover { color: var(--gold-dark); text-decoration: underline; }

/* Per-item delete — always re-asks for the admin password before it takes effect */
.order-actions-row { display: flex; justify-content: flex-end; margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(44,33,16,0.1); }
.order-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(196,60,50,0.08);
    color: #B23B2E;
    border: 1.5px solid rgba(196,60,50,0.3);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.order-delete-btn svg { width: 14px; height: 14px; }
.order-delete-btn:hover { background: #B23B2E; color: var(--white); border-color: #B23B2E; }
/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background:
        linear-gradient(180deg, rgba(26,18,9,0.55) 0%, rgba(26,18,9,0.9) 55%, var(--dark) 100%),
        url("footer-bg.jpg");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    color: rgba(245,239,224,0.5);
    text-align: center;
    padding: 68px 24px 28px;
    position: relative;
    border-top: none;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900' preserveAspectRatio='none'%3E%3Cpath d='M0,70 C240,10 480,110 720,70 C960,30 1200,120 1440,60 L1440,900 L0,900 Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900' preserveAspectRatio='none'%3E%3Cpath d='M0,70 C240,10 480,110 720,70 C960,30 1200,120 1440,60 L1440,900 L0,900 Z'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: top;
    mask-position: top;
}
.site-footer::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(180deg, rgba(0,0,0,0.35), transparent);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,7 C240,1 480,11 720,7 C960,3 1200,12 1440,6 L1440,90 L0,90 Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,7 C240,1 480,11 720,7 C960,3 1200,12 1440,6 L1440,90 L0,90 Z'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    pointer-events: none;
}
.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    letter-spacing: 5px;
    margin-bottom: 16px;
    background: linear-gradient(-45deg, var(--gold-dark), var(--gold-light), var(--gold), #fff6d6, var(--gold-dark));
    background-size: 400% 400%;
    animation: gradientBG 6s ease infinite;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.65));
}
@keyframes gradientBG {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}
.footer-divider::before,
.footer-divider::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4));
}
.footer-divider::after { transform: scaleX(-1); }
.footer-gem { color: var(--gold); font-size: 0.7rem; }

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.footer-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(245,239,224,0.75);
    line-height: 1.5;
    direction: rtl;
    text-align: right;
    max-width: 320px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
.footer-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--gold);
    opacity: 0.8;
}
#admin-trigger {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -webkit-user-select: none;
    user-select: none;
}
.footer-location-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    order: -1;
    border-radius: 50%;
    border: 1.5px solid rgba(201,168,76,0.5);
    color: var(--gold);
    background: rgba(201,168,76,0.08);
    transition: var(--transition);
}
.footer-location-btn svg { width: 15px; height: 15px; }
.footer-location-btn:hover,
.footer-location-btn:active {
    background: var(--gold);
    color: var(--dark);
    transform: scale(1.08);
}
.footer-phone {
    color: var(--gold-light);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.2s;
}
.footer-phone:hover { color: var(--gold); }

.footer-copy { font-size: 0.8rem; margin-bottom: 12px; opacity: 0.4; }

/* Footer Social Icons */
.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 4px 0 22px;
}
.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.35);
    color: var(--gold);
    opacity: 0.75;
    transition: all 0.3s ease;
}
.social-icon-link svg { width: 17px; height: 17px; }
.social-icon-link:hover {
    opacity: 1;
    color: #000;
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(212,175,55,0.35);
}

/* Developer Signature Credit */
.footer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 6px;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}
.credit-line {
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.5));
}
.footer-credit .credit-line:last-child {
    background: linear-gradient(90deg, rgba(201,168,76,0.5), transparent);
}
.credit-text {
    color: rgba(245,239,224,0.45);
    font-family: 'Tajawal', sans-serif;
    font-weight: 300;
    white-space: nowrap;
}
.credit-heart {
    display: inline-block;
    color: var(--gold);
    font-size: 0.65rem;
    animation: creditPulse 2.4s ease-in-out infinite;
}
@keyframes creditPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50%      { transform: scale(1.35); opacity: 1; }
}
.credit-name {
    font-weight: 700;
    background: linear-gradient(120deg, var(--hero-brass-light, #d9b26a), #f3e5ab, var(--hero-brass-light, #d9b26a));
    background-size: 250% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: textShine 6s ease-in-out infinite;
    letter-spacing: 0.5px;
}
.credit-phone {
    display: block;
    text-align: center;
    font-size: 0.62rem;
    font-weight: 200;
    letter-spacing: 1.5px;
    color: rgba(245,239,224,0.3);
    margin: 0 0 10px;
    direction: ltr;
    font-family: 'Tajawal', sans-serif;
    text-decoration: none;
    transition: color 0.3s ease;
}
.credit-phone:hover { color: var(--gold); }

/* Admin Trigger Gear Button */
#admin-trigger {
    opacity: 0.25;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 10px 14px;
    display: inline-block;
    user-select: none;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.2);
    transition: opacity 0.3s, transform 0.3s;
    margin-top: 8px;
    color: var(--gold);
}
#admin-trigger:hover {
    opacity: 0.9;
    transform: rotate(60deg);
}

/* Media Protection — disable selection & callout on long press */
img, video {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}
img {
    pointer-events: none; /* Allow clicks to pass through to parent elements */
}

/* =========================================
   TOAST
   ========================================= */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(165deg, var(--dark), var(--dark-mid));
    color: var(--gold-light);
    padding: 15px 28px;
    border-radius: var(--radius-pill);
    font-family: 'Tajawal', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-align: center;
    max-width: 88vw;
    line-height: 1.6;
    z-index: 9999;
    border: 1px solid rgba(228,198,135,0.45);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,168,76,0.08);
    animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.toast-out {
    animation: toastOut 0.35s ease forwards;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(18px) scale(0.96); } to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } to { opacity: 0; transform: translateX(-50%) translateY(12px) scale(0.96); } }

/* =========================================
   DESKTOP MAX WIDTH
   ========================================= */
#app-container {
    max-width: 640px;
    margin: 0 auto;
    min-height: 100svh;
    box-shadow: 0 0 60px rgba(0,0,0,0.15);
}

@media (min-width: 640px) {
    .hero-title { font-size: 3.5rem; }
}

/* =========================================
   CATEGORIES LANDING VIEW
   ========================================= */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
}

/* Drinks section: flex column — top row + smoothie below */
#drinks-categories-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
    align-items: stretch;
}

.milkshake-big {
    flex: 1.5;
    min-height: 160px;
}

.mini-cards-stack {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Drinks top row: MILKSHAKE + mini stack side by side */
.drinks-top-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: stretch;
}

/* SMOOTHIE full-width card */
.category-card.mini-card.full-width-card {
    width: 100%;
    min-height: 70px;
    height: auto;
    flex-shrink: 0;
    font-size: 1.1rem;
    letter-spacing: 3px;
}

.category-card {
    height: 180px;
    border: 1.5px solid rgba(201,168,76,0.22);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201,168,76,0.65);
    box-shadow: 0 12px 40px rgba(201,168,76,0.2);
}

.category-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover .category-card-img {
    transform: scale(1.08);
}

.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
    transition: background 0.3s ease;
}

.category-card:hover .category-card-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 100%);
}

.category-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    padding-bottom: 18px;
    z-index: 3;
}

.category-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    transition: transform 0.3s ease;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100%;
}

.category-card:hover .category-card-title {
    transform: translateY(-2px);
}

.category-card-btn {
    background: rgba(255, 255, 255, 0.12); /* Glassmorphism semi-transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    padding: 5px 16px;
    border-radius: 30px;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card-btn:hover {
    transform: scale(1.05) translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =========================================
   PRODUCTS GRID BACK HEADER
   ========================================= */
.menu-back-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1.5px solid rgba(201,168,76,0.15);
    padding-bottom: 12px;
    margin-bottom: 16px;
    padding-left: 20px;
    padding-right: 20px;
}

.menu-back-btn {
    background: transparent;
    border: none;
    color: var(--gold);
    font-family: 'Tajawal', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.menu-back-btn:hover {
    color: var(--gold-light);
    transform: translateX(4px);
}

.menu-category-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--gold-light);
    letter-spacing: 1px;
}

/* Mini Category Card (FRAPPE, COCKTAILS) - Animated Color Wave */
@keyframes miniCardWave {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes borderGlow {
    0%   { border-color: rgba(201,168,76,0.4); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
    25%  { border-color: rgba(120,200,255,0.6); box-shadow: 0 4px 20px rgba(120,200,255,0.25); }
    50%  { border-color: rgba(255,100,180,0.6); box-shadow: 0 4px 20px rgba(255,100,180,0.25); }
    75%  { border-color: rgba(100,255,180,0.6); box-shadow: 0 4px 20px rgba(100,255,180,0.25); }
    100% { border-color: rgba(201,168,76,0.4); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
}

.category-card.mini-card {
    height: 100%;
    min-height: 70px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(270deg,
        rgba(26,18,9,0.95),
        rgba(60,20,60,0.85),
        rgba(10,30,60,0.85),
        rgba(20,50,30,0.85),
        rgba(60,30,10,0.9),
        rgba(26,18,9,0.95)
    );
    background-size: 400% 400%;
    animation: miniCardWave 5s ease infinite, borderGlow 5s ease infinite;
    border: 1px solid rgba(201,168,76,0.4);
}

.category-card.mini-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(270deg,
        rgba(201,168,76,0.08),
        rgba(120,200,255,0.08),
        rgba(255,100,180,0.08),
        rgba(100,255,180,0.08)
    );
    background-size: 400% 400%;
    animation: miniCardWave 4s ease infinite reverse;
    pointer-events: none;
}

.category-card.mini-card:hover {
    transform: translateY(-2px) scale(1.02);
    animation: miniCardWave 2s ease infinite, borderGlow 2s ease infinite;
}


.category-card-content.mini-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.mini-content .category-card-title {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: 2px;
}

/* Chic Horizontal Pills - Minimalist */
.chic-sizes-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
}
.chic-pill-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    background: #000;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
    text-shadow: none;
    white-space: nowrap;
}
.chic-pill-btn:hover {
    border-color: rgba(201,168,76,0.6);
    background: #111;
    transform: translateY(-2px);
}
.chic-pill-btn.selected {
    background: #000;
    color: #fff;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(201,168,76,0.4), inset 0 0 5px rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Chic Quantity Selector */
.chic-qty-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    margin: 20px 0 15px;
    background: rgba(245,245,245,0.8);
    border: 2px solid rgba(201,168,76,0.3);
    border-radius: 15px;
}
.chic-qty-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    font-family: 'Tajawal', sans-serif;
}
.chic-qty-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 5px 15px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(201,168,76,0.3);
}
.chic-qty-btn {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: var(--gold);
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    transition: all 0.3s;
}
.chic-qty-btn:hover {
    transform: scale(1.2);
    color: #b8903c;
}
.chic-qty-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    min-width: 30px;
    text-align: center;
    font-family: 'Tajawal', sans-serif;
}
.chic-add-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--gold) 0%, #b8903c 100%);
    border: none;
    color: var(--dark);
    box-shadow: 0 6px 20px rgba(201,168,76,0.3);
    border-radius: 12px;
}
.chic-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201,168,76,0.4);
}

/* Chic Mini Cart inside Modal */
.chic-mini-cart {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(201,168,76,0.2);
}
.chic-mini-cart-title {
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}
.chic-mini-cart-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chic-mini-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(20,20,20,0.6);
    border: 1px solid rgba(201,168,76,0.3);
    padding: 12px 15px;
    border-radius: 12px;
}
.mini-item-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mini-item-title {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}
.mini-item-qty {
    color: var(--gold);
    font-weight: bold;
    font-size: 0.9rem;
}
.chic-remove-btn {
    background: transparent;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.chic-remove-btn:hover {
    background: rgba(255,77,77,0.2);
    transform: scale(1.1);
}

/* =========================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   ========================================= */

/* GPU acceleration for heavy elements */
.hero-header,
.category-card,
.product-card,
.modal-sheet,
.cart-modal {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Smooth native scrolling everywhere */
* {
    -webkit-overflow-scrolling: touch;
}

/* Contain layout recalculations for card grids */
.category-card,
.product-card {
    contain: layout style;
}

/* Faster tap response — remove 300ms delay */
a, button, [onclick] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
/* Gentle gold press-feedback instead of the browser's default flash */
button:active, [onclick]:active, a:active {
    filter: brightness(0.94);
}

/* Disable particle animations on mobile to save CPU */
@media (max-width: 768px) {
    /* Simplify hero gradient animation on mobile */
    .hero-header {
        background-attachment: scroll !important;
    }

    /* Disable heavy FRESKA gradient animation on low-power mode */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    /* Reduce card shadows on mobile for faster compositing */
    .category-card {
        box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    }
    .product-card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
    }

    /* Faster modal transitions */
    .modal-sheet {
        transition: transform 0.2s ease !important;
    }

    /* Stop carousel animation on mobile to prevent jank */
    #promo-carousel {
        scroll-behavior: auto;
    }
}

/* Image rendering optimization */
img {
    image-rendering: auto;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* =========================================
   HOW-TO BANNER (explains the WhatsApp ordering flow)
   ========================================= */
.howto-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, rgba(201,168,76,0.14), rgba(201,168,76,0.05));
    border: 1px solid rgba(201,168,76,0.35);
    border-radius: var(--radius-md);
    padding: 14px 14px 14px 40px;
    margin: 0 16px 16px 16px;
    position: relative;
    animation: howtoIn 0.4s ease;
}
.howto-banner.hidden { display: none; }
.howto-icon { font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
.howto-text {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.84rem;
    line-height: 1.7;
    color: var(--dark);
    margin: 0;
}
.howto-close-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.howto-close-btn:hover { background: rgba(0,0,0,0.15); color: var(--dark); }
@keyframes howtoIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   FLOATING CART BAR — always visible reminder of how to finish the order
   ========================================= */
.floating-cart-bar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 460px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    border: none;
    border-radius: var(--radius-pill);
    padding: 14px 18px;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.15);
    z-index: 500;
    animation: floatingCartIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.floating-cart-bar.hidden { display: none; }
.floating-cart-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}
.floating-cart-icon { font-size: 1.15rem; }
.floating-cart-right {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}
#floating-cart-total-text {
    background: rgba(255,255,255,0.35);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
}
.floating-cart-arrow { letter-spacing: 0.2px; }
@keyframes floatingCartIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.94); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@media (max-width: 380px) {
    .floating-cart-arrow { display: none; }
    .floating-cart-right::after { content: '←'; font-size: 1rem; }
}

/* =========================================
   CHECKOUT — WhatsApp hint under submit button
   ========================================= */
.checkout-whatsapp-hint {
    text-align: center;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 10px 0 0 0;
    line-height: 1.6;
}

.offers-section { padding: 34px 0 6px; }
.offers-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 4px 20px 10px;
    scrollbar-width: none;
}
.offers-row::-webkit-scrollbar { display: none; }
.offer-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 200px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(201,168,76,0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.offer-card-photo { position: relative; width: 100%; height: 130px; }
.offer-card-photo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.offer-card-badge {
    position: absolute; top: 8px; right: 8px;
    background: rgba(26,18,9,0.72);
    color: #FFB35C;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    letter-spacing: 0.2px;
}
.offer-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.offer-card-title { font-size: 0.95rem; font-weight: 700; color: var(--text-main); }
.offer-card-desc { font-size: 0.75rem; color: var(--text-muted); }
.offer-card-footer { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; }
.offer-card-price { font-size: 1.15rem; font-weight: 800; color: var(--gold-dark); }
.offer-card-price span { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); margin-right: 2px; }
.offer-card-btn {
    border: none;
    border-radius: var(--radius-pill);
    padding: 7px 16px;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    background: var(--green-wa);
    cursor: pointer;
}
