/* ==========================================================================
   CLOUBAY — Automotive Accessories Storefront
   Design language distilled from established players in the category:
     · WeatherTech / Thule  → industrial grid, hairline rules, flat surfaces
     · VIOFO / Chemical Guys → white ground, near-black type, one signal red
     · Adam's Polishes       → dense retail merchandising, hard-working badges
   Deliberately avoids: gradient meshes, violet accents, oversized radii,
   glass blur — the visual tics that make a store look generated rather than
   merchandised.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Mainstream system UI stack — resolves to Helvetica Neue (macOS),
     Segoe UI (Windows), Roboto (Android/ChromeOS). Nothing exotic, and it
     carries CJK + Arabic through the fallbacks below. */
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI",
    Roboto, Arial, "PingFang SC", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "Meiryo", "Noto Sans Arabic", "Geeza Pro", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, "Courier New", monospace;

  --ink: #15171b;
  --ink-2: #4a5058;
  --ink-3: #7b818a;
  --paper: #ffffff;
  --sand: #f5f3ef;
  --sand-2: #ebe7e0;
  --line: #e0dcd4;
  --line-2: #cfc9bf;
  --steel: #1b1f25;
  --steel-2: #272c34;

  --red: #c8102e;
  --red-dk: #a20b24;
  --amber: #e0a02a;
  --green: #16714a;

  --r: 2px;
  --r-lg: 3px;
  --gut: 24px;
  --maxw: 1320px;

  --shadow: 0 1px 2px rgba(21, 23, 27, .06), 0 8px 24px rgba(21, 23, 27, .06);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
::selection { background: var(--ink); color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.container-narrow { max-width: 820px; }

/* Typographic scale */
.h1 { font-size: clamp(34px, 5vw, 58px); letter-spacing: -.03em; line-height: 1.04; }
.h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.025em; }
.h3 { font-size: clamp(18px, 2vw, 22px); letter-spacing: -.02em; }
.lede { font-size: 17px; color: var(--ink-2); line-height: 1.62; }
.small { font-size: 13px; }
.muted { color: var(--ink-2); }

/* The uppercase micro-label is the workhorse of automotive retail typography */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 12px;
}
.eyebrow--ink { color: var(--ink-3); }

.section { padding: 68px 0; }
.section--tight { padding: 44px 0; }
.section--sand { background: var(--sand); }
.section--steel { background: var(--steel); color: #fff; }
.section--steel .lede, .section--steel .muted { color: #a9b0b9; }
/* Product cards keep their own white ground and dark type inside dark bands */
.section--steel .card { color: var(--ink); }
.section--steel .prod-grid { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .16); }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.sec-head .lede { max-width: 620px; margin: 8px 0 0; }
.sec-head__link { font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--ink); padding-bottom: 2px; white-space: nowrap; }
.sec-head__link:hover { color: var(--red); border-color: var(--red); }

/* ---------- 3. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--r);
  transition: background .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dk); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--ghost-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 34px; font-size: 14px; }
.btn--sm { padding: 9px 16px; font-size: 12px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.link-arrow { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .18s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }
[dir="rtl"] .link-arrow::after { content: "←"; }
[dir="rtl"] .link-arrow:hover::after { transform: translateX(-3px); }

/* ---------- 4. Announcement bar ------------------------------------------ */
.announce {
  background: var(--steel); color: #e8e6e2;
  font-size: 12px; letter-spacing: .04em;
  height: 38px; display: flex; align-items: center; overflow: hidden;
}
.announce .container { display: flex; align-items: center; justify-content: center; gap: 10px; }
.announce b { color: #fff; }
.announce__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--red); flex: none; }

