/*
Theme Name: Naturesoft
Theme URI: https://example.invalid/naturesoft
Author: Naturesoft
Description: Certified organic performance bedding. Classic WooCommerce theme carrying the Naturesoft brand system — Rich Soil, Organic Ivory, Sandstone Beige and Performance Sage, set in Cormorant Garamond and Jost.
Version: 2.5.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: naturesoft
Tags: e-commerce, custom-colors, custom-menu, editor-style
*/

/* ---------------------------------------------------------------- tokens */

:root {
  --soil: #2B2623;
  --soil-hover: #3F3831;
  --ivory: #F9F6F0;
  --sand: #D8C5B2;
  --sage: #93A68F;
  --sage-deep: #6E8168;
  --sage-tint: #E6EBE3;
  --surface: #F1EAE1;
  --field: #FFFDF9;
  --rule: #E4DCD1;
  --hairline: #F0E9DF;
  --muted: #6B615A;
  --faint: #B0A79F;

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --ui: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(22px, 5vw, 88px);
  --maxw: 1560px;

  /* Vertical rhythm. Luxury reads as air — these are deliberately generous. */
  --bay: clamp(72px, 11vh, 168px);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* Type scale — fluid, so it stays composed from phone to wide desktop. */
  --t-hero: clamp(46px, 7.4vw, 116px);
  --t-h2: clamp(34px, 4.4vw, 68px);
  --t-h3: clamp(23px, 1.9vw, 30px);
  --t-quote: clamp(28px, 3.4vw, 52px);
  --t-body: clamp(15.5px, 1.05vw, 17px);

  --weave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.04' numOctaves='3' seed='7'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='320' height='320' filter='url(%23w)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------ base */

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--soil);
  font-family: var(--ui);
  font-size: var(--t-body);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--sage-deep); text-decoration: none; transition: color .3s var(--ease); }
a:hover { color: var(--soil); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.012em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 4px; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 999;
  background: var(--soil); color: var(--ivory);
  padding: 12px 20px; clip: auto; clip-path: none; width: auto; height: auto;
}

/* ---------------------------------------------------------------- motion */

/* Reveal on scroll: one quiet rise, once. Never a carnival. */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Anything that has already scrolled past stays put if JS never runs. */
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__slide { transform: none !important; transition: opacity .3s linear !important; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* -------------------------------------------------------------- utilities */

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 1080px; }

.lbl {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.muted { color: var(--muted); }

.rule-top { border-top: 1px solid var(--rule); }

.shot {
  position: relative;
  overflow: hidden;
  background: var(--sand);
  transition: box-shadow .5s var(--ease);
}
.shot::after {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--weave);
  opacity: .18;
  pointer-events: none;
}
.shot--photo::after { display: none; }
.shot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

/* Section eyebrow with a hairline lead-in. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 16px;
  color: var(--sage-deep);
}
.eyebrow::before {
  content: ""; width: 44px; height: 1px; background: var(--sage);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ui); font-size: 11px; font-weight: 400;
  letter-spacing: 0.26em; text-transform: uppercase;
  padding: 21px 44px; min-height: 58px;
  background: var(--soil); color: var(--ivory);
  border: 1px solid var(--soil); border-radius: 0;
  cursor: pointer; text-align: center;
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
/* Fill wipes up from the foot rather than a flat colour swap. */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--soil-hover);
  transform: translate3d(0, 101%, 0);
  transition: transform .55s var(--ease-out);
}
.btn:hover::before { transform: translate3d(0, 0, 0); }
.btn:hover { color: var(--ivory); }

.btn--sage { background: var(--sage); border-color: var(--sage); color: var(--soil); }
.btn--sage::before { background: #A6B7A1; }
.btn--sage:hover { color: var(--soil); }

.btn--outline { background: transparent; color: var(--soil); border-color: var(--soil); }
.btn--outline::before { background: var(--soil); }
.btn--outline:hover { color: var(--ivory); }

.btn--ivory { background: var(--ivory); border-color: var(--ivory); color: var(--soil); }
.btn--ivory::before { background: #FFFFFF; }
.btn--ivory:hover { color: var(--soil); }

/* Text link with a rule that draws in from the left. */
.btn--line {
  background: transparent; color: inherit;
  border: 0; padding: 20px 2px; min-height: 0;
  overflow: visible;
}
.btn--line::before { display: none; }
.btn--line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 12px;
  height: 1px; background: currentColor;
  transform: scaleX(1); transform-origin: right;
  transition: transform .55s var(--ease-out);
}
.btn--line:hover::after { transform: scaleX(0); transform-origin: right; }
.btn--line:hover { color: var(--sage-deep); }

/* ----------------------------------------------------------------- header */

/* Announcement + masthead travel together, so neither can cover the other. */
.topbar { position: sticky; top: 0; z-index: 50; }
.has-hero .topbar { position: fixed; top: 0; left: 0; right: 0; }

.announce {
  background: var(--soil); color: var(--ivory);
  padding: 13px 0; text-align: center;
}

.masthead {
  background: var(--ivory);
  border-bottom: 1px solid var(--rule);
  padding-block: 26px;
  transition: background-color .5s var(--ease), border-color .5s var(--ease),
              padding .5s var(--ease), color .5s var(--ease);
}
.masthead__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}

