/* generated by tools/scss.py from theme.scss (Dart Sass 1.105.2) — edit theme.scss, never this file */
/* ─────────────────────────────────────────────────────────────────────────────
   PAGDANDI — design lab theme (hikmastream-commerce spec/theme-batch-plan.md, books b1 slot 4)
   Brief: walkers and travellers buying field guides and nature writing before a trip north.
   World: a mountain footpath — contour maps, a dashed trail, waypoint flags.
   Signature: the trail — one dashed path winds under the hero, and every section
   begins on a dashed stretch of it with a waypoint flag.
   Type: Bitter + Assistant. Hero: centred stack over a wide landscape.
   Layout from home/walnut-brass. Factors change TOKENS ONLY (TL-R2).
   lineup: hero=centred-stack card=rounded-map world=trail */
@import url("family/family.css");
@import url("shared/vendor/fonts/bitter.css");
@import url("shared/vendor/fonts/assistant.css");
@import url("shared/vendor/fonts/noto-naskh-arabic.css");
@import url("family/family.css");
html[data-f-size=S] {
  font-size: calc(14.5px * var(--ft-scale, 1));
  --dsc: 0.86;
}

html[data-f-size=L] {
  font-size: calc(17.5px * var(--ft-scale, 1));
  --dsc: 1.16;
}

html[data-f-size=XL] {
  font-size: calc(20px * var(--ft-scale, 1));
  --dsc: 1.3;
}

html[data-f-size=XL] svg:has(> use[href*="icons.svg#"]) {
  zoom: 1.35;
}

html[data-f-size=XL] :is(.btn, button:not(.mode-switch):not(.rail-btn):not(.pg-dots button), select,
input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]), .acts a, .acts .mode-switch) {
  min-height: 56px;
}

html[data-f-size=XL] .acts :is(a, .mode-switch) {
  min-width: 56px;
  justify-content: center;
}

html[data-f-size=XL] .rail-btn {
  width: 56px;
  height: 56px;
}

html[data-f-size=XL][data-f-size] {
  --cols: 3;
}

html[data-f-size=XL][data-view=compact] {
  --cols: 4;
}

html[data-f-size=XL][data-view=large] {
  --cols: 2;
}

@media (max-width: 1023px) {
  html[data-f-size=XL][data-f-size] {
    --cols: 2;
  }
  html[data-f-size=XL][data-view=compact] {
    --cols: 3;
  }
  html[data-f-size=XL][data-view=large] {
    --cols: 1;
  }
}
@media (max-width: 599px) {
  html[data-f-size=XL][data-f-size] {
    --cols: 1;
  }
  html[data-f-size=XL][data-view=compact] {
    --cols: 2;
  }
  html[data-f-size=XL][data-view=large] {
    --cols: 1;
  }
  html[data-f-size=XL] .grid[style*="--cols"] {
    --cols: 1 !important;
  }
  html[data-f-size=XL] {
    --dsc: 1;
  }
  html[data-f-size=XL] .top > * {
    min-width: 0;
  }
  html[data-f-size=XL] .top .mark {
    zoom: 0.8;
    white-space: normal;
    flex-wrap: wrap;
    max-width: 50vw;
  }
  html[data-f-size=XL] .acts {
    gap: 0;
  }
  html[data-f-size=XL] .acts :is(a, .mode-switch) {
    min-width: 40px;
  }
  html[data-f-size=XL] .menu {
    max-width: 100%;
  }
  html[data-f-size=XL] .menu a {
    overflow-wrap: anywhere;
  }
  html[data-f-size=XL] .shead :is(h2, .kick) {
    white-space: normal;
  }
  html[data-f-size=XL] :is(.hero-copy, .lhead, .shead) {
    min-width: 0;
  }
  html[data-f-size=XL] :is(.hero-cta, .news form) {
    flex-wrap: wrap;
  }
  html[data-f-size=XL] form :is(input, select, button) {
    min-width: 0;
    max-width: 100%;
  }
}
html[data-view=compact] {
  --cols: 7;
}

html[data-view=large] {
  --cols: 3;
}

html[data-f-details=minimal] .d-m,
html[data-f-details=minimal] .d-r {
  display: none !important;
}

html[data-f-details=moderate] .d-r {
  display: none !important;
}

*, *::before, *::after {
  box-sizing: border-box;
}

img {
  display: block;
  max-width: 100%;
}

p {
  margin: 0;
}

