
/* Core Styling & Elegant Typography */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: #0c0b0a; 
    color: #f8f9fa;
    overflow-x: hidden;
}

/* 🧸 Luxury Kids Pastel & Champagne Gold Navbar */
.navbar {
    background-color: rgba(12, 11, 10, 0.7) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(233, 196, 106, 0.08);
}

.navbar-brand-baby {
    font-family: 'Syncopate', sans-serif;
    letter-spacing: 6px;
    font-size: 1.4rem !important;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none;
}

.navbar-brand-baby span {
    font-weight: 300;
    color: #e9c46a; 
    font-size: 1rem;
    letter-spacing: 2px;
}

.nav-link {
    color: #a3a19f !important;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 15px;
    transition: 0.3s ease;
}

.nav-link:hover {
    color: #e9c46a !important;
}

.back-home {
    border: 1px solid rgba(233, 196, 106, 0.2);
    border-radius: 30px;
    padding: 6px 18px !important;
    background: rgba(233, 196, 106, 0.02);
}

/* Immersive Kids Video Hero Section */
.hero-section-baby {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-baby {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1); 
}

.hero-overlay-baby {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(12,11,10,0.2) 0%, rgba(12,11,10,0.95) 100%);
    z-index: 2;
}

.hero-content-baby {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 60vh;
    z-index: 3;
    text-align: center;
}

.baby-circle-badge {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(233, 196, 106, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 
                inset 0 0 30px rgba(233, 196, 106, 0.03),
                0 0 40px rgba(233, 196, 106, 0.05);
    animation: babyFloating 5s ease-in-out infinite;
}

.zara-melting-logo {
    width: 135px;
    height: auto;
    filter: drop-shadow(0px 8px 15px rgba(233, 196, 106, 0.2));
}

@keyframes babyFloating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(-0.5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.baby-action-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.baby-tag-line {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 5px;
    color: #e9c46a;
    opacity: 0.8;
}

.baby-hero-title {
    font-family: 'Syncopate', sans-serif;
    font-size: 2.8rem;
    font-weight: 300;
    letter-spacing: 6px;
    color: #fff;
    margin-bottom: 20px;
}

.btn-baby-premium {
    background: rgba(233, 196, 106, 0.05);
    color: #fff;
    border: 1px solid rgba(233, 196, 106, 0.3);
    padding: 15px 45px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
}
/* ==========================================================================
   1. هندسة السلايدر الفخم الممتد وضبط الهوامش والأبعاد
   ========================================================================== */
.sub-header-tag {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: #e9c46a;
    display: block;
    margin-bottom: 8px;
}

.section-title-baby {
    font-family: 'Syncopate', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #fff;
}

#kids-slider-section .container {
    max-width: 90% !important;
    margin: 0 auto;
}

/* 🟢 تكبير العرض الإجمالي للسلايدر ليكون "وسط ومتناسق" ومريح للعين */
.carousel {
    width: 100% !important;
    max-width: 560px !important; /* 🌟 الحجم الأوسط المثالي لمنع المط الصغير أو الضخم */
    margin: 35px auto 0 auto !important;
    position: relative !important;
}

/* غلاف الصورة الزجاجي المطور بستايل الفخم */
.slider-image-wrapper {
    cursor: pointer;
    border: 2px solid rgba(233, 196, 106, 0.15) !important;
    padding: 12px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border-radius: 28px !important; /* حواف مودرن راقية */
    overflow: hidden !important;
    position: relative !important;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.55) !important;
}

.carousel-item:hover .slider-image-wrapper {
    border-color: #e9c46a !important;
    box-shadow: 0 30px 50px rgba(233, 196, 106, 0.18) !important;
    transform: translateY(-5px) !important;
}

/* 🟢 ضبط ارتفاع الصور لتتناسب هندسياً بالكامل مع العرض الأوسط الجديد */
.luxury-slider-img {
    height: 520px !important; /* 🌟 ارتفاع مدروس يتناسب مع عرض الـ 560px لعرض التفاصيل بوضوح */
    width: 100% !important;
    object-fit: cover !important; 
    border-radius: 18px !important;
}

