/* =========================================
   نقلة نوعية لمتجر فلورين - (النسخة الذهبية - شكل التطبيق)
   ========================================= */

:root {
    --floren-main: #ecd9d3;
    --floren-dark: #6d564e;
    --floren-light: #fff5f2;
}

/* 1. الخلفية والهيدر */
body {
    background-color: #fdfcfc;
    background-image: 
        radial-gradient(circle at 5% 10%, rgba(236, 217, 211, 0.4) 0%, transparent 20%),
        radial-gradient(circle at 95% 50%, rgba(236, 217, 211, 0.5) 0%, transparent 25%),
        radial-gradient(circle at 10% 90%, rgba(109, 86, 78, 0.05) 0%, transparent 15%);
    background-attachment: fixed;
}

.store-header, .top-navbar, .main-nav-container {
    background-color: var(--floren-main) !important;
    border-bottom: none !important;
}

.main-nav-container a, .header-btn__icon, .s-cart-summary-total, .navbar-brand h1 {
    color: var(--floren-dark) !important;
    font-weight: bold;
}
.main-nav-container { box-shadow: 0 4px 15px rgba(0,0,0,0.05); }

/* 2. بطاقات المنتجات */
.s-product-card-entry {
    background: #fff;
    border: 3px solid var(--floren-main) !important;
    border-radius: 25px;
    padding: 10px;
    box-shadow: 8px 8px 0px rgba(236, 217, 211, 0.6) !important;
    transition: all 0.4s ease;
}
.s-product-card-entry:hover {
    transform: translate(-3px, -3px);
    box-shadow: 12px 12px 0px var(--floren-dark) !important;
    border-color: var(--floren-dark) !important;
}
.s-product-card-image { border-radius: 20px; overflow: hidden; }

/* 3. الأزرار والعناوين */
.s-add-product-button .s-button-element {
    background-color: var(--floren-dark) !important;
    color: var(--floren-main) !important;
    border-radius: 50px !important;
    font-weight: bold;
    border: none !important;
}
.s-product-card-wishlist-btn {
    background-color: #fff !important;
    color: var(--floren-dark) !important;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.s-block__title h2, .s-slider-block__title h2 {
    background: var(--floren-main);
    color: var(--floren-dark);
    padding: 10px 30px;
    border-radius: 50px;
    display: inline-block;
    box-shadow: 4px 4px 0px var(--floren-dark);
    font-size: 1.5rem !important;
}
.s-block__display-all {
    color: var(--floren-dark) !important;
    font-weight: bold;
    background: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--floren-dark);
}

/* 4. الفوتر */
.store-footer {
    background-color: var(--floren-main) !important;
    color: var(--floren-dark) !important;
    margin-top: 50px;
    border-top: 5px solid #fff;
}
.store-footer h3, .store-footer a, .store-footer p { color: var(--floren-dark) !important; }

/* 5. السلايدر (الحركة اللانهائية) */
.swiper-slide { border-radius: 0 0 40px 40px; overflow: hidden; }
.s-slider-nav-arrow {
    background: rgba(255,255,255,0.8) !important;
    color: var(--floren-dark) !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
}
.swiper-slide img, .swiper-slide .slide--bg, .s-slider-image-cover {
    transform-origin: center center;
    animation: moveInfinite 20s linear infinite alternate;
}
@keyframes moveInfinite { 0% { transform: scale(1); } 100% { transform: scale(1.15); } }

/* نصوص المنتجات */
h3.s-product-card-content-title a { font-size: 16px !important; color: var(--floren-dark) !important; }
.s-product-card-price {
    font-size: 18px !important;
    color: var(--floren-dark) !important;
    background: var(--floren-main);
    padding: 2px 10px;
    border-radius: 10px;
    display: inline-block;
}

/* =========================================
   6. شريط المميزات (أيقونات أسفل الهيدر) - التنسيق الذي أعجبك
   ========================================= */
