/* ============================================================
   Verdure — botanical skincare ritual
   Static replica of the reference design.
   ============================================================ */

:root {
  --bg-sand: #f9f7f2;
  --bg-sage: #e8ede0;
  --bg-blush: #f7ece9;
  --sage-deep: #d8e0cb;
  --blush-deep: #f1ddd7;
  --bg-card: #ffffff;
  --bg-hero-mid: #f3efe6;
  --bg-hero-end: #ece7db;
  --text-main: #3a4235;
  --text-soft: #6b7363;
  --text-inverse: #fbfaf6;
  --accent: #7d8471;
  --accent-deep: #6c7361;
  --accent-strong: #4a5244;
  --line: #e4e1d8;
  --font-header: Georgia, "Times New Roman", "Songti SC", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-full: 9999px;
  --header-h: 68px;
  --section-gap: clamp(4rem, 10vw, 8rem);
  --pad-x: clamp(1.25rem, 5vw, 6rem);
  --shadow-soft: 0 10px 30px -10px rgba(58, 66, 53, 0.12);
  --shadow-card: 0 24px 60px -28px rgba(58, 66, 53, 0.28);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-main);
  background: var(--bg-sand);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-header);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

[hidden] {
  display: none !important;
}

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

:where(a, button, input):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.icon--xs { width: 13px; height: 13px; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }
.icon--fill { fill: currentColor; stroke: none; }

.page {
  /* clip, not hidden: hidden would make this a scroll container and break sticky */
  overflow-x: clip;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  background: var(--text-main);
  color: var(--text-inverse);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
  will-change: opacity, transform;
}
.reveal--in {
  opacity: 1;
  transform: none;
}

/* ---------- shared bits ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: var(--radius-full);
  padding: 0.9rem 1.6rem;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  background: var(--accent);
  color: #fdfdfb;
  box-shadow: 0 10px 24px -12px rgba(125, 132, 113, 0.8);
}
.btn--primary:hover {
  background: var(--accent-deep);
}
.btn--outline {
  background: transparent;
  color: var(--text-main);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.btn--outline:hover {
  background: var(--accent);
  color: #fdfdfb;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.kicker--light {
  color: #cdd6c0;
}

.section-sub {
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: 1.05rem;
}
.section-sub--light {
  color: #d9e0ce;
}

/* ---------- announcement ---------- */

.announcement {
  background: var(--accent);
  color: var(--text-inverse);
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.65rem 1rem;
}
.announcement p {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  text-wrap: balance;
}
.announcement .icon {
  width: 14px;
  height: 14px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 var(--pad-x);
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-stuck {
  background: rgba(249, 247, 242, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-header);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  justify-self: start;
}
.brand .icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.site-nav {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  font-size: 0.9rem;
  color: var(--text-soft);
}
.site-nav a {
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.site-nav a:hover {
  color: var(--text-main);
}
.site-nav a:hover::after {
  transform: scaleX(1);
}
.bag-btn {
  position: relative;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-main);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.bag-btn:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.bag-btn__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 0.3rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fdfdfb;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero {
  position: relative;
  height: 125vh;
  background:
    linear-gradient(to bottom, var(--bg-sand) 0%, transparent 180px),
    radial-gradient(120% 80% at 50% 40%, var(--bg-sand) 0%, var(--bg-hero-mid) 70%, var(--bg-hero-end) 100%);
}
.hero__sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  width: 100%;
  overflow: hidden;
}
.hero__stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__bottle {
  position: absolute;
  height: auto;
  will-change: transform, opacity;
  filter: saturate(0.85) contrast(0.95);
  transform: translate(-50%, -50%);
  opacity: 0.7;
}
.hero__inner {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2.6rem, 6.5vw, 4.7rem);
}
.hero__lede {
  margin: 1.5rem auto 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-soft);
  max-width: 440px;
}
.hero__cta {
  margin-top: 2.2rem;
  padding: 1rem 2rem;
  font-size: 1.05rem;
}
.hero__claims {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 2.4rem 0 0;
}
.hero__claims li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--text-main);
}
.hero__claims .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* ---------- benefits ---------- */

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  max-width: 1100px;
  margin: clamp(3.5rem, 7vw, 6rem) auto;
  padding: 0 var(--pad-x);
}
.benefit {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: var(--bg-sage);
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.benefit h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}
.benefit p {
  color: var(--text-soft);
  font-size: 0.97rem;
}

/* ---------- ritual ---------- */

.ritual {
  background: var(--bg-sage);
  padding: var(--section-gap) var(--pad-x);
}
.ritual__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 1080px;
  margin: 0 auto;
}
.ritual__step {
  text-align: center;
  position: relative;
}
.ritual__num {
  font-family: var(--font-header);
  font-size: 3.4rem;
  color: var(--sage-deep);
  display: block;
  line-height: 1;
}
.ritual__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--accent);
  margin: -1.2rem 0 1rem;
  box-shadow: var(--shadow-soft);
}
.ritual__step h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.ritual__step p {
  color: var(--text-soft);
  max-width: 280px;
  margin: 0 auto;
}

/* ---------- ingredients ---------- */

