/* Cosmolife Nutrition — design system + components. One file, no framework. */

@font-face {
  font-family: "Urbanist";
  src: url("../fonts/urbanist.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette */
  --ink: #241a2e;          /* text */
  --ink-2: #5c5068;        /* secondary text (7.4:1 on white) */
  --ink-3: #7a6e86;        /* tertiary, large text only */
  --plum: #5e2b7e;         /* buttons, links */
  --plum-deep: #47205f;
  --orchid: #e88bde;       /* brand gradient start — decoration only */
  --lavender: #c4bce6;     /* brand gradient end */
  --mist: #f3eef7;         /* product backdrop + surfaces */
  --ivory: #fbf8f4;        /* bottom of the product backdrop */
  --line: #e7dfec;
  --white: #fff;
  --sale: #8a2a5c;
  --ok: #2f6b4f;
  --brand-gradient: linear-gradient(135deg, var(--orchid), var(--lavender));
  /* identical to the backdrop baked into every packshot (t^1.6 ramp), so photos sit seamlessly on surfaces */
  --shelf-gradient: linear-gradient(180deg, #f3eef7 0%, #f3eef7 15%, #f4eff7 30%, #f5f1f6 45%, #f7f2f6 60%, #f8f4f5 75%, #faf6f4 90%, #fbf8f4 100%);

  /* type */
  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --fs-2xl: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --fs-3xl: clamp(2.5rem, 1.6rem + 4.4vw, 4.75rem);

  /* space (8pt) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1280px;

  --r-img: 22px;
  --r-panel: 32px;
  --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--plum); color: #fff; padding: 10px 16px; border-radius: var(--r-pill); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* below-the-fold sections skip rendering work until near the viewport */
.lazy-section { content-visibility: auto; contain-intrinsic-size: auto 720px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s6); border-radius: var(--r-pill);
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.01em;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: var(--plum-deep); }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn-block { width: 100%; }
.link { color: var(--plum); font-weight: 600; text-underline-offset: 4px; }
.link:hover { text-decoration: underline; }

/* ---------- announcement + header ---------- */
.announce { background: var(--mist); color: var(--ink-2); font-size: var(--fs-xs); text-align: center; padding: 9px var(--gutter); }
.announce strong { color: var(--ink); font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 40; background: var(--white); transition: box-shadow .25s var(--ease); }
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line); }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--header-h); gap: var(--s4); }
.logo img { height: 40px; width: auto; }
.nav-main { display: flex; gap: var(--s6); justify-self: center; }
.nav-main a { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); padding: var(--s2) 0; position: relative; }
.nav-main a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-main a:hover, .nav-main a[aria-current="page"] { color: var(--ink); }
.nav-main a:hover::after, .nav-main a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: var(--s1); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-pill); position: relative; transition: background-color .2s; }
.icon-btn:hover { background: var(--mist); }
.bag-count { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--plum); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.bag-count[data-count="0"] { display: none; }
.menu-btn { display: none; }

@media (max-width: 960px) {
  .header-row { grid-template-columns: auto 1fr auto; height: 64px; }
  .menu-btn { display: grid; }
  .nav-main { display: none; }
  .logo { justify-self: center; }
  .logo img { height: 34px; }
}

/* mobile menu + bag drawers (native <dialog>) */
.drawer { position: fixed; inset: 0 auto 0 0; margin: 0; height: 100dvh; max-height: none; width: min(420px, 92vw); max-width: none; border: 0; padding: 0; background: var(--white); color: var(--ink); }
.drawer.right { inset: 0 0 0 auto; }
.drawer::backdrop { background: rgba(36, 26, 46, .36); }
.drawer[open] { animation: drawer-in-left .32s var(--ease); }
.drawer.right[open] { animation: drawer-in-right .32s var(--ease); }
@keyframes drawer-in-left { from { transform: translateX(-100%); } }
@keyframes drawer-in-right { from { transform: translateX(100%); } }
.drawer-inner { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: var(--fs-lg); font-weight: 600; letter-spacing: 0; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--s5); }
.drawer-foot { padding: var(--s5); border-top: 1px solid var(--line); display: grid; gap: var(--s3); }
.mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: var(--s4) 0; font-size: var(--fs-lg); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav .sub { margin-top: var(--s6); display: grid; gap: var(--s3); color: var(--ink-2); font-size: var(--fs-sm); }
.mobile-nav .sub a { padding: 0; border: 0; font-size: inherit; }

