/* ==========================================================================
   VERNALIE — site.css
   Editorial French nail-care storefront. Warm paper, wine accent, hairline rules.
   Local fonts only. Mobile-first. Breakpoints: 480 / 768 / 1024 / 1440.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (local woff2, declared once)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "PP Eiko";
  src: url("fonts/ppeiko-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Suisse Intl";
  src: url("fonts/suisseintl-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Suisse Intl";
  src: url("fonts/suisseintl-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */
/* V2 numbered design tokens. The generator overrides --c0..--c9 / --f0 / --f1
   per seed (hue shift, identity); these are the fallback values. */
:root {
  --c0: #F7F2EC;
  --c1: #EFE6DA;
  --c2: #1F1B18;
  --c3: #776B60;
  --c4: #E1D6C8;
  --c5: #6D2A3B;
  --c6: #C78A93;
  --c7: #B08D6A;
  --c8: #2F6B4F;
  --c9: #A0322B;
  --f0: "PP Eiko", Georgia, serif;
  --f1: "Suisse Intl", system-ui, sans-serif;

  /* numbered derived tokens (not injected by the generator) */
  --c10: #57202F; /* accent pressed */
  --c11: #443B34; /* soft ink */
  --c12: #5F5449; /* strong muted */
  --c13: #EDE5DA; /* text on dark surfaces */
  --c14: #BDB0A2; /* muted on dark surfaces */

  --s0: 1280px; /* container width */
  --s1: clamp(1rem, 4vw, 2.5rem); /* page gutter */
  --s2: clamp(2.5rem, 6vw, 5.25rem); /* section rhythm */
  --s3: 64px; /* header height */

  --r0: 2px; /* radius */
  --h0: 0 18px 44px var(--c18); /* elevation */
  --h1: 2px solid var(--c5); /* focus ring */
}

/* --------------------------------------------------------------------------
   3. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100%;
  background: var(--c0);
  color: var(--c2);
  font-family: var(--f1);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--f0);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

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

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

s {
  text-decoration-thickness: 1px;
}

::selection {
  background: var(--c5);
  color: var(--c0);
}

/* Template/JS rely on the hidden attribute for every piece of show/hide logic. */
[hidden] {
  display: none !important;
}

/* Defensive helper for JS-driven filtering. */
.is-hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   4. Accessibility helpers
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 400;
  padding: 0.7rem 1rem;
  background: var(--c2);
  color: var(--c0);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--c0);
  outline-offset: 2px;
}

:focus-visible {
  outline: var(--h1);
  outline-offset: 2px;
}

/* Dark surfaces need a light focus ring. */
.promo-bar :focus-visible,
.site-footer :focus-visible,
.mobile-nav :focus-visible,
.toast :focus-visible {
  outline-color: var(--c0);
}

/* --------------------------------------------------------------------------
   5. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--s0);
  margin-inline: auto;
  padding-inline: var(--s1);
}

.site-main {
  display: block;
  min-height: 50vh;
}

/* --------------------------------------------------------------------------
   6. Buttons, links, badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 44px;
  max-width: 100%;
  padding: 0.78em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--r0);
  background: transparent;
  color: var(--c2);
  font-family: var(--f1);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease, opacity 0.2s ease;
}

.btn--primary {
  background: var(--c5);
  border-color: var(--c5);
  color: var(--c13);
}

.btn--primary:hover {
  background: var(--c10);
  border-color: var(--c10);
}

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

.btn--ghost:hover {
  border-color: var(--c2);
  background: var(--c1);
}

.btn--sm {
  min-height: 36px;
  padding: 0.5em 0.95em;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.btn--lg {
  min-height: 52px;
  padding: 1em 2em;
  font-size: 0.8rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  cursor: progress;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 17px;
  height: 17px;
  margin: -9px 0 0 -9px;
  border: 2px solid var(--c19);
  border-top-color: var(--c2);
  border-radius: 50%;
  animation: v-spin 0.7s linear infinite;
}

.btn--primary.is-loading::after {
  border-color: var(--c20);
  border-top-color: var(--c0);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--c2);
  font-size: 0.86rem;
  text-decoration: underline;
  text-decoration-color: var(--c4);
  text-underline-offset: 0.25em;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.link-arrow:hover {
  color: var(--c25);
  text-decoration-color: var(--c25);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.9rem;
  color: var(--c3);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1px;
  background: var(--c7);
}

/* --------------------------------------------------------------------------
   7. Promo bar
   -------------------------------------------------------------------------- */
.promo-bar {
  background: var(--c2);
  color: var(--c13);
}

.promo-bar__inner {
  display: flex;
  justify-content: center;
  padding-block: 0.5rem;
}

.promo-bar__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.promo-bar__item {
  position: relative;
}

.promo-bar__item + .promo-bar__item::before {
  content: "·";
  position: absolute;
  left: -0.85rem;
  color: var(--c7);
}

/* --------------------------------------------------------------------------
   8. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--c21);
  border-bottom: 1px solid var(--c4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--s3);
  padding-block: 0.5rem;
}

.menu-toggle {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--c4);
  border-radius: var(--r0);
  background: transparent;
  cursor: pointer;
}

.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--c2);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child {
  transform: translateY(3.2px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child {
  transform: translateY(-3.2px) rotate(-45deg);
}

.logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  color: var(--c2);
}

.logo__mark {
  display: inline-flex;
  flex: 0 0 auto;
}

.logo__mark img {
  width: 28px;
  height: 28px;
}

/* V2 logo is an inline SVG (34×34); colour comes from the SVG itself. */
.logo__mark svg {
  display: block;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
}

.logo__word {
  font-family: var(--f0);
  font-size: 1.28rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

.nav-primary {
  display: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  margin-left: auto;
}

.search {
  position: relative;
  display: none;
  flex: 0 0 auto;
  align-items: center;
  min-width: 0;
}

.search__input {
  width: 15rem;
  max-width: 100%;
  min-height: 40px;
  padding: 0.4rem 2.3rem 0.4rem 0.75rem;
  border: 1px solid var(--c4);
  border-radius: var(--r0);
  background: var(--c0);
  color: var(--c2);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.search__input::placeholder {
  color: var(--c3);
  opacity: 1;
}

.search__input:focus {
  border-color: var(--c5);
}

.search__submit {
  position: absolute;
  top: 50%;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--c3);
  cursor: pointer;
  transform: translateY(-50%);
}

.search__submit:hover {
  color: var(--c25);
}

.search__submit svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.cart-link {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.2rem 0.25rem;
  color: var(--c2);
}

.cart-link:hover {
  color: var(--c25);
}

.cart-link__icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-link__label {
  display: none;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-link__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--c5);
  color: var(--c13);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   9. Mobile navigation drawer
   -------------------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  flex-direction: column;
  padding: 1.1rem var(--s1) 2rem;
  overflow-y: auto;
  background: var(--c0);
  -webkit-overflow-scrolling: touch;
}

