/* ==========================================================================
   clean.css — الشكل البسيط (على طريقة Joories) بألوان RYA
   بيتحمّل بعد style.css و design.css، وكل القواعد تحت body.d-clean بس.
   الألوان من لوحة التحكم: --moss = اللون الأساسي (فوشيا RYA)، --moss-dark = الغامق، --stone = الوردي الفاتح.
   ========================================================================== */
.d-clean {
  --c-ink: #1f1a1c;
  --c-muted: #8a7f84;
  --c-line: #f1e6eb;
  --c-soft: var(--stone, #fdf2f8);
  --c-pink: var(--moss, #e6007e);
  --c-deep: var(--moss-dark, #b00062);
  --c-radius: 14px;
  --font-body: 'Cairo', 'Inter', sans-serif;
  color: var(--c-ink);
  background: #fff;
  overflow-x: hidden;
}
html[lang="en"] .d-clean { --font-body: 'Inter', 'Cairo', sans-serif; }
.d-clean h1, .d-clean h2, .d-clean h3 { font-family: var(--font-body); }

/* ───────── الشريط العلوي + الهيدر ───────── */
.d-clean .site-header { border-bottom: 1px solid var(--c-line); box-shadow: none; }
.d-clean .header-top { background: var(--c-deep) !important; color: #fff !important; font-size: 12.5px; font-weight: 600; letter-spacing: .2px; }
.d-clean .dh-clean .ch-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 64px; gap: 8px; }
.d-clean .ch-start, .d-clean .ch-end { display: flex; align-items: center; gap: 2px; }
.d-clean .ch-end { justify-content: flex-end; }
.d-clean .ch-logo { justify-self: center; display: flex; align-items: center; }
.d-clean .ch-logo img { max-height: 46px !important; }
.d-clean .dh-clean .burger { display: flex; border: 0; width: 42px; height: 42px; border-radius: 50%; background: transparent; }
.d-clean .dh-clean .burger:hover { background: var(--c-soft); }
.d-clean .dh-clean .dh-ic { width: 42px; height: 42px; color: var(--c-ink); }
.d-clean .dh-clean .dh-ic svg { width: 24px; height: 24px; }
.d-clean .dh-clean .dh-badge { background: var(--c-pink); color: #fff; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; font-size: 10.5px; }
.d-clean .ch-nav { border-top: 1px solid var(--c-line); }
.d-clean .ch-nav-in { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 30px; min-height: 46px; }
.d-clean .ch-nav .dh-link { font-size: 14px; font-weight: 600; letter-spacing: .3px; }
.d-clean .ch-nav .ch-offers { color: var(--c-pink); }
@media (max-width: 860px) {
  .d-clean .ch-nav, .d-clean .ch-desk { display: none; }
  .d-clean .dh-clean .ch-row { min-height: 58px; padding-inline: 10px; }
  .d-clean .ch-logo img { max-height: 40px !important; }
}

/* ───────── البانر ───────── */
.d-clean .hero-slider { border-radius: 0; margin: 0; }
.d-clean .hero-cta { background: #fff !important; color: var(--c-ink) !important; border-radius: 999px; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.d-clean .hero-dot.is-active { background: var(--c-pink); }

/* ───────── شريط المميزات (الدفع عند الاستلام / الشحن / أصلي) ───────── */
.d-clean .bn-sec { padding-block: 14px; }
.d-clean .bn-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: none; border: 0; padding: 0; }
.d-clean .bn-item { flex-direction: column; text-align: center; gap: 6px; padding: 12px 6px; background: var(--c-soft); border-radius: 12px; border: 0; align-items: center; }
.d-clean .bn-item .bn-ic { color: var(--c-pink); background: #fff; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.d-clean .bn-item strong { display: block; font-size: 12.5px; line-height: 1.35; }
.d-clean .bn-item small { display: block; font-size: 11px; color: var(--c-muted); line-height: 1.35; }

/* ───────── شبكة المنتجات بفلتر الأقسام ───────── */
.d-clean .cg-sec { padding-top: 18px; }
.d-clean .cg-title { text-align: center; font-size: 22px; font-weight: 700; margin: 0 0 14px; letter-spacing: .2px; }
.d-clean .cg-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 14px; margin-inline: -2px; -webkit-overflow-scrolling: touch; justify-content: flex-start; }
.d-clean .cg-chips::-webkit-scrollbar { display: none; }
@media (min-width: 861px) { .d-clean .cg-chips { justify-content: center; flex-wrap: wrap; } }
.d-clean .cg-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--c-line); background: #fff; color: var(--c-ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.d-clean .cg-chip small { font-size: 11px; color: var(--c-muted); font-weight: 600; }
.d-clean .cg-chip.is-on { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.d-clean .cg-chip.is-on small { color: rgba(255,255,255,.7); }
.d-clean .cg-grid, .d-clean .product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
@media (min-width: 761px) { .d-clean .cg-grid, .d-clean .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 1100px) { .d-clean .cg-grid, .d-clean .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.d-clean .cg-js:not(.cg-all):not(.cg-filtered) .cg-more { display: none; }
.d-clean .cg-cell[hidden] { display: none !important; }
.d-clean .cg-foot { text-align: center; margin-top: 26px; }
.d-clean .cg-show { height: 48px; padding: 0 30px; border-radius: 999px; border: 1.5px solid var(--c-ink); background: #fff; color: var(--c-ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.d-clean .cg-filtered .cg-foot { display: none; }

/* ───────── كارت المنتج ───────── */
.d-clean .cc-card { display: flex; flex-direction: column; height: 100%; text-align: center; }
.d-clean .cc-img { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--c-radius); overflow: hidden; background: var(--c-soft); }
.d-clean .cc-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .5s; }
.d-clean .cc-img .cc-img2 { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) {
  .d-clean .cc-card.has-img2:hover .cc-img2 { opacity: 1; }
  .d-clean .cc-card:not(.has-img2):hover .cc-img img { transform: scale(1.04); }
}
.d-clean .cc-badges { position: absolute; top: 8px; inset-inline-start: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; pointer-events: none; }
.d-clean .cc-b { font-style: normal; font-size: 10.5px; font-weight: 700; line-height: 1; padding: 5px 9px; border-radius: 999px; background: var(--c-pink); color: #fff; white-space: nowrap; }
.d-clean .cc-b-hot { background: var(--c-deep); }
.d-clean .cc-b-out { background: #fff; color: var(--c-ink); border: 1px solid var(--c-line); }
.d-clean .cc-info { display: flex; flex-direction: column; align-items: center; flex: 1; padding: 12px 2px 0; }
.d-clean .cc-name { margin: 0 0 4px; font-size: 14px; font-weight: 600; line-height: 1.4; min-height: 2.8em; align-content: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[lang="en"] .d-clean .cc-name { text-transform: uppercase; font-size: 13px; letter-spacing: .4px; }
.d-clean .cc-name a { color: inherit; }
.d-clean .cc-price { font-size: 15px; margin-bottom: 10px; display: flex; gap: 8px; justify-content: center; align-items: baseline; flex-wrap: wrap; }
.d-clean .cc-price b { color: var(--c-pink); font-weight: 700; }
.d-clean .cc-price s { color: var(--c-muted); font-size: 12.5px; }
.d-clean .cc-rate { font-size: 12px; color: var(--c-muted); margin: -4px 0 8px; display: flex; align-items: center; gap: 4px; }
.d-clean .cc-form { width: 100%; margin: auto 0 0; }
.d-clean .cc-add { margin-top: auto; width: 100%; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 999px; border: 1.5px solid var(--c-ink); background: #fff; color: var(--c-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s, transform .1s; white-space: nowrap; }
.d-clean .cc-form .cc-add { margin-top: 0; }
.d-clean .cc-add:hover { background: var(--c-ink); color: #fff; }
.d-clean .cc-add:active { transform: scale(.97); }
.d-clean .cc-add.is-loading { opacity: .6; pointer-events: none; }
.d-clean .cc-add-ghost { border-color: var(--c-line); color: var(--c-muted); }
@media (max-width: 380px) { .d-clean .cc-add { font-size: 12px; gap: 5px; } .d-clean .cc-add svg { width: 15px; height: 15px; } }

/* ───────── عناوين الأقسام العامة ───────── */
.d-clean .ds-head { align-items: center; }
.d-clean .ds-title { font-size: 20px; font-weight: 700; }
.d-clean .ds-more { color: var(--c-ink); font-weight: 700; font-size: 13px; border-bottom: 1.5px solid var(--c-ink); }
.d-clean .section-head h2 { font-size: 20px; }
.d-clean .section-head .eyebrow { display: none; }

/* ───────── فيديو ───────── */
.d-clean .vc-media { border-radius: var(--c-radius); background: var(--c-soft); }
.d-clean .vc-video { object-fit: cover; }

/* ───────── شريط "محتارة؟" — فاتح بدل الأسود ───────── */
.d-clean .cb-sec { background: var(--c-soft); color: var(--c-ink); margin-top: 30px; }
.d-clean .cb-sec h2 { color: var(--c-ink); }
.d-clean .cb-sec p { color: var(--c-muted); }
.d-clean .cb-btn.cb-wa { background: #25D366; color: #fff; border-color: #25D366; }
.d-clean .cb-btn.cb-ig { background: #fff; color: var(--c-ink); border: 1px solid var(--c-line); }

/* ───────── الفوتر ───────── */
.d-clean .cf { background: #fff; border-top: 1px solid var(--c-line); padding: 26px 0 calc(24px + var(--mobile-bar-h, 0px)); margin-top: 0; color: var(--c-ink); }
.d-clean .cf-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.d-clean .cf-col summary { list-style: none; cursor: default; font-weight: 700; font-size: 15px; padding: 6px 0 10px; pointer-events: none; }
.d-clean .cf-col summary::-webkit-details-marker { display: none; }
.d-clean .cf-col nav { display: flex; flex-direction: column; gap: 9px; }
.d-clean .cf-col nav a { color: var(--c-muted); font-size: 14px; }
.d-clean .cf-col nav a:hover { color: var(--c-pink); }
.d-clean .cf-bottom { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--c-line); text-align: center; }
.d-clean .cf-copy { font-size: 12.5px; color: var(--c-muted); }
.d-clean .cf-lang { font-size: 13px; font-weight: 700; color: var(--c-ink); border: 1px solid var(--c-line); border-radius: 999px; padding: 6px 16px; }
.d-clean .cf .df-social { display: flex; gap: 10px; }
.d-clean .cf .df-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c-line); display: flex; align-items: center; justify-content: center; color: var(--c-ink); }
@media (max-width: 760px) {
  .d-clean .cf-cols { grid-template-columns: 1fr; gap: 0; }
  .d-clean .cf-col { border-bottom: 1px solid var(--c-line); }
  .d-clean .cf-col summary { pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
  .d-clean .cf-col summary::after { content: '+'; font-size: 20px; font-weight: 400; color: var(--c-muted); }
  .d-clean .cf-col[open] summary::after { content: '−'; }
  .d-clean .cf-col nav { padding-bottom: 14px; }
}

/* ───────── الشريط السفلي على الموبايل ───────── */
.d-clean .dm-tabs { background: #fff; border-top: 1px solid var(--c-line); box-shadow: 0 -2px 14px rgba(0,0,0,.04); }
.d-clean .dm-tabs .is-on { color: var(--c-pink); }
.d-clean .dm-tabs b { background: var(--c-pink) !important; }

/* ───────── صفحة المنتج ───────── */
.d-clean .page-header--crumbs { background: none; padding-block: 10px 4px; border: 0; }
.d-clean .breadcrumb { font-size: 12.5px; color: var(--c-muted); }
.d-clean .gallery-main { border-radius: var(--c-radius); overflow: hidden; background: var(--c-soft); }
.d-clean .gallery-thumbs button { border-radius: 10px; }
.d-clean .gallery-thumbs button.active { border-color: var(--c-pink); }
.d-clean .product-info h1 { font-size: 22px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.d-clean .product-info .cat-name { color: var(--c-muted); font-size: 12.5px; letter-spacing: .3px; }
.d-clean .product-info .price-tag { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.d-clean .product-info .price-tag .now { color: var(--c-pink); font-size: 24px; font-weight: 700; }
.d-clean .product-info .price-tag .was { color: var(--c-muted); font-size: 15px; }
.d-clean .product-info .off-badge { background: var(--c-pink); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.d-clean .product-info .short-desc { color: #5d5357; font-size: 14.5px; line-height: 1.75; }
.d-clean .product-info .opt-label { font-weight: 700; font-size: 14px; }
.d-clean .qty-input { border-radius: 999px; overflow: hidden; border: 1px solid var(--c-line); }
/* الزرارين: "اطلبي دلوقتي" أساسي (فوشيا) و"أضف للسلة" تحته بإطار — الاتنين على العرض كله */
.d-clean #add-to-cart-form { display: flex; flex-direction: column; }
.d-clean #add-to-cart-form > * { order: 0; }
.d-clean .add-to-cart-row { order: 3 !important; margin: 0 0 10px; }
.d-clean .buy-now-btn { order: 2 !important; }
.d-clean .trust-strip { order: 4 !important; }
.d-clean #add-to-cart-btn, .d-clean .buy-now-btn {
  width: 100%; min-height: 54px; border-radius: 999px !important; font-size: 16px; font-weight: 700; letter-spacing: .2px; box-shadow: none;
}
.d-clean .buy-now-btn { background: var(--c-pink) !important; border: 0 !important; color: #fff !important; margin: 4px 0 10px !important; }
.d-clean .buy-now-btn:hover:not(:disabled) { background: var(--c-deep) !important; }
.d-clean #add-to-cart-btn { background: #fff !important; color: var(--c-ink) !important; border: 1.5px solid var(--c-ink) !important; }
.d-clean #add-to-cart-btn:hover:not(:disabled) { background: var(--c-ink) !important; color: #fff !important; }
.d-clean .buy-now-btn:disabled, .d-clean #add-to-cart-btn:disabled { opacity: .45; }
.d-clean .trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; list-style: none; padding: 12px; margin: 0 0 6px; background: var(--c-soft); border-radius: 12px; font-size: 13px; font-weight: 600; }
.d-clean .pd-acc { border-top: 1px solid var(--c-line); }
.d-clean .pd-item { border-bottom: 1px solid var(--c-line); }
.d-clean .pd-bundle { border-radius: 12px; border: 1px dashed var(--c-pink); background: #fff; }
.d-clean .shade-item.selected, .d-clean .bs-opt.selected, .d-clean .bundle-item.picked { border-color: var(--c-pink) !important; box-shadow: 0 0 0 2px var(--c-pink) inset; }
.d-clean .bundle-status { border-radius: 12px; background: var(--c-soft); }

/* الشريط الثابت تحت في صفحة المنتج */
.d-clean .sticky-buy { gap: 10px; padding: 10px 12px; }
.d-clean .sticky-buy .sb-price { color: var(--c-pink); }
.d-clean .sticky-buy .sb-price s { color: var(--c-muted); }
.d-clean .sticky-buy .btn { border-radius: 999px !important; background: var(--c-pink) !important; color: #fff !important; border: 0 !important; min-height: 46px; padding: 0 22px; font-weight: 700; }
.d-clean .sticky-buy .sb-cart { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--c-ink); background: #fff; color: var(--c-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* ───────── السلة الجانبية ───────── */
.d-clean .cart-drawer { border-radius: 0; }
.d-clean .cd-foot .btn, .d-clean .cd-checkout { border-radius: 999px !important; background: var(--c-pink) !important; border-color: var(--c-pink) !important; color: #fff !important; min-height: 52px; font-weight: 700; }

/* ───────── الأزرار العامة ───────── */
.d-clean .btn { border-radius: 999px; }

/* ───────── صفحة المتجر ───────── */
.d-clean .shop-chips a, .d-clean .chip { border-radius: 999px; }

/* ───────── صفحة الدفع ───────── */
.d-clean .co2-card { border-radius: 16px; border-color: var(--c-line); }
.d-clean .co2 .form-group input, .d-clean .co2 .form-group select { border-radius: 12px; background: #fff; border-color: #eadde3; }
.d-clean .co2 .form-group label { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--c-ink); }
.d-clean .co2-h, .d-clean .co2-title { text-transform: none; letter-spacing: 0; }
.d-clean .co2-btn { border-radius: 999px !important; background: var(--c-pink) !important; min-height: 56px; font-size: 16.5px; }
.d-clean .co2-pm-box { border-radius: 12px; }
.d-clean .co2-item img { border-radius: 10px; }
.d-clean .co2-coupon-f input { border-radius: 999px; padding: 0 16px; }
.d-clean .co2-coupon-f button { border-radius: 999px; background: var(--c-ink); }
.d-clean .co2-total span:last-child { color: var(--c-pink); }

/* صفحة المنتج على الموبايل: الاسم والسعر يبانوا بدري (من غير المسار، وصور مصغّرة أصغر) */
@media (max-width: 760px) {
  .d-clean .page-header--crumbs { display: none; }
  .d-clean .product-single { padding-top: 10px; }
  .d-clean .gallery-thumbs { gap: 6px; margin-top: 8px; }
  .d-clean .gallery-thumbs button { width: 52px; height: 52px; flex: 0 0 52px; }
  .d-clean .product-info { padding-top: 4px; }
  .d-clean .product-info h1 { font-size: 20px; margin-bottom: 4px; }
  .d-clean .product-info .price-tag .now { font-size: 22px; }
}
/* صفحة الدفع من غير تشتيت: من غير الشريط السفلي والفوتر، وشريط التأكيد تحت خالص */
@media (max-width: 860px) {
  .d-clean:has(#checkout-form) .dm-tabs, .d-clean:has(#checkout-form) .cf { display: none; }
  .d-clean:has(#checkout-form) { --mobile-bar-h: 0px; padding-bottom: 80px; }
  .d-clean:has(#checkout-form) .co2-sticky { bottom: 0; }
}

/* الأقسام اللي تحت (فيديو، آراء، تواصل، فوتر) مابتترسمش لحد ما العميلة تقرب منها — الصفحة بتفتح أسرع على الموبايل */
.d-clean .vc-sec, .d-clean .rv-sec, .d-clean .cb-sec, .d-clean .cf { content-visibility: auto; contain-intrinsic-size: auto 560px; }
