/* ============================================================
   Jeujouethique Solderie — warm toy-shop theme
   Shared stylesheet: home, collection, product detail
   ============================================================ */

:root {
  --paper: #FFF7EC;
  --paper-deep: #F8ECDA;
  --card: #FFFDF8;
  --ink: #2B2118;
  --muted: #6A5B4C;
  --accent: #D9541E;
  --accent-deep: #B33E0E;
  --forest: #23453A;
  --sun: #F2B33D;
  --clay: #EAD7BF;
  --line: #E0CFB8;
  --header-h: 72px;
  --radius: 22px;
  --font-heading: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body: "Nunito Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  overflow-wrap: break-word;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-wrap: balance;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

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

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.shell {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 48px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.eyebrow--rule::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--accent-deep);
  color: var(--paper);
  box-shadow: 0 10px 24px rgba(179, 62, 14, 0.18);
}

.btn--primary:hover {
  background: var(--ink);
  box-shadow: 0 14px 28px rgba(43, 33, 24, 0.22);
}

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

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1.5px solid currentColor;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s ease, gap 0.2s ease;
}

.text-link:hover { color: var(--accent-deep); gap: 12px; }

.text-link span { transition: transform 0.2s ease; }
.text-link:hover span { transform: translateX(3px); }

.text-btn {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  padding: 2px 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.text-btn:hover { color: var(--accent-deep); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 247, 236, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: none;
}

.brand__mark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 2px;
  width: 28px;
  height: 28px;
  padding: 3px;
  border-radius: 8px;
  background: var(--forest);
  flex: none;
}

.brand__mark i {
  display: block;
  border-radius: 1.5px;
  background: var(--paper);
}

.brand__mark i:nth-child(1) { height: 9px; background: var(--sun); }
.brand__mark i:nth-child(2) { height: 15px; }
.brand__mark i:nth-child(3) { height: 20px; background: var(--accent); }

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-heading);
  font-size: clamp(0.88rem, 1.4vw, 1.12rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand__sub {
  margin-top: 3px;
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  margin-left: auto;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.9vw, 28px);
}

.site-nav__list a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 0.84rem;
  font-weight: 700;
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.site-nav__list a:hover::after { transform: scaleX(1); }

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 17px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav__cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 15px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.menu-btn__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
}

.menu-btn__bars i {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.site-header.is-open .menu-btn__bars i:first-child { transform: translateY(3px) rotate(45deg); }
.site-header.is-open .menu-btn__bars i:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(38px, 6vw, 82px) clamp(52px, 7vw, 96px);
  background:
    radial-gradient(900px 480px at 88% -12%, #F9E3CB 0%, rgba(249, 227, 203, 0) 66%),
    var(--paper);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}

.hero__copy { max-width: 660px; }

.hero__title {
  margin-bottom: 22px;
  font-size: clamp(3.1rem, 6.6vw, 6.1rem);
  line-height: 0.93;
  letter-spacing: -0.045em;
}

.hero__title em {
  position: relative;
  font-style: italic;
  color: var(--accent);
  white-space: nowrap;
}

.hero__title em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 0.04em;
  height: 0.08em;
  border-radius: 999px;
  background: var(--sun);
  z-index: -1;
}

.hero__lede {
  max-width: 43ch;
  margin-bottom: 30px;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.hero__fine {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__fine span { color: var(--accent); padding-inline: 3px; }

/* Toy chest illustration */

.toybox {
  display: block;
  width: 100%;
  max-width: 560px;
  justify-self: end;
  color: var(--paper);
}

.toybox__panel {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  border-radius: 34px 34px 60px 34px;
  background: var(--forest);
  overflow: hidden;
  box-shadow: 0 32px 60px rgba(35, 69, 58, 0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.toybox:hover .toybox__panel {
  transform: translateY(-6px);
  box-shadow: 0 40px 70px rgba(35, 69, 58, 0.28);
}

.toybox__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 247, 236, 0.16) 1.2px, transparent 1.2px);
  background-size: 20px 20px;
  opacity: 0.55;
}

.toybox__sun {
  position: absolute;
  top: -58px;
  right: -48px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--sun);
  opacity: 0.92;
}

