/*
Theme Name: The Scented Pathway
Theme URI: https://thescentedpathway.kiwi
Author: The Scented Pathway
Description: Warm Kraft design for The Scented Pathway, handcrafted cold-process soap from the Waikato. Built for WooCommerce. Fonts: Zodiak + Switzer (Fontshare).
Version: 1.9.0
Requires at least: 6.4
Requires PHP: 7.4
WC requires at least: 8.6
Text Domain: scented-pathway
*/


:root {
  --salt: #fbf6ef;        /* page ground (base-3) */
  --white: #ffffff;
  --mist: #f3e8d9;        /* image wells (base-2) */
  --foam: #eee2d4;        /* pale kraft band */
  --line: #e2cdac;        /* hairlines */
  --ink: #2b2012;         /* text (espresso) */
  --ink-soft: #5f4b33;    /* secondary text */
  --paua: #715022;        /* primary (accent) */
  --paua-deep: #382710;   /* deep */
  --kelp: #8b5e34;        /* umber */
  --gold: #a87733;

  --display: "Zodiak", Georgia, serif;
  --text: "Switzer", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .12 0 0 0 0 .07 0 0 0 .19 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tide: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='10' viewBox='0 0 120 10'%3E%3Cpath d='M0 5 C15 1 25 1 40 5 S65 9 80 5 S105 1 120 5' fill='none' stroke='%23a87733' stroke-width='1.4'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scrollbar-color: #c6a97f var(--salt); scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--salt);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--foam); color: var(--paua-deep); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
:focus-visible { outline: 2px solid var(--paua); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 {
  font-family: var(--display); font-weight: 400; letter-spacing: -0.02em;
  line-height: 1.08; margin: 0; text-wrap: balance;
}
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- notice + header ---------- */
.notice {
  background: var(--paua); color: #fff; letter-spacing: .02em;
  font-size: .875rem; text-align: center; padding: .55rem var(--gutter);
}
.notice b { color: #fff; font-weight: 500; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 246, 239, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 136px; transition: height .4s var(--ease); }
.logo img { height: 116px; width: auto; transition: height .4s var(--ease); }
.site-header.is-scrolled .wrap { height: 84px; }
.site-header.is-scrolled .logo img { height: 68px; }
.nav ul { display: flex; gap: clamp(1.25rem, 2.4vw, 2.25rem); list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: .975rem; font-weight: 500; padding-block: .4rem; white-space: nowrap; }
.nav a:hover { color: var(--paua); }
@media (max-width: 1060px) { .nav ul { gap: 1rem; } .nav a { font-size: .9rem; } .site-header .wrap { gap: 1.25rem; } }
.nav a[aria-current="page"] {
  color: var(--paua);
  background: var(--tide) left bottom / 60px 6px repeat-x;
}
.header-tools { display: flex; align-items: center; gap: .5rem; }
.bag {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 500 .95rem var(--text); color: var(--ink); text-decoration: none;
  padding: .55rem .95rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  background: var(--white);
}
.bag svg { width: 18px; height: 18px; }
.bag-count {
  min-width: 1.4rem; height: 1.4rem; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--paua); color: #fff; font-size: .75rem; font-variant-numeric: tabular-nums;
}
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; font-weight: 500; padding: .55rem .95rem;
  border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: var(--white);
}
.menu summary::-webkit-details-marker { display: none; }
.menu ul {
  position: absolute; right: 0; top: calc(100% + .6rem); min-width: 14rem;
  list-style: none; margin: 0; padding: .5rem; background: var(--white);
  border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(43, 32, 18, .45);
}
.menu a { display: block; padding: .6rem .8rem; border-radius: 8px; text-decoration: none; }
.menu a:hover, .menu a[aria-current="page"] { background: var(--mist); color: var(--paua-deep); }

/* ---------- buttons + links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 500 1rem/1 var(--text); text-decoration: none; cursor: pointer;
  padding: 1rem 1.5rem; border-radius: 999px; border: 0;
  transition: background-color .2s, box-shadow .35s var(--ease), transform .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--paua); color: #fff; }
.btn-primary:hover { background: var(--paua-deep); box-shadow: 0 10px 24px -12px rgba(56, 39, 16, .6); transform: translateY(-1px); }
.btn-quiet { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1px var(--paua); color: var(--paua); }
.btn-small { padding: .65rem 1rem; font-size: .9rem; }
.link-tide {
  font-weight: 500; text-decoration: none; padding-bottom: .3rem;
  background: var(--tide) left bottom / 60px 6px repeat-x;
}
.link-tide:hover { color: var(--paua); }

/* ---------- section rhythm ---------- */
.section { padding-block: clamp(2.5rem, 5vw, 4.25rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.section-head p { color: var(--ink-soft); max-width: 40ch; margin: 0; }
.tide-rule { height: 10px; background: var(--tide) left center / 120px 10px repeat-x; opacity: .45; border: 0; margin: 0; }

/* ---------- product card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(1.25rem, 2.2vw, 2rem); }
.card {
  display: flex; flex-direction: column;
  background: var(--white); border-radius: 16px; padding: 10px 10px 16px;
  box-shadow: 0 1px 2px rgba(43, 32, 18, .06), 0 10px 28px -14px rgba(43, 32, 18, .22);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover, .card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 2px 4px rgba(43, 32, 18, .06), 0 26px 44px -18px rgba(43, 32, 18, .38);
}
.card-media {
  display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--mist);
  border: 0; padding: 0; cursor: pointer; width: 100%;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.12) contrast(1.05); transition: transform .9s var(--ease), filter .5s; }
.card:hover .card-media img { transform: scale(1.06); filter: saturate(1.2) contrast(1.07); }
.card-body { padding: 1rem .45rem 0; display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.card:hover [data-add] { background: var(--paua); color: #fff; box-shadow: none; }
.card-name {
  font-family: var(--display); font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em;
  background: none; border: 0; padding: 0; color: inherit; text-align: left; cursor: pointer;
}
.card-name:hover { color: var(--paua); }
.card-notes { color: var(--ink-soft); font-size: .925rem; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .9rem; }
.price { font-weight: 500; font-variant-numeric: tabular-nums; }

/* stock level, from the store's inventory count */
.stock { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 500; line-height: 1.2; color: var(--ink-soft); }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; flex: none; }
.stock[data-level="plenty"] { color: #4f6b2c; }
.stock[data-level="in"] { color: #7a5a1f; }
.stock[data-level="limited"] { color: #a4431f; }
.stock[data-level="out"] { color: var(--ink-soft); }
.card-body .stock { margin-top: .45rem; }
.card.is-sold-out .card-media img { filter: grayscale(.6) opacity(.75); }
[data-add]:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- footer ---------- */
.site-footer {
  --kraft: #c8a073;
  position: relative; margin-top: 24px; color: var(--ink);
  background: var(--kraft) var(--grain);
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 56px;
  background: url("assets/footer-edge.svg") left bottom / 1600px 56px repeat-x; pointer-events: none;
}
.site-footer .wrap { padding-block: 2.5rem 1.75rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.f-name { font-family: var(--display); font-size: 1.75rem; color: var(--paua-deep); line-height: 1.1; }
.site-footer p { margin-top: .75rem; max-width: 34ch; }
.site-footer h2 { font: 500 .95rem var(--text); color: var(--paua-deep); margin-bottom: .9rem; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paua-deep); text-decoration: underline; }
.f-legal {
  grid-column: 1 / -1; border-top: 1px solid rgba(43, 32, 18, .2); padding-top: 1.25rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .875rem; color: #3d2c17;
}

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  transform: translate(-50%, calc(100% + 48px)); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
  background: var(--ink); color: #fff; padding: .85rem 1.2rem; border-radius: 999px;
  font-size: .95rem; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); max-width: calc(100vw - 32px);
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease); }

/* ---------- responsive (shared) ---------- */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; }
  .site-header .wrap { height: 104px; }
  .logo img { height: 88px; }
  .site-header.is-scrolled .wrap { height: 72px; }
  .site-header.is-scrolled .logo img { height: 56px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .f-about { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .bag-label { display: none; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- home ---------- */
.hero { padding-block: clamp(1.1rem, 2.6vw, 2.25rem) clamp(1.5rem, 3vw, 2.6rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.95rem); line-height: 1.02; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--paua); }
.hero-lede { font-size: clamp(1rem, 1.2vw, 1.1rem); color: var(--ink-soft); max-width: 40ch; margin: 1.1rem 0 1.5rem; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 1.75rem; flex-wrap: wrap; margin: 1.5rem 0 0; padding: .85rem 0 0; list-style: none; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }
.hero-facts b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.01em; }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: 14px; }
.hero-photo figcaption {
  position: absolute; left: 16px; bottom: 16px; background: rgba(255, 255, 255, .94);
  padding: .7rem 1rem; border-radius: 10px; font-size: .9rem; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .4);
}
.hero-photo figcaption b { font-family: var(--display); font-weight: 400; font-size: 1.1rem; display: block; }