/* Over a full-bleed hero the bar floats, then settles once you scroll. */
.has-hero .masthead {
  background: transparent; border-bottom-color: transparent;
  color: var(--ivory);
}
.has-hero .masthead .brand,
.has-hero .masthead .nav a,
.has-hero .masthead .utils a { color: var(--ivory); }
.has-hero .masthead .brand__tag { color: rgba(249, 246, 240, .72); }

.has-hero .masthead.is-stuck {
  background: var(--ivory);
  border-bottom-color: var(--rule);
  padding-block: 17px;
  color: var(--soil);
}
.has-hero .masthead.is-stuck .brand,
.has-hero .masthead.is-stuck .nav a,
.has-hero .masthead.is-stuck .utils a { color: var(--soil); }
.has-hero .masthead.is-stuck .brand__tag { color: var(--muted); }

.brand { display: flex; align-items: center; gap: 14px; color: var(--soil); }
.brand__mark { flex-shrink: 0; }
.brand__name {
  display: block;
  font-family: var(--display); font-size: 22px; font-weight: 400;
  letter-spacing: 0.3em; text-transform: uppercase; line-height: 1;
}
.brand__tag {
  display: block;
  font-family: var(--ui); font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted); margin-top: 5px;
}

.nav ul { display: flex; gap: 42px; margin: 0; padding: 0; list-style: none; }
.nav a {
  position: relative;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--soil); padding-bottom: 4px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.nav a:hover::after, .nav .current-menu-item > a::after { transform: scaleX(1); }

.utils { display: flex; align-items: center; gap: 26px; }
.utils a { color: var(--soil); display: inline-flex; align-items: center; gap: 8px; }
.utils a:hover { color: var(--sage-deep); }
.utils__count { font-size: 10px; letter-spacing: .22em; }

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  color: var(--ivory);
}
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.hero__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 58%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.6s var(--ease), transform 9s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }

/* Scrim. The photography is full-bleed and pale, so the headline needs real
   help — but only as much as legibility demands. Three passes: a left wash for
   the copy, a foot wash, and a light head wash so the floating nav reads. */
.hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to right,
      rgba(43, 38, 35, .74) 0%,
      rgba(43, 38, 35, .60) 24%,
      rgba(43, 38, 35, .34) 42%,
      rgba(43, 38, 35, .10) 58%,
      rgba(43, 38, 35, 0) 72%),
    linear-gradient(to top, rgba(43, 38, 35, .52) 0%, rgba(43, 38, 35, .18) 42%, rgba(43, 38, 35, 0) 72%),
    linear-gradient(to bottom, rgba(43, 38, 35, .44) 0%, rgba(43, 38, 35, .13) 17%, rgba(43, 38, 35, 0) 32%);
}

/* Slide dots */
.hero__dots {
  position: absolute; right: var(--gutter); bottom: 40px; z-index: 3;
  display: flex; gap: 14px; align-items: center;
}
.hero__dot {
  width: 30px; height: 30px; padding: 0; border: 0; background: none;
  cursor: pointer; display: grid; place-items: center;
}
.hero__dot span {
  display: block; width: 100%; height: 1px;
  background: rgba(249, 246, 240, .38);
  transition: background-color .5s var(--ease), height .5s var(--ease);
}
.hero__dot:hover span { background: rgba(249, 246, 240, .7); }
.hero__dot.is-active span { background: var(--ivory); height: 2px; }

.hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  padding-block: clamp(56px, 12vh, 132px);
}
.hero__eyebrow { color: rgba(249, 246, 240, .78); margin-bottom: 30px; }
.hero__eyebrow::before { background: rgba(249, 246, 240, .55); }
.hero__title {
  font-size: var(--t-hero);
  max-width: 15ch;
  color: var(--ivory);
}
.hero__body {
  max-width: 46ch; margin-top: 30px;
  color: rgba(249, 246, 240, .84);
}
.hero__actions { display: flex; gap: 22px; margin-top: 46px; align-items: center; flex-wrap: wrap; }

