/* ===== دَثّار (dthaar.com) — تخصيص المتجر وصفحة المنتج ===== */
:root,
body,
body.product-single {
  --dth: #4b3327;
  --dth2: #38251c;
  --dth-soft: #faf6f3;
  --dth-border: #e4d7ce;
  --ink: #141414;
  --mist: #f5f6f7;
  --line: #e2e4e7;
  --muted: #6b7076;
  --red: #991b1b;
  --kufi: 'Noto Kufi Arabic', Cairo, "Segoe UI", Tahoma, sans-serif;
}

/* منع انتقال أي عنصر من الصفحة الرئيسية إلى صفحة المنتج أو الصفحات الأخرى */
body:not(.index) #dth-home-top,
body:not(.index) #dth-home-bottom,
main:has(div[id^="product-"]) #dth-home-top,
main:has(div[id^="product-"]) #dth-home-bottom {
  display: none !important;
}

/* إخفاء أي شارة "تخفيض" فوق بطاقات المنتجات في كافة صفحات المتجر */
.s-product-card-promotion-title,
.s-product-card-Entry .badge,
.product-card .badge,
.dth-save {
  display: none !important;
}

/* إخفاء القسم الافتراضي "سبح على ذوقك" فقط والإبقاء على آراء العملاء الحقيقية للمتجر */
body.index .s-block--bundle-personalized-shoppers-who-bought {
  display: none !important;
}

/* جعل البنرات في الصفحة الرئيسية بملء الشاشة بالكامل (100%) بدون أي فراغات يمين ويسار وبحجم أكبر */
body.index .s-block--bundle-hero-slider,
body.index .s-block--fixed-banner {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.index .s-block--fixed-banner .container {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

body.index .s-block--fixed-banner .banner,
body.index .s-block--fixed-banner picture,
body.index .s-block--fixed-banner img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}

/* ===== عناصر الصفحة الرئيسية (دَثّار) ===== */
.dth-home-wrap,
.dth-home-wrap * {
  box-sizing: border-box;
}

.dth-home-wrap {
  --dth: #4b3327;
  --dth2: #38251c;
  --dth-soft: #faf6f3;
  --dth-border: #e4d7ce;
  --ink: #1c1613;
  --muted: #6b7076;
  --kufi: 'Noto Kufi Arabic', Cairo, "Segoe UI", Tahoma, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  direction: rtl;
  font-family: var(--kufi);
}

/* جعل بنر عرض سديري الحارث بملء الشاشة بالكامل بدون فراغات يمين ويسار وبحجم أكبر وأفخم */
#dth-home-top.dth-home-wrap {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 0 24px !important;
  overflow: hidden;
}

/* 1) شريط مزايا المتجر والثقة */
.dth-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 16px;
}

.dth-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--dth-soft);
  border: 1px solid var(--dth-border);
}

.dth-trust-item svg {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--dth);
}

.dth-trust-item b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}

.dth-trust-item span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* 2) بنر عرض الحارث البارز (بملء الشاشة وحجم أكبر) */
.dth-offer-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: clamp(22px, 3vw, 34px) clamp(20px, 5vw, 72px);
  border-radius: 0;
  background: linear-gradient(135deg, #4b3327 0%, #261811 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(75, 51, 39, .16);
}

.dth-offer-pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: #f5e8d5;
  color: #4b3327;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 8px;
}

.dth-offer-banner h2 {
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
}

.dth-offer-banner p {
  margin: 0;
  font-size: clamp(13.5px, 1.4vw, 15.5px);
  color: rgba(255, 255, 255, .9);
}

.dth-offer-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  background: #f5e8d5;
  color: #4b3327 !important;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s, background .2s;
}

.dth-offer-cta:hover {
  transform: translateY(-2px);
  background: #fff;
}

.dth-offer-side {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}

.dth-offer-cd {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.dth-cd-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: #f5e8d5;
  letter-spacing: 0.2px;
}

.dth-cd-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(52px, 1fr));
  gap: 7px;
  direction: rtl;
}

.dth-cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 7px 6px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(245, 232, 213, .26);
  backdrop-filter: blur(4px);
}