/* bag */
.bag-empty { text-align: center; color: var(--ink-2); padding: var(--s8) 0; display: grid; gap: var(--s5); justify-items: center; }
.bag-line { display: grid; grid-template-columns: 84px 1fr auto; gap: var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--line); align-items: center; }
.bag-line img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; }
.bag-line h3 { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.bag-line .meta { font-size: var(--fs-xs); color: var(--ink-2); }
.bag-total { display: flex; justify-content: space-between; font-weight: 600; font-size: var(--fs-lg); }
.bag-note { font-size: var(--fs-xs); color: var(--ink-2); text-align: center; }

/* qty stepper */
.qty { display: inline-flex; align-items: center; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); height: 48px; }
.qty button { width: 44px; height: 100%; display: grid; place-items: center; border-radius: var(--r-pill); }
.qty button:hover { background: var(--mist); }
.qty output, .qty input { width: 32px; text-align: center; font-weight: 600; border: 0; background: none; }
.qty.sm { height: 36px; } .qty.sm button { width: 34px; }

/* ---------- hero shelf ---------- */
.hero { padding-top: var(--s4); }
.shelf-panel {
  position: relative; overflow: hidden; border-radius: var(--r-panel);
  background: var(--mist);
  display: grid; grid-template-rows: auto auto;
}
.hero-copy { padding: clamp(36px, 6vw, 80px) clamp(24px, 6vw, 80px) 0; max-width: 760px; }
.hero-copy h1 { font-size: var(--fs-3xl); font-weight: 300; letter-spacing: -0.035em; line-height: 1.02; }
.hero-copy p { margin-top: var(--s5); font-size: var(--fs-lg); color: var(--ink-2); max-width: 46ch; }
.hero-cta { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s3); }
.shelf {
  display: flex; justify-content: center; margin-top: clamp(8px, 2vw, 24px);
  background: var(--shelf-gradient);
}
.shelf a { display: block; position: relative; flex: 0 0 calc(100% / 6); aspect-ratio: 0.66; overflow: hidden; }
.shelf picture, .shelf img { position: absolute; inset: auto 50% 0 auto; width: auto; height: 100%; max-width: none; transform: translateX(50%); }
.shelf a::after { content: attr(data-name); position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 6px); white-space: nowrap; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-2); opacity: 0; transition: opacity .25s, transform .25s var(--ease); }
.shelf a:hover::after, .shelf a:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.shelf img { transition: transform .5s var(--ease); }
.shelf a:hover img { transform: translateX(50%) translateY(-6px); }
/* the one orchestrated moment: products rise onto the shelf */
@media (prefers-reduced-motion: no-preference) {
  .shelf a { animation: rise .9s var(--ease) both; }
  .shelf a:nth-child(2) { animation-delay: .08s; } .shelf a:nth-child(3) { animation-delay: .16s; }
  .shelf a:nth-child(4) { animation-delay: .24s; } .shelf a:nth-child(5) { animation-delay: .32s; }
  .shelf a:nth-child(6) { animation-delay: .40s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@media (max-width: 760px) {
  .shelf { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .shelf::-webkit-scrollbar { display: none; }
  .shelf a { flex-basis: 46%; scroll-snap-align: center; }
  .shelf a::after { display: none; }
}

/* ---------- trust row ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); padding-block: var(--s7); }
.trust li { list-style: none; display: flex; gap: var(--s3); align-items: flex-start; }
.trust .icon { color: var(--plum); margin-top: 2px; }
.trust strong { display: block; font-weight: 600; font-size: var(--fs-sm); }
.trust span { font-size: var(--fs-xs); color: var(--ink-2); }
@media (max-width: 900px) { .trust { grid-template-columns: repeat(2, 1fr); gap: var(--s5) var(--s4); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 8vw, 104px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s5); margin-bottom: var(--s6); }
.section-head h2 { font-size: var(--fs-2xl); font-weight: 350; }
.section-head p { color: var(--ink-2); margin-top: var(--s3); max-width: 52ch; }

/* categories: image-led, quiet */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s4); }
.cat { display: grid; gap: var(--s3); }
.cat-img { border-radius: var(--r-img); overflow: hidden; aspect-ratio: 4/5; background: var(--shelf-gradient); position: relative; }
.cat-img img { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); transition: transform .5s var(--ease); }
.cat:hover .cat-img img { transform: translateX(-50%) scale(1.04); }
.cat h3 { font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.01em; }
.cat span { color: var(--ink-2); font-size: var(--fs-sm); }
@media (max-width: 960px) { .cats { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; } .cat { scroll-snap-align: start; } .cats::-webkit-scrollbar { display: none; } }