button, input, select {
  font: inherit;
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
svg[viewBox="0 0 24 24"] {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hs-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

a {
  color: inherit;
  text-decoration-color: var(--mist);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--accent);
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

input[type=radio], input[type=checkbox] {
  accent-color: var(--accent);
}

:root {
  --ts: var(--ts-ratio, 1.25);
  --fs-1: calc(1rem * var(--ts));
  --fs-2: calc(var(--fs-1) * var(--ts));
  --fs-3: calc(var(--fs-2) * var(--ts));
  --fs-4: calc(var(--fs-3) * var(--ts));
  --fs-5: calc(var(--fs-4) * var(--ts));
  --fs-6: calc(var(--fs-5) * var(--ts));
  --fs-7: calc(var(--fs-6) * var(--ts));
}

@media (max-width: 860px) {
  :root {
    --ts: var(--ts-ratio-phone, 1.18);
  }
}
.hero-copy, .lhead, .buy {
  container-type: inline-size;
  min-inline-size: 0;
  inline-size: -webkit-fill-available;
  inline-size: -moz-available;
  inline-size: stretch;
}

.hero-copy h1 {
  font-size: clamp(var(--fs-3), 10.5cqi, var(--fs-7));
  overflow-wrap: break-word;
}

.lhead h1 {
  font-size: clamp(var(--fs-3), 8cqi, var(--fs-5));
  overflow-wrap: break-word;
}

.buy h1 {
  font-size: clamp(var(--fs-2), 7cqi, var(--fs-4));
  overflow-wrap: break-word;
}

.count:not(:empty) {
  display: inline-block;
  box-sizing: border-box;
  min-inline-size: 1.6em;
  block-size: auto;
  padding: calc((1.6em - 1cap) / 2) 0.42em;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
  text-indent: 0;
  font-family: var(--text);
  font-variant-numeric: tabular-nums lining-nums;
  text-box: trim-both cap alphabetic;
}

.search input::placeholder {
  color: var(--stone);
}

.acts a.only-narrow {
  display: none;
}

.acts .mode-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.mode-switch .ms-sun, html[data-mode=dark] .mode-switch .ms-moon {
  display: none;
}

html[data-mode=dark] .mode-switch .ms-sun {
  display: block;
}

.mode-switch:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 4px;
}

.search button {
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.rail::-webkit-scrollbar {
  display: none;
}

.rail > * {
  scroll-snap-align: start;
}

.rail {
  scroll-padding-inline: var(--edge);
}

.rail-wrap {
  position: relative;
}

.rail-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.rail-btn.prev {
  inset-inline-start: calc(var(--edge) - 20px);
}

.rail-btn.next {
  inset-inline-end: calc(var(--edge) - 20px);
}

.rail-btn[disabled] {
  opacity: 0;
  pointer-events: none;
}

.card-name a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.price {
  font-variant-numeric: tabular-nums;
}

.card {
  position: relative;
}

.filter > summary::-webkit-details-marker {
  display: none;
}

.fgroup {
  display: grid;
  gap: 10px;
  align-content: start;
}

.chips input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.facts .clear {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--stone);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.views label:hover svg {
  color: var(--ink);
}

.more {
  display: grid;
  place-items: center;
  padding-top: calc(var(--sec) * 0.5);
}

.views i {
  position: absolute;
}

@media (max-width: 599px) {
  .grid[style*="--cols"] {
    --cols: 2 !important;
  }
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.facts {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--mist);
  padding-top: 14px;
}

.views input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.grid.ed .card {
  display: flex;
  flex-direction: column;
}

.dots {
  display: flex;
  gap: 10px;
}

.dots input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pills input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.st-row {
  display: inline-flex;
  gap: 2px;
}

.alt-card > span {
  display: grid;
  gap: 2px;
  justify-items: start;
}

.rev-sum {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: start;
}

.rev-sum .btn {
  margin-top: 8px;
}

.rev-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.rev-list p {
  max-width: 58ch;
}

.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.shipline {
  font-size: 0.88rem;
  color: var(--stone);
}

.accs details {
  border-bottom: 1px solid var(--mist);
}

.accs details[open] summary::after {
  content: "–";
}

.accs p, .accs ul {
  color: var(--stone);
  font-size: 0.92rem;
  padding-bottom: 16px;
  margin: 0;
}

.stars small {
  color: var(--stone);
}

.lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.choice small {
  grid-column: 2;
  color: var(--stone);
}

.co .sum {
  position: static;
}

.co-items div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.fs {
  display: grid;
  gap: 14px;
  border: 0;
  padding: 0;
  margin: 0;
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fld {
  display: grid;
  gap: 5px;
}

.choice {
  display: grid;
  gap: 10px;
}

.co-items {
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
}

:where(html) {
  --foot: var(--well);
  --foot-ink: var(--ink);
  --foot-stone: var(--stone);
}

.foot-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  align-items: center;
  padding: 16px var(--edge);
  border-top: 1px solid var(--mist);
}

.fs-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fs-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--foot-stone);
  margin-inline-end: 4px;
}

.fs-social a {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--mist);
  border-radius: 50%;
  color: var(--foot-stone);
}

.fs-social svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.fs-seal svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

@media (max-width: 599px) {
  .foot-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .foot-grid > div {
    order: 0 !important;
  }
  .foot-grid a, .foot-grid li {
    overflow-wrap: anywhere;
  }
}
.news input:focus {
  outline: none;
}

.news input::placeholder {
  color: var(--foot-stone);
}

.hs-consent {
  display: grid;
  gap: 0.6em;
  padding: var(--pad, 1rem) var(--gut, 1rem);
  background: var(--well);
  color: var(--ink);
  border-bottom: 1px solid var(--edge);
  font-size: 0.95rem;
  line-height: 1.45;
}

.hs-consent[hidden] {
  display: none;
}

.hs-consent h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}

.hs-consent p {
  margin: 0;
  color: var(--ink);
  max-width: 70ch;
}

.hs-consent-purposes {
  display: grid;
  gap: 0.5em;
}

.hs-consent-purposes[hidden] {
  display: none;
}

.hs-consent-purpose {
  display: flex;
  gap: 0.6em;
  align-items: flex-start;
  color: var(--ink);
  cursor: pointer;
}

.hs-consent-purpose input {
  width: 1.25em;
  height: 1.25em;
  margin: 0.1em 0 0;
  flex: none;
  accent-color: var(--accent);
}

.hs-consent-purpose strong {
  color: var(--ink);
}

.hs-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: center;
}