.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--c4);
}

.mobile-nav__title {
  font-family: var(--f0);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.mobile-nav__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c4);
  border-radius: var(--r0);
  background: transparent;
  color: var(--c2);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav__list li {
  border-bottom: 1px solid var(--c4);
}

.mobile-nav__list a {
  display: block;
  padding: 0.95rem 0.15rem;
  color: var(--c2);
  font-family: var(--f0);
  font-size: 1.3rem;
  line-height: 1.2;
}

.mobile-nav__list a:hover {
  color: var(--c25);
}

body.menu-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   10. Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-block: clamp(1.25rem, 3vw, 2.25rem) clamp(2rem, 5vw, 4rem);
}

.hero__inner {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hero__title {
  max-width: 20ch;
  font-family: var(--f0);
  font-size: clamp(2.4rem, 7.4vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.hero__lead {
  max-width: 44ch;
  margin-top: 1.1rem;
  color: var(--c3);
  font-size: 1.02rem;
  line-height: 1.68;
  overflow-wrap: break-word;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.hero__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c1);
}

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

/* --------------------------------------------------------------------------
   11. USP strip
   -------------------------------------------------------------------------- */
.usp {
  border-top: 1px solid var(--c4);
  border-bottom: 1px solid var(--c4);
}

.usp__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0;
  padding: 1.4rem 0;
  list-style: none;
}

.usp__item {
  min-width: 0;
}

.usp__title {
  font-family: var(--f0);
  font-size: 1.02rem;
  line-height: 1.25;
}

.usp__text {
  margin-top: 0.35rem;
  color: var(--c3);
  font-size: 0.84rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   12. Sections
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--s2);
}

.section--alt,
.section--brand,
.checkout-confirm,
.cart-summary,
.checkout-summary,
.confirm__card,
.cod-box {
  --c3: var(--c12);
  --c4: var(--c16);
}

.section--alt {
  background: var(--c1);
}

.section--cats {
  border-top: 1px solid var(--c4);
}

.section__head {
  margin-bottom: clamp(1.5rem, 3.2vw, 2.5rem);
}

.section__head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.section__title {
  font-family: var(--f0);
  font-size: clamp(1.7rem, 3.9vw, 2.85rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.section__text {
  max-width: 54ch;
  margin-top: 0.8rem;
  color: var(--c3);
  font-size: 0.98rem;
  line-height: 1.68;
}

/* --------------------------------------------------------------------------
   13. Category cards
   -------------------------------------------------------------------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.6rem) clamp(0.75rem, 2vw, 1.4rem);
}

.cat-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--c2);
}

.cat-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--c1);
}

.cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.cat-card:hover .cat-card__media img {
  transform: scale(1.035);
}

.cat-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.7rem;
}

.cat-card__name {
  font-family: var(--f0);
  font-size: 1.02rem;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.cat-card__count {
  color: var(--c3);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cat-card--compact .cat-card__media {
  aspect-ratio: 1 / 1;
}

.cat-card--compact .cat-card__name {
  font-size: 0.92rem;
}

.cat-card--compact .cat-card__count {
  font-size: 0.68rem;
}

/* --------------------------------------------------------------------------
   14. Product grid & cards
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.4rem) clamp(0.75rem, 2vw, 1.7rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c1);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.product-card:hover .product-card__img {
  transform: scale(1.03);
}

.product-card__tags {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  max-width: calc(100% - 1.2rem);
  pointer-events: none;
}

.product-card__discount {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.28em 0.5em;
  border-radius: var(--r0);
  background: var(--c5);
  color: var(--c13);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.product-card__out {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c22);
  color: var(--c2);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding-top: 0.75rem;
}

.product-card__cat {
  color: var(--c3);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.product-card__title {
  margin-top: 0.3rem;
  font-family: var(--f0);
  font-size: 1.02rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.product-card__title a {
  color: var(--c2);
  overflow-wrap: break-word;
}

.product-card:hover .product-card__title a {
  color: var(--c25);
}

.product-card__short {
  display: -webkit-box;
  margin-top: 0.35rem;
  overflow: hidden;
  color: var(--c3);
  font-size: 0.84rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.product-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.65rem;
}

.product-card__add {
  flex: 0 0 auto;
}

/* Price */
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0;
}

.price__now {
  color: var(--c2);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.price__was {
  color: var(--c3);
  font-size: 0.82rem;
  font-weight: 400;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   15. Shop toolbar (boutique / category)
   -------------------------------------------------------------------------- */
.shop-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 1rem;
  margin-bottom: 1.75rem;
  border-top: 1px solid var(--c4);
  border-bottom: 1px solid var(--c4);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.35em 0.8em;
  border: 1px solid var(--c4);
  border-radius: 999px;
  background: transparent;
  color: var(--c2);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}

.chip:hover {
  border-color: var(--c2);
}

.chip.is-active {
  border-color: var(--c2);
  background: var(--c2);
  color: var(--c0);
}

.chip__count {
  color: var(--c3);
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
}

.chip.is-active .chip__count {
  color: var(--c23);
}

.shop-toolbar__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  min-width: 0;
}

.shop-search {
  display: flex;
  flex: 1 1 11rem;
  min-width: 0;
  max-width: 22rem;
}

.shop-search__input {
  width: 100%;
  min-height: 40px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--c4);
  border-radius: var(--r0);
  background: var(--c0);
  color: var(--c2);
  font-size: 0.85rem;
}

.shop-search__input::placeholder {
  color: var(--c3);
  opacity: 1;
}

.shop-search__input:focus {
  border-color: var(--c5);
}

.sort {
  color: var(--c3);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.sort__select {
  min-height: 40px;
  max-width: 100%;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--c4);
  border-radius: var(--r0);
  background: var(--c0);
  color: var(--c2);
  font-size: 0.85rem;
}

.result-count {
  margin-left: auto;
  color: var(--c3);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.no-results {
  margin: 2rem 0;
  padding: 2.25rem 1.25rem;
  border: 1px dashed var(--c4);
  color: var(--c3);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}

.no-results a {
  color: var(--c25);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* --------------------------------------------------------------------------
   16. Page head / breadcrumb / category head
   -------------------------------------------------------------------------- */
.breadcrumb {
  padding-top: 1.1rem;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--c3);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--c4);
}

.breadcrumb__item a {
  color: var(--c3);
}

