/* KSR Thread House — design preview.

   Two artworks from the owner drive two layouts:
     phones & tablets (< 1024px)  mobile mockup, 941px wide   -> --u = 100vw / 941
     laptops & desktops           desktop mockup, 1448px wide -> --u = 100vw / 1448
   Every size is a multiple of --u (one pixel of the mockup), so the page always fills
   the full width of the screen and keeps the mockup's proportions. Small text has a
   pixel floor (max()) so it stays readable on small laptops. */

:root {
  --u: calc(100vw / 941);
  --cream: #FDF8EC;
  --card: #FFFFFF;
  --green: #0E3B2B;
  --bar: #003E33;
  --ink: #1D2A24;
  --muted: #5C6660;
  --pink: #EC2D6E;
  --teal: #0C7F7C;
  --orange: #F0A019;
  --gold: #E3B04B;
  --line: #EFE6D2;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --brush: 'Kaushan Script', 'Brush Script MT', cursive;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .18s ease-out both vt-out; }
::view-transition-new(root) { animation: .32s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; overflow-x: hidden; padding-bottom: max(calc(110 * var(--u)), 74px); }
img, svg { display: block; }
::selection { background: var(--gold); color: var(--green); }
input { caret-color: var(--teal); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.page { position: relative; overflow: clip; }
.doodle { position: absolute; pointer-events: none; z-index: 1; }
.d-only { display: none !important; }

/* ================= header ================= */
.top { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "burger logo actions" "search search search"; align-items: center; padding: 0 calc(37 * var(--u)); row-gap: calc(2 * var(--u)); padding-bottom: calc(12 * var(--u)); transition: background-color .3s, box-shadow .3s; }
.top.stuck { background: rgba(253, 248, 236, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 6px 22px rgba(60, 40, 10, .1); }
.burger { grid-area: burger; justify-self: start; }
.logo { grid-area: logo; display: block; padding: calc(5 * var(--u)) 0; }
.logo img { width: calc(132 * var(--u)); height: calc(132 * var(--u)); border-radius: 50%; filter: drop-shadow(0 calc(4 * var(--u)) calc(8 * var(--u)) rgba(9, 40, 27, .28)); }
.actions { grid-area: actions; justify-self: end; display: flex; gap: calc(30 * var(--u)); }
.icon-btn { position: relative; width: calc(52 * var(--u)); height: calc(52 * var(--u)); display: grid; place-items: center; transition: scale .15s, color .2s; }
.icon-btn::after { content: ""; position: absolute; inset: -12px; }
.icon-btn svg { width: calc(42 * var(--u)); height: calc(42 * var(--u)); }
.icon-btn:active { scale: .88; }
.badge { position: absolute; top: calc(-6 * var(--u)); right: calc(-8 * var(--u)); min-width: calc(28 * var(--u)); height: calc(28 * var(--u)); border-radius: 99px; background: #E53935; color: #fff; font-size: calc(17 * var(--u)); font-weight: 700; display: grid; place-items: center; }
.d-tl { left: calc(95 * var(--u)); top: 0; width: calc(160 * var(--u)); }
.d-tr { left: calc(685 * var(--u)); top: 0; width: calc(90 * var(--u)); }

.search { grid-area: search; position: relative; z-index: 2; height: calc(62 * var(--u)); display: flex; align-items: center; gap: calc(16 * var(--u)); padding: 0 calc(22 * var(--u)); background: #fff; border: calc(1.6 * var(--u)) solid #3A4540; border-radius: calc(14 * var(--u)); transition: box-shadow .25s, border-color .25s; }
.search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 calc(5 * var(--u)) rgba(12, 127, 124, .16); }
.search > svg { width: calc(34 * var(--u)); height: calc(34 * var(--u)); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: max(calc(21 * var(--u)), 13px); color: var(--ink); }
.search input::placeholder { color: #6B746F; }
.suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); padding: 8px; background: #fff; border-radius: 16px; box-shadow: 0 14px 36px rgba(60, 40, 10, .22); max-height: 62vh; overflow: auto; }
.suggest a[role=option] { display: flex; align-items: center; gap: 12px; padding: 7px 10px; min-height: 44px; border-radius: 12px; font-size: 15px; }
.suggest a[role=option]:hover, .suggest a[role=option].on { background: #F5EFDF; }
.suggest img { width: 54px; height: 36px; border-radius: 8px; object-fit: cover; }
.suggest p { padding: 12px; font-size: 15px; color: var(--muted); }
.suggest p a { color: var(--green); font-weight: 800; text-decoration: underline; }

/* ================= hero ================= */
/* same voice as the rest of the site: Lora, deep green, one pink italic word, the gold flourish */
.hero-main { position: relative; height: calc(352 * var(--u)); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.hero-photo { position: absolute; right: 0; top: 0; width: calc(486 * var(--u)); height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }
.hero-text { position: absolute; z-index: 2; left: calc(43 * var(--u)); top: 0; width: calc(440 * var(--u)); height: 100%; display: flex; flex-direction: column; justify-content: center; gap: calc(16 * var(--u)); }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: calc(56 * var(--u)); line-height: 1.06; letter-spacing: -.015em; color: var(--green); text-wrap: balance; }
.hero h1 em { font-style: italic; color: #D0185C; }
.hero-p { font-family: var(--serif); font-size: max(calc(24.5 * var(--u)), 12px); line-height: 1.3; color: #1F2A26; max-width: calc(430 * var(--u)); }

.banners { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: calc(19 * var(--u)); margin: calc(-3 * var(--u)) calc(33 * var(--u)) 0; }
.banner { display: block; border-radius: calc(20 * var(--u)); overflow: hidden; box-shadow: 0 calc(6 * var(--u)) calc(18 * var(--u)) rgba(120, 80, 20, .16); }
.banner img { width: 100%; height: auto; aspect-ratio: 429 / 191; object-fit: cover; }

/* ================= trust strip (phones) ================= */
.trust-wrap { position: relative; margin-top: calc(20 * var(--u)); }
.trust { margin: 0 calc(65 * var(--u)); padding: calc(18 * var(--u)) calc(34 * var(--u)); background: #FFFDF8; border-radius: calc(22 * var(--u)); display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; align-items: center; box-shadow: 0 calc(2 * var(--u)) calc(10 * var(--u)) rgba(120, 80, 20, .06); }
.trust li { display: flex; align-items: center; gap: calc(16 * var(--u)); font-size: max(calc(17.5 * var(--u)), 10px); line-height: 1.2; color: #2C3833; }
.trust li + li { padding-left: calc(34 * var(--u)); border-left: calc(1.5 * var(--u)) solid #E6DCC8; }
.t-ico { display: grid; place-items: center; }
.trust .t-ico svg { width: calc(50 * var(--u)); height: calc(50 * var(--u)); }
.d-side-l { left: 0; top: calc(-8 * var(--u)); width: calc(62 * var(--u)); }
.d-side-r { right: 0; top: calc(2 * var(--u)); width: calc(63 * var(--u)); }

/* ================= sections ================= */
.sec { position: relative; margin-top: calc(22 * var(--u)); }
.sec-bg { position: absolute; left: 0; top: calc(-20 * var(--u)); width: 100%; height: calc(100% + 40 * var(--u)); object-fit: cover; opacity: .55; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 82%, transparent 100%); }
.sec-head { position: relative; z-index: 2; padding: 0 calc(37 * var(--u)) 0 calc(43 * var(--u)); display: flex; justify-content: space-between; align-items: flex-start; }
.sec-head h2 { position: relative; font-family: var(--serif); font-weight: 700; font-size: calc(47 * var(--u)); line-height: 1.05; color: var(--green); letter-spacing: -.01em; display: inline-flex; align-items: flex-start; gap: calc(12 * var(--u)); }
/* a brush stroke from the asset board sits under each heading */
.sec-head h2::after { content: ""; position: absolute; z-index: -1; left: -2%; right: 16%; bottom: calc(-6 * var(--u)); height: calc(20 * var(--u)); background: url(../img/brush-teal.webp) center / 100% 100% no-repeat; opacity: .5; }
.categories .sec-head h2::after { background-image: url(../img/brush-pink.webp); opacity: .75; }
.sec-head h2 .h-heart { position: static; width: calc(34 * var(--u)); height: calc(40 * var(--u)); margin-top: calc(-4 * var(--u)); rotate: 12deg; }
.sec-head p { font-family: var(--serif); font-size: max(calc(23 * var(--u)), 12px); color: #25302B; margin-top: calc(6 * var(--u)); }
.view-all { position: relative; z-index: 2; flex: none; margin-top: calc(4 * var(--u)); min-height: max(calc(50 * var(--u)), 34px); padding: 0 calc(26 * var(--u)) 0 calc(34 * var(--u)); display: inline-flex; align-items: center; gap: calc(12 * var(--u)); border: calc(1.6 * var(--u)) solid #3A4540; border-radius: 99px; background: #FFFDF8; font-size: max(calc(18 * var(--u)), 12px); color: var(--ink); transition: background-color .2s, color .2s, scale .15s, border-color .2s; }
.va-ico { display: grid; place-items: center; }
.va-ico svg { width: calc(20 * var(--u)); height: calc(20 * var(--u)); min-width: 12px; min-height: 12px; transition: translate .25s var(--ease); }
.view-all:hover { background: var(--green); color: #fff; border-color: var(--green); }
.view-all:hover .va-ico svg { translate: 4px 0; }
.view-all:active { scale: .96; }
.d-arrivals { left: calc(600 * var(--u)); top: calc(2 * var(--u)); width: calc(145 * var(--u)); }
.d-cats { left: calc(560 * var(--u)); top: calc(-6 * var(--u)); width: calc(145 * var(--u)); }

/* ---- New Arrivals: the cards drift right-to-left in an endless loop ---- */
.rail { --pad: calc(38 * var(--u)); position: relative; z-index: 2; margin-top: calc(14 * var(--u)); padding: calc(6 * var(--u)) 0 calc(14 * var(--u)); overflow: hidden; }
.rail-track { display: flex; width: max-content; animation: drift 30s linear infinite; }
.rail:hover .rail-track, .rail:focus-within .rail-track, .rail.hold .rail-track { animation-play-state: paused; }
@keyframes drift { from { transform: translateX(var(--pad)); } to { transform: translateX(calc(var(--pad) - var(--shift, 33.333%))); } }
.prod { flex: none; width: calc(204 * var(--u)); margin-right: calc(16 * var(--u)); background: var(--card); border-radius: calc(16 * var(--u)); overflow: hidden; box-shadow: 0 calc(3 * var(--u)) calc(12 * var(--u)) rgba(120, 80, 20, .09); transition: translate .3s var(--ease), scale .15s ease-out, box-shadow .3s; }
.prod:hover { translate: 0 calc(-5 * var(--u)); box-shadow: 0 calc(14 * var(--u)) calc(26 * var(--u)) rgba(120, 80, 20, .18); }
.prod:active { scale: .97; }
.prod-img { width: 100%; aspect-ratio: 211 / 152; object-fit: contain; background: #F7F3E8; transition: scale .6s var(--ease); }
.prod:hover .prod-img { scale: 1.06; }
.prod-body { position: relative; padding: calc(12 * var(--u)) calc(12 * var(--u)) calc(12 * var(--u)) calc(16 * var(--u)); min-height: calc(90 * var(--u)); display: flex; flex-direction: column; justify-content: center; background: #fff; }
.prod-name { font-size: max(calc(16.5 * var(--u)), 10px); line-height: 1.15; color: #25302B; }
.prod-price { font-size: max(calc(20 * var(--u)), 11px); font-weight: 700; margin-top: calc(6 * var(--u)); color: #1D2A24; }
.prod-cart, .prod-go { position: absolute; right: calc(12 * var(--u)); bottom: calc(14 * var(--u)); width: calc(40 * var(--u)); height: calc(40 * var(--u)); border-radius: calc(9 * var(--u)); background: #F5F1E6; display: grid; place-items: center; transition: background-color .2s, color .2s; }
.prod-cart::after, .prod-go::after { content: ""; position: absolute; inset: -8px; }
.prod-cart svg, .prod-go svg { width: 60%; height: 60%; }
.prod-cart:hover, .prod-go:hover { background: var(--green); color: #fff; }
.dots { display: flex; justify-content: center; gap: calc(9 * var(--u)); margin-top: calc(6 * var(--u)); }
.dots i { width: calc(13 * var(--u)); height: calc(7 * var(--u)); border-radius: 99px; background: #D9D3C5; transition: background-color .3s; }
.dots i.on { width: calc(18 * var(--u)); background: var(--green); }

/* ---- categories ---- */
.cats { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(10 * var(--u)) calc(11 * var(--u)); margin: calc(14 * var(--u)) calc(33 * var(--u)) 0 calc(37 * var(--u)); }
.cat { position: relative; display: flex; flex-direction: column; border-radius: calc(13 * var(--u)); overflow: hidden; background: #fff; box-shadow: 0 calc(2 * var(--u)) calc(9 * var(--u)) rgba(120, 80, 20, .1); transition: translate .3s var(--ease), scale .15s ease-out, box-shadow .3s; }
.cat:hover { translate: 0 calc(-5 * var(--u)); box-shadow: 0 calc(10 * var(--u)) calc(22 * var(--u)) rgba(120, 80, 20, .2); }
.cat:active { scale: .965; }
.cat img { flex: none; width: 100%; height: auto; aspect-ratio: 220 / 76; object-fit: contain; background: #F7F3E8; transition: scale .6s var(--ease); }
.cat:hover img { scale: 1.07; }
.cat-name { position: relative; display: flex; align-items: center; flex: 1; padding: calc(7 * var(--u)) calc(40 * var(--u)) calc(9 * var(--u)) calc(14 * var(--u)); font-size: max(calc(17 * var(--u)), 10px); line-height: 1.12; color: #1D2A24; background: #fff center / cover; }
.cat-go { position: absolute; right: calc(9 * var(--u)); bottom: calc(6 * var(--u)); width: calc(26 * var(--u)); height: calc(26 * var(--u)); border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 calc(1 * var(--u)) calc(4 * var(--u)) rgba(0, 0, 0, .14); transition: background-color .2s, color .2s; }
.cat-go svg { width: 54%; height: 54%; }
.cat:hover .cat-go { background: var(--green); color: #fff; }
/* label backgrounds use the four pastel cards from the asset board */
.t1 .cat-name { background-image: url(../img/pastel-1.webp); }
.t2 .cat-name { background-image: url(../img/pastel-2.webp); }
.t3 .cat-name { background-image: url(../img/pastel-3.webp); }
.t4 .cat-name { background-image: url(../img/pastel-4.webp); }

/* ================= benefits + footer ================= */
.benefits { position: relative; margin: calc(34 * var(--u)) calc(37 * var(--u)) 0; }
.benefits ul { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: calc(20 * var(--u)) calc(10 * var(--u)); padding: calc(26 * var(--u)) calc(30 * var(--u)); border-radius: calc(24 * var(--u)); background: #FBEFD8; }
.benefits li { display: flex; align-items: center; gap: calc(18 * var(--u)); font-size: max(calc(20 * var(--u)), 11px); line-height: 1.3; color: #26332D; }
.benefits li svg { width: calc(60 * var(--u)); height: calc(60 * var(--u)); min-width: 26px; min-height: 26px; flex: none; stroke-width: 1.5; color: var(--green); }
.spool { position: absolute; pointer-events: none; z-index: 1; }
/* footer: the top bar's deep green, cream text, gold headings, scalloped lace edge */
.foot { position: relative; margin-top: calc(40 * var(--u)); background: var(--bar); color: #E9E0C9; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 10px; background: radial-gradient(circle at 10px 10px, var(--bar) 9px, transparent 10px) 0 0 / 20px 10px repeat-x; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: calc(26 * var(--u)); padding: calc(36 * var(--u)) calc(43 * var(--u)) calc(24 * var(--u)); }
.foot-brand { display: flex; align-items: center; gap: calc(22 * var(--u)); }
.foot-logo { width: calc(104 * var(--u)); height: calc(104 * var(--u)); min-width: 56px; min-height: 56px; flex: none; border-radius: 50%; box-shadow: 0 0 0 2px rgba(227, 176, 75, .5); }
.foot p, .foot li { font-size: max(calc(20 * var(--u)), 13px); line-height: 1.45; }
.foot .foot-script { font-family: var(--brush); font-size: max(calc(30 * var(--u)), 17px) !important; color: var(--gold); }
.social { display: flex; gap: 10px; margin-top: calc(10 * var(--u)); }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(227, 176, 75, .55); color: var(--gold); transition: background .2s, color .2s, translate .25s var(--ease); }
.social a:hover { background: var(--gold); color: var(--bar); translate: 0 -3px; }
.social svg { width: 21px; height: 21px; }
.foot h3 { font-family: var(--sans); font-size: max(calc(16 * var(--u)), 11.5px); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: calc(10 * var(--u)); }
.foot li { margin-bottom: calc(6 * var(--u)); }
.foot li a { position: relative; transition: color .2s; }
.foot li a:hover { color: #fff; }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(30 * var(--u)); }
.foot-links a { display: inline-block; padding: 5px 0; }
.foot-contact li { display: flex; gap: calc(12 * var(--u)); align-items: flex-start; }
.foot-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--gold); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center; padding: calc(16 * var(--u)) calc(43 * var(--u)) calc(20 * var(--u)); border-top: 1px solid rgba(227, 176, 75, .22); font-size: max(calc(18 * var(--u)), 12px); color: #C9C0A8; }
.pay { display: flex; gap: 6px; }
.pay i { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .09); color: #E9E0C9; }

/* ================= reactive motion (values come from js/fx.js) ================= */
.stitch { position: fixed; z-index: 80; left: 0; top: 0; width: 100%; height: 4px; transform-origin: 0 50%; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--pink) 0 14px, transparent 14px 21px, var(--orange) 21px 35px, transparent 35px 42px, var(--teal) 42px 56px, transparent 56px 63px); }
/* edge artwork drifts a little with the mouse, each piece at its own depth */
.doodle { translate: calc(var(--mx, 0) * var(--d, 0) * 1px) calc(var(--my, 0) * var(--d, 0) * 1px); }
.banner picture, .banner img { display: block; }

/* ================= bottom tab bar (phones) ================= */
.tabs { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; height: max(calc(96 * var(--u)), 58px); padding-bottom: env(safe-area-inset-bottom); box-sizing: content-box; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: #FFFCF5; border-radius: calc(26 * var(--u)) calc(26 * var(--u)) 0 0; box-shadow: 0 calc(-4 * var(--u)) calc(18 * var(--u)) rgba(120, 80, 20, .1); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: calc(7 * var(--u)); font-size: max(calc(17 * var(--u)), 11px); color: #3F4A45; transition: scale .15s, color .2s; }
.tabs a:active { scale: .88; }
.tabs svg { width: calc(38 * var(--u)); height: calc(38 * var(--u)); min-width: 22px; min-height: 22px; }
.tabs a.on { color: var(--green); font-weight: 800; }

.soon { position: fixed; z-index: 60; left: 50%; bottom: max(calc(120 * var(--u)), 84px); transform: translateX(-50%); background: var(--green); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: 14px; white-space: nowrap; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }

/* ================= categories page / category page ================= */
.page-head { position: relative; margin: calc(18 * var(--u)) calc(37 * var(--u)) 0; border-radius: calc(26 * var(--u)); overflow: hidden; min-height: calc(230 * var(--u)); display: flex; flex-direction: column; justify-content: center; padding: calc(30 * var(--u)) calc(40 * var(--u)); background: #FFF6E2; box-shadow: 0 calc(6 * var(--u)) calc(22 * var(--u)) rgba(120, 80, 20, .14); }
.page-head::before { content: ""; position: absolute; inset: 0; background: url(../img/collage.webp) right center / auto 100% no-repeat; -webkit-mask-image: linear-gradient(to right, transparent 20%, #000 62%); mask-image: linear-gradient(to right, transparent 20%, #000 62%); }
.page-head > * { position: relative; }
.page-head h1 { font-family: var(--serif); font-weight: 700; font-size: calc(53 * var(--u)); color: var(--green); line-height: 1.05; }
.page-head p { font-family: var(--serif); font-size: max(calc(23 * var(--u)), 12px); margin-top: calc(6 * var(--u)); }
.cats.all { grid-template-columns: repeat(2, 1fr); gap: calc(16 * var(--u)); margin-top: calc(24 * var(--u)); }
.cats.all .cat img { aspect-ratio: 4 / 3; }
.cats.all .cat-name { font-size: max(calc(24 * var(--u)), 13px); padding: calc(12 * var(--u)) calc(56 * var(--u)) calc(14 * var(--u)) calc(18 * var(--u)); }
.cats.all .cat-go { width: calc(36 * var(--u)); height: calc(36 * var(--u)); right: calc(12 * var(--u)); bottom: calc(10 * var(--u)); }

.crumbs { display: flex; flex-wrap: wrap; gap: calc(10 * var(--u)); align-items: center; padding: calc(22 * var(--u)) calc(43 * var(--u)) 0; font-size: max(calc(19 * var(--u)), 12px); color: var(--muted); }
.crumbs a:hover { color: var(--green); text-decoration: underline; }
.crumbs b { color: var(--ink); font-weight: 700; }
.cat-hero { position: relative; margin: calc(18 * var(--u)) calc(37 * var(--u)) 0; border-radius: calc(26 * var(--u)); overflow: hidden; min-height: calc(330 * var(--u)); background: #F5EFDF url(../img/bg-wash.webp) center / cover; box-shadow: 0 calc(8 * var(--u)) calc(26 * var(--u)) rgba(120, 80, 20, .16); }
.cat-hero-img { position: absolute; right: 0; top: 0; width: 62%; height: 100%; object-fit: cover; transform-origin: 60% 50%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34%); mask-image: linear-gradient(to right, transparent 0, #000 34%); }
.cat-hero-text { position: relative; z-index: 1; width: 58%; padding: calc(44 * var(--u)) calc(38 * var(--u)); display: flex; flex-direction: column; justify-content: center; min-height: calc(330 * var(--u)); }
.kicker { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: calc(40 * var(--u)); color: var(--teal); line-height: 1; }
.cat-hero h1 { font-family: var(--serif); font-weight: 700; font-size: calc(58 * var(--u)); line-height: 1.04; color: var(--green); margin-top: calc(6 * var(--u)); letter-spacing: -.01em; text-wrap: balance; }
.cat-hero .sub { font-family: var(--serif); font-size: max(calc(23 * var(--u)), 12px); margin-top: calc(10 * var(--u)); color: #2C3833; }
.count-chip { align-self: flex-start; margin-top: calc(18 * var(--u)); padding: calc(7 * var(--u)) calc(20 * var(--u)); border-radius: 99px; background: #fff; font-size: max(calc(19 * var(--u)), 12px); box-shadow: 0 calc(2 * var(--u)) calc(8 * var(--u)) rgba(120, 80, 20, .12); }
.count-chip b { color: var(--pink); }
.empty { text-align: center; margin: calc(22 * var(--u)) calc(37 * var(--u)) 0; padding: calc(34 * var(--u)) calc(30 * var(--u)) calc(40 * var(--u)); border: calc(2 * var(--u)) dashed #D9CBA6; border-radius: calc(24 * var(--u)); background: #FFFDF6 url(../img/bg-leaves.webp) center / cover; }
.empty-art { width: calc(150 * var(--u)); min-width: 84px; margin: 0 auto calc(8 * var(--u)); }
.empty h1, .empty h2 { font-family: var(--serif); font-weight: 700; font-size: calc(40 * var(--u)); color: var(--green); line-height: 1.1; }
.empty p { max-width: 30em; margin: calc(10 * var(--u)) auto calc(22 * var(--u)); font-size: max(calc(23 * var(--u)), 14px); line-height: 1.45; color: #36423C; }
.btn { display: inline-flex; align-items: center; gap: calc(12 * var(--u)); min-height: 44px; padding: 0 max(calc(34 * var(--u)), 20px); border-radius: 99px; background: var(--green); color: #fff; font-weight: 800; font-size: max(calc(21 * var(--u)), 14px); transition: scale .15s, background-color .2s, translate .3s; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { background: #17503C; translate: 0 -3px; }
.btn:active { scale: .96; }
.step { display: flex; justify-content: space-between; gap: calc(14 * var(--u)); margin: calc(20 * var(--u)) calc(37 * var(--u)) 0; }
.step a { flex: 1; display: flex; align-items: center; gap: calc(10 * var(--u)); min-height: 52px; padding: calc(12 * var(--u)) calc(20 * var(--u)); border-radius: calc(16 * var(--u)); background: #fff; font-size: max(calc(20 * var(--u)), 13px); font-weight: 700; box-shadow: 0 calc(2 * var(--u)) calc(9 * var(--u)) rgba(120, 80, 20, .1); transition: translate .3s, scale .15s, box-shadow .3s; }
.step a:last-child { justify-content: flex-end; text-align: right; }
.step a:hover { translate: 0 -3px; box-shadow: 0 8px 18px rgba(120, 80, 20, .18); }
.step a:active { scale: .97; }
.step small { display: block; font-weight: 600; color: var(--muted); margin-right: calc(6 * var(--u)); }
.more { margin-top: calc(44 * var(--u)); }
.more .cats.all { margin-top: calc(18 * var(--u)); }

/* entrance: hidden until Motion plays (class is only set when Motion will run) */
.anim .banner, .anim .spool, .anim .benefits li, .anim .foot-col, .anim .cat, .anim .sec-head, .anim .rv, .anim .rail,
.anim .hero h1, .anim .hero-flourish, .anim .hero-p, .anim .hero-cta, .anim .hero-photo, .anim .hero-bg, .anim .doodle, .anim .mini-trust li,
.anim .cat-hero-img, .anim .cat-hero-text > * { opacity: 0; }

/* =====================================================================
   LAPTOPS & DESKTOPS — the 1448px mockup
   ===================================================================== */
@media (min-width: 1024px) {
  :root { --u: calc(100vw / 1448); }
  body { padding-bottom: 0; }
  .m-only { display: none !important; }
  .d-only { display: block !important; }
  ul.d-only { display: flex !important; }

  /* green benefit bar */
  .bar { position: relative; z-index: 6; display: flex !important; align-items: center; justify-content: center; height: calc(48 * var(--u)); min-height: 30px; background: var(--bar); color: #F4ECD8; }
  .bar ul { display: flex; gap: calc(44 * var(--u)); }
  .bar li { display: flex; align-items: center; gap: calc(12 * var(--u)); font-family: var(--serif); font-size: max(calc(15 * var(--u)), 11px); white-space: nowrap; }
  .bar li svg { width: calc(30 * var(--u)); height: calc(30 * var(--u)); min-width: 16px; min-height: 16px; color: var(--gold); stroke-width: 1.6; }
  .bar-l, .bar-r { position: absolute; top: 0; height: 100%; width: auto; }
  .bar-l { left: 0; }
  .bar-r { right: 0; }
  .e-tl { left: 0; top: calc(48 * var(--u)); width: calc(104 * var(--u)); }
  .e-tr { right: 0; top: calc(48 * var(--u)); width: calc(152 * var(--u)); }

  /* header: logo | search | account icons, menu on the second row lined up with the search box */
  .bar { z-index: 6; }
  .top { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo search actions" "logo menu menu"; align-items: center; column-gap: calc(40 * var(--u)); row-gap: calc(8 * var(--u)); padding: calc(10 * var(--u)) calc(176 * var(--u)) calc(8 * var(--u)) calc(118 * var(--u)); }
  .logo { padding: 0; }
  .logo img { width: calc(88 * var(--u)); height: calc(88 * var(--u)); min-width: 60px; min-height: 60px; }
  .search { height: max(calc(44 * var(--u)), 36px); border-width: 1.4px; border-radius: calc(12 * var(--u)); padding: 0 calc(20 * var(--u)); gap: calc(14 * var(--u)); }
  .search > svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); min-width: 15px; min-height: 15px; }
  .search input { font-family: var(--serif); font-size: max(calc(15 * var(--u)), 12px); }
  .actions { gap: calc(30 * var(--u)); align-items: center; }
  .actions .icon-btn { width: auto; height: auto; display: flex !important; flex-direction: column; align-items: center; gap: calc(3 * var(--u)); }
  .actions .icon-btn svg { width: calc(28 * var(--u)); height: calc(28 * var(--u)); min-width: 20px; min-height: 20px; }
  .actions .icon-btn small { font-family: var(--serif); font-size: max(calc(13 * var(--u)), 10px); }
  .actions .icon-btn:hover { color: var(--pink); }
  .badge { top: calc(-8 * var(--u)); right: calc(-10 * var(--u)); min-width: max(calc(24 * var(--u)), 15px); height: max(calc(24 * var(--u)), 15px); font-size: max(calc(14 * var(--u)), 9px); }

  .menu { grid-area: menu; }
  .menu ul { display: flex; justify-content: space-between; align-items: center; }
  .menu li { position: relative; }
  .menu li > a { position: relative; display: inline-flex; align-items: center; gap: calc(6 * var(--u)); padding: calc(6 * var(--u)) 0 calc(8 * var(--u)); font-family: var(--serif); font-size: max(calc(15.5 * var(--u)), 12px); color: var(--ink); white-space: nowrap; }
  .menu li > a svg { width: calc(14 * var(--u)); height: calc(14 * var(--u)); min-width: 9px; min-height: 9px; stroke-width: 2.6; transition: rotate .25s; }
  .menu li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--green); scale: 0 1; transform-origin: left; transition: scale .3s var(--ease); }
  .menu li > a:hover::after, .menu li > a.on::after, .menu li.open > a::after { scale: 1 1; }
  .menu li > a.on { font-weight: 700; color: var(--green); }
  .menu li > a:hover { color: var(--green); }
  /* Shop by Category dropdown */
  .drop { position: absolute; z-index: 40; left: calc(-20 * var(--u)); top: 100%; width: max(calc(640 * var(--u)), 480px); padding: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 6px; background: #fff; border-radius: 16px; box-shadow: 0 18px 44px rgba(60, 40, 10, .24); opacity: 0; visibility: hidden; translate: 0 -8px; transition: opacity .2s, translate .25s var(--ease), visibility .2s; }
  .has-drop:hover .drop, .has-drop:focus-within .drop, .has-drop.open .drop { opacity: 1; visibility: visible; translate: 0 0; }
  .has-drop:hover > a svg, .has-drop.open > a svg { rotate: 180deg; }
  .drop a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; font-size: max(calc(14.5 * var(--u)), 12px); color: var(--ink); }
  .drop a:hover { background: #F5EFDF; color: var(--green); }
  .drop img { width: 40px; height: 28px; border-radius: 6px; object-fit: cover; }
  .drop .drop-all { grid-column: 1 / -1; justify-content: center; margin-top: 6px; padding: 9px; background: var(--green); color: #fff; font-weight: 700; }
  .drop .drop-all:hover { background: #17503C; color: #fff; }
  .drop-all svg { width: 16px; height: 16px; }

  /* hero: lettering block on the left, two large banners on the right */
  .hero { display: grid; grid-template-columns: calc(548 * var(--u)) 1fr; }
  .hero-main { height: calc(312 * var(--u)); }
  .hero-text { position: static; width: auto; align-items: center; text-align: center; gap: calc(12 * var(--u)); padding: 0 calc(40 * var(--u)) 0 calc(60 * var(--u)); }
  .hero h1 { font-size: calc(46 * var(--u)); line-height: 1.08; }
  .hero-flourish { width: calc(150 * var(--u)); height: auto; margin: calc(-2 * var(--u)) 0; }
  .hero-p { font-size: max(calc(17 * var(--u)), 12.5px); line-height: 1.4; max-width: 24em; }
  a.hero-cta.d-only { display: inline-flex !important; }
  .hero-cta { align-items: center; gap: calc(10 * var(--u)); min-height: max(calc(44 * var(--u)), 38px); padding: 0 calc(26 * var(--u)); border-radius: 99px; background: var(--green); color: #fff; font-family: var(--serif); font-weight: 700; font-size: max(calc(15.5 * var(--u)), 12.5px); box-shadow: 0 calc(6 * var(--u)) calc(16 * var(--u)) rgba(14, 59, 43, .22); transition: background-color .2s, translate .3s var(--ease), box-shadow .3s; }
  .hero-cta:hover { background: #17503C; translate: 0 -2px; box-shadow: 0 calc(10 * var(--u)) calc(22 * var(--u)) rgba(14, 59, 43, .28); }
  .hero-cta:active { translate: 0 0; scale: .98; }
  .hero-cta .va-ico svg { width: calc(17 * var(--u)); height: calc(17 * var(--u)); min-width: 13px; min-height: 13px; }
  .hero-cta:hover .va-ico svg { translate: 4px 0; }
  .mini-trust { justify-content: center; gap: calc(22 * var(--u)); margin-top: calc(6 * var(--u)); }
  .mini-trust li { display: flex; align-items: center; gap: calc(6 * var(--u)); font-family: var(--serif); font-size: max(calc(11.5 * var(--u)), 10px); line-height: 1.25; text-align: left; }
  .mini-trust .t-ico svg { width: calc(28 * var(--u)); height: calc(28 * var(--u)); min-width: 18px; min-height: 18px; }
  .banners { margin: 0 calc(20 * var(--u)) 0 0; grid-template-columns: 425fr 438fr; gap: calc(17 * var(--u)); }
  .banner { border-radius: calc(16 * var(--u)); transition: translate .35s var(--ease), box-shadow .35s, scale .15s; }
  .banner:hover { translate: 0 calc(-6 * var(--u)); box-shadow: 0 calc(18 * var(--u)) calc(34 * var(--u)) rgba(120, 80, 20, .26); }
  .banner:active { scale: .985; }
  .banner img { height: calc(312 * var(--u)); aspect-ratio: auto; transition: scale .8s var(--ease); }
  .banner:hover img { scale: 1.04; }

  /* centred section headings with flourishes */
  .sec { margin-top: calc(14 * var(--u)); }
  .sec-head { justify-content: center; align-items: center; gap: calc(16 * var(--u)); padding: 0; }
  .sec-title { text-align: center; }
  .sec-head h2 { font-size: calc(30 * var(--u)); text-transform: uppercase; letter-spacing: .03em; word-spacing: .12em; align-items: center; }
  .sec-head h2::after { left: 8%; right: 8%; bottom: calc(-2 * var(--u)); height: calc(10 * var(--u)); }
  .sec-head h2 .h-heart { width: calc(22 * var(--u)); height: calc(28 * var(--u)); margin: 0; }
  .sec-head p { font-size: max(calc(15 * var(--u)), 11px); margin-top: calc(2 * var(--u)); }
  .flourish { width: calc(144 * var(--u)); height: auto; }
  .leaf { width: calc(34 * var(--u)); height: auto; }
  .flip { scale: -1 1; }
  .view-all { margin: 0 0 0 calc(10 * var(--u)); min-height: max(calc(36 * var(--u)), 28px); padding: 0 calc(16 * var(--u)) 0 calc(20 * var(--u)); border-width: 1.3px; font-family: var(--serif); font-size: max(calc(15 * var(--u)), 11px); }
  .va-ico svg { width: calc(16 * var(--u)); height: calc(16 * var(--u)); }
  .categories .view-all { position: absolute; right: calc(20 * var(--u)); top: calc(2 * var(--u)); }
  .e-ml { left: 0; top: calc(-6 * var(--u)); width: calc(88 * var(--u)); }
  .e-mr { right: 0; top: 0; width: calc(156 * var(--u)); }
  .e-cl { left: 0; top: calc(-8 * var(--u)); width: calc(96 * var(--u)); }
  .e-cr { right: 0; top: calc(-8 * var(--u)); width: calc(76 * var(--u)); }

  .rail { --pad: calc(20 * var(--u)); margin-top: calc(10 * var(--u)); padding: calc(6 * var(--u)) 0 calc(12 * var(--u)); }
  .prod { width: calc(152 * var(--u)); margin-right: calc(16 * var(--u)); border-radius: calc(12 * var(--u)); box-shadow: 0 calc(2 * var(--u)) calc(8 * var(--u)) rgba(120, 80, 20, .1); }
  .prod-img { aspect-ratio: 152 / 84; }
  .prod-body { min-height: calc(44 * var(--u)); padding: calc(6 * var(--u)) calc(36 * var(--u)) calc(6 * var(--u)) calc(10 * var(--u)); background: #fff center / cover; }
  .p1 .prod-body { background-image: url(../img/pastel-2.webp); }
  .p2 .prod-body { background-image: url(../img/pastel-1.webp); }
  .p3 .prod-body { background-image: url(../img/pastel-4.webp); }
  .p4 .prod-body { background-image: url(../img/pastel-3.webp); }
  .prod-name { font-family: var(--serif); font-size: max(calc(13.5 * var(--u)), 10.5px); padding: 0; }
  .prod-go { display: grid !important; right: calc(8 * var(--u)); bottom: 50%; translate: 0 50%; width: calc(26 * var(--u)); height: calc(26 * var(--u)); min-width: 18px; min-height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }

  .cats { grid-template-columns: repeat(7, 1fr); gap: calc(12 * var(--u)) calc(16 * var(--u)); margin: calc(12 * var(--u)) calc(20 * var(--u)) 0 calc(22 * var(--u)); }
  .cat.d-only { display: flex !important; }
  .cat { border-radius: calc(10 * var(--u)); }
  .cat img { aspect-ratio: 185 / 76; }
  .cat-name { font-family: var(--serif); font-size: max(calc(14.5 * var(--u)), 10.5px); padding: calc(8 * var(--u)) calc(38 * var(--u)) calc(9 * var(--u)) calc(12 * var(--u)); min-height: calc(36 * var(--u)); }
  .cat-go { right: calc(9 * var(--u)); bottom: calc(6 * var(--u)); width: calc(24 * var(--u)); height: calc(24 * var(--u)); min-width: 16px; min-height: 16px; }

  /* benefits strip with spool corners, then the footer */
  .benefits { margin: calc(26 * var(--u)) 0 0; padding: 0 calc(208 * var(--u)) calc(24 * var(--u)); }
  .benefits ul { grid-template-columns: repeat(4, auto); justify-content: space-between; padding: calc(16 * var(--u)) calc(44 * var(--u)); border-radius: calc(20 * var(--u)); }
  .benefits li { font-family: var(--serif); font-size: max(calc(15 * var(--u)), 11px); gap: calc(22 * var(--u)); }
  .benefits li span { white-space: nowrap; }
  .benefits li + li { padding-left: calc(34 * var(--u)); border-left: 1.5px solid #E7D7B5; }
  .benefits li svg { width: calc(54 * var(--u)); height: calc(54 * var(--u)); stroke-width: 1.3; }
  .foot-l { left: 0; bottom: 0; width: calc(204 * var(--u)); }
  .foot-r { right: 0; bottom: 0; width: calc(200 * var(--u)); }
  .foot { margin-top: calc(14 * var(--u)); }
  .foot-grid { grid-template-columns: 1.25fr 1fr 1.1fr; align-items: start; gap: calc(60 * var(--u)); padding: calc(30 * var(--u)) calc(118 * var(--u)) calc(20 * var(--u)); }
  .foot-logo { width: calc(84 * var(--u)); height: calc(84 * var(--u)); }
  .foot p, .foot li { font-family: var(--serif); font-size: max(calc(15 * var(--u)), 12.5px); }
  .foot .foot-script { font-size: max(calc(22 * var(--u)), 17px) !important; white-space: nowrap; }
  .foot h3 { font-size: max(calc(13 * var(--u)), 11px); }
  .foot li { margin-bottom: calc(4 * var(--u)); }
  .foot-links a { padding: 2px 0; }
  .social a { width: 40px; height: 40px; }
  .foot-bottom { padding: calc(12 * var(--u)) calc(118 * var(--u)) calc(14 * var(--u)); font-family: var(--serif); font-size: max(calc(14 * var(--u)), 12px); }
  .soon { bottom: 34px; }

  /* categories page / category page */
  .page-head { margin: calc(16 * var(--u)) calc(22 * var(--u)) 0; min-height: calc(190 * var(--u)); padding: calc(30 * var(--u)) calc(56 * var(--u)); border-radius: calc(20 * var(--u)); }
  .page-head h1 { font-size: calc(46 * var(--u)); }
  .page-head p { font-size: max(calc(17 * var(--u)), 12px); }
  .cats.all { grid-template-columns: repeat(6, 1fr); gap: calc(18 * var(--u)); margin: calc(22 * var(--u)) calc(22 * var(--u)) 0; }
  .cats.all .cat-name { font-size: max(calc(16 * var(--u)), 12px); padding: calc(10 * var(--u)) calc(40 * var(--u)) calc(11 * var(--u)) calc(13 * var(--u)); }
  .cats.all .cat-go { width: calc(26 * var(--u)); height: calc(26 * var(--u)); right: calc(9 * var(--u)); bottom: calc(8 * var(--u)); }
  .crumbs { padding: calc(16 * var(--u)) calc(24 * var(--u)) 0; font-size: max(calc(15 * var(--u)), 12px); }
  .cat-hero { margin: calc(12 * var(--u)) calc(22 * var(--u)) 0; min-height: calc(300 * var(--u)); border-radius: calc(20 * var(--u)); }
  .cat-hero-text { min-height: calc(300 * var(--u)); padding: calc(40 * var(--u)) calc(70 * var(--u)); width: 50%; }
  .cat-hero-img { width: 56%; }
  .kicker { font-size: calc(34 * var(--u)); }
  .cat-hero .sub { font-size: max(calc(18 * var(--u)), 12px); }
  .count-chip { font-size: max(calc(15 * var(--u)), 12px); }
  .empty { margin: calc(18 * var(--u)) calc(22 * var(--u)) 0; padding: calc(30 * var(--u)); border-width: 2px; border-radius: calc(20 * var(--u)); }
  .empty-art { width: calc(120 * var(--u)); }
  .empty h1, .empty h2 { font-size: calc(32 * var(--u)); }
  .empty p { font-size: max(calc(17 * var(--u)), 13px); }
  .step { margin: calc(16 * var(--u)) calc(22 * var(--u)) 0; }
  .step a { font-family: var(--serif); font-size: max(calc(16 * var(--u)), 13px); }
  .more { margin-top: calc(30 * var(--u)); }
  .more .sec-head { justify-content: space-between; padding: 0 calc(24 * var(--u)); }
  .more .sec-head h2 { text-transform: none; letter-spacing: 0; }
  .more .view-all { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .rail { overflow-x: auto; }
  .rail-track { animation: none; transform: translateX(var(--pad)); }
  @view-transition { navigation: none; }
}

/* =====================================================================
   THE CHOSEN LOOK — white page (Option B), artwork only around the header,
   cards keep the coloured pastel labels from the owner's first design (Option A).
   ===================================================================== */
[data-look="white"] { --cream: #FFFFFF; --line: #E9ECE9; }
[data-look="white"] .top.stuck { background: rgba(255, 255, 255, .94); box-shadow: 0 6px 22px rgba(14, 59, 43, .08); }
/* decoration: keep the leaves beside the header, drop the rest */
[data-look="white"] .doodle:not(.e-tl):not(.e-tr):not(.d-tl):not(.d-tr),
[data-look="white"] .sec-bg, [data-look="white"] .hero-bg, [data-look="white"] .leaf, [data-look="white"] .spool { display: none !important; }
[data-look="white"] .sec-head h2::after { display: none; }
[data-look="white"] .hero-photo { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%); mask-image: linear-gradient(to right, transparent 0, #000 30%); }
/* cards: white, hairline border, soft neutral shadow */
[data-look="white"] .cat, [data-look="white"] .prod { background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(14, 59, 43, .05); }
[data-look="white"] .cat:hover, [data-look="white"] .prod:hover { border-color: #C9D3CD; box-shadow: 0 10px 24px rgba(14, 59, 43, .12); }
[data-look="white"] .banner { box-shadow: 0 8px 24px rgba(14, 59, 43, .12); }
/* quiet green-grey surfaces instead of warm beige */
[data-look="white"] .trust, [data-look="white"] .benefits ul { background: #F4F7F5; box-shadow: none; }
[data-look="white"] .trust li + li, [data-look="white"] .benefits li + li { border-color: #DCE3DE; }
[data-look="white"] .page-head, [data-look="white"] .cat-hero { background-color: #F4F7F5; box-shadow: none; }
[data-look="white"] .empty { background: #fff; border-color: #D5DDD8; }
[data-look="white"] .step a { border: 1px solid var(--line); box-shadow: none; }
[data-look="white"] .suggest a[role=option]:hover, [data-look="white"] .suggest a[role=option].on, [data-look="white"] .drop a:hover { background: #F1F5F2; }
[data-look="white"] .tabs { background: #fff; border-top: 1px solid var(--line); }

/* =====================================================================
   PRODUCTS — cards on a category page, the product page and its shade picker
   ===================================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: calc(22 * var(--u)) calc(37 * var(--u)) 0; }
.pcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; transition: translate .3s var(--ease), box-shadow .3s, border-color .3s; }
.pcard:hover { translate: 0 -4px; border-color: #C9D3CD; box-shadow: 0 10px 24px rgba(14, 59, 43, .12); }
.pcard-img { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #F4F7F5; }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.pcard-ph { font-family: var(--serif); font-weight: 700; font-size: 20px; color: #7C8A83; }
.pcard-body { display: grid; align-content: start; gap: 2px; padding: 10px 14px 12px; background: url(../img/pastel-2.webp) center / cover; flex: 1; }
.pcard:nth-child(4n+2) .pcard-body { background-image: url(../img/pastel-1.webp); }
.pcard:nth-child(4n+3) .pcard-body { background-image: url(../img/pastel-4.webp); }
.pcard:nth-child(4n+4) .pcard-body { background-image: url(../img/pastel-3.webp); }
.pcard-body small { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #5B4A14; }
.pcard-body b { font-family: var(--serif); font-size: 18px; line-height: 1.2; color: var(--green); }
.pcard-body span { font-size: 13.5px; color: #33403A; }
.pcard.is-soon { cursor: default; }

.pp-top, .pp-layout { margin-inline: max(16px, calc(37 * var(--u))); }
.pp-top { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.pp-img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.pp-brand { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8A6A1C; }
.pp-info h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 4.6vw, 40px); line-height: 1.1; color: var(--green); margin-top: 2px; text-wrap: balance; }
.pp-sub { margin-top: 6px; font-family: var(--serif); color: #33403A; }
.pp-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; }
.pp-facts dt { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pp-facts dd { font-weight: 700; }
.pp-price { margin-top: 14px; display: inline-block; padding: 6px 12px; border-radius: 10px; background: #F4F7F5; font-size: 14px; color: #33403A; }
.pp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 22px; }
.picker h2, .basket h2 { font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.2; color: var(--green); }
.pp-lead { margin-top: 4px; max-width: 62ch; color: #3F4B45; font-size: 15px; line-height: 1.5; }
.pk-search { position: relative; margin-top: 14px; }
.pk-search input { width: 100%; min-height: 48px; padding: 8px 46px; border: 1.5px solid #3A4540; border-radius: 12px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
.pk-search input:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(12, 127, 124, .16); }
.pk-search > svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; pointer-events: none; }
.pk-clear { position: absolute; right: 4px; top: 50%; translate: 0 -50%; width: 40px; height: 40px; font-size: 22px; color: var(--muted); border-radius: 10px; }
.pk-seg { display: inline-flex; margin-top: 10px; padding: 3px; border-radius: 12px; background: #EEF2EF; }
.pk-seg button { min-height: 40px; padding: 0 14px; border-radius: 9px; font-weight: 700; font-size: 14.5px; color: #46524C; transition: background-color .2s, color .2s; }
.pk-seg button[aria-pressed="true"] { background: var(--green); color: #fff; }
.pk-chips { display: flex; gap: 8px; margin-top: 10px; padding: 2px 0 8px; overflow-x: auto; scrollbar-width: thin; }
.pk-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background-color .2s, border-color .2s, color .2s; }
.pk-chip i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); }
.pk-chip small { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.pk-chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.pk-chip[aria-pressed="true"] small { color: #CFE0D6; }
.pk-group { margin-top: 22px; }
.pk-group h3 { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--ink); }
.pk-group h3 small { font: 600 14px var(--sans); color: var(--muted); margin-left: 8px; }
.pk-note { margin-top: 4px; font-size: 14px; color: #8A4309; }
.pk-wait { margin-top: 20px; color: var(--muted); }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 10px 8px; margin-top: 10px; }
.sw { display: grid; gap: 4px; text-align: center; border-radius: 10px; }
.sw-tile { position: relative; display: block; aspect-ratio: 5 / 4; border-radius: 10px; border: 1px solid rgba(0, 0, 0, .16); overflow: hidden; transition: translate .2s var(--ease), box-shadow .2s; }
.sw-tile::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0) 0 5px, rgba(255, 255, 255, .22) 5px 6px); }
.sw:hover .sw-tile { translate: 0 -2px; box-shadow: 0 6px 14px rgba(14, 59, 43, .18); }
.sw:active .sw-tile { translate: 0 0; }
.sw-code { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.sw[aria-pressed="true"] .sw-tile { outline: 3px solid var(--green); outline-offset: 2px; }
.sw-tick { position: absolute; z-index: 1; top: 4px; right: 4px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; background: var(--green); color: #fff; font-size: 12px; font-weight: 800; display: none; align-items: center; justify-content: center; }
.sw[aria-pressed="true"] .sw-tick { display: inline-flex; }

.basket { align-self: start; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; display: grid; gap: 12px; }
.bk-none { color: var(--muted); font-size: 15px; }
.bk-lines li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.bk-dot { width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .18); }
.bk-lines small { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid #9AA59E; border-radius: 10px; overflow: hidden; background: #fff; }
.stepper button { width: 36px; min-height: 40px; background: #F1F5F2; font-size: 18px; font-weight: 800; }
.stepper input { width: 46px; min-height: 40px; border: 0; text-align: center; font: inherit; font-weight: 800; background: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bk-rm { width: 40px; min-height: 40px; border-radius: 10px; color: var(--muted); font-size: 20px; }
.bk-rm:hover { background: #F6E9E4; color: #8A4309; }
.bk-bulk { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; font-size: 14px; font-weight: 700; }
.bk-bulk input { width: 72px; min-height: 40px; padding: 4px 8px; border: 1.5px solid #9AA59E; border-radius: 10px; text-align: center; font: inherit; }
.bk-sum { margin-top: 12px; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.bk-sum div { display: flex; justify-content: space-between; }
.bk-sum dd { font-weight: 800; }
.bk-btns { display: grid; gap: 8px; margin-top: 12px; }
.bk-btns .btn, .bk-bulk .btn, .pk-bottom .btn { margin: 0; justify-content: center; }
.btn.ghost { background: #fff; color: var(--green); border: 1.5px solid var(--green); box-shadow: none; }
.bk-bulk .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
.bk-result { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #E2F1E8; color: #14452D; font-size: 14px; overflow-wrap: anywhere; }
.pk-bottom { position: fixed; z-index: 30; left: 0; right: 0; bottom: max(calc(96 * var(--u)), 58px); padding: 8px 16px; background: var(--green); color: #F4ECD8; display: none; align-items: center; justify-content: space-between; gap: 12px; }
.pk-bottom.show { display: flex; }
.pk-bottom .btn { min-height: 40px; padding: 0 16px; background: var(--gold); color: #0B2E22; }
@media (min-width: 640px) { .pp-top { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 28px; } .pk-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); } .prods { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
@media (min-width: 1024px) {
  .prods { margin: calc(18 * var(--u)) calc(22 * var(--u)) 0; gap: 16px; }
  .pp-top, .pp-layout { margin-inline: max(24px, calc(118 * var(--u))); }
  .pp-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .basket { position: sticky; top: calc(130 * var(--u) + 12px); max-height: calc(100vh - 150 * var(--u)); overflow: auto; }
  .pk-bottom.show { display: none; }
}

/* =====================================================================
   WORDPRESS PAGES — single product, cart, checkout, account, policies
   ===================================================================== */
.wc-main { min-height: 40vh; }
.wc-main > .woocommerce, .wc-main > div.product, .wc-main > .entry-body, .wc-main > .woocommerce-notices-wrapper { margin: 24px max(16px, calc(37 * var(--u))) 0; }
@media (min-width: 1024px) { .wc-main > .woocommerce, .wc-main > div.product, .wc-main > .entry-body, .wc-main > .woocommerce-notices-wrapper { margin-inline: max(24px, calc(118 * var(--u))); } }
.entry-body h1, .wc-main h1.product_title, .wc-main .woocommerce h2 { font-family: var(--serif); font-weight: 700; color: var(--green); line-height: 1.15; }
.entry-body h1 { font-size: clamp(28px, 4vw, 40px); }
.entry-content { max-width: 70ch; margin-top: 14px; line-height: 1.65; }
.entry-content p + p, .entry-content ul, .entry-content h2 { margin-top: 12px; }
.entry-content h2 { font-family: var(--serif); font-size: 22px; color: var(--green); }
.entry-content ul { padding-left: 1.2em; list-style: disc; }
.pp-price-now { margin-top: 14px; font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--green); }
.pp-price-now small { font: 600 15px var(--sans); color: var(--muted); }
.pp-wholesale, .ksr-wholesale { margin-top: 6px; display: inline-block; padding: 4px 10px; border-radius: 8px; background: #E2F1E8; color: #14452D; font-size: 14px; font-weight: 700; }
.ksr-unit { margin-top: 6px; font-size: 14px; color: var(--muted); }
.sw.oos { cursor: not-allowed; }
.sw.oos .sw-tile { opacity: .35; }
.sw.oos .sw-tile::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 1px), #17251F 50%, transparent calc(50% + 1px)); }
.sw.oos .sw-code { text-decoration: line-through; color: var(--muted); }

/* ---- ordinary product page ---- */
.pp-top.big { grid-template-columns: minmax(0, 1fr); gap: 20px; border-bottom: 0; }
.pp-pic { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #F4F7F5; }
.pp-pic .pp-img { border: 0; border-radius: 0; display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; }
.pp-noimg { aspect-ratio: 4 / 3; display: grid; place-content: center; justify-items: center; gap: 10px; color: #6B7A72; font-weight: 700; }
.pp-noimg img { width: 96px; height: 96px; border-radius: 50%; opacity: .45; filter: grayscale(.4); }
.pp-price-now ins { text-decoration: none; } .pp-price-now del { font-size: .65em; font-weight: 600; color: var(--muted); margin-right: 6px; }
.pp-buy { display: grid; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.pp-opt { border: 0; padding: 0; margin: 0; min-width: 0; }
.pp-opt legend, .pp-qlabel { display: block; padding: 0; margin-bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-pills label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid #B9C4BD; border-radius: 99px; background: #fff; font-weight: 700; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.pp-pills label:hover { border-color: var(--green); }
.pp-pills input:checked + label { background: var(--green); border-color: var(--green); color: #fff; }
.pp-pills input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }
.pp-pills input:disabled + label { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.pp-buyrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; }
.pp-buyrow .btn { margin: 0; min-height: 48px; }
.pp-buyrow .btn:disabled { opacity: .45; cursor: not-allowed; }
.pp-buyrow .stepper input { width: 64px; }
.pp-msg { min-height: 1.4em; font-size: 14px; color: #8A4309; }
.ksr-notices { margin: 12px max(16px, calc(37 * var(--u))) 0; }
.ksr-notices .woocommerce-message, .ksr-notices .woocommerce-error, .ksr-notices .woocommerce-info { list-style: none; margin: 0 0 8px; padding: 12px 16px; border: 0; border-radius: 12px; background: #E2F1E8; color: #14452D; font-weight: 700; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.ksr-notices .woocommerce-error { background: #FBEBDD; color: #8A4309; }
.ksr-notices .woocommerce-message::before, .ksr-notices .woocommerce-error::before, .ksr-notices .woocommerce-info::before { display: none; }
.ksr-notices a.button { order: 2; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 99px; background: var(--green); color: #fff; font-weight: 800; }
@media (min-width: 760px) { .pp-top.big { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 36px; } }
@media (min-width: 1024px) { .ksr-notices { margin-inline: max(24px, calc(118 * var(--u))); } }

/* ---- cart, checkout and account (WooCommerce blocks in the shop's colours) ---- */
.entry.is-shop .entry-content { max-width: none; }
.entry.is-shop { --wp--preset--color--contrast: #0E3B2B; }
.entry-content .wc-block-components-button:not(.is-link), .entry-content .wp-element-button, .entry-content .woocommerce-button, .entry-content button[type=submit].button, .entry-content a.button {
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 99px; background: var(--green); color: #fff; font: 800 15px var(--sans); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s; }
.entry-content .wc-block-components-button:not(.is-link):hover, .entry-content .wp-element-button:hover, .entry-content a.button:hover { background: #17503C; color: #fff; }
.entry-content .wc-block-components-button:not(.is-link):disabled { opacity: .5; }
.entry-content .wc-block-cart, .entry-content .wc-block-checkout { font-family: var(--sans); color: var(--ink); margin-top: 16px; }
.entry-content .wc-block-components-product-name { font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--green); text-decoration: none; }
.entry-content .wc-block-components-sidebar, .entry-content .wc-block-cart__sidebar .wc-block-components-sidebar { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.entry-content .wc-block-components-totals-footer-item .wc-block-components-totals-item__label, .entry-content .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--green); }
.entry-content .wc-block-components-title, .entry-content .wc-block-components-checkout-step__title, .entry-content h2.wc-block-cart__totals-title { font-family: var(--serif); font-weight: 700; color: var(--green); text-transform: none; letter-spacing: 0; font-size: 20px; }
.entry-content .wc-block-components-text-input input, .entry-content .wc-block-components-combobox .components-combobox-control input, .entry-content .wc-blocks-components-select__select, .entry-content .wc-block-components-textarea { border: 1px solid #B9C4BD; border-radius: 10px; }
.entry-content .wc-block-components-text-input input:focus, .entry-content .wc-blocks-components-select__select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(227, 176, 75, .5); outline: 0; }
.entry-content .wc-block-components-radio-control__input:checked { border-color: var(--green); }
.entry-content .wc-block-components-radio-control__input:checked::before { background: var(--green); }
.entry-content .wc-block-components-checkbox__input[type=checkbox]:checked { background: var(--green); border-color: var(--green); }
.entry-content .wc-block-components-product-metadata, .entry-content .wc-block-components-product-details { font-size: 13.5px; color: #3F4B45; }
.entry-content .wc-block-components-sale-badge, .entry-content .wc-block-components-product-badge { border: 0; border-radius: 99px; background: #E2F1E8; color: #14452D; font-weight: 800; }
.entry-content .wc-block-components-quantity-selector { border-radius: 10px; }
.entry-content .wc-block-components-notice-banner { border-radius: 12px; }
.entry-content .wc-block-cart-items__header, .entry-content .wc-block-cart-items th { font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.entry-content a { color: #0C6B55; }
.entry-content .wc-block-cart__empty-cart__title, .entry-content .wp-block-heading { font-family: var(--serif); color: var(--green); }
.woocommerce-account .entry-content .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.woocommerce-account .entry-content .woocommerce-MyAccount-navigation a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 99px; text-decoration: none; font-weight: 700; color: var(--ink); }
.woocommerce-account .entry-content .woocommerce-MyAccount-navigation .is-active a { background: var(--green); border-color: var(--green); color: #fff; }
.woocommerce-account .entry-content .woocommerce-MyAccount-navigation, .woocommerce-account .entry-content .woocommerce-MyAccount-content { float: none; width: auto; }
.entry-content form.login, .entry-content form.register { max-width: 420px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; }
.entry-content form .form-row input.input-text { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #B9C4BD; border-radius: 10px; }
.entry-content .ksr-card { margin-top: 26px; padding: 6px 20px 18px; border: 1px solid var(--line); border-radius: 14px; background: #F7F9F7; }
.entry-content .ksr-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.entry-content .ksr-card dt { font-weight: 800; color: var(--muted); }
.entry-content .ksr-card dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .entry-content .ksr-card dl { grid-template-columns: 1fr; gap: 0; } .entry-content .ksr-card dd { margin-bottom: 8px; } }

/* wishlist heart */
.pcard-img { position: relative; }
.wish { position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #6B7A72; box-shadow: 0 2px 8px rgba(14, 59, 43, .18); cursor: pointer; transition: transform .2s var(--ease), color .2s; }
.wish svg { width: 20px; height: 20px; }
.wish:hover { transform: scale(1.08); color: #D0185C; }
.wish:focus-visible { outline: 3px solid #E3B04B; outline-offset: 2px; }
.wish.on { color: #D0185C; }
.wish.on svg path { fill: currentColor; }
.wish-lg { position: static; display: inline-grid; margin-top: 10px; box-shadow: none; border: 1.5px solid var(--line); background: #fff; }
.wish-count[hidden] { display: none; }
.wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 18px; }
.wishlist-grid .empty { grid-column: 1 / -1; text-align: center; padding: 36px 16px; }

/* order received page */
.woocommerce-order { max-width: 880px; }
.woocommerce-order .woocommerce-notice--success { margin: 0 0 18px; padding: 16px 18px; border-radius: 14px; background: #E2F1E8; color: #14452D; font-weight: 700; font-size: 17px; line-height: 1.4; }
.woocommerce-order ul.order_details { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; padding: 0; margin: 0 0 24px; }
.woocommerce-order ul.order_details li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #F4F7F5; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.woocommerce-order ul.order_details li strong { display: block; margin-top: 4px; font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--green); overflow-wrap: anywhere; }
.woocommerce-order h2, .woocommerce-order .woocommerce-order-details__title, .woocommerce-order .woocommerce-column__title { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--green); margin: 22px 0 10px; }
.woocommerce-order table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.woocommerce-order table.shop_table th, .woocommerce-order table.shop_table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.woocommerce-order table.shop_table tfoot tr:last-child th, .woocommerce-order table.shop_table tfoot tr:last-child td { border-bottom: 0; }
.woocommerce-order table.shop_table thead th { background: #F4F7F5; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.woocommerce-order table.shop_table td a { font-weight: 700; color: var(--green); }
.woocommerce-order table.shop_table .wc-item-meta, .woocommerce-order table.shop_table ul { list-style: none; padding: 0; margin: 4px 0 0; font-size: 13.5px; color: #3F4B45; }
.woocommerce-order address { font-style: normal; line-height: 1.55; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.woocommerce-order .woocommerce-customer-details .col2-set, .woocommerce-order .woocommerce-columns--addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.woocommerce-order .woocommerce-customer-details .col-1, .woocommerce-order .woocommerce-customer-details .col-2 { float: none; width: auto; }

/* install the app bar */
.appbar { position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(max(calc(96 * var(--u)), 58px) + env(safe-area-inset-bottom) + 10px); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 16px; background: #0E3B2B; color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.appbar img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.appbar-t { flex: 1; min-width: 0; line-height: 1.3; }
.appbar-t b { display: block; font-size: 15px; }
.appbar-t span { font-size: 13px; color: #D5E4DB; }
.appbar-t span svg { vertical-align: -3px; }
.appbar-go { min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; background: #E3B04B; color: #0B2E22; font-weight: 800; font-size: 15px; }
.appbar-x { width: 40px; height: 44px; border: 0; background: transparent; color: #fff; font-size: 26px; line-height: 1; }
@media (min-width: 901px) { .appbar { display: none; } }

/* more than one product photo */
.pp-picwrap { min-width: 0; }
.pp-thumbs { display: flex; gap: 8px; padding: 10px; background: #fff; border-top: 1px solid var(--line); }
.pp-picwrap .pp-thumbs { padding: 8px 0 0; background: none; border: 0; }
.pp-thumbs button { width: 56px; height: 56px; padding: 0; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; }
.pp-thumbs button.on { border-color: var(--green); }
.pp-thumbs button:focus-visible { outline: 3px solid #E3B04B; outline-offset: 2px; }
.pp-thumbs img { width: 100%; height: 100%; object-fit: contain; background: #F7F3E8; display: block; }

/* product photos: swipe strip, dots, big view */
.pp-gal { position: relative; min-width: 0; }
.pp-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; background: #fff; }
.pp-track::-webkit-scrollbar { display: none; }
.pp-track:focus-visible { outline: 3px solid #E3B04B; outline-offset: -3px; }
.pp-slide, .pp-pic .pp-track .pp-img, .pp-picwrap .pp-track .pp-img { flex: 0 0 100%; width: 100%; min-width: 0; aspect-ratio: 1 / 1; object-fit: contain; scroll-snap-align: center; border: 0; border-radius: 0; background: #fff; cursor: zoom-in; display: block; }
.pp-picwrap .pp-gal { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.pp-picwrap .pp-thumbs { display: none; }
.pp-dots { position: absolute; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.pp-pic .pp-dots { bottom: 86px; }
.pp-picwrap .pp-dots { bottom: 8px; }
.pp-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(14, 59, 43, .25); transition: background-color .2s, width .2s; }
.pp-dots i.on { width: 18px; border-radius: 99px; background: var(--green); }
.pp-zoomhint { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 99px; background: rgba(23, 37, 31, .6); color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; }
.pp-picwrap .pp-zoomhint { display: none; }
.pp-pic > .pp-img { cursor: zoom-in; }

.lbox { position: fixed; inset: 0; z-index: 90; background: rgba(10, 16, 13, .96); display: flex; align-items: center; }
.lbox-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lbox-track::-webkit-scrollbar { display: none; }
.lbox-slide { flex: 0 0 100%; display: grid; place-items: center; padding: 56px 8px; scroll-snap-align: center; min-width: 0; }
.lbox-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; background: #fff; touch-action: pinch-zoom pan-x pan-y; }
.lbox-x { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 12px; z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lbox-nav { position: absolute; top: 50%; z-index: 2; translate: 0 -50%; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lbox-nav.prev { left: 10px; } .lbox-nav.next { right: 10px; }
.lbox-x:focus-visible, .lbox-nav:focus-visible { outline: 3px solid #E3B04B; }
.lbox-count { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; font-size: 14px; }
@media (max-width: 700px) { .lbox-nav { display: none; } }

/* home: threads feature and best selling */
.feature { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 18px max(16px, calc(37 * var(--u))) 0; border-radius: 20px; overflow: hidden; background: #0E3B2B; color: #fff; box-shadow: 0 10px 28px rgba(14, 59, 43, .22); }
.feature-pic { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; display: block; }
.feature-body { padding: 18px 18px 20px; }
.feature-tag { display: inline-block; padding: 3px 10px; border-radius: 99px; background: #E3B04B; color: #0B2E22; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.feature h2 { margin-top: 10px; font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 5.4vw, 40px); line-height: 1.1; color: #fff; text-wrap: balance; }
.feature h2 em { font-style: italic; color: #F2C768; }
.feature p { margin-top: 8px; max-width: 46ch; color: #D5E4DB; font-size: 15px; line-height: 1.5; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; list-style: none; padding: 0; }
.feature-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 99px; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; transition: background-color .2s, color .2s; }
.feature-chips a:hover, .feature-chips a:focus-visible { background: #fff; color: #0E3B2B; }
.feature-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin-top: 16px; padding: 0 22px; border-radius: 99px; background: #E3B04B; color: #0B2E22; font-weight: 800; text-decoration: none; transition: transform .2s, background-color .2s; }
.feature-cta:hover { background: #EFC469; transform: translateY(-2px); }
.feature-cta svg { width: 18px; height: 18px; }
@media (min-width: 820px) { .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: stretch; margin-top: 26px; } .feature-pic { aspect-ratio: auto; height: 100%; min-height: 300px; } .feature-body { padding: 34px 36px; align-self: center; } }
@media (min-width: 1024px) { .feature { margin-inline: max(24px, calc(118 * var(--u))); } }
.best .prods { margin-top: 14px; }
.best-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 max(16px, calc(37 * var(--u))); }
.best-head h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 5vw, 34px); color: var(--green); line-height: 1.1; }
.best-head p { font-family: var(--serif); color: #33403A; margin-top: 4px; font-size: 14.5px; }
.best-head a { flex: none; font-weight: 800; color: #0C6B55; }
.best { margin-top: 26px; }
@media (min-width: 1024px) { .best-head, .best .prods { margin-inline: max(24px, calc(118 * var(--u))); } }

/* product rows on the home page: names never push a card taller than its neighbours */
.rail-track { align-items: stretch; }
.prod { display: flex; flex-direction: column; }
.prod-body { flex: 1; justify-content: flex-start; }
.prod-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.prod-price { margin-top: auto; padding-top: 4px; }
.sec.best { margin-top: 26px; }
.feature + .sec { margin-top: 26px; }

.pp-cardhint { display: block; padding: 5px 6px; background: #F4F7F5; color: #33403A; font-size: 11.5px; font-weight: 700; text-align: center; line-height: 1.25; }
/* the dots sit under the photo, not on top of it */
.pp-picwrap .pp-dots { position: static; padding: 7px 0 5px; background: #fff; }

/* Retail / Wholesale choice */
.pp-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; max-width: 460px; }
.pp-mode label { position: relative; display: block; cursor: pointer; }
.pp-mode input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pp-mode span { display: grid; gap: 2px; height: 100%; min-height: 58px; padding: 9px 12px; border: 2px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s, background-color .2s; }
.pp-mode b { font-size: 15px; color: var(--ink); }
.pp-mode small { font-size: 12.5px; line-height: 1.3; color: #3F4B45; }
.pp-mode input:checked + span { border-color: var(--green); background: #E2F1E8; }
.pp-mode input:checked + span b { color: var(--green); }
.pp-mode input:focus-visible + span { outline: 3px solid #E3B04B; outline-offset: 2px; }
.pp-was { color: #6B7A72; font-weight: 500; font-size: .72em; text-decoration-thickness: 2px; margin-right: 4px; }
.pp-wtag { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 2px 9px; border-radius: 99px; background: #E3B04B; color: #0B2E22; font: 800 12px var(--sans); letter-spacing: .04em; }

.feature-logo { display: block; width: min(230px, 62%); height: auto; margin-bottom: 12px; }
.feature-tag { line-height: 1.35; padding: 5px 12px; }
.feature-chips a { max-width: 100%; }
.feature-chips li { min-width: 0; max-width: 100%; }
.feature-chips a { display: block; line-height: 40px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* threads block on a light card (no picture) */
.feature.light { grid-template-columns: minmax(0, 1fr); background: #FFF6DF; color: #17251F; border: 1.5px solid #EBD49A; box-shadow: 0 6px 20px rgba(120, 80, 20, .1); margin-bottom: 8px; }
.feature.light .feature-body { padding: 22px 20px 24px; }
.feature.light h2 { color: var(--green); }
.feature.light h2 em { color: #B5831A; }
.feature.light p { color: #33403A; }
.feature.light .feature-tag { background: var(--green); color: #fff; }
.feature.light .feature-chips a { border-color: #C9B77F; color: var(--green); background: #fff; }
.feature.light .feature-chips a:hover, .feature.light .feature-chips a:focus-visible { background: var(--green); color: #fff; border-color: var(--green); }
.feature.light .feature-cta { background: var(--green); color: #fff; }
.feature.light .feature-cta:hover { background: #17503C; }
@media (min-width: 820px) { .feature.light .feature-body { padding: 34px 40px; } }

/* shop page: categories under their main type */
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px max(16px, calc(37 * var(--u))) 0; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.group-head h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 4.6vw, 30px); color: var(--green); line-height: 1.15; }
.group-head h2 a { color: inherit; text-decoration: none; }
.group-head span { flex: none; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.group-soon { margin: 12px max(16px, calc(37 * var(--u))) 0; padding: 16px; border: 1.5px dashed #D5DDD8; border-radius: 14px; color: #3F4B45; }
@media (min-width: 1024px) { .group-head, .group-soon { margin-inline: max(24px, calc(118 * var(--u))); } }

/* empty cart */
.wp-block-woocommerce-empty-cart-block .wc-block-grid, .wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-new, .wp-block-woocommerce-empty-cart-block .wp-block-separator, .wp-block-woocommerce-empty-cart-block .wp-block-query, .wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-collection { display: none !important; }
/* never show the empty-cart card while the cart has items */
.wp-block-woocommerce-cart:has(.wc-block-cart-items__row, .wc-block-cart-item) .wp-block-woocommerce-empty-cart-block { display: none !important; }
.cart-empty { max-width: 460px; margin: 24px auto 40px; padding: 32px 20px; text-align: center; border: 1.5px dashed #D5DDD8; border-radius: 20px; background: #fff; }
.cart-empty-ico { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; background: #E2F1E8; color: var(--green); }
.cart-empty-ico svg { width: 34px; height: 34px; }
.cart-empty h2 { font-family: var(--serif); font-weight: 700; font-size: 26px; color: var(--green); margin: 0; }
.cart-empty h2::before, .cart-empty h2::after { display: none !important; content: none !important; }
.cart-empty p { margin: 8px auto 18px; max-width: 30em; color: #3F4B45; }
.cart-empty-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cart-empty .ksr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 99px; background: var(--green); color: #fff; font-weight: 800; text-decoration: none; }
.cart-empty .ksr-btn.ghost { background: #fff; color: var(--green); border: 1.5px solid var(--green); }

/* side menu */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-bg { position: absolute; inset: 0; background: rgba(10, 16, 13, .5); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); display: flex; flex-direction: column; background: #fff; box-shadow: 8px 0 30px rgba(0, 0, 0, .25); translate: -102% 0; transition: translate .28s var(--ease); padding-top: env(safe-area-inset-top); }
.drawer.open .drawer-panel { translate: 0 0; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.drawer-top img { width: 56px; height: 56px; border-radius: 50%; }
.drawer-x { width: 46px; height: 46px; border: 0; border-radius: 50%; background: #F1F4F2; color: var(--green); font-size: 30px; line-height: 1; cursor: pointer; }
.drawer-nav { flex: 1; overflow-y: auto; padding: 6px 8px; overscroll-behavior: contain; }
.dr-link, .dr-group > summary { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 12px; border-radius: 12px; color: var(--ink); font-weight: 800; font-size: 16.5px; text-decoration: none; cursor: pointer; list-style: none; }
.dr-group > summary::-webkit-details-marker { display: none; }
.dr-group > summary svg { width: 20px; height: 20px; transition: rotate .2s; }
.dr-group[open] > summary svg { rotate: 180deg; }
.dr-link:hover, .dr-group > summary:hover { background: #F1F5F2; }
.dr-group > summary { font-family: var(--serif); font-size: 19px; color: var(--green); }
.dr-group ul { list-style: none; margin: 0 0 6px 12px; padding: 2px 0 6px 10px; border-left: 2px solid #E3B04B; }
.dr-group li a { display: block; padding: 11px 10px; border-radius: 10px; color: #25302B; font-weight: 600; font-size: 15.5px; text-decoration: none; }
.dr-group li a:hover { background: #F1F5F2; }
.dr-group li a.dr-all { color: #0C6B55; font-weight: 800; }
.dr-soon { margin: 0 0 6px 24px; padding: 8px 10px; color: #6B7A72; font-size: 14.5px; }
.drawer-help { padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 8px; background: #F7F9F7; }
.dr-call, .dr-wa { display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 99px; font-weight: 800; text-decoration: none; }
.dr-call { background: var(--green); color: #fff; }
.dr-wa { background: #E2F1E8; color: #14452D; }
.drawer-help p { margin: 2px 0 0; font-size: 13px; color: #5C6B63; text-align: center; line-height: 1.7; }
.drawer-help p a { color: #3F4B45; }
.burger { background: transparent; border: 0; cursor: pointer; }
@media (min-width: 1024px) { .drawer { display: none !important; } }

/* product rows the customer can swipe */
.rail.swipe { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.rail.swipe::-webkit-scrollbar { display: none; }
.rail.swipe .rail-track { animation: none !important; transform: none !important; padding-left: var(--pad); }

/* My account: Login and Create account */
.woocommerce-account .u-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 12px; }
@media (min-width: 820px) { .woocommerce-account .u-columns { grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; } }
.woocommerce-account .u-columns .u-column1, .woocommerce-account .u-columns .u-column2 { float: none; width: auto; }
.woocommerce-account .u-columns h2 { font-family: var(--serif); font-weight: 700; font-size: 24px; color: var(--green); margin-bottom: 8px; }
.woocommerce-account .woocommerce-form-register, .woocommerce-account .woocommerce-form-login { max-width: none; }
.woocommerce-account .form-row { margin-bottom: 12px; }
.woocommerce-account .form-row label { display: block; margin-bottom: 4px; font-weight: 700; font-size: 14px; color: var(--ink); }
.woocommerce-account .woocommerce-form-register .woocommerce-form-register__submit, .woocommerce-account .woocommerce-form-login__submit { min-height: 48px; padding: 0 26px; border: 0; border-radius: 99px; background: var(--green); color: #fff; font-weight: 800; cursor: pointer; }
.woocommerce-account .woocommerce-privacy-policy-text { font-size: 13px; color: #3F4B45; margin: 6px 0 12px; }

/* ---------- Products page: every product, with sorting and filters ---------- */
.pl-head { margin: calc(14 * var(--u)) calc(37 * var(--u)) 0; }
.pl-head h1 { font-family: var(--serif); font-weight: 700; font-size: max(calc(44 * var(--u)), 26px); color: var(--green); line-height: 1.1; }
.pl-head p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.pl-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; align-items: end; margin: 14px calc(37 * var(--u)) 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.pl-filter label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pl-filter label > span:first-child { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pl-filter select, .pl-filter input { width: 100%; min-height: 44px; padding: 0 12px; border: 1.5px solid #CFD8D2; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.pl-filter select:focus-visible, .pl-filter input:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.pl-price, .pl-go { grid-column: 1 / -1; }
.pl-range { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.pl-range i { font-style: normal; font-size: 14px; color: var(--muted); }
.pl-go { display: flex; align-items: center; gap: 16px; }
.pl-go .btn { min-height: 44px; }
.pl-clear { font-weight: 700; color: var(--green); text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }
.pl-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin: 22px calc(37 * var(--u)) 0; font-weight: 700; color: var(--muted); }
@media (min-width: 760px) {
  .pl-filter { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.3fr) auto; }
  .pl-price, .pl-go { grid-column: auto; }
}
@media (min-width: 1024px) {
  .pl-head, .pl-filter, .pl-pages { margin-inline: calc(22 * var(--u)); }
}

/* search suggestions: categories, products, shades */
.suggest h4 { margin: 6px 10px 2px; font: 800 11.5px/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.suggest .sg-t { display: grid; gap: 1px; min-width: 0; line-height: 1.25; }
.suggest .sg-t small { font-size: 13px; color: var(--muted); font-weight: 500; }
.suggest .sg-prod img, .suggest .sg-ph { width: 44px; height: 44px; flex: none; border-radius: 10px; object-fit: cover; background: #EEF2EF; }
.suggest .sg-sw { width: 30px; height: 30px; flex: none; margin: 0 7px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }
.suggest .sg-all { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; color: var(--green); font-weight: 800; }
.suggest .sg-wait { padding: 6px 12px 8px; font-size: 13px; }

/* Products page: the three lists */
.pl-tabs { display: flex; gap: 8px; margin: 14px calc(37 * var(--u)) 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pl-tabs::-webkit-scrollbar { display: none; }
.pl-tabs a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid #CFD8D2; border-radius: 99px; background: #fff; color: var(--green); font-weight: 800; font-size: 15px; white-space: nowrap; }
.pl-tabs a:hover { border-color: var(--green); }
.pl-tabs a.on { background: var(--green); border-color: var(--green); color: #fff; }
.pl-tabs + .pl-filter { margin-top: 12px; }
@media (min-width: 1024px) { .pl-tabs { margin-inline: calc(22 * var(--u)); } }

/* Products page: one left and right edge for the crumbs, heading, tabs, filters and the grid */
.pl { --plx: clamp(16px, 4.2vw, 44px); }
.pl .crumbs { padding-inline: var(--plx); }
.pl .pl-head, .pl .pl-tabs, .pl .pl-filter, .pl .prods, .pl .pl-pages, .pl .empty { margin-inline: var(--plx); }
@media (max-width: 520px) {
  .pl-tabs { gap: 6px; overflow: visible; }
  .pl-tabs a { flex: 1 1 0; justify-content: center; padding: 0 6px; font-size: 14px; }
}

/* Shop page: each main type (Tailoring Materials, Aari Materials) is a dropdown */
.grp { margin: 14px max(16px, calc(37 * var(--u))) 0; border: 1.5px solid #D5DDD8; border-radius: 18px; background: #fff; overflow: hidden; }
.grp > summary { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 12px 16px; cursor: pointer; list-style: none; }
.grp > summary::-webkit-details-marker { display: none; }
.grp > summary:hover { background: #F6F9F7; }
.grp > summary:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.grp-t { display: grid; gap: 2px; min-width: 0; flex: 1; }
.grp-t b { font-family: var(--serif); font-weight: 700; font-size: clamp(21px, 4.8vw, 30px); line-height: 1.15; color: var(--green); }
.grp-t small { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.grp-prev { display: flex; flex: none; }
.grp-prev img { width: 40px; height: 40px; margin-left: -10px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; background: #EEF2EF; }
.grp-prev img:first-child { margin-left: 0; }
.grp-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #E2F1E8; color: var(--green); }
.grp-ico svg { width: 22px; height: 22px; transition: rotate .2s; }
.grp[open] .grp-ico svg { rotate: 180deg; }
.grp[open] > summary { border-bottom: 1.5px solid #E4EAE6; }
.grp .cats.all { margin: 14px 12px 14px; }
.grp .group-soon { margin: 14px 12px; }
@media (max-width: 420px) { .grp-prev img:nth-child(n+3) { display: none; } }
@media (min-width: 1024px) { .grp { margin-inline: max(24px, calc(118 * var(--u))); } .grp .cats.all { margin: 18px; } }
/* side menu: the number of categories beside each main type */
.dr-group > summary small { margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: #E2F1E8; font: 800 12px/1.4 var(--sans); color: var(--green); vertical-align: middle; }
/* header dropdowns under the main types */
.drop-soon { grid-column: 1 / -1; padding: 10px; color: var(--muted); font-size: 14px; }

/* Cart: delivery options with prices, before checkout */
.ksr-ship { margin: 4px 0 2px; padding: 14px 0 12px; border-top: 1px solid #DCE3DE; }
.ksr-ship h3 { margin: 0; font: 800 16px/1.3 var(--sans); color: var(--green); }
.ksr-ship-to { margin: 2px 0 10px; font-size: 13px; color: var(--muted); }
.ksr-ship-list { display: grid; gap: 8px; }
.ksr-ship-opt { display: flex; align-items: flex-start; gap: 10px; min-height: 52px; padding: 12px; border: 1.5px solid #CFD8D2; border-radius: 14px; background: #fff; cursor: pointer; }
.ksr-ship-opt.on { border-color: var(--green); background: #F2F8F4; box-shadow: inset 0 0 0 1px var(--green); }
.ksr-ship-opt.busy { opacity: .6; }
.ksr-ship-opt input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green); }
.ksr-ship-n { flex: 1; min-width: 0; font-size: 15px; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.ksr-ship-p { flex: none; font-size: 15px; white-space: nowrap; color: var(--green); }
.ksr-ship-opt:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }

/* MSS Transport is paid at the hub, not online: say so where WooCommerce would write "Free" */
body.ksr-mss-on .wc-block-components-totals-shipping .wc-block-components-totals-item__value { font-size: 0; }
body.ksr-mss-on .wc-block-components-totals-shipping .wc-block-components-totals-item__value::after { content: "Pay at MSS hub"; font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
body.ksr-mss-zero .wc-block-components-radio-control__option:has(input[value^="ksr_mss"]) .wc-block-components-radio-control__secondary-label { font-size: 0; }
body.ksr-mss-zero .wc-block-components-radio-control__option:has(input[value^="ksr_mss"]) .wc-block-components-radio-control__secondary-label::after { content: "Pay at MSS hub"; font-size: 14px; font-weight: 700; text-transform: none; color: var(--ink); }

/* Cart on a phone: image | name | total in three columns that fit the screen (WooCommerce's fixed 80px + 132px columns pushed
   the total past the edge when the amounts were large), the quantity under the name */
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row { grid-template-columns: 80px minmax(0, 1fr) auto !important; column-gap: 12px; }
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image { grid-column: 1 !important; grid-row: 1 / span 2 !important; padding-right: 0 !important; }
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product { grid-column: 2 !important; grid-row: 1 !important; min-width: 0; }
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total { grid-column: 3 !important; grid-row: 1 !important; justify-self: end; max-width: 42vw; }
.wp-block-woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity { grid-column: 2 / 4 !important; grid-row: 2 !important; padding-right: 0 !important; }
.wp-block-woocommerce-cart .wc-block-cart-item__total-price-and-sale-badge-wrapper { align-items: flex-end; }
.wp-block-woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-badge { white-space: nowrap; }
/* delivery options: a long name takes the whole line and the price goes under it */
.ksr-ship-opt.long { flex-wrap: wrap; }
.ksr-ship-opt.long .ksr-ship-n { flex: 1 1 calc(100% - 34px); }
.ksr-ship-opt.long .ksr-ship-p { flex: 1 1 100%; padding-left: 30px; }

/* Cart: total weight of the parcel */
.ksr-weight { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: #F2F8F4; font-size: 15px; color: var(--ink); }
.ksr-weight b { color: var(--green); white-space: nowrap; }
.ksr-ship .ksr-weight + h3 { margin-top: 4px; }

.ksr-ship-p small { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); text-align: right; }

/* single items (a tube out of a box) */
.pcard-body .pcard-item { font-style: normal; font-size: 13px; font-weight: 700; color: #3F4B45; }
.pp-mode input:disabled + span { opacity: .45; }

/* three ways to buy: one under another, so each is readable */
.pp-mode:has(label:nth-child(3)) { grid-template-columns: 1fr; max-width: 520px; }

/* Best selling under a product */
.pp-best { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.pp-best .best-head { margin: 0 max(16px, calc(37 * var(--u))); }
.pp-best .prods { margin-top: 14px; margin-bottom: 8px; }
@media (min-width: 1024px) { .pp-best .best-head, .pp-best .prods { margin-inline: max(24px, calc(118 * var(--u))); } }

/* a cart line whose quantity cannot be changed (a thread with its shade list): plain "Quantity 3", not an empty box */
.wc-block-components-quantity-selector:not(:has(button)) { border: 0 !important; box-shadow: none !important; background: none !important; width: auto !important; min-width: 0; display: inline-flex; align-items: center; gap: 6px; }
.wc-block-components-quantity-selector:not(:has(button))::before { content: "Quantity"; font-size: 14px; color: var(--muted); }
.wc-block-components-quantity-selector:not(:has(button)) input { width: 5ch !important; min-width: 0; padding: 0 !important; border: 0 !important; background: none !important; text-align: left !important; font-weight: 800; }

/* benefit bar: on a narrower laptop or tablet the items that do not fit simply wrap out of sight (they used to run under the corner leaves) */
@media (min-width: 1024px) {
  .bar ul { flex-wrap: wrap; justify-content: center; height: 100%; max-width: calc(100% - 340px); overflow: hidden; row-gap: 0; }
  .bar li { min-height: max(calc(48 * var(--u)), 30px); }
}

/* product without a photo yet: the shop's mark, small and calm */
.pcard-img .pcard-ph { display: grid; place-items: center; }
.pcard-img .pcard-ph img { width: 42%; max-width: 110px; height: auto; padding: 0; opacity: .55; object-fit: contain; }

/* easier to tap: breadcrumb links, tick boxes on the login and checkout forms */
.crumbs a { padding: 7px 0; }
.woocommerce-form__input-checkbox, .woocommerce form .form-row input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--green); }
.prod-img.is-ph { object-fit: contain; box-sizing: border-box; padding: 16% 30%; opacity: .6; }

/* checkout contact: the email is optional, the KSR account is made by itself when there is one, the phone is needed */
.wc-block-checkout__create-account, #wc-guest-checkout-notice, .wc-block-checkout__guest-checkout-notice { display: none !important; }
.wc-block-components-address-form__email::after { content: "Optional. With an email we also make your KSR account (the password link comes by email)."; display: block; margin: 6px 2px 0; font-size: 13px; line-height: 1.35; color: var(--muted); white-space: normal; }
.wc-block-components-address-form__email.ksr-auto-email input#email { -webkit-text-fill-color: transparent; text-shadow: none; }