.ingredients {
  padding: var(--section-gap) var(--pad-x);
}
.ingredients__list {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 6vw, 5rem);
}
.ingredient {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}
.ingredient--right {
  /* media sits in the wider track on the right, card overlaps it from the left */
  grid-template-columns: 0.95fr 1.05fr;
}
.ingredient__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 5;
}
.ingredient__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ingredient__card {
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-soft);
  z-index: 2;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease;
}
.ingredient--left .ingredient__card {
  margin-left: -3.5rem;
}
.ingredient--right .ingredient__media {
  order: 2;
}
.ingredient--right .ingredient__card {
  order: 1;
  margin-right: -3.5rem;
}
.ingredient--left .ingredient__card:hover {
  transform: perspective(900px) rotate(-2.2deg) rotateY(4deg) translateY(-6px);
  box-shadow: var(--shadow-card);
}
.ingredient--right .ingredient__card:hover {
  transform: perspective(900px) rotate(2.2deg) rotateY(-4deg) translateY(-6px);
  box-shadow: var(--shadow-card);
}
.ingredient__card--sand {
  background: var(--bg-sand);
  border: 1px solid var(--line);
}
.ingredient__card--sage {
  background: var(--bg-sage);
}
.ingredient__card--blush {
  background: var(--bg-blush);
}
.ingredient__source {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.ingredient__card h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0.7rem 0 0.9rem;
}
.ingredient__card p {
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* ---------- results ---------- */

.results {
  background: var(--text-main);
  color: #f4f2ea;
  padding: var(--section-gap) var(--pad-x);
}
.results .section-head h2 {
  color: #f7f5ed;
}
.results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.results__stat {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.results__value {
  font-family: var(--font-header);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  color: #d3dcc4;
}
.results__label {
  color: #c4ccb8;
  font-size: 0.98rem;
  max-width: 220px;
  margin: 0 auto;
}

/* ---------- product picker ---------- */

.picker {
  padding: var(--section-gap) var(--pad-x);
}
.picker__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: 1120px;
  margin: 0 auto;
  align-items: stretch;
}
.product {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.product--active {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}
.product__badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 1;
  background: var(--bg-blush);
  color: var(--text-main);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
}
.product__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-sand);
  aspect-ratio: 1 / 1;
  margin-bottom: 1.4rem;
}
.product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product__name {
  font-size: 1.6rem;
}
.product__tagline {
  color: var(--text-soft);
  margin-top: 0.25rem;
}
.product__items {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}
.product__items li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.product__items .icon {
  color: var(--accent);
  flex-shrink: 0;
}
.product__price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.product__now {
  font-family: var(--font-header);
  font-size: 1.9rem;
}
.product__was {
  color: var(--text-soft);
  text-decoration: line-through;
  font-size: 1.05rem;
}
.product__btn {
  width: 100%;
}

/* ---------- sustainability ---------- */

.sustain {
  background: var(--bg-blush);
  padding: var(--section-gap) var(--pad-x);
}
.sustain__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.sustain__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.sustain__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--accent);
  margin-bottom: 0.6rem;
  box-shadow: var(--shadow-soft);
}
.sustain__value {
  font-family: var(--font-header);
  font-size: 2rem;
}
.sustain__label {
  color: var(--text-soft);
  max-width: 230px;
}

/* ---------- reviews ---------- */

.reviews {
  padding: var(--section-gap) var(--pad-x);
}
.stars {
  display: inline-flex;
  gap: 0.15rem;
  color: #c4a35a;
}
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: 1120px;
  margin: 0 auto;
}
.review {
  background: var(--bg-sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.review blockquote {
  margin: 0;
  font-family: var(--font-header);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text-main);
  flex: 1;
}
.review__person {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.review__person img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
}
.review__person span {
  display: flex;
  flex-direction: column;
}
.review__person strong {
  font-weight: 600;
}
.review__person em {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ---------- FAQ ---------- */

.faqs {
  background: var(--bg-sage);
  padding: var(--section-gap) var(--pad-x);
}
.faqs__list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.faq {
  background: var(--bg-sand);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.faq--open {
  box-shadow: var(--shadow-soft);
}
.faq__q {
  width: 100%;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  text-align: left;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--text-main);
}
.faq__q .icon {
  color: var(--accent);
  flex-shrink: 0;
}
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.faq--open .faq__a {
  grid-template-rows: 1fr;
}
.faq__a > p {
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--text-soft);
}
.faq--open .faq__a > p {
  padding: 0 1.5rem 1.4rem;
}

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

.footer {
  background: var(--text-main);
  color: #e7e6dc;
  padding: var(--section-gap) var(--pad-x) 2rem;
}
.footer__news {
  max-width: 540px;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.footer__news h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: #f5f3ea;
}
.footer__news p {
  margin-top: 1rem;
  color: #b9c0ac;
}
.footer__form {
  display: flex;
  gap: 0.6rem;
  margin: 1.8rem auto 0;
  max-width: 420px;
}
.footer__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: var(--radius-full);
  padding: 0.9rem 1.3rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--accent-strong);
  color: #f4f2ea;
}
.footer__form input::placeholder {
  color: #aab3a0;
}
.footer__form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.footer__thanks {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.8rem;
  color: #cdd6c0;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid #4a5244;
}
.footer__cols h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #aab3a0;
  margin-bottom: 1rem;
}
.footer__cols a {
  display: block;
  color: #d6d8cc;
  padding: 0.3rem 0;
  font-size: 0.95rem;
}
.footer__cols a:hover {
  color: #fff;
}
.footer__social {
  display: flex;
  gap: 0.8rem;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--accent-strong);
  padding: 0;
}
.footer__social a:hover {
  background: var(--accent);
}
.footer__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 760px;
  margin: 2rem auto 0;
  font-size: 0.85rem;
  color: #aab3a0;
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-header);
  font-size: 1.3rem;
  color: #f5f3ea;
}

