/* =============================================
   pages.css — secondary pages on the redesign
   (About, Contact, FAQs, Terms, Privacy, Refund & Returns)
   Loaded after style.css and home.css; relies on home.css for the
   tokens, type, buttons, header and footer (body.h-home).

   Blocks:
     p-   shared: page header, legal document, FAQ accordion
     a-   About
     c-   Contact
   ============================================= */

/* Current page in the header */
.h-home .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* ═══════════════════════════════════════════════
   PAGE HEADER — breadcrumb, title, intro, meta
═══════════════════════════════════════════════ */
.p-hero { padding-block: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 56px); }

.p-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--ink-2);
}
.p-crumbs li + li::before {
  content: '/';
  margin-right: 8px;
  opacity: 0.6;
}
.p-crumbs a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.p-title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}
.p-lede {
  max-width: 48ch;
  margin-top: 18px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-2);
}
.p-meta {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-2);
}

/* ═══════════════════════════════════════════════
   LEGAL DOCUMENT — Terms, Privacy, Refund & Returns
   A sticky "On this page" list beside the text on desktop; above it
   on smaller screens. pages.js marks the section in view.

   <div class="h-wrap p-doc">
     <nav class="p-toc" aria-label="On this page"><p class="p-toc-title">On this page</p>
       <ol><li><a href="#overview">Overview</a></li>…</ol></nav>
     <article class="p-prose">
       <section id="overview" aria-labelledby="overview-h"><h2 id="overview-h">Overview</h2><p>…</p></section>
       …
       <aside class="p-note">…</aside>
     </article>
   </div>
═══════════════════════════════════════════════ */
.p-doc {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 3fr;
  gap: 32px;
  align-items: start;
  padding-top: 8px;
  padding-bottom: clamp(72px, 8vw, 120px);
  border-top: 1px solid var(--line);
}

.p-toc {
  position: sticky;
  top: calc(var(--promo-height) + var(--nav-height) + 32px);
  padding-top: 32px;
}
.p-toc-title {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.p-toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.p-toc a {
  position: relative;
  display: block;
  padding: 6px 0 6px 14px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink-2);
  transition: color 0.2s ease;
}
/* A short clay bar marks the section you're reading */
.p-toc a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--clay);
  transform: scaleY(0);
  transition: transform 0.25s var(--ease-out);
}
.p-toc a[aria-current="true"] { color: var(--ink); }
.p-toc a[aria-current="true"]::before { transform: scaleY(1); }

.p-prose { max-width: 70ch; min-width: 0; }
.p-prose > section {
  padding-block: 32px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--promo-height) + var(--nav-height) + 16px);
}
.p-prose > section:last-of-type { border-bottom: 0; }
.p-prose h2 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.p-prose h3 {
  margin: 22px 0 8px;
  font-size: 17px;
  font-weight: 600;
}
.p-prose p,
.p-prose li {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
}
.p-prose p + p { margin-top: 14px; }
.p-prose ul,
.p-prose ol {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.p-prose ul li,
.p-prose ol li { position: relative; padding-left: 20px; }
.p-prose ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clay);
}
.p-prose ol { counter-reset: p-ol; }
.p-prose ol li { counter-increment: p-ol; padding-left: 26px; }
.p-prose ol li::before {
  content: counter(p-ol) '.';
  position: absolute;
  left: 0;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
/* Text links only — the closing note's button is an <a> too */
.p-prose a:not(.h-btn) {
  color: var(--oxblood);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.p-prose strong { font-weight: 600; }

/* "Questions?" note that closes a document or the FAQs */
.p-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 40px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--tile);
}
.p-note-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.p-note-text { margin-top: 4px; font-size: 15px; color: var(--ink-2); }

/* ═══════════════════════════════════════════════
   FAQ ACCORDION — FAQs page
   Same mechanics as the footer disclosure (home.js .h-disclosure is
   dark-themed; this is its light twin, driven by pages.js).

   <div class="p-acc">
     <h3 class="p-acc-head"><button type="button" class="p-acc-trigger" aria-expanded="false" aria-controls="faq-1" id="faq-1-btn">
       <span>Question?</span><svg class="p-acc-chevron">…</svg></button></h3>
     <div class="p-acc-panel" id="faq-1" role="region" aria-labelledby="faq-1-btn" inert>
       <div class="p-acc-body"><p>Answer.</p></div></div>
   </div>
═══════════════════════════════════════════════ */
.p-faq-group + .p-faq-group { margin-top: 48px; }
.p-faq-group > h2 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--promo-height) + var(--nav-height) + 16px);
}