.hero__cue {
  position: absolute; left: 50%; bottom: 34px; z-index: 2;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: rgba(249, 246, 240, .7);
}
.hero__cue span { font-size: 9px; letter-spacing: .3em; text-transform: uppercase; }
.hero__cue i {
  display: block; width: 1px; height: 52px;
  background: linear-gradient(to bottom, rgba(249,246,240,.75), rgba(249,246,240,0));
  animation: cue 2.6s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(52px); opacity: 0; }
}

/* ------------------------------------------------------------------ bays */

.bay { padding-block: var(--bay); }
.bay--tight { padding-block: calc(var(--bay) * .6); }

.bay__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-bottom: clamp(36px, 5vw, 64px);
}
.bay__title { font-size: var(--t-h2); }

/* ------------------------------------------------------------------ fibre */

.fibres {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 84px);
}
.fibre { padding-top: 30px; border-top: 1px solid var(--rule); }
.fibre__title { font-size: var(--t-h3); margin-top: 22px; }
.fibre__body { color: var(--muted); margin-top: 12px; }

/* ------------------------------------------------------------------ bands */

.band { background: var(--surface); }
.band--soil { background: var(--soil); color: var(--ivory); position: relative; }
.band--soil h2, .band--soil h3 { color: var(--ivory); }
.band--soil p { color: rgba(249, 246, 240, .72); }
.band--soil::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--weave); opacity: .05; pointer-events: none;
}

/* Full-bleed editorial: image left, quote right, no container gutter. */
.editorial { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; }
.editorial__media { position: relative; min-height: clamp(420px, 62vh, 760px); background: var(--sage); }
.editorial__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 7vw, 110px);
}
.quote { font-size: var(--t-quote); line-height: 1.22; }
.quote__by { color: var(--muted); margin-top: 28px; font-size: 14px; }

.stats {
  display: flex; gap: clamp(28px, 4vw, 64px); margin-top: clamp(40px, 5vw, 66px);
  padding-top: 34px; border-top: 1px solid var(--rule);
}
.stat__n { font-family: var(--display); font-size: clamp(32px, 3vw, 46px); font-weight: 300; }
.stat__k { color: var(--muted); margin-top: 6px; }

