/* ====== GLOBALS ====== */
:root {
    --bg-dark: #0b1f33;
    --bg-card: #122c47;
    --gold: #c9a23d;
    --gold-light: #f5e7c8;
    --gold-hover: #e0b445;
    --text-main: #ffffff;
    --text-muted: #aab8c5;
    
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Poppins', sans-serif;
    
    --transition: 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ar);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(201, 162, 61, 0.5);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

::selection {
    background-color: var(--gold);
    color: var(--bg-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.en {
    font-family: var(--font-en);
    font-size: 0.9em;
    font-weight: 400;
    opacity: 0.9;
}

.text-gold {
    color: var(--gold);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* ====== TYPOGRAPHY & TITLES ====== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-ar);
    font-weight: 700;
}

h1 .en, h2 .en, h3 .en, h4 .en {
    font-family: var(--font-en);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title .highlight {
    color: var(--gold-light);
    font-family: var(--font-en);
    font-size: 1.2rem;
    display: block;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 5px;
}

.divider {
    height: 3px;
    width: 60px;
    background: var(--gold);
    margin-bottom: 20px;
    border-radius: 2px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--gold);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: var(--gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(201, 162, 61, 0.3);
}

/* ====== NAVBAR ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(11, 31, 51, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(201, 162, 61, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-family: var(--font-en);
    font-weight: 700;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    right: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
    left: 0;
    right: auto;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gold);
}

/* Mobile Nav Overlay Wrapper */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background-color: rgba(11, 31, 51, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease-in-out;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.6rem;
    color: var(--gold);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg) scale(1.1);
}

/* Premium modal box for links */
.mobile-links {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-dark));
    width: 85%;
    max-width: 320px;
    padding: 30px 15px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    border: 1px solid rgba(201, 162, 61, 0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-menu-overlay.active .mobile-links {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.mobile-links a {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    padding: 10px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.mobile-links a:hover,
.mobile-links a.active {
    color: var(--bg-dark);
    background-color: var(--gold);
    box-shadow: 0 10px 20px rgba(201, 162, 61, 0.3);
}

.mobile-links a:hover {
    transform: translateY(-3px);
}

/* ====== HERO SECTION ====== */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('burger4.jpg') center/cover no-repeat;
    background-attachment: scroll; /* Fixed: Removed 'fixed' as it causes severe lag on mobile */
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11,31,51,0.9) 0%, rgba(11,31,51,0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-en);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.5;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-subtitle br {
    display: block;
    margin: 5px 0;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.6s both;
}

/* ====== ABOUT SECTION ====== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-text strong {
    color: var(--gold);
    font-family: var(--font-en);
}

.about-features {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--gold-light);
    font-size: 1.1rem;
}

.feature i {
    color: var(--gold);
    font-size: 1.3rem;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    will-change: transform, box-shadow;
    transform: translateZ(0); /* Force hardware accel for mask over video */
}

.image-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    left: -20px;
    background: linear-gradient(135deg, #0e2238 0%, #061320 100%);
    color: var(--text-main);
    width: auto;
    height: auto;
    padding: 15px 25px;
    border-radius: 12px 35px 12px 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.6),
        inset 0 0 0 1px rgba(201, 162, 61, 0.3);
    border: none;
    z-index: 10;
}

.badge-icon {
    font-size: 2.2rem;
    color: var(--gold);
    display: flex;
    align-items: center;
}

.badge-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.experience-badge .number {
    font-family: var(--font-ar);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold-light);
    line-height: 1.2;
    text-shadow: none;
}

.experience-badge .text {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: right;
    line-height: 1.4;
    color: var(--text-muted);
    letter-spacing: 0;
    opacity: 1;
}

/* ====== SHOWCASE SECTION ====== */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.showcase-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border: 2px solid rgba(201, 162, 61, 0.2);
    transition: var(--transition);
}

.showcase-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    will-change: transform; /* Hardware acceleration for smooth scale */
}

.showcase-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(11,31,51,0.8), transparent);
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
}

.showcase-item:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(201, 162, 61, 0.3);
}

.showcase-item:hover img {
    transform: scale(1.1);
}

.showcase-item:hover::before {
    opacity: 1;
}