.p-acc { border-bottom: 1px solid var(--line); }
.p-acc-head { margin: 0; font: inherit; }
.p-acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 64px;
  padding: 16px 0;
  border: 0;
  background: none;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.p-acc-chevron {
  flex: none;
  color: var(--ink-2);
  transition: transform 0.35s var(--ease-ios), color 0.2s ease;
}
.p-acc.is-open .p-acc-chevron { transform: rotate(180deg); color: var(--ink); }

.p-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease-out);
}
.p-acc.is-open .p-acc-panel {
  grid-template-rows: 1fr;
  transition-duration: 0.42s;
  transition-timing-function: var(--ease-ios);
}
.p-acc-body {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.2s var(--ease-out);
}
.p-acc.is-open .p-acc-body {
  opacity: 1;
  transform: none;
  transition-duration: 0.3s, 0.4s;
  transition-delay: 0.06s;
}
.p-acc-body > :last-child { margin-bottom: 24px; }
.p-acc-body p,
.p-acc-body li {
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
}
.p-acc-body p + p { margin-top: 12px; }
.p-acc-body a { color: var(--oxblood); text-decoration: underline; text-underline-offset: 2px; }
.p-acc-trigger:focus-visible { outline-offset: -2px; }

@media (hover: hover) and (pointer: fine) {
  .p-toc a:hover { color: var(--ink); }
  .p-acc-trigger:hover .p-acc-chevron { color: var(--ink); }
}

/* ═══════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════ */
/* Hero: copy left, photo right */
.a-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.a-hero .p-title { font-size: clamp(48px, 6.4vw, 96px); letter-spacing: -0.04em; }
.a-hero-copy .h-btn { margin-top: 32px; }
.a-hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--night);
}
.a-hero-media > img,
.a-hero-media [data-media-slot] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.a-hero-media > img { animation: h-emerge 1.1s var(--ease-out) 0.1s both; }
.a-hero-copy > * { animation: h-rise 0.8s var(--ease-out) both; }
.a-hero-copy > :nth-child(2) { animation-delay: 60ms; }
.a-hero-copy > :nth-child(3) { animation-delay: 120ms; }
.a-hero-copy > :nth-child(4) { animation-delay: 180ms; }

/* The symbol: the comb mark large on peach, the story beside it */
.a-symbol { padding-block: clamp(72px, 9vw, 136px); }
.a-symbol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.a-symbol-mark {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--peach);
}
.a-symbol-mark img { width: 38%; height: auto; }
.a-symbol-copy .h-body-l { margin-top: 20px; color: var(--ink); }
.a-symbol-copy .h-body-l em { font-style: italic; }

/* Chapters: numbered rows, like the homepage ritual steps, on paper */
.a-chapters { padding-block: 0 clamp(72px, 9vw, 136px); }
.a-chapters-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 40px 32px;
  align-items: start;
}
.a-chapters-head {
  position: sticky;
  top: calc(var(--promo-height) + var(--nav-height) + 32px);
}
.a-chapter-list { margin: 0; padding: 0; list-style: none; }
.a-chapter {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px 16px;
  padding-block: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}
.a-chapter:last-child { border-bottom: 0; }
.a-chapter-n {
  padding-top: 8px;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--clay-ink);
}
.a-chapter h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.a-chapter p {
  grid-column: 2;
  max-width: 60ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}
.a-chapter p + p { margin-top: 12px; }

/* Values: four columns on a tile band */
.a-values {
  padding-block: clamp(72px, 8vw, 120px);
  background: var(--tile);
}
.a-values .h-h2 { margin-bottom: clamp(32px, 4vw, 56px); }
.a-values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.a-value-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--oxblood);
}
.a-value h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.a-value p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Mission: the quote on the dark band, peach type */
.a-mission {
  padding-block: clamp(88px, 10vw, 160px);
  background: var(--night);
  color: #fff;
}
.a-mission-inner { max-width: 1080px; }
.a-mission blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--peach);
  text-wrap: balance;
}
.a-mission figcaption {
  margin-top: 28px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.64);
}
.a-mission .h-btn { margin-top: 40px; }