/* ---------- 5. Header ---------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid var(--line); }
.header__bar { display: flex; align-items: center; gap: 28px; height: 68px; }

.logo { display: flex; align-items: center; gap: 9px; flex: none; }
.logo__mark { width: 26px; height: 26px; flex: none; }
.logo__word { font-size: 21px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; margin-inline-end: auto; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: 5px;
  padding: 24px 12px; font-size: 14px; font-weight: 600;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--red); }
.nav__link--sale { color: var(--red); }
.nav__caret { width: 8px; height: 8px; opacity: .5; }

.mega {
  position: absolute; inset-inline-start: -12px; top: 100%;
  min-width: 560px; background: var(--paper); border: 1px solid var(--line);
  border-top: 2px solid var(--red); box-shadow: var(--shadow);
  padding: 22px; display: none; grid-template-columns: 1fr 1fr; gap: 4px 28px;
}
.nav__item:hover .mega { display: grid; }
.mega__link { display: flex; align-items: baseline; gap: 8px; padding: 9px 10px; border-radius: var(--r); font-size: 14px; }
.mega__link:hover { background: var(--sand); }
.mega__link span { font-weight: 600; }
.mega__link em { font-style: normal; font-size: 12px; color: var(--ink-3); margin-inline-start: auto; }

.header__actions { display: flex; align-items: center; gap: 2px; flex: none; }
.icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r); position: relative;
}
.icon-btn:hover { background: var(--sand); }
.icon-btn svg { width: 19px; height: 19px; }
.cart-count {
  position: absolute; top: 3px; inset-inline-end: 3px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--red); color: #fff; border-radius: 8px;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
.cart-count[data-empty="1"] { display: none; }

/* Locale switcher */
.locale { position: relative; }
.locale__btn {
  display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 10px;
  font-size: 13px; font-weight: 600; border-radius: var(--r);
}
.locale__btn:hover { background: var(--sand); }
.locale__flag { font-size: 15px; line-height: 1; }
.locale__code { text-transform: uppercase; letter-spacing: .04em; }
.locale__panel {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 80;
  width: 300px; background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 14px; display: none;
}
.locale__panel.is-open { display: block; }
.locale__title { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.locale__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-bottom: 16px; }
.locale__opt {
  display: flex; align-items: center; gap: 8px; padding: 8px 9px;
  font-size: 13px; text-align: start; border-radius: var(--r); width: 100%;
}
.locale__opt:hover { background: var(--sand); }
.locale__opt[aria-current="true"] { background: var(--ink); color: #fff; }
.locale__cur { display: flex; flex-wrap: wrap; gap: 4px; }
.locale__cur button {
  padding: 6px 11px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line); border-radius: var(--r);
}
.locale__cur button:hover { border-color: var(--ink); }
.locale__cur button[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Mobile */
.burger { display: none; }
.mobile-nav {
  position: fixed; inset: 0; z-index: 90; background: var(--paper);
  transform: translateX(-100%); transition: transform .28s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
[dir="rtl"] .mobile-nav { transform: translateX(100%); }
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gut); border-bottom: 1px solid var(--line); }
.mobile-nav__list { padding: 8px var(--gut) 28px; }
.mobile-nav__list a { display: block; padding: 15px 0; font-size: 17px; font-weight: 600; border-bottom: 1px solid var(--line); }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 95; background: rgba(21,23,27,.5);
  display: none; padding-top: 12vh;
}
.search-overlay.is-open { display: block; }
.search-box { max-width: 720px; margin: 0 auto; background: var(--paper); padding: 22px; }
.search-box input {
  width: 100%; padding: 14px 16px; font-size: 17px;
  border: 1px solid var(--line-2); border-radius: var(--r);
}
.search-box input:focus { border-color: var(--ink); outline: none; }
.search-results { margin-top: 14px; max-height: 52vh; overflow-y: auto; }
.search-hit { display: flex; gap: 12px; align-items: center; padding: 9px; border-radius: var(--r); }
.search-hit:hover { background: var(--sand); }
.search-hit img { width: 46px; height: 46px; object-fit: contain; background: var(--sand); flex: none; }
.search-hit strong { display: block; font-size: 13px; font-weight: 600; }
.search-hit span { font-size: 12px; color: var(--ink-3); }

