/* ==========================================================================
   Kaidora — storefront.css
   Layout parity with kaidora.co.uk for the shop templates. Loaded after
   site.css, so it may re-point or extend the shared primitives. Everything is
   either token-driven or scoped with an `sf-` prefix; no other page depends on
   these selectors.
   ========================================================================== */

:root {
  --sf-gap: clamp(0.85rem, 1.5vw, 1.4rem);
  /* Live prices are butter on the dark canvas and clay once the day skin is on. */
  --sf-price: var(--c-butter);
  --sf-moss: var(--c-moss);
}

:root[data-theme="day"] {
  --sf-price: var(--accent-text);
  --sf-moss: var(--accent-text);
}

/* --------------------------------------------------------------------------
   01. Shared shop furniture — breadcrumb, page head, grids
   -------------------------------------------------------------------------- */

.sf-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  color: var(--text-3);
  font-size: 0.8rem;
  line-height: 1.5;
}

.sf-breadcrumb a {
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.sf-breadcrumb a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.sf-breadcrumb span[aria-hidden="true"] {
  color: var(--line-strong);
}

.sf-page-head {
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}

.sf-page-head h1 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1.06;
}

.sf-page-head__desc {
  max-width: 62ch;
  color: var(--text-2);
}

.sf-page-head__desc p {
  margin: 0;
}

.sf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.sf-chips .badge {
  text-decoration: none;
}

.sf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sf-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --------------------------------------------------------------------------
   02. Product card — image 4:5, name, price, stepper + full-width add
   -------------------------------------------------------------------------- */

.sf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: var(--sh-inset);
  overflow: hidden;
  container-type: inline-size;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.sf-card:hover,
.sf-card:focus-within {
  border-color: var(--line-2);
  background: var(--surface-2);
  box-shadow: var(--sh-2);
  transform: translateY(-3px);
}

.sf-card__figure {
  position: relative;
  flex: 0 0 auto;
  margin: 0.4rem 0.4rem 0;
}

.sf-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: calc(var(--r-sm) - 4px);
  background: var(--media-bg);
}

.sf-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-lg) var(--ease-out);
}

.sf-card:hover .sf-card__media img,
.sf-card:focus-within .sf-card__media img {
  transform: scale(1.045);
}

/* Wishlist affordance sits over the top-right of the photograph, clear of the
   product title and accessible name. */

.sf-card__wish {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--glass-bg-strong);
  color: var(--text);
  box-shadow: var(--sh-1);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.sf-card__wish svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sf-card__wish:hover {
  border-color: var(--accent-2);
  background: var(--accent-soft);
  color: var(--accent-text);
  transform: scale(1.06);
}

.sf-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--surface-2);
}

.sf-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
  padding: 0.8rem 0.9rem 1rem;
}

.sf-card__label {
  margin: 0;
  color: var(--text-3);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.sf-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: var(--track-display);
}

.sf-card__title a {
  color: var(--text);
  text-decoration: none;
}

.sf-card__title a:hover {
  color: var(--sf-price);
}

.sf-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0.1rem 0 0;
  color: var(--sf-price);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.sf-card__was {
  color: var(--text-3);
  font-size: 0.78rem;
  font-weight: 400;
  text-decoration-thickness: 1px;
}

.sf-card__foot {
  margin-top: auto;
  padding-top: 0.7rem;
}

.sf-card__form {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.45rem;
  min-width: 0;
}

.sf-card__add {
  display: inline-flex;
  flex: 1 1 8rem;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 0 0.6rem;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--accent-grad);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--sh-2), var(--sh-inset);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    filter var(--dur) var(--ease);
}

.sf-card__add:hover {
  filter: saturate(1.06) brightness(1.04);
  box-shadow: var(--sh-glow), var(--sh-inset);
  transform: translateY(-1px);
}

