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

/* CSS Reset & Variables */
:root {
    --bg-primary: #0a0907; /* عشاء دافئ فاحم */
    --bg-secondary: #12100d; /* بني فخاري داكن جداً */
    --bg-glass: rgba(18, 16, 13, 0.75);
    --bg-glass-hover: rgba(26, 23, 19, 0.88);
    
    --accent: #d4a373; /* ذهبي رملي تراثي دافئ */
    --accent-glow: rgba(212, 163, 115, 0.35);
    --accent-secondary: #bd8a5c; /* طين محروق / برونزي */
    
    --text-primary: #f4f1ea; /* بيج كريمي مريح للعين */
    --text-secondary: #c8c2b5; /* رمادي دافئ */
    --text-muted: #8e887d;
    --text-accent: #d4a373;
    
    --border-color: rgba(212, 163, 115, 0.12); /* حدود ذهبية خفيفة */
    --border-hover: rgba(212, 163, 115, 0.35);
    
    --success: #10b981;
    --danger: #ef4444;
    
    --font-ar: 'Tajawal', sans-serif;
    --font-heritage: 'Reem Kufi', 'Tajawal', sans-serif;
    --font-en: 'Outfit', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
    --shadow-accent: 0 8px 30px var(--accent-glow);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-ar);
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    /* نقشة هندسية تراثية (سدو جيزاني) خفيفة وراقية في الخلفية */
    background-image: 
        radial-gradient(circle at 50% 30%, rgba(212, 163, 115, 0.06) 0%, rgba(10, 9, 7, 0) 80%),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4a373' fill-opacity='0.02' fill-rule='evenodd'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40L20 20l20 20 20-20L40 0zm0 40l-20 20 20 20 20-20-20-20z'/%3E%3C/g%3E%3C/svg%3E");
    color: var(--text-primary);
    direction: rtl; /* تصميم عربي مميز */
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-full);
    border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism utility */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.2rem 0;
    transition: var(--transition-fast);
}

header.scrolled {
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heritage);
}

.logo span {
    color: var(--accent);
}

.logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px var(--accent-glow));
    animation: rotate-logo 6s infinite linear;
}

@keyframes rotate-logo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

nav ul a:hover, nav ul a.active {
    color: var(--accent);
}

nav ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-fast);
}

nav ul a:hover::after, nav ul a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--accent);
    color: #000;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 0.75rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 70% 30%, rgba(255, 159, 28, 0.12) 0%, rgba(15, 17, 21, 0) 60%);
    z-index: 0;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-family: var(--font-heritage);
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--accent);
    color: #000;
    border: none;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    background: #ffb042;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 159, 28, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
    transform: translateY(-3px);
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 480px; /* Enlarge desktop wrapper from 420px */
    height: 480px; /* Enlarge desktop wrapper from 420px */
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 159, 28, 0.15) 0%, rgba(0,0,0,0) 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float-img 6s ease-in-out infinite;
}



.hero-main-img {
    width: 125%; /* Grow larger than wrapper to fit the wide crop beautifully */
    height: auto;
    max-height: 125%;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.65)); /* Outline drop shadow for transparent PNG */
    cursor: pointer;
    transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.hero-main-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 25px 50px rgba(212, 163, 115, 0.35));
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float-img {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.floating-badge {
    position: absolute;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-md);
    animation: badge-float 8s ease-in-out infinite alternate;
    z-index: 3;
}

.badge-1 {
    top: 15%;
    right: -5%;
}

.badge-2 {
    bottom: 15%;
    left: -5%;
    animation-delay: -3s;
}

@keyframes badge-float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

