/*
 * Classic — Oyklane's general-purpose theme (v2).
 * Styles the home page, header, footer and announcement bar. Product,
 * cart, checkout and account pages are Oyklane platform pages; they pick
 * up this theme's colours and fonts automatically.
 *
 * Every value comes from the variables set in layout/theme.liquid from
 * Theme settings (--c-*, --f-*, --w-*, --s-*, --r-*).
 */

/* ── Base ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: var(--f-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,
svg,
picture {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}
main:focus {
  outline: none;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--c-text);
  color: var(--c-bg);
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.container {
  width: 100%;
  max-width: var(--w-container);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.icon--sm {
  width: 16px;
  height: 16px;
}
.icon--xs {
  width: 14px;
  height: 14px;
}
.placeholder {
  width: 100%;
  height: 100%;
  color: var(--c-text);
  background: var(--c-surface);
}
/* On a tinted section the placeholder's own tint would vanish into it. */
.section--surface .placeholder {
  background: var(--c-bg);
}

/* ── Type ─────────────────────────────────────────────── */
.display,
.h2,
.card__title,
.feature__title,
.post__title,
.footer__logo,
.header__logo span {
  font-family: var(--f-heading);
  font-weight: var(--f-heading-weight);
  text-transform: var(--f-heading-case);
}
.display {
  font-size: clamp(34px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.display--md {
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.1;
}
.h2 {
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 12px;
}
.rte {
  font-size: 16px;
  line-height: 1.75;
  opacity: 0.85;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 14px 30px;
  border-radius: var(--r-button);
  border: 1px solid var(--c-primary);
  background: var(--c-primary);
  color: var(--c-bg);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.4);
}
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn--sm {
  min-height: 42px;
  padding: 10px 20px;
  font-size: 14px;
}
.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border-color: currentColor;
}
.btn--ghost:hover {
  background: var(--c-text);
  color: var(--c-bg);
  border-color: var(--c-text);
}
.btn--light {
  background: #fff;
  border-color: #fff;
  color: #111;
}
.btn--ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.btn--ghost-light:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.center-row {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow .icon {
  transition: transform 0.2s ease;
}
.link-arrow:hover .icon {
  transform: translateX(3px);
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  list-style: none;
}
.icon-btn::-webkit-details-marker {
  display: none;
}
.icon-btn:hover {
  background: color-mix(in srgb, var(--c-text) 6%, transparent);
}
.icon-btn--round {
  border: 1px solid color-mix(in srgb, var(--c-text) 18%, transparent);
  background: var(--c-bg);
}

/* ── Sections ─────────────────────────────────────────── */
.section {
  padding: calc(var(--s-section) / 2) 0;
}
.section:first-child {
  padding-top: var(--s-section);
}
.section--surface {
  background: var(--c-surface);
  padding: var(--s-section) 0;
  margin: calc(var(--s-section) / 2) 0;
}
.section--tight {
  padding: calc(var(--s-section) / 3) 0;
}
.section--flush-true {
  padding-left: 0;
  padding-right: 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head__text {
  max-width: 640px;
}
.section-head__sub {
  margin-top: 10px;
  opacity: 0.7;
  font-size: 16px;
}

/* ── Announcement bar ─────────────────────────────────── */
.announce {
  background: var(--announce-bg);
  color: var(--announce-fg);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.announce__inner {
  position: relative;
  min-height: 38px;
  display: grid;
  place-items: center;
}
.announce__msg {
  grid-area: 1 / 1;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.announce__msg.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.announce__msg a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Header ───────────────────────────────────────────── */
.header {
  background: var(--c-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--c-text) 9%, transparent);
  z-index: 40;
}
.header--sticky {
  position: sticky;
  top: 0;
}
.header.is-scrolled {
  box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.35);
}
.header__inner {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}
.header__logo {
  display: flex;
  align-items: center;
}
.header__logo span {
  font-size: 24px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.header__logo img {
  height: auto;
}
.header__nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.header__nav a {
  display: inline-block;
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 500;
  position: relative;
}
.header__nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.header__nav a:hover::after {
  transform: scaleX(1);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-self: end;
}
.header__count {
  position: absolute;
  top: 5px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--c-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.header__count[hidden] {
  display: none;
}
.header--center .header__inner {
  grid-template-columns: 1fr auto 1fr;
}
.header--center .header__logo {
  grid-column: 2;
  grid-row: 1;
  justify-content: center;
}
.header--center .header__nav {
  grid-column: 1;
  grid-row: 1;
}
.header--center .header__actions {
  grid-column: 3;
}
.drawer {
  display: none;
}
.search-pop > summary {
  list-style: none;
}
.search-pop[open] > summary {
  background: color-mix(in srgb, var(--c-text) 6%, transparent);
}
.search-pop__form {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--c-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--c-text) 9%, transparent);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.35);
  padding: 18px 0;
}
.search-pop__row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-pop__row input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--c-text) 25%, transparent);
  padding: 12px 4px;
  font: inherit;
  font-size: 18px;
  background: transparent;
  color: inherit;
}
.search-pop__row input:focus {
  outline: none;
  border-bottom-color: var(--c-text);
}