/* طبقة كتابة اسم المنتج الشفافة المنسقة أسفل السلايدر */
.slider-caption-layer {
    position: absolute !important;
    bottom: 25px !important;
    left: 25px !important;
    right: 25px !important;
    background: rgba(12, 11, 10, 0.75) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 14px !important;
    border-radius: 16px !important;
    text-align: center !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

.slider-caption-layer h4 {
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    color: #fff !important;
    margin-bottom: 0 !important;
    letter-spacing: 1px !important;
}


/* ==========================================================================
   2. ضبط أزرار السهمين الجانبية (Carousel Controls)
   ========================================================================== */

/* 🟢 الأسهم المودرن الزجاجية: ضبط الحجم وتثبيتها بشكل مستقر وأنيق داخل الحواف */
.carousel-control-prev, .carousel-control-next {
    width: 40px !important;
    height: 40px !important;
    background: rgba(12, 11, 10, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(233, 196, 106, 0.25) !important;
    border-radius: 50% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    opacity: 0.85 !important;
    z-index: 10 !important;
    transition: all 0.3s ease !important;
}

/* ضبط موضع الأسهم من الأطراف لتعطي مظهراً فخماً ومرتباً */
.carousel-control-prev { left: 20px !important; }
.carousel-control-next { right: 20px !important; }

/* حجم الأيقونة الداخلية للسهم */
.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 16px !important;
    height: 16px !important;
    background-size: 100% 100% !important;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: #e9c46a !important;
    border-color: #e9c46a !important;
    opacity: 1 !important;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(1) !important; 
}


/* ==========================================================================
   3. شاشة تفاصيل المنتج المستقلة (Product Details Layout)
   ========================================================================== */

.btn-back-gallery {
    background: rgba(233, 196, 106, 0.05) !important;
    color: #e9c46a !important;
    border: 1px solid rgba(233, 196, 106, 0.2) !important;
    padding: 10px 24px !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    transition: all 0.3s ease !important;
}

.btn-back-gallery:hover {
    background: #e9c46a !important;
    color: #0c0b0a !important;
}

/* كارت تفاصيل الصورة المضبط على نفس النِسب الذهبية الوسطى */
.detail-image-box {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 28px !important;
    width: 100% !important;
    max-width: 560px !important; /* نفس عرض السلايدر لتناسق الواجهة */
    margin: 0 auto !important;
}

.detail-image-box img {
    width: 100% !important;
    height: 520px !important; 
    object-fit: cover !important;
    border: 1px solid rgba(233, 196, 106, 0.15) !important;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.5) !important;
}

.detail-info-box h2 {
    font-family: 'Syncopate', sans-serif !important;
    font-size: 2rem !important; 
    font-weight: 700 !important;
    color: #fff !important;
    margin-bottom: 12px !important;
}

.detail-info-box .price-tag {
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    color: #e9c46a !important;
    margin-bottom: 20px !important;
}

.detail-info-box p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: #a1a1a6 !important;
    margin-bottom: 25px !important;
}

.rating-stars {
    color: #ffb703 !important;
    font-size: 1.05rem !important;
    margin-bottom: 30px !important;
}

/* زر الشراء المودرن الفخم */
.btn-buy-now {
    background: #fff !important;
    color: #0c0b0a !important;
    border: none !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    padding: 15px 30px !important;
    border-radius: 14px !important; 
    width: 100% !important;
    transition: all 0.3s ease !important;
}

.btn-buy-now:hover {
    background: #e9c46a !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 25px rgba(233, 196, 106, 0.2) !important;
}


/* Footer Architecture */
footer {
    background: #0c0b0a;
    padding: 40px 0;
    border-top: 1px solid rgba(233, 196, 106, 0.05);
}

.copyright-text {
    font-size: 0.8rem;
    color: #434344;
}
/* ==========================================================================
   1. تنسيقات عامة آمنة (لا تؤثر على توزيع الشاشات الكبيرة)
   ========================================================================== */
body {
    overflow-x: hidden; /* حماية كامل الصفحة من التمرير الأفقي والمشاكل البرمجية */
}