/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
.c-section { padding-bottom: clamp(72px, 8vw, 120px); }
.c-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

/* Details: icon, label, value rows */
.c-details { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.c-detail {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: center;
  padding-block: 14px;
}
.c-detail-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tile);
  color: var(--oxblood);
}
.c-detail-label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.c-detail-value { margin-top: 2px; font-size: 17px; color: var(--ink); }
.c-detail-value a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Quick answers before writing in */
.c-quick { margin-top: 40px; }
.c-quick-title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.c-quick ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.c-quick a {
  display: grid;
  grid-template-columns: 20px 1fr 16px;
  gap: 14px;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink);
}
.c-quick li:last-child a { border-bottom: 0; } /* no stray rule under the final link */
.c-quick a svg:first-child { color: var(--ink-2); }
.c-quick a svg:last-child { color: var(--ink-2); transition: transform 0.2s var(--ease-out); }

/* Form card */
.c-card {
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.c-card-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.c-card-sub { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.c-form-fields { margin-top: 28px; }
.c-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.c-field { margin-bottom: 16px; }
.c-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.c-field input,
.c-field select,
.c-field textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(28, 22, 19, 0.2);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-text);
  font-size: 16px; /* 16px keeps iOS from zooming on focus */
  font-weight: 400;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.c-field textarea {
  height: auto;
  min-height: 148px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}
.c-field select {
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b5d55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  cursor: pointer;
}
.c-field select:invalid { color: rgba(28, 22, 19, 0.45); }
.c-field input::placeholder,
.c-field textarea::placeholder { color: rgba(28, 22, 19, 0.4); }
.c-field input:focus,
.c-field select:focus,
.c-field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(79, 13, 0, 0.12);
}
.c-field [aria-invalid="true"] { border-color: #b3261e; }
.c-field-error {
  margin-top: 6px;
  font-size: 13px;
  color: #b3261e;
}
.c-field-error:empty { display: none; }

.c-submit { width: 100%; height: 52px; margin-top: 8px; }
.c-form[data-state="sending"] .c-submit { cursor: progress; }
.c-form[data-state="sending"] .c-submit-label { animation: h-breathe 0.9s ease-in-out infinite alternate; }
.c-form-note { margin-top: 14px; font-size: 14px; color: var(--ink-2); text-align: center; }
.c-form-error { margin-top: 14px; } /* holds an .h-alert (home.css) */
.c-form-error:empty { display: none; }

/* Sent: the card swaps to a confirmation; the check draws itself */
.c-sent {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-block: 48px 24px;
  text-align: center;
  animation: h-rise 0.5s var(--ease-out) both;
}
.c-sent[hidden] { display: none; }
.c-sent-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--oxblood);
}
.c-sent-icon path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: c-draw 0.5s var(--ease-out) 0.25s forwards;
}
@keyframes c-draw { to { stroke-dashoffset: 0; } }
.c-sent-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.c-sent-text { max-width: 34ch; font-size: 16px; color: var(--ink-2); }
.c-sent .h-btn { margin-top: 12px; }

@media (hover: hover) and (pointer: fine) {
  .c-quick a:hover svg:last-child { transform: translateX(3px); }
  .c-detail-value a:hover { color: var(--oxblood); }
}

/* ═══════════════════════════════════════════════
   ACCOUNT
   Signed out: one centred card. Signed in: greeting + sign out, then
   cards — orders across the top, profile / password / bag / saved in
   two columns. Fields reuse the Contact form's .c-field.
═══════════════════════════════════════════════ */
.ac-guest { padding-block: clamp(64px, 9vw, 136px); }
.ac-guest-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 480px;
  margin-inline: auto;
  text-align: center;
  animation: h-rise 0.5s var(--ease-out) both;
}
.ac-guest-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}
.ac-guest-text { max-width: 36ch; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.ac-guest-actions { display: flex; align-items: center; gap: 28px; margin-top: 18px; }

.ac-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.ac-signout { flex: none; }

.ac-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: clamp(72px, 8vw, 120px);
}
.ac-card {
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  animation: h-rise 0.5s var(--ease-out) both;
}
.ac-card:nth-child(2) { animation-delay: 50ms; }
.ac-card:nth-child(3) { animation-delay: 100ms; }
.ac-card:nth-child(4) { animation-delay: 150ms; }
.ac-card:nth-child(5) { animation-delay: 200ms; }
.ac-orders { grid-column: 1 / -1; }
.ac-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.ac-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.ac-card .h-btn[hidden],
.ac-edit[hidden] { display: none; }

