/* Base Reset and Variables */
:root {
    --bg-dark: #070707;
    --bg-card: #121212;
    --bg-card-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-gold: #c69c6d;
    --accent-gold-light: #e8c396;
    --accent-cyan: #00e5ff;
    --border-color: #2a2a2a;
    --glow-cyan: rgba(0, 229, 255, 0.15);
    
    --font-main: 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar (البار الذي يصعد وينزل) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #3a2b15;
    border-radius: 6px;
    border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

body {
    font-family: var(--font-main);
    background-color: #000000; /* أسود عميق */
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

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

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

@media (max-width: 768px) {
    .hero {
        height: auto !important; /* الارتفاع يتحدد طبيعياً من الصورة */
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .hero-bg-img {
        position: relative; /* جعل الصورة تحدد ارتفاع القسم */
        width: 100%;
        height: auto;
        object-fit: contain;
        z-index: 0;
    }
    .hero-overlay-content {
        position: absolute; /* وضع النص فوق الصورة المحددة الارتفاع */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
    }
    .hero-text-container {
        transform: none; /* إزالة الـ scale والاعتماد على حجم الخط الحقيقي */
        margin-top: 3rem; /* إزاحة لتجنب الشعار */
        padding: 0 1rem;
    }
    .hero-text-container h2 {
        display: none !important; /* مدمج في صورة الموبايل */
    }
    .hero-description {
        display: none !important; /* مدمج في صورة الموبايل */
    }
    .explore-btn.animated-btn {
        display: none !important; /* مدمج في صورة الموبايل */
    }
    .hero-decoration {
        display: none !important; /* مدمج في صورة الموبايل */
    }
    .top-logo {
        display: none !important;
    }
    .hero::after {
        display: none !important;
    }
    .hero-overlay-content {
        display: none !important;
    }
    /* شريط الأقسام - موبايل فقط */
    .nav-btn {
        display: none !important; /* إخفاء أزرار الأسهم */
    }
    .categories-list-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .category-item {
        flex: 0 0 auto !important;
        padding: 0.8rem 1rem !important;
        white-space: nowrap;
    }
    .slider-arrows {
        display: none !important; /* إخفاء أسهم الأقسام غير القهوة على الموبايل */
    }
    .slider-track-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* إخفاء شريط التمرير */
    }
    .slider-track-wrapper::-webkit-scrollbar {
        display: none;
    }
    .slider-track {
        /* التأكد من عدم استخدام transform في الموبايل ليتم التمرير طبيعياً */
        transform: none !important;
    }
}

/* زر استكشف القائمة - للموبايل فقط */
.mobile-explore-btn {
    display: none; /* مخفي على اللابتوب */
}

@media (max-width: 768px) {
    .mobile-explore-btn {
        display: inline-flex !important;
        position: absolute;
        top: 78%;
        right: 8%;
        left: auto;
        transform: none;
        z-index: 100;
        background: linear-gradient(45deg, #000000, rgba(0, 229, 255, 0.4), #000000, rgba(0, 229, 255, 0.4));
        background-size: 300% auto;
        color: #ffffff;
        border: 1px solid rgba(0, 229, 255, 0.2);
        padding: 5px 12px 5px 5px;
        align-items: center;
        gap: 7px;
        border-radius: 50px;
        font-family: inherit;
        font-size: 10px;
        font-weight: 800;
        cursor: pointer;
        touch-action: manipulation;
        animation: gradientPulse 3s infinite linear;
        box-shadow: 0 4px 15px rgba(0, 229, 255, 0.2);
    }
    .mobile-explore-btn .btn-icon {
        width: 26px;
        height: 26px;
        background: rgba(0, 229, 255, 0.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-explore-btn .btn-icon i {
        color: #fff;
        font-size: 10px;
    }
}

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
}

.glow-1 {
    top: -10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: rgba(198, 156, 109, 0.15); /* Gold glow */
}

.glow-2 {
    bottom: 20%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: var(--glow-cyan);
}

/* Hero Section Overlay */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30vh;
    background: linear-gradient(to bottom, transparent, #000000);
    z-index: 1;
    pointer-events: none;
}

.top-logo {
    position: absolute;
    top: 40px;
    left: 8%; /* يوضع في الجهة اليسرى كما في الصورة المرجعية */
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2;
}

.top-logo .logo-image {
    max-width: 150px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.8));
    animation: fadeInDown 1s ease;
}

/* Hero Section Overlay */
.hero-overlay-content {
    z-index: 1;
    padding: 0 8%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
}

.hero-text-container {
    max-width: 500px;
    text-align: right;
}

/* Decoration */
.hero-text-wrapper {
    display: inline-block;
    text-align: right;
    width: fit-content;
    max-width: 100%;
}

.hero-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
}

.deco-line {
    flex-grow: 1;
    height: 1.5px;
}

.deco-line.left-line {
    background: linear-gradient(90deg, transparent, var(--accent-gold));
}

.deco-line.right-line {
    background: linear-gradient(270deg, transparent, var(--accent-gold));
}

.deco-flower-svg {
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.6));
    flex-shrink: 0;
    animation: pulse 3s infinite ease-in-out;
}

