/* Dukan – main.css (mobile-first, logical properties for RTL) */
:root {
	--accent: #e02b20;
	--ink: #1c1c1f;
	--muted: #6b6f78;
	--line: #ebebee;
	--soft: #f4f4f6;
	--paper: #fcfbf8;
	--ok: #17a34a;
	--gold: #f4a51c;
	--r: 18px;
	--r-sm: 12px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Arabic", Tahoma, sans-serif;
	--safe-b: env(safe-area-inset-bottom, 0px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.is-locked { overflow: hidden; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; inset-inline-start: 12px; top: 12px; width: auto; height: auto; clip: auto; z-index: 999; background: #fff; padding: 10px 16px; border-radius: 8px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
.page-pad { padding-block: 24px 48px; }
.page-title { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; margin: 0 0 20px; letter-spacing: -.01em; }
.center { text-align: center; }
.entry__content { max-width: 72ch; }

/* ---------- Buttons & fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; letter-spacing: .02em; transition: transform .15s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn .icon { width: 22px; height: 22px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--ghost { border: 1.5px solid var(--line); background: #fff; }
.btn--block { display: flex; width: 100%; }
.select { width: 100%; min-height: 50px; padding: 0 44px 0 16px; padding-inline: 16px 44px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6f78' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; font-weight: 600; appearance: none; }
[dir="rtl"] .select { background-position: left 14px center; }
.field-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; margin: 14px 0 6px; }
.is-busy { opacity: .55; pointer-events: none; }

/* ---------- Header ---------- */
.topbar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .03em; text-align: center; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.logo img { max-height: 60px; width: auto; }
.logo__text { font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.nav { display: none; }
.nav ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; font-weight: 600; }
.nav a:hover, .nav .current-menu-item a { color: var(--accent); }
.header__actions { display: flex; gap: 8px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--soft); }
.icon-btn .icon { width: 24px; height: 24px; }
.icon-btn--plain { background: none; }
.icon-btn--desk { display: none; }
.badge { position: absolute; top: -4px; inset-inline-end: -4px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; border: 2px solid #fff; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; font-style: normal; }
.badge[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; margin-top: 16px; }
.hero__track { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r); scrollbar-width: none; }
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide { flex: 0 0 100%; scroll-snap-align: start; }
.hero__slide img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.hero__arrow { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.hero__arrow--prev { inset-inline-start: 28px; }
.hero__arrow--next { inset-inline-end: 28px; }
[dir="rtl"] .hero__arrow .icon { transform: scaleX(-1); }
.hero__dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.hero__dots button { width: 10px; height: 10px; border-radius: 5px; background: #d5d5da; transition: width .25s, background .25s; }
.hero__dots .is-active { width: 44px; background: var(--accent); }

/* ---------- Trust + estimator ---------- */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
.trust__item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); text-align: center; }
.trust__item strong { font-size: 14px; line-height: 1.25; }
.trust__item small { color: var(--muted); font-size: 13px; }
.trust__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; margin-bottom: 4px; }
.trust__ic--green { background: #e8f7ee; color: var(--ok); }
.trust__ic--red { background: #fdecea; color: var(--accent); }
.trust__ic--amber { background: #fff4df; color: #d97706; }
.trust__ic--blue { background: #e8f0fe; color: #2563eb; }

.estimate { margin-top: 20px; padding: 20px; border: 1px solid #f6d3d0; border-radius: var(--r); background: linear-gradient(180deg, #fff7f6, #fff); }
.estimate__title { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; font-weight: 800; }
.estimate__title .icon { color: var(--accent); }
.estimate__free { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 14px; border-radius: var(--r-sm); background: var(--accent); color: #fff; font-weight: 800; }
.estimate__label { display: block; margin: 18px 0 8px; font-weight: 600; }
.estimate__row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; }
.estimate__price { color: var(--accent); font-weight: 800; }
.estimate__delay { color: var(--muted); font-size: 14px; }

/* ---------- Product grid & card ---------- */
.section-title { margin: 40px 0 20px; font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.15; letter-spacing: -.02em; text-align: center; }
.home-products .center { margin-top: 28px; }
ul.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.card__media { position: relative; display: block; aspect-ratio: 1; background: var(--soft); }
.card__img { width: 100%; height: 100%; object-fit: cover; }
.card__badge { position: absolute; top: 0; inset-inline-start: 0; z-index: 1; display: flex; align-items: center; gap: 4px; padding: 6px 12px; border-end-end-radius: var(--r-sm); background: color-mix(in srgb, var(--accent) 88%, transparent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.card__badge .icon { width: 14px; height: 14px; }
.card__out { position: absolute; bottom: 10px; inset-inline-start: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 12px; }
.card__title { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.card__add { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff; transition: transform .15s; }
.card__add:active { transform: scale(.92); }
.card__add .icon { width: 22px; height: 22px; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; line-height: 1.15; color: var(--accent); font-size: 1.15rem; font-weight: 800; }
.price ins { order: 1; text-decoration: none; }
.price del { order: 2; flex-basis: 100%; color: #9a9ca3; font-size: .8rem; font-weight: 500; }
.price--lg, .price--xl, .price--row { column-gap: 12px; }
.price--lg del, .price--xl del, .price--row del { flex-basis: auto; }
.price--lg { margin: 12px 0 6px; font-size: 2rem; }
.price--lg del { font-size: 1.1rem; }

.pmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: 13px; }
.stars { background: linear-gradient(90deg, var(--gold) var(--r), #dcdce0 var(--r)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: 1px; font-size: 14px; }
.sold { display: inline-flex; align-items: center; gap: 3px; }
.sold .icon { width: 15px; height: 15px; color: var(--accent); }

/* ---------- Offer box ---------- */
.promo { display: flex; gap: 16px; margin: 18px 0; padding: 18px; border: 1.5px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: var(--r); background: linear-gradient(135deg, #fff1ef, #fffaf9); }
.promo__ic { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--accent); color: #fff; font-size: 24px; font-weight: 900; }
.promo p { margin: 0; }
.promo__tag { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .05em; }
.promo__title { margin-top: 2px !important; font-size: 1.1rem; font-weight: 800; }
.promo__note { margin-top: 6px !important; color: var(--muted); font-size: 14px; }
.promo__end { margin-top: 6px !important; font-size: 14px; font-weight: 700; }

/* ---------- Layers ---------- */
.layer { position: fixed; inset: 0; z-index: 100; visibility: hidden; transition: visibility 0s .3s; }
.layer.is-open { visibility: visible; transition: none; }
.layer__scrim { position: absolute; inset: 0; background: rgba(15, 15, 20, .45); opacity: 0; transition: opacity .3s; }
.layer.is-open .layer__scrim { opacity: 1; }
.layer__panel { position: absolute; background: #fff; outline: none; transition: transform .32s cubic-bezier(.2, .8, .2, 1); }

/* Drawer */
.layer--drawer .layer__panel { inset-block: 0; inset-inline-end: 0; width: min(430px, 100%); transform: translateX(100%); }
[dir="rtl"] .layer--drawer .layer__panel { transform: translateX(-100%); }
.layer--drawer.is-open .layer__panel { transform: none; }
.drawer { display: flex; flex-direction: column; background: var(--paper); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { margin: 0; font-size: 1.5rem; font-weight: 500; }
.drawer__body { display: flex; flex: 1; flex-direction: column; min-height: 0; transition: opacity .2s; }
.drawer__empty { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 32px; color: var(--muted); text-align: center; }
.drawer__empty > .icon { width: 56px; height: 56px; color: #c9c9cf; }
.mini { flex: 1; overflow-y: auto; margin: 0; padding: 8px 20px; list-style: none; overscroll-behavior: contain; }
.mini__item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.mini__img img { width: 76px; height: 76px; border-radius: var(--r-sm); object-fit: cover; }
.mini__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mini__name { font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini__info .variation { margin: 0; color: var(--muted); font-size: 12px; }
.mini__info .variation dt, .mini__info .variation dd { display: inline; margin: 0; }
.mini__info .variation p { display: inline; margin: 0; }
.mini__price { color: var(--accent); font-weight: 800; }
.mini__remove { align-self: start; padding: 4px; color: #9a9ca3; }
.qty { display: inline-flex; align-items: center; align-self: start; margin-top: 4px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { display: grid; place-items: center; width: 40px; height: 38px; }
.qty span { min-width: 22px; font-weight: 700; text-align: center; }
.drawer__foot { padding: 16px 20px calc(16px + var(--safe-b)); border-top: 1px solid var(--line); background: #fff; }
.timer { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px; padding: 10px; border: 1px solid #fbd9a5; border-radius: var(--r-sm); background: #fff8ec; color: #c26100; font-size: 14px; font-weight: 700; }
.progress { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--soft); }
.progress p { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.progress p .icon { color: var(--accent); }
.progress.is-done p .icon { color: var(--ok); }
.progress__bar { height: 6px; overflow: hidden; border-radius: 3px; background: #e2e2e6; }
.progress__bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .4s; }
.progress.is-done .progress__bar i { background: var(--ok); }
.totals { margin: 14px 0; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 4px; }
.totals dt { color: var(--muted); font-weight: 600; }
.totals dd { margin: 0; font-weight: 600; }
.totals .is-free { color: var(--ok); font-weight: 800; }
.totals__promo { margin-block: 4px; padding: 8px 10px !important; border-radius: 10px; background: #edfaf1; }
.totals__promo dt, .totals__promo dd { display: flex; align-items: center; gap: 6px; color: var(--ok) !important; font-size: 14px; font-weight: 800 !important; }
.totals__grand { margin-top: 8px; padding-top: 12px !important; border-top: 1px solid var(--line); align-items: baseline; }
.totals__grand dt { color: var(--ink); font-weight: 800; }
.totals__grand dd { color: var(--accent); font-size: 1.8rem; font-weight: 900; }
.drawer__foot .btn + .btn { margin-top: 10px; }

/* Modal (quick view): bottom sheet on mobile, dialog on desktop */
.layer--modal .layer__panel,
.layer--sheet .layer__panel { inset-inline: 0; bottom: 0; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; transform: translateY(100%); overscroll-behavior: contain; }
.layer--modal.is-open .layer__panel,
.layer--sheet.is-open .layer__panel { transform: none; }
.modal__close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.qv__gallery { padding: 14px 14px 0; }
.qv__main { position: relative; overflow: hidden; border-radius: var(--r); background: var(--soft); aspect-ratio: 1; }
.qv__main img { display: none; width: 100%; height: 100%; object-fit: contain; }
.qv__main img.is-active { display: block; }
.qv__nav { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.qv__nav--prev { inset-inline-start: 10px; }
.qv__nav--next { inset-inline-end: 10px; }
[dir="rtl"] .qv__nav .icon { transform: scaleX(-1); }
.qv__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.qv__thumbs button { flex: none; width: 68px; height: 68px; overflow: hidden; border: 2px solid transparent; border-radius: 12px; }
.qv__thumbs button.is-active { border-color: var(--accent); }
.qv__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.qv__info { padding: 18px 20px 8px; background: var(--paper); }
.qv__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qv__cat { color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .05em; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fdecea; color: var(--accent); font-size: 14px; font-weight: 700; }
.chip .icon { width: 18px; height: 18px; }
.qv__title { margin: 10px 0 6px; font-size: 1.6rem; line-height: 1.2; letter-spacing: -.01em; }
.instock { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ok); font-weight: 700; font-size: 15px; }
.instock::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.outstock { margin: 0; color: var(--muted); font-weight: 700; }
.qv__desc { color: #3c3f46; }
.qv__more { display: inline-block; margin-bottom: 10px; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.qv__cta { position: sticky; bottom: 0; padding: 12px 20px calc(12px + var(--safe-b)); background: linear-gradient(transparent, #fff 30%); }

/* Sheets (search, categories) */
.sheet { padding: 20px 20px calc(20px + var(--safe-b)); }
.sheet__title { margin: 0 0 12px; font-size: 1.3rem; }
.search { display: flex; align-items: center; gap: 10px; padding-inline: 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--soft); }
.search input { flex: 1; min-height: 52px; border: 0; background: none; outline: none; font-size: 16px; }
.cats { margin: 0; padding: 0; list-style: none; }
.cats a { display: flex; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 600; }
.cats small { color: var(--muted); }

/* ---------- Floating & bottom nav ---------- */
.wa { position: fixed; bottom: calc(92px + var(--safe-b)); inset-inline-end: 16px; z-index: 50; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 6px 20px rgba(37, 211, 102, .4); }
.wa .icon { width: 30px; height: 30px; }
.bnav { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); padding-bottom: var(--safe-b); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
.bnav > * { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; color: var(--muted); font-size: 12px; font-weight: 600; }
.bnav .icon { width: 24px; height: 24px; }
.bnav .is-active { color: var(--accent); }
.bnav .is-active .icon { padding: 4px 14px; width: 52px; height: 32px; border-radius: 16px; background: #fdecea; }
.bnav__cart { color: var(--accent) !important; }
.bnav .badge { top: 4px; inset-inline-end: calc(50% - 26px); }
body { padding-bottom: calc(64px + var(--safe-b)); }

/* ---------- Footer, toast, spinner ---------- */
.toast { position: fixed; bottom: calc(84px + var(--safe-b)); left: 50%; z-index: 200; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: .25s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.spinner { width: 34px; height: 34px; margin: 48px auto; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { padding: 40px 20px; color: var(--accent); text-align: center; }

/* ---------- WooCommerce pages (shop, single) ---------- */
.woocommerce-products-header__title { margin: 0 0 16px; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.woocommerce-result-count { margin: 0; color: var(--muted); font-size: 14px; }
.woocommerce-ordering { margin: 0 0 16px; }
.woocommerce-ordering select { min-height: 44px; padding-inline: 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { margin: 0 0 16px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--soft); list-style: none; }
.woocommerce-error { background: #fdecea; color: #a61b12; }
.woocommerce-pagination ul { display: flex; justify-content: center; gap: 6px; margin: 32px 0 0; padding: 0; list-style: none; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; }
.woocommerce-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.onsale { display: none; }

.woocommerce-product-gallery { position: relative; overflow: hidden; border-radius: var(--r); }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img { display: block; width: 100%; border-radius: var(--r); }
.woocommerce-product-gallery .flex-control-thumbs { display: flex; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; overflow-x: auto; }
.woocommerce-product-gallery .flex-control-thumbs li { flex: none; width: 72px; }
.woocommerce-product-gallery .flex-control-thumbs img { border-radius: 12px; opacity: .6; cursor: pointer; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; outline: 2px solid var(--accent); }
.woocommerce-product-gallery__trigger { display: none; }
.product_title { margin: 0 0 8px; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; }
.woocommerce-product-details__short-description { color: #3c3f46; }
.stock { font-weight: 700; color: var(--ok); }
.stock.out-of-stock { color: var(--muted); }
form.cart { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
form.cart .quantity input { width: 80px; min-height: 52px; border: 1.5px solid var(--line); border-radius: 999px; text-align: center; font-weight: 700; }
form.cart .variations { width: 100%; border-collapse: collapse; }
form.cart .variations th { padding: 6px 12px 6px 0; text-align: start; font-weight: 700; }
form.cart .variations select { min-height: 46px; width: 100%; padding-inline: 12px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.reset_variations { font-size: 13px; color: var(--muted); }
.single_variation_wrap { width: 100%; }
.woocommerce-variation-add-to-cart { display: flex; gap: 12px; }
.single_add_to_cart_button { flex: 1; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; letter-spacing: .02em; }
.single_add_to_cart_button.disabled { opacity: .45; }
.product_meta { color: var(--muted); font-size: 14px; }
.product_meta > span { display: block; }
.woocommerce-tabs { grid-column: 1 / -1; }
.woocommerce-tabs .tabs { display: flex; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; overflow-x: auto; }
.woocommerce-tabs .tabs a { display: block; padding: 10px 18px; border-radius: 999px; background: var(--soft); font-weight: 700; white-space: nowrap; }
.woocommerce-tabs .tabs .active a { background: var(--ink); color: #fff; }
.related, .upsells { grid-column: 1 / -1; }
.related > h2, .upsells > h2 { font-size: 1.5rem; }

/* ---------- Shop toolbar & filters ---------- */
.shop-intro { margin: 0 0 16px; color: var(--muted); font-size: 1.05rem; }
.term-description { margin-bottom: 16px; color: var(--muted); }
.toolbar { display: grid; gap: 12px; margin: 0 0 20px; padding: 12px; border: 1.5px solid var(--ink); border-radius: 22px; }
.toolbar__search { display: flex; align-items: center; gap: 10px; padding-inline: 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--soft); color: var(--muted); }
.toolbar__search:focus-within { border-color: var(--ink); background: #fff; }
.toolbar__search input { flex: 1; min-width: 0; min-height: 50px; border: 0; background: none; outline: none; color: var(--ink); font-size: 16px; }
.toolbar__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.filter-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-weight: 700; }
.filter-btn .badge { position: static; border: 0; }
.toolbar__count { margin: -8px 0 16px; color: var(--muted); font-size: 14px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.sheet__head .sheet__title { margin: 0; }
.input { width: 100%; min-height: 50px; padding-inline: 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--soft); font-weight: 600; }
.input:focus { border-color: var(--ink); outline: none; background: #fff; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
.sheet__actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; margin-top: 24px; }

/* ---------- Product page ---------- */
.single-product .page-pad { padding-top: 12px; }
.pdp__top { display: grid; gap: 20px; }
.pgal { position: relative; overflow: hidden; border-radius: 22px; background: var(--soft); }
.pgal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pgal__track::-webkit-scrollbar { display: none; }
.pgal__slide { flex: 0 0 100%; scroll-snap-align: start; }
.pgal__slide img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.pgal__badge { position: absolute; top: 0; inset-inline-start: 24px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 0 0 16px 16px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 800; }
.pgal__arrow { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(20, 20, 24, .55); color: #fff; }
.pgal__arrow--prev { inset-inline-start: 12px; }
.pgal__arrow--next { inset-inline-end: 12px; }
[dir="rtl"] .pgal__arrow .icon { transform: scaleX(-1); }
.pgal__dots { position: absolute; bottom: 14px; left: 50%; translate: -50% 0; display: flex; gap: 6px; padding: 7px 10px; border-radius: 999px; background: rgba(20, 20, 24, .45); }
.pgal__dots button { width: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .6); transition: width .25s; }
.pgal__dots .is-active { width: 24px; background: #fff; }

.pdp__summary .product_title { margin: 4px 0 8px; font-size: clamp(1.6rem, 5vw, 2.2rem); line-height: 1.15; letter-spacing: -.02em; }
.pdp__rating { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.pdp__rating a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.stars--lg { font-size: 20px; }
.stars--xl { font-size: 30px; letter-spacing: 4px; }
.pdp__status { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.pdp__status .sold { font-size: 15px; font-weight: 700; color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; }
.pill .icon { width: 15px; height: 15px; }
.pill--ok { border: 1px solid #bfe8cd; background: #edfaf1; color: #12813b; }
.pill--muted { background: var(--soft); color: var(--muted); }
.pdp__price { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; }
.price--xl { font-size: clamp(2.2rem, 9vw, 3rem); font-weight: 900; letter-spacing: -.02em; }
.price--xl del { font-size: 1.3rem; font-weight: 600; }
.pct { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 900; font-size: 15px; }
.promo-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 16px; padding: 14px 18px; border: 1.5px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 18px; background: linear-gradient(90deg, #fff1ef, #fff); color: var(--accent); font-weight: 800; }
.promo-strip small { width: 100%; padding-inline-start: 30px; color: var(--muted); font-weight: 600; }
.pdp__excerpt { color: #3c3f46; }

/* Buy block (simple form + variable product's button area) */
.pdp form.cart { margin: 16px 0; }
.pdp form.cart:not(.variations_form),
.pdp .woocommerce-variation-add-to-cart { display: grid; grid-template-columns: minmax(0, 1fr) 60px; gap: 12px; }
.pdp .single_variation_wrap { margin-top: 12px; }
.pdp .woocommerce-variation-price { margin-bottom: 8px; }
.qtybox { order: 1; grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 20px; padding-inline: 20px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--soft); }
.qtybox__label { font-weight: 800; letter-spacing: .04em; }
.qtybox .quantity { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.qtybox .quantity input.qty { width: 44px; min-height: 46px; padding: 0; border: 0; border-radius: 0; background: none; font-size: 1.2rem; font-weight: 800; text-align: center; -moz-appearance: textfield; }
.qtybox .quantity input.qty::-webkit-inner-spin-button, .qtybox .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qstep { display: grid; place-items: center; width: 44px; height: 46px; }
.pdp .single_add_to_cart_button { order: 3; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 16px; background: var(--accent); color: #fff; font-weight: 800; letter-spacing: .02em; }
.pdp .single_add_to_cart_button.buy-now { order: 2; grid-column: 1 / -1; min-height: 62px; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 78%, #000)); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 32%, transparent); font-size: 1.05rem; }
.buy-now b { padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, .22); }
.share-btn { order: 4; display: grid; place-items: center; min-height: 56px; border-radius: 16px; background: #22c55e; color: #fff; }
.share-btn .icon { width: 24px; height: 24px; }
.pdp .stock { grid-column: 1 / -1; margin: 0; }

.ship { margin-top: 18px; padding: 18px; border: 1px solid #f6d3d0; border-radius: 20px; background: #fff7f6; }
.ship__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ship__title { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--accent); font-weight: 800; }
.ship ul { margin: 12px 0 0; padding: 0; list-style: none; }
.ship li { position: relative; padding: 5px 0; padding-inline-start: 22px; }
.ship li::before { content: ""; position: absolute; top: 14px; inset-inline-start: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.ship li.is-ok { color: var(--muted); }
.ship li.is-ok::before { background: var(--ok); }
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.perks li { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; }
.perks strong { display: block; font-size: 14px; line-height: 1.2; }
.perks small { color: var(--muted); font-size: 12.5px; }
.perks__ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; }
.perks__ic--red { background: #fdecea; color: var(--accent); }
.perks__ic--green { background: #e8f7ee; color: var(--ok); }
.perks__ic--blue { background: #e8f0fe; color: #2563eb; }
.perks__ic--amber { background: #fff4df; color: #d97706; }

/* Section cards */
.card-sec { margin-top: 28px; padding: 26px 20px; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: 0 12px 32px rgba(0, 0, 0, .05); }
.card-sec__title { margin: 8px 0 4px; font-size: clamp(1.5rem, 5vw, 1.9rem); line-height: 1.15; letter-spacing: -.02em; }
.sec-sub { margin: 0; color: var(--muted); }
.pdp__desc { max-width: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 1.05rem; color: #3c3f46; }
.pdp__desc img { border-radius: 14px; }

/* Reviews */
.rv-write { margin: 18px 0; }
.rv-write > summary { list-style: none; cursor: pointer; }
.rv-write > summary::-webkit-details-marker { display: none; }
.rv-write[open] > summary { margin-bottom: 12px; }
.rv-write__body p { margin: 0 0 10px; }
.input--area { min-height: 110px; padding-block: 12px; resize: vertical; font-weight: 500; }
.rate-field { margin: 0 0 6px; padding: 0; border: 0; }
.rate { display: inline-flex; flex-direction: row-reverse; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { padding: 0 3px; color: #d6d6db; font-size: 34px; line-height: 1; cursor: pointer; }
.rate label:hover, .rate label:hover ~ label, .rate input:checked ~ label { color: var(--gold); }
.rate input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.rv-sum { margin: 20px 0; padding: 24px 20px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, #fafafa, #fffdf8); text-align: center; }
.rv-sum__avg { margin: 0; font-size: 4rem; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.rv-sum__count { margin: 6px 0 16px; font-weight: 700; }
.bars { display: grid; gap: 10px; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; }
.bars li { display: grid; grid-template-columns: 72px 1fr 44px; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; }
.bars li span:first-child { text-align: start; }
.bars li span:last-child { color: var(--muted); text-align: end; }
.bars i { height: 10px; overflow: hidden; border-radius: 5px; background: #e6e6ea; }
.bars b { display: block; height: 100%; border-radius: inherit; background: #fbb400; }
.rv-list { display: grid; gap: 14px; }
.rv { padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .04); }
.rv__head { display: flex; gap: 12px; }
.rv__avatar { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; }
.rv__name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-weight: 800; }
.rv__sub { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.rv__sub span { display: inline-flex; align-items: center; gap: 4px; }
.rv__sub .icon { width: 16px; height: 16px; color: var(--accent); }
.rv__rating { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 4px 14px; border: 1px solid #fbe3a6; border-radius: 999px; background: #fffbef; font-weight: 800; }
.rv__text { margin-top: 10px; color: #3c3f46; }
.rv__text p { margin: 0 0 6px; }
.rv-more > summary { list-style: none; cursor: pointer; }
.rv-more > summary::-webkit-details-marker { display: none; }
.rv-more[open] > summary { display: none; }
.rv-more .rv-list { margin-top: 0; }
.rv-empty { margin: 16px 0 0; color: var(--muted); text-align: center; }

/* FAQ */
.faq__head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.faq__head .card-sec__title { margin-top: 0; }
.faq__ic { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 16px; background: var(--soft); }
.faq__ic .icon { width: 28px; height: 28px; }
.faq__item { margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fafafb; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; font-weight: 800; line-height: 1.35; list-style: none; cursor: pointer; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--muted); transition: transform .2s; }
.faq__item[open] summary { border-bottom: 1px solid var(--line); background: #f4f5f7; }
.faq__item[open] summary .icon { color: var(--accent); transform: rotate(180deg); }
.faq__a { padding: 16px 20px 20px; background: #fff; color: #4b4f57; }

/* Related */
.related-sec { margin-top: 36px; }
.related-sec__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.related-sec__title { margin: 0 0 4px; font-size: clamp(1.5rem, 5vw, 1.9rem); letter-spacing: -.02em; }
.link-more { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--accent); font-weight: 800; }

/* Sticky buy bar */
.buybar { position: fixed; inset-inline: 0; bottom: calc(64px + var(--safe-b)); z-index: 55; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -8px 24px rgba(0, 0, 0, .06); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
.buybar.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
.price--row { font-size: 1.6rem; font-weight: 900; }
.cod { display: flex; align-items: center; gap: 6px; color: #12813b; font-weight: 700; font-size: 14px; }
.cod::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.buybar .btn { min-height: 52px; border-radius: 16px; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent); }
body.has-buybar .wa { bottom: calc(168px + var(--safe-b)); }
body.single-product { padding-bottom: calc(140px + var(--safe-b)); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; padding-top: 44px; background: #2a2a2d; color: #b9bac0; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 36px; }
.footer__logo { display: inline-block; margin-bottom: 14px; color: #fff; font-size: 26px; font-weight: 900; }
.footer__logo img { max-height: 64px; width: auto; }
.footer__logo img.is-inverted { filter: brightness(0) invert(1); }
.footer__brand p { max-width: 46ch; margin: 0; line-height: 1.65; }
.social { display: flex; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.social a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; }
.footer__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .04em; }
.footer__title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.footer__col ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer__contact .icon { margin-top: 2px; color: var(--accent); }
.footer__contact small { display: block; font-size: 14px; }
.footer__contact strong { color: #fff; }
.footer__cities { display: flex; gap: 10px; margin-top: 32px; padding-top: 22px; border-top: 1px solid #3d3d42; line-height: 1.6; }
.footer__cities .icon { flex: none; margin-top: 3px; color: var(--accent); }
.footer__cities strong { color: #e4e4e8; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 28px; color: #8d8e95; font-size: 14px; }
.footer__bottom p { margin: 0; }

/* ---------- Classic checkout ---------- */
.woocommerce-checkout #place_order { width: 100%; min-height: 58px; border: 0; border-radius: 16px; background: var(--accent) !important; color: #fff; font-size: 1.1rem; font-weight: 800; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 30%, transparent); }
.woocommerce-checkout .input-text, .woocommerce-checkout select { min-height: 50px; padding-inline: 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 16px; }
.woocommerce-checkout textarea.input-text { min-height: 90px; padding-block: 10px; }
.woocommerce-checkout .input-text:focus, .woocommerce-checkout select:focus { border-color: var(--ink); outline: none; }
.woocommerce-checkout .shop_table { border-radius: 16px !important; }
.woocommerce-checkout #payment { border-radius: 18px; }

/* ---------- Isolation: neutralise leftover styles from other themes/plugins ---------- */
.site-main :is(h1, h2, h3, h4) { color: var(--ink); font-family: var(--font); }
.site-main :is(strong, b, em) { color: inherit; }
.site-main :is(.pdp, .pdp__top, .pdp__summary, .pgal, .card-sec, .related-sec, .reviews, .faq) { float: none !important; width: auto !important; max-width: 100% !important; clear: both; }
.site-main .pdp { display: block !important; }
.site-main .pdp__top { display: grid !important; }
.site-main .pdp__summary > *, .site-main .card-sec > * { float: none !important; }
.site-main .ship__title, .site-main .promo-strip { color: var(--accent); }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
	ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	.trust { grid-template-columns: repeat(4, 1fr); }
	.card__body { padding: 16px; }
}

@media (min-width: 900px) {
	.nav, .icon-btn--desk { display: block; }
	.icon-btn--desk { display: grid; }
	.bnav { display: none; }
	body { padding-bottom: 0; }
	.wa { bottom: 24px; }
	.toast { bottom: 24px; }
	ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
	.card__title { font-size: 16px; }
	.toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; }
	.pdp__top { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
	.pgal { position: sticky; top: 96px; }
	.card-sec { padding: 36px 40px; }
	.buybar { bottom: 0; padding-inline: max(24px, calc((100% - 1208px) / 2)); }
	body.single-product { padding-bottom: 0; }
	body.has-buybar { padding-bottom: 80px; }
	body.has-buybar .wa { bottom: 100px; }
	.footer__grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }

	.layer--modal .layer__panel { top: 50%; left: 50%; right: auto; bottom: auto; width: min(960px, calc(100% - 48px)); max-height: 88vh; border-radius: 24px; transform: translate(-50%, -46%); opacity: 0; transition: transform .3s, opacity .3s; }
	.layer--modal.is-open .layer__panel { transform: translate(-50%, -50%); opacity: 1; }
	.qv { display: grid; grid-template-columns: 1fr 1fr; }
	.qv__gallery { padding: 20px; }
	.qv__info { padding: 28px 28px 8px; background: #fff; }
	.qv__cta { grid-column: 2; padding-inline: 28px; }

	.layer--sheet .layer__panel { top: 90px; bottom: auto; left: 50%; right: auto; width: min(620px, calc(100% - 48px)); border-radius: 22px; transform: translate(-50%, -12px); opacity: 0; transition: transform .25s, opacity .25s; }
	.layer--sheet.is-open .layer__panel { transform: translate(-50%, 0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