.sf-card__add:disabled {
  opacity: 0.62;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.sf-card__choose {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.sf-card__choose:hover {
  border-color: var(--accent-2);
  background: var(--accent-soft);
  color: var(--accent-text);
}

/* Quantity stepper shared by the card and the product summary. */

.sf-qty {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: stretch;
  align-self: stretch;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  overflow: hidden;
}

.sf-qty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.sf-qty__btn:hover {
  background: var(--surface-2);
  color: var(--text);
}

.sf-qty__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: transparent;
}

.sf-qty__input {
  width: 32px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-inline: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.sf-qty__input::-webkit-outer-spin-button,
.sf-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sf-qty__input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--focus-ring);
}

/* Cards in a four-across rail with the filter sidebar are narrow enough that
   the stepper and button stack, exactly as the live card does. */

@container (max-width: 15rem) {
  .sf-card__body {
    padding: 0.7rem 0.75rem 0.85rem;
  }

  .sf-card__form {
    gap: 0.4rem;
  }

  .sf-card__add {
    flex-basis: 100%;
  }

  .sf-card__wish {
    width: 32px;
    height: 32px;
  }
}

/* --------------------------------------------------------------------------
   03. Home — hero, full-width photo, topic, featured rail, story, invite
   -------------------------------------------------------------------------- */

.sf-hero {
  padding-block: clamp(2rem, 4.5vw, 4rem) clamp(1.75rem, 3.5vw, 3rem);
}

.sf-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.sf-hero__copy {
  min-width: 0;
}

.sf-hero__title {
  max-width: 44ch;
  margin: 0;
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.3rem);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.002em;
  overflow-wrap: break-word;
}

/* The opening clause is set in Caudex, the rest stays in Space Grotesk, just
   like the live statement. */

.sf-hero__title::first-line {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.34em;
  line-height: 1.35;
}

.sf-hero__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
  min-width: 0;
}

.sf-hero__note {
  max-width: 26ch;
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.6rem);
  line-height: 1.35;
}

.sf-hero__cta {
  min-width: 178px;
  padding: 0.95rem 1.7rem;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.sf-hero-photo {
  position: relative;
  margin: 0 auto clamp(2.25rem, 5vw, 4rem);
}

.sf-hero-photo img {
  width: 100%;
  max-height: 62vh;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  object-fit: cover;
  box-shadow: var(--sh-2);
}

.sf-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0 var(--gutter);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, transparent 55%, rgba(8, 17, 24, 0.32));
  pointer-events: none;
}

.sf-topic {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.sf-topic__inner {
  max-width: var(--shell-narrow);
}

.sf-topic__title {
  margin: 0 0 1.15rem;
  font-size: var(--fs-h2);
}

.sf-topic__body {
  max-width: 64ch;
  margin-inline: auto;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.82;
}

.sf-topic__body p {
  margin: 0;
}

.sf-topic__body > * + * {
  margin-top: 1.2rem;
}

/* Featured products rail: four cards plus a slice of the fifth at 1440. */

.sf-featured {
  padding-block: clamp(0.5rem, 1.5vw, 1.5rem) 0;
}

.sf-featured__rail {
  width: 100%;
  max-width: calc(var(--shell) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sf-carousel {
  position: relative;
}

.sf-carousel__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-bottom: clamp(1.15rem, 2.5vw, 1.75rem);
}

.sf-carousel__title {
  margin: 0;
  padding-inline: 6.5rem;
  font-size: var(--fs-h2);
  line-height: 1.1;
  text-align: center;
}

.sf-carousel__nav {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(-50%);
}

/* Two-position pager: the next arrow anchors the rail to its end marker, the
   previous arrow brings it back to the first card. This stays inside the
   page's script policy and degrades gracefully without JavaScript. */

.sf-arrow--prev {
  opacity: 0.3;
  pointer-events: none;
}

.sf-carousel:has(#sf-featured-end:target) .sf-arrow--prev {
  opacity: 1;
  pointer-events: auto;
}

.sf-carousel:has(#sf-featured-end:target) .sf-arrow--next {
  opacity: 0.3;
  pointer-events: none;
}

.sf-arrow {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--sh-inset);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.sf-arrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 1.6px solid currentColor;
  border-right: 1.6px solid currentColor;
  transform: rotate(45deg);
}

.sf-arrow[data-dir="prev"]::before,
.sf-arrow[rel="prev"]::before {
  transform: rotate(-135deg);
}

.sf-arrow:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--sf-price);
  transform: translateY(-1px);
}