/* Typography */
.hero-text-container h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
    color: #ffffff;
}

.hero-text-container h2 .highlight {
    color: var(--accent-cyan);
}

.hero-text-container p.hero-description {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    line-height: 1.6;
}

/* Animated Gradient Button */
.explore-btn.animated-btn {
    background: linear-gradient(45deg, #000000, rgba(0, 229, 255, 0.4), #000000, rgba(0, 229, 255, 0.4));
    background-size: 300% auto;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1.5rem 0.5rem 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: none; /* إزالة التوهج */
    animation: gradientPulse 3s infinite linear;
    transition: transform 0.3s ease;
}

.explore-btn.animated-btn:hover {
    transform: scale(1.05);
}

/* --- View All (SPA Full Page Mode) --- */
body.view-all-active .hero,
body.view-all-active .categories {
    display: none !important;
}

body.view-all-active .menu-section:not(.expanded-section) {
    display: none !important;
}

body.view-all-active .expanded-section {
    padding-top: 100px;
    min-height: 100vh;
}

body.view-all-active .expanded-section .slider-track-wrapper {
    overflow: visible;
}

body.view-all-active .expanded-section .slider-track {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    transform: none !important;
    transition: none !important;
    padding-bottom: 80px;
    padding-top: 20px;
    width: 100% !important;
    justify-content: center;
}

body.view-all-active .expanded-section .slider-arrows,
body.view-all-active .expanded-section .side-arrow {
    display: none !important;
}

/* Overrides for ALL expanded sections to match the full-width coffee layout */
body.view-all-active .menu-section.expanded-section {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    padding-top: 100px !important;
    margin-bottom: 2rem !important;
    grid-column: 1 / -1 !important; /* THIS FORCES IT TO BE FULL WIDTH LIKE COFFEE */
}

body.view-all-active .expanded-section .slider-container {
    padding: 0 60px !important;
}

@media (max-width: 768px) {
    body.view-all-active .expanded-section .slider-container {
        padding: 0 15px !important;
    }
    body.view-all-active .expanded-section .product-card-overlay {
        height: 320px !important;
    }
}

body.view-all-active .expanded-section .section-header {
    justify-content: space-between !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    padding-bottom: 1rem !important;
    margin-bottom: 2rem !important;
    flex-wrap: wrap;
}

body.view-all-active .expanded-section .header-title-wrap {
    width: auto !important;
    justify-content: flex-start;
}

/* Force product cards to fill the grid cells and override any container-query widths */
body.view-all-active .expanded-section .product-card-overlay {
    width: 100% !important;
    min-width: unset !important;
    height: 380px !important;
    animation: viewAllCardFadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes viewAllCardFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.explore-btn.animated-btn .btn-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
}

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

/* Pagination */
.hero-pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 4rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.hero-pagination .page.active {
    color: var(--accent-cyan);
}

.hero-pagination .line {
    width: 40px;
    height: 2px;
    background: var(--border-color);
}

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

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(198, 156, 109, 0.2);
}

/* Menu Container */
.menu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 8% 5rem;
}

/* Categories Navbar */
.categories {
    position: sticky;
    top: 15px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 4rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.85); /* أغمق */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(180, 120, 45, 0.35);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.nav-btn {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(180, 120, 45, 0.35);
    color: #D8C4A0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    border-color: #20E0C0;
    box-shadow: 0 0 10px rgba(32, 224, 192, 0.4);
    color: #20E0C0;
}

.categories-list-wrapper {
    flex: 1;
    overflow: hidden;
}

.categories-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: 0;
}