/* ── Slideshow ────────────────────────────────────────── */
.slideshow {
  position: relative;
  overflow: hidden;
  background: var(--c-surface);
}
.slideshow__track {
  display: grid;
}
.slide {
  grid-area: 1 / 1;
  position: relative;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
}
.slideshow--small .slide {
  min-height: clamp(320px, 42vw, 460px);
}
.slideshow--medium .slide {
  min-height: clamp(400px, 52vw, 600px);
}
.slideshow--large .slide {
  min-height: clamp(480px, 62vw, 760px);
}
.slideshow--full .slide {
  min-height: calc(100vh - 112px);
}
.slide__media {
  position: absolute;
  inset: 0;
}
.slide__media img,
.slide__media picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide.is-active .slide__media img {
  animation: kenburns 9s ease-out both;
}
@keyframes kenburns {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}
.slide__scrim {
  position: absolute;
  inset: 0;
  background: #000;
}
.slide__content {
  position: relative;
  z-index: 1;
  padding-top: 56px;
  padding-bottom: 88px;
}
.slide__text {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.slide__text .eyebrow {
  margin: 0;
}
.slide__sub {
  font-size: clamp(16px, 1.5vw, 19px);
  opacity: 0.85;
  max-width: 520px;
}
.slide--center .slide__text {
  margin: 0 auto;
  text-align: center;
  align-items: center;
}
.slide--right .slide__text {
  margin-left: auto;
}
.slide--light {
  color: #fff;
}
.slide.is-active .slide__text > * {
  animation: rise 0.8s ease both;
}
.slide.is-active .slide__text > *:nth-child(2) {
  animation-delay: 0.08s;
}
.slide.is-active .slide__text > *:nth-child(3) {
  animation-delay: 0.16s;
}
.slide.is-active .slide__text > *:nth-child(4) {
  animation-delay: 0.24s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.slideshow__controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  z-index: 2;
  pointer-events: none;
}
.slideshow__controls > * {
  pointer-events: auto;
}
.slideshow__dots {
  display: flex;
  gap: 8px;
}
.slideshow__dot {
  width: 28px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: color-mix(in srgb, var(--c-text) 25%, transparent);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}
.slideshow__dot.is-active {
  width: 44px;
  background: var(--c-text);
}

/* ── Product grid & card ──────────────────────────────── */
.products {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 36px) clamp(12px, 1.6vw, 24px);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.card__media {
  position: relative;
  display: block;
  aspect-ratio: var(--card-ratio);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--c-surface);
}
.card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease;
}
.card__media .card__hover {
  opacity: 0;
}
.card:hover .card__media img:first-child {
  transform: scale(1.04);
}
.card:hover .card__media .card__hover {
  opacity: 1;
}
.card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 1;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--c-bg);
  color: var(--c-text);
}
.badge--sale {
  background: var(--c-accent);
  color: #fff;
}
.badge--dark {
  background: var(--c-text);
  color: var(--c-bg);
}
/* Quick add sits over the bottom-right of the image. It can't live inside
   the image link (a form inside a link is invalid), so it's an overlay
   box with the image's own shape, stacked on top of it. */