.cta {
  display: flex; justify-content: space-between; align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.cta__title { font-size: var(--t-h2); }
.cta__body { margin-top: 16px; max-width: 52ch; }

/* ------------------------------------------------------------ product grid */

ul.products {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 3.4vw, 56px) clamp(20px, 2.2vw, 36px);
  margin: 0; padding: 0; list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after,
ul.products::before, ul.products::after { content: none; display: none; }
ul.products li.product { margin: 0; width: auto; float: none; text-align: left; }

.card { display: block; color: inherit; }
.card__frame { position: relative; overflow: hidden; }
.card__shot {
  aspect-ratio: 4 / 5; height: auto;
}
.card__shot img { transition: transform 1.2s var(--ease-out); }
.card:hover .card__shot img { transform: scale(1.055); }
.card:hover .shot { box-shadow: inset 0 0 0 1px rgba(147, 166, 143, .9); }

.card__badge {
  position: absolute; left: 20px; top: 20px; z-index: 3;
  background: rgba(249, 246, 240, .94); color: var(--sage-deep);
  padding: 9px 14px; font-size: 9px;
}

/* Quiet "view" affordance that rises on hover. */
.card__peek {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 20px; text-align: center;
  background: rgba(249, 246, 240, .94); color: var(--soil);
  font-size: 9px; letter-spacing: .3em; text-transform: uppercase;
  transform: translate3d(0, 100%, 0);
  transition: transform .55s var(--ease-out);
}
.card:hover .card__peek { transform: translate3d(0, 0, 0); }

.card__body {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 20px; margin-top: 22px;
}
.card__name {
  font-family: var(--display); font-size: var(--t-h3); font-weight: 400;
  transition: color .35s var(--ease);
}
.card:hover .card__name { color: var(--sage-deep); }
.card__price { font-family: var(--display); font-size: 21px; white-space: nowrap; }
.card__price del { color: var(--faint); margin-right: 8px; }
.card__price ins { text-decoration: none; }
.card__meta { font-size: 13px; color: var(--muted); margin-top: 6px; letter-spacing: .01em; }

/* --------------------------------------------------------- shop / archive */

.shop__intro { padding-top: clamp(48px, 8vh, 104px); }
.shop__title { font-size: var(--t-h2); margin-top: 22px; }
.shop__lede { max-width: 56ch; margin-top: 18px; color: var(--muted); }

.filters {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; padding-top: clamp(36px, 5vw, 64px); flex-wrap: wrap;
}
.filters__group { display: flex; align-items: center; gap: 18px; }
.filters__legend { color: var(--muted); width: 62px; }
.filters__set { display: flex; gap: 9px; flex-wrap: wrap; }

.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 19px; cursor: pointer;
  border: 1px solid var(--rule); background: transparent; color: var(--soil);
  font-family: var(--ui); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.chip:hover { border-color: var(--sage); }
.chip--on { background: var(--soil); border-color: var(--soil); color: var(--ivory); }
.chip--on:hover { background: var(--soil-hover); border-color: var(--soil-hover); color: var(--ivory); }
.chip__dot { width: 13px; height: 13px; display: inline-block; border: 1px solid #C6BCAF; }
.chip--on .chip__dot { border-color: var(--ivory); }

.sortbar { display: flex; align-items: center; gap: 14px; }
.sortbar__set { display: flex; border: 1px solid var(--rule); }
.sortbar__set .chip { border: 0; }

.resultbar {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 32px 0 24px; margin-top: 30px;
  border-bottom: 1px solid var(--rule); color: var(--muted);
}

.woocommerce-no-products-found, .empty { padding: clamp(80px, 12vh, 150px) 0; text-align: center; }
.empty__title { font-size: var(--t-h2); }

/* ------------------------------------------------------------ single product */

.pdp {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 5vw, 96px);
  padding-block: clamp(36px, 5vh, 64px) var(--bay);
  align-items: start;
}
.pdp__gallery > .shot { aspect-ratio: 4 / 5; height: auto; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.pdp__thumb {
  aspect-ratio: 1 / 1; cursor: pointer;
  border: 1px solid transparent; transition: border-color .4s var(--ease);
}
.pdp__thumb:hover, .pdp__thumb--on { border-color: var(--soil); }

/* The buy column follows you down a long gallery. */
.pdp__buy { position: sticky; top: 116px; }

.pdp__crumbs { color: var(--muted); }
.pdp__title { font-size: clamp(34px, 3.8vw, 62px); margin-top: 22px; }
.pdp__price { display: flex; align-items: baseline; gap: 18px; margin-top: 26px; }
.pdp__price .price, .pdp__price .woocommerce-Price-amount {
  font-family: var(--display); font-size: clamp(26px, 2.4vw, 36px); color: var(--soil);
}
.pdp__lede { margin-top: 26px; color: var(--muted); max-width: 52ch; }

.pdp__badges { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.pdp__badge { border: 1px solid var(--sage); color: var(--sage-deep); padding: 9px 15px; font-size: 9px; }

.pdp__specs { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); }
.pdp__specs h2 { font-family: var(--ui); padding: 26px 0 6px; color: var(--muted); }
.pdp__spec {
  display: grid; grid-template-columns: 190px 1fr; gap: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--hairline); font-size: 14px;
}
.pdp__spec dt { color: var(--muted); margin: 0; }
.pdp__spec dd { margin: 0; }

.pdp__notice { margin-top: 20px; font-size: 14px; color: var(--muted); }

.swatches { display: flex; gap: 14px; margin-top: 16px; }
.swatch {
  width: 46px; height: 46px; cursor: pointer; border: 1px solid #C6BCAF;
  outline: none; outline-offset: 5px; padding: 0;
  transition: outline-color .4s var(--ease), transform .4s var(--ease);
}
.swatch:hover { transform: translateY(-2px); }
.swatch--on { outline: 1px solid var(--soil); }

.sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-top: 16px; }
.size {
  padding: 15px 8px; text-align: center; cursor: pointer;
  border: 1px solid var(--rule); background: transparent; color: var(--soil);
  font-family: var(--ui);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.size:hover { border-color: var(--sage); }
.size--on { border-color: var(--soil); background: var(--soil); color: var(--ivory); }
.size__dims { font-size: 12px; margin-top: 4px; opacity: .72; }

.quantity { display: inline-flex; align-items: center; border: 1px solid var(--soil); }
.quantity input.qty {
  width: 46px; height: 58px; text-align: center;
  border: 0; background: transparent; color: var(--soil);
  font-family: var(--ui); font-size: 16px;
  font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity__step {
  width: 48px; height: 58px; border: 0; background: transparent;
  cursor: pointer; font-size: 20px; color: var(--soil);
  transition: color .35s var(--ease);
}
.quantity__step:hover { color: var(--sage-deep); }

form.cart { display: flex; gap: 18px; margin-top: 40px; align-items: stretch; }
form.cart .btn { flex-grow: 1; }

.accordion { margin-top: clamp(36px, 4vw, 52px); border-top: 1px solid var(--rule); }
.accordion__item { border-bottom: 1px solid var(--rule); }
.accordion__head {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 24px 0; background: none; border: 0; cursor: pointer;
  color: var(--soil); font-family: var(--ui); font-size: 11px;
  letter-spacing: 0.26em; text-transform: uppercase; text-align: left;
  transition: color .35s var(--ease);
}
.accordion__head:hover { color: var(--sage-deep); }
.accordion__glyph { font-size: 18px; color: var(--muted); }
.accordion__body { font-size: 15px; color: var(--muted); padding-bottom: 26px; max-width: 56ch; }
.accordion__body[hidden] { display: none; }

/* -------------------------------------------------------------------- cart */

.cart__title { font-size: var(--t-h2); padding-top: clamp(40px, 7vh, 88px); }
.cart__layout {
  display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(40px, 5vw, 88px);
  padding-block: clamp(32px, 4vw, 56px) var(--bay); align-items: start;
}

.progress { padding: 24px 28px; background: var(--surface); }
.progress--done { background: var(--sage-tint); }
.progress__track { height: 2px; background: var(--rule); margin-top: 16px; overflow: hidden; }
.progress__bar {
  height: 2px; background: var(--sand);
  transform-origin: left; animation: fill 1.4s var(--ease-out) both;
}
.progress--done .progress__bar { background: var(--sage); }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.cartline {
  display: grid; grid-template-columns: 148px 1fr auto; gap: 30px;
  padding: 32px 18px; margin-inline: -18px;
  border-bottom: 1px solid var(--rule); align-items: start;
  transition: background-color .4s var(--ease);
}
.cartline:hover { background: #FBF8F3; }
.cartline__shot { aspect-ratio: 4 / 5; height: auto; }
.cartline__name { font-family: var(--display); font-size: var(--t-h3); font-weight: 400; }
.cartline__variant { font-size: 14px; color: var(--muted); margin-top: 7px; }
.cartline__badge { color: var(--sage-deep); font-size: 9px; margin-top: 12px; }
.cartline__controls { display: flex; align-items: center; gap: 26px; margin-top: 22px; }
.cartline__controls .quantity { border-color: var(--rule); }
.cartline__controls .quantity input.qty,
.cartline__controls .quantity__step { height: 46px; }
.cartline__money { text-align: right; }
.cartline__total { font-family: var(--display); font-size: 23px; }
.cartline__unit { font-size: 13px; color: var(--muted); margin-top: 5px; }

.woocommerce a.remove, .woocommerce .cartline a.remove, a.remove {
  font-family: var(--ui); font-size: 9px; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--rule); border-radius: 0;
  padding-bottom: 3px; line-height: 1.4;
  display: inline-block; width: auto; height: auto;
  background: none; text-align: left;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.woocommerce a.remove:hover, .woocommerce .cartline a.remove:hover, a.remove:hover {
  color: var(--sage-deep); border-bottom-color: var(--sage-deep); background: none;
}

.summary { background: var(--surface); padding: clamp(28px, 3vw, 40px); position: sticky; top: 116px; }
.summary__title { font-family: var(--display); font-size: var(--t-h3); font-weight: 400; }
.summary__row { display: flex; justify-content: space-between; margin-top: 14px; font-size: 15px; }
.summary__row:first-of-type { margin-top: 30px; }
.summary__row dt { color: var(--muted); margin: 0; }
.summary__row dd { margin: 0; }
.summary__free { color: var(--sage-deep); }
.summary__total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--rule);
}
.summary__total strong { font-family: var(--display); font-size: clamp(28px, 2.4vw, 36px); font-weight: 300; }
.summary__total .includes_tax, .summary__total small {
  display: block; margin-top: 8px;
  font-family: var(--ui); font-size: 12px; font-weight: 300;
  letter-spacing: 0; color: var(--muted);
}
.summary__total .includes_tax .woocommerce-Price-amount { font-family: var(--ui); font-size: 12px; }
.summary .btn { width: 100%; margin-top: 30px; }
.summary #shipping_method { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.summary #shipping_method li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.summary #shipping_method label { color: var(--soil); }
.summary .woocommerce-shipping-destination { font-size: 13px; color: var(--muted); margin-top: 12px; }

.trust { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--rule); display: grid; gap: 16px; }
.trust__row { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.trust__row svg { flex-shrink: 0; margin-top: 2px; }

.giftnote { display: flex; align-items: flex-start; gap: 16px; margin-top: 32px; padding: 26px 28px; background: var(--surface); }

/* ---------------------------------------------------------------- checkout */

.checkout__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding-bottom: 8px; }
.checkout__layout {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(40px, 5vw, 88px);
  padding-block: clamp(32px, 4vw, 56px) 0; align-items: start;
}
.checkout__aside { position: sticky; top: 116px; }
.checkout__title { font-size: clamp(28px, 2.8vw, 44px); }
.checkout__lede { color: var(--muted); margin-top: 12px; }