/* concerns */
.concerns { display: flex; flex-wrap: wrap; gap: var(--s3); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s5); border-radius: var(--r-pill); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; font-size: var(--fs-sm); transition: background-color .2s, box-shadow .2s, color .2s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- product grid + card ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(12px, 2vw, 24px); }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { position: relative; display: grid; gap: var(--s3); align-content: start; }
.card-media { position: relative; border-radius: var(--r-img); overflow: hidden; aspect-ratio: 1; background: var(--shelf-gradient); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.035); }
.card-link::before { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card clickable */
.badge { position: absolute; left: 12px; top: 12px; z-index: 2; background: var(--white); color: var(--sale); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); }
.badge.muted { color: var(--ink-2); }
.add-btn { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(36,26,46,.08); transition: background-color .2s, color .2s, transform .2s var(--ease); }
.add-btn:hover { background: var(--plum); color: #fff; }
.add-btn:active { transform: scale(.94); }
.add-btn.added { background: var(--ok); color: #fff; }
.add-btn[disabled] { opacity: .5; cursor: not-allowed; }
.card-brand { font-size: var(--fs-xs); color: var(--ink-2); font-weight: 500; }
.card h3 { font-size: var(--fs-base); font-weight: 600; letter-spacing: -0.005em; line-height: 1.3; margin-top: -6px; }
.card-tag { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.45; }
.price { display: flex; align-items: baseline; gap: var(--s2); font-weight: 700; font-variant-numeric: tabular-nums; }
.price s { color: var(--ink-3); font-weight: 400; font-size: .9em; }

/* ---------- editorial split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-media { border-radius: var(--r-panel); overflow: hidden; background: var(--shelf-gradient); aspect-ratio: 1; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: var(--fs-2xl); font-weight: 350; }
.split p { color: var(--ink-2); margin-top: var(--s4); max-width: 48ch; }
.ingredients { margin-top: var(--s6); display: grid; gap: var(--s4); }
.ingredients li { list-style: none; display: grid; grid-template-columns: 10px 1fr; gap: var(--s3); align-items: baseline; }
.ingredients li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-gradient); transform: translateY(-1px); }
.ingredients b { font-weight: 600; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* brands */
.brands { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 80px); padding-block: var(--s7); border-block: 1px solid var(--line); }
.brands img { height: 40px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.brands img:hover { filter: none; opacity: 1; }

/* newsletter */
.signup { background: var(--mist); border-radius: var(--r-panel); padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: center; }
.signup h2 { font-size: var(--fs-xl); font-weight: 400; }
.signup p { color: var(--ink-2); margin-top: var(--s2); }
.field-row { display: flex; gap: var(--s2); background: var(--white); border-radius: var(--r-pill); padding: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.field-row input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 var(--s4); outline: none; }
.field-row:focus-within { box-shadow: inset 0 0 0 2px var(--plum); }
@media (max-width: 760px) { .signup { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #e9e2ef; margin-top: clamp(48px, 6vw, 80px); }
main > .section:last-child { padding-bottom: 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s7); padding-block: var(--s8) var(--s7); }
.footer-top h3 { font-size: var(--fs-sm); font-weight: 600; color: #fff; margin-bottom: var(--s4); letter-spacing: 0; }
.footer-top ul { list-style: none; display: grid; gap: var(--s3); font-size: var(--fs-sm); color: #cfc5d8; }
.footer-blurb { color: #cfc5d8; font-size: var(--fs-sm); max-width: 34ch; margin-top: var(--s4); }
.footer-logo { height: 36px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--s5); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s4); font-size: var(--fs-xs); color: #b9aec4; }
.pay { display: flex; gap: var(--s2); flex-wrap: wrap; }
.pay span { border: 1px solid rgba(255,255,255,.22); border-radius: 6px; padding: 2px 8px; }
.social { display: flex; gap: var(--s2); margin-top: var(--s5); }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ---------- shop page ---------- */
.page-head { padding-block: var(--s7) var(--s6); }
.crumbs { font-size: var(--fs-xs); color: var(--ink-2); display: flex; gap: var(--s2); flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head h1 { font-size: var(--fs-2xl); font-weight: 350; margin-top: var(--s3); }
.page-head p { color: var(--ink-2); margin-top: var(--s3); max-width: 60ch; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); padding-bottom: var(--s6); }
.toolbar .chips { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.toolbar .chips::-webkit-scrollbar { display: none; }
.toolbar .chip { white-space: nowrap; min-height: 40px; padding: 0 var(--s4); }
.sort { display: flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); color: var(--ink-2); }
.sort select { border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r-pill); padding: 8px 36px 8px 16px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23241a2e' stroke-width='1.6'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; color: var(--ink); min-height: 40px; }
.result-count { font-size: var(--fs-sm); color: var(--ink-2); }
.empty-state { grid-column: 1 / -1; text-align: center; padding: var(--s8) 0; color: var(--ink-2); }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); padding-top: var(--s5); align-items: start; }
.pdp-media { position: sticky; top: calc(var(--header-h) + 16px); border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 1; background: var(--shelf-gradient); }
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { display: grid; gap: var(--s5); align-content: start; padding-block: var(--s4); }
.pdp-brand { font-size: var(--fs-sm); color: var(--ink-2); font-weight: 500; }
.pdp h1 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); font-weight: 400; letter-spacing: -0.025em; }
.pdp .price { font-size: var(--fs-xl); font-weight: 600; }
.save { font-size: var(--fs-sm); color: var(--sale); font-weight: 600; }
.pdp-lead { color: var(--ink-2); font-size: var(--fs-lg); line-height: 1.55; }
.pdp-size { font-size: var(--fs-sm); color: var(--ink-2); }
.buy-row { display: flex; gap: var(--s3); flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 200px; }
.perks { display: grid; gap: var(--s3); padding: var(--s5); border-radius: var(--r-img); background: var(--mist); font-size: var(--fs-sm); }
.perks li { list-style: none; display: flex; gap: var(--s3); align-items: center; }
.perks .icon { color: var(--plum); width: 20px; height: 20px; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: var(--s4) 0; font-weight: 600; cursor: pointer; min-height: 56px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .icon { transition: transform .25s var(--ease); }
.acc details[open] summary .icon { transform: rotate(45deg); }
.acc .acc-body { padding-bottom: var(--s5); color: var(--ink-2); display: grid; gap: var(--s3); }
.acc ul { padding-left: 1.1em; display: grid; gap: var(--s2); }
.acc ol { padding-left: 1.2em; display: grid; gap: var(--s2); }
.stock-out { color: var(--sale); font-weight: 600; font-size: var(--fs-sm); }
.sticky-buy { display: none; }
@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; padding-top: 0; }
  .pdp-media { position: relative; top: 0; border-radius: var(--r-img); margin-inline: calc(var(--gutter) * -1 + 8px); }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: var(--s3); align-items: center; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -1px 0 var(--line); transform: translateY(110%); transition: transform .3s var(--ease); }
  .sticky-buy.show { transform: none; }
  .sticky-buy .btn { flex: 1; }
  .sticky-buy .price { font-size: var(--fs-base); }
}