.card__quick {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: var(--card-ratio);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 12px;
  pointer-events: none;
  z-index: 2;
}
.card__quick-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  border: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.card__quick-btn .icon {
  width: 18px;
  height: 18px;
}
.card:hover .card__quick-btn,
.card__quick-btn:focus-visible {
  opacity: 1;
  transform: none;
}
.card__quick-btn:hover {
  background: var(--c-primary);
  color: var(--c-bg);
}
.card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card__brand {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}
.card__title {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
}
.card__title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.card--placeholder .card__title {
  color: color-mix(in srgb, var(--c-text) 75%, transparent);
}
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}
.price--lg {
  font-size: 22px;
}
.price__now {
  font-weight: 600;
}
.price__now--sale {
  color: var(--c-accent);
}
.price__was {
  opacity: 0.55;
  font-size: 0.9em;
}
.price__from {
  opacity: 0.6;
  font-size: 13px;
}

/* ── Collection list ──────────────────────────────────── */
.clist {
  display: grid;
  grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.clist__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.clist__media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--c-surface);
}
.clist__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.clist__item:hover .clist__media img {
  transform: scale(1.05);
}
.clist--circles .clist__media {
  aspect-ratio: 1;
  border-radius: 50%;
  max-width: 180px;
}
.clist--cards .clist__media,
.clist--tiles .clist__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-card);
}
.clist__name {
  font-family: var(--f-heading);
  font-weight: var(--f-heading-weight);
  font-size: 17px;
}
.clist__count {
  font-size: 13px;
  opacity: 0.6;
  margin-top: -8px;
}
.clist--cards .clist__item,
.clist--tiles .clist__item {
  align-items: stretch;
  text-align: left;
}
.clist__overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  background: var(--c-bg);
  border-radius: calc(var(--r-card) * 0.7);
}

/* ── Tabs ─────────────────────────────────────────────── */
.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -12px 0 32px;
}
.tabs__tab {
  border: 1px solid color-mix(in srgb, var(--c-text) 18%, transparent);
  background: transparent;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tabs__tab.is-active {
  background: var(--c-text);
  color: var(--c-bg);
  border-color: var(--c-text);
}
[data-tabs].is-ready .tabs__panel {
  display: none;
}
[data-tabs].is-ready .tabs__panel.is-active {
  display: block;
  animation: fade 0.4s ease;
}
.tabs__panel + .tabs__panel {
  margin-top: 48px;
}
[data-tabs].is-ready .tabs__panel + .tabs__panel {
  margin-top: 0;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ── Promo ────────────────────────────────────────────── */
.promo {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(360px, 40vw, 520px);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--promo-bg);
}
.section--flush-true .promo {
  border-radius: 0;
}
.promo__media {
  position: absolute;
  inset: 0;
}
.promo__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo--light .promo__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1));
}
.promo__content {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 5vw, 72px);
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.promo--center .promo__content {
  margin: 0 auto;
  text-align: center;
  align-items: center;
}
.promo--light {
  color: #fff;
}
.promo__sub {
  font-size: 17px;
  opacity: 0.85;
}
.countdown {
  display: flex;
  gap: 10px;
  margin: 4px 0 6px;
}
.countdown span {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
  padding: 10px 8px;
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 12%, transparent);
  backdrop-filter: blur(6px);
}
.countdown b {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.countdown small {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* ── Split (image with text) ──────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 6vw, 96px);
}
.split--right .split__media {
  order: 2;
}
.split__media {
  aspect-ratio: 5 / 6;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--c-bg);
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 520px;
}
.split__text .eyebrow {
  margin: 0;
}

/* ── Featured product ─────────────────────────────────── */
.spotlight {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
}
.spotlight__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.spotlight__media > :only-child {
  grid-column: 1 / -1;
}
.spotlight__media img,
.spotlight__media .placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-card);
  background: var(--c-surface);
}
.spotlight__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.spotlight__info .eyebrow {
  margin: 0;
}
.spotlight__desc {
  opacity: 0.8;
  font-size: 16px;
}
.spotlight__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  max-width: 360px;
}
.field select,
.inline-form input {
  min-height: 50px;
  padding: 12px 16px;
  border-radius: min(var(--r-button), 12px);
  border: 1px solid color-mix(in srgb, var(--c-text) 22%, transparent);
  background: var(--c-bg);
  color: var(--c-text);
  font: inherit;
  font-weight: 400;
}