.dth-cd-box b {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
  color: #f5e8d5;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

.dth-cd-box span {
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, .82);
  line-height: 1;
}

.dth-cd-ended {
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  color: #f5e8d5;
  font-size: 13px;
  font-weight: 800;
}

/* 3) قسم ليش سديري دَثّار + مساعد المقاس + آراء العملاء */
.dth-home-sec {
  margin: 34px 0;
}

.dth-home-sec-hd {
  text-align: center;
  margin-bottom: 20px;
}

.dth-home-sec-hd small {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--dth);
  margin-bottom: 4px;
}

.dth-home-sec-hd h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
  font-weight: 800;
  color: var(--ink);
}

.dth-why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dth-why-card {
  padding: 18px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #ebe4dd;
  box-shadow: 0 4px 14px rgba(75, 51, 39, .04);
}

.dth-why-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--dth-soft);
  color: var(--dth);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.dth-why-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.dth-why-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* حاسبة المقاس المباشرة في الصفحة الرئيسية (تحسب في نفس المكان بدون انتقال) */
.dth-home-sizebox {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--dth-soft);
  border: 1.5px dashed #c8b4a6;
}

.dth-home-size-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.dth-home-sizebox h3 {
  margin: 0 0 4px;
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink);
}

.dth-home-sizebox p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.dth-home-inline-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.dth-home-field {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid #d5d8dc;
  gap: 6px;
}

.dth-home-field:focus-within {
  border-color: var(--dth);
  box-shadow: 0 0 0 3px rgba(75, 51, 39, .12);
}

.dth-home-field span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.dth-home-field input {
  width: 68px;
  height: 100%;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font: 800 15px/1 var(--kufi);
  color: var(--ink);
  text-align: center;
}

.dth-home-field em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.dth-home-calc-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--dth);
  color: #fff;
  font: 700 13.5px var(--kufi);
  cursor: pointer;
  white-space: nowrap;
}

.dth-home-calc-trigger:hover {
  background: var(--dth2);
}

.dth-home-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid #d5d8dc;
  color: #128c3e !important;
  font: 700 13px var(--kufi);
  text-decoration: none;
  white-space: nowrap;
}

.dth-home-inline-res {
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid var(--dth);
}

.dth-home-inline-res.on {
  display: flex;
}

.dth-home-inline-res-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dth-home-inline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--dth);
  color: #fff;
  font: 800 18px/1 var(--kufi);
  direction: ltr;
}

.dth-home-inline-txt b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

.dth-home-inline-txt span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
}

.dth-home-inline-err {
  display: none;
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--red);
}

.dth-home-inline-err.on {
  display: block;
}

/* آراء العملاء */
.dth-rev-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dth-rev-card {
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #ebe4dd;
  box-shadow: 0 4px 14px rgba(75, 51, 39, .04);
}

.dth-rev-stars {
  color: #e5a93c;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.dth-rev-card p {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.65;
}

.dth-rev-card cite {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

@media (max-width: 860px) {
  .dth-trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dth-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dth-rev-grid {
    grid-template-columns: 1fr;
  }
  .dth-offer-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: right;
    padding: 16px 16px;
    gap: 14px;
  }
  .dth-offer-side {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }
  .dth-offer-cd {
    align-items: stretch;
    width: 100%;
  }
  .dth-cd-lbl {
    text-align: center;
  }
  .dth-cd-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }
  .dth-cd-box {
    min-width: 0;
    padding: 8px 4px 7px;
  }
  .dth-cd-box b {
    font-size: 16.5px;
  }
  .dth-offer-banner h2 {
    font-size: 1.12rem;
    margin-bottom: 4px;
  }
  .dth-offer-banner p {
    font-size: 12.5px;
    line-height: 1.5;
  }
  .dth-offer-cta {
    width: 100%;
    padding: 11px 16px;
    font-size: 13.5px;
  }
  .dth-home-sizebox {
    flex-direction: column;
    align-items: stretch;
    text-align: right;
    padding: 16px;
  }
  .dth-home-inline-form {
    width: 100%;
  }
  .dth-home-field {
    flex: 1 1 calc(50% - 6px);
    justify-content: space-between;
  }
  .dth-home-calc-trigger {
    width: 100%;
  }
}