/* ---------- product quick view ---------- */

.product__media {
  position: relative;
}
.product__view {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 8px);
  opacity: 0;
  border: 0;
  background: rgba(249, 247, 242, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--text-main);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-soft);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}
.product:hover .product__view,
.product__view:focus-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.product__view:hover {
  background: var(--bg-card);
}
@media (hover: none) {
  .product__view {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.picker__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  font-size: 0.82rem;
  color: var(--text-soft);
  text-align: center;
}
.picker__note .icon {
  color: var(--accent);
}

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

.cart-bar {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 55;
  width: min(560px, calc(100% - 2rem));
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease-out), opacity 0.3s ease;
}
.cart-bar--show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.cart-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  padding: 0.5rem 0.55rem 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: rgba(249, 247, 242, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  color: var(--text-main);
  text-align: left;
}
.cart-bar__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: var(--radius-full);
  background: var(--bg-sage);
  color: var(--accent);
}
.cart-bar__count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 0.25rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fdfdfb;
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-bar__label {
  font-size: 0.88rem;
  color: var(--text-soft);
}
.cart-bar__total {
  font-family: var(--font-header);
  font-size: 1.1rem;
  margin-right: auto;
}
.cart-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fdfdfb;
  font-size: 0.88rem;
  white-space: nowrap;
}

/* ---------- scrim + drawer ---------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(58, 66, 53, 0.42);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.scrim--show {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  width: min(430px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--bg-sand);
  box-shadow: -30px 0 70px -40px rgba(58, 66, 53, 0.45);
  transform: translateX(101%);
  visibility: hidden;
  transition: transform 0.45s var(--ease-out), visibility 0.45s;
}
.drawer.is-open {
  transform: none;
  visibility: visible;
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.4rem;
  border-bottom: 1px solid var(--line);
}
.drawer__head h2 {
  font-size: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.drawer__count {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-soft);
}
.drawer__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.15rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.drawer__foot {
  border-top: 1px solid var(--line);
  padding: 1rem 1.4rem 1.3rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: var(--radius-full);
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text-main);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* bag contents */

.bag-empty {
  text-align: center;
  padding: 3.5rem 1rem 2rem;
}
.bag-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--bg-sage);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.bag-empty h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.bag-empty p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.bag-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 0.95rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.bag-item:last-of-type {
  border-bottom: 0;
  padding-bottom: 0.25rem;
}
.bag-item__img {
  width: 76px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--bg-sage);
}
.bag-item__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}
.bag-item__name {
  font-family: var(--font-header);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
}
.bag-item__price {
  font-size: 0.92rem;
  white-space: nowrap;
}
.bag-item__price s {
  color: var(--text-soft);
  font-size: 0.78rem;
  margin-left: 0.3rem;
}
.bag-item__meta {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 0.2rem;
}
.bag-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.65rem;
}
.bag-item__remove {
  border: 0;
  background: none;
  padding: 0;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bag-item__remove:hover {
  color: var(--text-main);
}

.bag-upsell {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.bag-upsell--bottom {
  margin-top: auto;
}
.bag-upsell__title {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.6rem;
}
.bag-upsell__card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.bag-upsell__card + .bag-upsell__card {
  margin-top: 0.65rem;
}
.bag-upsell__card img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-sage);
}
.bag-upsell__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.bag-upsell__text strong {
  font-family: var(--font-header);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.3;
}
.bag-upsell__text span {
  font-size: 0.74rem;
  color: var(--text-soft);
}
.bag-upsell__add {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--text-main);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.bag-upsell__add:hover {
  background: var(--accent);
  color: #fdfdfb;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--bg-card);
}
.qty button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: var(--radius-full);
  background: none;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.qty button:hover {
  color: var(--text-main);
  background: var(--bg-sage);
}
.qty button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.qty span {
  min-width: 1.6rem;
  text-align: center;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

/* shipping meter */

.ship-meter {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
}
.ship-meter__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}
.ship-meter__track {
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--line);
  overflow: hidden;
}
.ship-meter__fill {
  display: block;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}
.ship-meter--done .ship-meter__label {
  color: var(--text-main);
}
.ship-meter--done .ship-meter__fill {
  background: #9aa98a;
}

/* promo */

.promo {
  display: flex;
  gap: 0.5rem;
}
.promo input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: var(--radius-full);
  padding: 0.6rem 0.9rem;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text-main);
}
.promo button {
  border: 0;
  border-radius: var(--radius-full);
  background: var(--bg-sage);
  color: var(--text-main);
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
}
.promo button:hover {
  background: var(--sage-deep);
}
.promo__hint {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 0.45rem;
}
.promo__hint--error {
  color: #a4543f;
}
.promo-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: var(--bg-sage);
  border-radius: 12px;
  padding: 0.55rem 0.8rem;
  font-size: 0.82rem;
}
.promo-applied button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--text-soft);
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* totals */

.totals {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
}
.totals__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.totals__row dt {
  display: flex;
  align-items: center;
}
.totals__row dd {
  margin: 0;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}