/* ---------- prose pages ---------- */
.prose { max-width: 70ch; display: grid; gap: var(--s4); color: var(--ink-2); }
.prose h2 { font-size: var(--fs-xl); color: var(--ink); margin-top: var(--s5); font-weight: 450; }
.prose h3 { font-size: var(--fs-lg); color: var(--ink); font-weight: 600; letter-spacing: 0; margin-top: var(--s3); }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: var(--s2); }
.prose a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 500; transition: opacity .25s, transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* placeholder while a packshot is still being produced */
.ph { width: 100%; height: 100%; aspect-ratio: 1; background: var(--shelf-gradient); position: relative; }
.ph::after { content: ""; position: absolute; left: 50%; bottom: 14%; width: 26%; height: 52%; transform: translateX(-50%); border-radius: 18px 18px 10px 10px; background: linear-gradient(180deg, #fff, #f6f1fa); box-shadow: 0 18px 24px -18px rgba(36,26,46,.25); }
.shelf .ph, .cat-img .ph { position: absolute; inset: 0; }

/* ---------- small-screen refinements ---------- */
@media (max-width: 760px) {
  .hero { padding-top: var(--s2); }
  .shelf-panel { border-radius: 24px; }
  .hero-copy { padding: 32px 24px 0; }
  .hero-copy p { font-size: var(--fs-base); margin-top: var(--s4); }
  .hero-cta { margin-top: var(--s5); gap: var(--s2); }
  .hero-cta .btn { padding: 0 var(--s5); min-height: 46px; }
  .shelf { margin-top: 0; }
  .shelf a { flex-basis: 42%; aspect-ratio: .78; }
  .shelf picture, .shelf img { height: 116%; }          /* trims the empty headroom above each product */
  .page-head { padding-block: var(--s5) var(--s5); }
  .announce { font-size: 12px; padding-block: 7px; }
  .section-head { margin-bottom: var(--s5); }
  .trust { padding-block: var(--s6); }
}

/* =================================================================
   WordPress / WooCommerce additions
   ================================================================= */
.hide-sm { }
@media (max-width: 960px) { .hide-sm { display: none; } }
.footer-bottom .plain { border: 0; padding: 0; }
.cat-links { margin-bottom: var(--s5); }
.card h3 a { color: inherit; }
.bag-line h3 a:hover { text-decoration: underline; }
.add-btn[disabled], [data-add][disabled] { opacity: .6; cursor: progress; }

/* rating */
.rating { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-sm); color: var(--ink-2); }
.stars { --r: 0; width: 88px; height: 16px; background: linear-gradient(90deg, var(--plum) calc(var(--r) / 5 * 100%), var(--line) 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 16'%3E%3Cg%3E%3Cpath id='s' d='M8 0l2.4 5 5.6.6-4.2 3.8 1.2 5.5L8 12.1 3 14.9l1.2-5.5L0 5.6 5.6 5z'/%3E%3Cuse href='%23s' x='18'/%3E%3Cuse href='%23s' x='36'/%3E%3Cuse href='%23s' x='54'/%3E%3Cuse href='%23s' x='72'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 16'%3E%3Cg%3E%3Cpath id='s' d='M8 0l2.4 5 5.6.6-4.2 3.8 1.2 5.5L8 12.1 3 14.9l1.2-5.5L0 5.6 5.6 5z'/%3E%3Cuse href='%23s' x='18'/%3E%3Cuse href='%23s' x='36'/%3E%3Cuse href='%23s' x='54'/%3E%3Cuse href='%23s' x='72'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat; }

/* search drawer */
.drawer.top { inset: 0 0 auto 0; width: 100%; height: auto; max-height: 85dvh; }
.drawer.top[open] { animation: drawer-in-top .28s var(--ease); }
@keyframes drawer-in-top { from { transform: translateY(-100%); } }
.search-form { display: flex; align-items: center; gap: var(--s3); min-height: 76px; border-bottom: 1px solid var(--line); }
.search-form input[type=search] { flex: 1; border: 0; outline: none; font-size: var(--fs-lg); background: none; min-width: 0; padding: var(--s4) 0; }
.search-results { padding-block: var(--s4) var(--s6); }
.search-list { list-style: none; display: grid; gap: var(--s2); }
.search-list a { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--s4); align-items: center; padding: var(--s2); border-radius: 14px; }
.search-list a:hover { background: var(--mist); }
.search-list img { border-radius: 10px; }
.search-empty { color: var(--ink-2); }

/* product content from the editor */
.acc-body p + p { margin-top: var(--s3); }
.reviews .commentlist { list-style: none; padding: 0; display: grid; gap: var(--s5); }
.reviews .comment_container { display: grid; gap: var(--s2); }
.reviews .avatar { display: none; }
.reviews .star-rating { font-size: 0; }
.reviews .meta { font-size: var(--fs-sm); color: var(--ink-2); }
.reviews #respond { margin-top: var(--s5); }
.reviews label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--s1); color: var(--ink); }