.s-block--categories {
    position: relative;
    z-index: 20;
    margin-top: -40px !important;
    margin-bottom: 30px;
    background: transparent !important;
}
.s-block--categories .swiper-wrapper {
    justify-content: center !important;
    align-items: center !important;
}
.s-block--categories .slide--cat-entry {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background-color: #fff;
    width: 160px;
    height: 140px;
    border-radius: 20px;
    border: 3px solid var(--floren-main);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    transform: translateY(0);
}
.s-block--categories .slide--cat-entry:hover {
    transform: translateY(-10px);
    border-color: var(--floren-dark);
    box-shadow: 0 15px 25px rgba(109, 86, 78, 0.3);
}
.s-block--categories .slide--cat-entry i {
    font-size: 3.5rem !important;
    color: var(--floren-dark) !important;
    margin-bottom: 15px;
    display: block;
    animation: floatIcon 3s ease-in-out infinite;
}
.s-block--categories .slide--cat-entry h2 {
    font-size: 1rem !important;
    font-weight: bold !important;
    color: var(--floren-dark) !important;
    margin: 0 !important;
    line-height: 1.2;
}
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

/* =========================================
   7. شريط التطبيق السفلي وتعديلات الجوال
   ========================================= */
.mobile-bottom-nav { display: none; } /* مخفي للكمبيوتر */

@media (max-width: 768px) {
    /* شريط التطبيق السفلي */
    body { padding-bottom: 80px !important; }

    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background-color: #fff;
        border-top: 1px solid var(--floren-main);
        box-shadow: 0 -5px 15px rgba(0,0,0,0.05);
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        z-index: 999999;
        padding-bottom: 5px;
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none !important;
        color: var(--floren-dark) !important;
        width: 16%;
        position: relative;
    }
    .nav-item i { font-size: 22px; margin-bottom: 3px; }
    .nav-item span { font-size: 10px; font-weight: bold; }
    .nav-item.special-item i {
        background: var(--floren-main);
        color: var(--floren-dark);
        padding: 8px;
        border-radius: 50%;
        margin-top: -25px;
        border: 4px solid #fff;
        box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    }

    /* أيقونات المميزات (الهيدر) - استعادة الشكل القديم */
    .s-block--categories .swiper-wrapper {
        display: flex !important;
        justify-content: center !important;
        transform: none !important;
        width: 100% !important;
        gap: 5px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .s-block--categories .swiper-slide {
        width: auto !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
    }
    .s-block--categories .slide--cat-entry {
        width: 95px !important;
        height: 95px !important;
        padding: 2px !important;
        border-radius: 15px !important;
        border-width: 2px !important;
    }
    .s-block--categories .slide--cat-entry i {
        font-size: 1.8rem !important;
        margin-top: 5px !important;
        margin-bottom: 3px !important;
    }
    .s-block--categories .slide--cat-entry h2 {
        font-size: 0.6rem !important;
        line-height: 1.1 !important;
        margin-bottom: 5px !important;
        white-space: normal !important;
    }
    .s-block--categories {
        margin-top: -35px !important;
        z-index: 99 !important;
    }
}
/* =========================================
   شريط التصنيفات (تصميم التطبيق - سطرين وتوسط دقيق)
   ========================================= */
.category-scroll-container {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    padding: 12px 5px; /* تقليل الحواف الجانبية */
    margin-bottom: 20px;
    display: flex;
    justify-content: center !important; 
    gap: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* إخفاء شريط التمرير */
.category-scroll-container::-webkit-scrollbar { display: none; }

.cat-pill {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    
    width: 105px !important; /* عرض متناسق */
    height: 55px !important; /* ارتفاع أنيق */
    
    padding: 4px !important;
    background-color: var(--floren-light);
    color: var(--floren-dark) !important;
    border-radius: 12px;
    border: 1px solid var(--floren-main);
    text-decoration: none !important;
    transition: all 0.3s ease;
    
    /* تنسيق الخط العربي */
    font-size: 11px !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
    text-align: center;
}

/* تنسيق الخط الإنجليزي */
.cat-pill .en-text {
    font-size: 9px !important;
    font-weight: normal;
    opacity: 0.8;
    display: block;
    font-family: sans-serif;
    margin-top: 2px;
}

.cat-pill:hover {
    background-color: var(--floren-dark);
    color: #fff !important;
    transform: translateY(-2px);
}

/* =========================================
   تعديل التوسيط للجوال (السحب لليسار)
   ========================================= */
@media (max-width: 768px) {
    .category-scroll-container {
        justify-content: center !important;
        
        /* هذا السطر هو المسؤول عن