.totals__row--discount dt,
.totals__row--discount dd {
  color: #6f7f5c;
}
.totals__code {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  background: var(--bg-sage);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.35rem;
}
.totals__row--grand {
  border-top: 1px solid var(--line);
  margin-top: 0.35rem;
  padding-top: 0.6rem;
  font-size: 1rem;
  color: var(--text-main);
}
.totals__row--grand dd {
  font-family: var(--font-header);
  font-size: 1.35rem;
}

.drawer .ship-meter {
  margin-bottom: 0.9rem;
}
.drawer .totals {
  margin-bottom: 0.9rem;
}
.drawer__checkout {
  width: 100%;
  padding: 0.95rem 1.4rem;
}
.drawer__note {
  text-align: center;
  font-size: 0.73rem;
  color: var(--text-soft);
  margin-top: 0.6rem;
}

/* ---------- modals ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.modal.is-open {
  visibility: visible;
  opacity: 1;
}
.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(58, 66, 53, 0.5);
  backdrop-filter: blur(3px);
}
.modal__panel {
  position: relative;
  width: min(940px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  background: var(--bg-sand);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -40px rgba(31, 36, 28, 0.5);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  transform: translateY(16px);
  transition: transform 0.4s var(--ease-out);
}
.modal.is-open .modal__panel {
  transform: none;
}
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  background: rgba(255, 255, 255, 0.85);
}

/* quick view */

.quickview {
  max-width: 900px;
  padding: 0;
  overflow: hidden;
}
.quickview__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.quickview__media {
  background: var(--bg-sage);
  min-height: 100%;
}
.quickview__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
.quickview__body {
  padding: clamp(1.6rem, 3vw, 2.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.quickview__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.quickview__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  padding-right: 2rem;
}
.quickview__price {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-header);
  font-size: 1.5rem;
}
.quickview__price s {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-soft);
}
.quickview__desc {
  color: var(--text-soft);
  font-size: 0.95rem;
}
.quickview__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.quickview__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.quickview__list .icon {
  color: var(--accent);
  margin-top: 0.2rem;
}
.quickview__buy {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.8rem;
}
.quickview__buy .btn {
  flex: 1;
}
.quickview__buy .qty {
  height: 44px;
}
.quickview__buy .qty button {
  width: 34px;
  height: 34px;
}
.quickview__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: var(--text-soft);
}
.quickview__meta .icon {
  color: var(--accent);
}

/* checkout */

.checkout {
  max-width: 1010px;
}
.checkout.checkout--done {
  max-width: 640px;
}
.checkout__head {
  margin-bottom: 1.6rem;
  padding-right: 3rem;
}
.checkout__head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
}
.checkout__head .kicker {
  margin-bottom: 0.5rem;
}
.checkout__grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}
.fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1.4rem;
}
.fieldset legend {
  font-family: var(--font-header);
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  padding: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.7rem;
  min-width: 0;
}
.field > span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(125, 132, 113, 0.18);
}
.field input:user-invalid {
  border-color: #b4735f;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.checkout__demo {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 0.35rem;
}
.checkout__demo .icon {
  color: var(--accent);
  margin-top: 0.15rem;
}

.summary {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  position: sticky;
  top: 0;
}
.summary__title {
  font-size: 1.15rem;
  margin-bottom: 0.9rem;
}
.summary__items {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.summary__item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.85rem;
}
.summary__item img {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--bg-sage);
}
.summary__item em {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--text-soft);
}
.summary__promo {
  font-size: 0.78rem;
  color: #6f7f5c;
  background: var(--bg-sage);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  margin-bottom: 0.8rem;
}
.totals--summary {
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  margin-bottom: 1rem;
}
.summary__pay {
  width: 100%;
  padding: 0.95rem 1.4rem;
}
.summary__pay[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}
.summary__note {
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-top: 0.6rem;
  text-align: center;
}

/* confirmation */