.hs-consent-button {
  min-height: 44px;
  padding: 0.55em 1.2em;
  border: 0;
  border-radius: var(--r, 6px);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.hs-consent-more, .hs-consent-again {
  min-height: 44px;
  padding: 0.55em 0.4em;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.hs-consent-again {
  display: block;
  margin: 0.75em auto;
  padding: 0.45em 1em;
  font-size: 0.85rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--edge);
  border-radius: 999px;
  text-decoration: none;
}

.hs-consent :focus-visible, .hs-consent-again:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 599px) {
  [data-page=product] .crumb {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-block: 4px;
    margin-block: 0;
    font-size: 0.82rem;
  }
  [data-page=product] .pdp {
    padding-top: 8px;
    gap: 10px;
  }
  [data-page=product] .pdp .pg {
    gap: 0;
    position: relative;
  }
  [data-page=product] .pdp .pg-main {
    display: none;
  }
  [data-page=product] .pdp .pg-thumbs {
    display: flex;
    gap: 0;
    padding: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  [data-page=product] .pdp .pg-thumbs::-webkit-scrollbar {
    display: none;
  }
  [data-page=product] .pdp .pg-thumbs > img {
    flex: 0 0 100%;
    width: 100%;
    height: var(--pg-h, 40svh);
    aspect-ratio: auto;
    object-fit: contain;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    background: var(--well);
    border: 0;
    border-radius: var(--r, 0);
    cursor: auto;
    opacity: 1;
    outline: 0;
  }
  [data-page=product] .pdp .buy {
    row-gap: 8px;
  }
  [data-page=product] .pdp .buy > :is(.card-brand, h1, div:has(> .price), .opt, .btn) {
    order: -1;
  }
  [data-page=product] .pdp .buy > .btn {
    position: sticky;
    bottom: 10px;
    z-index: 6;
    width: 100%;
    box-shadow: 0 0 0 10px var(--paper);
  }
  .pg-dots {
    position: absolute;
    inset-inline: 0;
    bottom: 4px;
    display: flex;
    justify-content: center;
    gap: 2px;
    pointer-events: none;
  }
  .pg-dots button {
    pointer-events: auto;
  }
  .pg-dots button {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: grid;
    place-items: center;
  }
  .pg-dots button::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mist);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--paper) 70%, transparent);
  }
  .pg-dots button[aria-current=true]::before {
    background: var(--ink);
  }
  html[data-phone-listing=one]:has(> body[data-page^=listing]) {
    scroll-snap-type: y proximity;
  }
  html[data-phone-listing=one] [data-page^=listing] .grid {
    --cols: 1 !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html[data-phone-listing=one] [data-page^=listing] .grid > .card {
    height: calc(100svh - var(--hs-top, 0px));
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    scroll-margin-top: var(--hs-top, 0px);
    padding-bottom: 72px;
  }
  html[data-phone-listing=one] [data-page^=listing] .grid > .card :is(.card-meta, .card-brand) {
    display: none;
  }
  html[data-phone-listing=one] [data-page^=listing] .grid > .card > .card-media {
    flex: 1 1 0;
    min-height: 0;
    aspect-ratio: auto;
    display: flex;
  }
  html[data-phone-listing=one] [data-page^=listing] .grid > .card > .card-media > img {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: contain;
  }
}
.hs-pager {
  position: fixed;
  inset-inline: 0;
  bottom: 14px;
  margin-inline: auto;
  width: max-content;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--ink) 25%, transparent);
}

.hs-pager[hidden] {
  display: none;
}

.hs-pager output {
  padding-inline: 8px;
  min-width: 4.5em;
  text-align: center;
}

.hs-pager button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.hs-pager button:disabled {
  opacity: 0.35;
  cursor: default;
}

.hs-pager button:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: -4px;
}

.hs-install {
  position: fixed;
  z-index: 60;
  inset-inline: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  margin-inline: auto;
  max-inline-size: 440px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  column-gap: 12px;
  row-gap: 10px;
  padding: 14px 14px 14px 16px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--mist);
  border-radius: calc(var(--r, 4px) + 10px);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--ink) 22%, transparent);
  font-family: var(--text);
  font-size: 0.92rem;
  line-height: 1.4;
  animation: hs-install-in 0.22s ease-out;
}

body[data-page=product] .hs-install {
  bottom: auto;
  top: calc(12px + env(safe-area-inset-top, 0px));
}

.hs-install-icon {
  inline-size: 48px;
  block-size: 48px;
  border-radius: 22%;
  grid-row: span 2;
}

.hs-install-words strong {
  display: block;
  font-family: var(--display);
  font-size: 1.02rem;
}

.hs-install-words p {
  margin: 2px 0 0;
  color: var(--stone);
}

