/* CASAVENA theme — page-level layout for the catalogue page.
 *
 * components.css and tokens.css are copied VERBATIM from the design kit
 * (design/reference/components/bundle.css and design/tokens/tokens.css) and
 * must stay that way so they can be refreshed from the kit. This file holds
 * what the kit keeps in each reference page's own <style> block, which is
 * not shipped as a stylesheet anywhere.
 *
 * Selector names are the reference's own (.wrap, .crumbs, .layout, .tools,
 * .chips, .grid, .pages) so a designer comparing this page with
 * design/reference/pages/CategoryPage.html finds the same names in both.
 * Every value goes through a token; there is not a hex colour in this file.
 *
 * Desktop container 1280px, mobile reference 375px — design/CLAUDE.md.
 */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/26px var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Arabic, for this file's own rules.
 *
 * design/reference/components/bundle.css now carries the same fix for the
 * kit's components (see the note at the end of it: the `font:` shorthand
 * pins a family and defeats the root [dir="rtl"] rule). These are the page
 * layout rules that live here rather than in the kit, and they have exactly
 * the same problem for exactly the same reason. Generated from the rules
 * below, so the list cannot fall behind them.
 */
[dir="rtl"] :is(.crumbs,
       .subs a,
       aside .fg h4,
       .ck,
       .clear,
       .tools .n,
       .chip,
       .empty h2,
       .pages a,
       .pages span,
       .markets__label,
       .markets__note,
       .markets--choose .markets__label,
       .hero__eyebrow,
       .hero h1,
       .pdp__desc,
       .pdp__label,
       .pdp__opt,
       .pdp__qty button,
       .pdp__qty input,
       .pdp__msg,
       .line__title,
       .line__unit,
       .line__warn,
       .line__qty button,
       .line__qty span,
       .line__total,
       .summary__row b,
       .summary__note,
       .summary__back,
       .notice) { font-family: var(--font-arabic); letter-spacing: 0; }

/* Arabic takes no letter-spacing — brand book. */
[dir="rtl"] .cv-card__brand,
[dir="rtl"] .cv-badge,
[dir="rtl"] .cv-t-eyebrow { letter-spacing: 0; }

/* The kit's components are written for LTR; these are the only directional
   properties among the ones this page uses. */
[dir="rtl"] .cv-header__actions { margin-left: 0; margin-inline-start: auto; }
[dir="rtl"] .cv-header__nav .cv-header__promo { margin-left: 0; margin-inline-start: auto; }
[dir="rtl"] .cv-card__badges { left: auto; right: var(--space-3); }
[dir="rtl"] .cv-card__fav { right: auto; left: var(--space-2); }
[dir="rtl"] .cv-footer__legal i { margin-right: 0; margin-left: var(--space-2); }
[dir="rtl"] .sort { margin-left: 0; margin-inline-start: auto; }
[dir="rtl"] .ck small, [dir="rtl"] .cnt b { margin-left: 0; margin-inline-start: auto; }

a { color: inherit; }

/* Anchors styled as buttons. The kit's buttons are <button> elements, so
   .cv-btn never needed this; here the catalogue's primary action is a link
   to the product, and the browser's default underline was showing through
   it. Found in the screenshots, not in the markup. */
.cv-btn { text-decoration: none; }

/* LTR runs on an RTL page: prices, phone numbers, currency codes.
 *
 * Arabic rendered "DH 349" instead of "349 DH", and "+212600000000" as
 * "212600000000+". Neither is a markup bug -- it is the bidirectional
 * algorithm doing exactly what it should with a Latin abbreviation and a
 * weakly-directional "+" inside an RTL paragraph. The fix is to tell it
 * these are self-contained LTR runs, which is what isolation means.
 *
 * design/CLAUDE.md specifies the price format as `1 299 DH` with no
 * exception for Arabic, so the number keeps its order in both directions;
 * only its POSITION on the page mirrors. */
.cv-price__now,
.cv-price__was,
.cv-num { unicode-bidi: isolate; direction: ltr; }

/* Directional chevrons. One icon, mirrored where the reading direction
   mirrors: "previous" points backwards, whichever way backwards is. */
