/*cards style*/
/* =========================================================
   Soft Luxury Grey & Gold Theme (#606060) - ONE MINUTE
   ========================================================= */

/* 1. هيكل الكارت الرئيسي وتناغمه مع الخلفية الفاتحة */
custom-salla-product-card {
    position: relative !important;
    background: linear-gradient(145deg, #ffffff 0%, #f9f8f3 100%) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    z-index: 1 !important;
}

/* تأثير التمرير (Hover State) */
custom-salla-product-card:hover {
    transform: translateY(-5px) !important;
    border-color: rgba(212, 175, 55, 0.8) !important;
    box-shadow: 0 14px 30px rgba(212, 175, 55, 0.18), 0 6px 15px rgba(0, 0, 0, 0.06) !important;
}

/* =========================================================
   2. قسم صورة المنتج
   ========================================================= */

.s-product-card-image {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 10px !important;
    margin: 8px !important;
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02) !important;
}

.s-product-card-image-contain {
    border-radius: 8px !important;
    transition: transform 0.4s ease !important;
}

custom-salla-product-card:hover .s-product-card-image-contain {
    transform: scale(1.05) !important;
}

/* شارة الماركة بالرمادي الفاخر #606060 */
.s-product-card-promotion-title {
    background: #606060 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
    font-size: 0.7rem !important;
    border: 1px solid rgba(212, 175, 55, 0.5) !important;
    letter-spacing: 0.5px !important;
}

/* زر المفضلة */
.s-product-card-wishlist-btn button {
    background: #ffffff !important;
    border-radius: 50% !important;
    border: 1px solid rgba(96, 96, 96, 0.2) !important;
    color: #606060 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
}

.s-product-card-wishlist-btn button:hover {
    background: #fff0f1 !important;
    color: #e63946 !important;
    border-color: #e63946 !important;
    transform: scale(1.1) !important;
}

/* =========================================================
   3. النصوص والعناوين (Typography)
   ========================================================= */

.s-product-card-content {
    padding: 12px 16px 16px 16px !important;
    background: transparent !important;
}

/* عنوان المنتج */
.s-product-card-content-title a {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #2b2b2b !important;
    line-height: 1.4 !important;
    transition: color 0.2s ease !important;
}

.s-product-card-content-title a:hover {
    color: #b8860b !important;
}

/* الوصف الفرعي */
.s-product-card-content-subtitle {
    font-size: 0.75rem !important;
    color: #606060 !important;
    margin-top: 4px !important;
}

/* السعر الذهبي */
.s-product-card-price {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: #b8860b !important;
    margin-top: 8px !important;
}

.s-product-card-price i {
    font-size: 0.85rem !important;
    color: #b8860b !important;
}

/* =========================================================
   4. زر "أضف إلى السلة" بالرمادي #606060
   ========================================================= */

.s-product-card-content-footer {
    margin-top: 10px !important;
}

.s-product-card-content-footer button {
    border-radius: 10px !important;
    background: #606060 !important;
    color: #ffffff !important;
    border: 1px solid #606060 !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    padding: 8px 12px !important;
    transition: all 0.3s ease !important;
}

.s-product-card-content-footer button:hover {
    background: #d4af37 !important;
    color: #000000 !important;
    border-color: #d4af37 !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4) !important;
}

/* =========================================================
   5. تحسين عرض قسم السلايدر للجوال
   ========================================================= */
@media (max-width: 768px) {
    .s-block--slider-with-bg .container.-mt-62,
    .s-block--slider-with-bg .s-block--slider-with-bg__content {
        margin-top: -80px !important;
    }

  .s-product-card-wishlist-btn button {
    z-index: 999
}

      /* ضبط طريقة عرض وخلفية السلايدر لتغطي المساحة بالكامل دون ترك فراغات رمادية */
    .s-block--slider-with-bg .slider-bg {
        height: auto !important;
        min-height: 220px !important;
        background-size: cover !important;
        background-position: center top !important;
    }

    /* رفع بطاقات المنتجات للأعلى لتلتصق بالبنر وتغطي المساحة الفاضية */
    .s-block--slider-with-bg .container.-mt-62,
    .s-block--slider-with-bg .s-block--slider-with-bg__content {
        margin-top: -110px !important;
    }

/*اقسام*/
      [data-testid="store-home-square-banners"] > div {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    [data-testid="store-home-square-banners"] .banner-entry {
        min-width: 0;
        width: 100%;
        height: 150px;
        background-size: cover;
        background-position: center;
    }

  /*مزايا*/
  section[data-testid="store-home-features"] > div { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 8px !important; width: 100% !important; } section[data-testid="store-home-features"] > div > .s-block--features__item { display: flex !important; flex: 1 1 0 !important; width: 33.333% !important; min-width: 0 !important; max-width: 33.333% !important; padding: 15px 4px !important; margin: 0 !important; } section[data-testid="store-home-features"] .s-block--features__item h2 { font-size: 12px !important; white-space: nowrap !important; } section[data-testid="store-home-features"] .s-block--features__item p { font-size: 10px !important; line-height: 1.5 !important; }
}