/* ============================================================================
   WAAECO
   Editorial dinnerware. Handcrafted in Sri Lanka.
   Design direction: Fable Home / Kinfolk editorial
   ============================================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- Design tokens ---------- */
:root {
  /* Palette — bone, cream, ink. Restraint. */
  --bone:        #f4efe6;      /* page background */
  --cream:       #ebe3d3;      /* accent surfaces */
  --paper:       #faf7f2;      /* cards, lighter surfaces */
  --ink:         #1a1613;      /* headings, primary text */
  --ink-soft:    #4a413a;      /* body text */
  --ink-mute:    #8a7f74;      /* meta, captions */
  --line:        #d9cfbe;      /* dividers */
  --accent:      #7a5a3a;      /* deep teak — used sparingly */
  --accent-soft: #b89772;      /* warm highlight */

  /* Typography — one serif display, one sans body */
  --font-serif: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Scale — editorial rhythm */
  --step--1: clamp(0.83rem, 0.79rem + 0.19vw, 0.94rem);
  --step-0:  clamp(1.00rem, 0.94rem + 0.31vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.11rem + 0.44vw, 1.41rem);
  --step-2:  clamp(1.44rem, 1.30rem + 0.68vw, 1.76rem);
  --step-3:  clamp(1.73rem, 1.53rem + 1.01vw, 2.20rem);
  --step-4:  clamp(2.07rem, 1.79rem + 1.44vw, 2.75rem);
  --step-5:  clamp(2.49rem, 2.09rem + 2.02vw, 3.43rem);
  --step-6:  clamp(2.99rem, 2.44rem + 2.78vw, 4.29rem);
  --step-7:  clamp(3.58rem, 2.83rem + 3.79vw, 5.36rem);

  /* Space */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  /* Layout */
  --measure: 62ch;
  --gutter: clamp(1.5rem, 4vw, 3rem);
  --max: 1400px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--step-7);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.display em, .display i {
  font-style: italic;
  color: var(--accent);
}

.lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 40ch;
}

p { max-width: var(--measure); }

/* Wrapper */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.wrap--narrow {
  max-width: 900px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bone);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}
.brand {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--step-2);
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand a { display: inline-block; }
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.nav a {
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.cart-count {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: end;
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.15fr 1fr;
    gap: var(--space-7);
  }
}
.hero__text .eyebrow {
  display: block;
  margin-bottom: var(--space-3);
}
.hero__text h1 {
  margin-bottom: var(--space-4);
}
.hero__text .lede {
  margin-bottom: var(--space-5);
}