.pages .cv-prev { transform: scaleX(-1); }
[dir="rtl"] .pages .cv-prev { transform: none; }
[dir="rtl"] .pages .cv-next { transform: scaleX(-1); }
[dir="rtl"] .crumbs .cv-icon { transform: scaleX(-1); }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ── Breadcrumbs ──────────────────────────────────────────────────── */
.crumbs {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
  padding: var(--space-5) 0 var(--space-4);
  font: 400 13px/18px var(--font-sans);
  color: var(--ink-muted);
}
.crumbs a { text-decoration: none; color: var(--ink-muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 600; }

/* ── Category pills (the kit's .subs) ─────────────────────────────── */
/* Category pills. Hidden at desktop width, where the header nav and the
   filter rail already offer the same list twice -- three copies of a
   two-category taxonomy is noise. They come back on mobile, where the rail
   drops below the grid and the kit's own mobile reference uses pills. */
.subs { display: none; flex-wrap: wrap; gap: var(--space-3); margin: 0 0 var(--space-6); }
.subs a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 7px 16px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  text-decoration: none;
  font: 600 14px/18px var(--font-sans);
  color: var(--heading);
  white-space: nowrap;
}
.subs a.on { border: 2px solid var(--heading); padding: 6px 15px; }
.subs a:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ── The two-column body ──────────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: 264px 1fr;
  gap: var(--space-6);
  align-items: start;
  padding-bottom: var(--space-8);
}

aside {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-5) var(--space-5);
  position: sticky;
  top: 16px;
}
aside .fg { padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
aside .fg:last-of-type { border-bottom: 0; }
aside .fg h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 var(--space-3);
  font: 700 14px/20px var(--font-sans);
  color: var(--heading);
}
.ck {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 5px 0;
  font: 400 14px/20px var(--font-sans);
  color: var(--ink);
  text-decoration: none;
}
.ck i {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--on-primary);
}
.ck.on i { background: var(--primary); border-color: var(--primary); }
.ck.on { font-weight: 700; color: var(--heading); }
.ck:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* The search field inside the filter rail. */
aside .cv-search { max-width: none; height: 40px; }
aside .cv-btn { margin-top: var(--space-4); }

.clear {
  font: 600 13px/18px var(--font-sans);
  color: var(--heading);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Toolbar above the grid ───────────────────────────────────────── */
.tools { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); flex-wrap: wrap; }
.tools .n { font: 400 14px/20px var(--font-sans); color: var(--ink-muted); }
.tools .n b { color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); align-items: center; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--sand-soft);
  font: 600 13px/18px var(--font-sans);
  color: var(--heading);
  text-decoration: none;
}

/* ── The grid ─────────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid .cv-card__title { text-decoration: none; }
.grid a.cv-card__media { display: block; }

.empty {
  grid-column: 1 / -1;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}
.empty h2 { margin: 0 0 var(--space-2); font: 700 20px/28px var(--font-sans); color: var(--heading); }
.empty p { margin: 0 0 var(--space-4); color: var(--ink-muted); font-size: 15px; }

/* ── Pagination ───────────────────────────────────────────────────── */
.pages { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin: var(--space-7) 0 0; }
.pages a, .pages span {
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-3);
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  font: 600 14px/1 var(--font-sans);
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface-raised);
  text-decoration: none;
}
.pages span.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.pages a:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ── The market switcher, in the theme's own vocabulary ───────────── */
/* Same data, same CSRF-protected POST to /market/switch as the stock
   storefront: only the clothes are different. */
.markets { background: var(--surface-sunken); border-bottom: 1px solid var(--line); }
.markets__in {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}
.markets__label { font: 600 13px/18px var(--font-sans); color: var(--ink); }
.markets form { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.markets__note { font: 400 12px/16px var(--font-sans); color: var(--ink-muted); width: 100%; }
.markets--choose { background: var(--sand-soft); border-bottom-color: var(--sand); }
.markets--choose .markets__label { font: 700 16px/24px var(--font-sans); color: var(--heading); }

/* ── Home: the hero ───────────────────────────────────────────────── */
/* design/reference/pages/Homepage.html's hero, reduced to what there is
   data for: the tenant's name and one action. The arch is the brand's own
   motif from the kit's banner, drawn with tokens. */
.hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  background: var(--olive);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 260px;
  margin: var(--space-5) 0 var(--space-7);
}
.hero__txt {
  padding: var(--space-7);
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  align-items: flex-start;
}
.hero__eyebrow {
  font: 700 12px/16px var(--font-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sand);
}
.hero h1 {
  margin: 0;
  font: 800 40px/48px var(--font-sans);
  letter-spacing: -.02em;
  color: var(--ivory);
}
.hero__art { position: relative; background: var(--sand); }
.hero__arch {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 230px;
  height: 190px;
  background: var(--ivory);
  border-radius: 115px 115px 0 0;
}
.hero__body {
  margin: 0;
  max-width: 52ch;
  font: 400 16px/26px var(--font-sans);
  color: var(--sand-soft, var(--sand));
}
[dir="rtl"] .hero h1, [dir="rtl"] .hero__eyebrow { letter-spacing: 0; }