.sf-arrow.is-disabled,
.sf-arrow[aria-disabled="true"] {
  opacity: 0.3;
  pointer-events: none;
}

.sf-carousel__track {
  display: flex;
  gap: var(--sf-gap);
  overflow-x: auto;
  overflow-y: hidden;
  padding-block: 0.2rem 0.4rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sf-carousel__track::-webkit-scrollbar {
  display: none;
}

.sf-carousel__track:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
}

.sf-carousel__item {
  display: flex;
  flex: 0 0 calc((100% - var(--sf-gap)) / 1.12);
  min-width: 0;
  scroll-snap-align: start;
}

.sf-carousel__item > .sf-card {
  flex: 1 1 auto;
}

/* Zero-width anchor target at the far end of the rail. */

.sf-carousel__end {
  flex: 0 0 1px;
  width: 1px;
  height: 1px;
  align-self: stretch;
  scroll-snap-align: end;
}

.sf-explore {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-inline: var(--gutter);
}

.sf-explore__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.9rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: var(--sh-inset);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.sf-explore__link::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}

.sf-explore__link:hover {
  border-color: var(--accent-2);
  background: var(--surface-2);
  color: var(--sf-price);
  transform: translateY(-2px);
}

.sf-explore__link:hover::after {
  transform: rotate(45deg) translateX(4px);
}

.sf-story {
  padding-block: clamp(2.5rem, 5vw, 5rem);
}

.sf-story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.sf-story__label h2 {
  margin: 0;
  color: var(--sf-moss);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  line-height: 1.4;
  text-transform: uppercase;
}

.sf-story__label h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 0.8rem;
  border-radius: 2px;
  background: var(--accent-grad);
}

.sf-story__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
}

.sf-story__col {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.sf-story__col h3 {
  margin: 0 0 0.7rem;
  font-size: var(--fs-h3);
}

.sf-story__col p {
  margin: 0;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.85;
}

.sf-story__media {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
}

.sf-story__media img {
  width: 100%;
  max-height: 30rem;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  object-fit: cover;
}

.sf-invite-section {
  padding-block: clamp(2.25rem, 4vw, 3.5rem) clamp(3rem, 5vw, 5rem);
}

.sf-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.35rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: radial-gradient(120% 160% at 0% 0%, rgba(127, 168, 139, 0.16), transparent 60%),
    var(--surface-solid-2);
}

.sf-invite__copy {
  flex: 1 1 0;
  min-width: 0;
  max-width: 60ch;
}

.sf-invite__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--sf-moss);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.sf-invite h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.sf-invite p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.65;
}

.sf-invite .btn {
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   04. Catalogue toolbar, sort, search, pagination
   -------------------------------------------------------------------------- */

.sf-catalog {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.sf-catalog__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.sf-catalog__main {
  min-width: 0;
}

/* Filters: price + categories, a left rail on desktop and stacked cards above
   the catalogue title on phones and tablets. */

.sf-filters {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.sf-filter {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--sh-inset);
}

.sf-filter__title {
  position: relative;
  margin: 0 0 0.8rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.sf-filter__title::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-grad);
}

.sf-price {
  display: grid;
  gap: 0.7rem;
  margin: 0;
}

.sf-price__values {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.sf-price__pill {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sf-price__sep {
  color: var(--text-3);
}

.sf-range {
  display: grid;
  gap: 0.3rem;
  margin: 0;
}

.sf-range__label {
  color: var(--text-3);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sf-range__input {
  width: 100%;
  height: 18px;
  margin: 0;
  background: transparent;
  accent-color: var(--accent-2);
  cursor: pointer;
}

.sf-range__input::-moz-range-track {
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--line-2);
}

.sf-range__input::-moz-range-progress {
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--accent-2);
}

.sf-range__input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--accent-2);
}