.categories-list::-webkit-scrollbar {
    display: none;
}

.category-item {
    background: transparent;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    font-family: inherit;
    flex: 1 0 100px; /* يكبر ليملأ الفراغ ولا يصغر عن 100 بكسل */
    padding: 0.8rem 0;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
}

/* Vertical Separator */
.category-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255, 190, 90, 0.12);
}

.category-item.active::after,
.category-item:has(+ .category-item.active)::after {
    display: none;
}

.category-item i {
    font-size: 1.6rem;
    color: transparent;
    -webkit-text-stroke: 1px #21C7B0;
    text-shadow: 0 0 8px rgba(33, 199, 176, 0.3);
}

.category-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #D8C4A0;
}

.category-item:hover {
    background: rgba(255,255,255,0.03);
}

.category-item.active {
    background: #000000; /* خلفية سوداء تماماً كما طلبت */
    border: 1px solid #20E0C0;
    box-shadow: 0 0 15px rgba(32, 224, 192, 0.3);
}

.category-item.active i {
    -webkit-text-stroke: 1.2px #20E0C0;
    text-shadow: 0 0 12px rgba(32, 224, 192, 0.7);
}

.category-item.active span {
    color: #ffffff;
    font-weight: 600;
}


/* Products Section and Layout */
.menu-sections {
    display: block; /* default when a tab is active */
}

.menu-sections.grid-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Make the first section take full width in grid view */
.menu-sections.grid-view > .menu-section:first-child {
    grid-column: 1 / -1;
}

/* Other sections in grid view: enclosed in faint borders */
.menu-sections.grid-view > .menu-section:not(:first-child) {
    border: 1px solid rgba(255, 255, 255, 0.05); /* إطار خافت جداً */
    border-radius: 20px;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 0;
}

.menu-section {
    display: block;
    animation: fadeIn 0.5s ease;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Subtle Cinematic Background Pulse */
.menu-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.02) 0%, rgba(212, 175, 55, 0.015) 30%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    animation: sectionPulse 6s infinite alternate ease-in-out;
}

@keyframes sectionPulse {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.98); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
}

.menu-section.hidden-section {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #F8F4E6; /* توحيد اللون الساطع لجميع الأقسام بما فيها القهوة */
    position: relative;
    padding-bottom: 8px;
    display: inline-block;
    margin: 0;
}

/* Thin Golden Glow Separator */
.section-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(270deg, var(--accent-gold), transparent);
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