.hs-install-acts {
  grid-column: 2/-1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.hs-install-acts button {
  min-block-size: 44px;
  padding-inline: 16px;
  font: inherit;
  cursor: pointer;
}

.hs-install-later {
  background: none;
  border: 0;
  color: var(--stone);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hs-install-x {
  grid-column: 3;
  grid-row: 1;
  inline-size: 44px;
  block-size: 44px;
  margin: -10px -8px 0 0;
  border: 0;
  background: none;
  color: var(--stone);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.hs-install button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@keyframes hs-install-in {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hs-install {
    animation: none;
  }
}
.hs-push {
  grid-template-columns: 1fr auto;
}

.hs-push .hs-install-words {
  grid-column: 1;
}

.hs-push .hs-install-acts {
  grid-column: 1/-1;
}

.hs-push .hs-install-x {
  grid-column: 2;
}

.hs-push-on {
  row-gap: 4px;
  padding-block: 10px;
}

.hs-push-on .hs-install-words p {
  margin: 0;
  color: var(--ink);
}

/* ── tokens (dark root: the lamps are on) ── */
html {
  --tone-1: #000000; /* the theme's own colour (palette, Q50) */
  --tone-2: #2E2112; /* the theme's own colour (palette, Q50) */
  --trail: #E0A066;
  --petal: #E0A066;
  --paper: #0F1712;
  --well: #17221B;
  --ink: #E8EFE6;
  --stone: #A3B3A7;
  --mist: #26352B;
  --accent:#7FC79B;
  --accent-ink: #0F1712;
  --signal:#F08A5E;
  --signal-ink: #0F1712;
  --inlay: linear-gradient(var(--accent), var(--accent)) top / 100% 1px no-repeat,
           linear-gradient(color-mix(in srgb, var(--accent) 40%, transparent),
                           color-mix(in srgb, var(--accent) 40%, transparent)) top 4px left 0 / 100% 1px no-repeat;
  --display: "Bitter", Georgia, "Noto Naskh Arabic", serif;
  --text: "Assistant", system-ui, "Noto Naskh Arabic", sans-serif;
  --r: 6px;
  --gap: 20px;
  --pad: 26px;
  --sec: 94px;
  --gut: clamp(20px, 3.8vw, 54px);
  --edge: max(var(--gut), calc((100% - 1360px) / 2 + var(--gut)));
  font-size: calc(16px * var(--ft-scale, 1));
  --dsc: 1;
  --cols: 5;
  background: var(--paper);
}

html[data-f-spacing=compact] {
  --gap: 11px;
  --pad: 17px;
  --sec: 54px;
}

html[data-f-spacing=wide] {
  --gap: 30px;
  --pad: 34px;
  --sec: 138px;
}

@media (max-width: 1023px) {
  html {
    --cols: 3;
  }
  html[data-view=compact] {
    --cols: 4;
  }
  html[data-view=large] {
    --cols: 2;
  }
}
@media (max-width: 599px) {
  html {
    --cols: 2;
  }
  html[data-view=compact] {
    --cols: 3;
  }
  html[data-view=large] {
    --cols: 1;
  }
}
/* the study by day */
html[data-mode=light] {
  --trail: #B8692A;
  --petal: #C27C3A;
  --paper: #F4F3EC;
  --well: #E7E9DC;
  --ink: #1B2A22;
  --stone: #57655B;
  --mist: #D7DCCD;
  --accent: #2F6B4A;
  --accent-ink: #FFFFFF;
  --signal: #AF4727;
  --signal-ink: #FFFFFF;
}

/* details factor */
/* ── base ── */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0.005em;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap {
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* kicker: a bookplate line in brass small caps */
.kick {
  font-family: var(--text);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

/* section head: the brass inlay runs above */
.shead {
  margin-top: var(--sec);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 14px;
  background: var(--inlay);
}

.shead .kick {
  font-size: 0.76rem;
  color: var(--ink);
}

.shead a {
  font-size: 0.9rem;
  color: var(--stone);
}

.shead a:hover {
  color: var(--accent);
}

/* buttons: brass */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  padding: 0.92em 2.1em;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r);
  transition: filter 0.2s ease;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
}

/* ── chrome ── */
.note {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px var(--edge);
  color: var(--stone);
  background: var(--inlay), var(--well);
}

.top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px var(--edge);
  border-bottom: 1px solid var(--mist);
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 93%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.mark {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: 0.32em;
  text-decoration: none;
  justify-self: center;
  padding-inline-start: 0.32em;
  color: var(--accent);
}

.menu {
  display: flex;
  gap: clamp(10px, 1.8vw, 26px);
  flex-wrap: wrap;
}

.menu a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--stone);
  padding-block: 2px;
}

.menu a:hover {
  color: var(--ink);
}

.menu a[aria-current=page] {
  color: var(--accent);
}

.acts {
  display: flex;
  gap: 14px;
  justify-self: end;
  align-items: center;
}

.search {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--mist);
}

.search:focus-within {
  border-color: var(--accent);
}

.search input {
  border: 0;
  background: none;
  padding: 5px 0;
  width: 12ch;
  transition: width 0.2s ease;
  font-size: 0.9rem;
}

.search input:focus {
  outline: none;
  width: 17ch;
}

.search svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

@media (max-width: 1023px) {
  .search {
    display: none;
  }
  .acts a.only-narrow {
    display: inline-flex;
  }
}
.acts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.9rem;
}

.acts svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.count {
  background: var(--signal);
  color: var(--signal-ink);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50%;
}

@media (max-width: 860px) {
  .top {
    grid-template-columns: auto 1fr auto;
  }
  .menu {
    order: 3;
    grid-column: 1/-1;
    padding-top: 6px;
    border-top: 1px solid var(--mist);
  }
  .mark {
    justify-self: start;
  }
}
/* footer: the panelled wall */
.foot {
  margin-top: var(--sec);
  background: var(--inlay), var(--well);
  padding-top: 6px;
}

.foot-sign {
  padding: calc(var(--sec) * 0.55) var(--edge) 0;
}

.foot-sign h2 {
  font-size: calc(clamp(28px, 4.2vw, 54px) * var(--dsc));
  font-style: italic;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--gap);
  padding: 38px var(--edge) 26px;
}

.foot-grid h3 {
  font-family: var(--text);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--accent);
}

.foot-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.foot-grid a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--foot-stone);
}

.foot-grid a:hover {
  color: var(--foot-ink);
}

.news p {
  color: var(--foot-stone);
  font-size: 0.92rem;
  max-width: 34ch;
  margin-bottom: 12px;
}

.news form {
  display: flex;
  border-bottom: 1px solid var(--accent);
  max-width: 320px;
}