/* ---------- 6. Hero ------------------------------------------------------ */
.hero { position: relative; background: var(--steel); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,14,17,.94) 0%, rgba(12,14,17,.80) 40%, rgba(12,14,17,.18) 100%);
}
[dir="rtl"] .hero__scrim { background: linear-gradient(270deg, rgba(12,14,17,.94) 0%, rgba(12,14,17,.80) 40%, rgba(12,14,17,.18) 100%); }
.hero__inner { position: relative; padding: 108px 0 96px; max-width: 640px; }
.hero__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fff; display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.hero__eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero p { font-size: 17px; color: #cfd3d8; max-width: 470px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { display: flex; gap: 40px; margin-top: 46px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.18); }
.hero__stat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.hero__stat span { font-size: 12px; color: #9aa1aa; letter-spacing: .04em; }

/* ---------- 7. USP strip ------------------------------------------------- */
.usp { border-bottom: 1px solid var(--line); }
.usp__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.usp__item { display: flex; gap: 12px; align-items: flex-start; padding: 22px 26px; border-inline-start: 1px solid var(--line); }
.usp__item:first-child { border-inline-start: 0; padding-inline-start: 0; }
.usp__item svg { width: 22px; height: 22px; flex: none; color: var(--red); margin-top: 1px; }
.usp__item b { display: block; font-size: 13px; font-weight: 700; }
.usp__item span { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }

/* ---------- 8. Category tiles -------------------------------------------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cat-tile {
  position: relative; display: block; background: var(--sand);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .18s var(--ease);
}
.cat-tile:hover { border-color: var(--ink); }
.cat-tile__img { aspect-ratio: 16 / 10; background: var(--sand); }
.cat-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat-tile:hover .cat-tile__img img { transform: scale(1.035); }
.cat-tile__body { padding: 16px 18px 18px; background: var(--paper); border-top: 1px solid var(--line); }
.cat-tile__body h3 { font-size: 16px; margin-bottom: 3px; }
.cat-tile__body p { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.cat-tile__count { position: absolute; top: 12px; inset-inline-end: 12px; background: rgba(21,23,27,.82); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 2px; }

/* ---------- 9. Product card ---------------------------------------------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.prod-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card { position: relative; background: var(--paper); padding: 16px; display: flex; flex-direction: column; transition: box-shadow .18s var(--ease); }
.card:hover { box-shadow: var(--shadow); z-index: 2; }
.card__media { position: relative; aspect-ratio: 1; background: var(--sand); margin: -16px -16px 14px; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s var(--ease); }
.card__media img.card__img-2 { position: absolute; inset: 0; opacity: 0; }
.card:hover .card__img-2 { opacity: 1; }
.card__badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.badge { font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: 4px 8px; border-radius: 2px; }
.badge--sale { background: var(--red); color: #fff; }
.badge--new { background: var(--ink); color: #fff; }
.badge--best { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.badge--low { background: #fff5e6; color: #8a5b00; border: 1px solid #e6c98d; }

.card__quick {
  position: absolute; inset-inline: 10px; bottom: 10px; z-index: 2;
  opacity: 0; transform: translateY(6px); transition: all .2s var(--ease);
}
.card:hover .card__quick { opacity: 1; transform: none; }
@media (hover: none) { .card__quick { opacity: 1; transform: none; } }

.card__cat { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.card__title { overflow-wrap: anywhere; font-size: 14px; font-weight: 600; line-height: 1.38; letter-spacing: -.005em; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card__title { color: var(--red); }
.card__foot { margin-top: auto; padding-top: 8px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.price s { font-size: 13px; color: var(--ink-3); }
.price .price__off { font-size: 11.5px; font-weight: 700; color: var(--red); }

.stars { display: inline-flex; align-items: center; gap: 4px; }
.stars__glyph { color: var(--amber); font-size: 12px; letter-spacing: .5px; }
.stars__n { font-size: 11.5px; color: var(--ink-3); }

/* ---------- 10. Split banner --------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split__media { min-height: 420px; background: var(--sand-2); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__body { padding: 60px 8% ; display: flex; flex-direction: column; justify-content: center; background: var(--sand); }
.split--dark .split__body { background: var(--steel); color: #fff; }
.split--dark .split__body .lede { color: #a9b0b9; }
.split__list { margin: 20px 0 28px; display: grid; gap: 11px; }
.split__list li { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.split__list li::before { content: ""; width: 6px; height: 6px; background: var(--red); flex: none; margin-top: 8px; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.two-col--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.two-col--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.two-col--top { align-items: start; gap: 48px; }

/* ---------- 11. Spec / trust band ---------------------------------------- */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); }
.specs__cell { background: var(--steel); padding: 26px 22px; }
.specs__cell b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 4px; }
.specs__cell span { font-size: 12.5px; color: #a9b0b9; line-height: 1.45; display: block; }

/* ---------- 12. Reviews -------------------------------------------------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.review { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: var(--paper); }
.review__stars { margin-bottom: 12px; }
.review p { font-size: 14.5px; line-height: 1.6; }
.review__who { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.review__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--sand-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--ink-2); flex: none; }
.review__who b { display: block; font-size: 13px; }
.review__who span { font-size: 11.5px; color: var(--ink-3); }
.review__verified { margin-inline-start: auto; font-size: 11px; color: var(--green); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- 13. Newsletter ----------------------------------------------- */
.newsletter { background: var(--sand); border-top: 1px solid var(--line); }
.newsletter__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 52px 0; }
.nl-form { display: flex; gap: 8px; }
.nl-form input {
  flex: 1; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff;
}
.nl-form input:focus { border-color: var(--ink); outline: none; }
.nl-note { font-size: 12px; color: var(--ink-3); margin: 10px 0 0; }