.ac-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: none;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.16s var(--ease-out);
}
.ac-edit:active { transform: scale(0.96); }

/* Profile rows */
.ac-rows { margin: 0; }
.ac-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}
.ac-row dt { font-size: 14px; color: var(--ink-2); }
.ac-row dd { margin: 0; font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
.ac-prompt {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--oxblood);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.ac-pw { position: relative; }
.ac-pw input { padding-right: 48px; }
.ac-eye {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}

.ac-note { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
.ac-error { margin: 4px 0 12px; font-size: 14px; line-height: 1.4; color: #b3261e; }
.ac-success { margin: 4px 0 12px; font-size: 14px; color: #1f5f3a; }
.ac-error:empty,
.ac-success:empty { display: none; }
.ac-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 18px; }

.ac-empty { font-size: 16px; color: var(--ink-2); }
.ac-empty a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.ac-text { margin-top: 14px; font-size: 16px; }
.ac-card > .h-btn { margin-top: 18px; }

/* Orders */
.ac-orders-list { margin: 0; padding: 0; list-style: none; }
.ac-order { padding-block: 16px; border-top: 1px solid var(--line); }
.ac-order-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.ac-order-ref { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ac-order-date { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.ac-order-total { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ac-order-items { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* Bag thumbnails and saved list (thumbs reuse the wishlist's .wl-thumb) */
.ac-thumbs { display: flex; gap: 8px; }
.ac-thumbs .wl-thumb { width: 56px; }
.ac-saved { margin: 0; padding: 0; list-style: none; }
.ac-saved a {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-block: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.ac-saved li:first-child a { border-top: 0; padding-top: 0; }
.ac-saved-name { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 500; }
.ac-saved-desc { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }

@media (hover: hover) and (pointer: fine) {
  .ac-edit:hover { border-color: var(--ink); }
  .ac-eye:hover { color: var(--ink); background: var(--tile); }
  .ac-saved a:hover .ac-saved-name { text-decoration: underline; text-underline-offset: 3px; }
}

@media (max-width: 768px) {
  .ac-grid { grid-template-columns: 1fr; }
  .ac-hero { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .ac-guest-actions { flex-direction: column; gap: 14px; width: 100%; }
  .ac-guest-actions .h-btn-primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-card,
  .ac-guest-card { animation: h-fade 0.4s ease both; }
}

/* ═══════════════════════════════════════════════
   PRODUCT — product.html (rendered by its page script)
   Gallery left (the "Find your size" dissolve + size thumbnails),
   buy panel right and sticky on desktop; details accordions and the
   rest of the collection below. Buy now's express form and the gift
   modal reuse the Contact form's .c-field.
═══════════════════════════════════════════════ */
.pp-loading,
.pp-missing { padding-block: clamp(64px, 9vw, 136px); color: var(--ink-2); }
.pp-missing { display: grid; justify-items: start; gap: 16px; }
.pp-crumbs-wrap { padding-block: clamp(24px, 3vw, 40px) 20px; }

.pp-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
  padding-bottom: clamp(64px, 8vw, 112px);
}
.pp-gallery { min-width: 0; }
.pp-media { aspect-ratio: 4 / 5; }
.pp-badges {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
}
.pp-badges span {
  padding: 6px 11px;
  border-radius: var(--radius-btn);
  background: rgba(252, 249, 245, 0.9);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

.pp-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.pp-thumb {
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pp-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--tile);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 0.2s ease, transform 0.16s var(--ease-out);
}
.pp-thumb:active img { transform: scale(0.97); }
.pp-thumb[aria-pressed="true"] { color: var(--ink); }
.pp-thumb[aria-pressed="true"] img { box-shadow: 0 0 0 2px var(--ink); }

.pp-info {
  position: sticky;
  top: calc(var(--promo-height) + var(--nav-height) + 24px);
  min-width: 0;
}
.pp-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}
.pp-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}
.pp-price {
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.pp-meta { font-size: 15px; color: var(--ink-2); text-align: right; }
.pp-desc {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}

.pp-seg { margin-top: 28px; }
.pp-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.pp-buy {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 10px;
  margin-top: 24px;
}
.pp-add { height: 52px; }
.pp-fave {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(28, 22, 19, 0.2);
  border-radius: var(--radius-btn);
  background: none;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.16s var(--ease-out);
}
.pp-fave:active { transform: scale(0.92); }
.pp-fave[aria-pressed="true"] { color: var(--oxblood); border-color: var(--oxblood); }
.pp-fave[aria-pressed="true"] svg { animation: s-pop 0.35s var(--ease-out); }
@keyframes s-pop { 40% { transform: scale(1.25); } }

.pp-buy-now {
  width: 100%;
  height: 52px;
  margin-top: 10px;
  border: 1px solid var(--ink);
  background: none;
  color: var(--ink);
}
.pp-soon-note { margin-top: 12px; font-size: 14px; color: var(--ink-2); }

/* Buy now: express checkout, revealed in place */
.pp-express {
  display: none;
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  animation: h-rise 0.4s var(--ease-out) both;
}
.pp-express.visible { display: block; }
.pp-express-title {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.pp-express-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
.pp-express-actions .h-btn-primary { flex: 1; height: 52px; }
.pp-error { margin: 4px 0 8px; font-size: 14px; line-height: 1.45; color: #b3261e; }
.pp-error:empty { display: none; }
.pp-error a { color: inherit; font-weight: 600; text-decoration: underline; }

/* Payment status — the bar itself (home.css .h-alert) carries the colour */
.pp-pay-success { display: none; margin-top: 16px; }
.pp-pay-success.visible { display: block; }

.pp-gift {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 6px 0;
  border: 0;
  background: none;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
#pdGiftIndicator:not(:empty) { margin-top: 20px; }

.pp-perks {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
}
.pp-perks li { display: flex; align-items: center; gap: 12px; }
.pp-perks svg { flex: none; color: var(--oxblood); }

/* Details */
.pp-details { padding-block: clamp(56px, 7vw, 104px); border-top: 1px solid var(--line); }
.pp-details-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 24px 32px;
  align-items: start;
}
.pp-list,
.pp-free { display: grid; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.pp-list li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.pp-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--clay);
}
.pp-free li { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--ink-2); }
.pp-free svg { flex: none; color: var(--oxblood); }

/* More from Duafe (homepage tiles) */
.pp-more { padding-block: clamp(56px, 7vw, 104px); background: var(--tile); }
.pp-more .h-h2 { margin-bottom: 28px; }
.pp-more .h-tile-media { background: var(--paper); }

/* Gift modal — the sign-in card's look */
.h-home .gift-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 15, 12, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.h-home .gift-modal-overlay.is-open { opacity: 1; transition-duration: 0.3s; }
.h-home .gift-modal-box {
  --gm-pad-x: 32px;
  --gm-pad-b: 28px;
  position: relative;
  width: 460px;
  max-width: 100%;
  max-height: min(90vh, 820px);
  overflow-y: auto;
  padding: 40px var(--gm-pad-x) var(--gm-pad-b);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(28, 22, 19, 0.25);
  font-family: var(--font-text);
  color: var(--ink);
  transform: translateY(8px) scale(0.97);
  transition: transform 0.22s var(--ease-out);
}
.h-home .gift-modal-overlay.is-open .gift-modal-box { transform: none; transition: transform 0.4s var(--ease-ios); }
.h-home .gift-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}
.h-home .gift-modal-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--oxblood);
}
.h-home .gift-modal-heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
}
.h-home .gift-modal-sub { margin: 8px 0 24px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.h-home .gift-req { color: var(--oxblood); }
.h-home .gift-optional { font-weight: 400; color: var(--ink-2); }
.h-home .gift-modal-error { margin: 0 0 12px; font-size: 14px; color: #b3261e; }
/* The buttons stay pinned to the bottom of the card while the fields scroll.
   style.css stacks them in a column, where flex: 1 would collapse the
   button's height — so: a row, and a fixed 52px button. */
.h-home .gift-modal-actions {
  position: sticky;
  bottom: calc(var(--gm-pad-b) * -1);
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px 24px;
  margin: 12px calc(var(--gm-pad-x) * -1) calc(var(--gm-pad-b) * -1);
  padding: 16px var(--gm-pad-x) var(--gm-pad-b);
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.h-home .gift-modal-actions .h-btn-primary { flex: 1 1 auto; height: 52px; }
.h-home .gift-modal-fields .c-field textarea { min-height: 96px; }

/* Toast */
.h-home .pd-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 450;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-text);
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.3s var(--ease-out);
}
.h-home .pd-toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (hover: hover) and (pointer: fine) {
  .pp-fave:hover { border-color: var(--ink); }
  .pp-buy-now:hover { background: var(--ink); color: var(--paper); }
  .pp-thumb:hover img { box-shadow: 0 0 0 1px var(--ink-2); }
  .pp-gift:hover { color: var(--oxblood); }
  .h-home .gift-modal-close:hover { background: var(--tile); }
}

@media (max-width: 900px) {
  .pp-grid,
  .pp-details-grid { grid-template-columns: 1fr; }
  .pp-info { position: static; }
}
@media (max-width: 640px) {
  .pp-thumbs { grid-template-columns: repeat(3, 1fr); }
  .pp-express { padding: 20px; }
  /* Phones: the gift modal rises as a sheet */
  .h-home .gift-modal-overlay { align-items: flex-end !important; padding: 0; }
  .h-home .gift-modal-box {
    --gm-pad-x: 24px;
    --gm-pad-b: calc(20px + env(safe-area-inset-bottom));
    width: 100%;
    height: auto;      /* style.css makes it fill the screen here */
    max-height: 92vh;
    padding: 36px var(--gm-pad-x) var(--gm-pad-b);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pp-express,
  .pp-pay-success.visible { animation: h-fade 0.3s ease both; }
  .h-home .gift-modal-box,
  .h-home .gift-modal-overlay.is-open .gift-modal-box { transform: none; transition: none; }
}

/* ═══════════════════════════════════════════════
   WHOLESALE — the legal document layout, plus the enquiry
   button in the header and an "at a glance" strip
═══════════════════════════════════════════════ */
.w-cta { margin-top: 28px; }
.w-facts { padding-bottom: clamp(40px, 5vw, 64px); }
.w-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 auto;
  list-style: none;
}
.w-fact {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--tile);
}
.w-fact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--oxblood);
}
.w-fact-label { font-size: 14px; color: var(--ink-2); }
.w-fact-value {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
@media (max-width: 768px) {
  .w-facts-grid { grid-template-columns: 1fr; }
  .w-fact { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: center; padding: 18px; }
  .w-fact-icon { grid-row: span 2; margin: 0; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .p-doc,
  .a-chapters-grid { grid-template-columns: 1fr; }
  .p-toc,
  .a-chapters-head { position: static; }
  .p-toc { padding-top: 24px; }
  .p-toc ol { display: flex; flex-wrap: wrap; gap: 8px; }
  .p-toc a {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 99px;
    font-size: 14px;
  }
  .p-toc a::before { display: none; }
  .p-toc a[aria-current="true"] { border-color: var(--ink); }
  .a-values-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .c-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .a-hero-grid,
  .a-symbol-grid { grid-template-columns: 1fr; }
  /* Square and biased low, so the crop keeps the bottle's label and
     illustration instead of cutting through them */
  .a-hero-media { aspect-ratio: 1 / 1; }
  .a-hero-media > img { object-position: 50% 75%; }
  .a-symbol { padding-block: 48px 64px; }
  .a-symbol-mark { aspect-ratio: 16 / 10; }
  .a-symbol-mark img { width: 22%; }
  .a-mission blockquote { font-size: 26px; line-height: 1.18; }
}

@media (max-width: 640px) {
  /* Number sits above the title so paragraphs get the full width */
  .a-chapter { grid-template-columns: 1fr; gap: 6px; }
  .a-chapter-n { padding-top: 0; }
  .a-chapter p { grid-column: 1; }
  /* Values: icon beside its title instead of stacked above it */
  .a-values-grid { grid-template-columns: 1fr; row-gap: 28px; }
  .a-value { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; align-items: center; }
  .a-value-icon { width: 40px; height: 40px; margin: 0; }
  .a-value p { grid-column: 1 / -1; }
  .c-row { grid-template-columns: 1fr; gap: 0; }
  .p-note { padding: 22px; }
  .p-note .h-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .a-hero-copy > *,
  .a-hero-media > img,
  .c-sent { animation: h-fade 0.4s ease both; }
  .c-sent-icon path { animation: none; stroke-dashoffset: 0; }
  .p-acc-body,
  .p-acc.is-open .p-acc-body { transform: none; }
}