#customer_details, #customer_details .col-1, #customer_details .col-2 { width: auto; float: none; display: block; }
#customer_details .col-2 { margin-top: 40px; }
.woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields h3 {
  font-family: var(--ui); font-size: 11px; font-weight: 400;
  letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 22px;
}
.woocommerce-shipping-fields, .woocommerce-additional-fields { margin-top: 40px; }

.woocommerce form .form-row { padding: 0; margin: 0 0 16px; }
.woocommerce form .form-row label {
  display: block; margin-bottom: 9px; font-size: 10px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.woocommerce form .form-row-first, .woocommerce form .form-row-last {
  width: calc(50% - 8px); display: inline-block; vertical-align: top;
}
.woocommerce form .form-row-first { margin-right: 13px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"],
input[type="number"], input[type="search"], input[type="url"], textarea,
select, .select2-container .select2-selection {
  width: 100%; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0;
  background: transparent; padding: 15px 2px;
  font-family: var(--ui); font-size: 16px; font-weight: 300; color: var(--soil);
  transition: border-color .4s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, textarea:hover, select:hover { border-bottom-color: #C6BCAF; }
input:focus, textarea:focus, select:focus { outline: none; border-bottom-color: var(--soil); }
.woocommerce-input-wrapper { width: 100%; }

.woocommerce button.button, .woocommerce a.button, .woocommerce input.button,
.woocommerce button.button.alt, .woocommerce a.button.alt, .woocommerce input.button.alt,
.wp-element-button {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ui); font-size: 11px; font-weight: 400;
  letter-spacing: .26em; text-transform: uppercase;
  padding: 21px 44px; min-height: 58px; line-height: 1;
  background: var(--soil); color: var(--ivory);
  border: 1px solid var(--soil); border-radius: 0;
  transition: background-color .45s var(--ease), border-color .45s var(--ease);
}
.woocommerce button.button:hover, .woocommerce a.button:hover,
.woocommerce input.button:hover, .woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover, .woocommerce input.button.alt:hover {
  background: var(--soil-hover); border-color: var(--soil-hover); color: var(--ivory);
}

.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top: 0; background: var(--surface); color: var(--soil);
  padding: 24px 28px; margin-bottom: 28px; list-style: none; font-size: 15px;
}
.woocommerce-message { background: var(--sage-tint); }
.woocommerce-error { background: #F3E4DE; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }

#order_review .shop_table { margin-top: 6px; }
#order_review .shop_table th { padding-left: 0; }
#order_review .shop_table td { padding-right: 0; text-align: right; }
#order_review .shop_table td.product-name { text-align: left; padding-left: 0; }
#order_review .order-total .amount { font-family: var(--display); font-size: 30px; }
#order_review .order-total .includes_tax, #order_review .order-total small {
  display: block; margin-top: 8px;
  font-family: var(--ui); font-size: 12px; font-weight: 300; color: var(--muted);
}
#order_review .order-total .includes_tax .amount { font-family: var(--ui); font-size: 12px; }

#payment { background: none; border-radius: 0; margin-top: 28px; }
#payment ul.payment_methods { border-bottom: 1px solid var(--rule); padding: 0 0 24px; margin: 0; list-style: none; }
#payment ul.payment_methods li { margin-bottom: 14px; }
#payment div.form-row { padding: 24px 0 0; }
#payment .payment_box {
  background: var(--field); border: 1px solid var(--rule); border-radius: 0;
  margin: 14px 0 0; font-size: 14px; color: var(--muted);
}
#payment .payment_box::before { display: none; }
#payment #place_order { width: 100%; }

/* ---------------------------------------------------------------- account */

.account__title { font-size: var(--t-h2); margin-top: 18px; }
.account__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-top: 44px; }
.statcard { background: var(--surface); padding: 30px 32px; }
.statcard--sage { background: var(--sage-tint); }
.statcard__n { font-family: var(--display); font-size: clamp(30px, 2.6vw, 42px); font-weight: 300; margin-top: 12px; }
.statcard__k { font-size: 13px; color: var(--muted); margin-top: 6px; }