/* ---------- 14. Footer --------------------------------------------------- */
.footer { background: var(--steel); color: #c8ccd2; padding: 56px 0 0; font-size: 13.5px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding-bottom: 44px; }
.footer__brand .logo__word { color: #fff; }
.footer__brand p { margin: 16px 0 20px; color: #98a0aa; max-width: 290px; line-height: 1.6; }
.footer h4 { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer li { margin-bottom: 9px; }
.footer a:hover { color: #fff; }
.footer__social { display: flex; gap: 8px; }
.footer__social a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; border-radius: var(--r); }
.footer__social a:hover { background: #fff; color: var(--steel); border-color: #fff; }
.footer__social svg { width: 16px; height: 16px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.13); padding: 20px 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px; color: #8b939d;
}
.footer__pay { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pay-chip {
  height: 24px; padding: 0 8px; display: inline-flex; align-items: center;
  background: rgba(255,255,255,.09); border-radius: 3px;
  font-size: 10px; font-weight: 700; letter-spacing: .05em; color: #dfe3e7;
}
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- 15. Cart drawer ---------------------------------------------- */
.scrim { position: fixed; inset: 0; background: rgba(21,23,27,.45); z-index: 88; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; inset-inline-end: 0; bottom: 0; width: 400px; max-width: 100%;
  background: var(--paper); z-index: 89; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s var(--ease);
}
[dir="rtl"] .drawer { transform: translateX(-100%); }
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; background: var(--sand); }
.drawer__row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.drawer__row--total { font-size: 17px; font-weight: 700; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 12px; }

.ship-bar { padding: 12px 22px; background: var(--sand); border-bottom: 1px solid var(--line); font-size: 12.5px; }
.ship-bar__track { height: 4px; background: var(--sand-2); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.ship-bar__fill { height: 100%; background: var(--green); transition: width .3s var(--ease); }

.line-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-item__img { width: 74px; height: 74px; object-fit: cover; background: var(--sand); flex: none; }
.line-item__t { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-item__meta { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.line-item__bot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r); }
.qty button { width: 28px; height: 28px; font-size: 15px; color: var(--ink-2); }
.qty button:hover { color: var(--ink); }
.qty span { min-width: 30px; text-align: center; font-size: 13px; font-weight: 600; }
.remove { font-size: 11.5px; color: var(--ink-3); text-decoration: underline; }
.remove:hover { color: var(--red); }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-3); }

/* ---------- 16. Breadcrumb ----------------------------------------------- */
.crumbs { font-size: 12.5px; color: var(--ink-3); padding: 16px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { opacity: .5; }

/* ---------- 17. Collection page ------------------------------------------ */
.coll-head { border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 26px; }
.coll-head h1 { font-size: clamp(28px, 3.4vw, 40px); }
.coll-head .lede { max-width: 640px; margin-top: 10px; }

.shop-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 36px; align-items: start; }
.filters { position: sticky; top: 92px; }
.filter-group { border-bottom: 1px solid var(--line); padding: 18px 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 13.5px; cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--red); flex: none; }
.check span:last-child { margin-inline-start: auto; font-size: 11.5px; color: var(--ink-3); }
.check:hover { color: var(--red); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar__count { font-size: 13px; color: var(--ink-2); }
.select {
  padding: 9px 32px 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r);
  font-size: 13px; background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M1 1l4 4 4-4' stroke='%2315171b' stroke-width='1.5' fill='none'/></svg>") no-repeat right 12px center;
  -webkit-appearance: none; appearance: none;
}
[dir="rtl"] .select { background-position: left 12px center; padding: 9px 12px 9px 32px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 20px; font-size: 12px; }
.chip button { color: var(--ink-3); font-size: 13px; line-height: 1; }
.chip button:hover { color: var(--red); }
.filter-toggle { display: none; }

/* ---------- 18. Product page --------------------------------------------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 20px; }
.gallery__main { background: var(--sand); aspect-ratio: 1; border: 1px solid var(--line); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 8px; }
.gallery__thumbs button { width: 74px; height: 74px; border: 1px solid var(--line); background: var(--sand); padding: 0; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pdp__info { position: sticky; top: 92px; }
.pdp__brandline { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.pdp h1 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin-bottom: 12px; }
.pdp__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.pdp__price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.pdp__price b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.pdp__price s { color: var(--ink-3); font-size: 16px; }
.pdp__tax { font-size: 12px; color: var(--ink-3); margin-bottom: 20px; }

.opt-group { margin-bottom: 20px; }
.opt-group__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 9px; }
.opt-group__label em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-3); margin-inline-start: 6px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  padding: 9px 16px; border: 1px solid var(--line-2); border-radius: var(--r);
  font-size: 13px; font-weight: 500;
}
.opt:hover { border-color: var(--ink); }
.opt[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }

.buy-row { display: flex; gap: 10px; margin-bottom: 14px; }
.buy-row .qty { height: 48px; }
.buy-row .qty button { width: 40px; height: 100%; }
.buy-row .btn { flex: 1; height: 48px; }

.assure { display: grid; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 20px 0; }
.assure li { display: flex; gap: 10px; font-size: 13px; align-items: center; color: var(--ink-2); }
.assure svg { width: 17px; height: 17px; color: var(--green); flex: none; }

.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-size: 14px; font-weight: 600; text-align: start; }
.acc__btn::after { content: "+"; font-size: 18px; font-weight: 400; color: var(--ink-3); }
.acc__item.is-open .acc__btn::after { content: "−"; }
.acc__panel { display: none; padding: 0 0 20px; font-size: 14px; color: var(--ink-2); line-height: 1.65; }
.acc__item.is-open .acc__panel { display: block; }
.acc__panel ul li { position: relative; padding-inline-start: 16px; margin-bottom: 8px; }
.acc__panel ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: 9px; width: 5px; height: 5px; background: var(--red); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec-table th, .spec-table td { text-align: start; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 40%; font-weight: 600; color: var(--ink); }
.spec-table td { color: var(--ink-2); }

/* ---------- 19. Cart page ------------------------------------------------ */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.cart-table { border-top: 1px solid var(--line); }
.summary { border: 1px solid var(--line); padding: 24px; background: var(--sand); position: sticky; top: 92px; }
.summary h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.summary__row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.summary__total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line-2); }