/* ترتيب عناصر صفحة المنتج: العنوان والسعر ثم العرض والمقاسات وزر السلة، ثم الوصف في الأسفل */
body.product-single div[id^="product-"] > .main-content {
  display: flex !important;
  flex-direction: column !important;
}

body.product-single div[id^="product-"] > .main-content > * {
  order: 20;
}

body.product-single div[id^="product-"] > .main-content > .mb-2\.5.flex.items-start {
  order: 1;
}

body.product-single div[id^="product-"] > .main-content > .flex.whitespace-nowrap.gap-4 {
  order: 2;
}

body.product-single div[id^="product-"] > .main-content > form.product-form {
  order: 3;
  margin-top: 8px !important;
}

body.product-single div[id^="product-"] > .main-content > div:has(> salla-installment) {
  order: 4;
  margin-top: 14px;
}

body.product-single div[id^="product-"] > .main-content > .product__description {
  order: 5;
  margin-top: 18px !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* إخفاء القائمة المنسدلة الأصلية واستبدالها بأزرار المقاسات */
body.product-single .dth-sel {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.product-single .s-product-options-option {
  position: relative;
  display: block !important;
}

body.product-single .s-product-options-option-content {
  width: 100% !important;
  display: block !important;
}

body.product-single .s-product-options-option:has(.dth-sizes) .s-product-options-option-label {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100% !important;
  margin-bottom: 10px !important;
}

body.product-single .s-product-options-option:has(.dth-sizes) .s-product-options-option-label b {
  font-size: 0 !important;
}

body.product-single .s-product-options-option:has(.dth-sizes) .s-product-options-option-label b::before {
  content: "اختر المقاس";
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

body.product-single .s-product-options-option:has(.dth-sizes) .s-product-options-option-label small {
  display: none !important;
}

/* شبكة أزرار المقاسات (S إلى XXXXL) */
body.product-single .dth-sizes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(46px, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
}

body.product-single .dth-size {
  height: 46px;
  border: 1.5px solid #d5d8dc;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 700 14px/1 var(--kufi);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .15s, box-shadow .15s;
  direction: ltr;
}

body.product-single .dth-size:hover:not(:disabled) {
  border-color: var(--dth);
}

body.product-single .dth-size.on {
  background: var(--dth);
  border-color: var(--dth);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -10px rgba(75, 51, 39, .85);
}

body.product-single .dth-size:disabled {
  position: relative;
  overflow: hidden;
  background: #f5f6f7;
  border-color: #e6e8eb;
  color: #a3a8ae;
  cursor: not-allowed;
}

body.product-single .dth-size:disabled::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top left, transparent calc(50% - .75px), #c9cdd2 calc(50% - .75px), #c9cdd2 calc(50% + .75px), transparent calc(50% + .75px));
}

body.product-single .dth-need .dth-size:not(:disabled) {
  border-color: var(--red);
  animation: dth-shake .45s;
}

body.product-single .dth-need .s-product-options-option-label b::after {
  content: " · اختر مقاسك أولاً";
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

@keyframes dth-shake {
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* زر دليل المقاسات وزر حاسبة المقاس بالطول والوزن */
body.product-single .dth-guide {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: 700 13.5px/1.8 var(--kufi);
  color: var(--dth);
}

body.product-single .dth-guide span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.product-single .dth-guide svg {
  width: 16px;
  height: 16px;
}

body.product-single .dth-calc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  margin: 12px 0 0;
  padding: 0 12px;
  cursor: pointer;
  border: 1.5px dashed #c8b4a6;
  border-radius: 10px;
  background: var(--dth-soft);
  color: var(--dth);
  font: 600 13.5px/1.3 var(--kufi);
  transition: background .15s, border-color .15s;
}

body.product-single .dth-calc-btn:hover {
  border-color: var(--dth);
  background: #f3ebe4;
}

body.product-single .dth-calc-btn svg {
  flex: none;
  width: 20px;
  height: 20px;
}

body.product-single .dth-calc-btn b {
  font-weight: 800;
}

body.product-single .dth-calc-btn u {
  margin-inline-start: 6px;
  font-size: 12px;
  color: var(--muted);
  text-underline-offset: 3px;
}

/* ===== نافذة مساعد المقاس ودليل المقاسات ===== */
.dth-sg-back {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(20, 20, 20, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

.dth-sg {
  position: fixed;
  z-index: 9999;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  max-height: 92dvh;
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, .22);
  direction: rtl;
  text-align: right;
  color: #141414;
  font-family: var(--kufi);
  transform: translateY(104%);
  visibility: hidden;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), visibility .32s;
}

html.dth-sg-on .dth-sg-back {
  opacity: 1;
  visibility: visible;
}

html.dth-sg-on .dth-sg {
  transform: none;
  visibility: visible;
}

html.dth-sg-on,
html.dth-sg-on body {
  overflow: hidden !important;
}

.dth-sg * {
  box-sizing: border-box;
}

.dth-sg-hd {
  flex: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid #eeeff1;
}

.dth-sg-hd::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 42px;
  height: 4px;
  margin-left: -21px;
  border-radius: 2px;
  background: #dadbdf;
}

.dth-sg-hd h2 {
  margin: 0;
  font: 800 18px/1.4 var(--kufi);
  color: #141414;
}

.dth-sg-x {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3f4f6;
  color: #141414;
  cursor: pointer;
}

.dth-sg-bd {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
}

.dth-sg h3 {
  margin: 0;
  font: 800 16px/1.4 var(--kufi);
  color: #141414;
}

.dth-sg h3 small {
  margin-inline-start: 8px;
  font: 600 12px var(--kufi);
  color: #6b6f76;
}

.dth-sg-calc {
  padding: 16px;
  border: 1px solid var(--dth-border);
  border-radius: 14px;
  background: var(--dth-soft);
}

.dth-sg-h {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}

.dth-sg-h > svg {
  flex: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 12px;
  background: #4b3327;
  color: #fff;
}

.dth-sg-h p {
  margin: 2px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #6b6f76;
}

.dth-sg-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dth-sg-in label {
  display: block;
  margin: 0;
}

.dth-sg-in label > span:first-child {
  display: block;
  margin: 0 0 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: #33373c;
}

.dth-sg-in .f {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 12px;
  border: 1.5px solid #d9dadd;
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.dth-sg-in .f:focus-within {
  border-color: #4b3327;
  box-shadow: 0 0 0 3px rgba(75, 51, 39, .14);
}

.dth-sg-in input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  box-shadow: none;
  font: 800 18px/1 var(--kufi);
  color: #141414;
  text-align: right;
}

.dth-sg-in input::placeholder {
  font-weight: 700;
  color: #c3c5ca;
}

.dth-sg-in em {
  font-style: normal;
  margin-inline-start: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #6b6f76;
}

.dth-sg-err {
  display: none;
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #991b1b;
}

.dth-sg-err.on {
  display: block;
}

.dth-sg-go {
  display: block;
  width: 100%;
  height: 48px;
  margin: 12px 0 0;
  border: 0;
  border-radius: 10px;
  background: #4b3327;
  color: #fff;
  font: 800 15px var(--kufi);
  cursor: pointer;
}

.dth-sg-res:empty {
  display: none;
}

.dth-sg-res {
  margin: 14px 0 0;
  padding: 14px;
  border: 1.5px solid #4b3327;
  border-radius: 12px;
  background: #fff;
  animation: dth-sg-up .35s ease;
}

@keyframes dth-sg-up {
  from { opacity: 0; transform: translateY(6px); }
}

.dth-sg-r {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dth-sg-badge {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #4b3327;
  color: #fff;
  line-height: 1;
}

.dth-sg-badge small {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  opacity: .85;
}

.dth-sg-badge b {
  font: 800 20px/1 var(--kufi);
  direction: ltr;
}

.dth-sg-why p {
  margin: 0 0 4px;
  font-size: 13.5px;
  line-height: 1.65;
  color: #33373c;
}

.dth-sg-why p:last-child {
  margin: 0;
}

.dth-sg-why b {
  color: #4b3327;
}

.dth-sg-pick {
  display: block;
  width: 100%;
  height: 46px;
  margin: 12px 0 0;
  border: 0;
  border-radius: 10px;
  background: #4b3327;
  color: #fff;
  font: 800 15px var(--kufi);
  cursor: pointer;
}

.dth-sg-out {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
  color: #991b1b;
}

.dth-sg-out a,
.dth-sg-help a {
  font-weight: 800;
  color: #128c3e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dth-sg-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: #6b6f76;
}

.dth-sg-chart {
  margin: 22px 0 0;
}

.dth-sg-chips {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  margin: 12px 0;
}

@media (max-width: 460px) {
  .dth-sg-chips {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dth-sg-wa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin: 12px 0 0;
  border-radius: 10px;
  background: #128c3e;
  color: #fff !important;
  font: 800 14.5px var(--kufi);
  text-decoration: none;
}

.dth-sg-badge.is-over {
  background: #991b1b;
}

.dth-home-inline-badge.is-over {
  background: #991b1b;
}

.dth-sg-chips button {
  height: 38px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #d5d8dc;
  border-radius: 8px;
  background: #fff;
  color: #141414;
  font: 800 12px var(--kufi);
  cursor: pointer;
  direction: ltr;
}

.dth-sg-chips button.on {
  border-color: #4b3327;
  background: #4b3327;
  color: #fff;
}

.dth-sg-chips button.out:not(.on) {
  color: #a3a8ae;
  text-decoration: line-through;
}

.dth-sg-fig {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: #f7f7f8;
}

.dth-sg-vest {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
}

.dth-sg-leg {
  width: 100%;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dth-sg-leg li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  align-items: center;
}

.dth-sg-leg i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #4b3327;
  color: #fff;
  font: 800 12px/1 var(--kufi);
  font-style: normal;
}

.dth-sg-leg b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.dth-sg-leg small {
  display: block;
  font-size: 11px;
  line-height: 1.4;
  color: #6b6f76;
}

.dth-sg-leg em {
  font-style: normal;
  white-space: nowrap;
  font: 800 16px/1 var(--kufi);
  color: #4b3327;
}

.dth-sg-leg em span {
  margin-inline-start: 2px;
  font-size: 11px;
  font-weight: 700;
  color: #6b6f76;
}

.dth-sg-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff8e6;
  font-size: 12px;
  line-height: 1.6;
  color: #5c4a1a;
}

.dth-sg-tip svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #b7791f;
}

.dth-sg-tbl {
  width: 100%;
  margin: 14px 0 0;
  border: 1px solid #e4e5e8;
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 13.5px;
  text-align: center;
}

.dth-sg-tbl caption {
  caption-side: top;
  margin: 0 0 8px;
  text-align: right;
  font-size: 12.5px;
  font-weight: 700;
  color: #6b6f76;
}

.dth-sg-tbl th {
  padding: 9px 4px;
  background: #4b3327;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.dth-sg-tbl td {
  padding: 9px 4px;
  border-top: 1px solid #eeeff1;
  font-weight: 700;
  color: #33373c;
}

.dth-sg-tbl td:first-child {
  font-weight: 800;
  color: #141414;
  direction: ltr;
}

.dth-sg-tbl tr.on td {
  background: var(--dth-soft);
  color: #4b3327;
}

.dth-sg-tbl tr.out td {
  color: #b0b4ba;
}

.dth-sg-tbl td small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #991b1b;
}