.woocommerce-MyAccount-navigation ul { display: flex; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.woocommerce-MyAccount-navigation a {
  display: block; padding: 20px 26px 17px; color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  transition: color .35s var(--ease);
}
.woocommerce-MyAccount-navigation a:hover { color: var(--sage-deep); }
.woocommerce-MyAccount-navigation .is-active a { color: var(--soil); border-bottom-color: var(--soil); }
.woocommerce-MyAccount-content { padding-top: 44px; }

/* ------------------------------------------------------------------ tables */

.woocommerce table.shop_table { border: 0; border-radius: 0; border-collapse: collapse; width: 100%; }
.woocommerce table.shop_table th {
  font-family: var(--ui); font-size: 10px; font-weight: 400;
  letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--rule); padding: 18px 12px; text-align: left;
}
.woocommerce table.shop_table td {
  border-top: 0; border-bottom: 1px solid var(--rule);
  padding: 22px 12px; font-size: 15px; font-variant-numeric: tabular-nums;
}

.woocommerce-products-header { display: none; }

/* -------------------------------------------------------- editorial pages */

/* These are .wrap elements, so they must not also carry a max-width — that
   would centre the block inside the container and indent it. The reading
   measure is set on the inner copy instead. */
.page-head {
  padding-block: clamp(56px, 11vh, 132px) clamp(32px, 5vh, 56px);
}
.page-head__title { max-width: 20ch; }
.page-head__title { font-size: var(--t-h2); margin-top: 26px; }
.page-head__lede {
  font-size: clamp(18px, 1.5vw, 23px); line-height: 1.55;
  color: var(--muted); margin-top: 26px; max-width: 46ch;
}