.news input {
  flex: 1;
  border: 0;
  background: none;
  padding: 10px 0;
  min-width: 0;
  color: var(--ink);
}

.news button {
  border: 0;
  background: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.foot-base {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px var(--edge) 22px;
  color: var(--stone);
  font-size: 0.78rem;
  border-top: 1px solid var(--mist);
}

@media (max-width: 860px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}
/* ── hero: lamplight on the tall piece ── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--mist);
}

.hero-copy {
  padding: calc(var(--sec) * 0.82) var(--edge);
  display: grid;
  align-content: center;
  gap: 24px;
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-meta {
  color: var(--stone);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-art {
  background: radial-gradient(ellipse 72% 62% at 50% 40%, color-mix(in srgb, var(--accent) 14%, var(--well)) 0%, var(--paper) 78%);
  display: grid;
  padding: clamp(22px, 3.6vw, 58px);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  min-height: 400px;
  filter: drop-shadow(0 26px 36px color-mix(in srgb, var(--tone-1) 45%, transparent));
}

html[data-mode=light] .hero-art img {
  filter: drop-shadow(0 20px 30px color-mix(in srgb, var(--tone-2) 25%, transparent));
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-art img {
    min-height: 280px;
  }
}
/* rail */
.rail {
  list-style: none;
  margin: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(180px, 20vw, 290px);
  gap: var(--gap);
  overflow-x: auto;
  padding: 24px var(--edge) 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

/* Q36 — the rail snaps to the content edge, not the screen's: without it the first card is snapped to x=0 on load */
/* full-bleed band */
.look {
  position: relative;
  margin-top: var(--sec);
}

.look img {
  width: 100%;
  height: clamp(310px, 47vw, 570px);
  object-fit: cover;
  filter: brightness(0.85) saturate(0.95);
}

html[data-mode=light] .look img {
  filter: none;
}

.look-copy {
  position: absolute;
  inset-inline-start: var(--edge);
  bottom: 32px;
  background: var(--paper);
  border-radius: var(--r);
  padding-top: calc(var(--pad) + 5px);
  padding-inline: var(--pad);
  padding-bottom: var(--pad);
  background-image: var(--inlay);
  background-color: var(--paper);
  max-width: min(430px, 78vw);
  display: grid;
  gap: 10px;
  box-shadow: 0 14px 40px color-mix(in srgb, var(--tone-1) 40%, transparent);
}

html[data-mode=light] .look-copy {
  box-shadow: 0 12px 34px color-mix(in srgb, var(--tone-2) 20%, transparent);
}

.look-copy h2 {
  font-size: calc(clamp(22px, 2.7vw, 35px) * var(--dsc));
  font-style: italic;
}

.look-copy a {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* category tiles: lamplit alcoves */
.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  padding-top: 24px;
}

.cats a {
  position: relative;
  text-decoration: none;
}

.cats img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  border-radius: var(--r);
  background: radial-gradient(ellipse 72% 62% at 50% 42%, color-mix(in srgb, var(--accent) 10%, var(--well)) 0%, var(--well) 82%);
}

.cats span {
  position: absolute;
  inset-inline-start: 16px;
  bottom: 16px;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  background: var(--paper);
  padding: 6px 16px;
  border-radius: var(--r);
  border-bottom: 1px solid var(--accent);
}

@media (max-width: 599px) {
  .cats {
    grid-template-columns: 1fr;
  }
}
/* quote: carved under the stair */
.quote {
  margin-top: var(--sec);
  padding: calc(var(--sec) * 0.6) var(--edge);
  text-align: center;
  background: var(--inlay), linear-gradient(var(--well), var(--well)) bottom/100% 1px no-repeat;
}

.quote p {
  font-family: var(--display);
  font-style: italic;
  font-size: calc(clamp(22px, 3vw, 40px) * var(--dsc));
  line-height: 1.3;
  max-width: 28ch;
  margin-inline: auto;
}

.quote cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  color: var(--accent);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ── product card: a piece in lamplight ── */
.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: var(--gap);
  padding: 24px 0 0;
  list-style: none;
  margin: 0;
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--r);
  background: radial-gradient(ellipse 75% 64% at 50% 42%, color-mix(in srgb, var(--accent) 9%, var(--well)) 0%, var(--well) 85%);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-media {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}

.card:hover .card-media img {
  transform: scale(1.03);
}

.card-body {
  padding-top: 12px;
  display: grid;
  gap: 3px;
  background: var(--inlay);
  margin-top: 6px;
  padding-top: 12px;
}

.card-brand {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.3;
}

.card-name a {
  text-decoration: none;
}

.card-price {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--text);
}

.card-price del {
  color: var(--stone);
  margin-inline-start: 8px;
  font-weight: 400;
  font-size: 0.88em;
}

.card-price .off {
  color: var(--signal);
}

.card-meta {
  font-size: 0.78rem;
  color: var(--stone);
}

.tag {
  position: absolute;
  top: 11px;
  inset-inline-start: 11px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r);
}

.tag.sale {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--signal-ink);
}

.rate {
  font-size: 0.78rem;
  color: var(--stone);
}

.qadd {
  position: absolute;
  inset-inline-end: 11px;
  bottom: 11px;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  color: var(--accent);
  font-size: 1.32rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
  display: grid;
  place-items: center;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, color 0.2s ease;
}

.qadd:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

html[data-view=compact] .qadd {
  width: 30px;
  height: 30px;
  font-size: 1.05rem;
}

/* ── listing ── */
.crumb {
  padding: 18px 0 0;
  font-size: 0.8rem;
  color: var(--stone);
}