.badge-icon {
    background: var(--accent);
    color: #000;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.badge-text span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.badge-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Category Filter Section */
.categories-section {
    padding: 5rem 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header span {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-family: var(--font-heritage);
    font-size: 2.5rem;
    font-weight: 800;
}

.categories-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.category-tab {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-tab:hover, .category-tab.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

/* Menu Grid Section */
.menu-section {
    padding-bottom: 5rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 159, 28, 0.05);
}

.product-img-wrapper {
    position: relative;
    height: 220px;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-secondary);
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(212, 163, 115, 0.12) 0%, rgba(18, 16, 13, 0.65) 100%),
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4a373' fill-opacity='0.025' fill-rule='evenodd'%3E%3Cpath d='M0 0h20v20H0V0zm20 20h20v20H20V20zm0-20L10 10l10 10 10-10L20 0zm0 20l-10 10 10 10 10-10-10-10z'/%3E%3C/g%3E%3C/svg%3E");
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-img.blend-multiply {
    /* mix-blend-mode: multiply; - Disabled to prevent white-background images from becoming too dark */
}

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

.product-img-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--accent);
    font-size: 3.5rem;
    filter: drop-shadow(0 0 8px var(--accent-glow));
    animation: placeholder-glow 3s ease-in-out infinite alternate;
}

@keyframes placeholder-glow {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.03); }
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(15, 17, 21, 0.85);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: var(--border-radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(5px);
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.product-title {
    font-family: var(--font-heritage);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-family: var(--font-en);
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.product-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-en);
}

.product-price span {
    font-size: 0.85rem;
    font-family: var(--font-ar);
    color: var(--text-secondary);
    margin-right: 0.2rem;
}

.btn-add-cart {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-add-cart:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.btn-add-cart svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 159, 28, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(255, 159, 28, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Interactive Floating Cart Tab */
.floating-cart-trigger {
    position: fixed;
    bottom: 2rem;
    left: 2rem; /* Left side for RTL scrollbar convenience */
    background: var(--accent);
    color: #000;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 159, 28, 0.4);
    z-index: 99;
    border: none;
    transition: var(--transition-smooth);
    animation: cart-pulse 2s infinite;
}

.floating-cart-trigger:hover {
    transform: scale(1.1) rotate(-8deg);
    background: #ffb042;
}

.floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #fff;
    color: #000;
    font-family: var(--font-en);
    font-size: 0.85rem;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    padding: 0 4px;
}

@keyframes cart-pulse {
    0% { box-shadow: 0 10px 30px rgba(255, 159, 28, 0.4); }
    50% { box-shadow: 0 10px 40px rgba(255, 159, 28, 0.7); }
    100% { box-shadow: 0 10px 30px rgba(255, 159, 28, 0.4); }
}

/* Cart Drawer (Slide-out Panel) */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    left: -420px; /* Start hidden on the left for RTL flow */
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-lg);
}

body.rtl .cart-drawer {
    left: auto;
    right: -420px; /* Hidden on right for RTL */
    border-right: none;
    border-left: 1px solid var(--border-color);
}

.cart-drawer-overlay.active .cart-drawer {
    left: 0;
}