.toybox__tag {
  position: absolute;
  top: 26px;
  left: 26px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.25;
  transform: rotate(-2deg);
}

.toybox__tag b {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent-deep);
}

.toybox__blocks {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  transform: translate(-52%, -48%);
}

.tblock {
  display: grid;
  place-items: center;
  width: clamp(58px, 8.4vw, 92px);
  height: clamp(58px, 8.4vw, 92px);
  border-radius: 13px;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.18);
}

.tblock--1 { background: var(--paper); transform: translateY(-18px) rotate(-5deg); }
.tblock--2 { background: var(--sun); transform: translateY(4px) rotate(3deg); }
.tblock--3 { background: var(--accent); color: var(--paper); transform: translateY(-10px) rotate(-2deg); }
.tblock--4 { background: #CFE0DA; transform: translateY(8px) rotate(4deg); }

.toybox__ball {
  position: absolute;
  right: 34px;
  bottom: 60px;
  width: clamp(64px, 9vw, 100px);
  height: clamp(64px, 9vw, 100px);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, var(--paper) 0deg 22deg, var(--sun) 22deg 44deg);
  box-shadow: inset -10px -14px 22px rgba(43, 33, 24, 0.28), 0 12px 0 rgba(0, 0, 0, 0.14);
}

.toybox__arch {
  position: absolute;
  left: 28px;
  bottom: 34px;
  width: clamp(62px, 8vw, 96px);
  height: clamp(52px, 7vw, 82px);
  border: 12px solid rgba(255, 247, 236, 0.42);
  border-bottom: 0;
  border-radius: 90px 90px 0 0;
}

.toybox__open {
  position: absolute;
  left: 30px;
  bottom: 26px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.toybox__open b { color: var(--sun); font-size: 1rem; }

/* ---------- Slogan band ---------- */

.promises {
  background: var(--forest);
  color: var(--paper);
}

.promises__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding-block: 26px;
}

.promises__list li {
  padding: 4px clamp(16px, 2.6vw, 34px);
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.5vw, 1.32rem);
  font-style: italic;
  line-height: 1.3;
  border-left: 1px solid rgba(255, 247, 236, 0.22);
}

.promises__list li:first-child { border-left: 0; padding-left: 0; }

/* ---------- Section heads ---------- */

.drawers,
.shelf,
.story {
  padding-block: clamp(64px, 9vw, 118px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  align-items: end;
  gap: 28px;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.section-head--row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.section-head h2 {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 0.98;
}

.section-head__note {
  max-width: 380px;
  justify-self: end;
  padding-bottom: 6px;
  font-size: 0.94rem;
  color: var(--muted);
}

.section-head--row .text-link { margin-bottom: 8px; }

/* ---------- Category drawers ---------- */

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 165px;
  gap: 14px;
  counter-reset: drawer;
}

.drawer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  counter-increment: drawer;
}

.drawer::before {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 22px solid rgba(43, 33, 24, 0.07);
  pointer-events: none;
}

.drawer:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(43, 33, 24, 0.12);
}