.checkout__done {
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem) 1rem;
}
.checkout__tick {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--bg-sage);
  color: var(--accent);
  margin: 0 auto 1.1rem;
}
.checkout__done .kicker {
  display: block;
  margin-bottom: 0.6rem;
}
.checkout__tick .icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.2;
}
.checkout__done h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.checkout__done-copy {
  color: var(--text-soft);
  margin-top: 0.8rem;
}
.done-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.4rem;
  margin: 1.9rem 0;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.done-grid dt {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.done-grid dd {
  margin: 0.25rem 0 0;
  font-family: var(--font-header);
  font-size: 1.1rem;
}

body.is-locked {
  overflow: hidden;
}

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

@media (max-width: 1000px) {
  .quickview__grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .checkout__grid {
    grid-template-columns: 1fr;
  }
  .summary {
    position: static;
  }
}

@media (max-width: 900px) {
  .benefits,
  .ritual__steps,
  .results__grid,
  .picker__grid,
  .sustain__grid,
  .reviews__grid {
    grid-template-columns: 1fr;
  }
  .reviews__grid {
    gap: 1rem;
  }
  .picker__grid {
    max-width: 460px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 3rem;
    --header-h: 60px;
  }
  .site-nav {
    display: none;
  }
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .brand {
    font-size: 1.15rem;
  }
  .ingredient {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .ingredient__media,
  .ingredient--right .ingredient__media {
    order: 1;
    aspect-ratio: 4 / 3;
  }
  .ingredient--left .ingredient__card,
  .ingredient--right .ingredient__card {
    order: 2;
    margin: -2.5rem 1rem 0;
  }
  .hero__stage {
    transform: scale(1.7);
    transform-origin: center 45%;
  }
  .footer__base {
    justify-content: center;
    text-align: center;
  }
  .quickview__grid {
    grid-template-columns: 1fr;
  }
  .quickview__media img {
    aspect-ratio: 1 / 1;
  }
  .quickview__body {
    padding: 1.4rem 1.25rem 1.6rem;
  }
  .quickview__title {
    font-size: 1.7rem;
  }
}

@media (max-width: 520px) {
  .announcement {
    font-size: 0.78rem;
  }
  .hero__claims {
    gap: 1rem;
  }
  .cart-bar {
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
  }
  .cart-bar__label {
    display: none;
  }
  .cart-bar__total {
    font-size: 1rem;
  }
  .cart-bar__cta {
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
  }
  .drawer__head,
  .drawer__body,
  .drawer__foot {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  .modal {
    padding: 0.75rem;
  }
  .modal__panel {
    max-height: calc(100vh - 1.5rem);
    padding: 1.25rem;
    border-radius: 24px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .done-grid {
    gap: 1.4rem;
  }
  .quickview__cta-price {
    display: none;
  }
  .footer__form {
    flex-direction: column;
  }
  .footer__form .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ingredient__card,
  .btn,
  .faq__a,
  .cart-bar,
  .drawer,
  .scrim,
  .modal,
  .modal__panel {
    transition: none;
  }
  .ingredient--left .ingredient__card:hover,
  .ingredient--right .ingredient__card:hover,
  .btn:hover,
  .product--active {
    transform: none;
  }
}

/* ============================================================
   Storefront pages — interior, PDP, checkout, legal, admin hooks
   ============================================================ */

.page-hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad-x) clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}
.page-hero .section-sub {
  max-width: 560px;
  margin: 1rem auto 0;
}
.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.1rem;
}
.breadcrumbs a:hover {
  color: var(--text-main);
}

/* ---------- product detail ---------- */

.pdp {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) var(--pad-x) var(--section-gap);
}
.pdp__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-sage);
  box-shadow: var(--shadow-card);
}
.pdp__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.pdp__badge {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  background: var(--bg-blush);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pdp__info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.4rem;
}
.pdp__back {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}
.pdp__back:hover {
  color: var(--text-main);
}
.pdp__title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
}
.pdp__tagline {
  color: var(--text-soft);
  font-size: 1.02rem;
}
.pdp__price {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-family: var(--font-header);
  font-size: 1.9rem;
  margin-top: 0.2rem;
}
.pdp__price s {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-soft);
}
.pdp__desc {
  color: var(--text-soft);
  font-size: 1rem;
  max-width: 46ch;
}
.pdp__list {
  list-style: none;
  margin: 0.2rem 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.pdp__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.pdp__list .icon {
  color: var(--accent);
  margin-top: 0.2rem;
}
.pdp__buy {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.8rem;
}
.pdp__buy .btn {
  flex: 1;
  padding: 1rem 1.4rem;
}
.pdp__buy .qty {
  height: 48px;
}
.pdp__buy .qty button {
  width: 36px;
  height: 36px;
}
.pdp__stock {
  font-size: 0.8rem;
  color: var(--text-soft);
}
.pdp__stock--low {
  color: #a4543f;
}
.pdp__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 0.2rem;
}
.pdp__meta a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pdp__details {
  margin-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.pdp__details details {
  border-bottom: 1px solid var(--line);
}
.pdp__details summary {
  cursor: pointer;
  padding: 1rem 0;
  font-size: 0.98rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.pdp__details summary::-webkit-details-marker {
  display: none;
}
.pdp__details summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--accent);
}
.pdp__details details[open] summary::after {
  content: "—";
}
.pdp__details p {
  color: var(--text-soft);
  font-size: 0.93rem;
  padding-bottom: 1rem;
}
.pdp__soldout {
  color: #a4543f;
  font-size: 0.9rem;
}
.related {
  padding: 0 var(--pad-x) var(--section-gap);
}
.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: 1120px;
  margin: 0 auto;
}

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

.checkout-page {
  padding: clamp(1.5rem, 4vw, 3rem) var(--pad-x) var(--section-gap);
}
.checkout-page__head {
  max-width: 1120px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.checkout-page__head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}