body.rtl .cart-drawer-overlay.active .cart-drawer {
    right: 0;
    left: auto;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-close-cart {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-close-cart:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

.cart-items-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Empty Cart State */
.empty-cart-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    text-align: center;
    gap: 1rem;
}

.empty-cart-icon {
    font-size: 4rem;
    color: var(--text-muted);
}

.cart-item {
    display: flex;
    gap: 1rem;
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.cart-item:hover {
    border-color: rgba(255, 159, 28, 0.2);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-sm);
    object-fit: cover;
}

.cart-item-img-placeholder {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-size: 1rem;
    font-weight: 700;
}

.cart-item-price {
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-en);
    font-size: 0.95rem;
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.btn-qty {
    background: none;
    border: none;
    color: var(--text-primary);
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-qty:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

.qty-val {
    padding: 0 0.5rem;
    font-family: var(--font-en);
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.btn-delete-item {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0.2rem;
}

.btn-delete-item:hover {
    color: var(--danger);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cart-total-val {
    color: var(--accent);
    font-family: var(--font-en);
    font-size: 1.3rem;
}

.cart-footer .btn-checkout {
    width: 100%;
}

/* Checkout Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    overflow-y: auto;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 520px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heritage);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 12px rgba(255, 159, 28, 0.15);
}

textarea.form-input {
    min-height: 100px;
    resize: vertical;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
}

.modal-footer button {
    flex: 1;
}

/* Reviews Section */
.reviews-section {
    padding: 6rem 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.review-card {
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 159, 28, 0.15);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.reviewer-img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.reviewer-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
}

.reviewer-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-rating {
    display: flex;
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.review-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
}

/* Review Form Styles */
.add-review-wrapper {
    margin-top: 4rem;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.review-form-header {
    margin-bottom: 2rem;
}

.review-form-header h3 {
    font-family: var(--font-heritage);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.review-form-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.review-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .review-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.rating-input-wrapper {
    display: flex;
    gap: 0.5rem;
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.rating-input-wrapper i {
    cursor: pointer;
    transition: var(--transition-fast);
}

.rating-input-wrapper i.hover,
.rating-input-wrapper i.selected {
    color: var(--accent);
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

.review-success-message {
    text-align: center;
    padding: 2rem;
}

.review-success-message i {
    font-size: 3.5rem;
    color: var(--success);
    margin-bottom: 1rem;
    display: block;
}

.review-success-message h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.review-success-message p {
    color: var(--text-secondary);
}

/* Stylized Avatar for custom reviews */
.reviewer-avatar-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--font-heritage);
}

/* Footer Section */
footer {
    background: #090a0d;
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo-desc p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 5px;
}

.footer-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-info li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-info-icon {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-en);
}

.footer-bottom p span {
    font-family: var(--font-ar);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        width: 380px;
        height: 380px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo-icon {
        font-size: 1.6rem;
    }
    
    nav {
        display: none;
    }
    
    /* Hero Section Mobile */
    .hero {
        padding-top: 90px;
        min-height: auto;
        padding-bottom: 2.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.1rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.8rem;
    }
    
    .hero-cta {
        gap: 0.6rem;
    }
    
    .hero-cta .btn {
        padding: 0.7rem 1.1rem;
        font-size: 0.85rem;
        border-radius: var(--border-radius-sm);
    }
    
    .hero-image-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .floating-badge {
        padding: 0.6rem 0.9rem;
    }
    
    .badge-1 {
        top: 5%;
        right: -2%;
    }
    
    .badge-2 {
        bottom: 5%;
        left: -2%;
    }
    
    .badge-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .badge-text strong {
        font-size: 0.8rem;
    }
    
    /* Layout Adjustments */
    .container {
        padding: 0 1.2rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .categories-section {
        padding: 2.5rem 0 1rem;
    }
    
    /* Compact Grid Box for Categories on Mobile */
    .categories-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.45rem;
        margin-bottom: 1.5rem;
        background: rgba(18, 16, 13, 0.4);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: 0.5rem;
        border-radius: var(--border-radius-md);
        border: 1px solid var(--border-color);
        width: 100%;
        box-sizing: border-box;
    }
    
    .category-tab {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0.4rem 0.2rem;
        font-size: 0.72rem;
        font-weight: 700;
        border-radius: var(--border-radius-sm);
        text-align: center;
        gap: 0.2rem;
        flex-shrink: 0;
        min-height: 52px;
    }
    
    .category-tab i {
        font-size: 0.95rem;
        margin: 0;
    }
    
    /* Center the last (7th) item if it stands alone in the 3-column grid */
    .category-tab:last-child {
        grid-column: span 3;
        width: 100%;
        max-width: 120px;
        margin: 0 auto;
        flex-direction: row;
        min-height: auto;
        padding: 0.35rem;
        gap: 0.35rem;
        font-size: 0.72rem;
    }
    
    .category-tab:last-child i {
        font-size: 0.85rem;
    }
    
    /* 2-Column Product Grid (like Salla/Zid / ombdr.sa) */
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .product-card {
        border-radius: var(--border-radius-md);
    }
    
    .product-img-wrapper {
        height: 130px; /* Compact height */
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .product-rating {
        font-size: 0.75rem;
        gap: 0.15rem;
        margin-top: 0.2rem;
    }
    
    .product-description {
        display: none; /* Hide description for maximum clean visual */
    }
    
    .product-footer {
        margin-top: 0.5rem;
    }
    
    .product-price {
        font-size: 1.05rem;
    }
    
    .product-price span {
        font-size: 0.7rem;
    }
    
    .btn-add-cart {
        width: 34px;
        height: 34px;
        border-radius: var(--border-radius-sm);
    }
    
    .btn-add-cart i {
        font-size: 0.8rem;
    }
    
    .product-badge {
        top: 0.4rem;
        right: 0.4rem;
        padding: 0.15rem 0.4rem;
        font-size: 0.65rem;
    }
    
    .sold-out-stamp {
        font-size: 1.1rem;
        padding: 0.2rem 0.7rem;
        border-width: 2.5px;
        outline-width: 1.5px;
        outline-offset: 3px;
        top: 65px;
    }
    
    .price-sold-out-stamp {
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
    }
    
    .product-img-placeholder {
        font-size: 2rem;
    }
    
    /* Reviews & Features Section Mobile */
    .features-section {
        padding: 3.5rem 0;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .reviews-section {
        padding: 3.5rem 0;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .review-card {
        padding: 1.5rem;
    }
    
    .add-review-wrapper {
        padding: 1.5rem;
        margin-top: 2.5rem;
    }
    
    .review-form-header h3 {
        font-size: 1.4rem;
    }
    
    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    footer {
        padding: 3.5rem 0 1.5rem;
    }
    
    /* Floating elements */
    .floating-cart-trigger {
        width: 52px;
        height: 52px;
        bottom: 5.8rem;
        left: 1.2rem;
    }
    
    .floating-cart-trigger i {
        font-size: 1.15rem !important;
    }
    
    .floating-cart-count {
        min-width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }
    
    /* Modern, scrollable modals on mobile to prevent clipping by toolbars/keyboards */
    .modal-overlay {
        align-items: flex-start;
        padding: 1.5rem 0.5rem;
    }
    
    .modal-content {
        width: 92%;
        max-width: 380px;
        max-height: none;
        border-radius: var(--border-radius-md);
        margin-bottom: 2rem;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 0.9rem 1rem;
        max-height: none;
        overflow-y: visible;
    }
    
    .form-group {
        margin-bottom: 0.7rem;
    }
    
    .form-group label {
        font-size: 0.82rem;
        margin-bottom: 0.2rem;
    }
    
    .form-input {
        padding: 0.6rem 0.8rem;
        font-size: 0.88rem;
        border-radius: var(--border-radius-sm);
    }
    
    textarea.form-input {
        min-height: 65px;
    }
    
    .modal-footer {
        padding: 0.75rem 1rem;
    }
    
    /* Product details popup specific mobile scaling */
    .detail-img-wrapper {
        height: 130px !important;
        margin-bottom: 0.8rem !important;
    }
    
    #detail-product-desc {
        font-size: 0.82rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.8rem !important;
        min-height: auto !important;
    }
    
    .detail-actions-row {
        padding-top: 0.8rem !important;
        margin-top: 0.6rem !important;
    }
    
    .detail-price-col strong {
        font-size: 1.2rem !important;
    }
    
    .detail-qty-col {
        gap: 0.5rem !important;
    }
    
    .detail-qty-col span {
        font-size: 0.82rem !important;
    }
    
    .quantity-control {
        height: 32px !important;
    }
    
    .quantity-control .btn-qty {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.85rem !important;
    }
    
    .quantity-control .qty-val {
        min-width: 20px !important;
        font-size: 0.88rem !important;
    }
}

/* Animated Email Sent Toast Notification */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

@media (max-width: 768px) {
    .toast-container {
        top: 1rem;
        left: 1rem;
        right: 1rem;
    }
}

.custom-toast {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--accent);
    box-shadow: 0 10px 30px rgba(212, 163, 115, 0.25);
    padding: 1.2rem 1.8rem;
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    pointer-events: auto;
    animation: slide-in-toast 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    direction: rtl;
}

.custom-toast i {
    font-size: 1.8rem;
    color: var(--accent);
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

.toast-content {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--accent);
    margin-bottom: 0.15rem;
    font-family: var(--font-heritage);
}

.toast-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.custom-toast.hide {
    animation: slide-out-toast 0.4s ease forwards;
}

@keyframes slide-in-toast {
    0% { transform: translateY(-30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes slide-out-toast {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-30px); opacity: 0; }
}

/* Premium Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: var(--border-radius-md);
    border: 2px solid var(--accent);
    box-shadow: 0 10px 40px rgba(255, 159, 28, 0.3);
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: zoom-out;
}

.lightbox-overlay.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* Leaderboard Section */
.leaderboard-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: flex-end;
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.leaderboard-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius-lg);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.leaderboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Make the first place card taller and visually outstanding */
.leaderboard-card.rank-1 {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(255, 159, 28, 0.15);
    order: 2; /* Rank 1 in the middle */
}

.leaderboard-card.rank-2 {
    order: 1; /* Rank 2 on the right */
    opacity: 0.95;
}

.leaderboard-card.rank-3 {
    order: 3; /* Rank 3 on the left */
    opacity: 0.85;
}

.leaderboard-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    border: 2px solid transparent;
}

.rank-1 .leaderboard-badge {
    background: rgba(255, 159, 28, 0.1);
    color: var(--accent);
    border-color: var(--accent);
    filter: drop-shadow(0 0 10px var(--accent-glow));
    animation: crown-bounce 2s infinite alternate;
}

.rank-2 .leaderboard-badge {
    background: rgba(224, 224, 224, 0.1);
    color: #e0e0e0;
    border-color: #e0e0e0;
}

.rank-3 .leaderboard-badge {
    background: rgba(205, 127, 50, 0.1);
    color: #cd7f32;
    border-color: #cd7f32;
}

@keyframes crown-bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}

.leaderboard-card h3 {
    font-family: var(--font-heritage);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.leaderboard-count {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 800;
    font-family: var(--font-en);
}

.leaderboard-count span {
    font-family: var(--font-ar);
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-right: 0.2rem;
}

.leaderboard-card .rank-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.8rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.2rem 0.6rem;
    border-radius: var(--border-radius-sm);
}

@media (max-width: 768px) {
    .leaderboard-section {
        padding: 3.5rem 0;
    }
    
    .leaderboard-podium {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    /* Remove order trick on mobile to render 1st, 2nd, 3rd sequentially */
    .leaderboard-card.rank-1 {
        order: 1;
        max-height: none;
    }
    .leaderboard-card.rank-2 {
        order: 2;
    }
    .leaderboard-card.rank-3 {
        order: 3;
    }
    
    .leaderboard-card {
        padding: 1.2rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: right;
    }
    
    .leaderboard-badge {
        margin-bottom: 0;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
        order: 3;
    }
    
    .leaderboard-card h3 {
        font-size: 1.05rem;
        margin-bottom: 0.2rem;
    }
    
    .leaderboard-count {
        font-size: 0.95rem;
    }
    
    .leaderboard-card .rank-label {
        display: none;
    }
}

/* Mobile Bottom Navigation Bar Styles */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 75px !important; /* Space for bottom bar to prevent content overlap */
    }
    
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 65px;
        background: rgba(18, 16, 13, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-top: 1px solid rgba(212, 163, 115, 0.18);
        justify-content: space-around;
        align-items: center;
        z-index: 999;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
        padding: 0 0.5rem;
    }
    
    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.72rem;
        font-weight: 700;
        transition: var(--transition-fast);
        width: 25%;
        height: 100%;
        gap: 0.2rem;
    }
    
    .nav-item i {
        font-size: 1.25rem;
        transition: var(--transition-fast);
        color: var(--text-muted);
    }
    
    .nav-item span {
        font-family: var(--font-ar);
    }
    
    .nav-item.active, .nav-item.active i {
        color: var(--accent);
    }
    
    .nav-item.active i {
        transform: translateY(-2px);
    }
    
    .nav-cart-icon-wrapper {
        position: relative;
        display: inline-block;
    }
    
    .mobile-cart-badge {
        position: absolute;
        top: -6px;
        right: -10px;
        background: var(--accent);
        color: #12100d;
        font-size: 0.65rem;
        font-weight: 800;
        font-family: var(--font-en);
        min-width: 16px;
        height: 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2px;
        border: 1.5px solid rgba(18, 16, 13, 0.95);
    }
}

/* Customer Account Modal specific styling */
.loyalty-badge-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.cust-order-history-card {
    transition: var(--transition-fast);
}

.cust-order-history-card:hover {
    border-color: rgba(212, 163, 115, 0.25) !important;
    transform: translateY(-2px);
}

#cust-orders-list::-webkit-scrollbar {
    width: 4px;
}
#cust-orders-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
#cust-orders-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

/* Out of Stock Styling */
.product-card.out-of-stock {
    /* No opacity on container directly so badge stays fully opaque */
}
.product-card.out-of-stock .product-img-wrapper img,
.product-card.out-of-stock .product-img-placeholder {
    filter: grayscale(60%) brightness(0.65) contrast(0.9);
}
.product-card.out-of-stock .product-info {
    opacity: 0.6;
}
.product-card.out-of-stock .product-badge {
    opacity: 0.65;
}
.sold-out-stamp {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-18deg);
    border: 3.5px solid #ef4444;
    color: #ef4444;
    background: transparent;
    padding: 0.4rem 1.4rem;
    font-size: 1.5rem;
    font-weight: 900;
    border-radius: 8px;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.5);
    box-shadow: none;
    z-index: 5;
    white-space: nowrap;
    pointer-events: none;
    font-family: var(--font-ar);
    display: inline-block;
    text-align: center;
    outline: 2px solid #ef4444;
    outline-offset: 4px;
    animation: stamp-slam 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Detail modal stamp - bigger */
