/*
 * آرابنز — ستايل موحّد للمنتجات والمتجر
 * يُحمَّل تلقائياً في كل صفحات الموقع ما عدا الرئيسية
 * لا تُعدّل هذا الملف مباشرة
 */
/* ══════════════════════════════════════════════════════
   ▌ متغيرات مشتركة
══════════════════════════════════════════════════════ */
:root {
  --arz-cover-bg: #fefaf8;
  --arz-cover-shadow:
    0 4px 16px rgba(22,51,78,0.12),
    0 1px 4px  rgba(22,51,78,0.08);
  --arz-card-radius: 20px;
  --arz-teal:   #1a8f90;
  --arz-navy:   #16334e;
  --arz-salmon: #d9604f;
}

/* ══════════════════════════════════════════════════════
   ▌ A. صفحة المنتج المنفرد  (single-sc_product)
══════════════════════════════════════════════════════ */

/* متغيرات SureCart */
body.single-sc_product {
  --sc-color-primary-50:  #e8f7f7;
  --sc-color-primary-100: #c2eaea;
  --sc-color-primary-200: #90d4d4;
  --sc-color-primary-300: #4ec9ca;
  --sc-color-primary-400: #2fb8b9;
  --sc-color-primary-500: #1a8f90;
  --sc-color-primary-600: #157a7b;
  --sc-color-primary-700: #0f6061;
  --sc-color-primary-800: #0a4a4a;
  --sc-color-primary-900: #063535;
}

/* خلفية الصفحة */
body.single-sc_product,
body.single-sc_product #page {
  background: #f3f7f7 !important;
}
body.single-sc_product .ast-container {
  background: transparent !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}
body.single-sc_product #primary,
body.single-sc_product #content,
body.single-sc_product #main {
  background: transparent !important;
  width: 100% !important;
}

