/* دقة الحياكة | ثيم نمو | تحسينات المظهر v1.1 | 2026-10-11
   انسخ محتوى الملف بالكامل إلى خانة CSS فقط، دون وسوم style.
   نسخة كاملة تشمل تصحيح وضوح النص. استبدل بها الكود الحالي بالكامل.
   للتراجع: احذف هذا الكود من الخانة واحفظ.
*/

/* 1. ألوان واضحة مع الاحتفاظ بهوية المتجر والخط الحالي */
:root {
  --background: #ffffff !important;
  --foreground: #243247 !important;
  --primary: #c44416 !important;
  --primary-foreground: #ffffff !important;
  --secondary: #162f8c !important;
  --border: #dde3ec !important;
  --input: #b8c2d1 !important;
  --ring: #162f8c !important;
  --dh-heading: #10254f;
  --dh-soft: #f4f6fa;
  --dh-line: #e2e7ef;
}
body {
  background: #ffffff;
  color: #243247;
  -webkit-font-smoothing: antialiased;
}

/* 2. القوائم والتذييل: نص أبيض فوق الكحلي */
header:not(main header), footer#footer {
  --foreground: #ffffff;
  --color-foreground: #ffffff;
  color: #ffffff;
}
header:not(main header) {
  border-bottom-color: rgba(255,255,255,.18) !important;
}
header:not(main header) a, header:not(main header) button { font-weight: 600; }
header:not(main header) :is(dialog, [popover]) {
  --foreground: #243247;
  --color-foreground: #243247;
  color: #243247;
}
footer#footer {
  border-top: 4px solid #ea5b27;
}
footer#footer :is(a, p, li) { line-height: 1.9; }
footer#footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
footer#footer a[href^="tel:"],
footer#footer a[href^="mailto:"] {
  direction: ltr;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
}

/* 3. عناوين وأقسام يسهل قراءتها */
main :is(h1,h2,h3) {
  color: var(--dh-heading);
  line-height: 1.65;
}
main h1 { font-size: clamp(23px, 2.4vw, 34px); }
main h2 { font-size: clamp(21px, 2vw, 28px); }
main :is(.section-categories,.section-products,.section-testimonials) {
  padding-block: clamp(28px, 4vw, 52px);
}
main .section-products + .section-products {
  border-top: 1px solid var(--dh-line);
}
main .section-testimonials { background: var(--dh-soft); }
main nav[aria-label="breadcrumb"] {
  line-height: 1.8;
  font-size: 13px;
}

/* 4. بطاقات المنتجات: صورة واضحة ونص وسعر بارزان */
[data-product-card] {
  background: #ffffff;
  border: 1px solid var(--dh-line);
  border-radius: 14px;
  padding: 12px;
  gap: 14px;
  box-shadow: 0 3px 12px rgba(16,37,79,.035);
  transition: border-color .18s ease, box-shadow .18s ease;
}
[data-product-card] h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  min-height: 3.4em;
  overflow-wrap: anywhere;
}
[data-product-card] h3 a { color: var(--dh-heading); }
[data-product-card] p:has(> .riyal-svg) {
  color: var(--dh-heading);
  font-size: 17px;
  font-weight: 700;
}
[data-product-card] > a img {
  object-fit: contain;
  background: var(--dh-soft);
  border-radius: 10px;
}
.section-categories a.group > div {
  border-radius: 14px;
  border: 1px solid var(--dh-line);
}
.section-categories a.group h3 { font-size: 18px; }

/* 5. أزرار الشراء بخط واضح وتباين أفضل */
main .btn {
  border-radius: 10px;
  font-weight: 700;
}
main .btn-lg { min-height: 48px; }
main .btn-filled:not(:disabled) {
  background-color: #c44416;
  border-color: #c44416;
  color: #ffffff;
}
[data-product-card] .btn-outlined {
  color: #10254f;
  border-color: #c3cedf;
  background: #f4f6fa;
}
main .btn-buy-now:not(:disabled) {
  background: #10254f;
  border-color: #10254f;
  color: #ffffff;
}
main .btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}
main .bg-secondary {
  background-color: #f0f3f9;
  color: #243247;
}

/* 6. خيارات المنتج ورفع الشعار */
.custom-field__label {
  color: #243247;
  font-weight: 700;
  line-height: 1.8;
}
.custom-field__input, main .form-input {
  color: #243247;
  background-color: #ffffff;
  border-color: #b8c2d1;
  border-radius: 10px;
  min-height: 48px;
  font-size: 16px;
}
.file-upload {
  background: #f4f6fa;
  border: 1px dashed #b8c2d1;
  border-radius: 10px;
  color: #243247;
}
.file-upload__button {
  background: #ffffff;
  color: #10254f;
  border: 1px solid #b8c2d1;
  border-radius: 8px;
  min-height: 44px;
}
.qty-input { border-color: #b8c2d1; border-radius: 10px; }
.qty-input-field, .qty-input-btn { color: #243247; }
.product-gallery__slide > img {
  background: #f4f6fa;
  border: 1px solid var(--dh-line);
  border-radius: 14px;
}

/* 7. حالات التفاعل والجوال، دون تغيير آلية القوائم والسلة */
:is(header,main,footer) :is(a,button,input,select,textarea):focus-visible {
  outline: 3px solid #c44416;
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  [data-product-card]:hover {
    border-color: #b8c5d9;
    box-shadow: 0 8px 24px rgba(16,37,79,.09);
  }
  main .btn-filled:not(:disabled):hover {
    background: #a63710;
    border-color: #a63710;
  }
  main .btn-buy-now:not(:disabled):hover {
    background: #162f8c;
    border-color: #162f8c;
  }
  [data-product-card] .btn-outlined:hover {
    background: #10254f;
    border-color: #10254f;
    color: #ffffff;
  }
}
@media (max-width: 767px) {
  [data-product-card] { padding: 9px; gap: 11px; }
  [data-product-card] h3 { font-size: 14px; }
  [data-product-card] p:has(> .riyal-svg) { font-size: 16px; }
  [data-product-card] .btn { font-size: 13px; padding-inline: 8px; }
  .section-categories a.group h3 { font-size: 16px; }
  .custom-field__input, main .form-input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-product-card] { transition: none; }
}

/* 8. وضوح النصوص فوق الشريطين الأزرقين */
/* عنوان المميزات والتفاصيل وسهمه */
button[aria-controls="features-details"] {
  background-color: #162f8c !important;
  color: #ffffff !important;
}
button[aria-controls="features-details"] :is(span, svg) {
  color: #ffffff !important;
}
button[aria-controls="features-details"] > span:first-child {
  font-size: 16px !important;
  font-weight: 700 !important;
}

/* اسم المنتج وسعره في شريط الشراء السفلي */
#sticky-cta {
  background-color: #162f8c !important;
}
#sticky-cta [data-sticky-cta-name],
#sticky-cta [data-sticky-cta-price] {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}
#sticky-cta [data-sticky-cta-price] svg {
  color: #ffffff !important;
}
#sticky-cta [data-sticky-cta-options] {
  color: #e2e8f0 !important;
}

/* نهاية الكود الكامل v1.1 */

/* وضوح نص البنر الرئيسي */
main .section-hero .theme-container,
main .section-hero .theme-container * {
  color: #ffffff !important;
}

main .section-hero :is(h1, h2, h3) {
  font-size: clamp(28px, 3.2vw, 46px) !important;
  line-height: 1.5 !important;
}

main .section-hero p {
  font-size: clamp(16px, 1.3vw, 20px) !important;
  line-height: 1.9 !important;
}