.sold-out-stamp-detail {
    font-size: 2rem !important;
    padding: 0.5rem 2rem !important;
    border-width: 4px !important;
    outline-width: 2.5px !important;
    outline-offset: 5px !important;
    top: 50% !important;
}

/* Price area stamp badge */
.price-sold-out-stamp {
    display: inline-block;
    color: #ef4444;
    border: 2px solid #ef4444;
    outline: 1.2px solid #ef4444;
    outline-offset: 2.5px;
    background: transparent;
    padding: 0.15rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: var(--font-ar);
    margin-right: 0.5rem;
    transform: rotate(-5deg);
    letter-spacing: 0.5px;
}

@keyframes stamp-slam {
    0% {
        transform: translate(-50%, -50%) rotate(-45deg) scale(2.5);
        opacity: 0;
        filter: blur(4px);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-18deg) scale(1);
        opacity: 1;
        filter: blur(0);
    }
}
.btn:disabled, .btn-primary:disabled {
    background: #444 !important;
    color: #888 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Kitchen Closed Alert Banner */
.kitchen-closed-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(135deg, #7c1a1a 0%, #1e0606 100%);
    border-bottom: 2px solid var(--accent);
    color: var(--text-primary);
    z-index: 1001; /* Above header */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
}

.kitchen-closed-banner .banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-weight: 700;
    font-size: 0.95rem;
    width: 100%;
}

.kitchen-closed-banner i {
    color: var(--accent);
    font-size: 1.2rem;
}

.kitchen-closed-banner .animated-icon {
    animation: pulse-icon 2s infinite ease-in-out;
}

@keyframes pulse-icon {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; filter: drop-shadow(0 0 5px var(--accent)); }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Body and Header shifts when kitchen is closed */
body.kitchen-closed-active {
    padding-top: 40px !important;
}

body.kitchen-closed-active #main-header {
    top: 40px !important;
}

/* Disabled button state */
.btn-checkout:disabled {
    background: #444 !important;
    color: #888 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Custom Mascot Hover Animations */
.hero-pointing-mascot {
    transform: translateX(-50%) translateY(0) !important;
}

.hero-cta div:hover .hero-pointing-mascot {
    transform: translateX(-50%) translateY(-10px) !important; /* Mascot pops up slightly on hover */
    opacity: 1 !important;
}

/* License card responsiveness */
@media (max-width: 576px) {
    .license-card {
        max-width: 100% !important;
    }
}