/* ---------- 20. Content pages -------------------------------------------- */
.page-hero { background: var(--sand); border-bottom: 1px solid var(--line); padding: 56px 0; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); }
.page-hero .lede { max-width: 640px; margin-top: 12px; }

.prose { font-size: 15.5px; line-height: 1.72; color: var(--ink-2); }
.prose h2 { color: var(--ink); font-size: 24px; margin: 40px 0 14px; }
.prose h3 { color: var(--ink); font-size: 17px; margin: 28px 0 10px; }
.prose ul { margin: 0 0 18px; }
.prose ul li { position: relative; padding-inline-start: 18px; margin-bottom: 8px; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: 10px; width: 6px; height: 6px; background: var(--red); }
.prose strong { color: var(--ink); }

.tiles-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { border: 1px solid var(--line); padding: 26px; border-radius: var(--r-lg); background: var(--paper); }
.tile svg { width: 24px; height: 24px; color: var(--red); margin-bottom: 14px; }
.tile h3 { font-size: 16px; margin-bottom: 8px; }
.tile p { font-size: 13.5px; color: var(--ink-2); margin: 0; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-2);
  border-radius: var(--r); background: #fff; font-size: 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.info-list li { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.info-list svg { width: 18px; height: 18px; color: var(--red); flex: none; margin-top: 2px; }
