/* ============================================================
   MARATEB — storefront theme
   Clean white & black, real photography, one type family.
   Logical properties throughout so RTL & LTR both work.
   ============================================================ */
:root {
  --ink: #111111;
  --ink-2: #2b2b2b;
  --text: #1a1a1a;
  --muted: #6e6e6e;
  --line: #e5e5e5;
  --line-2: #f0f0f0;
  --bg: #ffffff;
  --bg-2: #f6f6f6;
  --surface: #ffffff;
  --sale: #c8102e;
  --ok: #12805c;
  --warn: #b26a00;
  --bad: #c8102e;
  --wa: #25d366;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .18);
  --font: 'IBM Plex Sans Arabic', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 70px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[lang="en"] body { font-family: 'Inter', 'IBM Plex Sans Arabic', system-ui, sans-serif; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--ink); font-weight: 600; }
p { margin: 0; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.container { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: 28px; }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- icons ---------- */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic-fill { width: 20px; height: 20px; flex: none; fill: currentColor; }
[dir="rtl"] .ic.dir { transform: scaleX(-1); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding-inline: 22px; border-radius: var(--r-sm); font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, opacity .2s; white-space: nowrap; user-select: none; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-lg { height: 54px; padding-inline: 32px; font-size: 16px; }
.btn-sm { height: 38px; padding-inline: 16px; font-size: 14px; }
.btn-block { width: 100%; }
.grow { flex: 1; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #333; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #ececec; }
.btn-outline-light { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1fbe5b; }
.btn-wa-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-wa-outline .ic-fill { color: var(--wa); }
.btn-wa-outline:hover { border-color: var(--ink); }
.btn.icon-only { width: 46px; padding: 0; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: transparent; transition: text-decoration-color .2s; }
.link-btn:hover { text-decoration-color: currentColor; }
.link-btn .ic { width: 16px; height: 16px; }
.link-btn.center { justify-content: center; width: 100%; margin-top: 4px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); transition: background .2s; }
.icon-btn:hover { background: var(--bg-2); }
.count { position: absolute; top: 3px; inset-inline-end: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; transform: scale(0); transition: transform .2s; }
.count.show { transform: scale(1); }

/* ---------- announcement ---------- */
.announce { background: var(--ink); color: #fff; height: 38px; display: grid; place-items: center; font-size: 13px; letter-spacing: .02em; overflow: hidden; }
.announce-msg { transition: opacity .3s, transform .3s; text-align: center; padding-inline: 16px; }
.announce-msg.out { opacity: 0; transform: translateY(-6px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header.scrolled { box-shadow: 0 2px 14px rgba(0, 0, 0, .05); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; color: var(--ink); flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-size: 26px; font-weight: 700; }
.logo-text small { font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.logo-light { color: #fff; }
.logo-light .logo-text b { color: #fff; }
.logo-light .logo-text small { color: rgba(255, 255, 255, .5); }
.main-nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.main-nav > a, .has-mega > a, .nav-link { display: inline-flex; align-items: center; gap: 4px; height: var(--header-h); padding-inline: 14px; font-weight: 500; font-size: 15px; color: var(--ink); position: relative; }
.main-nav > a::after, .has-mega > a::after, .nav-link::after { content: ''; position: absolute; inset-inline: 14px; bottom: 18px; height: 1.5px; background: var(--ink); transform: scaleX(0); transition: transform .25s; }
.main-nav > a:hover::after, .has-mega:hover > a::after, .nav-link:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.has-mega > a .ic { width: 15px; height: 15px; transition: transform .2s; }
.has-mega:hover > a .ic { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 2px; }
.lang-btn { height: 34px; min-width: 40px; padding-inline: 10px; border-radius: var(--r-sm); font-weight: 600; font-size: 13px; color: var(--ink); }
.lang-btn:hover { background: var(--bg-2); }
.only-mobile { display: none !important; }

/* mega menu */
.mega { position: absolute; inset-inline: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 24px 40px rgba(0, 0, 0, .08); opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; }
.mega-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-block: 32px 36px; }
.mega-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.mega-type-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.mega-type, .mega-brands a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 15px; color: var(--ink-2); }
.mega-type small { color: var(--muted); font-size: 12px; }
.mega-type:hover, .mega-brands a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.mega-brands { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.mega-sizes { margin-bottom: 14px; }
.mega-sizes b { display: block; font-size: 13px; margin-bottom: 6px; color: var(--ink); font-weight: 600; }
.mega-sizes a { display: inline-block; margin: 0 0 6px 6px; padding: 3px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13px; }
.mega-sizes a:hover { border-color: var(--ink); }
.mega-promo { position: relative; border-radius: var(--r); overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; color: #fff; }
.mega-promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mega-promo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .7)); }
.mega-promo > div { position: relative; z-index: 1; padding: 20px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mega-promo h4 { color: #fff; font-size: 18px; }
.mega-promo p { color: rgba(255, 255, 255, .85); font-size: 13px; margin-bottom: 6px; }

/* ---------- hero (image banner) ---------- */
.hero { position: relative; min-height: min(680px, 78vh); display: flex; align-items: center; color: #fff; overflow: hidden; background: #222; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .05) 20%, rgba(0, 0, 0, .62)); }
[dir="ltr"] .hero::after { background: linear-gradient(270deg, rgba(0, 0, 0, .05) 20%, rgba(0, 0, 0, .62)); }
.hero-inner { position: relative; z-index: 1; padding-block: 80px; }
.hero-copy { max-width: 600px; }
.hero .eyebrow { color: rgba(255, 255, 255, .85); }
.hero h1 { color: #fff; font-size: clamp(38px, 5vw, 64px); font-weight: 700; line-height: 1.12; margin: 14px 0 18px; }
.hero h1 em { font-style: normal; }
.hero .lead { font-size: 18px; color: rgba(255, 255, 255, .88); max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 24px 20px; }
.trust-item + .trust-item { border-inline-start: 1px solid var(--line); }
.trust-item .ic { width: 28px; height: 28px; stroke-width: 1.3; }
.trust-item b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.trust-item span { color: var(--muted); font-size: 13px; }

/* ---------- sections ---------- */
.section { padding-block: 84px; }
.section-sm { padding-block: 48px; }
.section-tint { background: var(--bg-2); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.sec-head h2 { font-size: clamp(26px, 2.8vw, 34px); font-weight: 600; }
.sec-head p { color: var(--muted); margin-top: 8px; max-width: 620px; }
.sec-head.center { justify-content: center; text-align: center; }
.tabs { display: flex; gap: 28px; flex-wrap: wrap; }
.tab { padding-block: 6px; font-size: 22px; font-weight: 600; color: #b0b0b0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.tab:hover { color: var(--ink-2); }
.tab.on { color: var(--ink); border-color: var(--ink); }
.tabs-head { align-items: center; }

/* types (image tiles) */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
.type-tile { display: flex; flex-direction: column; gap: 12px; }
.tt-img { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.tt-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.type-tile:hover .tt-img img { transform: scale(1.04); }
.tt-txt h3 { display: flex; align-items: center; gap: 6px; font-size: 18px; }
.tt-txt h3 .ic { width: 16px; height: 16px; transition: transform .25s; }
.type-tile:hover .tt-txt h3 .ic { transform: translateX(4px); }
[dir="rtl"] .type-tile:hover .tt-txt h3 .ic { transform: scaleX(-1) translateX(4px); }
.tt-txt span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }

/* brands */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.brand-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 28px 12px; background: #fff; transition: background .2s; }
.brand-tile:hover { background: var(--bg-2); }
.bt-en { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.bt-ar { font-size: 14px; color: var(--ink-2); }
.brand-tile small { color: var(--muted); font-size: 12px; }

/* ---------- product grid & cards ---------- */
.grid { display: grid; gap: 32px 20px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; display: flex; flex-direction: column; animation: fadeUp .4s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card-media { position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.card-img { position: relative; display: block; aspect-ratio: 1 / 1; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, transform .7s ease; }
.card-img .img-b { opacity: 0; }
.card:hover .card-img .img-b { opacity: 1; }
.card:hover .card-img img { transform: scale(1.03); }
@media (hover: none) { .card-img .img-b { display: none; } }
.badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; z-index: 2; }
.badge { padding: 4px 9px; border-radius: 4px; font-size: 12px; font-weight: 600; background: #fff; color: var(--ink); line-height: 1.3; }
.badge.sale { background: var(--sale); color: #fff; font-family: 'Inter', sans-serif; direction: ltr; }
.badge.best { background: var(--ink); color: #fff; }
.badge.out { background: #fff; color: var(--muted); }
.badge.low { color: var(--warn); }
.wish-btn { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); opacity: .92; transition: transform .2s; }
.wish-btn:hover { transform: scale(1.08); }
.wish-btn .ic { width: 18px; height: 18px; }
.wish-btn.on { color: var(--sale); }
.wish-btn.on .ic { fill: currentColor; }
.quick-btn { position: absolute; inset-inline: 12px; bottom: 12px; z-index: 2; height: 44px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; gap: 6px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s, background .2s, color .2s; }
.quick-btn .ic { width: 17px; height: 17px; }
.card:hover .quick-btn, .quick-btn:focus-visible { opacity: 1; transform: none; }
.quick-btn:hover { background: var(--ink); color: #fff; }
@media (hover: none) { .quick-btn { opacity: 1; transform: none; inset-inline: auto 10px; width: 40px; height: 40px; padding: 0; border-radius: 50%; } [dir="rtl"] .quick-btn { inset-inline: auto 10px; } .quick-btn span { display: none; } }
.card-body { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
.card-brand { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-brand:hover { color: var(--ink); }
.card-type { color: var(--muted); white-space: nowrap; }
.card-title { font-size: 17px; font-weight: 600; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.card-rating span { color: var(--muted); }
.stars { position: relative; display: inline-block; font-size: 13px; letter-spacing: 1px; color: #d9d9d9; line-height: 1; direction: ltr; }
.stars .on { position: absolute; inset: 0; width: var(--r); overflow: hidden; color: var(--ink); white-space: nowrap; }
.card-specs { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 13px; }
.card-specs span { display: inline-flex; align-items: center; gap: 5px; }
.card-specs .ic { width: 14px; height: 14px; }
.grid.cols-4 .card-specs span:nth-child(3) { display: none; }
.fmini { display: inline-flex; gap: 2px; direction: ltr; }
.fmini i { width: 4px; height: 10px; border-radius: 1px; background: #dcdcdc; }
.fmini i.on { background: var(--ink); }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { display: flex; flex-direction: column; line-height: 1.25; }
.price small { color: var(--muted); font-size: 12px; text-align: start; }
.price b { font-size: 18px; color: var(--ink); font-weight: 700; }
.price s { color: var(--muted); font-size: 13px; }
.cmp-toggle { display: inline-flex; align-items: center; cursor: pointer; font-size: 13px; color: var(--muted); }
.cmp-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.cmp-toggle span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: var(--r-sm); border: 1px solid var(--line); transition: all .2s; }
.cmp-toggle .ic { width: 14px; height: 14px; }
.cmp-toggle:hover span { border-color: var(--ink); color: var(--ink); }
.cmp-toggle input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.cmp-toggle input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.card.is-out .card-img img { filter: grayscale(1); opacity: .7; }

/* split banner */
.split-banner { display: grid; grid-template-columns: 1.15fr 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.sb-img { min-height: 440px; }
.sb-img img { width: 100%; height: 100%; object-fit: cover; }
.sb-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding: 56px; }
.sb-copy h2 { font-size: clamp(26px, 3vw, 38px); }
.sb-copy p { color: var(--muted); font-size: 17px; max-width: 460px; margin-bottom: 8px; }

/* sizes */
.size-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.size-card { border-radius: var(--r); padding: 22px; border: 1px solid var(--line); }
.size-card h4 { font-size: 17px; margin-bottom: 12px; }
.size-card div { display: flex; flex-wrap: wrap; gap: 8px; }
.size-card a { padding: 6px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); font-weight: 500; font-size: 14px; font-family: 'Inter', sans-serif; transition: all .2s; }
.size-card a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.why { text-align: center; display: flex; flex-direction: column; align-items: center; }
.why .ic { width: 34px; height: 34px; stroke-width: 1.2; margin-bottom: 16px; }
.why h3 { font-size: 18px; margin-bottom: 6px; }
.why p { color: var(--muted); font-size: 14px; max-width: 260px; }

/* reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; padding: 30px; border-radius: var(--r); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.review .stars { font-size: 15px; }
.review blockquote { margin: 0; font-size: 16px; color: var(--text); flex: 1; }
.review figcaption { display: flex; align-items: baseline; gap: 10px; }
.review figcaption small { color: var(--muted); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; font-weight: 600; font-size: 16px; color: var(--ink); }
.faq summary .ic, .accordion summary .ic, .fgroup summary .ic { transition: transform .25s; width: 18px; height: 18px; }
.faq details[open] summary .ic, .accordion details[open] summary .ic, .fgroup[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding-bottom: 22px; color: var(--muted); max-width: 720px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); }
.footer-cta { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 38px; }
.footer-cta h3 { color: #fff; font-size: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding-block: 52px; }
.footer-grid h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-grid a, .footer-grid button, .footer-grid .ci { display: flex; align-items: center; gap: 8px; padding-block: 5px; font-size: 14px; color: rgba(255, 255, 255, .7); text-align: start; }
.footer-grid a:hover, .footer-grid button:hover { color: #fff; }
.footer-grid .ic, .footer-grid .ic-fill { width: 16px; height: 16px; }
.footer-about p { margin-top: 18px; font-size: 14px; max-width: 340px; }
.pay-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.pay-row span { padding: 4px 10px; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .2); font-size: 12px; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }

/* ---------- page head / breadcrumbs ---------- */
.page-head { padding-block: 40px 28px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 10px; }
.page-head p { color: var(--muted); margin-top: 6px; max-width: 700px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.quick-types { display: flex; gap: 8px; overflow-x: auto; margin-top: 22px; padding-bottom: 4px; scrollbar-width: none; }
.quick-types::-webkit-scrollbar { display: none; }
.qt { flex: none; height: 38px; padding-inline: 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; transition: all .2s; }
.qt:hover { border-color: var(--ink); }
.qt.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- shop layout ---------- */
.shop { display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: start; padding-block: 28px 70px; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); display: flex; flex-direction: column; }
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.filters-head h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.filters-body { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-inline-end: 6px; }
.filters-foot { display: none; }
.fgroup { border-bottom: 1px solid var(--line); }
.fgroup summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-weight: 600; font-size: 15px; color: var(--ink); }
.fg-body { padding-bottom: 16px; display: grid; gap: 1px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 14px; transition: opacity .2s; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .box { width: 18px; height: 18px; flex: none; border-radius: 3px; border: 1px solid #b5b5b5; display: grid; place-items: center; transition: all .15s; }
.opt .box .ic { width: 13px; height: 13px; stroke-width: 2.6; color: #fff; opacity: 0; }
.opt:hover .box { border-color: var(--ink); }
.opt input:checked + .box { background: var(--ink); border-color: var(--ink); }
.opt input:checked + .box .ic { opacity: 1; }
.opt input:focus-visible + .box { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt-l { display: inline-flex; align-items: center; gap: 8px; flex: 1; }
.opt .cnt, .switch .cnt { font-style: normal; font-size: 12px; color: var(--muted); }
.opt .cnt::before, .switch .cnt::before { content: '('; }
.opt .cnt::after, .switch .cnt::after { content: ')'; }
.opt.is-zero, .chip-opt.is-zero { opacity: .35; }
.mini-search { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: var(--r-sm); padding-inline: 12px; margin-bottom: 8px; outline: none; }
.mini-search:focus { border-color: var(--ink); }
.brand-opts { max-height: 250px; overflow-y: auto; scrollbar-width: thin; }
.size-group { margin-bottom: 10px; }
.size-group small { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-opt { position: relative; cursor: pointer; transition: opacity .2s; }
.chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opt span { display: inline-block; padding: 6px 11px; border-radius: var(--r-sm); border: 1px solid var(--line); font-size: 13px; font-weight: 500; transition: all .15s; }
.chip-opt:hover span { border-color: var(--ink); }
.chip-opt input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.firm-opts .fmini { margin-inline-end: 2px; }

/* dual range */
.range { position: relative; height: 32px; margin: 2px 8px 8px; }
.range-track { position: absolute; inset-inline: 0; top: 14px; height: 3px; border-radius: 3px; background: var(--line); }
.range-fill { position: absolute; top: 0; bottom: 0; background: var(--ink); }
.range input[type=range] { position: absolute; inset-inline: -8px; width: calc(100% + 16px); top: 4px; height: 24px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); cursor: grab; }
.range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink); cursor: grab; }
.range input[type=range]::-webkit-slider-runnable-track { background: none; }
.range-inputs { display: flex; align-items: flex-end; gap: 8px; }
.range-inputs label { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.range-inputs small { color: var(--muted); font-size: 12px; }
.range-inputs input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: var(--r-sm); padding-inline: 10px; direction: ltr; font-family: 'Inter', sans-serif; font-size: 14px; outline: none; }
.range-inputs input:focus { border-color: var(--ink); }
.range-inputs span { padding-bottom: 8px; color: var(--muted); }

/* switches */
.switch { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 14px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.sw { position: relative; width: 34px; height: 20px; border-radius: 999px; background: #d4d4d4; flex: none; transition: background .2s; }
.sw::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; }
.switch input:checked + .sw { background: var(--ink); }
.switch input:checked + .sw::after { inset-inline-start: 17px; }
.switch input:focus-visible + .sw { outline: 2px solid var(--ink); outline-offset: 2px; }

/* toolbar */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.search-in { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px; height: 44px; padding-inline: 14px; border-radius: var(--r-sm); border: 1px solid var(--line); }
.search-in:focus-within { border-color: var(--ink); }
.search-in input { flex: 1; border: 0; outline: 0; background: none; min-width: 0; }
.search-in .ic { color: var(--muted); width: 18px; height: 18px; }
.result-count { color: var(--muted); font-size: 14px; white-space: nowrap; }
.sort { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding-inline: 14px; border-radius: var(--r-sm); border: 1px solid var(--line); font-size: 14px; }
.sort span { color: var(--muted); }
.sort select { border: 0; background: none; font-weight: 600; outline: none; appearance: none; -webkit-appearance: none; padding-inline-end: 20px; cursor: pointer; }
.sort .ic { position: absolute; inset-inline-end: 12px; width: 16px; height: 16px; pointer-events: none; }
.cols-toggle { display: flex; gap: 2px; }
.cols-toggle button { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; color: #b0b0b0; }
.cols-toggle button.on { color: var(--ink); }
.cols-toggle .ic { width: 18px; height: 18px; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.active-chips:empty { display: none; }
.achip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding-inline: 12px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.achip:hover { border-color: var(--ink); }
.achip .ic { width: 14px; height: 14px; }
.load-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 44px; color: var(--muted); font-size: 14px; }
.load-more:empty { display: none; }
.bar { width: 100%; max-width: 240px; height: 2px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--ink); transition: width .4s ease; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 70px 20px; color: var(--muted); }
.empty-state.wide { grid-column: 1 / -1; }
.empty-state > .ic { width: 40px; height: 40px; stroke-width: 1.3; color: var(--ink); }
.empty-state h4 { font-size: 20px; }
.empty-state .btn { margin-top: 10px; }

/* ---------- product page ---------- */
.pdp-wrap { padding-block: 24px 40px; }
.pdp { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; margin-top: 20px; align-items: start; }
.pdp-gallery { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
.pdp-stage { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.stage-view { position: absolute; inset: 0; opacity: 0; transition: opacity .35s; }
.stage-view.on { opacity: 1; }
.stage-view img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.thumb { aspect-ratio: 1 / 1; border-radius: var(--r-sm); overflow: hidden; border: 1.5px solid transparent; opacity: .7; transition: opacity .2s, border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.on { border-color: var(--ink); opacity: 1; }
.pdp-info { display: flex; flex-direction: column; gap: 20px; }
.pdp-top { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.brand-pill { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.type-pill { color: var(--muted); }
.type-pill::before { content: '·'; margin-inline-end: 10px; }
.pdp-info h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; }
.pdp-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.pdp-rating > span:not(.stars) { color: var(--muted); }
.stock { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; font-weight: 600; font-size: 13px; }
.stock i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.ok { color: var(--ok) !important; } .stock.warn { color: var(--warn) !important; } .stock.bad { color: var(--bad) !important; }
.key-specs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); }
.key-specs div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; }
.key-specs div + div { border-inline-start: 1px solid var(--line); }
.key-specs .ic { margin-bottom: 4px; stroke-width: 1.4; }
.key-specs small { color: var(--muted); font-size: 12px; }
.key-specs b { font-size: 15px; color: var(--ink); font-weight: 600; }
.buybox { display: flex; flex-direction: column; gap: 16px; }
.bb-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.bb-price b { font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.bb-price s { color: var(--muted); font-size: 16px; }
.bb-price s:empty { display: none; }
.save-pill { padding: 3px 8px; border-radius: 4px; background: var(--sale); color: #fff; font-weight: 600; font-size: 12px; }
.bb-label { display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: var(--ink); }
.bb-label small { color: var(--muted); font-weight: 400; }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.size-opt { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 6px; border-radius: var(--r-sm); border: 1px solid var(--line); transition: all .15s; }
.size-opt b { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; }
.size-opt small { color: var(--muted); font-size: 12px; }
.size-opt:hover { border-color: var(--ink); }
.size-opt.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.size-opt.on small { color: rgba(255, 255, 255, .75); }
.bb-actions { display: flex; gap: 10px; }
.qty { display: inline-flex; align-items: center; height: 54px; border-radius: var(--r-sm); border: 1px solid var(--line); padding-inline: 4px; }
.qty button { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; }
.qty button:hover { background: var(--bg-2); }
.qty .ic { width: 16px; height: 16px; }
.qty span { min-width: 28px; text-align: center; font-weight: 600; font-family: 'Inter', sans-serif; }
.qty.sm { height: 36px; }
.qty.sm button { width: 28px; height: 28px; }
.firm-scale { padding-top: 4px; }
.fs-head { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.fs-head span { color: var(--muted); }
.fs-bar { position: relative; display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.fs-bar i { height: 6px; background: var(--line); }
.fs-bar i.on { background: var(--ink); }
.fs-mark { position: absolute; top: -6px; width: 18px; height: 18px; margin-inline-start: -9px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.fs-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); }
.feat-chips { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.feat-chips span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.feat-chips .ic { width: 16px; height: 16px; stroke-width: 2; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-weight: 600; color: var(--ink); }
.accordion details > p, .accordion details > ul, .accordion details > table { margin-bottom: 20px; color: var(--muted); }
.layer-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.layer-list li { display: grid; grid-template-columns: 1.3fr 1fr auto; align-items: center; gap: 14px; font-size: 14px; }
.layer-list b { color: var(--ink); font-weight: 500; }
.lbar { height: 6px; background: var(--line-2); }
.lbar i { display: block; height: 100%; background: var(--ink); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { padding: 11px 0; border-bottom: 1px solid var(--line-2); text-align: start; vertical-align: top; }
.spec-table th { color: var(--muted); font-weight: 400; width: 40%; }
.spec-table td { color: var(--ink); }
.sticky-atc { display: none; }

/* ---------- brands page ---------- */
.brand-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 20px; }
.brand-card { display: flex; flex-direction: column; gap: 14px; }
.bc-art { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.bc-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.brand-card:hover .bc-art img { transform: scale(1.04); }
.bc-body { display: flex; flex-direction: column; gap: 6px; }
.bc-name { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.bc-name b { font-family: 'Inter', sans-serif; font-size: 18px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.bc-name span { font-weight: 600; color: var(--ink); font-size: 17px; }
.bc-body small { color: var(--muted); }
.bc-meta { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.bc-types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.bc-types i { font-style: normal; font-size: 12px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* ---------- compare ---------- */
.compare-tray { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .06); transform: translateY(110%); transition: transform .3s ease; }
.compare-tray.show { transform: none; }
.tray-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.tray-items { display: flex; gap: 10px; }
.tray-item { position: relative; width: 64px; height: 64px; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-2); }
.tray-item img { width: 100%; height: 100%; object-fit: cover; }
.tray-item span { display: none; }
.tray-item button { position: absolute; top: 3px; inset-inline-end: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.tray-item button .ic { width: 12px; height: 12px; }
.tray-item.empty { background: none; border: 1px dashed #cfcfcf; }
.tray-actions { display: flex; align-items: center; gap: 16px; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare-table th, .compare-table td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); text-align: center; vertical-align: middle; font-size: 14px; }
.compare-table th { text-align: start; color: var(--muted); font-weight: 400; width: 180px; background: #fff; position: sticky; inset-inline-start: 0; z-index: 1; }
.compare-table tr.small td { font-size: 12px; color: var(--muted); }
.cmp-card { position: relative; max-width: 220px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cmp-img { display: block; width: 100%; aspect-ratio: 1 / 1; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-2); margin-bottom: 6px; }
.cmp-img img { width: 100%; height: 100%; object-fit: cover; }
.cmp-x { position: absolute; top: 6px; inset-inline-end: 6px; width: 30px; height: 30px; background: #fff; z-index: 1; }
.cmp-x .ic { width: 15px; height: 15px; }
.cmp-price { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.yes { display: inline-grid; place-items: center; color: var(--ink); }
.yes .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.no { color: #c9c9c9; }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; padding-block: 28px 70px; }
.co-form { display: flex; flex-direction: column; gap: 16px; }
.co-form h3 { font-size: 18px; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #cfcfcf; border-radius: var(--r-sm); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--bad); }
.field .err { color: var(--bad); font-size: 13px; }
.field .err:empty { display: none; }
.field-row { display: flex; gap: 14px; }
.pay-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pay-opt { cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt span { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: var(--r-sm); border: 1px solid var(--line); font-weight: 500; transition: all .15s; }
.pay-opt .ic { color: var(--muted); }
.pay-opt input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pay-opt input:checked + span .ic { color: var(--ink); }
.pay-opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.secure { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--muted); font-size: 13px; }
.secure .ic { width: 16px; height: 16px; }
.co-summary { position: sticky; top: calc(var(--header-h) + 20px); padding: 28px; border-radius: var(--r); background: var(--bg-2); display: flex; flex-direction: column; gap: 14px; }
.co-summary h3 { font-size: 18px; }
.sum-items { display: flex; flex-direction: column; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.sum-item { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.sum-item > div { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.sum-item small { color: var(--muted); text-align: start; }
.sum-item > span:last-child { font-weight: 600; white-space: nowrap; }
.si-img { position: relative; width: 64px; height: 64px; flex: none; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--line); }
.si-img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-sm); }
.si-img em { position: absolute; top: -8px; inset-inline-end: -8px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--muted); color: #fff; font-style: normal; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.sum-row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.sum-row.total { font-size: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.sum-row.total b { font-size: 22px; color: var(--ink); }
.free { color: var(--ok); font-weight: 600; }
.done-card { max-width: 560px; margin-inline: auto; text-align: center; padding: 56px 32px; }
.done-icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.done-icon .ic { width: 30px; height: 30px; stroke-width: 2.2; }
.done-card h2 { font-size: 26px; margin-bottom: 10px; }
.done-card p { color: var(--muted); }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- overlays ---------- */
.backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.backdrop.show { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; bottom: 0; z-index: 90; width: min(440px, 100vw); background: #fff; display: flex; flex-direction: column; visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility .35s; }
.drawer-end { inset-inline-end: 0; transform: translateX(100%); }
[dir="rtl"] .drawer-end { transform: translateX(-100%); }
.drawer-start { inset-inline-start: 0; transform: translateX(-100%); }
[dir="rtl"] .drawer-start { transform: translateX(100%); }
.drawer.open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 18px; }
.drawer-head h3 .muted { font-weight: 400; font-size: 15px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; overscroll-behavior: contain; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.free-bar { padding: 14px 22px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); }
.free-bar p { display: flex; align-items: center; gap: 6px; }
.free-bar .ic { color: var(--ok); }
.free-bar .bar { max-width: none; }
.cart-items { display: flex; flex-direction: column; gap: 18px; }
.cart-item { display: flex; gap: 14px; position: relative; }
.ci-img { width: 92px; height: 92px; flex: none; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-2); }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ci-info small { font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ci-name { font-weight: 600; color: var(--ink); }
.ci-meta { color: var(--muted); font-size: 13px; }
.ci-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.ci-remove { position: absolute; top: -8px; inset-inline-end: -10px; width: 34px; height: 34px; color: var(--muted); }
.ci-remove .ic { width: 16px; height: 16px; }
.menu-body { display: flex; flex-direction: column; gap: 2px; }
.menu-body > a { padding: 13px 0; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line-2); }
.menu-body h4 { margin: 22px 0 10px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.menu-body .btn { margin-top: 16px; }
.menu-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.menu-chips a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }

.search-panel { position: fixed; inset-inline: 0; top: 0; z-index: 90; background: #fff; box-shadow: var(--shadow-lg); transform: translateY(-105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); max-height: 90vh; overflow-y: auto; }
.search-panel.open { transform: none; }
.search-inner { padding-block: 20px 30px; }
.search-bar { display: flex; align-items: center; gap: 12px; height: 58px; padding-inline: 18px 8px; border-bottom: 1.5px solid var(--ink); }
.search-bar input { flex: 1; border: 0; outline: 0; font-size: 19px; background: none; min-width: 0; }
.search-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.search-pop small { color: var(--muted); margin-inline-end: 4px; }
.search-results { margin-top: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.sr-list { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sr-item { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: var(--r-sm); transition: background .2s; }
.sr-item:hover { background: var(--bg-2); }
.sr-img { width: 72px; height: 72px; flex: none; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-2); }
.sr-img img { width: 100%; height: 100%; object-fit: cover; }
.sr-item > span:last-child { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.sr-item small { font-size: 12px; color: var(--muted); }
.sr-item b { color: var(--ink); font-weight: 600; }
.sr-item em { font-style: normal; color: var(--muted); font-size: 13px; }

.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; pointer-events: none; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-panel { position: relative; width: min(640px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow-lg); pointer-events: auto; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; }
.modal.open .modal-panel { opacity: 1; transform: none; }
.modal-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; background: #fff; }
.modal-quick .modal-panel { width: min(960px, 100%); padding: 0; }
.modal-finder .modal-panel { width: min(780px, 100%); }
.quick { display: grid; grid-template-columns: 1fr 1fr; }
.quick-media { background: var(--bg-2); min-height: 100%; }
.quick-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.quick-info { padding: 34px 30px; display: flex; flex-direction: column; gap: 12px; }
.quick-info .brand-pill { align-self: flex-start; }
.quick-info h2 { font-size: 26px; }
.info h2 { font-size: 24px; margin-bottom: 14px; }
.info p { margin-bottom: 12px; }
.finder { display: flex; flex-direction: column; gap: 16px; }
.finder-head { display: flex; align-items: center; justify-content: space-between; padding-inline-end: 40px; }
.finder-head small { color: var(--muted); }
.finder .bar { max-width: none; }
.finder h2 { font-size: 26px; margin-top: 6px; }
.finder-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.finder-opts.grid-opts { grid-template-columns: repeat(5, 1fr); }
.f-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 18px; border-radius: var(--r-sm); border: 1px solid var(--line); text-align: start; transition: all .15s; }
.grid-opts .f-opt { align-items: center; padding: 14px 8px; }
.grid-opts .f-opt b { font-family: 'Inter', sans-serif; }
.f-opt b { font-size: 16px; color: var(--ink); font-weight: 600; }
.f-opt small { color: var(--muted); font-size: 13px; }
.f-opt:hover { border-color: var(--ink); }
.f-opt.on { border-color: var(--ink); background: var(--ink); }
.f-opt.on b, .f-opt.on small { color: #fff; }
.finder-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.finder-foot .link-btn .ic { transform: scaleX(-1); }
[dir="rtl"] .finder-foot .link-btn .ic { transform: none; }
.finder-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fr-card { position: relative; display: flex; flex-direction: column; gap: 2px; }
.fr-match { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 1; padding: 3px 9px; border-radius: 4px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; }
.fr-card.top .fr-match { background: var(--ink); color: #fff; }
.fr-img { display: block; aspect-ratio: 1 / 1; border-radius: var(--r-sm); overflow: hidden; background: var(--bg-2); margin-bottom: 8px; }
.fr-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.fr-card:hover .fr-img img { transform: scale(1.04); }
.fr-card small { font-size: 12px; color: var(--muted); }
.fr-card b { color: var(--ink); font-weight: 600; }
.fr-meta { color: var(--muted); font-size: 13px; }
.fr-price { font-weight: 700; color: var(--ink); margin-top: 2px; }

.toast { position: fixed; bottom: 28px; left: 50%; z-index: 100; display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-weight: 500; font-size: 14px; box-shadow: var(--shadow-lg); transform: translate(-50%, 120px); transition: transform .35s cubic-bezier(.3, 1.3, .6, 1); }
.toast.show { transform: translate(-50%, 0); }
.toast .ic { width: 18px; height: 18px; stroke-width: 2.2; }

.wa-float { position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); transition: transform .2s, bottom .3s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
.wa-tip { position: absolute; inset-inline-end: 68px; white-space: nowrap; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: var(--r-sm); opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .2s, transform .2s; }
.wa-float:hover .wa-tip { opacity: 1; transform: none; }
.compare-tray.show ~ .wa-float { bottom: 104px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .main-nav > a[data-nav="offers"] { display: none; }
  .grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .type-grid { grid-template-columns: repeat(3, 1fr); }
  .size-cards { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .mega-inner { grid-template-columns: 1.3fr 1fr 1fr; }
  .mega-promo { display: none; }
}
@media (max-width: 1100px) and (min-width: 961px) { .shop .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) {
  :root { --header-h: 62px; }
  .only-mobile { display: inline-flex !important; }
  .main-nav { display: none; }
  .header-inner { gap: 6px; }
  .logo { margin-inline-end: auto; }
  .hero { min-height: 560px; }
  .hero::after, [dir="ltr"] .hero::after { background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .65)); }
  .hero-inner { align-self: flex-end; padding-block: 48px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-inline-start: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .split-banner { grid-template-columns: 1fr; }
  .sb-img { min-height: 260px; }
  .sb-copy { padding: 32px 24px; }
  .brand-cards { grid-template-columns: repeat(2, 1fr); }
  .shop { grid-template-columns: 1fr; padding-top: 16px; }
  .filters { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 90; width: min(380px, 92vw); max-height: none; background: #fff; transform: translateX(-100%); visibility: hidden; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility .35s; }
  [dir="rtl"] .filters { transform: translateX(100%); }
  body.filters-open .filters { transform: none; visibility: visible; }
  .filters-head { padding: 16px 20px; border-bottom: 1px solid var(--line); }
  .filters-head .link-btn { display: none; }
  .filters-body { flex: 1; padding-inline: 20px; }
  .filters-foot { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
  .filter-open .count { position: static; transform: scale(0); margin-inline-start: 2px; background: var(--ink); }
  .filter-open .count.show { transform: scale(1); }
  .search-in { order: 3; flex-basis: 100%; }
  .result-count { margin-inline-start: auto; }
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .pdp-gallery { position: static; }
  .checkout { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; }
  .quick { grid-template-columns: 1fr; }
  .sticky-atc { position: fixed; inset-inline: 0; bottom: 0; z-index: 45; display: flex; align-items: center; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
  .sticky-atc > div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
  .sticky-atc small { color: var(--muted); text-align: start; }
  .sticky-atc b { font-size: 18px; color: var(--ink); }
  body[data-page="product"] .wa-float { bottom: 92px; }
  body[data-page="product"] .site-footer { padding-bottom: 76px; }
  .sr-list { grid-template-columns: 1fr 1fr; }
  .finder-opts.grid-opts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .container { padding-inline: 16px; }
  body { font-size: 14.5px; }
  .hide-sm { display: none !important; }
  .section { padding-block: 56px; }
  .sec-head { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }
  .sec-head.center { align-items: center; }
  .tabs { gap: 18px; }
  .tab { font-size: 17px; }
  .grid, .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .card-title { font-size: 15px; }
  .card-type { display: none; }
  .card-specs { font-size: 12px; gap: 2px 10px; }
  .card-specs span:nth-child(3) { display: none; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .price b { font-size: 16px; }
  .cmp-toggle span { justify-content: center; }
  .badges { top: 8px; inset-inline-start: 8px; }
  .badge { font-size: 11px; padding: 3px 7px; }
  .wish-btn { top: 6px; inset-inline-end: 6px; width: 34px; height: 34px; }
  .type-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .tt-txt h3 { font-size: 15px; }
  .tt-txt span { font-size: 12px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .size-cards { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .hero { min-height: 520px; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 15.5px; }
  .hero-ctas .btn { flex: 1; padding-inline: 14px; }
  .trust-item { padding: 16px 10px; gap: 10px; }
  .trust-item .ic { width: 24px; height: 24px; }
  .trust-item b { font-size: 13px; }
  .trust-item span { font-size: 12px; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .brand-cards { grid-template-columns: 1fr; }
  .key-specs { grid-template-columns: repeat(2, 1fr); }
  .key-specs div:nth-child(3) { border-inline-start: 0; }
  .key-specs div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bb-price b { font-size: 26px; }
  .bb-actions { flex-wrap: wrap; }
  .bb-actions .qty { height: 50px; }
  .size-grid { grid-template-columns: repeat(3, 1fr); }
  .layer-list li { grid-template-columns: 1fr 70px auto; }
  .toolbar { gap: 8px; }
  .sort span { display: none; }
  .tray-item { width: 52px; height: 52px; }
  .tray-actions { gap: 8px; }
  .tray-actions .link-btn { display: none; }
  .tray-actions .btn { height: 42px; padding-inline: 14px; font-size: 14px; }
  .modal { padding: 0; align-items: end; }
  .modal-panel { border-radius: 16px 16px 0 0; max-height: 92vh; padding: 26px 18px; width: 100% !important; }
  .modal-quick .modal-panel { padding: 0; }
  .quick-media img { aspect-ratio: 4 / 3; }
  .quick-info { padding: 20px 18px; }
  .finder-opts { grid-template-columns: 1fr; }
  .finder-opts.grid-opts { grid-template-columns: repeat(2, 1fr); }
  .finder-results { grid-template-columns: 1fr; }
  .fr-card { display: grid; grid-template-columns: 100px 1fr; column-gap: 14px; align-items: center; }
  .fr-img { grid-row: span 4; margin: 0; }
  .finder-foot { flex-direction: column-reverse; align-items: stretch; }
  .field-row { flex-direction: column; }
  .pay-opts { grid-template-columns: 1fr; }
  .sr-list { grid-template-columns: 1fr; }
  .search-bar { height: 52px; }
  .search-bar input { font-size: 16px; }
  .wa-float { width: 52px; height: 52px; bottom: 18px; inset-inline-end: 16px; }
  .wa-tip { display: none; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 380px) {
  .logo-text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ============================================================
   Brand palette: deep pine green on warm white.
   Change --brand to re-colour the whole store.
   ============================================================ */
:root { --brand: #1f4d3a; --brand-dark: #153829; --brand-soft: #edf3ef; --star: #e5a13a; --ink: #18211c; --ink-2: #2f3a33; --bg-2: #f4f5f2; --line: #e1e5e0; --line-2: #eef0ec; }
.btn-primary { background: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); }
.announce { background: var(--brand-dark); }
.site-footer { background: #10261c; }
.count { background: var(--brand); }
.stars .on { color: var(--star); }
.size-opt.on, .qt.on, .f-opt.on { background: var(--brand); border-color: var(--brand); }
.qt:hover, .size-opt:hover, .f-opt:hover, .chip-opt:hover span, .size-card a, .achip:hover { border-color: var(--brand); }
.chip-opt input:checked + span, .opt input:checked + .box { background: var(--brand); border-color: var(--brand); }
.switch input:checked + .sw, .range-fill, .bar span, .fs-bar i.on, .lbar i, .fmini i.on, .badge.best, .done-icon, .fr-card.top .fr-match { background: var(--brand); }
.fs-mark, .range input[type=range]::-webkit-slider-thumb { border-color: var(--brand); }
.tab.on { border-color: var(--brand); color: var(--brand); }
.pay-opt input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-soft); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.feat-chips .ic, .trust-item .ic, .why .ic, .key-specs .ic, .yes, .secure .ic { color: var(--brand); }
.size-card a:hover, .quick-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.split-banner { background: var(--brand-soft); }
.thumb.on { border-color: var(--brand); }
.link-btn:hover, .card-title a:hover, .mega-type:hover, .mega-brands a:hover { color: var(--brand); }
.brand-pill { color: var(--brand); }
.page-head { background: var(--bg-2); border-bottom: 0; }
:focus-visible { outline-color: var(--brand); }

/* header search */
.header-inner { gap: 20px; }
.hsearch { position: relative; flex: 1; max-width: 560px; margin-inline: auto; display: flex; align-items: center; height: 46px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg-2); transition: border-color .2s, background .2s; }
.hsearch:focus-within { border-color: var(--brand); background: #fff; }
.hsearch input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; padding-inline: 20px 8px; font-size: 15px; }
.hsearch input::-webkit-search-cancel-button { display: none; }
.hsearch button { width: 46px; height: 42px; display: grid; place-items: center; color: var(--ink); }
.hs-drop { position: absolute; top: calc(100% + 8px); inset-inline: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 8px; display: none; z-index: 60; }
.hs-drop.show { display: block; }
.hs-drop .sr-item { padding: 6px; }
.hs-drop .sr-img { width: 54px; height: 54px; }
.hs-all { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; margin-top: 4px; border-top: 1px solid var(--line-2); font-weight: 600; color: var(--brand); }
.hs-empty { padding: 12px; }
.h-wa { display: flex; align-items: center; gap: 8px; padding-inline: 8px 12px; }
.h-wa .ic-fill { width: 26px; height: 26px; color: var(--wa); }
.h-wa span { display: flex; flex-direction: column; line-height: 1.25; }
.h-wa small { font-size: 11px; color: var(--muted); }
.h-wa b { font-size: 13px; font-family: 'Inter', sans-serif; font-weight: 600; }

/* category bar */
.cat-bar { border-top: 1px solid var(--line-2); }
.cat-inner { display: flex; align-items: center; gap: 2px; height: 48px; overflow-x: auto; scrollbar-width: none; }
.cat-inner::-webkit-scrollbar { display: none; }
.cat-inner > a, .cat-inner > button, .cat-inner .has-mega > a { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding-inline: 12px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; position: relative; flex: none; }
.cat-inner > a::after, .cat-inner > button::after, .cat-inner .has-mega > a::after { content: ''; position: absolute; inset-inline: 12px; bottom: 0; height: 2px; background: var(--brand); transform: scaleX(0); transition: transform .2s; }
.cat-inner > a:hover::after, .cat-inner > button:hover::after, .cat-inner .has-mega:hover > a::after, .cat-inner a.active::after { transform: scaleX(1); }
.cat-inner a.active { color: var(--brand); }
.cat-inner .has-mega { flex: none; }
.cat-all { font-weight: 600 !important; color: var(--ink) !important; padding-inline-start: 0 !important; }
.cat-all .ic { width: 18px; height: 18px; }
.cat-all::after { inset-inline-start: 0 !important; }
.nav-sale { color: var(--sale) !important; font-weight: 600 !important; }
.nav-sale::after { background: var(--sale) !important; }

/* shop: your-bed-size bar */
.size-bar { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.size-bar > span { font-weight: 600; white-space: nowrap; color: var(--ink); }
.sb-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.sb-chips::-webkit-scrollbar { display: none; }
.size-bar .qt { font-family: 'Inter', 'IBM Plex Sans Arabic', sans-serif; background: #fff; }
.size-bar .qt.on { background: var(--brand); color: #fff; }

/* compare toggle on the product photo */
.cmp-ic { position: absolute; top: 54px; inset-inline-end: 10px; z-index: 2; cursor: pointer; }
.cmp-ic input { position: absolute; opacity: 0; pointer-events: none; }
.cmp-ic span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); opacity: 0; transition: opacity .2s, background .2s, color .2s; }
.card:hover .cmp-ic span, .cmp-ic input:checked + span, .cmp-ic input:focus-visible + span { opacity: 1; }
.cmp-ic input:checked + span { background: var(--brand); color: #fff; }
.cmp-ic .ic { width: 17px; height: 17px; }
.card-brand { display: block; font-size: 12px; }
.card-specs { display: block; font-size: 13px; color: var(--muted); }
.card-foot { padding-top: 6px; }

@media (max-width: 1180px) { .hide-md { display: none !important; } }
@media (max-width: 960px) {
  .hsearch { display: none; }
  .cat-inner { height: 44px; }
  .cat-inner > a, .cat-inner > button, .cat-inner .has-mega > a { height: 44px; font-size: 14px; }
  .mega { display: none; }
}
@media (hover: none) { .cmp-ic span { opacity: 1; width: 34px; height: 34px; } .cmp-ic { top: 46px; inset-inline-end: 6px; } }
@media (max-width: 720px) {
  .size-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sb-chips { width: 100%; }
}
.type-grid { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 720px) { .type-grid { grid-template-columns: repeat(2, 1fr); } .cmp-ic { display: none; } }

/* ============================================================
   Real-catalog layout: official product photos (shown whole on
   white), width + length pickers, text category tiles.
   ============================================================ */
.card-media { background: #fff; border: 1px solid var(--line); }
.card-img img { object-fit: contain; }
.card:hover .card-img img { transform: scale(1.04); }
.pdp { grid-template-columns: 1fr 1fr; }
.pdp-stage { background: #fff; border: 1px solid var(--line); }
.pdp-stage > img { width: 100%; height: 100%; object-fit: contain; }
.pdp-top .stock { margin-inline-start: auto; }
.pdp-sub { color: var(--muted); margin-top: -10px; }
.size-grid { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); }
.size-opt b { font-size: 17px; }
.len-row { display: flex; gap: 8px; flex-wrap: wrap; }
.len-opt { min-width: 76px; height: 42px; padding-inline: 16px; border-radius: var(--r-sm); border: 1px solid var(--line); font-family: 'Inter', sans-serif; font-weight: 600; transition: all .15s; }
.len-opt:hover { border-color: var(--brand); }
.len-opt.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.quick-media { background: #fff; display: grid; place-items: center; border-inline-end: 1px solid var(--line); }
.quick-media img { object-fit: contain; }
.bc-art { background: #fff; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.bc-art img { object-fit: contain; }
.ci-img, .sr-img, .tray-item, .cmp-img, .fr-img, .si-img { background: #fff; border: 1px solid var(--line); }
.finder-head b { color: var(--brand); }

/* category tiles are plain text cards */
.type-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.type-tile { gap: 6px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-align: start; transition: border-color .2s, transform .2s; }
.type-tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.type-tile h3 { font-size: 18px; }
.type-tile p { color: var(--muted); font-size: 14px; flex: 1; }
.type-tile span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand); margin-top: 6px; }
.type-tile span .ic { width: 15px; height: 15px; }
.type-cta { background: var(--brand); border-color: var(--brand); }
.type-cta h3, .type-cta span { color: #fff; }
.type-cta p { color: rgba(255, 255, 255, .8); }

.width-row { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; }
.width-row a { display: flex; flex-direction: column; align-items: center; padding: 18px 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: all .2s; }
.width-row a b { font-family: 'Inter', sans-serif; font-size: 24px; color: var(--ink); line-height: 1.1; }
.width-row a small { color: var(--muted); font-size: 12px; }
.width-row a:hover { border-color: var(--brand); background: var(--brand); }
.width-row a:hover b, .width-row a:hover small { color: #fff; }

.mega-inner { grid-template-columns: 1fr 1fr 1fr; }
.mega-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.mega-sizes a { margin: 0; font-family: 'Inter', sans-serif; }
.len-bar { margin-top: 10px; }
.len-bar > span { font-weight: 500; color: var(--muted); }
.tabs { gap: 22px; }
.tab { font-size: 19px; }

@media (max-width: 1180px) { .type-grid { grid-template-columns: repeat(3, 1fr); } .width-row { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 960px) { .pdp { grid-template-columns: 1fr; } .quick-media { border-inline-end: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 720px) {
  .type-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .type-tile { padding: 14px; }
  .type-tile h3 { font-size: 15px; }
  .type-tile p { display: none; }
  .width-row { grid-template-columns: repeat(3, 1fr); }
  .tabs { gap: 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .tab { font-size: 16px; white-space: nowrap; }
  .size-grid { grid-template-columns: repeat(4, 1fr); }
}