.dth-sg-help {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
  color: #4d5157;
}

@media (min-width: 768px) {
  .dth-sg {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 580px;
    max-height: 88vh;
    border-radius: 16px;
    opacity: 0;
    transform: translate(-50%, -46%);
    transition: transform .25s, opacity .2s, visibility .25s;
  }
  html.dth-sg-on .dth-sg {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
  .dth-sg-hd::before {
    display: none;
  }
  .dth-sg-bd {
    padding: 18px 22px 22px;
  }
  .dth-sg-fig {
    grid-template-columns: 190px 1fr;
    justify-items: stretch;
  }
}

/* ===== قسم عرض البكج المختصر ===== */
body.product-single .dth-wo {
  margin: 16px 0 8px;
}

body.product-single .dth-wo-ch {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8px;
}

body.product-single .dth-wo-ch button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 74px;
  margin: 0;
  padding: 10px 8px 8px;
  border: 1.5px solid #d5d8dc;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--kufi);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

body.product-single .dth-wo-ch button:hover {
  border-color: var(--dth);
}

body.product-single .dth-wo-ch button.on {
  border: 2px solid var(--dth);
  background: var(--dth-soft);
}

body.product-single .dth-wo-ch .t {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.4;
}

body.product-single .dth-wo-ch .p {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--muted);
  white-space: nowrap;
}