.hero__image {
  aspect-ratio: 4 / 5;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
/* Warm layered background — hint of teak in low light */
.hero__image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 20% 15%, rgba(255, 248, 232, 0.55), transparent 60%),
    radial-gradient(ellipse 80% 80% at 80% 90%, rgba(90, 55, 28, 0.28), transparent 65%),
    linear-gradient(155deg, #e4d5b8 0%, #c9ac83 55%, #a67d54 100%);
}
/* Wood-grain texture over the top */
.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='1000' viewBox='0 0 800 1000'><g stroke='%23000' stroke-opacity='0.08' fill='none' stroke-width='0.6'><path d='M0 120 Q 400 100 800 130'/><path d='M0 180 Q 380 160 800 195'/><path d='M0 250 Q 420 235 800 265'/><path d='M0 320 Q 400 300 800 340'/><path d='M0 400 Q 380 380 800 415'/><path d='M0 480 Q 420 460 800 495'/><path d='M0 560 Q 400 545 800 585'/><path d='M0 640 Q 400 620 800 655'/><path d='M0 720 Q 380 700 800 740'/><path d='M0 800 Q 420 780 800 815'/><path d='M0 880 Q 400 860 800 895'/></g><g stroke='%23000' stroke-opacity='0.04' fill='none' stroke-width='0.4'><path d='M0 90 Q 400 85 800 100'/><path d='M0 150 Q 400 145 800 160'/><path d='M0 210 Q 400 205 800 220'/><path d='M0 280 Q 400 275 800 295'/><path d='M0 360 Q 400 355 800 375'/><path d='M0 440 Q 400 435 800 455'/><path d='M0 520 Q 400 515 800 535'/><path d='M0 600 Q 400 595 800 615'/><path d='M0 680 Q 400 675 800 695'/><path d='M0 760 Q 400 755 800 775'/><path d='M0 840 Q 400 835 800 855'/><path d='M0 920 Q 400 915 800 935'/></g></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.08 0'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.5'/></svg>");
  background-size: cover, 200px 200px;
  mix-blend-mode: multiply;
  opacity: 0.85;
  pointer-events: none;
}
.hero__caption {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-0);
  color: #f4efe6;
  opacity: 0.9;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 20px rgba(0,0,0,0.3);
  z-index: 2;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1.1em 1.9em;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover {
  background: var(--ink);
  color: var(--bone);
}
.btn--filled {
  background: var(--ink);
  color: var(--bone);
}
.btn--filled:hover {
  background: transparent;
  color: var(--ink);
}
.btn--ghost {
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn--ghost::after {
  content: '→';
  transition: transform 0.35s var(--ease);
}
.btn--ghost:hover {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover::after {
  transform: translateX(6px);
}

/* ---------- Section framing ---------- */
.section {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.section--tight {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}
.section-header {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  align-items: end;
}
@media (min-width: 900px) {
  .section-header {
    grid-template-columns: 1fr auto;
  }
}
.section-header h2 {
  font-size: var(--step-5);
  max-width: 20ch;
}

/* ---------- Product grid ---------- */
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6) var(--space-4);
}
@media (min-width: 640px)  { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products { grid-template-columns: repeat(4, 1fr); } }
/* Jewelry collection is five pieces. Use a 3-column grid; center the trailing
   two so the orphan slot resolves as symmetrical negative space, not an empty cell. */
@media (min-width: 1024px) {
  .products[data-category="Jewelry"] {
    grid-template-columns: repeat(6, 1fr);
  }
  .products[data-category="Jewelry"] > .product:nth-child(1),
  .products[data-category="Jewelry"] > .product:nth-child(2),
  .products[data-category="Jewelry"] > .product:nth-child(3) {
    grid-column: span 2;
  }
  .products[data-category="Jewelry"] > .product:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .products[data-category="Jewelry"] > .product:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.product {
  display: block;
  cursor: pointer;
  color: inherit;
}
.product__media {
  aspect-ratio: 4 / 5;
  background: var(--cream);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-3);
}
.product__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 40% 35%, rgba(255,255,255,0.4), transparent 55%),
    linear-gradient(160deg, #ebe3d3 0%, #d1c1a5 100%);
}
.product__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.06 0'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.3'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.55;
  pointer-events: none;
}
.product__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.product:hover .product__media img { transform: scale(1.04); }

.product__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-4);
  gap: var(--space-2);
}
.product__shape {
  display: block;
  margin-bottom: var(--space-2);
  transition: transform 0.9s var(--ease);
}
.product:hover .product__shape { transform: scale(1.04); }
.product__placeholder-mark {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-2);
  color: rgba(26, 22, 19, 0.5);
  line-height: 1.1;
  margin-bottom: 0.25em;
}
.product__placeholder-note {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(26, 22, 19, 0.3);
}

