/* 1. الأساسيات - Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #e9e3e7;
    overflow-x: hidden;
}

/* 2. الهيدر والقائمة - NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    background: white;
    position: relative;
    z-index: 1000;
}

.logo {
    color: #6C2791;
    font-weight: bold;
}

nav {
    display: flex;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    transition: 0.3s;
}

nav a.active {
    color: #6C2791;
    border-bottom: 2px solid #6C2791;
}

.contact-btn, .btn.outline.ss {
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid #6C2791;
    background: transparent;
    color: #6C2791;
    text-decoration: none;
    cursor: pointer;
}

/* 3. زر الموبايل - HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: #6C2791;
    border-radius: 3px;
    transition: 0.3s;
}

/* تحريك الهامبرجر عند الفتح */
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* 4. الهيرو - HERO */
.hero {
    background: #2f6fa3;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 0 80px;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-left { width: 300px; }
.hero-left h1 { font-size: 48px; line-height: 1.1; margin: 15px 0; }
.hero-left .small { font-size: 14px; opacity: 0.8; }

.shop-btn {
    padding: 10px 25px;
    background: white;
    color: #2f6fa3;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.hero-center { position: relative; display: flex; justify-content: center; align-items: center; }
.circle {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
}
.hero-center img { width: 360px; position: relative; z-index: 2; }
.hero-right { width: 250px; font-size: 15px; line-height: 1.6; }

/* 5. الأقسام والمنتجات - SECTIONS */
.ready, .products, .collections { padding: 60px 80px; }
.ready h2 { color: #2f6fa3; }
.products h2, .collections h2 { color: #6C2791; }

.category-grid, .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-grid { gap: 15px; }

.card {
    width: 100%;
    background: white;
    padding: 20px;
    border-radius: 20px;
}

.card img { width: 100%; border-radius: 15px; margin-bottom: 15px; }
.card p { color: #2f6fa3; font-weight: bold; }

/* 6. الكوليكشن - COLLECTIONS */
/* 6. الكوليكشن - COLLECTIONS */
/* 6. الكوليكشن - COLLECTIONS */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.box {
    position: relative;
    height: 400px; /* زود الرقم ده لو عايزها أتخن */
    border-radius: 25px;
    overflow: hidden;
    background-color: #333; /* لون خلفية عشان الصورة تبان فوقه */
}

.box img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* السطر ده هو اللي بيخلي الصورة تملى المربع صح */
    display: block;
}

.box:hover img { 
    transform: scale(1.05); 
}

.overlay-box {
    position: absolute;
    inset: 0;
    /* الجرادينت هيبدأ من تحت (70% اسود) لحد فوق (شفاف تماماً) */
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
}

/* 7. العرض الخاص - TOP OFFER */
.top-offer {
    width: 60%;
    margin: 30px auto;
    display: flex;
    align-items: center; 
    border-radius: 20px;
    overflow: hidden;
    background: #2f6fa3;
    color: white;
    position: relative;
}

.offer-image { width: 30%; height: 100%; }
.offer-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.offer-content { width: 70%; padding: 20px 30px; }
.offer-content h2 { font-size: 36px; margin-bottom: 10px; }
.offer-content p { font-size: 16px; opacity: 0.9; }
.hot { position: absolute; top: 20px; right: 20px; font-weight: bold; letter-spacing: 3px; }
.heart { position: absolute; bottom: 20px; right: 20px; font-size: 28px; opacity: 0.4; }

/* 8. الجني - GENIE AI */
.genie {
    margin: 60px 80px;
    background: #2f6fa3;
    padding: 50px;
    border-radius: 30px;
    color: white;
    text-align: center;
}

.genie .form { display: flex; justify-content: space-between; margin: 30px 0; gap: 40px; }
.buttons button { margin-right: 10px; padding: 8px 20px; border-radius: 8px; border: 1px solid white; background: transparent; color: white; cursor: pointer; }
.input-area input { padding: 10px; width: 250px; border-radius: 8px; border: none; }
.genie-btn { padding: 12px 40px; border: none; border-radius: 8px; background: black; color: white; cursor: pointer; }

/* 9. الفوتر - FOOTER */
.footer {
    background: #f6f6ff;
    padding: 70px 80px 0;
    border-radius: 40px;
    box-shadow: 0 -15px 30px rgba(108, 39, 145, 0.1);
}

.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-links h4 { color: #94A3B8; margin-bottom: 15px; }
.footer-links a { display: block; color: black; margin: 8px 0; text-decoration: none; }
.footer-bottom { text-align: center; padding: 20px 0; margin-top: 40px; border-top: 1px solid #ddd; color: #aaa; }

.cta {
    background: #5b2b82;
    color: white;
    text-align: center;
    padding: 60px;
    border-radius: 30px 30px 0 0;
}

.primary { padding: 10px 25px; border: none; border-radius: 20px; background: #b466ff; color: white; margin-right: 15px; }
.secondary { padding: 10px 25px; border: 1px solid white; border-radius: 20px; background: transparent; color: white; }

/* ==================== الموبايل - RESPONSIVE ==================== */
@media (max-width: 768px) {
    .navbar { padding: 15px 20px; }
    .hamburger { display: flex; }
    
    nav {
        display: flex; 
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        max-height: 0; 
        overflow: hidden;
        transition: 0.4s ease-in-out;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 0;
    }

    nav.active {
        max-height: 500px;
        padding: 20px 0;
    }

    nav a { width: 100%; text-align: center; padding: 15px; border-bottom: 1px solid #eee; }
    .btn.outline.ss { display: none; } /* إخفاء الزر الخارجي في الموبايل */

    .hero { flex-direction: column; height: auto; padding: 40px 20px; text-align: center; gap: 30px; }
    .hero-left, .hero-right { width: 100%; }
    .hero-left h1 { font-size: 32px; }
    .hero-center img { width: 250px; }
    .circle { width: 280px; height: 280px; }

    .category-grid, .product-grid, .collections-grid, .footer-container {
        grid-template-columns: 1fr;
    }

    .top-offer { flex-direction: column; width: 95%; height: auto; }
    .offer-image, .offer-content { width: 100%; }
    .offer-content h2 { font-size: 24px; }

    .genie { margin: 20px; padding: 30px 15px; }
    .genie .form { flex-direction: column; gap: 20px; }
    .input-area input { width: 100%; }

    .ready, .products, .collections, .footer { padding: 40px 20px; }
}


/* ================= MOBILE VIEW (COMPACT & SHORT) ================= */
@media (max-width: 768px) {
    
    .hamburger { 
        display: flex !important; 
        z-index: 1001; 
    }

    nav {
        display: none !important; 
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        
        position: absolute !important;
        top: 60px !important; /* رفعتها شوية لفوق */
        right: 5% !important; 
        left: auto !important;
        
        width: 150px !important; /* صغرت العرض */
        background: white !important;
        padding: 5px 0 !important; /* قللت الـ padding من 20 لـ 5 عشان الارتفاع يقل */
        border-radius: 12px !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.15) !important;
        z-index: 9999 !important;
    }

    nav.active {
        display: flex !important;
    }

    nav a {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 6px 0 !important; /* قللت الـ padding بتاع الرابط */
        margin: 0 !important; /* لغيت الـ margin */
        font-size: 14px !important; /* صغرت الخط عشان الصندوق يبقى متناسق */
        border-bottom: none !important;
    }
}