body.product-single .dth-wo-ch .p b {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink);
}

body.product-single .dth-wo-ch button.on .p b {
  color: var(--dth);
}

body.product-single .dth-wo-ch .p s {
  margin-inline-end: 6px;
  font-size: 12px;
  color: #6b7280;
}

body.product-single .dth-wo-ch .tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 11px;
  border-radius: 999px;
  background: var(--dth);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  line-height: 21px;
  white-space: nowrap;
}

body.product-single .dth-wo-panel {
  display: none;
  margin: 12px 0 0;
  padding: 12px;
  border: 1.5px solid var(--dth-border);
  border-radius: 14px;
  background: var(--dth-soft);
}

body.product-single .dth-wo.on .dth-wo-panel {
  display: block;
}

body.product-single .dth-wo-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

body.product-single .dth-wo-hd b {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
}

body.product-single .dth-wo-guide {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: 700 12.5px/1.8 var(--kufi);
  color: var(--dth);
}

body.product-single .dth-wo-guide span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.product-single .dth-wo-guide svg {
  width: 15px;
  height: 15px;
}

body.product-single .dth-wo-slot {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 8px;
  margin: 0 0 8px;
  padding: 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

body.product-single .dth-wo-slot figure {
  grid-row: 1 / 3;
  position: relative;
  width: 60px;
  height: 76px;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #f3eee6;
}

body.product-single .dth-wo-slot figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.product-single .dth-wo-slot figure i {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--dth);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
  line-height: 1;
}