.product__body {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
}
.product__name {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}
.product__meta {
  font-size: var(--step--1);
  color: var(--ink-mute);
  margin-top: 0.25em;
}
.product__price {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- Editorial content blocks ---------- */
.editorial {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  background: var(--paper);
}
.editorial__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .editorial__grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-8);
  }
}
.editorial__side .eyebrow { display: block; margin-bottom: var(--space-3); }
.editorial__side h2 {
  font-size: var(--step-5);
  max-width: 14ch;
}
.editorial__body p + p { margin-top: var(--space-3); }
.editorial__body h3 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-2);
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  color: var(--ink);
}
.editorial__body p {
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ============================================================================
   Founder spotlight — Wasantha Waduge
   ============================================================================ */
.founder {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.founder__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .founder__grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-8);
  }
}
.founder__portrait {
  position: relative;
}
.founder__portrait-frame {
  aspect-ratio: 4 / 5;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.founder__portrait-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.founder__portrait-mark {
  font-family: var(--font-serif);
  font-size: 5rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  opacity: 0.18;
  line-height: 1;
}
.founder__portrait-note {
  margin-top: var(--space-3);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.founder__body .eyebrow { display: block; margin-bottom: var(--space-3); }
.founder__body h2 {
  font-size: var(--step-5);
  margin-bottom: var(--space-4);
  max-width: 16ch;
}
.founder__lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-2);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: var(--space-4);
  max-width: 46ch;
}
.founder__body p {
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 60ch;
}
.founder__body p + p { margin-top: var(--space-3); }

.founder__contact {
  margin-top: var(--space-5);
  margin-bottom: var(--space-4);
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.founder__contact-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding: 0.35rem 0;
}
@media (min-width: 640px) {
  .founder__contact-row {
    grid-template-columns: 12rem 1fr;
    align-items: baseline;
  }
}
.founder__contact-row dt {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.founder__contact-row dd {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  color: var(--ink);
  margin: 0;
}
.founder__contact-row dd a {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}
.founder__contact-row dd a:hover { opacity: 0.65; }
.founder__contact-note {
  font-style: italic;
  color: var(--ink-mute);
  font-size: 0.92em;
  margin-left: 0.15em;
}
.founder__signature {
  margin-top: var(--space-4);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-mute);
  font-size: var(--step-0);
}

/* Pull quote */
.pullquote {
  margin: var(--space-8) auto;
  max-width: 780px;
  text-align: center;
  padding: 0 var(--gutter);
}
.pullquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-4);
  line-height: 1.2;
  color: var(--ink);
  max-width: none;
  margin: 0 auto;
}
.pullquote cite {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-sans);
  font-style: normal;
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Values row ---------- */
.values {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}
@media (min-width: 700px) { .values { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }
.value__number {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.value h3 {
  font-family: var(--font-serif);
  font-size: var(--step-2);
  margin-bottom: var(--space-2);
}
.value p {
  font-size: var(--step-0);
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--ink);
  color: var(--bone);
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  text-align: center;
}
.newsletter h2 {
  color: var(--bone);
  font-size: var(--step-5);
  margin-bottom: var(--space-3);
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.newsletter p {
  color: rgba(244, 239, 230, 0.7);
  margin: 0 auto var(--space-5);
  max-width: 46ch;
}
.newsletter__form {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(244, 239, 230, 0.3);
}
.newsletter__form input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 1em 0.5em;
  color: var(--bone);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  outline: none;
}
.newsletter__form input::placeholder { color: rgba(244, 239, 230, 0.4); }
.newsletter__form button {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  padding: 1em;
  transition: opacity 0.3s var(--ease);
}
.newsletter__form button:hover { opacity: 0.7; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bone);
  padding-top: var(--space-7);
  padding-bottom: var(--space-4);
  border-top: 1px solid var(--line);
}
.site-footer__grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-6);
}
@media (min-width: 700px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-6);
  }
}
.site-footer h4 {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--space-3);
  font-weight: 500;
}
.site-footer p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: 1.4;
  max-width: 30ch;
}
.site-footer ul { display: grid; gap: 0.6em; }
.site-footer a {
  color: var(--ink-soft);
  font-size: var(--step-0);
  transition: color 0.3s var(--ease);
}
.site-footer a:hover { color: var(--ink); }
.site-footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: center;
  color: var(--ink-mute);
  font-size: var(--step--1);
}