/* The announcement line. Above everything, full width, and quiet: it is one
   sentence an operator wrote, not a banner component. It is only rendered
   when there is text for it, so there is no empty-state to style. */
.cv-announce {
  padding: var(--space-3) var(--space-5);
  background: var(--sand);
  color: var(--ink);
  font: 600 13px/20px var(--font-sans);
  text-align: center;
}
[dir="rtl"] .cv-announce { letter-spacing: 0; }

/* ── Product detail ───────────────────────────────────────────────── */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
  padding-bottom: var(--space-8);
}
.pdp__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-sunken);
  border-radius: var(--radius-lg);
  padding: 10%;
  overflow: hidden;
}
.pdp__media img { width: 100%; height: 100%; object-fit: contain; }
/* Capped so a product with no photo does not give the page a 600px empty
   square. The kit's reference gallery is a squarer, smaller tile. */
.pdp__media { max-width: 520px; }

/* The placeholder for a product with no photo. Deliberately quiet: it marks
   the tile as empty rather than decorating it, and it is the only thing
   drawn here that is not a real product image. */
.noimg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--line-strong);
  opacity: .45;
  pointer-events: none;
}
.cv-card__media, .line__media { position: relative; }
.pdp__info { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.pdp__info h1 { margin: 0; color: var(--heading); }
.pdp__desc { margin: 0; font: 400 16px/26px var(--font-sans); color: var(--ink); }
.pdp__label {
  margin: 0;
  font: 700 14px/20px var(--font-sans);
  color: var(--heading);
  display: flex;
  gap: var(--space-2);
}
.pdp__label span { font-weight: 400; color: var(--ink-muted); }
.pdp__variants { display: flex; flex-direction: column; gap: var(--space-3); width: 100%; }
.pdp__opts { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pdp__opt {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-raised);
  font: 600 14px/18px var(--font-sans);
  color: var(--ink);
  cursor: pointer;
}
.pdp__opt.is-on {
  border: 2px solid var(--heading);
  padding: 8px 15px;
  color: var(--heading);
  background: var(--sand-soft);
}
.pdp__opt:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.pdp__buy { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; width: 100%; }
.pdp__qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-raised);
}
.pdp__qty button {
  width: 44px;
  height: 52px;
  border: 0;
  background: transparent;
  color: var(--heading);
  font: 600 20px/1 var(--font-sans);
  cursor: pointer;
}
.pdp__qty input {
  width: 48px;
  height: 52px;
  border: 0;
  text-align: center;
  background: transparent;
  color: var(--ink);
  font: 700 16px/1 var(--font-sans);
}
.pdp__qty button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.pdp__msg { margin: 0; font: 600 14px/20px var(--font-sans); min-height: 20px; }
.pdp__msg.is-ok    { color: var(--success); }
.pdp__msg.is-error { color: var(--danger); }

/* ── Cart ─────────────────────────────────────────────────────────── */
.cartlayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-6);
  align-items: start;
  padding-bottom: var(--space-8);
}
.lines { display: flex; flex-direction: column; gap: var(--space-3); }
.line {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto auto auto;
  gap: var(--space-4);
  align-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}