.drawer:nth-child(1) {
  grid-column: span 6;
  grid-row: span 2;
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper);
}
.drawer:nth-child(2) { grid-column: span 3; background: #F5D9C8; }
.drawer:nth-child(3) { grid-column: span 3; background: var(--sun); }
.drawer:nth-child(4) { grid-column: span 3; background: #D8E4D8; }
.drawer:nth-child(5) { grid-column: span 3; background: var(--clay); }
.drawer:nth-child(6) { grid-column: span 6; background: var(--accent); border-color: var(--accent); color: var(--paper); }
.drawer:nth-child(7) { grid-column: span 6; background: #CBDCD6; }

.drawer:nth-child(1)::before {
  width: 300px; height: 300px;
  right: -70px; bottom: -120px;
  border-width: 40px;
  border-color: rgba(255, 247, 236, 0.1);
}
.drawer:nth-child(3)::before { border-color: rgba(43, 33, 24, 0.1); }
.drawer:nth-child(6)::before { border-color: rgba(255, 247, 236, 0.14); }

.drawer__num {
  position: relative;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  opacity: 0.7;
}

.drawer__num::before { content: counter(drawer, decimal-leading-zero); }

.drawer__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer__name {
  max-width: 15ch;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.3vw, 2.05rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.drawer:nth-child(1) .drawer__name {
  max-width: 12ch;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
}

.drawer__cue {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.82;
}

.drawer__cue span { transition: transform 0.2s ease; }
.drawer:hover .drawer__cue span { transform: translateX(4px); }

.drawers__all { margin-top: 26px; }

/* ---------- Product grid & cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 34px) clamp(14px, 2vw, 26px);
}

.product-grid > * { min-width: 0; }

.product-card { min-width: 0; }

.product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 12px;
}

.product-card__media {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: #F3E6D5;
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.product-card__link:hover .product-card__media img { transform: scale(1.045); }

.product-card__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  padding-bottom: 26%;
  background: var(--paper-deep);
}

.product-card__fallback i {
  display: block;
  width: 14%;
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--clay);
}
.product-card__fallback i:nth-child(2) { height: 28%; background: var(--sun); }
.product-card__fallback i:nth-child(3) { height: 38%; background: var(--accent); }

.product-card__meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.product-card__title {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  transition: color 0.2s ease;
}

.product-card__link:hover .product-card__title { color: var(--accent-deep); }

.product-card__price {
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  padding-top: 1px;
}

.product-card__cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-card__link:hover .product-card__cue,
.product-card__link:focus-visible .product-card__cue {
  opacity: 1;
  transform: none;
}

.product-card__cue span { font-size: 0.9rem; }

/* ---------- Story ---------- */

.story { background: var(--paper); border-top: 1px solid var(--line); }

.story__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: clamp(36px, 6vw, 88px);
}

.story__copy { max-width: 600px; }

.story__title {
  margin-bottom: 24px;
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  line-height: 0.98;
}

.story__title em { font-style: italic; color: var(--accent); }

.story__lede {
  max-width: 50ch;
  margin-bottom: 16px;
  color: var(--muted);
}

.story__copy .text-link { margin-top: 14px; }

.story__panel {
  padding: clamp(26px, 3.4vw, 42px);
  border-radius: 28px;
  background: var(--forest);
  color: var(--paper);
}

.story__panel-title {
  margin-bottom: 18px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sun);
}

.stats li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 247, 236, 0.16);
}

.stat__num {
  flex: none;
  min-width: 76px;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
  line-height: 1;
  color: var(--sun);
}

.stat__label {
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(255, 247, 236, 0.82);
}

.story__panel-note {
  margin-top: 20px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 247, 236, 0.68);
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  background: var(--forest);
  color: var(--paper);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 72px);
  padding-block: clamp(48px, 7vw, 84px) clamp(34px, 4vw, 54px);
}

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

.footer-wordmark {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 12ch;
}

.footer-wordmark:hover { color: var(--sun); }

.footer-blurb {
  max-width: 38ch;
  margin-top: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 247, 236, 0.7);
}

.footer-meta {
  margin-top: 18px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sun);
}

.footer-heading {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 247, 236, 0.55);
}

.footer-list li { margin-bottom: 2px; }

.footer-list a {
  display: inline-block;
  padding: 4px 0;
  font-size: 0.88rem;
  color: rgba(255, 247, 236, 0.86);
  transition: color 0.2s ease;
}

.footer-list a:hover { color: var(--sun); }

.footer-help { min-width: 0; }

.policy { border-top: 1px solid rgba(255, 247, 236, 0.16); }
.policy:last-child { border-bottom: 1px solid rgba(255, 247, 236, 0.16); }

.policy summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  font-size: 0.86rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.policy__icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--sun);
}