.cat-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cat-index a {
  display: grid; grid-template-columns: 132px minmax(0, 1fr) auto 32px; align-items: center; gap: 1.5rem;
  padding: 1.1rem .25rem; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background-color .3s, padding .5s var(--ease);
}
.cat-index a:hover { background: var(--white); padding-inline: 1rem; }
.ci-thumbs { display: flex; }
.ci-thumbs img { width: 52px; height: 52px; border-radius: 999px; object-fit: cover; border: 3px solid var(--salt); margin-right: -14px; }
.cat-index a:hover .ci-thumbs img { border-color: var(--white); }
.ci-name { font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.015em; }
.ci-count { color: var(--ink-soft); font-size: .95rem; font-variant-numeric: tabular-nums; }
.ci-go svg { width: 22px; height: 22px; color: var(--paua); transition: transform .4s var(--ease); }
.cat-index a:hover .ci-go svg { transform: translateX(4px); }

.story { background: var(--foam); }
.section.story { padding-block: clamp(1.9rem, 3.75vw, 3.2rem); }
.story .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4.5vw, 4.5rem); align-items: center; }
.story-photo img { display: block; border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; object-position: 45% 50%; width: 100%; height: auto; }
.story h2 { font-size: clamp(1.6rem, 3vw, 2.45rem); margin-bottom: .9rem; }
.story blockquote { margin: 0 0 1.1rem; font-family: var(--display); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.35; color: var(--paua-deep); }
.story blockquote footer { font: 400 .95rem var(--text); color: var(--ink-soft); margin-top: .75rem; }
.method { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 1.75rem; }
.method li { border-top: 1px solid rgba(56, 39, 16, .2); padding-top: .75rem; font-size: .925rem; color: var(--ink-soft); }
.method b { display: block; color: var(--ink); font-weight: 500; margin-bottom: .2rem; }