/* ── Features ─────────────────────────────────────────── */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 24px;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feature__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c-surface);
}
.feature__title {
  font-size: 16px;
  font-weight: 600;
}
.feature__text {
  font-size: 14px;
  opacity: 0.7;
  margin-top: 2px;
}
.features--stacked .feature {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.features--boxed .feature {
  padding: 22px;
  border-radius: var(--r-card);
  background: var(--c-surface);
}
.features--boxed .feature__icon {
  background: var(--c-bg);
}

/* ── Reviews ──────────────────────────────────────────── */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.review {
  margin: 0;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r-card);
  background: var(--c-bg);
  border: 1px solid color-mix(in srgb, var(--c-text) 9%, transparent);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section--surface .review {
  border-color: transparent;
}
.review__stars {
  display: flex;
  gap: 2px;
  color: color-mix(in srgb, var(--c-text) 20%, transparent);
}
.review__stars .is-on {
  color: #f5a524;
}
.review__quote {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  flex: 1;
}
.review__by {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.review__by small {
  display: block;
  opacity: 0.6;
}
.review__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c-surface);
  font-weight: 700;
}
.section--surface .review__avatar {
  background: var(--c-bg);
}

/* ── Logos ────────────────────────────────────────────── */
.logos__heading {
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 22px;
}
.logos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 64px);
}
.logos img {
  max-height: 40px;
  width: auto;
}
.logos--muted img {
  filter: grayscale(1);
  opacity: 0.6;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.logos--muted li:hover img {
  filter: none;
  opacity: 1;
}
.logos__text {
  font-family: var(--f-heading);
  font-size: 22px;
  opacity: 0.55;
}

/* ── Gallery ──────────────────────────────────────────── */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: calc(var(--r-card) * 0.6);
  background: var(--c-surface);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery__hover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery__item:hover img {
  transform: scale(1.06);
}
.gallery__item:hover .gallery__hover {
  opacity: 1;
}

/* ── Statement ────────────────────────────────────────── */
.statement {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.statement--center {
  margin: 0 auto;
  text-align: center;
  align-items: center;
}
.statement .eyebrow {
  margin: 0;
}

/* ── Newsletter ───────────────────────────────────────── */
.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-card);
  background: var(--nl-bg);
}
.newsletter--light {
  color: #fff;
}
.newsletter__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.newsletter__text p {
  opacity: 0.8;
  font-size: 16px;
}
.inline-form {
  display: flex;
  gap: 10px;
}
.inline-form input {
  flex: 1;
  min-width: 0;
}
.newsletter__fine {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 10px;
}
.note {
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
}
.note--ok {
  background: #ecfdf3;
  color: #15803d;
}
.note--error {
  background: #fef3f2;
  color: #b42318;
}

