/* =========================================
   تدارك — تحسينات تنسيق الصفحة الرئيسية
   كل الألوان من متغيرات الثيم، بدون ألوان ثابتة
   ========================================= */

/* ---------- ١. المسافات بين الأقسام ---------- */
section.aigc-cats {
  margin-top: 48px;
}

section.tp-product-card,
section.aigc-about,
section.aigc-brands,
section.tp-faqs {
  margin-top: 24px;
}

/* ---------- ٢. توحيد عناوين الأقسام ---------- */
.aigc-cats__title,
.tp-product-card .tp-title-section h3,
.aigc-about__heading,
.aigc-brands__title,
.tp-faqs .tp-title-section h3 {
  font-size: 30px !important;
  font-weight: 700 !important;
  line-height: 1.4;
  color: var(--footer-primary-color) !important;
}

/* إزالة الزخرفة اللي تحت عنوان الأسئلة الشائعة فقط */
.tp-faqs .enhanced-title-border {
  display: none !important;
}

/* ---------- ٣. كروت المنتجات ---------- */

/* السعر كحلي بدل الأحمر */
.tp-price-product .price-new {
  color: var(--footer-primary-color) !important;
  font-weight: 700;
}

.tp-price-product .price-new svg path {
  fill: currentColor;
}

/* إذا المنتج عليه خصم يرجع السعر أحمر */
.tp-price-product:has(.price-old) .price-new {
  color: var(--danger-color) !important;
}

/* عنوان المنتج: سطرين بمسافة أريح */
.product-card-title {
  line-height: 1.6 !important;
  height: 3.2em !important;
  color: var(--footer-primary-color);
}

/* هوفر ناعم على الكرت والزر */
.product-box {
  transition: box-shadow .25s ease;
}

.product-box:hover {
  box-shadow: 0 10px 28px rgba(11, 47, 69, .10);
}

.product-card-add-to-cart {
  transition: background-color .2s ease, box-shadow .2s ease;
}

.product-card-add-to-cart:hover {
  background-color: var(--primary-color-dark) !important;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--primary-color) 25%, transparent);
}

/* ---------- ٤. عداد السلة ---------- */
.cart-badge {
  top: -7px !important;
  left: -9px !important;
  right: auto !important;
  width: auto !important;
  min-width: 18px;
  height: 18px !important;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px !important;
  font-weight: 700;
  background: var(--primary-color) !important;
  color: #fff !important;
  border: 2px solid #fff;
  border-radius: 999px;
}

/* ---------- ٥. العلامات التجارية ---------- */

/* مساحة تحت الكروت عشان الظل ما ينقص */
.aigc-brands__inner {
  padding-bottom: 28px;
}

/* إخفاء نص "العلامة الرابعة" */
.aigc-brands__name {
  display: none !important;
}

/* ---------- ٦. قسم من نحن: توحيد الأزرق مع الهوية ---------- */
.aigc-vcard--1 {
  background: color-mix(in srgb, var(--primary-color) 12%, #fff) !important;
}

.aigc-vcard--2 {
  background: var(--primary-color) !important;
}

/* ---------- ٧. الأسئلة الشائعة ---------- */
.tp-faqs .accordion-button {
  font-weight: 600;
  color: var(--footer-primary-color);
}

.tp-faqs .accordion-button[aria-expanded="true"] {
  color: var(--primary-color);
}

/* ---------- ٨. الجوال ---------- */
@media (max-width: 768px) {
  section.aigc-cats {
    margin-top: 28px;
  }

  .aigc-cats__title,
  .tp-product-card .tp-title-section h3,
  .aigc-about__heading,
  .aigc-brands__title,
  .tp-faqs .tp-title-section h3 {
    font-size: 22px !important;
  }

  .product-card-title {
    font-size: 13px !important;
  }
}

/* ===== العلامات التجارية ===== */
.aigc-brands{padding:48px 0 40px!important}

.aigc-brands .container{
  max-width:1476px!important;width:100%!important;
  margin-inline:auto!important;padding-inline:16px!important;box-sizing:border-box
}

.aigc-brands__title{
  font-size:28px!important;font-weight:700;
  margin:0 0 32px!important;position:relative;padding-bottom:14px
}

.aigc-brands__grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px!important
}

.aigc-brands__card{
  height:auto!important;min-height:110px;padding:20px 28px!important;
  border:1px solid #e6eef4!important;border-radius:16px!important;
  box-shadow:0 1px 3px rgba(16,40,60,.04)!important;
  display:flex!important;align-items:center;justify-content:center;
  transition:border-color .25s,box-shadow .25s,transform .25s
}
.aigc-brands__card:hover{
  border-color:#bfe3e1!important;
  box-shadow:0 10px 24px rgba(34,117,178,.10)!important;
  transform:translateY(-3px)
}

.aigc-brands__logo-wrap{
  width:100%!important;height:100%!important;
  display:flex!important;align-items:center;justify-content:center
}
.aigc-brands__logo{
  width:auto!important;height:auto!important;
  max-width:72%!important;max-height:56px!important;object-fit:contain
}

/* تابلت */
@media(max-width:991px){
  .aigc-brands__grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
}

/* جوال */
@media(max-width:480px){
  .aigc-brands{padding:32px 0 32px!important}
  .aigc-brands__title{font-size:22px!important;margin-bottom:22px!important}
  .aigc-brands__card{min-height:84px;padding:14px 16px!important;border-radius:12px!important}
  .aigc-brands__logo{max-height:40px!important;max-width:80%!important}
}
/* Homepage: black prices */
body.has-tp-home .price-new {
  color: #000 !important;
}
body.has-tp-home .price-new .riyal-svg,
body.has-tp-home .price-new .riyal-svg path {
  fill: currentColor !important;
}

/* Inner pages: blue prices (product cards + main product page price) */
body:not(.has-tp-home) .price-new,
body:not(.has-tp-home) .product-formatted-price {
  color: #2275B2 !important;
}
body:not(.has-tp-home) .price-new .riyal-svg path,
body:not(.has-tp-home) .product-formatted-price svg path {
  fill: currentColor !important;
}

.side-cart-items .price-old-new .product-price {
  color: #1177bb !important;
}

.side-cart-items .price-old-new .product-price svg,
.side-cart-items .price-old-new .product-price svg path {
  fill: currentColor !important;
}