/* ==========================================
   1. تحسين الأداء واستيراد الخطوط
   ========================================== */
/* استخدام link أفضل من @import للأداء، لكن إذا اضطررت، ضعه في الأعلى */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

/* ==========================================
   2. إلغاء الفراغات والتلاصق الشامل
   ========================================== */
.container, .container-fluid, #main-content .s-container, #main-content .s-blocks-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    margin: 0 !important;
}

section, .s-block, .s-block--products, .s-block--banner, .s-block--slider, .s-block--testimonials {
    margin: 0 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.s-block__title, .section-title, .home-block-title {
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

/* إخفاء الفراغات الوهمية في سلة */
.s-block--spacer { display: none !important; height: 0 !important; margin: 0 !important; padding: 0 !important; }

/* ==========================================
   3. كروت المنتجات (محسّنة للأداء)
   ========================================== */
.swiper-slide, .s-products-slider-card {
    padding: 0 2px !important;
    margin: 0 !important;
}

.s-product-card-entry {
    border: 1px solid #D4C5B5 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background-color: #ffffff !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    /* إزالة translateZ و will-change لتخفيف العبء على الجوال */
    transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.s-product-card-entry:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08) !important;
    border-color: #C4B5A5 !important;
}

.s-product-card-image {
    width: 100% !important;
    height: 380px !important;
    min-height: 380px !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.s-product-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
    transition: transform 0.6s ease !important; /* تكبير ناعم وخفيف */
}

.s-product-card-entry:hover .s-product-card-image img {
    transform: scale(1.05) !important;
}

.s-product-card-content { padding: 8px !important; flex: 1 !important; display: flex !important; flex-direction: column !important; }
.s-product-card-content-title a { color: #654321 !important; font-weight: 700 !important; font-size: 14px !important; margin-bottom: 4px !important; display: block !important; }
.s-product-card-price { color: #000000 !important; font-weight: 700 !important; font-size: 15px !important; margin-bottom: 4px !important; }
.s-product-card-content-footer salla-button button {
    border: 1px solid #D4C5B5 !important; color: #654321 !important; background: transparent !important;
    border-radius: 6px !important; font-weight: bold !important; font-size: 13px !important; width: 100% !important;
    transition: all 0.3s ease !important;
}
.s-product-card-content-footer salla-button button:hover { background-color: #D4C5B5 !important; color: #ffffff !important; }

/* ==========================================
   4. قسم الفيديوهات (متلاصق وسلايدر جوال)
   ========================================== */
.products-videos-section { padding: 10px 0 !important; margin: 0 !important; background: transparent !important; }
.products-videos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px !important; margin: 0 !important; }
.product-video-card { border-radius: 6px !important; overflow: hidden !important; background: #f5f5f5 !important; margin: 0 !important; }
.product-video-card video { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; }

@media (max-width: 768px) {
    .s-product-card-image { height: 260px !important; min-height: 260px !important; }
    .products-videos-grid { display: flex !important; overflow-x: auto !important; scroll-snap-type: x mandatory !important; gap: 6px !important; padding: 0 6px !important; scrollbar-width: none !important; }
    .products-videos-grid::-webkit-scrollbar { display: none !important; }
    .product-video-card { flex: 0 0 85% !important; min-width: 85% !important; scroll-snap-align: start !important; aspect-ratio: 3/4 !important; }
}

/* ==========================================
   5. الفوتر الفاخر (بيج وبني)
   ========================================== */
.store-footer {
    background: linear-gradient(135deg, #3d2817 0%, #5c3d2e 100%) !important;
    padding: 40px 0 20px !important; margin-top: 20px !important;
}
.store-footer__inner { background: #f5e6d3 !important; border-radius: 8px 8px 0 0 !important; padding: 30px 20px !important; }
.store-footer h3, .store-footer p, .store-footer a, .store-footer span, .store-footer div { color: #000000 !important; }
.store-footer h3 { font-size: 18px !important; font-weight: 700 !important; margin-bottom: 12px !important; position: relative !important; padding-bottom: 6px !important; }
.store-footer h3::after { content: ''; position: absolute; bottom: 0; right: 0; width: 40px; height: 2px; background: #c9a87c !important; }
.store-footer > div:last-child { background: #3d2817 !important; border-top: 2px solid #c9a87c !important; margin-top: 25px !important; padding-top: 15px !important; border-radius: 0 0 8px 8px !important; }
.store-footer > div:last-child * { color: #f5e6d3 !important; }

@media (max-width: 768px) {
    .store-footer__inner { padding: 20px 15px !important; }
    .store-footer h3, .store-footer .max-w-sm, .s-contacts-list { text-align: center !important; }
    .store-footer h3::after { right: 50% !important; transform: translateX(50%) !important; }
}