/* ── Blog posts ───────────────────────────────────────── */
.posts {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 36px);
}
.post {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--c-surface);
}
.post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.post:hover .post__media img {
  transform: scale(1.04);
}
.post__meta {
  font-size: 13px;
  opacity: 0.6;
}
.post__title {
  font-size: 20px;
  line-height: 1.3;
}
.post:hover .post__title {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post__excerpt {
  opacity: 0.75;
  font-size: 15px;
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  margin-top: calc(var(--s-section) / 2);
  padding: clamp(48px, 6vw, 80px) 0 24px;
  background: var(--c-surface);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 340px;
}
.footer__logo {
  font-size: 24px;
}
.footer__about,
.footer__text {
  opacity: 0.75;
  font-size: 14px;
}
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.footer__contact a:hover,
.footer__col a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.footer__col--wide {
  grid-column: span 1;
}
.footer__col .inline-form {
  margin-top: 14px;
}
.footer__col .inline-form input {
  min-height: 44px;
}
.social {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  gap: 6px;
}
.social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c-bg);
  transition: transform 0.2s ease;
}
.social a:hover {
  transform: translateY(-2px);
}
.social .icon {
  width: 18px;
  height: 18px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--c-text) 12%, transparent);
  font-size: 13px;
  opacity: 0.85;
}
.pay-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pay-badges li {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--c-bg);
  border: 1px solid color-mix(in srgb, var(--c-text) 10%, transparent);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .products {
    --cols: 3 !important;
  }
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .header__nav {
    display: none;
  }
  .header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    min-height: 64px;
  }
  .header__account {
    display: none;
  }
  .header--center .header__inner {
    grid-template-columns: auto 1fr auto;
  }
  .header--center .header__logo {
    grid-column: 2;
  }
  .drawer {
    display: block;
  }
  .drawer > summary {
    list-style: none;
  }
  .drawer__panel {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(360px, 88vw);
    background: var(--c-bg);
    z-index: 60;
    display: flex;
    flex-direction: column;
    box-shadow: 20px 0 60px -20px rgba(0, 0, 0, 0.4);
    animation: slide-in 0.3s ease;
  }
  .drawer[open]::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 55;
  }
  @keyframes slide-in {
    from {
      transform: translateX(-100%);
    }
    to {
      transform: none;
    }
  }
  .drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px 12px 20px;
    border-bottom: 1px solid color-mix(in srgb, var(--c-text) 10%, transparent);
  }
  .drawer__title {
    font-family: var(--f-heading);
    font-size: 20px;
  }
  .drawer__search {
    padding: 16px 20px 4px;
  }
  .drawer__search input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--c-text) 18%, transparent);
    font: inherit;
    background: var(--c-bg);
    color: inherit;
  }
  .drawer__panel nav {
    flex: 1;
    overflow-y: auto;
  }
  .drawer__links {
    list-style: none;
    margin: 0;
    padding: 8px 0;
  }
  .drawer__links a {
    display: block;
    padding: 14px 20px;
    font-size: 18px;
    font-family: var(--f-heading);
  }
  .drawer__foot {
    padding: 16px 20px 24px;
    border-top: 1px solid color-mix(in srgb, var(--c-text) 10%, transparent);
  }
  .drawer__foot a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
  }
  .split,
  .spotlight,
  .newsletter {
    grid-template-columns: 1fr;
  }
  .split--right .split__media {
    order: 0;
  }
  .reviews {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 82%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .review {
    scroll-snap-align: start;
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .clist {
    --cols: 3 !important;
  }
  .posts {
    --cols: 2 !important;
  }
  .slideshow__controls {
    justify-content: center;
  }
}
@media (max-width: 640px) {
  .products {
    --cols: 2 !important;
  }
  .products--slider {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * clamp(16px, 4vw, 48px));
    padding: 0 clamp(16px, 4vw, 48px) 8px;
    scrollbar-width: none;
  }
  .products--slider .card {
    scroll-snap-align: start;
  }
  .clist--circles {
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: 30%;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .clist--cards,
  .clist--tiles {
    --cols: 2 !important;
  }
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .posts {
    --cols: 1 !important;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-head--center {
    align-items: center;
  }
  .inline-form {
    flex-direction: column;
  }
  .card__quick-btn {
    opacity: 1;
    transform: none;
    height: 36px;
    padding: 0 10px;
  }
  .card__quick-btn span {
    display: none;
  }
  .countdown span {
    min-width: 54px;
  }
  .slide__content {
    padding-bottom: 72px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ── Star rating on product cards (Product Reviews app) ─────────────── */
.stars {
  position: relative;
  display: inline-block;
  width: 68px;
  height: 13px;
  flex: none;
  background: color-mix(in srgb, var(--c-text) 20%, transparent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 16'%3E%3Cg%3E%3Cpath id='s' d='M8 .8l2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5L.8 6.1l5-.7z'/%3E%3Cuse href='%23s' x='17'/%3E%3Cuse href='%23s' x='34'/%3E%3Cuse href='%23s' x='51'/%3E%3Cuse href='%23s' x='68'/%3E%3C/g%3E%3C/svg%3E") no-repeat 0 0 / 68px 13px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 16'%3E%3Cg%3E%3Cpath id='s' d='M8 .8l2.2 4.6 5 .7-3.6 3.5.9 5-4.5-2.4-4.5 2.4.9-5L.8 6.1l5-.7z'/%3E%3Cuse href='%23s' x='17'/%3E%3Cuse href='%23s' x='34'/%3E%3Cuse href='%23s' x='51'/%3E%3Cuse href='%23s' x='68'/%3E%3C/g%3E%3C/svg%3E") no-repeat 0 0 / 68px 13px;
}
.stars::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--stars, 0%);
  background: #f5a524;
}
.card-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: color-mix(in srgb, var(--c-text) 60%, transparent);
}
.card-rating {
  align-self: flex-start;
}
