/* ================================================ */
/*   الكود الذهبي المعتمد لمتجر شوب ريتا (v7)      */
/* ================================================ */

/* --- 1. تعديل زوايا بطاقة المنتج (بزيادة الدقة) --- */
div.athena-card.bg-white.overflow-hidden {
    border-radius: 20px 20px 00px 00px !important;
}

/* --- 2. تغيير لون السعر في بطاقة المنتج إلى الأحمر --- */
.athena-card h4.text-gray-900 {
  color: #FF0000 !important;
}

/* --- 3. تخصيص لون زر "إضافة للسلة" --- */
:root {
  --color-primary: #116DFF !important;
}

/* --- 4. تغيير لون نص زر "إضافة للسلة" إلى الأبيض --- */
.s-button-btn .s-button-text {
    color: #FFFFFF !important;
}

/* --- 5. تغيير لون أيقونة السلة داخل الزر إلى الأبيض --- */
.s-button-btn svg.cart-svg path[stroke="#374151"] {
    stroke: #FFFFFF !important;
}

/* --- 6. تحويل أزرار الإجراءات الصغيرة (العين) إلى شكل دائري --- */
.athena-action-btn {
    border-radius: 50% !important;
}

/* --- 7. تحويل زر "المفضلة" (القلب) إلى شكل دائري (بزيادة الدقة) --- */
button.s-product-card-wishlist-btn.s-button-icon.s-button-light-outline {
    border-radius: 50% !important;
}

/* --- 8. تحويل علامة التخفيض إلى شكل كبسولة --- */
.athena-card div.bg-red-500 {
    border-radius: 9999px !important;
}

/* --- 9. تنعيم زوايا صورة المنتج في صفحة التفاصيل --- */
.s-product-details-page .details-slider {
    border-radius: 20px !important;
    overflow: hidden !important;
}

/* --- 10. حلول صفحة تفاصيل المنتج (جديد) --- */
/* 10.1: تغيير لون السعر إلى الأحمر */
.s-product-details-page .price_is_on_sale .total-price {
    color: #FF0000 !important;
}

/* 10.2: توسيط السعر (نسخة الهاتف) */
@media (max-width: 767px) {
  .s-product-details-page div.flex.whitespace-nowrap.gap-4.items-center {
      justify-content: center !important;
  }
  .s-product-details-page div.gap-4.hidden {
      display: none !important;
  }

  /* --- 10. إخفاء زر "المفضلة" (القلب) من بطاقة المنتج (جديد) --- */
.s-product-card-wishlist-btn {
    display: none !important;
}

  /* --- 11. إخفاء زر "العرض السريع" (العين) من بطاقة المنتج (جديد) --- */
.athena-action-btn {
    display: none !important;
}

  
  /* --- 12. إخفاء شريط الصور المصغرة في صفحة المنتج (محدث) --- */
salla-slider.details-slider .s-slider-thumbs {
    display: none !important;
}

  /* --- 13. إخفاء أزرار المفضلة والمشاركة من صفحة المنتج (جديد) --- */
.side-socials {
    display: none !important;
}

  /* --- 14. محاولة توسيط السعر في صفحة المنتج (تكتيك جديد) --- */
.s-product-details-page .flex.whitespace-nowrap.gap-4.items-center {
    width: 100% !important;
    justify-content: center !important;
}

  /* --- 14. محاولة أخيرة لتوسيط السعر (تكتيك الهوامش التلقائية) --- */
.main-content .flex.whitespace-nowrap.gap-4.items-center {
    margin-left: auto !important;
    margin-right: auto !important;
    width: fit-content !important;
}

/* --- 14. تحويل الدوائر لمربعات فخمة (كود النصر) --- */
.athena-category-card .rounded-full, 
.athena-category-card [class*="rounded-full"] {
    width: 90px !important;
    height: 90px !important;
    border-radius: 15px !important;
    border: 1px solid #eee !important;
    overflow: hidden !important;
    background-color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 10px auto !important;
}
.athena-category-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 0px !important;
}
.athena-category-card h3, 
.athena-category-card .text-sm {
    display: block !important;
    text-align: center !important;
    margin-top: 5px !important;
    overflow: visible !important;
    white-space: normal !important;
    font-weight: bold !important;
}


/* --- 14. تحويل دوائر التصنيفات لمربعات فخمة متباعدة --- */
#sub-categories-carousel-slider .swiper-slide,
.sub-category-slider .swiper-slide {
    height: auto !important;
    min-height: 190px !important;
    padding-bottom: 10px !important;
    overflow: visible !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 150px !important;
}
#sub-categories-carousel-slider .rounded-full,
.sub-category-slider .rounded-full,
.sub-categories-slider-wrapper .rounded-full {
    width: 130px !important;
    height: 130px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    margin: 0 auto !important;
}
#sub-categories-carousel-slider img,
.sub-category-slider img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 20px !important;
}
#sub-categories-carousel-slider h3,
#sub-categories-carousel-slider .text-sm,
.sub-category-slider h3,
.sub-category-slider .text-sm {
    display: block !important;
    overflow: visible !important;
    white-space: nowrap !important;
    text-align: center !important;
    margin-top: 10px !important;
    width: 100% !important;
    padding: 0 !important;
    font-size: 12px !important;
}

/* --- 15. إخفاء شعار الماركة وإزالة الفراغ بالكامل --- */
.main-content .flex.items-center.justify-between.mb-8 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.main-content .flex.items-center.justify-between.mb-8 a[href*="/brands/"],
.main-content a[href*="/brands/"],
.main-content img[src*="brands/"] {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
}


/* --- كود القصف الشامل لعلامة القلب --- */

/* استهداف الزر بالسمات (Attributes) */
button[data-id*="2088305676"], 
button[class*="wishlist"], 
.btn--wishlist,
[class*="sicon-heart"] {

/* --- 15. توسيط عنوان المنتج في صفحة التفاصيل (جديد) --- */
.main-content h1.text-gray-800 {
    text-align: center !important;
}

}/* 1. توسيط العنوان نفسه */
.main-content h1.text-xl {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* إخفاء زر المفضلة (أيقونة القلب) */
.btn--wishlist {
    display: none !important;

/* --- تحويل صور الماركات لمربعات بزوايا ناعمة - الحل القطعي --- */

/* 1. استهداف حاوية الصورة وإلغاء الشكل الدائري */
.store_category_item_wrapper .img-shine-wrapper, 
.store_category_item_wrapper [class*="rounded-full"],
.store_category_item_wrapper img {
    border-radius: 12px !important; /* تحويل الدائرة لمربع بزوايا 12 بكسل */
    clip-path: none !important;      /* إلغاء أي قص هندسي */
    -webkit-clip-path: none !important;
}

/* 2. تصحيح أبعاد الصورة لتناسب المربع الجديد */
.store_category_item_wrapper .img-shine-wrapper {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
    border: 1px solid #eeeeee !important; /* إطار خفيف لتعريف المربع */
}

/* 3. معالجة محتوى الصورة بداخل المربع */
.store_category_item_wrapper img {
    object-fit: contain !important; /* لمنع تمطط الشعار */
    padding: 8px !important;      /* مسافة داخلية لجمالية الشعار */
    background: #ffffff !important;
}