.sf-range__input::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--accent-2);
}

.sf-price__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.1rem;
}

.sf-filter__apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.sf-filter__apply:hover {
  border-color: var(--accent-2);
  background: var(--accent-soft);
  color: var(--accent-text);
}

.sf-filter__clear {
  color: var(--text-3);
  font-size: 0.76rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.sf-filter__clear:hover {
  color: var(--text);
}

.sf-filter__list {
  display: grid;
  gap: 0.12rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-filter__list a {
  display: flex;
  align-items: center;
  padding: 0.42rem 0.55rem;
  border-radius: var(--r-xs);
  color: var(--text-2);
  font-size: 0.84rem;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    padding-left var(--dur) var(--ease);
}

.sf-filter__list a:hover {
  background: var(--surface-2);
  color: var(--text);
  padding-left: 0.8rem;
}

.sf-filter__list li.is-current > a {
  background: var(--accent-soft);
  color: var(--accent-text);
  box-shadow: inset 2px 0 0 var(--accent-2);
}

.sf-filter__child a {
  padding-left: 1.4rem;
  font-size: 0.8rem;
}

.sf-toolbar__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  margin-left: auto;
}

.sf-view {
  display: flex;
  align-items: center;
  gap: 0.28rem;
}

.sf-view__label {
  margin-right: 0.12rem;
  color: var(--text-3);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sf-view__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text-3);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.sf-view__btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.sf-view__btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.sf-view__btn.is-active {
  border-color: transparent;
  background: var(--accent-grad);
  color: var(--accent-ink);
}

.sf-grid.sf-grid--list {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
}

.sf-grid--list .sf-card {
  flex-direction: row;
  align-items: stretch;
}

.sf-grid--list .sf-card__figure {
  flex: 0 0 158px;
  margin: 0.5rem 0 0.5rem 0.5rem;
}

.sf-grid--list .sf-card__media {
  height: 100%;
  aspect-ratio: 4 / 5;
}

.sf-grid--list .sf-card__body {
  flex: 1 1 auto;
  padding: 1rem 1.1rem;
}

.sf-grid--list .sf-card__foot {
  max-width: 26rem;
}

@media (min-width: 560px) {
  .sf-grid--list .sf-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem);
    grid-template-areas:
      "title foot"
      "price foot";
    align-items: center;
    column-gap: 1.5rem;
    row-gap: 0.25rem;
  }

  .sf-grid--list .sf-card__title {
    grid-area: title;
    align-self: end;
  }

  .sf-grid--list .sf-card__price {
    grid-area: price;
    align-self: start;
  }

  .sf-grid--list .sf-card__foot {
    grid-area: foot;
    margin: 0;
    padding: 0;
    max-width: none;
  }
}

.sf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--sh-inset);
}

.sf-toolbar--single {
  justify-content: flex-start;
}

.sf-toolbar__count {
  margin: 0;
  color: var(--text-2);
  font-size: 0.85rem;
  white-space: nowrap;
}

.sf-sort {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
}

.sf-sort__label {
  margin: 0;
  color: var(--text-3);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sf-sort__select {
  width: auto;
  min-height: 38px;
  padding: 0.35rem 2.2rem 0.35rem 0.9rem;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
}

.sf-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 44rem;
  margin: 0 0 1.5rem;
}

.sf-search__input {
  flex: 1 1 14rem;
  min-width: 0;
}

.sf-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