.breadcrumb__item a:hover {
  color: var(--c25);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.breadcrumb__item [aria-current="page"] {
  color: var(--c2);
}

.page-head {
  padding-block: clamp(1.5rem, 3.5vw, 2.6rem) clamp(1.25rem, 3vw, 2.25rem);
}

.page-head__title {
  max-width: 24ch;
  font-family: var(--f0);
  font-size: clamp(1.95rem, 4.6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
}

.page-head__lead {
  max-width: 62ch;
  margin-top: 0.85rem;
  color: var(--c3);
  font-size: 1rem;
  line-height: 1.68;
}

.cat-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 3.5vw, 2.5rem);
  align-items: center;
}

.cat-head__media {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: var(--c1);
}

.cat-head__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-head__text {
  min-width: 0;
}

.cat-head__count {
  margin-top: 0.75rem;
  color: var(--c3);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   17. Product detail page (PDP)
   -------------------------------------------------------------------------- */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(1rem, 2.5vw, 1.75rem) clamp(1.75rem, 4vw, 3rem);
}

.pdp__gallery {
  min-width: 0;
}

.pdp__main {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--c1);
}

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

.pdp__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
}

.pdp__thumb {
  display: block;
  width: 62px;
  height: 78px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--c4);
  border-radius: var(--r0);
  background: var(--c1);
  cursor: pointer;
  transition: border-color 0.2s ease;
}

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

.pdp__thumb:hover {
  border-color: var(--c2);
}

.pdp__thumb.is-active {
  border-color: var(--c5);
  box-shadow: 0 0 0 1px var(--c5);
}

.pdp__info {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.pdp__cat {
  color: var(--c3);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pdp__cat a {
  color: var(--c3);
}

.pdp__cat a:hover {
  color: var(--c25);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.pdp__title {
  font-family: var(--f0);
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.pdp__sku {
  color: var(--c3);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.pdp__sku span {
  color: var(--c2);
  letter-spacing: 0.08em;
}

.pdp__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
  padding-top: 0.15rem;
}

.pdp__price .price__now {
  font-size: 1.45rem;
}

.pdp__price .price__was {
  font-size: 0.96rem;
}

.pdp__tax {
  color: var(--c3);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pdp__short {
  max-width: 54ch;
  color: var(--c11);
  font-size: 0.98rem;
  line-height: 1.7;
}

.pdp__stock {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--c8);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.pdp__stock::before {
  content: "";
  display: block;
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: currentColor;
}

.pdp__stock.is-low-stock {
  color: #7A4A1F;
}

.pdp__stock.is-out-of-stock {
  color: var(--c9);
}

/* Variant options */
.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.option {
  min-height: 40px;
  padding: 0.5em 0.95em;
  border: 1px solid var(--c4);
  border-radius: var(--r0);
  background: transparent;
  color: var(--c2);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}

.option:hover {
  border-color: var(--c2);
}

.option.is-active,
.option[aria-pressed="true"] {
  border-color: var(--c5);
  background: var(--c5);
  color: var(--c0);
}

.pdp__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.qty {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: stretch;
  border: 1px solid var(--c4);
  border-radius: var(--r0);
  background: var(--c0);
}

.qty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c2);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.qty__btn:hover {
  background: var(--c1);
}

.qty__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty__btn:disabled:hover {
  background: transparent;
}

.qty__input {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-inline: 1px solid var(--c4);
  background: transparent;
  color: var(--c2);
  font-size: 0.9rem;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

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

.pdp__add {
  flex: 1 1 12rem;
  min-width: 0;
}

.pdp__feedback {
  min-height: 1.3em;
  color: var(--c8);
  font-size: 0.84rem;
  line-height: 1.5;
}

.pdp__feedback.is-error {
  color: var(--c9);
}

.pdp__feedback.is-ok {
  color: var(--c8);
}

.pdp__notes {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.25rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--c4);
  list-style: none;
  color: var(--c3);
  font-size: 0.8rem;
  line-height: 1.55;
}

.pdp__notes li {
  position: relative;
  padding-left: 1.1rem;
}

.pdp__notes li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--c7);
}

/* Details / accordion */
.pdp__details {
  margin-top: 0.5rem;
  border-top: 1px solid var(--c4);
}

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

.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  list-style: none;
  color: var(--c2);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
  cursor: pointer;
}

.accordion__summary::-webkit-details-marker {
  display: none;
}

.accordion__summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--c25);
  font-family: var(--f1);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

.accordion[open] > .accordion__summary::after {
  content: "−";
}

.accordion__summary:hover {
  color: var(--c25);
}

.accordion__body {
  padding-bottom: 1.5rem;
}

/* Specs table */
.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.specs tr {
  border-bottom: 1px solid var(--c4);
}

.specs tr:last-child {
  border-bottom: 0;
}

.specs th {
  width: 42%;
  padding: 0.65rem 1.25rem 0.65rem 0;
  color: var(--c3);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  vertical-align: top;
}

.specs td {
  padding: 0.65rem 0;
  vertical-align: top;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   18. Cart
   -------------------------------------------------------------------------- */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 2.5rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.cart-main {
  min-width: 0;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--c4);
  background: var(--c1);
}

.cart-empty strong {
  font-family: var(--f0);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
}

.cart-empty span {
  color: var(--c3);
  font-size: 0.92rem;
}

.cart-empty .btn {
  margin-top: 0.6rem;
}

.cart-items {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--c4);
}

.cart-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  grid-template-areas:
    "media body remove"
    "media qty total";
  gap: 0.4rem 0.85rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--c4);
}

.cart-row__media {
  grid-area: media;
}

.cart-row__img,
.cart-row__media img {
  width: 84px;
  height: 105px;
  object-fit: cover;
  background: var(--c1);
}

.cart-row__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  grid-area: body;
  min-width: 0;
}