/* الحاوية الرئيسية */
body.single-sc_product .wp-block-surecart-product-page,
body.single-sc_product .wp-block-surecart-product-page.is-layout-constrained {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 24px 0 48px !important;
}
body.single-sc_product .wp-block-surecart-product-page .is-layout-constrained:not(.wp-block-column) {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* صف الأعمدة */
body.single-sc_product .wp-block-surecart-product-page > * > .wp-block-columns,
body.single-sc_product .wp-block-surecart-product-page .wp-block-columns.is-layout-flex {
  gap: 40px !important;
  width: 100% !important;
  align-items: flex-start !important;
}

/* ── عمود الصورة — خلفية كريمية ناعمة ── */
body.single-sc_product .wp-block-surecart-product-page .wp-block-columns > .wp-block-column:first-child {
  background:    var(--arz-cover-bg) !important;
  border-radius: var(--arz-card-radius) !important;
  box-shadow:    0 4px 24px rgba(22,51,78,0.1) !important;
  border:        1px solid rgba(26,143,144,0.1) !important;
  padding:       32px 24px !important;
  display:       flex !important;
  align-items:   center !important;
  justify-content: center !important;
  position:      relative !important;
  overflow:      hidden !important;
}



/* صورة الغلاف — contain + ظل */
body.single-sc_product .wp-block-surecart-product-page .wp-block-column:first-child img,
body.single-sc_product figure.wp-block-image img {
  width:         100% !important;
  max-height:    600px !important;
  object-fit:    contain !important;
  object-position: center !important;
  display:       block !important;
  border-radius: 12px !important;
  box-shadow:    var(--arz-cover-shadow) !important;
  transition:    transform 0.4s ease, box-shadow 0.4s ease !important;
  position:      relative !important;
  z-index:       1 !important;
}
body.single-sc_product .wp-block-surecart-product-page .wp-block-column:first-child:hover img {
  transform:  translateY(-6px) scale(1.01) !important;
  box-shadow:
    0 12px 28px rgba(22,51,78,0.2),
    0 3px  8px  rgba(22,51,78,0.12) !important;
}

/* عمود المعلومات */
body.single-sc_product .wp-block-surecart-product-page .wp-block-columns > .wp-block-column:last-child {
  background:    #ffffff !important;
  border-radius: 24px !important;
  padding:       36px 40px !important;
  box-shadow:    0 4px 28px rgba(22,51,78,0.09) !important;
  border:        1px solid rgba(26,143,144,0.1) !important;
}

/* شارة التصنيف */
body.single-sc_product .wp-block-surecart-product-collection-tags a,
body.single-sc_product .wp-block-surecart-product-collection-tags span {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(26,143,144,0.08) !important;
  border: 1px solid rgba(26,143,144,0.22) !important;
  color: #1a8f90 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  padding: 5px 14px !important;
  border-radius: 40px !important;
  text-decoration: none !important;
  margin-bottom: 10px !important;
}

/* عنوان المنتج */
body.single-sc_product .wp-block-surecart-product-title,
body.single-sc_product h1.wp-block-surecart-product-title {
  font-family: 'Tajawal', sans-serif !important;
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
  font-weight: 900 !important;
  color: #16334e !important;
  line-height: 1.3 !important;
  margin-bottom: 14px !important;
}

/* رابط التقييم */
body.single-sc_product a.sc-review-link {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 13px !important;
  color: #1a8f90 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

/* السعر */
body.single-sc_product [class*="surecart-product-price"] ins,
body.single-sc_product [class*="surecart-product-price"] ins .amount {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 2.2rem !important;
  font-weight: 900 !important;
  color: #1a8f90 !important;
  line-height: 1 !important;
}
body.single-sc_product [class*="surecart-product-price"] del,
body.single-sc_product [class*="surecart-product-price"] del .amount {
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  color: #9bb0bf !important;
  text-decoration: line-through !important;
}
body.single-sc_product [class*="sc-badge"] {
  background: linear-gradient(135deg, #d9604f, #e8896d) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 4px 12px !important;
  border-radius: 40px !important;
  box-shadow: 0 3px 10px rgba(217,96,79,0.35) !important;
}

/* إخفاء حقل المبلغ الحر */
body.single-sc_product .wp-block-surecart-product-selected-price-ad-hoc-amount,
body.single-sc_product [data-sc-block-id="custom-amount"],
body.single-sc_product [class*="ad-hoc"],
body.single-sc_product [class*="custom-amount"],
body.single-sc_product [class*="pay-what-you-want"] {
  display: none !important;
}

/* الوصف */
body.single-sc_product .sc-prose.wp-block-surecart-product-description p {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 15.5px !important;
  line-height: 1.9 !important;
  color: #374a57 !important;
  margin-bottom: 12px !important;
}
body.single-sc_product .sc-prose blockquote {
  border-right: 4px solid #1a8f90 !important;
  border-left: none !important;
  background: rgba(26,143,144,0.05) !important;
  border-radius: 0 12px 12px 0 !important;
  padding: 14px 20px !important;
  margin: 16px 0 !important;
  font-style: italic !important;
  font-weight: 700 !important;
  color: #16334e !important;
}

/* الكمية */
body.single-sc_product .wp-block-surecart-product-quantity {
  margin-bottom: 16px !important;
}

/* أزرار الشراء */
body.single-sc_product .wp-block-surecart-product-buy-buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  margin-top: 8px !important;
}
body.single-sc_product .wp-block-surecart-product-buy-buttons button {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  border-radius: 50px !important;
  padding: 14px 32px !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
body.single-sc_product .wp-block-surecart-product-buy-buttons button:first-of-type {
  background: transparent !important;
  border: 2px solid #1a8f90 !important;
  color: #1a8f90 !important;
  box-shadow: none !important;
}
body.single-sc_product .wp-block-surecart-product-buy-buttons button:first-of-type:hover {
  background: #1a8f90 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(26,143,144,0.35) !important;
}
body.single-sc_product .wp-block-surecart-product-buy-buttons button:last-of-type {
  background: linear-gradient(135deg, #d9604f 0%, #e8896d 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 6px 20px rgba(217,96,79,0.4) !important;
  font-size: 17px !important;
}
body.single-sc_product .wp-block-surecart-product-buy-buttons button:last-of-type:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 32px rgba(217,96,79,0.55) !important;
  background: linear-gradient(135deg, #c5503f 0%, #d9604f 100%) !important;
}
body.single-sc_product .sc-button__link-text {
  font-family: 'Tajawal', sans-serif !important;
  font-weight: 800 !important;
  pointer-events: none !important;
}

/* تقييمات القراء */
body.single-sc_product #reviews,
body.single-sc_product .wp-block-surecart-product-review-list {
  background: #ffffff !important;
  border-radius: 20px !important;
  padding: 36px 40px !important;
  box-shadow: 0 4px 20px rgba(22,51,78,0.07) !important;
  border: 1px solid rgba(26,143,144,0.08) !important;
  margin-top: 32px !important;
}
body.single-sc_product #reviews h2,
body.single-sc_product .wp-block-surecart-product-review-list h2 {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 900 !important;
  color: #16334e !important;
  margin-bottom: 24px !important;
  padding-bottom: 16px !important;
  border-bottom: 1.5px solid rgba(26,143,144,0.12) !important;
}
body.single-sc_product a.sc-review-link.is-style-plus-sign {
  background: linear-gradient(135deg, #1a8f90, #2fb8b9) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 10px 24px !important;
  font-family: 'Tajawal', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  box-shadow: 0 4px 14px rgba(26,143,144,0.3) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

/* ── الكتب المشابهة ── */
body.single-sc_product .wp-block-surecart-product-list-related {
  margin-top: 52px !important;
  width: 100% !important;
  max-width: 100% !important;
}
body.single-sc_product .wp-block-surecart-product-list-related *:not(img):not(a):not(h2):not(h3):not(p):not(span) {
  max-width: 100% !important;
}
body.single-sc_product .wp-block-surecart-product-list-related h2 {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 900 !important;
  color: #16334e !important;
  margin-bottom: 28px !important;
  padding-bottom: 14px !important;
  border-bottom: 1.5px solid rgba(26,143,144,0.12) !important;
}
body.single-sc_product .wp-block-surecart-product-list-related .wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 24px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: unset !important;
}
body.single-sc_product .wp-block-surecart-product-list-related .wp-block-column {
  flex: unset !important;
  flex-basis: unset !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 1px solid rgba(26,143,144,0.1) !important;
  box-shadow: 0 4px 18px rgba(22,51,78,0.08) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  padding: 0 !important;
  position: relative !important;
}
body.single-sc_product .wp-block-surecart-product-list-related .wp-block-column:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 14px 40px rgba(22,51,78,0.16) !important;
  border-color: rgba(26,143,144,0.3) !important;
}

/* صورة الكتاب في المشابهة — خلفية كريمية + contain */
body.single-sc_product .wp-block-surecart-product-list-related .wp-block-column figure,
body.single-sc_product .wp-block-surecart-product-list-related .wp-block-column .wp-block-image {
  background: var(--arz-cover-bg) !important;
  border-radius: 20px 20px 0 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 12px 10px 0 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
}
body.single-sc_product .wp-block-surecart-product-list-related .wp-block-column img {
  width: 100% !important;
  aspect-ratio: 2/3 !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  display: block !important;
  border-radius: 6px 6px 0 0 !important;
  box-shadow: var(--arz-cover-shadow) !important;
  transition: transform 0.4s ease !important;
}
body.single-sc_product .wp-block-surecart-product-list-related .wp-block-column:hover img {
  transform: scale(1.04) translateY(-3px) !important;
}

/* badge الكتب المشابهة */
body.single-sc_product .wp-block-surecart-product-list-related .wp-block-column [class*="collection-tags"],
body.single-sc_product .wp-block-surecart-product-list-related .wp-block-column [class*="sc-badge"],
body.single-sc_product .wp-block-surecart-product-list-related .wp-block-column [class*="badge"] {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 5 !important;
  display: inline-flex !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 30px !important;
  background: linear-gradient(135deg, #d9604f, #e8896d) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(217,96,79,0.35) !important;
}
body.single-sc_product .wp-block-surecart-product-list-related [class*="collection-tags"] a {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #1a8f90 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  padding: 6px 14px 0 !important;
  display: block !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  position: static !important;
}
body.single-sc_product .wp-block-surecart-product-list-related .wp-block-column h2,
body.single-sc_product .wp-block-surecart-product-list-related .wp-block-column h3 {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1a2e3d !important;
  line-height: 1.45 !important;
  padding: 12px 14px 4px !important;
  margin: 0 !important;
}
body.single-sc_product .wp-block-surecart-product-list-related .wp-block-column h2 a,
body.single-sc_product .wp-block-surecart-product-list-related .wp-block-column h3 a {
  color: #1a2e3d !important;
  text-decoration: none !important;
}
body.single-sc_product .wp-block-surecart-product-list-related .wp-block-column h2 a:hover,
body.single-sc_product .wp-block-surecart-product-list-related .wp-block-column h3 a:hover {
  color: #1a8f90 !important;
}
body.single-sc_product .wp-block-surecart-product-list-related [class*="price"] {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #1a8f90 !important;
  padding: 4px 14px 14px !important;
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
}
body.single-sc_product .wp-block-surecart-product-list-related [class*="price"] del {
  font-size: 13px !important;
  color: #9bb0bf !important;
  font-weight: 400 !important;
}

/* الوصف الكامل */
body.single-sc_product .entry-content {
  font-family: 'Tajawal', sans-serif !important;
}
body.single-sc_product .entry-content p {
  font-size: 15.5px !important;
  line-height: 1.95 !important;
  color: #374a57 !important;
  margin-bottom: 14px !important;
}
body.single-sc_product .entry-content ul li {
  font-size: 15px !important;
  line-height: 1.8 !important;
  color: #374a57 !important;
  padding-right: 22px !important;
  position: relative !important;
  margin-bottom: 6px !important;
  list-style: none !important;
}
body.single-sc_product .entry-content ul li::before {
  content: "◆" !important;
  position: absolute !important;
  right: 0 !important;
  color: #1a8f90 !important;
  font-size: 9px !important;
  top: 7px !important;
}

/* Breadcrumbs */
body.single-sc_product .ast-breadcrumbs-wrapper {
  background: transparent !important;
  padding: 12px 0 !important;
}
body.single-sc_product .ast-breadcrumbs-wrapper a {
  color: #1a8f90 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: 'Tajawal', sans-serif !important;
}
body.single-sc_product .ast-breadcrumbs-wrapper span {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 13px !important;
  color: #6b8394 !important;
}

/* Responsive المنتج */
@media (max-width: 900px) {
  body.single-sc_product .wp-block-surecart-product-page .wp-block-columns > .wp-block-column:last-child {
    padding: 24px 20px !important;
  }
  body.single-sc_product .wp-block-surecart-product-page .wp-block-columns > .wp-block-column:first-child {
    padding: 20px 16px !important;
  }
}
@media (max-width: 768px) {
  body.single-sc_product h1.wp-block-surecart-product-title {
    font-size: 1.7rem !important;
  }
  body.single-sc_product #reviews,
  body.single-sc_product .wp-block-surecart-product-review-list {
    padding: 24px 18px !important;
  }
  body.single-sc_product .wp-block-surecart-product-list-related .wp-block-columns {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
  body.single-sc_product .wp-block-surecart-product-list-related .wp-block-column figure,
  body.single-sc_product .wp-block-surecart-product-list-related .wp-block-column .wp-block-image {
    padding: 8px 6px 0 !important;
  }
}
@media (max-width: 480px) {
  body.single-sc_product .wp-block-surecart-product-list-related .wp-block-columns {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ══════════════════════════════════════════════════════
   ▌ B. صفحة المتجر  (archive + collections)
══════════════════════════════════════════════════════ */
body.post-type-archive-sc_product,
body.tax-sc_collection,
body.post-type-archive-sc_product #page,
body.tax-sc_collection #page {
  background: #f3f7f7 !important;
}
body.post-type-archive-sc_product .ast-container,
body.tax-sc_collection .ast-container {
  background: transparent !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.post-type-archive-sc_product #primary,
body.post-type-archive-sc_product #content,
body.post-type-archive-sc_product #main,
body.tax-sc_collection #primary,
body.tax-sc_collection #content {
  background: transparent !important;
}

/* شريط البحث */
.wp-block-surecart-store-search {
  max-width: 560px !important;
  margin: 0 auto 36px !important;
}
.wp-block-surecart-store-search input {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 15px !important;
  padding: 13px 22px !important;
  border: 1.5px solid rgba(26,143,144,0.22) !important;
  border-radius: 50px !important;
  background: #ffffff !important;
  color: #1a2e3d !important;
  box-shadow: 0 2px 14px rgba(22,51,78,0.08) !important;
  outline: none !important;
  transition: border-color .2s, box-shadow .2s !important;
  width: 100% !important;
  unicode-bidi: plaintext !important;
  text-align: right !important;
}
.wp-block-surecart-store-search input:focus {
  border-color: #1a8f90 !important;
  box-shadow: 0 2px 16px rgba(26,143,144,0.22) !important;
}
.wp-block-surecart-store-search button {
  background: linear-gradient(135deg, #1a8f90, #2fb8b9) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 12px 26px !important;
  font-family: 'Tajawal', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all .25s !important;
  box-shadow: 0 4px 14px rgba(26,143,144,0.3) !important;
}
.wp-block-surecart-store-search button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(26,143,144,0.4) !important;
}

/* حاوية الشبكة */
.wp-block-surecart-product-list,
.sc-product-list {
  width: 100% !important;
  max-width: 100% !important;
}

/* بطاقة المنتج */
.wp-block-surecart-product-card,
.sc-product-item {
  background: #ffffff !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 1px solid rgba(26,143,144,0.1) !important;
  box-shadow: 0 4px 20px rgba(22,51,78,0.08) !important;
  transition: transform .35s cubic-bezier(.23,1,.32,1), box-shadow .35s ease, border-color .3s ease !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
}
.wp-block-surecart-product-card:hover,
.sc-product-item:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 18px 52px rgba(22,51,78,0.16) !important;
  border-color: rgba(26,143,144,0.3) !important;
}

/* صورة الغلاف في البطاقة — خلفية كريمية + contain */
.wp-block-surecart-product-image {
  background: var(--arz-cover-bg) !important;
  border-radius: 20px 20px 0 0 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  position: relative !important;
  padding: 12px 10px 0 !important;
}
.wp-block-surecart-product-image img,
.sc-product-item-link img {
  width: 100% !important;
  aspect-ratio: 2/3 !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  display: block !important;
  border-radius: 6px 6px 0 0 !important;
  box-shadow: var(--arz-cover-shadow) !important;
  transition: transform .45s ease !important;
}
.wp-block-surecart-product-card:hover .wp-block-surecart-product-image img,
.sc-product-item:hover .sc-product-item-link img {
  transform: scale(1.04) translateY(-4px) !important;
}

/* عنوان الكتاب */
.wp-block-surecart-product-card .wp-block-surecart-product-title,
.sc-product-item .wp-block-surecart-product-title {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1a2e3d !important;
  line-height: 1.5 !important;
  padding: 12px 16px 6px !important;
  margin: 0 !important;
  flex-grow: 1 !important;
  transition: color .2s !important;
}
.wp-block-surecart-product-card .wp-block-surecart-product-title a,
.sc-product-item .wp-block-surecart-product-title a {
  color: #1a2e3d !important;
  text-decoration: none !important;
}
.wp-block-surecart-product-card:hover .wp-block-surecart-product-title a,
.sc-product-item:hover .wp-block-surecart-product-title a {
  color: #1a8f90 !important;
}

/* التقييم */
.wp-block-surecart-product-card .wp-block-surecart-product-rating,
.sc-product-item .wp-block-surecart-product-rating {
  padding: 4px 16px !important;
  display: block !important;
}

/* السعر */
.wp-block-surecart-product-card .wp-block-surecart-product-price,
.sc-product-item .wp-block-surecart-product-price {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #1a8f90 !important;
  padding: 4px 16px 14px !important;
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}
.wp-block-surecart-product-price ins,
.wp-block-surecart-product-price ins .amount {
  font-size: 17px !important;
  font-weight: 900 !important;
  color: #1a8f90 !important;
  text-decoration: none !important;
}
.wp-block-surecart-product-price del,
.wp-block-surecart-product-price del .amount {
  font-size: 13px !important;
  color: #9bb0bf !important;
  font-weight: 400 !important;
}

/* زر الشراء */
.wp-block-surecart-product-card .wp-block-surecart-product-buy-button,
.sc-product-item .wp-block-surecart-product-buy-button {
  padding: 0 16px 16px !important;
}
.wp-block-surecart-product-buy-button button,
.wp-block-surecart-product-buy-button a {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  width: 100% !important;
  padding: 11px 20px !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  transition: all .3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  background: linear-gradient(135deg, #1a8f90, #2fb8b9) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(26,143,144,0.3) !important;
}
.wp-block-surecart-product-buy-button button:hover,
.wp-block-surecart-product-buy-button a:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(26,143,144,0.45) !important;
  background: linear-gradient(135deg, #157a7b, #1a8f90) !important;
}

/* شارة Sale/تنزيلات — يسار حتى لا تغطي زر الإضافة */
.wp-block-surecart-product-card [class*="badge"],
.wp-block-surecart-product-card [class*="sc-badge"],
.sc-product-item [class*="badge"],
.sc-product-item [class*="sc-badge"] {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  z-index: 4 !important;
  background: linear-gradient(135deg, #d9604f, #e8896d) !important;
  color: #ffffff !important;
  font-family: 'Tajawal', sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 5px 12px !important;
  border-radius: 30px !important;
  box-shadow: 0 3px 10px rgba(217,96,79,0.4) !important;
}

/* Pagination */
.wp-block-query-pagination {
  display: flex !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 48px !important;
  flex-wrap: wrap !important;
}
.wp-block-query-pagination a {
  font-family: 'Tajawal', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 10px 18px !important;
  border-radius: 12px !important;
  border: 1.5px solid rgba(26,143,144,0.2) !important;
  color: #1a8f90 !important;
  background: #ffffff !important;
  text-decoration: none !important;
  transition: all .2s !important;
  box-shadow: 0 2px 8px rgba(22,51,78,0.06) !important;
}
.wp-block-query-pagination a:hover {
  background: #1a8f90 !important;
  color: #ffffff !important;
  border-color: #1a8f90 !important;
  box-shadow: 0 4px 14px rgba(26,143,144,0.3) !important;
}

/* Responsive المتجر */
@media (max-width: 768px) {
  .wp-block-surecart-product-card .wp-block-surecart-product-title,
  .sc-product-item .wp-block-surecart-product-title {
    font-size: 13px !important;
    padding: 10px 12px 4px !important;
  }
  .wp-block-surecart-product-card .wp-block-surecart-product-price,
  .sc-product-item .wp-block-surecart-product-price {
    font-size: 14px !important;
    padding: 2px 12px 12px !important;
  }
  .wp-block-surecart-product-card .wp-block-surecart-product-buy-button,
  .sc-product-item .wp-block-surecart-product-buy-button {
    padding: 0 12px 14px !important;
  }
  .wp-block-surecart-product-image {
    padding: 10px 8px 0 !important;
  }
  /* توسيط الشبكة في الموبايل — بدون تضييق */
  .wp-block-surecart-product-list,
  .sc-product-list {
    padding: 0 8px !important;
  }
}