/* showcase: real photo in a pill frame, softened copy behind, callouts */
.showcase { position: relative; overflow: hidden; background: #2b2012; color: #fff; }
.showcase-bg {
  position: absolute; inset: -60px;
  background: url("assets/beach-bar.jpg") 50% 50% / cover;
  filter: blur(18px) saturate(.75) brightness(.5);
}
.showcase-stage { position: relative; max-width: 1440px; margin-inline: auto; aspect-ratio: 16 / 6; }
.showcase-frame {
  position: absolute; left: 50%; top: 6%; bottom: 6%; transform: translateX(-50%);
  aspect-ratio: 3 / 2; margin: 0; border-radius: 28px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .18);
}
.showcase-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.showcase-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.showcase-lines polyline { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 1; vector-effect: non-scaling-stroke; }
.callouts { list-style: none; margin: 0; padding: 0; }
.callouts li {
  position: absolute; display: flex; align-items: center; gap: .75rem;
  font: 500 .8rem/1.3 var(--text); letter-spacing: .07em; text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.callouts .ico { flex: none; width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .08); }
.callouts svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.callouts .c1 { left: 4%; top: calc(22% - 50px); }
.callouts .c2 { left: 4%; top: calc(80% - 50px); }
.callouts .c3 { right: 4%; top: calc(22% - 50px); flex-direction: row-reverse; text-align: right; }
.callouts .c4 { right: 4%; top: calc(80% - 50px); flex-direction: row-reverse; text-align: right; }
.callouts .c4 svg { fill: #fff; stroke: none; }
.f-badge { display: block; height: 46px; width: auto; margin: 1.1rem 0 0 -12px; mix-blend-mode: multiply; opacity: .85; filter: saturate(.75); border-radius: 4px; }

.close-cta .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: end; }
.section.close-cta { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.close-cta h2 { font-size: clamp(1.5rem, 3.3vw, 2.625rem); }
.close-cta p { color: var(--ink-soft); }

/* ---------- shop ---------- */
.page-head { padding-block: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1rem, 2vw, 1.75rem); }
.page-head h1 { font-size: clamp(2.6rem, 5.4vw, 4.75rem); letter-spacing: -0.03em; }
.page-head p { color: var(--ink-soft); max-width: 52ch; margin: 1rem 0 0; font-size: 1.1rem; }
.page-head-wide p { max-width: none; }
@media (min-width: 1100px) { .page-head-wide p { font-size: 1rem; } }
@media (min-width: 1100px) { .page-head-oneline p { font-size: .84rem; } }
@media (min-width: 1400px) { .page-head-oneline p { font-size: .86rem; white-space: nowrap; } }
.shop { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: 100px; }
.cats { position: sticky; top: 108px; align-self: start; }
.cats h2 { font: 500 .95rem var(--text); color: var(--ink-soft); margin: 0 0 .75rem; letter-spacing: 0; }
.cats ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cats a {
  display: flex; justify-content: space-between; gap: 1rem; padding: .85rem .1rem; text-decoration: none;
  border-bottom: 1px solid var(--line); transition: color .2s, padding .4s var(--ease);
}
.cats a:hover { color: var(--paua); padding-left: .4rem; }
.cats a[aria-current] { color: var(--paua); font-weight: 500; padding-left: .4rem; background: var(--tide) left bottom 4px / 60px 6px repeat-x; }
.cats .n { color: var(--ink-soft); font-variant-numeric: tabular-nums; font-weight: 400; }
.cats-help { margin-top: 1.5rem; padding: 1.1rem; background: var(--white); border-radius: 12px; font-size: .925rem; color: var(--ink-soft); }
.cats-help b { color: var(--ink); font-weight: 500; display: block; margin-bottom: .2rem; }
.toolbar { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; padding-bottom: 1.25rem; margin-bottom: 1.75rem; border-bottom: 1px solid var(--line); }
.toolbar h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.toolbar .count { color: var(--ink-soft); margin-left: .5rem; font-size: 1rem; font-family: var(--text); letter-spacing: 0; }
.sort { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--ink-soft); }
.sort select {
  font: 500 .95rem var(--text); color: var(--ink); background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: .55rem 2.2rem .55rem 1rem; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232b2012' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}

/* ---------- long-read pages (our soaps, shipping) ---------- */
.read { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.read-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(1.5rem, 3vw, 2.5rem); border-top: 1px solid var(--line); }
.read-block > h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); position: sticky; top: 108px; align-self: start; }
.read-block .body { max-width: 68ch; }
.read-block .body > p { color: var(--ink-soft); }
.read-block .body strong { color: var(--ink); font-weight: 500; }
.defs { list-style: none; margin: 0; padding: 0; }
.defs li { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.defs li:first-child { border-top: 1px solid var(--line); }
.defs b { font-weight: 500; }
.defs span { color: var(--ink-soft); }
.clay-group { margin-top: 2.25rem; }
.clay-group:first-child { margin-top: 0; }
.clay-group h3 { font-size: 1.4rem; margin-bottom: .9rem; }
.clays { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: .75rem; }
.clays li { background: var(--white); border-radius: 12px; padding: 1rem 1.1rem 1.1rem; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: .25rem .9rem; align-items: start; }
.clays .swatch { width: 34px; height: 34px; border-radius: 999px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); grid-row: span 2; }
.clays b { font-weight: 500; }