.section { padding-block: clamp(28px, 3.5vw, 52px); }
.section--quote .quote { max-width: 24ch; }
.section__heading { font-size: var(--t-h3); margin-bottom: 24px; max-width: 24ch; }
.section__note {
  font-size: 13px; color: var(--muted); margin-top: 20px;
  padding-left: 18px; border-left: 1px solid var(--rule); max-width: 64ch;
}

/* Long-form measure: reading copy never runs the full 1560. */
.prose { max-width: 62ch; }
.prose p { margin-bottom: 1.25em; }
.prose p:last-child { margin-bottom: 0; }

.cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
}
.col { padding-top: 28px; border-top: 1px solid var(--rule); }
.col__title { font-family: var(--display); font-size: var(--t-h3); font-weight: 400; margin-top: 20px; }
.col__body { color: var(--muted); margin-top: 12px; max-width: 46ch; }

.speclist { margin: 0; border-top: 1px solid var(--rule); max-width: 1080px; }
.speclist__row {
  display: grid; grid-template-columns: 240px 1fr; gap: 28px;
  padding: 20px 0; border-bottom: 1px solid var(--hairline);
}
.speclist dt { margin: 0; color: var(--muted); font-size: 14px; }
.speclist dd { margin: 0; font-size: 15px; }

.stats--page { margin-top: 0; border-top: 0; padding-top: 0; }

.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); max-width: 1080px; }
.step-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--rule);
}
.step-row__n { font-family: var(--display); font-size: 28px; color: var(--sage); line-height: 1; }
.step-row__title { font-family: var(--display); font-size: 21px; font-weight: 400; }
.step-row__body { color: var(--muted); margin-top: 8px; max-width: 56ch; }

.tablewrap { overflow-x: auto; }
.datatable { width: 100%; border-collapse: collapse; min-width: 560px; }
.datatable th {
  font-family: var(--ui); font-size: 10px; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
  text-align: left; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--rule);
}
.datatable td {
  padding: 18px 18px 18px 0; border-bottom: 1px solid var(--hairline);
  font-size: 15px; vertical-align: top;
}
.datatable tr td:first-child { color: var(--muted); }

.mediafig { margin: 0; padding-block: clamp(28px, 3.5vw, 52px); }
.mediafig--full { padding-inline: 0; }
.mediafig__shot { aspect-ratio: 21 / 9; height: auto; }
.mediafig--full .mediafig__shot { aspect-ratio: 21 / 8; }
.mediafig__cap {
  margin-top: 16px; font-size: 13px; color: var(--muted);
  max-width: 56ch;
}
.mediafig--full .mediafig__cap { padding-inline: var(--gutter); }

.note {
  background: var(--sage-tint); padding: clamp(24px, 3vw, 36px);
  max-width: 1080px; border-left: 2px solid var(--sage);
}
.note__title { color: var(--sage-deep); }
.note__body { margin-top: 14px; color: #4C5748; max-width: 68ch; }

/* ----------------------------------------------------------------- footer */

.colophon { padding-block: var(--bay) 48px; }
.colophon__cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(32px, 4vw, 64px); }
.colophon__about { color: var(--muted); font-size: 14px; margin-top: 20px; max-width: 32ch; }
.colophon h2 { font-family: var(--ui); color: var(--muted); margin-bottom: 22px; }
.colophon ul { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.colophon a { color: var(--soil); }
.colophon a:hover { color: var(--sage-deep); }

.legal {
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 28px 0 52px; border-top: 1px solid var(--rule); color: var(--muted);
}
.legal__links {
  display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap;
}
.legal__links a { color: var(--muted); }
.legal__links a:hover { color: var(--soil); }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp__buy, .summary, .checkout__aside { position: static; }
  .cart__layout, .checkout__layout { grid-template-columns: 1fr; }
  .editorial { grid-template-columns: 1fr; }
  ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fibres { grid-template-columns: 1fr; }
  .colophon__cols { grid-template-columns: 1fr 1fr; }
  .nav ul { gap: 26px; }
}