.crumb a {
  color: inherit;
  text-decoration: none;
}

.crumb a:hover {
  color: var(--accent);
}

.lhead {
  padding-top: 28px;
  display: grid;
  gap: 10px;
}

.lhead h1 small {
  font-family: var(--text);
  font-weight: 600;
  font-size: 0.26em;
  color: var(--stone);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  margin-inline-start: 0.9em;
}

.lhead > p {
  color: var(--stone);
  max-width: 58ch;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding-block: 12px;
  flex-wrap: wrap;
  position: relative;
  background: var(--inlay), linear-gradient(color-mix(in srgb, var(--accent) 40%, transparent), color-mix(in srgb, var(--accent) 40%, transparent)) bottom/100% 1px no-repeat;
}

.sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--stone);
}

.sort select {
  border: 0;
  background: none;
  padding: 6px 2px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
}

.sort select option {
  color: var(--tone-2);
}

.tb-start {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 30px);
  flex-wrap: wrap;
}

.filter > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 0;
  letter-spacing: 0.04em;
}

.filter > summary svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.filter > summary small {
  color: var(--stone);
  font-weight: 400;
}

.filter[open] > summary {
  color: var(--accent);
}

.filter-panel {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  z-index: 40;
  background: var(--paper);
  border: 1px solid var(--accent);
  border-top: 0;
  border-radius: 0 0 var(--r) var(--r);
  padding: var(--pad);
  box-shadow: 0 20px 50px color-mix(in srgb, var(--tone-1) 50%, transparent);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(var(--gap) * 1.2);
}

html[data-mode=light] .filter-panel {
  box-shadow: 0 16px 40px color-mix(in srgb, var(--tone-2) 20%, transparent);
}

.fgroup > span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.chips label {
  position: relative;
  border: 1px solid var(--mist);
  padding: 6px 14px;
  font-size: 0.86rem;
  cursor: pointer;
  border-radius: var(--r);
}

.chips label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

@media (max-width: 860px) {
  .filter > summary small {
    display: none;
  }
  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 599px) {
  .filter-panel {
    grid-template-columns: 1fr;
  }
}
/* view widget */
.views {
  display: flex;
  gap: 2px;
}

.views label {
  position: relative;
  display: grid;
  place-items: center;
  width: 37px;
  height: 33px;
  cursor: pointer;
  border-radius: var(--r);
  border: 1px solid transparent;
}

.views svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  color: var(--stone);
}

.views label:has(input:checked) {
  border-color: var(--accent);
}

.views input:checked + svg {
  color: var(--accent);
}

.views input:focus-visible + svg {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

/* Q26 */
/* editorial grid: "the study" — the tall piece first, every eight */
.grid.ed > .card:nth-child(8n+1) {
  grid-column: span 2;
  grid-row: span 2;
}

.grid.ed > .card:nth-child(8n+1) .card-media {
  aspect-ratio: auto;
  height: 100%;
  background: radial-gradient(ellipse 62% 54% at 50% 40%, color-mix(in srgb, var(--accent) 13%, var(--well)) 0%, var(--paper) 80%);
}

.grid.ed > .card:nth-child(8n+1) .card-media img {
  object-fit: contain;
  padding: 11%;
  filter: drop-shadow(0 22px 30px color-mix(in srgb, var(--tone-1) 50%, transparent));
}

html[data-mode=light] .grid.ed > .card:nth-child(8n+1) .card-media img {
  filter: drop-shadow(0 16px 24px color-mix(in srgb, var(--tone-2) 25%, transparent));
}

.grid.ed > .card:nth-child(8n+1) .card-media {
  flex: 1;
}

@media (max-width: 599px) {
  html[data-view=large] .grid.ed > .card {
    grid-column: auto;
    grid-row: auto;
  }
  html[data-view=large] .grid.ed > .card:nth-child(8n+1) .card-media {
    aspect-ratio: 1;
    height: auto;
    flex: none;
  }
}
/* ── product page ── */
.pdp {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: calc(var(--gap) * 2);
  padding-top: 28px;
}

.pg {
  display: grid;
  gap: var(--gap);
}

.pg-main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r);
  background: radial-gradient(ellipse 70% 60% at 50% 42%, color-mix(in srgb, var(--accent) 11%, var(--well)) 0%, var(--well) 82%);
}

.pg-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(var(--gap) * 0.6);
}

.pg-thumbs img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  background: var(--well);
  cursor: pointer;
  border-radius: var(--r);
  border: 1px solid var(--mist);
}

.buy {
  position: sticky;
  top: 94px;
  align-self: start;
  display: grid;
  gap: 17px;
}

.buy .card-brand {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
}

.buy .price {
  font-size: 1.45rem;
  font-weight: 700;
  font-family: var(--text);
}

.buy .taxline {
  color: var(--stone);
  font-size: 0.82rem;
  margin-top: 2px;
}

.opt {
  display: grid;
  gap: 9px;
}

.opt > span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.dots label {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid var(--mist);
}

.dots input:checked + i {
  position: absolute;
  inset: -5px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}

.pills label {
  position: relative;
  border: 1px solid var(--mist);
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.88rem;
  border-radius: var(--r);
}

.pills label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.pills label:has(input:disabled) {
  color: var(--mist);
  text-decoration: line-through;
  cursor: not-allowed;
}

.buy .btn {
  padding-block: 1.15em;
  text-align: center;
}

.accs {
  background: var(--inlay);
  padding-top: 5px;
}

.accs summary {
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  font-size: 0.98rem;
  font-family: var(--display);
}

.accs summary::after {
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
  color: var(--accent);
}