.info-list b { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }

/* ---------- 21. Toast ---------------------------------------------------- */
.toast {
  position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translate(-50%, 20px);
  background: var(--ink); color: #fff; padding: 13px 20px; border-radius: var(--r);
  font-size: 13.5px; z-index: 120; opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  display: flex; align-items: center; gap: 10px;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 16px; height: 16px; color: #6ee7a8; }

/* ---------- 22. RTL ------------------------------------------------------ */
[dir="rtl"] .hero__eyebrow::before { order: 2; }
[dir="rtl"] .stars__glyph { direction: ltr; }
[dir="rtl"] .price, [dir="rtl"] .pdp__price { direction: ltr; justify-content: flex-end; }

/* ---------- 23. Responsive ----------------------------------------------- */
@media (max-width: 1100px) {
  .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .two-col, .two-col--wide-right, .two-col--wide-left { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .burger { display: inline-flex; }
  .header__bar { gap: 12px; }
  .logo { margin-inline-end: auto; }
  .usp__grid { grid-template-columns: 1fr 1fr; }
  .usp__item:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .usp__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__media { min-height: 280px; }
  .split__body { padding: 44px var(--gut); }
  .specs { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .newsletter__inner { grid-template-columns: 1fr; gap: 24px; }
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; display: none; }
  .filters.is-open { display: block; }
  .filter-toggle { display: inline-flex; }
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .pdp__info { position: static; }
  .tiles-3 { grid-template-columns: 1fr; }
  .hero__inner { padding: 76px 0 66px; }
  .hero__scrim { background: linear-gradient(180deg, rgba(12,14,17,.72) 0%, rgba(12,14,17,.9) 70%); }
}

@media (max-width: 680px) {
  :root { --gut: 16px; }
  .header__bar { gap: 6px; height: 60px; }
  .header__actions .icon-btn:not(#searchBtn):not(#cartBtn) { display: none; }
  .locale__code { display: none; }
  .locale__btn { padding: 0 6px; }
  .logo__word { font-size: 18px; letter-spacing: .1em; }
  .logo__mark { width: 22px; height: 22px; }
  .icon-btn { width: 34px; }
  .locale__panel { width: min(300px, calc(100vw - 32px)); }
  .prod-grid, .prod-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .specs { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 46px 0; }
  .gallery__thumbs button { width: 58px; height: 58px; }
}