/* ---------- Product detail ---------- */
.pdp {
  padding-top: var(--space-6);
  padding-bottom: var(--space-8);
}
.pdp__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .pdp__grid {
    grid-template-columns: 6fr 5fr;
    gap: var(--space-7);
  }
}
.pdp__media {
  aspect-ratio: 4 / 5;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.pdp__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 40% 35%, rgba(255,255,255,0.4), transparent 55%),
    linear-gradient(160deg, #ebe3d3 0%, #d1c1a5 100%);
}
.pdp__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 0.06 0'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.3'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.5;
  pointer-events: none;
}
.pdp__info { padding-top: var(--space-3); }
.pdp__info .eyebrow { display: block; margin-bottom: var(--space-2); }
.pdp__info h1 {
  font-size: var(--step-6);
  margin-bottom: var(--space-3);
  line-height: 1;
}
.pdp__price {
  font-family: var(--font-sans);
  font-size: var(--step-2);
  color: var(--ink);
  margin-bottom: var(--space-4);
}
.pdp__description {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-1);
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: var(--space-5);
  max-width: 42ch;
}
.pdp__specs {
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
  margin-bottom: var(--space-5);
}
.pdp__specs dt {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: var(--space-3);
}
.pdp__specs dt:first-child { margin-top: 0; }
.pdp__specs dd {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  color: var(--ink);
  margin-top: 0.25em;
}

.pdp__actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-5);
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
}
.qty button {
  width: 3rem;
  height: 3rem;
  font-size: var(--step-1);
  color: var(--ink);
}
.qty span {
  min-width: 2.5rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--step-0);
}

.pdp__care {
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
}
.pdp__care h3 {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--space-2);
  font-weight: 500;
}
.pdp__care p {
  font-size: var(--step-0);
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ---------- Shop page filter/sort bar ---------- */
.shop-head {
  padding-top: var(--space-6);
  padding-bottom: var(--space-4);
}
.shop-head h1 {
  font-size: var(--step-6);
  margin-bottom: var(--space-2);
}
.shop-head p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--ink-soft);
  max-width: 48ch;
}
.shop-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-6);
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  color: var(--ink-mute);
}
.shop-bar select {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  outline: none;
}

/* ---------- Cart page ---------- */
.cart-page {
  padding-top: var(--space-6);
  padding-bottom: var(--space-8);
}
.cart-page h1 {
  font-size: var(--step-6);
  margin-bottom: var(--space-6);
}
.cart-page__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .cart-page__grid {
    grid-template-columns: 1fr 380px;
    gap: var(--space-6);
  }
}
.cart-line {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.cart-line__media {
  aspect-ratio: 4 / 5;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.cart-line__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #ebe3d3 0%, #d1c1a5 100%);
}
.cart-line__name {
  font-family: var(--font-serif);
  font-size: var(--step-1);
  color: var(--ink);
  margin-bottom: 0.25em;
}
.cart-line__meta {
  font-size: var(--step--1);
  color: var(--ink-mute);
  margin-bottom: var(--space-2);
}
.cart-line__price {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  color: var(--ink);
  text-align: right;
}
.cart-line__remove {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: color 0.3s var(--ease);
}
.cart-line__remove:hover { color: var(--ink); }

.cart-summary {
  background: var(--paper);
  padding: var(--space-5);
  align-self: start;
  position: sticky;
  top: calc(var(--space-7) + 10px);
}
.cart-summary h2 {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--space-4);
  font-weight: 500;
}
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  color: var(--ink-soft);
  font-size: var(--step-0);
}
.cart-summary__row--total {
  border-top: 1px solid var(--line);
  margin-top: var(--space-2);
  padding-top: var(--space-3);
  font-family: var(--font-serif);
  font-size: var(--step-2);
  color: var(--ink);
}
.cart-summary .btn {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-4);
}
.cart-empty {
  text-align: center;
  padding: var(--space-7) var(--gutter);
}
.cart-empty p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--step-2);
  color: var(--ink-mute);
  margin: 0 auto var(--space-4);
  max-width: 30ch;
}

/* ---------- Utility ---------- */
.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.0s var(--ease), transform 1.0s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Small screens — hide non-essential nav items */
@media (max-width: 640px) {
  .nav { gap: var(--space-3); }
  .nav__desktop { display: none; }
}