.policy__icon::before,
.policy__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.policy__icon::after { transform: rotate(90deg); }
.policy[open] .policy__icon::after { transform: rotate(0deg); }

.policy__body {
  padding: 0 20px 15px 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255, 247, 236, 0.7);
}

.policy__body p { margin: 0; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 22px 30px;
  border-top: 1px solid rgba(255, 247, 236, 0.16);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 247, 236, 0.6);
}

.footer-bottom__note {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--sun);
}

/* ---------- Breadcrumbs ---------- */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 22px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--accent-deep); }
.crumbs span[aria-current="page"] {
  max-width: 60ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}

/* ---------- Product detail ---------- */

.pdp { padding-block: clamp(26px, 4vw, 52px) clamp(56px, 8vw, 100px); }

.pdp__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: start;
  gap: clamp(32px, 5vw, 78px);
}

.pdp__media { min-width: 0; }

.pdp__frame {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 38%, #FFFDF8 0%, #F6E7D4 62%, #F0DEC8 100%);
  overflow: hidden;
}

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

.pdp__fallback {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 0 22% 22%;
}

.pdp__fallback i {
  display: block;
  flex: 1;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--clay);
}
.pdp__fallback i:nth-child(2) { height: 34%; background: var(--sun); }
.pdp__fallback i:nth-child(3) { height: 48%; background: var(--accent); }