body.product-single .dth-wo-slot .v {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.product-single .dth-wo-slot .v button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin: 0;
  padding: 0 11px;
  border: 1.5px solid #d5d8dc;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 700 12.5px/1 var(--kufi);
  cursor: pointer;
}

body.product-single .dth-wo-slot .v button i {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22);
}

body.product-single .dth-wo-slot .v button.on {
  border-color: var(--dth);
  background: var(--dth-soft);
  color: var(--dth);
  font-weight: 800;
}

body.product-single .dth-wo-slot .s {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
}

@media (max-width: 480px) {
  body.product-single .dth-wo-slot .s {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

body.product-single .dth-wo-slot .s button {
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1.5px solid #d5d8dc;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: 800 11.5px/1 var(--kufi);
  direction: ltr;
  cursor: pointer;
}

body.product-single .dth-wo-slot .s button.on {
  border-color: var(--dth);
  background: var(--dth);
  color: #fff;
}

body.product-single .dth-wo-slot .s button[disabled] {
  color: #b0b4ba;
  text-decoration: line-through;
  background: #f5f6f7;
  cursor: not-allowed;
}

body.product-single .dth-wo-slot.need {
  border-color: var(--red);
  animation: dth-shake .35s;
}

body.product-single .dth-wo-same {
  display: block;
  width: 100%;
  height: 40px;
  margin: 4px 0 0;
  border: 1.5px dashed #c8b4a6;
  border-radius: 10px;
  background: #fff;
  color: var(--dth);
  font: 700 13px/1 var(--kufi);
  cursor: pointer;
}

body.product-single .dth-wo-same[hidden] {
  display: none;
}

body.product-single .dth-wo-err {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  color: var(--red);
}

body.product-single .dth-wo-err:empty {
  display: none;
}

body.product-single .dth-wo.busy .dth-wo-panel {
  opacity: .55;
  pointer-events: none;
}

/* عند تفعيل وضع البكج نخفي خيار المقاس الفردي وحقل الكمية الفردي */
body.product-single.dth-wo-on form.product-form .options-plain {
  display: none !important;
}

body.product-single.dth-wo-on .sticky-product-bar salla-quantity-input {
  display: none !important;
}