.cart-row__title {
  color: var(--c2);
  font-family: var(--f0);
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.cart-row__title:hover {
  color: var(--c25);
}

.cart-row__variant {
  color: var(--c3);
  font-size: 0.78rem;
  line-height: 1.45;
}

.cart-row__price {
  color: var(--c3);
  font-size: 0.78rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.cart-row__qty {
  display: inline-flex;
  align-items: stretch;
  align-self: center;
  grid-area: qty;
  width: max-content;
  border: 1px solid var(--c4);
  border-radius: var(--r0);
  background: var(--c0);
}

.cart-row__qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c2);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.cart-row__qty-btn:hover {
  background: var(--c1);
}

.cart-row__qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cart-row__qty-btn:disabled:hover {
  background: transparent;
}

.cart-row__qty-input {
  width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-inline: 1px solid var(--c4);
  background: transparent;
  color: var(--c2);
  font-size: 0.85rem;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.cart-row__qty-input::-webkit-outer-spin-button,
.cart-row__qty-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

.cart-row__total {
  align-self: center;
  grid-area: total;
  color: var(--c2);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cart-row__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-area: remove;
  justify-self: end;
  align-self: start;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--c3);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.cart-row__remove:hover {
  border-color: var(--c4);
  background: var(--c1);
  color: var(--c9);
}

.cart-continue {
  margin-top: 1.4rem;
}

.cart-summary {
  align-self: start;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  background: var(--c1);
}

.cart-summary__title {
  font-family: var(--f0);
  font-size: 1.25rem;
  line-height: 1.2;
}

.cart-summary__hint {
  min-height: 1.3em;
  margin-top: 0.6rem;
  color: var(--c8);
  font-size: 0.8rem;
  line-height: 1.5;
}

.cart-summary__note {
  margin-top: 0.9rem;
  color: var(--c3);
  font-size: 0.78rem;
  line-height: 1.6;
}

.cart-summary__assurances {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 1.1rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--c4);
  list-style: none;
  color: var(--c3);
  font-size: 0.78rem;
  line-height: 1.55;
}

.cart-summary__assurances li {
  position: relative;
  padding-left: 1.05rem;
}

.cart-summary__assurances li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--c7);
}

.cart-summary .btn {
  margin-top: 1.15rem;
}

/* Summary definitions (shared cart / checkout / confirm) */
.summary {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: var(--c3);
  font-size: 0.9rem;
  line-height: 1.5;
}

.summary__row dt {
  margin: 0;
}

.summary__row dd {
  margin: 0;
  color: var(--c2);
  text-align: right;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.summary__row--total {
  margin-top: 0.55rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--c4);
  color: var(--c2);
  font-size: 1.05rem;
  font-weight: 500;
}