.sf-pager__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--text-2);
  font-size: 0.88rem;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.sf-pager__item:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.sf-pager__item.is-current {
  border-color: transparent;
  background: var(--accent-grad);
  color: var(--accent-ink);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   05. Product detail — sticky gallery, swatches, buy row, accordions
   -------------------------------------------------------------------------- */

.sf-product-page {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.sf-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.sf-product__gallery,
.sf-product__info {
  min-width: 0;
}

.sf-gallery__main {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--media-bg);
  box-shadow: var(--sh-1);
}

.sf-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-gallery__thumbs {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.7rem;
  padding-bottom: 0.3rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.sf-gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.sf-gallery__thumb {
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--media-bg);
  opacity: 0.68;
  overflow: hidden;
  cursor: pointer;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.sf-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sf-gallery__thumb:hover {
  border-color: var(--line-strong);
  opacity: 1;
}

.sf-gallery__thumb[aria-current="true"],
.sf-gallery__thumb.is-active {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--accent-2);
  opacity: 1;
}

.sf-product__title {
  margin: 0 0 0.9rem;
  font-size: clamp(2.1rem, 1.4rem + 2.1vw, 3rem);
  line-height: 1.05;
}

.sf-product__lede {
  max-width: 44rem;
  margin: 0 0 1.1rem;
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.8;
}

.sf-product__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 0.4rem;
  color: var(--sf-price);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.sf-product__was {
  color: var(--text-3);
  font-size: 0.9rem;
  font-weight: 400;
}

.sf-product__sku {
  margin: 0 0 1.35rem;
  color: var(--text-3);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sf-buyform {
  margin-top: 1.15rem;
}

.sf-options {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.sf-option {
  min-width: 0;
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.sf-option__legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  padding: 0;
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.sf-option__legend::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.sf-option__select {
  width: 100%;
  max-width: 28rem;
  min-height: 48px;
  background-color: var(--surface-solid);
  color: var(--text);
  border-color: var(--line-strong);
  font-size: 0.95rem;
}

.sf-option__select option {
  background-color: #fffdf6;
  color: #0f222d;
  font-size: 1rem;
}

.sf-option__select option:disabled {
  color: #6f7d82;
}

.sf-option__select option:checked {
  background-color: #dbeafe;
  color: #0f222d;
}

.sf-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sf-swatch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem 0.3rem 0.36rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.8rem;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.sf-swatch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.sf-swatch:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
}

.sf-swatch:has(input:checked) {
  border-color: transparent;
  background: var(--surface-2);
  box-shadow: 0 0 0 2px var(--accent-2);
  color: var(--text);
}

.sf-swatch:has(input:focus-visible) {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.sf-swatch__dot {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--swatch, #8b999c);
  box-shadow: inset 0 0 0 2px var(--bg);
}

.sf-swatch__name {
  white-space: nowrap;
}

.sf-swatch__delta {
  color: var(--text-3);
  font-size: 0.72rem;
}

.sf-qty--lg .sf-qty__btn {
  width: 40px;
  min-height: 48px;
}

.sf-qty--lg .sf-qty__input {
  width: 44px;
  min-height: 48px;
  font-size: 0.95rem;
}

.sf-buy {
  display: flex;
  align-items: stretch;
  gap: 0.6rem;
}

.sf-add {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 50px;
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--accent-grad);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--sh-2), var(--sh-inset);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    filter var(--dur) var(--ease);
}

.sf-add:hover {
  filter: saturate(1.06) brightness(1.04);
  box-shadow: var(--sh-glow), var(--sh-inset);
  transform: translateY(-1px);
}

.sf-add:disabled {
  opacity: 0.62;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.sf-buy__note {
  margin: 0.75rem 0 0;
  color: var(--text-3);
  font-size: 0.8rem;
  line-height: 1.6;
}

.sf-accordions {
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.sf-accordion {
  border-bottom: 1px solid var(--line);
}

.sf-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.sf-accordion summary::-webkit-details-marker {
  display: none;
}

.sf-accordion summary::after {
  content: "+";
  color: var(--text-2);
  font-size: 1.15rem;
  line-height: 1;
}

.sf-accordion[open] summary::after {
  content: "\2013";
}

.sf-accordion .prose {
  max-width: none;
  padding: 0 0 1.25rem;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.78;
}

.sf-related {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.sf-related__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.1;
}

/* --------------------------------------------------------------------------
   06. Content pages
   -------------------------------------------------------------------------- */

.sf-content {
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
}

.sf-content__head {
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding-bottom: clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--line);
}

.sf-content .prose {
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   07. Day skin adjustments
   -------------------------------------------------------------------------- */

:root[data-theme="day"] .sf-hero__cta {
  border-color: transparent;
  background: var(--accent-grad);
  color: var(--accent-ink);
  box-shadow: var(--sh-2);
}

:root[data-theme="day"] .sf-hero__cta:hover {
  background: var(--accent-grad);
  color: var(--accent-ink);
  filter: saturate(1.05) brightness(1.05);
}

:root[data-theme="day"] .sf-hero-photo::after {
  background: linear-gradient(180deg, transparent 62%, rgba(15, 34, 45, 0.18));
}

:root[data-theme="day"] .sf-invite {
  background: radial-gradient(120% 160% at 0% 0%, rgba(127, 168, 139, 0.2), transparent 60%),
    var(--surface-solid-2);
}

:root[data-theme="day"] .sf-swatch__dot {
  border-color: rgba(15, 34, 45, 0.28);
}

/* --------------------------------------------------------------------------
   08. Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 380px) {
  .sf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 560px) {
  .sf-carousel__item {
    flex-basis: calc((100% - var(--sf-gap)) / 2.15);
  }
}

@media (min-width: 760px) {
  .sf-story__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
  }

  .sf-story__grid {
    gap: 2rem;
  }
}

@media (min-width: 700px) {
  .sf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .sf-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 5vw, 4.5rem);
  }

  .sf-hero__aside {
    padding-top: 0.2rem;
  }

  .sf-story__grid {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
  }

  .sf-carousel__item {
    flex-basis: calc((100% - 2 * var(--sf-gap)) / 3.18);
  }

  .sf-gallery__thumb {
    flex-basis: 80px;
    width: 80px;
    height: 80px;
  }
}

@media (min-width: 1000px) {
  .sf-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sf-product {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .sf-product__gallery {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
  }
}

@media (min-width: 1200px) {
  .sf-carousel__item {
    flex-basis: calc((100% - 3 * var(--sf-gap)) / 4.18);
  }

  .sf-gallery__thumb {
    flex-basis: 86px;
    width: 86px;
    height: 86px;
  }

  .sf-catalog__layout {
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }

  .sf-filters {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }
}

/* Tablets and phones: arrows sit beside a left-aligned title so they never
   overlap the heading. */

@media (max-width: 699px) {
  .sf-carousel__head {
    justify-content: space-between;
    gap: 1rem;
  }

  .sf-carousel__title {
    padding-inline: 0;
    font-size: clamp(1.45rem, 1.1rem + 1.4vw, 1.75rem);
    text-align: left;
  }

  .sf-carousel__nav {
    position: static;
    transform: none;
  }

  .sf-arrow {
    width: 38px;
    height: 38px;
  }

  .sf-invite {
    flex-direction: column;
    align-items: flex-start;
  }

  .sf-invite .btn {
    width: 100%;
  }
}

@media (max-width: 559px) {
  .sf-hero-photo img {
    border-radius: var(--r-lg);
  }

  .sf-hero-photo::after {
    border-radius: var(--r-lg);
  }

  .sf-toolbar {
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    border-radius: var(--r-lg);
  }

  .sf-toolbar__count {
    font-size: 0.8rem;
  }

  .sf-toolbar__tools {
    gap: 0.55rem;
  }

  .sf-sort {
    gap: 0.4rem;
  }

  /* Keep both controls on the single toolbar row; the labels stay in the
     accessibility tree even though they are visually compact. */

  .sf-sort__label,
  .sf-view__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .sf-sort__select {
    padding-inline: 0.75rem 1.9rem;
    font-size: 0.76rem;
  }

  .sf-view__btn {
    width: 32px;
    height: 32px;
  }

  .sf-filter {
    padding: 0.9rem 1rem;
  }

  .sf-grid--list .sf-card__figure {
    flex-basis: 116px;
    margin: 0.4rem 0 0.4rem 0.4rem;
  }

  .sf-grid--list .sf-card__body {
    padding: 0.8rem 0.85rem;
  }

  .sf-grid--list .sf-card__media {
    aspect-ratio: 4 / 5;
  }

  .sf-buy {
    gap: 0.45rem;
  }

  .sf-catalog .sf-page-head h1 {
    font-size: clamp(1.9rem, 1.4rem + 2.6vw, 2.4rem);
  }
}

@media (max-width: 400px) {
  .sf-card__form {
    gap: 0.35rem;
  }

  .sf-qty__btn {
    width: 27px;
  }

  .sf-qty__input {
    width: 29px;
  }

  .sf-card__add {
    padding-inline: 0.4rem;
    font-size: 0.65rem;
    letter-spacing: 0.04em;
  }

  .sf-qty--lg .sf-qty__btn {
    width: 36px;
  }

  .sf-qty--lg .sf-qty__input {
    width: 40px;
  }

  .sf-add {
    padding-inline: 0.7rem;
    font-size: 0.74rem;
    letter-spacing: 0.07em;
  }
}

@media (max-width: 359px) {
  .sf-card__body {
    padding: 0.7rem 0.75rem 0.85rem;
  }

  .sf-qty__btn {
    width: 24px;
  }

  .sf-qty__input {
    width: 26px;
  }

  .sf-card__add {
    font-size: 0.6rem;
    letter-spacing: 0.02em;
  }
}

/* --------------------------------------------------------------------------
   09. Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .sf-card:hover,
  .sf-card:hover .sf-card__media img,
  .sf-card:focus-within .sf-card__media img,
  .sf-arrow:hover,
  .sf-explore__link:hover,
  .sf-card__add:hover,
  .sf-add:hover {
    transform: none;
  }

  .sf-carousel__track {
    scroll-behavior: auto;
  }
}

/* Wishlist control: the form is only a wrapper; the button is the circle. */
.sf-card__wish {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 3;
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transform: none;
}
.sf-card__wish:hover,
.sf-card__wish:focus-within {
  background: none;
  border: 0;
  color: inherit;
  transform: none;
}
.sf-card__wish button {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 36px;
  block-size: 36px;
  padding: 0;
  border: 1px solid rgba(235, 231, 217, 0.28);
  border-radius: 50%;
  background: rgba(8, 17, 24, 0.55);
  color: var(--cream);
  cursor: pointer;
  box-shadow: none;
  line-height: 0;
  box-sizing: border-box;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.sf-card__wish button:hover,
.sf-card__wish button:focus-visible {
  background: var(--accent);
  border-color: transparent;
  color: var(--cream);
  transform: none;
}
.sf-card__wish svg {
  display: block;
  inline-size: 17px;
  block-size: 17px;
}
:root[data-theme="day"] .sf-card__wish button {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border-color: rgba(15, 34, 45, 0.2);
}
@media (max-width: 700px) {
  .sf-card__wish { top: 0.5rem; right: 0.5rem; }
  .sf-card__wish button { inline-size: 32px; block-size: 32px; }
  .sf-card__wish svg { inline-size: 15px; block-size: 15px; }
}

/* Homepage SEO copy: short H1, story in supporting paragraph. */
.sf-hero__story {
  max-width: 46rem;
  margin: 1.1rem 0 0;
  color: var(--text-2);
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.08rem);
  line-height: 1.8;
}