.accs ul {
  padding-inline-start: 18px;
}

@media (max-width: 860px) {
  .pdp {
    grid-template-columns: 1fr;
  }
  .buy {
    position: static;
  }
}
/* ── basket ── */
.bag {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: calc(var(--gap) * 2);
  padding-top: 28px;
}

.line {
  display: grid;
  grid-template-columns: 98px 1fr auto;
  gap: var(--gap);
  padding-block: var(--pad);
  border-bottom: 1px solid var(--mist);
  align-items: start;
}

.line img {
  width: 98px;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--well);
  border-radius: var(--r);
  border: 1px solid var(--mist);
}

.line-name {
  font-family: var(--display);
  font-size: 1.08rem;
}

.line-opts {
  color: var(--stone);
  font-size: 0.85rem;
  margin-top: 3px;
}

.line-acts {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 13px;
}

.qty {
  display: inline-flex;
  border: 1px solid var(--mist);
  border-radius: var(--r);
  overflow: hidden;
}

.qty button {
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  cursor: pointer;
}

.qty button:hover {
  color: var(--accent);
}

.qty span {
  width: 32px;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.line-remove {
  font-size: 0.82rem;
  color: var(--stone);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.line .price {
  justify-self: end;
  font-weight: 700;
}

.sum {
  background: var(--well);
  background-image: var(--inlay);
  border-radius: var(--r);
  padding: var(--pad);
  padding-top: calc(var(--pad) + 5px);
  display: grid;
  gap: 12px;
  align-self: start;
  position: sticky;
  top: 94px;
}

.sum h2 {
  font-size: 1.2rem;
}

.sum dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  margin: 0;
  font-size: 0.92rem;
}

.sum dd {
  margin: 0;
  text-align: end;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.sum .total {
  border-top: 1px solid var(--accent);
  padding-top: 10px;
  font-weight: 700;
  font-size: 1.06rem;
}

.sum .hint {
  color: var(--stone);
  font-size: 0.8rem;
}

@media (max-width: 860px) {
  .bag {
    grid-template-columns: 1fr;
  }
  .sum {
    position: static;
  }
}
/* ── checkout ── */
.co {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: calc(var(--gap) * 2.3);
  padding-top: 28px;
}

.co-form {
  display: grid;
  gap: calc(var(--sec) * 0.36);
}

.fs legend {
  font-family: var(--display);
  font-size: 1.3rem;
  padding: 0;
  margin-bottom: 6px;
}

.fld span {
  font-size: 0.8rem;
  color: var(--stone);
}

.fld input, .fld select {
  border: 1px solid var(--mist);
  background: var(--well);
  padding: 12px 13px;
  width: 100%;
  border-radius: var(--r);
  color: var(--ink);
}

.fld select option {
  color: var(--tone-2);
}

.fld input:focus, .fld select:focus {
  outline: 1.5px solid var(--accent);
  outline-offset: -1px;
}

.choice label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: baseline;
  border: 1px solid var(--mist);
  background: var(--well);
  border-radius: var(--r);
  padding: 14px 16px;
  cursor: pointer;
}

.choice label:has(input:checked) {
  border-color: var(--accent);
}

.co-items span:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

@media (max-width: 860px) {
  .co {
    grid-template-columns: 1fr;
  }
  .frow {
    grid-template-columns: 1fr;
  }
}
/* RTL */
[dir=rtl] .mark {
  letter-spacing: 0.2em;
  padding-inline-start: 0.2em;
}

/* icon set: Lucide (ISC), rounded caps (Q24) */
/* ── selling layer ── */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.88rem;
}

.icn-star {
  width: 14px;
  height: 14px;
  fill: var(--accent);
  stroke: none;
}

.share {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--inlay);
  padding-top: 16px;
}

.share > span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.share a {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid var(--mist);
  border-radius: 50%;
}

.share a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.share svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.alt {
  display: grid;
  gap: 10px;
  background: var(--inlay);
  padding-top: 16px;
}

.alt-head {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.alt-card {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--mist);
  background: var(--well);
  border-radius: var(--r);
  padding: 9px 11px;
  text-decoration: none;
}

.alt-card:hover {
  border-color: var(--accent);
}

.alt-card img {
  width: 50px;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--paper);
  border-radius: var(--r);
}

.alt-card em {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 1px 8px;
  border-radius: var(--r);
}

.alt-card strong {
  font-size: 0.92rem;
  font-family: var(--display);
  font-weight: 400;
}

.alt-card .price {
  font-size: 0.86rem;
  color: var(--stone);
}

.rev {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: calc(var(--gap) * 2);
  padding-top: 24px;
}

.rev-sum strong {
  font-family: var(--display);
  font-size: 3rem;
  line-height: 1;
}

.rev-list li {
  border-top: 1px solid var(--mist);
  padding-block: 16px;
  display: grid;
  gap: 8px;
}

.rev-list footer {
  font-size: 0.82rem;
  color: var(--stone);
}

@media (max-width: 860px) {
  .rev {
    grid-template-columns: 1fr;
  }
}
/* Q29 — the count badge: the digit sits dead-centre; two digits (up to 99) stretch the
   circle into a pill, never squeeze the number */
.count {
  border-radius: 999px;
}

/* Q30 — the search box is wide enough to use: full placeholder at rest, wider in focus */
.search input {
  width: 17ch;
}

.search input:focus {
  width: 24ch;
}

/* Q29b — optical centring of the badge digit: the glyph box sits high with
   line-height 1, so a hair of top padding drops it onto the true centre */