/* forms (checkout, account, reviews, contact) */
.wc-page { min-width: 0; }
.wc-page input[type=text], .wc-page input[type=email], .wc-page input[type=tel], .wc-page input[type=password], .wc-page input[type=number],
.wc-page textarea, .wc-page select, .reviews textarea, .reviews input[type=text], .reviews input[type=email], .reviews select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; color: var(--ink); transition: box-shadow .2s;
}
.wc-page input:focus, .wc-page textarea:focus, .wc-page select:focus, .reviews textarea:focus, .reviews input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--plum); }
.wc-page label { font-weight: 600; font-size: var(--fs-sm); display: block; margin-bottom: 6px; }
.wc-page .form-row { margin: 0 0 var(--s4); padding: 0; }
.wc-page .required { color: var(--sale); text-decoration: none; }
.wc-page .button, .wc-page button[type=submit], .reviews .submit, .wc-page #place_order {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s6); border-radius: var(--r-pill);
  border: 0; background: var(--plum); color: #fff; font-weight: 600; font-size: var(--fs-sm); cursor: pointer; transition: background-color .2s;
}
.wc-page .button:hover, .wc-page button[type=submit]:hover, .reviews .submit:hover { background: var(--plum-deep); color: #fff; }
.wc-page #place_order { width: 100%; min-height: 56px; font-size: var(--fs-base); }
.wc-page h2, .wc-page h3 { font-size: var(--fs-lg); font-weight: 600; letter-spacing: 0; margin-bottom: var(--s4); }
.wc-page table.shop_table { width: 100%; border-collapse: collapse; border: 0; font-size: var(--fs-sm); }
.wc-page table.shop_table th, .wc-page table.shop_table td { padding: var(--s3) 0; border-bottom: 1px solid var(--line); text-align: left; background: none; }
.wc-page table.shop_table .product-thumbnail img { width: 64px; border-radius: 12px; }
.wc-page .order-total td, .wc-page .order-total th { font-size: var(--fs-lg); font-weight: 700; }
.wc-page #payment { background: var(--mist); border-radius: var(--r-img); padding: var(--s5); }
.wc-page #payment ul.payment_methods { list-style: none; padding: 0; border: 0; display: grid; gap: var(--s3); }
.wc-page #payment .payment_box { background: var(--white); border-radius: 12px; padding: var(--s3) var(--s4); font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--s2); }
.wc-page #payment .payment_box::before { display: none; }
.wc-page .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); }
.wc-page .col2-set .col-1, .wc-page .col2-set .col-2 { width: auto; float: none; }
form.woocommerce-checkout { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s7); align-items: start; }
form.woocommerce-checkout #customer_details { grid-column: 1; }
form.woocommerce-checkout #order_review_heading, form.woocommerce-checkout #order_review { grid-column: 2; }
form.woocommerce-checkout #order_review_heading { margin: 0; }
form.woocommerce-checkout .col2-set { grid-template-columns: 1fr; }
@media (max-width: 900px) {
  form.woocommerce-checkout { grid-template-columns: 1fr; }
  form.woocommerce-checkout #order_review_heading, form.woocommerce-checkout #order_review { grid-column: 1; }
  .wc-page .col2-set { grid-template-columns: 1fr; }
}
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
  list-style: none; margin: 0 0 var(--s5); padding: var(--s4) var(--s5); border-radius: 14px; background: var(--mist); color: var(--ink); border: 0; font-size: var(--fs-sm);
}
.woocommerce-error { background: #fbeaf1; color: var(--sale); }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message .button, .woocommerce-info .button { float: right; min-height: 36px; padding: 0 var(--s4); }
.perks-inline { grid-template-columns: repeat(3, 1fr); margin-bottom: var(--s6); }
@media (max-width: 760px) { .perks-inline { grid-template-columns: 1fr; } }
.woocommerce-MyAccount-navigation ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s6); }
.woocommerce-MyAccount-navigation a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 var(--s4); border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-sm); font-weight: 500; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: #fff; box-shadow: none; }
.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content { float: none; width: auto; }
/* logged-in admin toolbar */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
/* checkout: summary beside the form; payment options as tappable rows */
form.woocommerce-checkout #customer_details { grid-row: 1 / span 2; }
form.woocommerce-checkout { grid-template-rows: min-content 1fr; }
form.woocommerce-checkout #order_review_heading { grid-row: 1; align-self: start; }
form.woocommerce-checkout #order_review { grid-row: 2; align-self: start; position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 900px) { form.woocommerce-checkout { grid-template-rows: none; } form.woocommerce-checkout #customer_details, form.woocommerce-checkout #order_review_heading, form.woocommerce-checkout #order_review { grid-row: auto; position: static; } }
.wc-page #payment ul.payment_methods li { background: var(--white); border-radius: 14px; padding: var(--s3) var(--s4); }
.wc-page #payment ul.payment_methods li > input[type=radio] { accent-color: var(--plum); width: 18px; height: 18px; margin: 0 var(--s2) 0 0; vertical-align: middle; }
.wc-page #payment ul.payment_methods li > label { display: inline; font-weight: 600; margin: 0; cursor: pointer; }
.wc-page #payment ul.payment_methods li > label img { display: inline-block; max-height: 22px; width: auto; vertical-align: middle; margin-left: var(--s2); }
.wc-page #payment .payment_box { background: var(--mist); margin: var(--s3) 0 0; }
.wc-page #payment .place-order { padding: var(--s5) 0 0; }
.wc-page .woocommerce-privacy-policy-text { font-size: var(--fs-xs); color: var(--ink-2); margin-bottom: var(--s4); }