.checkout-page__head p {
  color: var(--text-soft);
  font-size: 0.92rem;
}
.checkout-page__grid {
  max-width: 1120px;
  margin: 0 auto;
}
.summary--page {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.summary__items--page {
  gap: 0.9rem;
}
.summary__item-name {
  display: block;
  line-height: 1.3;
}
.summary__item-meta {
  display: block;
  font-size: 0.72rem;
  color: var(--text-soft);
}
.checkout-form__note {
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-top: 0.4rem;
}
.checkout-aside-note {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 0.8rem;
}
.checkout-aside-note .icon {
  color: var(--accent);
  margin-top: 0.15rem;
}
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin: 0.4rem 0 1rem;
}
.terms-check input {
  margin-top: 0.25rem;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
.terms-check a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-banner {
  border-radius: 14px;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.form-banner--error {
  background: #f7e7e2;
  color: #8c3f2e;
  border: 1px solid #eccfc6;
}
.form-banner--info {
  background: var(--bg-sage);
  color: #4c5a45;
  border: 1px solid var(--sage-deep);
}
.field__error {
  font-size: 0.74rem;
  color: #a4543f;
  min-height: 0;
}
.field input.is-invalid,
.field select.is-invalid {
  border-color: #c07a66;
  background: #fff8f6;
}
.demo-banner {
  background: #f3e9d8;
  border: 1px solid #e4d2b4;
  color: #6b5327;
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  max-width: 1120px;
  margin: 0 auto 1.5rem;
}
.demo-banner strong {
  font-weight: 600;
}

/* ---------- success / cancel / demo ---------- */

.result-page {
  min-height: 60vh;
  padding: clamp(2rem, 6vw, 4rem) var(--pad-x) var(--section-gap);
  display: flex;
  justify-content: center;
}
.result-card {
  width: min(720px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: var(--shadow-soft);
  text-align: center;
}
.result-card--wide {
  width: min(880px, 100%);
  text-align: left;
}
.result-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 1.1rem;
  border-radius: var(--radius-full);
  background: var(--bg-sage);
  color: var(--accent);
}
.result-card__icon--blush {
  background: var(--bg-blush);
  color: #a4634f;
}
.result-card h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
}
.result-card__lede {
  color: var(--text-soft);
  margin-top: 0.8rem;
}
.result-card__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
.receipt {
  margin: 1.8rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}
.receipt__rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.receipt__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.receipt__row dd {
  margin: 0;
  color: var(--text-main);
}
.receipt__row--total {
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
  padding-top: 0.7rem;
  font-size: 1rem;
  color: var(--text-main);
}
.receipt__row--total dd {
  font-family: var(--font-header);
  font-size: 1.3rem;
}
.receipt__items {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.receipt__item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.9rem;
}
.receipt__item img {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--bg-sage);
}
.receipt__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  text-align: left;
  margin-top: 1.4rem;
}
.receipt__grid h3 {
  font-size: 0.7rem;
  font-family: var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}
.receipt__grid p {
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.5;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-sage);
  color: #4c5a45;
}
.status-pill--paid,
.status-pill--fulfilled {
  background: #e3ebd9;
  color: #435138;
}
.status-pill--pending {
  background: #f3e9d8;
  color: #6b5327;
}
.status-pill--cancelled {
  background: var(--bg-blush);
  color: #8c3f2e;
}
.order-lookup {
  width: min(480px, 100%);
  margin: 0 auto;
}
.order-lookup .field {
  text-align: left;
}
.empty-state {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1rem;
}
.empty-state__icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--bg-sage);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.empty-state h2 {
  font-size: 1.8rem;
}
.empty-state p {
  color: var(--text-soft);
  margin: 0.5rem 0 1.4rem;
}

/* ---------- legal / prose ---------- */

.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--pad-x) var(--section-gap);
  color: var(--text-main);
}
.legal__meta {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.legal h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin: 2.2rem 0 0.7rem;
}
.legal h3 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin: 1.6rem 0 0.5rem;
}
.legal p {
  color: var(--text-soft);
  margin-bottom: 0.9rem;
  font-size: 1rem;
  line-height: 1.75;
}
.legal ul,
.legal ol {
  color: var(--text-soft);
  padding-left: 1.2rem;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.45rem;
  line-height: 1.7;
}
.legal strong {
  color: var(--text-main);
  font-weight: 600;
}
.legal a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal__callout {
  background: var(--bg-blush);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  margin: 1.2rem 0 1.6rem;
  font-size: 0.95rem;
  color: var(--text-main);
  border: 1px solid #eedbd4;
}
.legal__callout strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-header);
  font-size: 1.1rem;
  font-weight: 400;
}
.legal__toc {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}
.legal__toc h2 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 0.6rem;
}
.legal__toc ol {
  margin: 0;
  padding-left: 1.1rem;
  gap: 0.3rem;
}
.legal__toc a {
  color: var(--text-soft);
  text-decoration: none;
}
.legal__toc a:hover {
  color: var(--text-main);
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--pad-x) var(--section-gap);
  align-items: start;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
}
.contact-info h2 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.contact-info p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.contact-info dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 1.1rem;
}
.contact-info dd {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 120;
  background: var(--text-main);
  color: #f7f5ed;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.15rem;
  font-size: 0.88rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}
.toast--show {
  transform: none;
  opacity: 1;
}
.toast .icon {
  color: #cbd7bb;
}

/* ---------- misc ---------- */

.loading {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  margin-right: 0.6rem;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.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;
}
.footer__cols--wide {
  max-width: 900px;
  grid-template-columns: repeat(4, 1fr);
}
.shipping-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f7f5c;
  background: #eef2e6;
  border-radius: var(--radius-full);
  padding: 0.3rem 0.75rem;
}
.inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: var(--bg-sage);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}