.line--bad { border-color: var(--sale); background: var(--sale-soft); }
.line__media {
  width: 88px;
  aspect-ratio: 1 / 1;
  background: var(--surface-sunken);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.line__media img { width: 100%; height: 100%; object-fit: contain; }
.line__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.line__title { margin: 0; font: 600 15px/22px var(--font-sans); color: var(--ink); }
.line__title a { text-decoration: none; }
.line__info .cv-badge { align-self: flex-start; }
.line__unit { font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.line__warn {
  margin: 0;
  display: flex;
  gap: var(--space-1);
  align-items: center;
  font: 600 13px/18px var(--font-sans);
  color: var(--sale);
}
.line__qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.line__qty button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font: 600 16px/1 var(--font-sans);
  cursor: pointer;
}
.line__qty span {
  min-width: 32px;
  text-align: center;
  font: 700 14px/1 var(--font-sans);
  color: var(--ink);
}
.line__qty button:focus-visible, .line__remove:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
.line__total { font: 800 16px/22px var(--font-sans); color: var(--heading); white-space: nowrap; }
.line__remove {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
}
.line__remove:hover { color: var(--danger); }
.cv-close { transform: rotate(45deg); }

.summary {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.summary__row { display: flex; justify-content: space-between; align-items: baseline; }
.summary__row b { font: 800 20px/24px var(--font-sans); color: var(--heading); }
.summary__note { margin: 0; font: 400 13px/18px var(--font-sans); color: var(--ink-muted); }
.summary__back { text-align: center; font: 600 13px/18px var(--font-sans); color: var(--heading); }

/* ── Notices ──────────────────────────────────────────────────────── */
.notice {
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  font: 400 14px/22px var(--font-sans);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.notice b { font-weight: 700; }
.notice ul { margin: var(--space-1) 0 0; padding-inline-start: var(--space-5); }
.notice--info { background: var(--sand-soft); color: var(--heading); border: 1px solid var(--sand); }
.notice--warn { background: var(--sale-soft); color: var(--sale); border: 1px solid var(--sale); }

/* ── Checkout ─────────────────────────────────────────────────────── */
/* The shared checkout script hides and shows panels with the `hidden`
 * CLASS. The stock view gets it from Tailwind; this file must define it, or
 * the price-change acceptance panel would be visible on every page load and
 * the quote errors would never clear. It is the single most load-bearing
 * declaration in this stylesheet. */
.hidden { display: none !important; }

.co-form {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.co-form form { display: flex; flex-direction: column; gap: var(--space-4); }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.co-span { grid-column: 1 / -1; }
.co-cod {
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font: 400 13px/18px var(--font-sans);
  color: var(--ink-muted);
}
.co-free { color: var(--success); font-weight: 600; }

.co-lines { display: flex; flex-direction: column; gap: var(--space-2); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.co-line { display: flex; align-items: baseline; gap: var(--space-2); font: 400 14px/20px var(--font-sans); color: var(--ink); }
.co-line__name { flex: 1; min-width: 0; }
.co-line__name small { display: block; color: var(--ink-muted); font-size: 12px; }
.co-line__qty { color: var(--ink-muted); font-size: 13px; }
.co-line__total { font-weight: 600; white-space: nowrap; }

.summary__row--grand { padding-top: var(--space-3); border-top: 1px solid var(--line); }
.summary__row--grand b { font: 800 20px/24px var(--font-sans); color: var(--heading); }

/* The acceptance panel. Terracotta rather than olive: it is the one thing on
   the page that is asking a question rather than reporting a fact. */
.notice--accept {
  background: var(--sale-soft);
  color: var(--ink);
  border: 1px solid var(--sale);
}
.notice--accept b { color: var(--sale); font: 700 16px/24px var(--font-sans); }
.co-pc-amounts { display: flex; flex-wrap: wrap; gap: var(--space-5); margin: var(--space-2) 0; }
.co-pc-amounts b { font: 800 20px/24px var(--font-sans); color: var(--sale); }
.co-pc-amounts s { color: var(--ink-muted); }
.co-pc-note { margin: 0; font-size: 13px; color: var(--ink-muted); }
.co-pc-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
/* The accept label is a full sentence, and a translated one can be far
 * longer than the English. .cv-btn is `white-space: nowrap` by kit design --
 * right for "Ajouter au panier", wrong for "Accepter les nouveaux prix et
 * commander" on a 390px screen, where it made the whole page scroll
 * sideways. Found by the browser checks: the French checkout overflowed at
 * mobile width while the Arabic one happened to fit, which is exactly the
 * kind of difference only a layout engine reports.
 *
 * The button wraps instead of the page scrolling. */
.co-pc-actions .cv-btn {
  white-space: normal;
  height: auto;
  min-height: 36px;
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: center;
  max-width: 100%;
}
#pc-lines { margin: var(--space-1) 0 0; padding-inline-start: var(--space-5); font-size: 13px; }

/* ── Order confirmation ───────────────────────────────────────────── */
.ty {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-7) 0 var(--space-8);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.ty__mark {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--success-soft);
  color: var(--success);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-2);
}
.ty h1 { margin: 0; color: var(--heading); }
.ty__lead { margin: 0; font: 400 16px/26px var(--font-sans); color: var(--ink); }
.ty__note { margin: 0; font: 400 14px/22px var(--font-sans); color: var(--ink-muted); }
.ty__card {
  width: 100%;
  margin-top: var(--space-4);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.ty__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.ty__head b { font: 700 15px/22px var(--font-sans); color: var(--heading); }
.ty__items { display: flex; flex-direction: column; gap: var(--space-3); }
.ty__item { display: flex; align-items: center; gap: var(--space-3); }
.ty__thumb {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-sunken);
}
.ty__thumb img { width: 100%; height: 100%; object-fit: contain; }
.ty__name { flex: 1; min-width: 0; font: 600 14px/20px var(--font-sans); color: var(--ink); }
.ty__name small { display: block; font-weight: 400; color: var(--ink-muted); font-size: 12px; }
.ty__qty { color: var(--ink-muted); font-size: 13px; }
.ty__line { font: 700 14px/20px var(--font-sans); color: var(--heading); white-space: nowrap; }
.ty__phone { width: 100%; text-align: start; }
.ty__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-4); }
.ty-empty { margin: var(--space-7) auto; max-width: 560px; }

/* ── The preview bar ──────────────────────────────────────────────── */
/* Terracotta, which this design system uses for nothing else on a
   storefront page, so it reads as "not the shop" at a glance. Sticky,
   because a draft must not stop announcing itself when you scroll. */
.previewbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-2) var(--space-4);
  background: var(--terracotta);
  color: var(--ivory);
  font: 600 13px/18px var(--font-sans);
}
[dir="rtl"] .previewbar { letter-spacing: 0; }
.previewbar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ivory);
  flex: none;
}
.previewbar form { margin: 0; }
.previewbar button {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 2px var(--space-3);
  border-radius: var(--radius-full);
  cursor: pointer;
}
.previewbar button:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ── Mobile, 375px reference ──────────────────────────────────────── */
/* The adaptations the kit shows in CategoryMobile.html: a 2-column grid,
   compact card bodies, category pills instead of a filter rail, and a
   48px-high primary action. */