.pdp__media-note {
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.pdp__info {
  min-width: 0;
  padding-top: clamp(0px, 1vw, 14px);
}

.pdp__title {
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 3.8vw, 3.6rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.pdp__price {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  font-weight: 600;
  color: var(--accent-deep);
}

.pdp__lede {
  max-width: 46ch;
  margin-top: 14px;
  font-size: 1.02rem;
  color: var(--muted);
}

.pdp__buy {
  margin-block: 26px 24px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.btn--buy {
  width: 100%;
  min-height: 58px;
  font-size: 1rem;
}

.pdp__buy-note {
  margin-top: 11px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.pdp__buy-note strong { color: var(--ink); }

.assurances li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}

.assurances__k {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.assurances__v { font-weight: 700; }

.pdp__policy { margin-top: 30px; }

.pdp__policy-title {
  margin-bottom: 6px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.policy--light { border-color: var(--line); }
.policy--light:last-child { border-bottom-color: var(--line); }
.policy--light summary { color: var(--ink); }
.policy--light .policy__icon { color: var(--accent); }
.policy--light .policy__body { color: var(--muted); }

/* ---------- PDP more ---------- */

.pdp-more {
  padding-block: clamp(40px, 6vw, 68px);
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pdp-more__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) auto;
  align-items: end;
  gap: 28px;
}

.pdp-more__title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 0.98;
}

.pdp-more__note {
  max-width: 40ch;
  font-size: 0.94rem;
  color: var(--muted);
}

/* ---------- Collection page ---------- */

.coll-head {
  background:
    radial-gradient(760px 320px at 92% -20%, #F7DFC8 0%, rgba(247, 223, 200, 0) 70%),
    var(--paper-deep);
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(30px, 4vw, 48px);
}

.coll-head__row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: end;
  gap: 28px;
  margin-top: clamp(26px, 4vw, 44px);
}

.coll-head__main { min-width: 0; }

.coll-head__title {
  font-size: clamp(2.8rem, 6.2vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.coll-head__lede {
  justify-self: end;
  max-width: 42ch;
  padding-bottom: 6px;
  font-size: 0.96rem;
  color: var(--muted);
}

.coll-body { padding-block: clamp(28px, 4vw, 46px) clamp(40px, 6vw, 70px); }

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  align-items: end;
  gap: 14px 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.toolbar__title {
  grid-column: 1 / -1;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.toolbar__search {
  position: relative;
  min-width: 0;
}

.toolbar__search input {
  width: 100%;
  height: 50px;
  padding: 0 18px 0 44px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.94rem;
  font-weight: 600;
  appearance: none;
}

.toolbar__search input::placeholder { color: var(--muted); opacity: 0.8; }
.toolbar__search input:focus { border-color: var(--accent); }

.search__mark {
  position: absolute;
  left: 17px;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  transform: translateY(-58%);
  pointer-events: none;
}

.search__mark::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 6px;
  height: 2px;
  background: var(--muted);
  transform: rotate(45deg);
}

.toolbar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.chip {
  height: 40px;
  padding: 0 15px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

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

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.toolbar__sort {
  display: flex;
  align-items: center;
  gap: 9px;
}

.toolbar__sort label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.toolbar__sort select {
  height: 44px;
  padding: 0 34px 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.coll-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 14px 22px;
}

.coll-status__count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.empty {
  padding: clamp(44px, 7vw, 76px) 24px;
  border: 1.5px dashed var(--line);
  border-radius: 24px;
  background: var(--card);
  text-align: center;
}

.empty__title {
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.empty__note {
  margin-bottom: 22px;
  font-size: 0.94rem;
  color: var(--muted);
}

/* Pagination */

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(34px, 5vw, 56px);
  min-width: 0;
}

.pager:empty { display: none; }

.pager__pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.pager__btn,
.pager__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.82rem;
  font-weight: 700;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.pager__btn {
  width: 44px;
  padding: 0;
  flex: none;
}

.pager__arrow { padding: 0 17px; }

.pager__btn:hover,
.pager__arrow:hover:not(:disabled) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.pager__btn[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.pager__arrow:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.pager__gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-height: 44px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 36px; }
  .toybox { max-width: 460px; }
  .tblock { width: clamp(54px, 7.4vw, 74px); height: clamp(54px, 7.4vw, 74px); }

  .drawer-grid { grid-auto-rows: 150px; }
  .drawer:nth-child(1) { grid-column: span 6; }
  .drawer:nth-child(2),
  .drawer:nth-child(3),
  .drawer:nth-child(4),
  .drawer:nth-child(5) { grid-column: span 3; }
  .drawer:nth-child(6),
  .drawer:nth-child(7) { grid-column: span 6; }

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

  .story__grid { gap: 40px; }

  .footer-top { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1.1fr); gap: 34px; }

  .pdp__grid { gap: 36px; }
  .pdp__frame { top: calc(var(--header-h) + 16px); }

  .pdp-more__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pdp-more__inner .btn { grid-column: 1 / -1; justify-self: start; }

  .toolbar { grid-template-columns: minmax(0, 1fr) auto; }
  .toolbar__chips { grid-column: 1 / -1; grid-row: 3; }
  .toolbar__sort { grid-column: 2; grid-row: 2; }
}

@media (max-width: 880px) {
  .site-nav { gap: 16px; }
  .site-nav__list { gap: 14px; }
  .site-nav__list a { font-size: 0.78rem; }
  .site-nav__cta { padding: 0 14px; font-size: 0.78rem; }
  .header-bar { gap: 14px; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: 640px; }
  .toybox { justify-self: start; max-width: 520px; }
  .hero__title { font-size: clamp(3rem, 10vw, 5.4rem); }

  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section-head__note { justify-self: start; max-width: 52ch; }
  .section-head--row { grid-template-columns: 1fr; gap: 18px; }
  .section-head--row .text-link { margin-bottom: 0; }

  .story__grid { grid-template-columns: 1fr; gap: 34px; }
  .story__copy { max-width: 640px; }

  .footer-top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-wordmark { max-width: none; }

  .coll-head__row { grid-template-columns: 1fr; gap: 16px; }
  .coll-head__lede { justify-self: start; max-width: 52ch; }

  .pdp__grid { grid-template-columns: 1fr; }
  .pdp__frame { position: static; max-width: 620px; }
  .pdp__media { max-width: 620px; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }

  body { font-size: 16px; }

  .header-bar { gap: 10px; }

  .brand__name { font-size: 0.82rem; }
  .brand__sub { font-size: 0.5rem; letter-spacing: 0.18em; }
  .brand__mark { width: 25px; height: 25px; }

  .menu-btn { display: inline-flex; flex: none; }

  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 55;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin: 0;
    padding: 14px clamp(18px, 5vw, 32px) 30px;
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 28px 40px rgba(43, 33, 24, 0.16);
  }

  .site-header.is-open .site-nav { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav__list a::after {
    content: "→";
    position: static;
    width: auto;
    height: auto;
    background: none;
    transform: none;
    color: var(--accent-deep);
    font-size: 1rem;
  }

  .site-nav__cta {
    justify-content: center;
    min-height: 50px;
    font-size: 0.92rem;
  }

  body.menu-open { overflow: hidden; }

  .hero { padding-top: 28px; }
  .hero__title { font-size: clamp(2.7rem, 12.5vw, 4.6rem); }
  .hero__lede { font-size: 1rem; margin-bottom: 24px; }
  .hero__actions .btn { width: 100%; }
  .hero__fine { font-size: 0.68rem; line-height: 1.7; }
  .toybox { max-width: none; }
  .toybox__panel { aspect-ratio: 1 / 0.94; }

  .promises__list { grid-template-columns: 1fr; padding-block: 16px; }
  .promises__list li {
    padding: 12px 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 247, 236, 0.18);
    font-size: 1.02rem;
  }
  .promises__list li:first-child { border-top: 0; }

  .drawers, .shelf, .story { padding-block: 56px; }

  .drawer-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 10px; }
  .drawer:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    min-height: 138px;
    padding: 18px;
  }
  .drawer:nth-child(1) { min-height: 190px; }
  .drawer:nth-child(1) .drawer__name { font-size: 2.2rem; }
  .drawer__name { font-size: 1.55rem; max-width: 20ch; }

  .product-grid,
  .product-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .product-card__meta { grid-template-columns: 1fr; gap: 2px; }
  .product-card__title { font-size: 0.84rem; min-height: 2.7em; }
  .product-card__price { font-size: 0.8rem; }
  .product-card__cue { display: none; }
  .product-card__media { border-radius: 12px; }

  .story__panel { border-radius: 22px; }
  .stat__num { min-width: 62px; font-size: 1.7rem; }

  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-brand { grid-column: auto; }
  .footer-wordmark { font-size: 2.4rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  .crumbs { padding-top: 16px; font-size: 0.72rem; }
  .crumbs span[aria-current="page"] { max-width: 100%; white-space: normal; }

  .coll-head { padding-bottom: 28px; }
  .coll-head__title { font-size: clamp(2.6rem, 12vw, 4rem); }

  .toolbar { grid-template-columns: 1fr; gap: 12px; }
  .toolbar__chips { grid-column: auto; grid-row: auto; }
  .toolbar__sort { grid-column: auto; grid-row: auto; justify-content: space-between; }
  .toolbar__sort select { flex: 1; min-width: 0; }
  .toolbar__search input { height: 48px; }

  .chip { height: 38px; padding: 0 13px; font-size: 0.74rem; }

  .pdp { padding-top: 20px; }
  .pdp__title { font-size: clamp(1.9rem, 8.4vw, 2.8rem); }
  .pdp__frame { border-radius: 18px; }
  .pdp-more__inner { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .pdp-more__inner .btn { grid-column: auto; justify-self: start; }

  .pager { gap: 7px; margin-top: 34px; }
  .pager__btn { width: 40px; min-height: 40px; }
  .pager__arrow { min-height: 40px; padding: 0 13px; font-size: 0.76rem; }
  .pager__pages { gap: 5px; }
}

@media (max-width: 400px) {
  .brand__sub { display: none; }
  .menu-btn__label { display: none; }
  .menu-btn { padding: 0 13px; }
  .hero__title { font-size: 2.55rem; }
  .toybox__tag { font-size: 0.6rem; padding: 8px 12px; }
  .toybox__blocks { gap: 4px; }
  .tblock { width: 54px; height: 54px; font-size: 1.7rem; }
  .product-grid, .product-grid--home { gap: 20px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .btn:hover,
  .drawer:hover,
  .toybox:hover .toybox__panel { transform: none; }
}