@media (max-width: 900px) {
  .pdp {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .related__grid {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer__cols--wide {
    grid-template-columns: repeat(2, 1fr);
  }
  .receipt__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .contact-card {
    padding: 1.25rem;
  }
}

@media (max-width: 768px) {
  .summary--page {
    position: static;
  }
  .checkout-page__head {
    align-items: flex-start;
    flex-direction: column;
  }
  .pdp__buy {
    flex-wrap: wrap;
  }
  .pdp__buy .btn {
    min-width: 100%;
  }
}

@media (max-width: 520px) {
  .toast {
    right: 0.75rem;
    left: 0.75rem;
    justify-content: center;
  }
  .footer__cols--wide {
    grid-template-columns: 1fr;
  }
}

/* ---------- catalogue filters ---------- */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: -1rem auto 2.25rem;
  max-width: 1120px;
}
.filter-chip {
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.filter-chip:hover {
  border-color: var(--accent);
  color: var(--text-main);
}
.filter-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fdfdfb;
}
.product__name a:hover {
  color: var(--accent);
}
.pdp__skeleton {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
}

.summary__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.summary__title-row .summary__title {
  margin-bottom: 0;
}
.summary__edit {
  font-size: 0.8rem;
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.summary__edit:hover {
  color: var(--text-main);
}
.promo__hint--applied {
  color: #5a6b48;
}
#co-promo-hint,
[data-promo-hint] {
  min-height: 1rem;
}

/* ---------- refinements ---------- */

.receipt {
  text-align: left;
}
body.is-checkout .cart-bar {
  display: none;
}
.admin-table th.num {
  text-align: right;
}

.pdp__media img {
  height: auto;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-self: end;
}

/* ---------- auth pages ---------- */

.auth-page {
  min-height: calc(100vh - 190px);
  display: flex;
  padding: clamp(1.5rem, 4vw, 3rem) var(--pad-x);
}
.auth-card {
  width: min(440px, 100%);
  margin: auto;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-soft);
}
.auth-card .field,
.auth-card .terms-check,
.auth-card .check-line,
.auth-card .form-banner {
  text-align: left;
}
.auth-card .kicker {
  margin-bottom: 0.3rem;
}
.auth-card h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin: 0.4rem 0 0.6rem;
}
.auth-card__lede {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0 auto 1.4rem;
  max-width: 36ch;
}
.auth-card .field {
  margin-bottom: 0.9rem;
}
.auth-card .terms-check {
  margin: 0.4rem 0 0.9rem;
}
.auth-submit {
  width: 100%;
  margin-top: 0.4rem;
}
.auth-switch {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  text-align: center;
}
.auth-switch a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-switch--muted {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.6rem;
  font-size: 0.82rem;
}
.check-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-main);
  margin: 0.3rem 0;
}
.check-line input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

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

.account-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3.5rem) var(--pad-x) var(--section-gap);
}
.account-head {
  max-width: 620px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.account-head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0.35rem 0 0.6rem;
}
.account-head p {
  color: var(--text-soft);
  font-size: 0.95rem;
}
.account-head__meta {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.account-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 auto clamp(1.8rem, 4vw, 2.4rem);
}
.account-tabs button {
  border: 1px solid transparent;
  background: none;
  border-radius: var(--radius-full);
  padding: 0.5rem 1.05rem;
  font-size: 0.88rem;
  color: var(--text-soft);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.account-tabs button:hover {
  background: var(--bg-card);
  border-color: var(--line);
  color: var(--text-main);
}
.account-tabs button.is-active {
  background: var(--bg-sage);
  color: var(--text-main);
  font-weight: 500;
}
.account-tabs__signout {
  margin-left: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.account-panels {
  max-width: 100%;
}
.account-side {
  position: sticky;
  top: calc(var(--header-h) + 1.2rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}
.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-sage);
  color: var(--accent);
  font-family: var(--font-header);
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}
.account-id h1 {
  font-size: 1.35rem;
  line-height: 1.2;
}
.account-id p {
  color: var(--text-soft);
  font-size: 0.82rem;
  margin-top: 0.2rem;
  word-break: break-all;
}
.account-since {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.account-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.account-nav button {
  border: 0;
  background: none;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.account-nav button:hover {
  background: var(--bg-sand);
  color: var(--text-main);
}
.account-nav button.is-active {
  background: var(--bg-sage);
  color: var(--text-main);
  font-weight: 500;
}
.account-signout {
  border: 1px solid var(--line);
  background: none;
  border-radius: var(--radius-full);
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: 0.2rem;
}
.account-signout:hover {
  border-color: var(--accent);
  color: var(--text-main);
}
.account-main {
  min-width: 0;
}
.account-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}
.account-stat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}
.account-stat__label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.account-stat__value {
  display: block;
  font-family: var(--font-header);
  font-size: 2rem;
  line-height: 1.2;
  margin: 0.2rem 0;
}
.account-stat__hint {
  font-size: 0.74rem;
  color: var(--text-soft);
}
.account-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.3rem 1.4rem;
  margin-bottom: 1.2rem;
}
.account-block h2 {
  font-size: 1.35rem;
}
.account-block__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.account-block__head--page {
  margin-bottom: 1.2rem;
}
.account-link {
  border: 0;
  background: none;
  padding: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.account-link:hover {
  color: var(--text-main);
}
.account-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 2rem;
  margin: 0;
}
.account-facts dt {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.account-facts dd {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
}
.account-filters {
  justify-content: flex-start;
  margin: 0 0 1.2rem;
}

/* ---------- account order cards ---------- */

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 0.8rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: center;
}
.order-card__main {
  min-width: 0;
}
.order-card__top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.order-card__number {
  font-family: var(--font-header);
  font-size: 1.1rem;
}
.order-card__meta {
  font-size: 0.82rem;
  color: var(--text-soft);
  margin-top: 0.25rem;
}
.order-card__thumbs {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.6rem;
}
.order-card__thumbs img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-sage);
}
.order-card__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  text-align: right;
}
.order-card__total {
  font-family: var(--font-header);
  font-size: 1.2rem;
}
.order-card__link {
  border: 1px solid var(--line);
  background: none;
  border-radius: var(--radius-full);
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}
.order-card__link:hover {
  border-color: var(--accent);
}
.order-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
}
.order-empty a {
  text-decoration: underline;
}
.status-pill--returned {
  background: #f3e6e1;
  color: #8c4a37;
}