/* Our Soaps: tighter sections (about 75% of the height) */
.read-tight .read-block { padding-block: clamp(.9rem, 1.8vw, 1.5rem); gap: clamp(1.25rem, 4vw, 4rem); }
.read-tight .read-block .body { font-size: .95rem; line-height: 1.5; }
.read-tight .read-block > h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.read-tight .read-block .body > p { margin-block: 0 .75rem; }
.read-tight .defs li { padding: .45rem 0; gap: 1.25rem; }
.read-tight .clay-group { margin-top: 1.4rem; }
.read-tight .clay-group h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.read-tight .clays { gap: .6rem; }
.read-tight .clays li { padding: .7rem .9rem .8rem; }
.read-tight .clays .swatch { width: 28px; height: 28px; }
.read-tight .clays li { grid-template-columns: 28px minmax(0, 1fr); align-content: start; }
.clays span:last-child { font-size: .925rem; color: var(--ink-soft); line-height: 1.5; }
.pullquote { text-align: center; padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--foam); }
.pullquote p { font-family: var(--display); font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.15; max-width: 22ch; margin: 0 auto; color: var(--paua-deep); letter-spacing: -0.02em; }

.rates { width: 100%; border-collapse: collapse; margin: .5rem 0 1.5rem; font-variant-numeric: tabular-nums; }
.rates th, .rates td { text-align: left; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.rates th { font-weight: 400; color: var(--ink-soft); }
.rates td { text-align: right; font-family: var(--display); font-size: 1.6rem; }
.note { background: var(--white); border-radius: 12px; padding: 1.1rem 1.25rem; color: var(--ink-soft); }
.note b { color: var(--ink); font-weight: 500; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.form { background: var(--white); border-radius: 16px; padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.25rem; align-content: start; }
.field label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: .4rem; }
.field label span { color: var(--ink-soft); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--text); color: var(--ink); background: var(--salt);
  border: 1px solid var(--line); border-radius: 10px; padding: .85rem 1rem; caret-color: var(--paua);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--paua); box-shadow: 0 0 0 3px rgba(113, 80, 34, .15); background: var(--white); }