/* ====== MENU SECTION ====== */
.menu-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 60px;
}

.category-btn {
    background: rgba(11, 31, 51, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 162, 61, 0.2);
    color: var(--text-muted);
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-ar);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.category-btn i {
    font-size: 1.2rem;
    color: var(--gold);
    transition: var(--transition);
}

.category-btn:hover {
    background: rgba(201, 162, 61, 0.1);
    border-color: var(--gold);
    color: var(--text-main);
    transform: translateY(-3px);
}

.category-btn.active {
    background: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold);
    box-shadow: 0 8px 25px rgba(201, 162, 61, 0.3);
}

.category-btn.active i {
    color: var(--bg-dark);
}

.menu-category-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.menu-category-section.active {
    display: block;
}

.category-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(201, 162, 61, 0.2);
    padding-bottom: 15px;
}

.category-header h3 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sub-category-title {
    font-size: 1.4rem;
    color: var(--gold-light);
    margin-bottom: 20px;
    border-right: 3px solid var(--gold);
    padding-right: 15px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.card {
    background: linear-gradient(145deg, #0e2238 0%, #0a1726 100%);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(201, 162, 61, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    will-change: transform, box-shadow; /* Hardware acceleration */
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(201,162,61,0.1) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(201, 162, 61, 0.15);
    border-color: rgba(201, 162, 61, 0.4);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.item-title {
    font-size: 1.3rem;
    color: var(--text-main);
    line-height: 1.4;
    font-weight: 700;
}

.item-title .en {
    display: block;
    color: var(--gold-light);
    font-size: 0.9rem;
    margin-top: 4px;
    font-weight: 500;
}

.item-price {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--gold);
    white-space: nowrap;
    background: rgba(201, 162, 61, 0.1);
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid rgba(201, 162, 61, 0.2);
}

.item-price::after {
    content: ' SD';
    font-size: 0.8rem;
    opacity: 0.8;
}

.item-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    border-top: 1px dashed rgba(255,255,255,0.1);
    padding-top: 15px;
}

/* VIP / Highlight Cards */
.highlight-card {
    border: 1px solid rgba(201, 162, 61, 0.5);
    background: linear-gradient(145deg, #102740, rgba(201, 162, 61, 0.08));
    box-shadow: 0 10px 30px rgba(201, 162, 61, 0.1);
}
.premium-card {
    border: 2px solid var(--gold);
    background: linear-gradient(145deg, #102740, rgba(201, 162, 61, 0.15));
    box-shadow: 0 10px 30px rgba(201, 162, 61, 0.2);
}

.card.compact {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.card.compact .item-title {
    margin: 0;
    font-size: 1.1rem;
}

/* ====== CONTACT SECTION ====== */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    background: var(--bg-card);
    padding: 40px 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.contact-card .icon {
    width: 70px;
    height: 70px;
    background: rgba(201, 162, 61, 0.1);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.contact-card:hover .icon {
    background: var(--gold);
    color: var(--bg-dark);
}

.contact-card h3 {
    margin-bottom: 15px;
    color: var(--gold-light);
}

.contact-card p, .contact-card a {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-links-list a, .email-link {
    font-family: var(--font-en);
}

.contact-card a:hover {
    color: var(--gold);
}

/* ====== FOOTER ====== */
.footer {
    background-color: #061320;
    padding: 60px 0 20px;
    border-top: 2px solid rgba(201, 162, 61, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
}

.footer .brand h2 {
    font-family: var(--font-en);
    color: var(--gold);
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer .brand p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.2rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.social-icon:hover {
    background: var(--gold);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-bottom .en-copy {
    font-family: var(--font-en);
    font-size: 0.85rem;
    margin-top: 5px;
    opacity: 0.7;
}

/* ====== RESPONSIVE DESIGN ====== */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .experience-badge {
        bottom: 15px;
        left: 15px;
        width: auto;
        height: auto;
        padding: 12px 20px;
        border-radius: 10px 25px 10px 10px;
    }
    
    .badge-icon {
        font-size: 1.8rem;
    }
    
    .experience-badge .number {
        font-size: 1.1rem;
    }
    
    .experience-badge .text {
        font-size: 0.85rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .showcase-item img {
        height: 250px;
    }
}

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ====== EXTRAS MODAL ====== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.extras-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 450px;
    background: var(--bg-card);
    border-radius: 16px;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(201, 162, 61, 0.2);
}

.extras-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(201, 162, 61, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--gold);
    margin: 0;
    font-size: 1.3rem;
}

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: #ff4757;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-item-name {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.extras-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.extra-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 15px;
    background: rgba(11, 31, 51, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.extra-option:hover {
    background: rgba(201, 162, 61, 0.1);
    border-color: rgba(201, 162, 61, 0.3);
}

.extra-option input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(201, 162, 61, 0.5);
    border-radius: 6px;
    margin-left: 12px; /* Arabic RTL */
    position: relative;
    transition: var(--transition);
}

.extra-option input[type="checkbox"]:checked + .custom-checkbox {
    background: var(--gold);
    border-color: var(--gold);
}

.extra-option input[type="checkbox"]:checked + .custom-checkbox::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid var(--bg-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.extra-name {
    color: var(--text-main);
    font-weight: 500;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid rgba(201, 162, 61, 0.2);
}

/* ====== CART SYSTEM ====== */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 350px;
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    background: var(--bg-card);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 25px rgba(0,0,0,0.5);
}

.cart-sidebar.active {
    left: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid rgba(201, 162, 61, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    margin: 0;
}

.close-cart {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--gold);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    margin-top: 50px;
    font-size: 1.1rem;
}

.cart-item {
    background: rgba(11, 31, 51, 0.5);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-info h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin: 0;
    max-width: 70%;
}

.cart-item-info .item-price {
    font-size: 1rem;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: var(--bg-dark);
    border: 1px solid var(--gold);
    color: var(--gold);
    width: 25px;
    height: 25px;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.qty-btn:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

.item-qty {
    font-family: var(--font-en);
    font-weight: 600;
}

.remove-item {
    color: #ff4757;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.remove-item:hover {
    color: #ff6b81;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(201, 162, 61, 0.2);
    background: rgba(11, 31, 51, 0.8);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.total-price {
    font-family: var(--font-en);
    color: var(--gold);
}

.order-description-wrapper {
    margin-bottom: 15px;
}

.order-description {
    width: 100%;
    background: rgba(11, 31, 51, 0.5);
    border: 1px solid rgba(201, 162, 61, 0.3);
    color: var(--text-main);
    border-radius: 8px;
    padding: 10px;
    font-family: var(--font-ar);
    font-size: 16px; /* Prevents auto-zoom on iOS */
    resize: vertical;
    min-height: 80px;
    outline: none;
    transition: var(--transition);
}

.order-description:focus {
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(201, 162, 61, 0.2);
}

.order-description::placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: normal;
}

.checkout-btn {
    width: 100%;
    justify-content: center;
    background: #25D366; /* WhatsApp color */
    color: white;
    border: none;
    font-size: 1rem;
}

.checkout-btn:hover {
    background: #128C7E;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    transform: translateY(-3px);
}

/* Floating Cart Button */
.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--gold);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(201, 162, 61, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.floating-cart-btn:hover {
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    font-family: var(--font-en);
    font-size: 0.8rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid var(--bg-dark);
}

/* Add to Cart Button in Card */
.add-to-cart-wrapper {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    justify-content: flex-end;
}

.add-to-cart-btn {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: var(--bg-dark);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-ar);
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(201, 162, 61, 0.3);
}

.add-to-cart-btn:hover {
    background: transparent;
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 162, 61, 0.4);
}

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card .item-desc {
    flex: 1;
}

/* ====== MOBILE PERFORMANCE OVERRIDES ====== */
@media (max-width: 768px) {
    .category-btn {
        backdrop-filter: none;
        background: rgba(11, 31, 51, 0.95); /* Disable expensive blur on mobile */
    }
    .card {
        box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Simpler shadows */
    }
    .mobile-menu-overlay {
        backdrop-filter: none;
        background: rgba(11, 31, 51, 0.95);
    }
    .image-wrapper {
        box-shadow: 0 5px 15px rgba(0,0,0,0.3); /* Avoids heavy masking recalculations on video */
    }
}