@media (max-width: 900px) {
  .wrap { padding: 0 var(--space-4); }
  .layout { grid-template-columns: 1fr; gap: var(--space-4); }
  aside { position: static; order: 2; }
  .subs { display: flex; }
  .fg--cats { display: none; }     /* the pills above are the mobile control */
  .grid { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .grid .cv-card__body { padding: var(--space-3); gap: 6px; }
  .grid .cv-card__title { font-size: 13px; line-height: 18px; min-height: 36px; }
  .grid .cv-price__now { font-size: 17px; }
  .grid .cv-avail { display: none; }
  .grid .cv-card .cv-btn { height: 48px; }
  .cv-header__main { flex-wrap: wrap; gap: var(--space-3); padding: var(--space-3) var(--space-4); }
  .cv-header__nav { padding: 0 var(--space-4); }
  .cv-search { order: 3; width: 100%; max-width: none; flex-basis: 100%; }
  .cv-footer__cols { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .cv-footer__legal { flex-direction: column; gap: var(--space-3); align-items: flex-start; }
  .markets__in { padding: var(--space-3) var(--space-4); }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__txt { padding: var(--space-5); gap: var(--space-3); }
  .hero h1 { font-size: 28px; line-height: 36px; }
  .hero__art { height: 120px; }
  .hero__arch { width: 160px; height: 110px; border-radius: 80px 80px 0 0; }

  .pdp { grid-template-columns: 1fr; gap: var(--space-5); }
  .pdp__info h1 { font-size: 26px; line-height: 34px; }
  .pdp__buy .cv-btn { flex: 1; height: 48px; }

  .cartlayout { grid-template-columns: 1fr; }
  .summary { position: static; }
  /* The line becomes two rows on a phone: media + info, then the controls. */
  .line { grid-template-columns: 64px minmax(0, 1fr) auto; row-gap: var(--space-2); }
  .line__media { width: 64px; }
  .line__qty { grid-column: 2; }
  .line__total { grid-column: 3; text-align: end; }
  .line__remove { grid-row: 1; grid-column: 3; align-self: start; }

  .co-grid { grid-template-columns: 1fr; }
  /* One action per row on a phone, each full width. */
  .co-pc-actions { flex-direction: column; }
  .co-pc-actions .cv-btn { width: 100%; }
  .co-form { padding: var(--space-4); }
  .ty { padding: var(--space-5) 0 var(--space-7); }
  .ty__actions .cv-btn { flex: 1; height: 48px; }
}