/* Q31 — the hero fits the fold */
.hero-copy {
  padding-block: clamp(36px, 7svh, 72px);
}

.hero-art img {
  min-height: clamp(300px, 52svh, 520px);
  max-height: calc(100svh - 210px);
}

@media (max-width: 860px) {
  .hero-art img {
    min-height: 240px;
    max-height: 52svh;
  }
}
/* Q32 — the product rail is a slider (arrows injected by shared/slider.js);
   category tiles, offers and trust bands always show whole */
.rail-btn {
  position: absolute;
  top: 44%;
  translate: 0 -50%;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--mist);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 0;
  padding-bottom: 0.1em;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

@media (max-width: 860px) {
  .rail-btn {
    display: none;
  }
}
/* footer variant — inverted: the small print on top, the sign-off at the bottom */
.foot {
  display: flex;
  flex-direction: column;
}

.foot-base {
  order: -1;
  border-top: 0;
  border-bottom: 1px solid var(--mist);
}

.foot-sign {
  order: 2;
  padding-bottom: calc(var(--sec) * 0.4);
}

.foot-grid {
  order: 1;
  padding-top: calc(var(--sec) * 0.45);
}

/* Q34 — the trust bar: couriers and payments accepted by tijara, socials optional */
.fs-chip {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--foot-stone);
  border: 1px solid var(--mist);
  border-radius: 5px;
  padding: 3px 10px;
  white-space: nowrap;
}

.fs-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.fs-seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--foot-stone);
  border: 1px solid var(--mist);
  border-radius: 5px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* ── mode-switch (storefront-cutover C4c, Q28) ── */
/* A fixed-count rail (cross-sell, recommendations: style="--cols:4") takes the phone's two columns (storefront-cutover C6b-3). */
/* On a phone the footer's columns stack, one under the other, and long words wrap — nothing scrolls sideways (SE3 harness, golden words: clean, airy). */
/* On a phone a bag line keeps its picture small and its quantity buttons wrap (SE3 harness). */
@media (max-width: 599px) {
  .line {
    grid-template-columns: 72px minmax(0, 1fr) auto !important;
  }
  .line img {
    width: 72px !important;
  }
  .line-acts {
    flex-wrap: wrap;
    gap: 10px;
  }
}
/* ── PAGDANDI signature: the trail ── */
html {
  --trail-line: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'><path d='M0 44 C180 6 330 58 560 30 S960 8 1200 38' fill='none' stroke='%23E0A066' stroke-width='3' stroke-dasharray='14 10' vector-effect='non-scaling-stroke'/></svg>");
}

html[data-mode=light] {
  --trail-line: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'><path d='M0 44 C180 6 330 58 560 30 S960 8 1200 38' fill='none' stroke='%23B8692A' stroke-width='3' stroke-dasharray='14 10' vector-effect='non-scaling-stroke'/></svg>");
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mark {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.btn {
  border-radius: 10px;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

/* the hero, a centred stack over the wide landscape, the trail winding out beneath it */
.hero {
  grid-template-columns: minmax(0, 1fr);
  text-align: center;
  border-bottom: 0;
  position: relative;
  padding-bottom: 58px;
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 52px;
  background: var(--trail-line) center/100% 100% no-repeat;
}

.hero-copy {
  justify-items: center;
  padding-block-end: 24px;
}

.hero-copy h1 {
  max-width: 14ch;
  margin-inline: auto;
}

.hero-cta {
  justify-content: center;
}

.hero-art {
  margin-inline: var(--edge);
  border-radius: 18px;
  overflow: hidden;
}

.hero-art img {
  min-height: 280px;
  max-height: 54svh;
}

/* every section starts on a dashed stretch of the trail with a waypoint flag */
.shead {
  border-top: 3px dashed var(--trail);
  padding-top: 12px;
}

.shead .kick {
  color: var(--ink);
  font-size: 1.2rem;
}

.shead .kick::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 14px;
  margin-inline-end: 9px;
  vertical-align: -0.05em;
  background: var(--trail);
  clip-path: polygon(0 0, 100% 30%, 0 60%);
}

[dir=rtl] .shead .kick::before {
  clip-path: polygon(100% 0, 0 30%, 100% 60%);
}

.card-media {
  border-radius: 14px;
}

.card-mark {
  color: var(--accent);
}

.cats a {
  border-radius: 14px;
  overflow: hidden;
}

.look-copy {
  border-radius: 14px;
  padding: 18px 22px;
}

.foot {
  border-top: 3px dashed var(--trail);
}

.search input {
  width: 19ch;
}

.search input:focus {
  width: 26ch;
}

/* review 2026-11-07: sentence-case labels (Q5), the accent — not the signal — on headline words (Q7), a search box that shows its whole placeholder (Q30) */
.note, .kick, .card-brand, .alt-head, .opt > span, .fgroup > span, .share > span, .fs-label, .hero-meta {
  text-transform: none;
  letter-spacing: 0.01em;
}

h1 em, h2 em {
  color: var(--accent);
}

.search input {
  width: 23ch;
}

.search input:focus {
  width: 30ch;
}

/* regions (theme-equation §8e): header classic · footer stack · body bands · card centred · icons tabler — tools/regions.py */
body main:has(> [data-row=hero]) > [data-row]:not([data-row=hero]):nth-child(even) {
  background: var(--well);
  padding-block: calc(var(--sec) * 0.5);
  padding-inline: var(--band-inset, clamp(16px, 3vw, 36px));
}

body .card {
  text-align: center;
}

body .card :is(.card-meta, .card-foot, .qadd, .dots) {
  justify-content: center;
  margin-inline: auto;
}

/* /regions */