/* ضبط مرونة الفيديو الخاص بالأطفال */
.hero-video-baby {
    object-fit: cover;
}

/* السلايدر وحاويات الصور */
.luxury-slider-img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.slider-image-wrapper {
    position: relative;
    width: 100%;
}

/* ==========================================================================
   2. ميديا كويري للتابلت والموبايل (Max-width: 991.98px)
   (تتدخل فقط عندما تصغر الشاشة لتوسيط الناف بار وحمايته)
   ========================================================================== */
@media (max-width: 991.98px) {
    
    /* ضبط مظهر زر الثلاث شُرط المستدعى من Bootstrap */
    .navbar-toggler {
        border: 1px solid rgba(255, 255, 255, 0.2);
        padding: 6px 10px;
        box-shadow: none !important;
    }

    .navbar-toggler-icon {
        filter: invert(1); /* تحويل الأيقونة للون الأبيض لتتناسب مع لون موقعك */
        width: 1.2em;
        height: 1.2em;
    }

    /* القائمة المنسدلة المفتوحة خلف الشُرط الثلاثة */
    .navbar-collapse {
        background: rgba(11, 11, 11, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        margin-top: 15px;
        padding: 20px 15px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        text-align: center !important; /* توسيط المحتويات داخلياً */
    }

    /* إلغاء الـ ms-auto وتوجيه الروابط للسنتر المطلق */
    .navbar-nav {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* رص العناصر عمودياً بالمنتصف */
        justify-content: center !important;
        width: 100% !important;
        margin: 0 auto !important; /* إلغاء التموضع الجانبي الناتجة عن الـ HTML */
        padding: 0 !important;
        gap: 12px;
    }

    .nav-item {
        width: 100% !important;
        max-width: 280px; /* العرض الأقصى للزر البيضاوي المتناسق */
        display: flex;
        justify-content: center;
        margin: 0 auto !important;
    }

    .nav-link {
        display: inline-block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 12px 20px !important;
        font-size: 0.95rem;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   3. ميديا كويري لشاشات الموبايل الصغيرة (Max-width: 575.98px)
   ========================================================================== */
@media (max-width: 575.98px) {
    
    /* تصغير الدائرة الذهبية والشعار المذاب لصفحة الأطفال ليناسب الموبايل */
    .baby-circle-badge {
        width: 190px !important;
        height: 190px !important;
        padding: 20px !important;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }
    
    .zara-melting-logo {
        width: 100% !important;
        height: auto !important;
        max-width: 130px !important;
    }

    /* تنسيق أبعاد العناوين الكبيرة لكي لا تنكسر لأسطر متعددة متباعدة */
    .baby-hero-title {
        font-size: 1.8rem !important;
        letter-spacing: 2px !important;
    }

    .baby-tag-line {
        font-size: 0.75rem !important;
        letter-spacing: 3px !important;
    }

    /* تقليص الفراغات العمودية لتتناسب مع الرؤية المريحة للهواتف */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .pt-4, .pt-5 {
        padding-top: 1.5rem !important;
    }
    
    .mb-4, .mb-5 {
        margin-bottom: 1.5rem !important;
    }

    /* تصغير نصوص وعناوين السلايدر التوضيحية لكي لا تغطي على مساحة صور المنتجات */
    .slider-caption-layer h4 {
        font-size: 1.1rem !important;
        padding: 8px 15px !important;
    }

    /* ضبط أزرار التحكم الجانبية (Next & Prev) لتكون أصغر وأقل تشويشاً على الموبايل */
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }

    /* ضبط شاشة تفاصيل المنتج (تحويل النصفين لترتيب طولي وعمودي مريح للعين) */
    #product-detail-screen .row.g-5 {
        --bs-gutter-y: 2rem !important; /* تقليل المسافة بين صورة السلايدر وبيانات المنتج */
    }
    
    .detail-info-box {
        text-align: center; /* توسيط البيانات لتعطي طابع أنيق وفخم على شاشات الهواتف */
    }
    
    .detail-info-box h2 {
        font-size: 1.6rem !important;
    }
}