.summary__row--total dt {
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   19. Checkout
   -------------------------------------------------------------------------- */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 2.5rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Legend renders as a normal heading with its own hairline; a fieldset border
   would otherwise cut through the text. */
.fieldset__legend {
  display: block;
  width: 100%;
  padding: 0 0 0.55rem;
  margin-bottom: 1.05rem;
  border-bottom: 1px solid var(--c4);
  font-family: var(--f0);
  font-size: 1.12rem;
  line-height: 1.25;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  margin-bottom: 1rem;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 1rem;
}

.field-row > .field:last-child {
  margin-bottom: 1rem;
}

.field__label {
  color: var(--c3);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.field__input {
  width: 100%;
  min-height: 46px;
  max-width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--c4);
  border-radius: var(--r0);
  background: var(--c0);
  color: var(--c2);
  font-family: var(--f1);
  font-size: 0.95rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field__input::placeholder {
  color: var(--c3);
  opacity: 1;
}

.field__input:focus {
  border-color: var(--c5);
  box-shadow: inset 0 0 0 1px var(--c5);
}

.field__input--area {
  min-height: 96px;
  resize: vertical;
}

select.field__input {
  padding-right: 1.6rem;
  cursor: pointer;
}

.field--sm {
  max-width: 100%;
}

.field__hint {
  margin-top: 0.6rem;
  color: var(--c3);
  font-size: 0.8rem;
  line-height: 1.55;
}

.field__error,
.field-error {
  color: var(--c9);
  font-size: 0.8rem;
  line-height: 1.5;
}

.field.has-error .field__input,
.field__input[aria-invalid="true"],
input[aria-invalid="true"] {
  border-color: var(--c9);
  background: #FBF1EF;
}

.field.has-error .field__label {
  color: var(--c9);
}

.field.has-error .option-list .option {
  border-color: rgba(160, 50, 43, 0.55);
}

.req {
  color: var(--c25);
}

.option-list--stack {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.6rem;
}

.radio-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--c4);
  border-radius: var(--r0);
  background: var(--c0);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.radio-card:hover {
  border-color: var(--c2);
}

.radio-card input[type="radio"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--c3);
  border-radius: 50%;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.radio-card input[type="radio"]:checked {
  border-color: var(--c5);
  background: radial-gradient(circle at center, var(--c5) 0 4.5px, transparent 5px);
}

.radio-card:has(input[type="radio"]:checked) {
  border-color: var(--c5);
  background: var(--c1);
}

.radio-card:focus-within {
  outline: var(--h1);
  outline-offset: 2px;
}

.radio-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.radio-card__label {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
}

.radio-card__eta {
  color: var(--c3);
  font-size: 0.78rem;
  line-height: 1.45;
}

.radio-card__price {
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cod-box {
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--c7);
  background: var(--c1);
}

.cod-box__title {
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
}

.cod-box__text {
  color: var(--c3);
  font-size: 0.85rem;
  line-height: 1.65;
}

.form-error {
  padding: 0.85rem 1rem;
  border: 1px solid #E3BFBA;
  border-radius: var(--r0);
  background: #F7E5E2;
  color: var(--c9);
  font-size: 0.88rem;
  line-height: 1.55;
}

.checkout-form__legal {
  color: var(--c3);
  font-size: 0.78rem;
  line-height: 1.6;
}

.checkout-form__legal a {
  color: var(--c2);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.checkout-form__legal a:hover {
  color: var(--c25);
}

/* Checkout summary aside */
.checkout-summary {
  align-self: start;
  padding: clamp(1.25rem, 3vw, 1.8rem);
  background: var(--c1);
}

.checkout-summary__title {
  font-family: var(--f0);
  font-size: 1.25rem;
  line-height: 1.2;
}

.checkout-summary .summary {
  margin-top: 1rem;
}

.checkout-summary__empty {
  color: var(--c3);
  font-size: 0.88rem;
  line-height: 1.6;
}

.checkout-summary__empty a {
  color: var(--c25);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.checkout-summary__count {
  margin-top: 0.75rem;
  color: var(--c3);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.checkout-summary__note {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--c4);
  color: var(--c3);
  font-size: 0.76rem;
  line-height: 1.6;
}

/* JS-rendered line items (checkout + confirmation) */
.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.1rem 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--c4);
  font-size: 0.88rem;
  line-height: 1.45;
}

.checkout-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.checkout-item__title {
  grid-column: 1;
  color: var(--c2);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.checkout-item__variant,
.checkout-item__qty {
  grid-column: 1;
  color: var(--c3);
  font-size: 0.8rem;
}

.checkout-item__total {
  grid-row: 1 / span 3;
  grid-column: 2;
  align-self: center;
  color: var(--c2);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.confirm__card .checkout-items {
  margin-top: 1.1rem;
}

/* --------------------------------------------------------------------------
   20. Order confirmation
   -------------------------------------------------------------------------- */
.confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 44rem;
  margin-inline: auto;
  padding-block: clamp(2.25rem, 6vw, 4.5rem);
  text-align: center;
}

.confirm .eyebrow {
  justify-content: center;
}

.confirm__icon {
  display: block;
  width: 62px;
  height: 62px;
  margin-bottom: 1.25rem;
  color: var(--c25);
}

.confirm__icon svg {
  width: 100%;
  height: 100%;
}

.confirm__title {
  max-width: 26ch;
  font-family: var(--f0);
  font-size: clamp(1.75rem, 4.2vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.confirm__lead {
  max-width: 54ch;
  margin-top: 0.9rem;
  color: var(--c3);
  font-size: 0.98rem;
  line-height: 1.7;
}

.confirm__card {
  width: 100%;
  margin-top: 1.75rem;
  padding: clamp(1.15rem, 3vw, 1.85rem);
  border: 1px solid var(--c4);
  background: var(--c1);
  text-align: left;
}

.confirm__next {
  max-width: 56ch;
  margin-top: 1.5rem;
  color: var(--c3);
  font-size: 0.85rem;
  line-height: 1.65;
}

.confirm__next a {
  color: var(--c2);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.confirm__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.confirm--missing {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.confirm--missing .btn {
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   21. Status pills & tags
   -------------------------------------------------------------------------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.32em 0.7em;
  border: 1px solid var(--c4);
  border-radius: 999px;
  background: var(--c0);
  color: var(--c2);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.status-pill::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: currentColor;
}

.status-pill--pending,
.status-pill.is-pending {
  border-color: #E0CFB2;
  background: #F2E8D8;
  color: #6B5433;
}

.status-pill--confirmed,
.status-pill.is-confirmed {
  border-color: #C9D9C6;
  background: #E7EEE3;
  color: #2F5940;
}

.status-pill--processing,
.status-pill.is-processing {
  border-color: #C6D5DE;
  background: #E3EBF0;
  color: #2A4C63;
}

.status-pill--shipped,
.status-pill.is-shipped {
  border-color: #D2C9E4;
  background: #EAE5F3;
  color: #4A3A6B;
}

.status-pill--delivered,
.status-pill.is-delivered,
.status-pill--paid,
.status-pill.is-paid {
  border-color: #BFD6C7;
  background: #DEEBE2;
  color: #245E48;
}

.status-pill--cancelled,
.status-pill.is-cancelled {
  border-color: #DFC3BF;
  background: #F0E4E2;
  color: #8A2F27;
}

.tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.28em 0.5em;
  border-radius: var(--r0);
  background: var(--c2);
  color: var(--c0);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.tag--new {
  background: var(--c5);
  color: var(--c13);
}

.tag--best {
  background: var(--c24);
  color: var(--c2);
}

.tag--excl {
  background: var(--c0);
  color: var(--c25);
  box-shadow: inset 0 0 0 1px var(--c5);
}

.tag--set {
  background: var(--c8);
  color: var(--c0);
}

.tag--soft {
  background: var(--c1);
  color: var(--c2);
  box-shadow: inset 0 0 0 1px var(--c4);
}

/* --------------------------------------------------------------------------
   22. Toast
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 300;
  max-width: min(92vw, 32rem);
  padding: 0.85rem 1.15rem;
  border-radius: var(--r0);
  background: var(--c2);
  color: var(--c0);
  font-size: 0.88rem;
  line-height: 1.45;
  box-shadow: var(--h0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 1rem);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.toast.toast--error,
.toast.is-error {
  background: var(--c9);
  color: #FBF1EF;
}

.toast.toast--success {
  background: var(--c8);
  color: #F2F7F3;
}

/* --------------------------------------------------------------------------
   23. Rich text (static pages, product description)
   -------------------------------------------------------------------------- */
.rte {
  max-width: 72ch;
  color: var(--c2);
  font-size: 1rem;
  line-height: 1.72;
}

.rte > * + * {
  margin-top: 1.05em;
}

.rte h2 {
  margin-top: 1.9em;
  font-family: var(--f0);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.rte h3 {
  margin-top: 1.6em;
  font-family: var(--f0);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.25;
}

.rte h4 {
  margin-top: 1.4em;
  font-family: var(--f1);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.rte ul,
.rte ol {
  padding-left: 1.2em;
}

.rte ul {
  list-style: disc;
}

.rte ol {
  list-style: decimal;
}

.rte li + li {
  margin-top: 0.4em;
}

.rte li::marker {
  color: var(--c3);
}

.rte strong {
  font-weight: 500;
}

.rte a {
  color: var(--c25);
  text-decoration: underline;
  text-decoration-color: var(--c6);
  text-underline-offset: 0.2em;
}

.rte a:hover {
  text-decoration-color: var(--c25);
}

.rte table {
  width: 100%;
  margin-block: 1.5em;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.5;
}

.rte th,
.rte td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--c4);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.rte th {
  background: var(--c1);
  font-weight: 500;
}

.rte hr {
  border: 0;
  border-top: 1px solid var(--c4);
}

/* --------------------------------------------------------------------------
   24. Static content pages
   -------------------------------------------------------------------------- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-block: 0.5rem clamp(1.5rem, 3vw, 2.5rem);
}

.page-body {
  min-width: 0;
}

/* V2 about page: optional editorial figure above the body copy. */
.page-figure {
  margin: 0 0 1.75rem;
}

.page-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r0);
}

.page-aside {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  min-width: 0;
}

.page-aside__figure {
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  background: var(--c1);
}

.page-aside__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-aside__links {
  padding-top: 1.25rem;
  border-top: 1px solid var(--c4);
}

.page-aside__title {
  margin-bottom: 0.75rem;
  font-family: var(--f0);
  font-size: 1.02rem;
  line-height: 1.3;
}

.page-aside__list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  line-height: 1.5;
}

.page-aside__list a {
  color: var(--c2);
  text-decoration: underline;
  text-decoration-color: var(--c4);
  text-underline-offset: 0.2em;
}

.page-aside__list a:hover {
  color: var(--c25);
  text-decoration-color: var(--c25);
}

.page-aside__email {
  margin-top: 1rem;
  color: var(--c3);
  font-size: 0.8rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.page-aside__email span {
  color: var(--c2);
}

.page-updated {
  max-width: 72ch;
  margin-top: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--c4);
  color: var(--c3);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   25. 404
   -------------------------------------------------------------------------- */
.notfound {
  max-width: 52rem;
  margin-inline: auto;
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}

.notfound .eyebrow {
  justify-content: center;
}

.notfound__title {
  max-width: 24ch;
  margin-inline: auto;
  font-family: var(--f0);
  font-size: clamp(1.85rem, 4.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.notfound__lead {
  max-width: 52ch;
  margin: 1rem auto 0;
  color: var(--c3);
  font-size: 0.98rem;
  line-height: 1.7;
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.notfound__cats {
  margin-top: clamp(2rem, 5vw, 3.25rem);
  text-align: left;
}

/* --------------------------------------------------------------------------
   26. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  background: var(--c2);
  color: var(--c13);
  --c3: var(--c14);
  --c4: var(--c15);
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

.site-footer__brand {
  min-width: 0;
}

.site-footer__wordmark {
  font-family: var(--f0);
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.site-footer__about {
  max-width: 34ch;
  margin-top: 0.75rem;
  color: var(--c14);
  font-size: 0.86rem;
  line-height: 1.65;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  line-height: 1.5;
}

.social-list__item {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--c14);
}

.social-list__label {
  color: var(--c13);
  letter-spacing: 0.04em;
}

.social-list__handle {
  color: var(--c14);
}

.site-footer__col {
  min-width: 0;
}

.site-footer__heading {
  margin-bottom: 0.8rem;
  color: var(--c24);
  font-family: var(--f1);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  line-height: 1.5;
}

.site-footer__links a {
  color: var(--c13);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--c0);
  text-decoration-color: var(--c7);
}

.site-footer__text {
  max-width: 30ch;
  margin-bottom: 0.9rem;
  color: var(--c14);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* Newsletter */
.newsletter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
}

.newsletter__input {
  flex: 1 1 12rem;
  min-width: 0;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--c15);
  border-radius: var(--r0);
  background: transparent;
  color: var(--c0);
  font-size: 0.86rem;
}

.newsletter__input::placeholder {
  color: var(--c17);
  opacity: 1;
}

.newsletter__input:focus {
  border-color: var(--c0);
}

.newsletter__button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--c0);
  border-radius: var(--r0);
  background: var(--c0);
  color: var(--c2);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}

.newsletter__button:hover {
  border-color: var(--c7);
  background: var(--c7);
  color: var(--c2);
}

.newsletter__button.is-loading {
  opacity: 0.65;
  cursor: progress;
}

.newsletter__note {
  flex: 1 1 100%;
  min-height: 1.2em;
  color: var(--c14);
  font-size: 0.76rem;
  line-height: 1.5;
}

.newsletter__note.is-error {
  color: #E8A9A2;
}

.newsletter__note.is-success,
.newsletter__note.is-ok {
  color: #A9D3B9;
}

/* Newsletter band on light background */
.newsletter-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.newsletter--band {
  align-content: start;
}

.newsletter--band .newsletter__input {
  border-color: var(--c4);
  background: var(--c0);
  color: var(--c2);
}

.newsletter--band .newsletter__input::placeholder {
  color: var(--c3);
}

.newsletter--band .newsletter__input:focus {
  border-color: var(--c5);
}

.newsletter--band .newsletter__button {
  border-color: var(--c5);
  background: var(--c5);
  color: var(--c13);
}

.newsletter--band .newsletter__button:hover {
  border-color: var(--c10);
  background: var(--c10);
  color: var(--c0);
}

.newsletter--band .newsletter__note {
  color: var(--c3);
}

.newsletter--band .newsletter__note.is-success,
.newsletter--band .newsletter__note.is-ok {
  color: var(--c8);
}

.newsletter--band .newsletter__note.is-error {
  color: var(--c9);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-block: 1.2rem 1.5rem;
  border-top: 1px solid var(--c15);
  color: var(--c14);
  font-size: 0.76rem;
  line-height: 1.6;
}

.site-footer__copy,
.site-footer__legal {
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-footer__legal {
  max-width: 52ch;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.32em 0.65em;
  border: 1px solid var(--c15);
  border-radius: var(--r0);
  color: var(--c13);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   27. Brand block (home)
   -------------------------------------------------------------------------- */
.brand-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.brand-block__media {
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  background: var(--c1);
}

.brand-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-block__text {
  min-width: 0;
}

.brand-block__lead {
  max-width: 52ch;
  margin-top: 0.9rem;
  color: var(--c3);
  font-size: 0.98rem;
  line-height: 1.7;
}

.brand-block__values {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 1.4rem 0 1.6rem;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--c4);
  list-style: none;
}

.brand-block__values li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-block__values strong {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.brand-block__values span {
  color: var(--c3);
  font-size: 0.85rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   28. Motion
   -------------------------------------------------------------------------- */
@keyframes v-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes v-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-5px);
  }
  40% {
    transform: translateX(5px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(3px);
  }
}

.is-shake {
  animation: v-shake 0.32s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .is-shake {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   29. Responsive — 480
   -------------------------------------------------------------------------- */
@media (min-width: 480px) {
  .cart-link__label {
    display: inline;
  }

  .cart-row {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 0.5rem 1rem;
  }

  .cart-row__img,
  .cart-row__media img {
    width: 96px;
    height: 120px;
  }

  .pdp__thumb {
    width: 68px;
    height: 85px;
  }
}

@media (max-width: 767px) {
  /* Two-up product grid on phones/tablets: stack price above a full-width
     button so every card in a row keeps the same rhythm. */
  .product-card__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .product-card__add {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   30. Responsive — 768
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  :root {
    --s3: 72px;
  }

  .logo__mark img {
    width: 32px;
    height: 32px;
  }

  .logo__word {
    font-size: 1.42rem;
  }

  .search {
    display: flex;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__title {
    font-size: clamp(2.8rem, 6.6vw, 4.4rem);
  }

  .usp__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2.5rem;
    padding-block: 1.75rem;
  }

  .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cat-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 2.75rem);
  }

  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-block {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .newsletter-band {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2.5rem;
  }

  .site-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 2.5rem;
  }

  .site-footer__brand,
  .site-footer__col--news {
    grid-column: span 2;
  }

  .site-footer__col--news .site-footer__text {
    max-width: 46ch;
  }

  .site-footer__col--news .newsletter {
    max-width: 34rem;
  }
}

/* --------------------------------------------------------------------------
   31. Responsive — 1024
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  :root {
    --s3: 76px;
  }

  .site-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "logo spacer actions"
      "nav nav nav";
    align-items: center;
    gap: 0.15rem 1.25rem;
    padding-block: 0.5rem 0.35rem;
  }

  .logo {
    grid-area: logo;
  }

  .menu-toggle {
    display: none;
  }

  .nav-primary {
    display: block;
    grid-area: nav;
    min-width: 0;
    padding-top: 0.4rem;
    border-top: 1px solid var(--c4);
  }

  .nav-primary__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.1rem clamp(0.55rem, 1.1vw, 1.05rem);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav-primary__item {
    min-width: 0;
  }

  .nav-primary__link {
    display: inline-block;
    padding-block: 0.28rem;
    border-bottom: 1px solid transparent;
    color: var(--c2);
    font-size: 0.69rem;
    letter-spacing: 0.055em;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
  }

  .nav-primary__link:hover {
    border-bottom-color: var(--c5);
    color: var(--c25);
  }

  .site-header__actions {
    grid-area: actions;
    justify-self: end;
    margin-left: 0;
  }

  .search__input {
    width: 13rem;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: clamp(2rem, 4.5vw, 3.75rem);
  }

  .hero {
    padding-block: clamp(2rem, 4vw, 3.25rem) clamp(2.5rem, 5vw, 4.5rem);
  }

  .usp__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 2.75rem;
    padding-block: 2rem;
  }

  .cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-toolbar {
    gap: 0.9rem;
  }

  .pdp {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }

  .pdp__gallery {
    position: sticky;
    top: calc(var(--s3) + 1.25rem);
  }

  .pdp__info {
    padding-top: 0.25rem;
  }

  .cart-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: clamp(2rem, 4vw, 3.25rem);
  }

  .cart-row {
    grid-template-columns: 100px minmax(0, 1fr) auto auto auto;
    grid-template-areas: "media body qty total remove";
    align-items: center;
    gap: 1.1rem;
  }

  .cart-row__img,
  .cart-row__media img {
    width: 100px;
    height: 125px;
  }

  .cart-row__qty,
  .cart-row__total {
    align-self: center;
  }

  .cart-row__remove {
    align-self: center;
    justify-self: end;
  }

  .cart-summary,
  .checkout-summary {
    position: sticky;
    top: calc(var(--s3) + 1.25rem);
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 310px);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
  }

  .page-aside {
    position: sticky;
    top: calc(var(--s3) + 1.5rem);
  }

  .site-footer__top {
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.85fr)) minmax(0, 1.5fr);
    gap: 2rem 2.25rem;
  }

  .site-footer__brand,
  .site-footer__col--news {
    grid-column: auto;
  }
}

/* --------------------------------------------------------------------------
   32. Responsive — 1440
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* --------------------------------------------------------------------------
   33. Narrow / tall safety nets
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  /* When the promo items wrap onto several lines the · separators read as
     stray bullets, so drop them and let the line breaks do the work. */
  .promo-bar__item + .promo-bar__item::before {
    display: none;
  }

  .promo-bar__list {
    gap: 0.15rem 1.1rem;
  }
}

@media (max-width: 359px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-link__label,
  .promo-bar__item:nth-child(n + 3) {
    display: none;
  }

  .search__input {
    width: 11rem;
  }
}

/* Long unbroken strings (emails, SKUs, order numbers) must never push the page. */
.page-aside__email,
.checkout-summary,
.confirm__card,
.summary__row dd,
.site-footer__copy,
.site-footer__legal,
.site-footer__company,
.admin-note,
.rte p,
.rte li {
  overflow-wrap: anywhere;
}

/* ==========================================================================
   V2 — cloak-page additions
   ========================================================================== */

/* --- Footer company identity line ---------------------------------------
   One fine-print line: company — address — SIRET — TVA — hosting — ©.
   It may wrap; it always breaks rather than pushing the page wider. */
.site-footer__company {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 82ch;
  margin: 0;
  color: var(--c14);
  font-size: 0.72rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.site-footer__company strong {
  color: var(--c13);
  font-weight: 500;
}

.site-footer__top .site-footer__company {
  margin-top: 0.85rem;
}

/* --- Payment text badges (footer + checkout payment block) ---------------
   Small outlined capsules, purely typographic (no logos, no external URLs). */
.payment-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.26em 0.7em;
  border: 1px solid var(--c4);
  border-radius: 999px;
  background: transparent;
  color: var(--c3);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.5;
  text-transform: none;
  white-space: nowrap;
}

.site-footer .payment-badge {
  border-color: var(--c15);
  color: var(--c13);
}

.site-footer__bottom .payment-badges {
  margin-left: auto;
}

.fieldset--payment .payment-badges,
.cod-box .payment-badges {
  margin-top: 0.9rem;
}

.payment-badges + .payment-badges {
  margin-top: 0.5rem;
}

/* --- Social links are real (internal) anchors in V2 --------------------- */
.social-list a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  color: var(--c13);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.social-list a:hover {
  border-bottom-color: var(--c7);
  color: var(--c0);
}

.social-list a .social-list__handle {
  color: var(--c14);
}

.social-list a:hover .social-list__handle {
  color: var(--c0);
}

/* --- Category head without a cover image --------------------------------
   V2 category pages are text-only: keep a single column instead of the old
   two-column media/text grid, with the title doing the work. */
.cat-head {
  grid-template-columns: minmax(0, 1fr);
}

.cat-head__text {
  max-width: 72ch;
}

.cat-head:not(:has(.cat-head__media)) .cat-head__text {
  padding-block: clamp(0.5rem, 2vw, 1.25rem);
}

.cat-head:not(:has(.cat-head__media)) .page-head__title {
  max-width: 30ch;
}

@media (min-width: 768px) {
  .cat-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .cat-head:has(.cat-head__media) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .cat-head:not(:has(.cat-head__media)) {
    padding-block: clamp(1.75rem, 4vw, 2.75rem) clamp(1.75rem, 4vw, 2.5rem);
  }
}

/* --- Inline checkout confirmation (same page as checkout) ---------------
   Mirrors the .confirm landing page, but sits in the checkout container. */
.checkout-confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--c4);
  background: var(--c1);
  text-align: center;
}

.checkout-confirm .eyebrow {
  justify-content: center;
}

.checkout-confirm h1,
.checkout-confirm h2 {
  max-width: 26ch;
  font-family: var(--f0);
  font-size: clamp(1.7rem, 3.8vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.checkout-confirm > p {
  max-width: 56ch;
  color: var(--c3);
  font-size: 0.95rem;
  line-height: 1.7;
}

.checkout-confirm .summary,
.checkout-confirm .checkout-items {
  width: 100%;
  text-align: left;
}

.checkout-confirm .checkout-items {
  margin-top: 0.25rem;
}

.checkout-confirm .confirm__icon {
  margin-bottom: 0.25rem;
}

.checkout-confirm .btn {
  margin-top: 0.25rem;
}

.checkout-confirm .confirm {
  max-width: none;
  padding-block: 0;
}

.checkout-confirm .confirm__actions {
  margin-top: 0.75rem;
}

/* Keep the confirmation view readable if it reuses .confirm__card/summary. */
.checkout-confirm .confirm__card {
  text-align: left;
}

@media (max-width: 767px) {
  .checkout-confirm {
    padding: 1.25rem 1rem;
  }
}

/* ==========================================================================
   V2.1 — exact template hooks (footer rows, panel badges, PDP hint,
   inline checkout confirmation, seed-ordered home sections)
   ========================================================================== */

/* --- Header logo: inline SVG mark --------------------------------------- */
.site-header .logo__mark svg,
.logo__mark svg {
  width: 34px;
  height: 34px;
  display: block;
}

/* --- Footer: middle payment-badge row ----------------------------------- */
.site-footer__middle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding-block: 1.05rem;
  border-top: 1px solid var(--c15);
}

.site-footer__middle .payment-badges {
  justify-content: flex-start;
  gap: 0.45rem;
}

.site-footer__middle .payment-badge {
  border-color: var(--c15);
  color: var(--c13);
}

/* --- Footer: company line + legal line ---------------------------------- */
.site-footer__bottom {
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.25rem 1.6rem;
}

.site-footer__company {
  flex: 1 1 30rem;
  max-width: 82ch;
  font-size: 0.72rem;
  line-height: 1.7;
}

.site-footer__bottom .site-footer__legal {
  flex: 0 1 auto;
  max-width: 38ch;
  text-align: right;
  font-size: 0.72rem;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .site-footer__company {
    flex-basis: 100%;
  }

  .site-footer__bottom .site-footer__legal {
    max-width: none;
    text-align: left;
  }
}

/* --- Social links (anchors) --------------------------------------------- */
.social-list__link,
.social-list a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  color: var(--c13);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.social-list__link:hover,
.social-list a:hover {
  border-bottom-color: var(--c7);
  color: var(--c0);
}

.social-list__link .social-list__handle,
.social-list a .social-list__handle {
  color: var(--c14);
}

.social-list__link:hover .social-list__handle,
.social-list a:hover .social-list__handle {
  color: var(--c0);
}

/* --- PDP variant hint --------------------------------------------------- */
.pdp__hint {
  display: block;
  margin-top: 0.45rem;
  color: var(--c3);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* --- Payment badges inside panels (cart / checkout summaries) ----------- */
.payment-badges--panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0 0;
  padding: 0.95rem 0 0;
  border-top: 1px solid var(--c4);
}

.payment-badges--panel .payment-badge {
  padding: 0.2em 0.58em;
  border-color: var(--c4);
  color: var(--c3);
  font-size: 0.62rem;
}

@media (max-width: 480px) {
  .payment-badge {
    font-size: 0.62rem;
    padding: 0.24em 0.62em;
  }

  .payment-badges {
    gap: 0.32rem;
  }
}

/* --- Inline checkout confirmation --------------------------------------- */
.checkout-confirm {
  max-width: 44rem;
  margin: clamp(1.25rem, 3vw, 2.25rem) auto clamp(2.5rem, 6vw, 4.5rem);
  padding: clamp(1.35rem, 3.5vw, 2.5rem);
  border: 1px solid var(--c4);
  background: var(--c1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.checkout-confirm .confirm__icon {
  width: 56px;
  height: 56px;
}

.checkout-confirm .confirm__title {
  max-width: 24ch;
}

.checkout-confirm .confirm__lead {
  max-width: 52ch;
}

.checkout-confirm .confirm__card {
  width: 100%;
  margin-top: 0.75rem;
  text-align: left;
}

.checkout-confirm .confirm__next {
  max-width: 52ch;
  margin-top: 0.25rem;
}

.checkout-confirm .confirm__actions {
  margin-top: 0.75rem;
}

.checkout-confirm .confirm__missing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-block: 1.5rem;
  text-align: center;
}

/* --- Home sections: stable rhythm whatever the seed order -------------- */
.hero + .section {
  padding-top: clamp(1.75rem, 3.5vw, 3rem);
}

.section + .section {
  padding-top: var(--s2);
}

.section--cats {
  border-top: 1px solid var(--c4);
}

/* ==========================================================================
   V2.2 — derived tokens follow the seed palette (--c0..--c9 are injected by
   the generator per site). Muted / dark-surface / alpha tokens are computed
   from the base palette so every seed keeps the same contrast relationships.
   ========================================================================== */

:root {
  /* fallbacks for engines without color-mix() */
  --c15: #3B342E; /* hairline on dark surfaces */
  --c16: #D8C9B7; /* hairline on alt paper */
  --c17: #A99C8F; /* placeholder on dark surfaces */
  --c18: rgba(31, 27, 24, 0.12); /* elevation colour */
  --c19: rgba(31, 27, 24, 0.25); /* ring colour */
  --c20: rgba(247, 242, 236, 0.35); /* ring on accent */
  --c21: rgba(247, 242, 236, 0.96); /* sticky header */
  --c22: rgba(247, 242, 236, 0.82); /* out-of-stock veil */
  --c23: rgba(247, 242, 236, 0.72); /* count on dark chip */
  --c24: #C6A98B; /* gold for small text on dark */
  --c25: #572631; /* accent for small text on light surfaces */
}

@supports (color: color-mix(in srgb, #000 10%, #fff)) {
  :root {
    --c10: color-mix(in srgb, var(--c5) 82%, #000);
    --c11: color-mix(in srgb, var(--c2) 78%, var(--c0));
    --c12: color-mix(in srgb, var(--c3) 72%, var(--c2));
    --c13: color-mix(in srgb, var(--c0) 90%, #FFF);
    --c14: color-mix(in srgb, var(--c0) 74%, var(--c2));
    --c15: color-mix(in srgb, var(--c2) 74%, var(--c0));
    --c16: color-mix(in srgb, var(--c4) 88%, var(--c2));
    --c17: color-mix(in srgb, var(--c0) 62%, var(--c2));
    --c18: color-mix(in srgb, var(--c2) 12%, transparent);
    --c19: color-mix(in srgb, var(--c2) 25%, transparent);
    --c20: color-mix(in srgb, var(--c0) 35%, transparent);
    --c21: color-mix(in srgb, var(--c0) 96%, transparent);
    --c22: color-mix(in srgb, var(--c0) 82%, transparent);
    --c23: color-mix(in srgb, var(--c0) 72%, transparent);
    --c24: color-mix(in srgb, var(--c7) 62%, var(--c0));
    --c25: color-mix(in srgb, var(--c5) 72%, var(--c2));
  }
}