@media (max-width: 860px) {
  .masthead { padding-block: 18px; }
  .masthead__inner { flex-wrap: wrap; gap: 18px; }
  .has-hero .masthead { position: sticky; background: var(--ivory); border-bottom-color: var(--rule); color: var(--soil); }
  .has-hero .masthead .brand, .has-hero .masthead .nav a, .has-hero .masthead .utils a { color: var(--soil); }
  .has-hero .masthead .brand__tag { color: var(--muted); }
  .nav { order: 3; width: 100%; }
  .nav ul { gap: 20px; flex-wrap: wrap; }
  .hero { min-height: 88svh; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .hero__cue { display: none; }
  .bay__head { flex-direction: column; align-items: flex-start; gap: 22px; }
  ul.products { grid-template-columns: 1fr; }
  .filters { flex-direction: column; align-items: flex-start; gap: 24px; }
  .filters__group { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cartline { grid-template-columns: 96px 1fr; gap: 18px; }
  .cartline__money { grid-column: 2; text-align: left; }
  .account__stats { grid-template-columns: 1fr; }
  .stats { flex-direction: column; gap: 24px; }
  .cta { flex-direction: column; align-items: flex-start; gap: 32px; }
  .colophon__cols { grid-template-columns: 1fr; }
  .legal { flex-direction: column; gap: 12px; }
  .pdp__spec { grid-template-columns: 1fr; gap: 3px; }
  .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; margin-right: 0; }
  .cols { grid-template-columns: 1fr; }
  .speclist__row { grid-template-columns: 1fr; gap: 4px; }
  .step-row { grid-template-columns: 40px 1fr; gap: 16px; }
}


/* ================================================================
 * Naturesoft — Shop / category filter sidebar + SEO layout
 * ================================================================ */
.nsc-shop{
  max-width:var(--maxw); margin:0 auto; padding:32px var(--gutter) 96px;
  display:grid; grid-template-columns:264px minmax(0,1fr);
  gap:clamp(28px,4vw,64px); align-items:start;
}
.nsc-filterwrap{ margin:0; }
.nsc-filterwrap > summary{ display:none; }
.nsc-sidebar{ position:sticky; top:104px; display:grid; gap:24px; }

.nsc-group{ display:grid; gap:12px; border-top:1px solid var(--rule); padding-top:18px; }
.nsc-group:first-child{ border-top:0; padding-top:0; }
.nsc-legend{
  font-family:var(--ui); font-size:11px; letter-spacing:.18em;
  text-transform:uppercase; color:var(--muted);
}
.nsc-set{ display:flex; flex-wrap:wrap; gap:8px; }
.nsc-set .chip{ display:inline-flex; align-items:center; gap:7px; }
.nsc-cat{ display:grid; gap:8px; }
.nsc-cat a{ font-family:var(--ui); font-size:14px; color:var(--soil); text-decoration:none; }
.nsc-cat a:hover{ color:var(--sage-deep); }
.nsc-cat a.on{ color:var(--sage-deep); font-weight:600; }
.nsc-clear{ color:var(--sage-deep); border-bottom:1px solid var(--sage-deep); justify-self:start; padding-bottom:2px; text-decoration:none; }

.nsc-main{ min-width:0; }
.nsc-resultbar{
  display:flex; justify-content:space-between; align-items:center;
  padding-bottom:16px; border-bottom:1px solid var(--rule); margin-bottom:26px;
}
.nsc-resultbar a{ color:var(--muted); border-bottom:1px solid var(--sage-deep); padding-bottom:2px; text-decoration:none; }

/* Intro tagline under the category title */
.nsc-intro{ margin-top:16px; }

/* Category SEO text — below products, above footer */
.nsc-seo{ max-width:var(--maxw); margin:0 auto; padding:40px var(--gutter) 8px; }
.nsc-seo > *{ max-width:74ch; }
.nsc-seo h2,.nsc-seo h3{ font-family:var(--display); font-size:var(--t-h3); margin:0 0 12px; color:var(--soil); }
.nsc-seo p{ font-family:var(--ui); font-size:15px; line-height:1.75; color:var(--muted); margin:0 0 14px; }

@media (max-width:900px){
  .nsc-shop{ grid-template-columns:1fr; gap:22px; padding-top:20px; }
  .nsc-sidebar{ position:static; }
  .nsc-filterwrap > summary{ display:inline-flex; cursor:pointer; list-style:none; margin-bottom:14px; }
  .nsc-filterwrap > summary::-webkit-details-marker{ display:none; }
  .nsc-filterwrap[open] > summary{ margin-bottom:22px; }
}