.field textarea { min-height: 160px; resize: vertical; }
.sent { background: var(--foam); color: var(--paua-deep); border-radius: 10px; padding: .9rem 1rem; margin: 0; }
.aside { display: grid; gap: 2rem; align-content: start; }
.aside h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .6rem; }
.aside p { color: var(--ink-soft); }
.aside .email { font-family: var(--display); font-size: clamp(1.2rem, 1.8vw, 1.5rem); color: var(--paua); word-break: break-word; }

/* ---------- responsive (pages) ---------- */
@media (max-width: 900px) {
  .hero .wrap, .story .wrap, .close-cta .wrap, .contact { grid-template-columns: minmax(0, 1fr); }
  .showcase-stage { aspect-ratio: auto; padding: 2.25rem var(--gutter) 2rem; display: grid; justify-items: center; gap: 2.25rem; }
  .showcase-frame { position: relative; left: auto; top: auto; bottom: auto; transform: none; width: min(92vw, 560px); border-radius: 20px; }
  .showcase-lines { display: none; }
  .callouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; width: 100%; max-width: 460px; }
  .callouts li, .callouts .c3, .callouts .c4 { position: static; flex-direction: row; text-align: left; font-size: .72rem; }
  .hero-photo { order: -1; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .cat-index a { grid-template-columns: 96px minmax(0, 1fr) 24px; gap: 1rem; }
  .ci-thumbs img { width: 40px; height: 40px; margin-right: -12px; }
  .ci-count { display: none; }
  .shop { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .cats { position: static; margin-inline: calc(var(--gutter) * -1); }
  .cats h2, .cats-help { display: none; }
  .cats ul { display: flex; gap: .5rem; overflow-x: auto; border: 0; padding: 0 var(--gutter) .5rem; scrollbar-width: none; }
  .cats a { border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1rem; white-space: nowrap; background: var(--white); gap: .5rem; }
  .cats a:hover, .cats a[aria-current] { padding-left: 1rem; }
  .cats a[aria-current] { background: var(--paua); color: #fff; border-color: var(--paua); }
  .cats a[aria-current] .n { color: #eee2d4; }
  .read-block { grid-template-columns: 1fr; gap: 1.25rem; }
  .read-block > h2 { position: static; }
  .defs li { grid-template-columns: 1fr; gap: .2rem; }
}
@media (max-width: 520px) {
  .method { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .9rem; }
  .notice { font-size: .8rem; }
  .card-name { font-size: 1.1rem; }
  .card { padding: 7px 7px 12px; border-radius: 12px; }
  .card-body { padding: .75rem .3rem 0; }
  .card-foot { flex-direction: column; align-items: stretch; gap: .6rem; }
}
.card:hover [data-add]:disabled { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px var(--line); }

/* =====================================================================
   WordPress + WooCommerce
   ===================================================================== */
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--white); padding: .6rem 1rem; border-radius: 8px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent.is-error { background: #f6e3dc; color: #7c2e14; }
.page-plain { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-plain .entry { max-width: 1100px; }
.entry a { color: var(--paua); }
.wc-main { padding-block: 1.25rem clamp(2.5rem, 5vw, 4rem); }

/* product grid (shop, categories, home, related) */
ul.products {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(1.25rem, 2.2vw, 2rem);
}
ul.products::before, ul.products::after { content: none !important; display: none !important; }
ul.products li.product.card, .woocommerce ul.products li.product.card {
  float: none !important; width: auto !important; margin: 0 !important; clear: none !important;
  padding: 10px 10px 16px; position: relative; text-align: left;
}
ul.products li.product .card-media img, .woocommerce ul.products li.product .card-media img {
  margin: 0; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; box-shadow: none;
}
.card-name { margin: 0; }
.card-name a { text-decoration: none; color: inherit; }
.card-name a:hover { color: var(--paua); }
.card-name a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; } /* whole card is clickable */
.card-foot { position: relative; z-index: 1; }
.card .price { color: var(--ink); font-size: 1rem; }
.card .price del { opacity: .6; margin-right: .3rem; }
.card .price ins { text-decoration: none; }
ul.products .card .button, .woocommerce ul.products .card a.button {
  background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  padding: .65rem 1rem; font: 500 .9rem/1 var(--text); border-radius: 999px; margin: 0;
}
ul.products .card:hover .button, .woocommerce ul.products .card:hover a.button { background: var(--paua); color: #fff; box-shadow: none; }
ul.products .card .button.loading { opacity: .6; pointer-events: none; }
ul.products .card .added_to_cart { display: none; }
.btn.is-disabled { opacity: .5; cursor: not-allowed; }
.card:hover .btn.is-disabled { background: var(--white); color: var(--ink); }

/* shop sort menu */
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select {
  font: inherit; font-size: .95rem; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 999px; padding: .55rem 2.2rem .55rem 1rem; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232b2012' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.woocommerce-pagination ul { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 2rem 0 0; border: 0 !important; }
.woocommerce-pagination li { border: 0 !important; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 2.4rem; height: 2.4rem; border-radius: 999px; background: var(--white); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.woocommerce-pagination .current { background: var(--paua); color: #fff; box-shadow: none; }

/* breadcrumbs */
.crumbs { font-size: .9rem; color: var(--ink-soft); margin: .5rem 0 1.5rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--paua); text-decoration: underline; }

/* buttons WooCommerce draws itself */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 500 1rem/1 var(--text); padding: 1rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--paua); color: #fff; text-decoration: none; transition: background-color .2s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce button.button.alt:hover { background: var(--paua-deep); color: #fff; }
.woocommerce button.button:disabled, .woocommerce button.button.disabled { opacity: .5; cursor: not-allowed; }

/* single product */
.single-product div.product {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 2rem clamp(1.5rem, 4.5vw, 4.5rem); align-items: start; position: relative;
}
.single-product div.product .woocommerce-product-gallery,
.single-product div.product div.summary { float: none !important; width: auto !important; margin: 0 !important; }
.single-product div.product .woocommerce-product-gallery { grid-row: span 2; position: relative; }
.woocommerce-product-gallery img { border-radius: 14px; }
.woocommerce-product-gallery .flex-control-thumbs { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; gap: .6rem; }
.woocommerce-product-gallery .flex-control-thumbs li { width: 72px !important; float: none !important; }
.woocommerce-product-gallery .flex-control-thumbs img { border-radius: 8px; opacity: .6; cursor: pointer; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; }
.woocommerce-product-gallery__trigger { position: absolute; top: 14px; right: 14px; z-index: 5; width: 40px; height: 40px; border-radius: 999px; background: rgba(255, 255, 255, .92); display: grid; place-items: center; text-indent: -9999px; overflow: hidden; }
.woocommerce-product-gallery__trigger::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--ink); border-radius: 999px; text-indent: 0; position: absolute; top: 11px; left: 11px; }
.woocommerce-product-gallery__trigger::after { content: ""; width: 2px; height: 8px; background: var(--ink); position: absolute; top: 24px; left: 26px; transform: rotate(-45deg); }
.single-product .summary { display: flex; flex-direction: column; align-items: flex-start; }
.quick-cat { font-size: .9rem; color: var(--paua); text-decoration: none; font-weight: 500; }
.quick-cat:hover { text-decoration: underline; }
.single-product .product_title { font-size: clamp(2.2rem, 4vw, 3.25rem); margin: .35rem 0 .4rem; }
.quick-notes { color: var(--kelp); font-weight: 500; margin-bottom: 1rem; }
.single-product .summary .price { font-size: 1.35rem; font-weight: 500; margin: 0 0 1rem; color: var(--ink); }
.sp-desc { color: var(--ink-soft); }
.single-product .summary .stock { margin: 0 0 1.1rem; font-size: .95rem; }
.single-product form.cart { display: flex; gap: .75rem; align-items: center; margin: .25rem 0 0; flex-wrap: wrap; }
.single-product form.cart::before, .single-product form.cart::after { content: none; }
.quantity .qty {
  width: 4.75rem; font: inherit; text-align: center; padding: .85rem .5rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink);
}
.single-product div.product .woocommerce-tabs { grid-column: 2; margin: 0; }
.woocommerce-tabs ul.tabs, .woocommerce div.product .woocommerce-tabs ul.tabs {
  list-style: none; margin: 0; padding: 1rem 0 0; display: flex; gap: 1.5rem; overflow: visible;
  border-top: 1px solid var(--line);
}
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs::after { content: none; }
.woocommerce-tabs ul.tabs li, .woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { content: none; display: none; }
.woocommerce-tabs ul.tabs li a { font-weight: 500; text-decoration: none; color: var(--ink-soft); padding-bottom: .35rem; }
.woocommerce-tabs ul.tabs li.active a { color: var(--paua); background: var(--tide) left bottom / 60px 6px repeat-x; }
.woocommerce-tabs .panel { margin: 1rem 0 0; font-size: .95rem; color: var(--ink-soft); }
.woocommerce-tabs .panel h2 { display: none; }
.single-product .related { grid-column: 1 / -1; margin-top: clamp(1.5rem, 4vw, 3rem); }
.single-product .related > h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1.25rem; }

/* notices */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notices-wrapper .woocommerce-message {
  list-style: none; margin: 0 0 1.5rem; padding: 1rem 1.25rem; border-radius: 12px;
  background: var(--white); box-shadow: inset 4px 0 0 var(--paua); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.woocommerce-error { box-shadow: inset 4px 0 0 #a4431f; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { content: none; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; padding: .6rem 1rem; font-size: .9rem; }

/* forms (account, classic checkout) */
.woocommerce form .form-row { margin: 0 0 1rem; padding: 0; }
.woocommerce form .form-row label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: .35rem; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem;
}
.woocommerce table.shop_table { border-collapse: collapse; width: 100%; background: var(--white); border-radius: 12px; overflow: hidden; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-align: left; }

/* cart + checkout blocks */
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { font-family: var(--text); }
.wc-block-components-title, .wc-block-cart__totals-title, .wc-block-components-checkout-step__title { font-family: var(--display) !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: -0.01em; }
.wc-block-components-button:not(.is-link) {
  background: var(--paua) !important; color: #fff !important; border-radius: 999px !important; border: 0 !important; font-weight: 500;
}
.wc-block-components-button:not(.is-link):hover { background: var(--paua-deep) !important; }
.wc-block-components-product-name { font-family: var(--display); font-size: 1.15rem; text-decoration: none; color: var(--ink) !important; }
.wc-block-components-totals-item__label, .wc-block-components-totals-item__value { color: var(--ink); }
.wc-block-cart-items img, .wc-block-components-order-summary-item__image img { border-radius: 8px; }

@media (max-width: 900px) {
  .single-product div.product { grid-template-columns: minmax(0, 1fr); }
  .single-product div.product .woocommerce-product-gallery { grid-row: auto; }
  .single-product div.product .woocommerce-tabs { grid-column: 1; }
}
@media (max-width: 520px) {
  ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem .9rem; }
  ul.products li.product.card, .woocommerce ul.products li.product.card { padding: 7px 7px 12px; }
  .card-foot .button, .card-foot .btn { width: 100%; }
}

/* checkout: + / - on each soap in the order summary */
.sp-qty { display: inline-flex; align-items: center; gap: .15rem; margin-top: .5rem; background: var(--white); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); padding: 2px; }
.sp-qty-btn { width: 30px; height: 30px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 500 1.05rem/1 var(--text); cursor: pointer; display: grid; place-items: center; transition: background-color .15s; }
.sp-qty-btn:hover:not(:disabled) { background: var(--paua); color: #fff; }
.sp-qty-btn:focus-visible { outline: 2px solid var(--paua); outline-offset: 1px; }
.sp-qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.sp-qty-n { min-width: 1.6rem; text-align: center; font-weight: 500; font-size: .95rem; }
.sp-qty.is-busy { opacity: .6; }