/* Subtle Shimmer Animation */
.section-header h3::before {
    content: '';
    position: absolute;
    bottom: -0.5px;
    right: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(270deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    z-index: 2;
    animation: titleShimmer 3.5s infinite linear;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes titleShimmer {
    0% { right: -30px; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { right: 100%; opacity: 0; }
}

.header-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.view-all {
    color: #118B7A; /* فيروزي غامق */
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.view-all:hover {
    opacity: 0.8;
}

.slider-arrows {
    display: flex;
    gap: 0.8rem;
}

.slider-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(180, 120, 45, 0.35);
    color: #D8C4A0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    border-color: #20E0C0;
    color: #20E0C0;
    box-shadow: 0 0 10px rgba(32, 224, 192, 0.4);
}

/* Slider Track */
.slider-container {
    width: 100%;
}

.slider-track-wrapper {
    overflow: hidden; /* Hide overflow for transform sliding */
    width: 100%;
    container-type: inline-size;
}

.slider-container.has-side-arrows {
    position: relative;
    padding: 0 60px; /* مسافة فارغة يميناً ويساراً للأزرار لكي لا تغطي الصور */
}

.side-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 45px;
    height: 45px;
    box-shadow: 0 0 15px rgba(0,0,0,0.8);
    /* الألوان موروثة من .slider-btn */
}

.side-arrow-right {
    right: 5px; /* خارج الصور في منطقة الـ padding */
}

.side-arrow-left {
    left: 5px; /* خارج الصور في منطقة الـ padding */
}

/* Mobile Fixes for Slider Arrows */
@media (max-width: 768px) {
    .slider-container.has-side-arrows {
        padding: 0; /* Remove 60px padding on mobile */
    }
    .side-arrow {
        display: none !important; /* Hide side arrows on mobile (users can swipe) */
    }
}



.slider-track {
    display: flex;
    gap: 1.5rem;
    flex-wrap: nowrap;
    width: max-content;
}

/* Product Card Overlay Style */
.product-card-overlay {
    position: relative;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

@container (min-width: 0px) {
    /* Adjust card width for FULL-width section (Coffee) so EXACTLY 4 products fit nicely without cutoff */
    .menu-sections.grid-view > .menu-section:first-child .product-card-overlay {
        width: calc(25cqw - 18px); /* حساب دقيق ليطابق 4 صور مع الفراغات (3 فجوات = 72px، مقسومة على 4 = 18px) */
    }

    /* Adjust card width for half-width sections so EXACTLY 2 products fit nicely */
    .menu-sections.grid-view > .menu-section:not(:first-child) .product-card-overlay {
        width: calc(50cqw - 12px); /* 50% minus half the gap */
        height: 340px;
    }
}

.overlay-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s ease;
}

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

.overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

.overlay-top {
    display: flex;
    justify-content: flex-end;
}

.product-tag {
    background: #C59B27; /* لون ذهبي كما طلبت */
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(197, 155, 39, 0.4);
}

.overlay-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-title {
    color: #D0D0D0; /* أبيض أغمق */
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.product-desc {
    color: #888888; /* أبيض أغمق للوصف */
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.product-price {
    color: #C59B27; /* ذهبي غامق */
    font-size: 1.2rem;
    font-weight: bold;
}

.add-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.add-btn:hover {
    background: #20E0C0;
    color: #000;
    border-color: #20E0C0;
    transform: scale(1.1);
}

/* Responsive Grid and Cards */
@media (max-width: 992px) {
    .menu-sections.grid-view {
        grid-template-columns: 1fr; /* All sections full width on smaller screens */
    }
}

@media (max-width: 576px) {
    .product-card-overlay {
        width: 240px !important;
        height: 320px !important;
    }
    .product-title {
        font-size: 1.2rem;
    }
}

/* Hero Responsive Restoration */
@media (max-width: 992px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .logo {
        justify-content: center;
    }
    
    .hero-text h2 {
        font-size: 3.5rem;
    }
    
    .hero-text p {
        margin: 0 auto 2.5rem;
    }
    
    .explore-btn {
        margin: 0 auto;
    }
    
    .hero-pagination {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 2rem 5%;
    }
    .hero-text h2 {
        font-size: 2.5rem;
    }
}

/* --- Product Modal --- */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.product-modal-content {
    background: #0a0a0a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
    transform: translateY(50px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px rgba(0,0,0,0.8);
}

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

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    background: var(--accent-gold);
    color: #000;
}

.modal-image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 25px;
    text-align: right;
    direction: rtl;
}

.modal-details h2 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
}

.modal-details p {
    color: #aaa;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.modal-price {
    font-size: 1.5rem;
    color: var(--accent-gold);
    font-weight: bold;
}

/* --- Splash Screen --- */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000; /* خلفية سوداء بالكامل كما طلب المستخدم */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease, visibility 1s ease;
}
.splash-screen::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    animation: pulseGlow 3s infinite alternate;
}
@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}
.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}
.splash-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}
.splash-logo-container {
    animation: floatLogo 4s ease-in-out infinite;
}
.splash-logo {
    max-width: 250px;
    animation: logoReveal 1.5s ease-out forwards;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
    opacity: 0; /* يبدأ مخفياً ليظهر بأنيميشن */
}
@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
@keyframes logoReveal {
    0% { opacity: 0; transform: scale(0.8); filter: blur(10px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
.splash-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 229, 255, 0.1);
    border-top: 3px solid rgba(0, 229, 255, 0.8);
    border-radius: 50%;
    animation: spinLoader 1s linear infinite, fadeLoader 1s ease 1s forwards;
    opacity: 0;
}
@keyframes spinLoader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes fadeLoader {
    to { opacity: 1; }
}

/* Music Toggle Button */
.music-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(216, 196, 160, 0.3);
    color: #d8c4a0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}
.music-toggle:hover {
    background: rgba(180, 120, 45, 0.8);
    color: #fff;
}
.music-toggle.playing {
    animation: pulseMusic 2s infinite;
    color: #20E0C0;
    border-color: #20E0C0;
}
@keyframes pulseMusic {
    0% { box-shadow: 0 0 0 0 rgba(32, 224, 192, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(32, 224, 192, 0); }
    100% { box-shadow: 0 0 0 0 rgba(32, 224, 192, 0); }
}