/* ---------- order modal ---------- */

.order-modal {
  max-width: 620px;
}
.order-modal h2 {
  font-size: 1.7rem;
  padding-right: 2rem;
}
.order-modal__meta {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 0.85rem;
  margin: 0.3rem 0 1rem;
}
.order-items {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.order-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.9rem;
}
.order-item img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bg-sage);
}
.order-item small {
  display: block;
  color: var(--text-soft);
  font-size: 0.75rem;
}
.order-totals {
  display: grid;
  gap: 0.35rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
  margin-top: 0.8rem;
}
.order-totals div {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.order-totals div span:last-child {
  color: var(--text-main);
}
.order-totals .order-total {
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
  margin-top: 0.3rem;
  font-size: 1rem;
  color: var(--text-main);
}
.order-totals .order-total span:last-child {
  font-family: var(--font-header);
  font-size: 1.3rem;
}
.order-ship {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.6;
}
.order-ship strong {
  color: var(--text-main);
  font-weight: 500;
}
.order-modal__actions {
  margin-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.order-modal__actions a {
  font-size: 0.82rem;
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1000px) {
  .account-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .account-page {
    grid-template-columns: 1fr;
  }
  .account-side {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.8rem 1rem;
    align-items: center;
  }
  .account-id {
    display: none;
  }
  .account-side {
    padding: 1rem;
  }
  .account-side > .account-signout {
    display: none;
  }
  .account-nav {
    flex-direction: row;
    flex-wrap: wrap;
    border-top: 0;
    padding-top: 0;
    grid-column: 1 / -1;
  }
  .account-signout {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .account-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .account-stats {
    grid-template-columns: 1fr 1fr;
  }
  .order-card {
    grid-template-columns: 1fr;
  }
  .order-card__side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    width: 100%;
  }
  .header-actions {
    gap: 0.35rem;
  }
  .header-actions .bag-btn {
    width: 40px;
    height: 40px;
  }
  .account-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 0.4rem;
  }
  .account-tabs button {
    width: 100%;
    padding: 0.7rem 0.8rem;
  }
  .account-tabs__signout {
    grid-column: 1 / -1;
    justify-self: center;
    margin-left: 0;
  }
}

.field input[readonly] {
  background: var(--bg-sand);
  color: var(--text-soft);
  cursor: not-allowed;
}
.order-card__more {
  align-self: center;
  font-size: 0.75rem;
  color: var(--text-soft);
  padding: 0 0.2rem;
}

/* ============================================================
   Themes — light (default), dark, forest
   ============================================================ */

html {
  color-scheme: light;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-sand: #141612;
  --bg-sage: #1e221a;
  --bg-blush: #241c1a;
  --sage-deep: #2a3124;
  --blush-deep: #332824;
  --bg-card: #1c2018;
  --bg-hero-mid: #1a1e16;
  --bg-hero-end: #121510;
  --text-main: #e8e6df;
  --text-soft: #a8aea0;
  --text-inverse: #141612;
  --accent: #a3b890;
  --accent-deep: #8fa37a;
  --accent-strong: #c5d4b0;
  --line: #2e342a;
  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 24px 60px -28px rgba(0, 0, 0, 0.65);
}

html[data-theme="forest"] {
  color-scheme: light;
  --bg-sand: #e8f0df;
  --bg-sage: #cfe0bc;
  --bg-blush: #dce8d0;
  --sage-deep: #b4c9a0;
  --blush-deep: #c2d6ae;
  --bg-card: #f4faf0;
  --bg-hero-mid: #d8e8c8;
  --bg-hero-end: #c5d8b0;
  --text-main: #24301c;
  --text-soft: #4d5c40;
  --text-inverse: #f4faf0;
  --accent: #4f6b3a;
  --accent-deep: #3f5630;
  --accent-strong: #2f4024;
  --line: #b8c9a4;
  --shadow-soft: 0 10px 30px -10px rgba(36, 48, 28, 0.16);
  --shadow-card: 0 24px 60px -28px rgba(36, 48, 28, 0.3);
}

/* Smooth color transitions for themed elements */
body,
.site-header,
.announcement,
.bag-drawer,
.card,
.btn,
.field input,
.field select,
.field textarea {
  transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

/* ---------- Theme switcher UI ---------- */

.theme-switch {
  position: relative;
}

.theme-switch__btn .theme-icon {
  display: none !important;
}
html:not([data-theme]) .theme-switch__btn .theme-icon--sun,
html[data-theme="light"] .theme-switch__btn .theme-icon--sun { display: block !important; }
html[data-theme="dark"] .theme-switch__btn .theme-icon--moon { display: block !important; }
html[data-theme="forest"] .theme-switch__btn .theme-icon--leaf { display: block !important; }

.theme-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 140px;
  background: var(--bg-sand);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 0.4rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.theme-menu[hidden] {
  display: none !important;
}

.theme-menu__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 0.9rem;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.theme-menu__item:hover,
.theme-menu__item.is-active {
  background: var(--bg-sage);
}

.theme-menu__item .icon {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}
