/* ============================================================
   CapyOnsen theme extras — WordPress + WooCommerce integration
   Extends assets/css/main.css (the design system).
   ============================================================ */

/* ---------- WP basics ---------- */
.main-nav li { list-style: none; display: contents; } /* wp_nav_menu emits <li>s; flatten them into the flex row */
.main-nav li::marker { content: none; } /* display:contents alone still renders ::marker in Chromium */
.main-nav .menu-item a { color: var(--cocoa); text-decoration: none; font-size: .95rem; font-weight: 500; padding-block: .25rem; border-bottom: 2px solid transparent; }
.main-nav .menu-item a:hover, .main-nav .current-menu-item a { border-bottom-color: var(--clay); }

.site-main { display: block; }
.entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.entry-content img { border-radius: var(--radius); }
.entry-content h2 { margin-top: 1.6em; }
.entry-content blockquote {
  font-family: var(--font-display); font-size: 1.35rem; line-height: 1.4;
  border-left: 3px solid var(--clay); margin: 2rem auto; padding: .3rem 0 .3rem 1.4rem; color: var(--clay-deep);
}
.post-meta { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- WooCommerce: shop grid ---------- */
.woocommerce ul.products {
  display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
  margin: 2rem 0 0; padding: 0; list-style: none;
}
/* Bug fix (2026-07-13): WooCommerce's own core CSS (woocommerce.css +
   woocommerce-layout.css) still applies a float-era clearfix
   (content:" "; display:table) to ul.products::before/::after, left over from
   before this rule switched the grid to display:grid. A pseudo-element with
   real content on a grid CONTAINER becomes an actual grid item — so that
   clearfix silently occupied row 1 / column 1 as an invisible phantom card,
   pushing every real product over by one slot (Daniel noticed 2 real products
   sitting in columns 2-3 with column 1 blank, and the 3rd product wrapping to
   a mostly-empty row 2). Neutralize both pseudo-elements; grid never needed
   float-clearing in the first place. */
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none !important; display: none !important; }
@media (max-width: 900px) { .woocommerce ul.products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .woocommerce ul.products { grid-template-columns: 1fr; } }
.woocommerce ul.products li.product {
  width: auto !important; float: none !important; margin: 0 !important;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.1rem 1.4rem; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.woocommerce ul.products li.product:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.woocommerce ul.products li.product img {
  border-radius: var(--radius-sm); margin-bottom: .9rem; width: 100%; height: auto;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 550; color: var(--text); padding: 0;
}
.woocommerce ul.products li.product .price {
  color: var(--clay-deep) !important; font-weight: 600; font-size: 1.02rem; display: block; margin: .35rem 0 .75rem;
}
.woocommerce ul.products li.product .price del { opacity: .5; margin-right: .4em; }
.woocommerce ul.products li.product .button {
  margin-top: .2rem;
}

/* ---------- WooCommerce: buttons ---------- */
.woocommerce .button, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit,
.wc-block-components-button {
  background: var(--clay) !important; color: #fff !important; border: 0 !important;
  border-radius: 999px !important; font-family: var(--font-body) !important;
  font-weight: 600 !important; padding: .8rem 1.6rem !important; line-height: 1.2 !important;
  transition: background .2s ease !important;
}
.woocommerce .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--clay-deep) !important; color: #fff !important;
}
.woocommerce a.button.checkout-button, .woocommerce button[name="add-to-cart"], .single_add_to_cart_button {
  background: var(--moss) !important;
}
.woocommerce a.button.checkout-button:hover, .woocommerce button[name="add-to-cart"]:hover, .single_add_to_cart_button:hover {
  background: var(--moss-deep) !important;
}

/* ---------- WooCommerce: single product ---------- */
.woocommerce div.product { margin-top: 1.5rem; }
.woocommerce div.product div.images img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.woocommerce div.product .product_title { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
/* P1 fix (2026-07-12): price read as supporting text next to the gallery/
   cert panel — bumped size/weight, kept the warm accent, tightened the
   margin below so it sits visually closer to the CTA it belongs with. */
.woocommerce div.product p.price { color: var(--clay-deep); font-size: 1.7rem; font-weight: 700; font-family: var(--font-body); margin-bottom: .6rem; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--muted); font-size: 1.05rem; }

/* P1 fix (2026-07-12): three scannable benefits right after the lead copy —
   "customers shouldn't need to interpret poetic copy to understand the
   product." */
.woocommerce div.product .benefit-bullets {
  list-style: none; margin: 0 0 1.3rem; padding: 0; display: flex; flex-direction: column; gap: .45rem;
}
.woocommerce div.product .benefit-bullets li {
  padding-left: 1.5rem; position: relative; color: var(--cocoa); font-size: .98rem; line-height: 1.4;
}
.woocommerce div.product .benefit-bullets li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--moss);
}

/* P1 fix (2026-07-12): purchase reassurance beside the CTA, instead of
   leaving delivery/returns/payment info buried in the FAQ/footer.
   Round 2 (2026-07-12, QA audit): bumped from .82rem/muted (~13px, low
   contrast) to a legible 15px on --text, and its link gets its own
   underline + hover state since it's now a real link ("14-day returns"),
   not plain text. */
.woocommerce div.product .purchase-reassurance {
  margin: .1rem 0 0; font-size: .95rem; line-height: 1.5; color: var(--text);
}
.woocommerce div.product .purchase-reassurance a {
  color: var(--clay-deep); font-weight: 600; text-decoration: underline dotted var(--clay);
  text-underline-offset: 2px;
}
.woocommerce div.product .purchase-reassurance a:hover,
.woocommerce div.product .purchase-reassurance a:focus-visible { color: var(--cocoa); }

/* P1 fix (2026-07-12, QA audit): "150 ml" beside the price — supporting
   text, not competing with the price's own weight/color. */
.woocommerce div.product p.price .product-volume {
  font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: .3rem;
}

/* P1 fix (2026-07-12): raw SKU/Category row read as technical WooCommerce
   chrome in the middle of an editorial buying area — not customer-useful
   here (still visible to anyone inspecting the order/admin side). */
.woocommerce div.product .product_meta { display: none; }
/* P0 fix (2026-07-12): CTA was small relative to the gallery/certification
   panel, and the quantity stepper carried equal visual weight (same pill
   shape, same border strength) — competing with rather than deferring to
   "Add to bag". Quantity is now compact and quiet; the button is the one
   confident, full-width-leaning shape on the row. */
.woocommerce div.product form.cart { margin: 1.4rem 0 1.8rem; display: flex; align-items: stretch; gap: .75rem; flex-wrap: wrap; }
.woocommerce div.product form.cart div.quantity { flex: 0 0 auto; }
.woocommerce div.product form.cart div.quantity .qty {
  width: 4.2rem; height: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .6rem .5rem; background: transparent; color: var(--muted); font-size: .95rem;
}
/* P2 fix (2026-07-13): consistent 44px touch target + visible focus ring —
   the qty input had neither before. */
.woocommerce div.product form.cart div.quantity .qty:focus-visible {
  outline: 2px solid var(--clay); outline-offset: 1px; border-color: var(--clay);
}
.woocommerce div.product form.cart .single_add_to_cart_button {
  flex: 1 1 220px; min-height: 52px; font-size: 1.05rem; padding: 0 1.8rem !important;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
}
.woocommerce div.product form.cart .single_add_to_cart_button:focus-visible {
  outline: 2px solid var(--cocoa) !important; outline-offset: 2px;
}
.woocommerce div.product form.cart .single_add_to_cart_button:active {
  background: var(--moss-deep) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin-bottom: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: transparent; border: 0; border-radius: 0; margin: 0 1.2rem 0 0; padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-weight: 600; color: var(--muted); padding: .8rem 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--cocoa); border-bottom: 2px solid var(--clay); }
.woocommerce div.product .woocommerce-tabs .panel { padding-top: 1.2rem; max-width: 820px; }
.woocommerce div.product .woocommerce-tabs .panel h2:first-of-type { display: none; }

/* product page INCI details block. :not(.pdp-accordion__item) added 2026-07-13:
   this generic `<details>` selector was also matching the mobile-accordion
   <details> elements (item 42) — same tag, nested inside .woocommerce div.product
   — and beat the accordion's own desktop "invisible chrome" reset on specificity
   (2 classes here vs 1 there), so every accordion item rendered as an empty
   oat-deep card on desktop even when WooCommerce's tab-switch JS had hidden its
   panel content. Excluding pdp-accordion__item here leaves this rule's real
   target (the "Full ingredient list" toggle) untouched. */
.entry-content details:not(.pdp-accordion__item),
.woocommerce-Tabs-panel details:not(.pdp-accordion__item),
.woocommerce div.product details:not(.pdp-accordion__item) {
  background: var(--oat-deep); border-radius: var(--radius-sm); padding: .9rem 1.2rem; margin: 1rem 0;
}
.woocommerce div.product details summary { cursor: pointer; font-weight: 600; }
.woocommerce div.product details .inci, .entry-content details .inci { font-size: .9rem; color: var(--muted); margin-top: .7rem; }

/* ---------- WooCommerce: notices, cart, checkout ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top-color: var(--moss); background: var(--oat-soft); border-radius: var(--radius-sm); color: var(--text);
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--moss); }
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--line); }
.woocommerce-cart .cart-collaterals .cart_totals, .woocommerce-checkout #order_review {
  background: var(--surface); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow-soft);
}
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .7rem .9rem; background: var(--oat-soft);
}
.woocommerce form .form-row input.input-text:focus { outline: none; border-color: var(--clay); }

/* onsale badge */
.woocommerce span.onsale {
  background: var(--yuzu); color: var(--cocoa); border-radius: 999px; font-weight: 600;
  min-height: auto; min-width: auto; padding: .35em .9em; line-height: 1.4;
}

/* breadcrumbs */
.woocommerce .woocommerce-breadcrumb { color: var(--muted); font-size: .85rem; margin-top: 1.2rem; }
.woocommerce .woocommerce-breadcrumb a { color: var(--muted); }

/* star ratings in brand clay */
.woocommerce .star-rating span::before, .woocommerce p.stars a { color: var(--clay); }

/* ---------- Ingredient links + quick-info tooltips ---------- */
.ing-link {
  color: inherit; text-decoration: underline dotted var(--clay); text-underline-offset: 3px;
  position: relative; cursor: help;
}
.ing-link:hover, .ing-link:focus { color: var(--clay-deep); }
.ing-link::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  width: max-content; max-width: 300px;
  background: var(--cocoa); color: var(--oat);
  font-size: .82rem; line-height: 1.45; font-weight: 400;
  padding: .6rem .85rem; border-radius: 10px;
  opacity: 0; visibility: hidden; transition: opacity .15s ease;
  z-index: 60; pointer-events: none; white-space: normal;
  box-shadow: var(--shadow-lift);
}
.ing-link:hover::after, .ing-link:focus::after { opacity: 1; visibility: visible; }
.ing-more { margin-top: 1rem; font-size: .92rem; }

/* Ingredients glossary: search + sticky A-Z nav (item 7, 2026-07-12;
   GPT-5.6 audit pass: search row + scrollable 44px A-Z row on mobile,
   real focus ring, visible result count) */
.ing-toolbar {
  position: sticky; top: 84px; z-index: 5; background: var(--oat);
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  padding: .75rem 0 .9rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem !important;
}
.ing-az-nav { display: flex; flex-wrap: wrap; gap: .15rem; flex: 1 1 auto; }
.ing-az-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 999px;
  color: var(--cocoa); text-decoration: none; font-size: .82rem; font-weight: 600;
}
.ing-az-nav a:hover, .ing-az-nav a:focus-visible { background: var(--oat-deep); color: var(--clay-deep); }
.ing-az-nav a:focus-visible { outline: 2px solid var(--clay); outline-offset: 1px; }
.ing-search { flex: 0 0 auto; display: flex; align-items: center; gap: .7rem; }
.ing-search input {
  font: inherit; font-size: .9rem; color: var(--cocoa); background: var(--oat-soft);
  border: 1.5px solid var(--line); border-radius: 999px; padding: .5rem 1rem; width: 220px; max-width: 100%;
}
.ing-search input:focus { border-color: var(--clay); }
.ing-search input:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.ing-count { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.ing-no-results { text-align: center; color: var(--muted); padding: 2rem 0; }
@media (max-width: 860px) {
  .ing-toolbar { top: 76px; flex-direction: column; align-items: stretch; gap: .5rem; }
  .ing-search { width: 100%; }
  .ing-search input { flex: 1 1 auto; width: auto; min-height: 44px; }
  .ing-az-nav {
    flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  }
  .ing-az-nav::-webkit-scrollbar { display: none; }
  .ing-az-nav a { flex: 0 0 auto; min-width: 44px; height: 44px; }
}

/* ---------- Claim-keyword highlighting in product description prose ---------- */
mark.claim { background: none; font-weight: 600; padding: 0; }
mark.claim-moss { color: var(--moss-deep); }
mark.claim-clay { color: var(--clay-deep); }

/* glossary entries: anchor targets get breathing room under the sticky header */
/* Anchor offset must clear header + sticky toolbar (GPT-5.6 audit, P1 —
   90px hid the jumped-to heading under the toolbar, worst on mobile where
   the toolbar is two stacked rows). */
.entry-content [id^="ing-"] { scroll-margin-top: 150px; }
@media (max-width: 860px) { .entry-content [id^="ing-"] { scroll-margin-top: 200px; } }

/* ---------- Journal cards reuse (archives) ---------- */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }
@media (max-width: 900px) { .journal-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .journal-grid { grid-template-columns: 1fr; } }

/* ---------- Product accent borders in grid, per-product (see functions.php capyonsen_merch_map) ---------- */
.woocommerce ul.products li.product { position: relative; border-top: 4px solid var(--oat-deep); }
.woocommerce ul.products li.product.accent-clay  { border-top-color: var(--clay); }
.woocommerce ul.products li.product.accent-moss  { border-top-color: var(--moss); }
.woocommerce ul.products li.product.accent-petal { border-top-color: var(--petal); }
.woocommerce ul.products li.product.accent-yuzu  { border-top-color: var(--yuzu); }
.woocommerce ul.products li.product.accent-cocoa { border-top-color: var(--cocoa); }

.product-kicker {
  position: absolute; top: .7rem; left: .7rem; z-index: 2;
  background: var(--oat-soft); color: var(--clay-deep);
  font-size: .66rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 999px; box-shadow: var(--shadow-lift);
}

/* ---------- Shop: ritual-first merchandising bands ---------- */
.shop-hero { padding-bottom: 0; }
.shop-band { padding-block: clamp(2.5rem, 6vw, 4rem); }
.shop-band:nth-of-type(even) { background: var(--oat-deep); }
.shop-band-hero { background: color-mix(in srgb, var(--clay) 10%, var(--oat)); }
.shop-band-head { text-align: center; margin-bottom: .5rem; }
.shop-band-head .motif-steam { display: block; margin: 0 auto .5rem; opacity: .8; }
.shop-band-lead { margin: 0 auto; max-width: 42em; }
.shop-base-ripple { display: flex; justify-content: center; padding-block: 2.5rem 3.5rem; opacity: .6; }

/* Shop: category filter chips (item 7, 2026-07-12; GPT-5.6 audit pass:
   44px touch targets, single scrollable row on mobile, lighter padding) */
.shop-filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
  padding: .6rem 1.25rem .9rem; max-width: 900px; margin: 0 auto;
  position: sticky; top: 84px; z-index: 5; background: var(--oat);
}
.shop-filter {
  font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer;
  min-height: 44px; display: inline-flex; align-items: center;
  color: var(--cocoa); background: var(--oat-soft); border: 1.5px solid var(--line);
  border-radius: 999px; padding: .4rem 1.1rem; transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.shop-filter:hover { border-color: var(--clay); color: var(--clay-deep); }
.shop-filter:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.shop-filter.is-active { background: var(--cocoa); border-color: var(--cocoa); color: var(--oat); }
.shop-band[hidden] { display: none; }
@media (max-width: 860px) {
  .shop-filters {
    top: 76px; flex-wrap: nowrap; justify-content: flex-start;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding: .5rem 1.25rem .7rem;
    /* subtle edge fade hinting at horizontal scroll */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  }
  .shop-filters::-webkit-scrollbar { display: none; }
  .shop-filter { flex: 0 0 auto; }
}
/* Filter-jump landing offset: header + sticky filter row (GPT-5.6 audit, P1 —
   scrollIntoView parked the band head underneath them). */
.shop-band { scroll-margin-top: 150px; }
@media (max-width: 860px) { .shop-band { scroll-margin-top: 140px; } }
/* Band names are now real h2s (audit P2) — keep the eyebrow look, a touch more weight. */
h2.shop-band-title { font-size: .92rem; font-weight: 700; margin: 0 0 1.1rem; line-height: 1.3; }
/* Two-product bands (Night Ritual, Sets) center on a narrower 2-col grid on
   desktop instead of leaving a dangling empty third column (audit P2). */
@media (min-width: 901px) {
  .woocommerce .shop-band-night-ritual ul.products,
  .woocommerce .shop-band-sets ul.products {
    grid-template-columns: repeat(2, 1fr); max-width: 720px; margin-left: auto; margin-right: auto;
  }
}

/* Journal archive: category filter chips (item 7, 2026-07-12) */
.journal-filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem;
  margin: 0 0 2rem;
}
.journal-filter {
  font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer;
  min-height: 44px; display: inline-flex; align-items: center; text-decoration: none;
  color: var(--cocoa); background: var(--oat-soft); border: 1.5px solid var(--line);
  border-radius: 999px; padding: .4rem 1.1rem; transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.journal-filter:hover { border-color: var(--clay); color: var(--clay-deep); }
.journal-filter:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.journal-filter.is-active, .journal-filter[aria-current="true"] { background: var(--cocoa); border-color: var(--cocoa); color: var(--oat); }
.journal-card[hidden] { display: none; }
.journal-no-results { text-align: center; color: var(--muted); }
/* "5 min read · 12 Jul 2026" metadata row (GPT-5.6 audit, P2) */
.card-meta { font-size: .78rem; color: var(--muted); letter-spacing: .03em; margin-top: auto; padding-top: .5rem; }

/* ---------- Front page: ritual strip stays 3 → 1 col (never the 2+1 wrap) ---------- */
@media (max-width: 900px) {
  .woocommerce.ritual-strip ul.products { grid-template-columns: 1fr; }
}

/* ---------- Ritual page: 4-item expanded-collection strip goes 4 → 2 → 1
   (GPT-5.6 audit, P2 — the global rules gave 3+1 on desktop and a needlessly
   long single column from 561-900px). Scoped to body.page-ritual so the
   front page's 3-item strip keeps its own behavior above. ---------- */
@media (min-width: 1001px) {
  .page-ritual .woocommerce.ritual-strip ul.products { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 601px) and (max-width: 1000px) {
  .page-ritual .woocommerce.ritual-strip ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .page-ritual .woocommerce.ritual-strip ul.products { grid-template-columns: 1fr; }
}

/* Ritual page: "More formula details" disclosure under the top-3 fact pills */
.facts-more { margin-top: .6rem; }
.facts-more summary {
  cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--muted);
  list-style: none; display: inline-flex; align-items: center; gap: .35rem;
  text-decoration: underline dotted var(--line); text-underline-offset: 3px;
}
.facts-more summary::-webkit-details-marker { display: none; }
.facts-more summary:hover { color: var(--clay-deep); }
.facts-more summary:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.facts-more[open] summary { margin-bottom: .3rem; }

/* ---------- Single product: subline, benefit strip, reviews jump ---------- */
.woocommerce div.product .woocommerce-product-details__short-description {
  font-family: var(--font-display); font-style: italic; font-size: 1.12rem;
  color: var(--muted); margin-top: -.3rem;
}
.reviews-jump {
  display: inline-block; font-size: .82rem; font-weight: 600; color: var(--muted);
  text-decoration: underline dotted var(--line); text-underline-offset: 3px; margin: -.3rem 0 .5rem;
}
.reviews-jump:hover { color: var(--clay-deep); }
.benefit-strip { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: .9rem 0 1.1rem; }
.benefit-strip li {
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  padding: .4rem .85rem; background: var(--oat-deep); color: var(--cocoa);
  border-radius: 999px; border: 1px solid var(--line);
}

/* ---------- Single product: two-layer ritual naming + eco data block (v2.1, 2026-07-12) ----------
   P0 fix (2026-07-12): the ritual name was rendering as the visually dominant
   heading while the real product H1 was demoted to ~18px grey — reversed here.
   Ritual name is now a small eyebrow/step label; the H1 is the primary 32-40px
   heading. */
.ritual-name-kicker {
  font-family: var(--font-body); font-weight: 600; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--clay-deep);
  margin: 0 0 .5rem; line-height: 1.3;
}
.woocommerce div.product .ritual-name-kicker + h1.product_title {
  font-family: var(--font-display); font-weight: 550;
  font-size: clamp(2rem, 4.2vw, 2.5rem); letter-spacing: -.01em; text-transform: none;
  color: var(--cocoa); margin-top: 0; line-height: 1.12;
}
.eco-data-block {
  margin: 1.2rem 0; padding: 1rem 1.2rem; background: var(--oat-deep); border-radius: var(--radius);
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
}
/* P1 fix (2026-07-12, QA audit): can now render as two lines (natural-origin
   %, then COSMOS-certification + organic-% together) instead of one —
   width:100% so the second doesn't try to sit beside badge icons on the
   same flex row. */
.eco-data-block .eco-pct { font-weight: 600; margin: 0; width: 100%; }
.eco-data-block .eco-pct + .eco-pct { margin-top: .15rem; }
/* Real cert-icon badges (COSMOS + Vegan/Gluten-free/Nut-free), one row — the
   artwork already has its own label baked in ("VEGAN FRIENDLY" etc.), so no
   separate pill/text next to it (2026-07-12: went 20px -> 44px -> 64px; Daniel
   circled 44px as still too small, tested up to 64px locally and confirmed that's
   genuinely legible, not just "bigger"). */
.eco-data-block .eco-badges { display: flex; flex-wrap: wrap; gap: .7rem; list-style: none; padding: 0; margin: 0; }
.eco-data-block .eco-badges li { display: block; }
.eco-data-block .eco-badges img { display: block; width: 64px; height: 64px; }
.eco-data-block .eco-flags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; width: 100%; }
.eco-data-block .eco-flags li {
  font-size: .74rem; font-weight: 600; color: var(--cocoa); padding: .28rem .7rem;
  background: var(--oat-soft); border-radius: 999px; border: 1px solid var(--line);
}
.eco-data-block .eco-extra {
  width: 100%; margin: 0; font-size: .78rem; color: var(--muted); font-style: italic;
}

/* P2 fix (2026-07-12, QA audit): "View full ingredients" link near the eco/
   certification block, instead of the INCI list only being reachable by
   scrolling through the whole details tab. */
.ing-full-link {
  display: inline-block; margin: .6rem 0 1rem; font-size: .88rem; font-weight: 600;
  color: var(--clay-deep); text-decoration: underline dotted var(--clay); text-underline-offset: 3px;
}
.ing-full-link:hover, .ing-full-link:focus-visible { color: var(--cocoa); }

/* ---------- Single product: tighten the top gap ----------
   .section-tight's own padding-top (clamp 36-64px, main.css) is a sitewide default
   sized for spaced-out marketing sections; stacked with the sticky header (~84px)
   and the gallery-frame's own top padding it read as a large dead band above the
   product (Daniel circled it: "tighten the page more"). Scoped to WooCommerce's
   own `single-product` body class so nothing else using .section-tight moves. */
.single-product .section-tight { padding-top: 1.25rem; }

/* ---------- Single product: gallery background frame — blossom treatment ----------
   Replaces the earlier 3-way ?bg=a|b|c review toggle (none of the 3 were liked —
   Daniel: "something more elegant or some blossoms"). Single hardcoded treatment:
   quiet oat-soft card, one sakura branch anchored in the corner, a few loose petals
   drifting near the top, and the same subtle accent-color inset ring the old
   treatment A used (that part read fine — it was only the busy repeating texture
   that was the problem, and separately 404ing). */
/* Round 2 (2026-07-12, Daniel: "the new background does nothing... use some
   of our generated backgrounds"): a flat --stone color read as barely-there
   once most of it was covered by the matted photo — not enough of it showed
   to register as a deliberate choice. Swapped for the same kraft-paper/
   capybara-mark texture already generated for this brand (assets/img/
   emboss.jpg, used elsewhere in the theme) under a cocoa-tinted gradient to
   keep it dark/moody enough for contrast and on-palette; padding increased
   so the plinth actually has room to read instead of a thin sliver. */
.product-gallery-frame {
  position: relative; overflow: hidden; border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.75rem); margin-bottom: 1rem;
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--cocoa) 58%, transparent), color-mix(in srgb, var(--cocoa) 34%, transparent)),
    url('../img/emboss.jpg') center 30% / cover no-repeat,
    var(--stone);
  box-shadow: var(--shadow-soft);
}
/* P0 fix (2026-07-12): the product photo has its own near-white studio
   background, which was blending straight into the (also near-white)
   oat-soft frame — no visible edge, so a pale bottle read as almost
   invisible above the fold. The frame now sits on a deeper --stone
   plinth; the photo gets its own light mat + a real grounding shadow so
   it reads as a distinct, lifted object, plus a small contrast/saturation
   lift on the photo itself (no re-shoot available yet — see the
   product-photography item already tracked for real Selfnamed photos). */
.product-gallery-frame .woocommerce-product-gallery__image {
  position: relative; z-index: 1;
  background: var(--oat-soft); border-radius: var(--radius-sm); padding: .6rem;
}
/* P2 fix (2026-07-12, QA audit): "give the selected thumbnail a clear
   active border" — this setup has no flexslider (see the note below), so
   the thumbnail chips open a fullscreen viewer rather than swapping which
   photo is "selected" in place; the hero photo is always the one actually
   showing here. Give IT the clear accent ring instead, so there's always a
   visible answer to "which photo is currently displayed." */
.product-gallery-frame .woocommerce-product-gallery__image:first-of-type {
  box-shadow: 0 0 0 2px var(--clay);
}
.product-gallery-frame .woocommerce-product-gallery__image img {
  border-radius: calc(var(--radius-sm) - 4px);
  box-shadow: 0 26px 40px -10px rgba(46, 41, 37, .42), 0 6px 16px rgba(46, 41, 37, .18);
  filter: contrast(1.05) saturate(1.08);
}
/* Pre-existing quirk found while fixing the above: this setup runs without
   flexslider (WC's own settings show flexslider_enabled: ""), so on
   multi-image products the 2nd+ photo isn't converted into a thumbnail nav —
   it just rendered as a raw, unstyled ~65-80px orphan (Daniel: "looks
   weird"), AND its native click behavior was a plain link straight to the
   bare image file (full page navigation away from the shop, not a lightbox —
   confirmed no JS was bound to it). Round 2 (2026-07-12): styled as a
   deliberate, clickable thumbnail chip (lifted card, hover/focus ring) and
   rewired (theme.js) to open the SAME native full-screen photo viewer the
   magnifying-glass trigger already uses — confirmed that viewer already
   loads every gallery image, so this reuses working functionality instead
   of reimplementing a swap. Proper always-visible thumbnail-nav styling
   (rather than reusing the fullscreen viewer) is a further follow-up. */
.woocommerce-product-gallery__image:not(:first-of-type) {
  width: 52px; height: 52px; margin-top: .7rem; border-radius: var(--radius-sm);
  overflow: hidden; border: 2px solid var(--oat-soft); box-shadow: var(--shadow-lift);
  cursor: pointer; transition: box-shadow .2s ease, transform .2s ease;
}
.woocommerce-product-gallery__image:not(:first-of-type):hover,
.woocommerce-product-gallery__image:not(:first-of-type):focus-visible {
  box-shadow: 0 0 0 2px var(--clay), var(--shadow-lift); transform: translateY(-2px); outline: none;
}
/* P2 fix (2026-07-13): pressed/active state — the chip had hover+focus but
   nothing distinguished an actual tap/click. */
.woocommerce-product-gallery__image:not(:first-of-type):active { transform: translateY(0) scale(.96); }
.woocommerce-product-gallery__image:not(:first-of-type) img { width: 100%; height: 100%; object-fit: cover; }
/* Daniel: "looks fine on mobile make it look like that on desktop as well" —
   same fixed 52px chip read as proportionally tiny/lost against the much
   wider desktop gallery (~510-545px vs ~350px on mobile). Scale it up to
   match the same relative size it has on mobile instead of a fixed px value. */
@media (min-width: 769px) {
  .woocommerce-product-gallery__image:not(:first-of-type) { width: 78px; height: 78px; }
}

@media (max-width: 768px) {
  /* Reduce the mobile gallery from ~570px to ~360-410px by shrinking the
     matted photo rather than cropping it (keeps the full bottle in frame). */
  .product-gallery-frame .woocommerce-product-gallery__wrapper { max-width: 230px; margin-inline: auto; }
}
/* WooCommerce's own woocommerce-layout.css floats div.images (48%) left and div.summary
   (48%) right directly against each other — but the frame div wraps div.images one level
   deeper now (see the priority-25 fix above), so THAT float no longer does anything useful
   and .summary drops below the full-width frame instead of sitting beside it. Replicate the
   same float/width on the frame itself, at the same 769px breakpoint woocommerce-smallscreen.css
   uses to stack both back to 100%/float:none. The nested gallery still needs `!important`:
   WC's own `.woocommerce div.product div.images{width:48%}` (specificity 0,0,3,2) otherwise
   beats a plain `.product-gallery-frame .woocommerce-product-gallery` override (0,0,2,0). */
.product-gallery-frame .woocommerce-product-gallery { position: relative; z-index: 1; width: 100% !important; float: none !important; }
/* .product-top-grid wraps ONLY the gallery-frame + .summary pair (functions.php,
   2026-07-13 fix) — flow-root correctly contains the two floated children for
   height purposes WITHOUT overflow:hidden, which would clip/break .summary's
   sticky positioning. This gives .summary a containing block bounded to the
   gallery/summary pair instead of the full div.product (which also holds the
   tabs + cross-sell section). */
.product-top-grid { display: flow-root; }
@media (min-width: 769px) {
  .product-gallery-frame { float: left; width: 48%; }
  /* P1 fix (2026-07-12): the gallery is taller than the buy box, leaving a
     large empty area under the summary once it scrolls out of sync. Keep
     the summary (price/CTA/reassurance) in view while the gallery/tabs
     scroll past, instead of it disappearing above the fold. */
  .woocommerce div.product .summary { position: sticky; top: 100px; background: var(--oat); z-index: 10; padding-bottom: 1rem; }
}

.product-gallery-frame::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: -8px; bottom: 4%; width: clamp(140px, 22vw, 230px); aspect-ratio: 74 / 46;
  background-image: url('../img/motifs/sakura-branch.svg?v=1'); background-repeat: no-repeat;
  background-position: center; background-size: contain; opacity: .8;
  transform: scaleX(-1); /* branch reads inward, toward the product */
}
.product-gallery-frame::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; inset: 0;
  background-image:
    url('../img/motifs/petal-rot2.svg?v=1'), url('../img/motifs/petal-rot3.svg?v=1'), url('../img/motifs/petal-rot1.svg?v=1');
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: 10% 14%, 22% 32%, 85% 10%;
  background-size: 16px, 12px, 14px;
  opacity: .55;
}
.product-gallery-frame.accent-clay  { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--clay) 40%, transparent) inset, var(--shadow-soft); }
.product-gallery-frame.accent-moss  { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--moss) 40%, transparent) inset, var(--shadow-soft); }
.product-gallery-frame.accent-petal { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--petal) 60%, transparent) inset, var(--shadow-soft); }
.product-gallery-frame.accent-yuzu  { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--yuzu) 50%, transparent) inset, var(--shadow-soft); }
.product-gallery-frame.accent-cocoa { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--cocoa) 28%, transparent) inset, var(--shadow-soft); }

/* PAUSED (2026-07-13, claude-sonnet-5): this "Product-composite rollout"
   override (item 40, gpt-5-codex, 2026-07-12) was logged as "prepared, NOT
   deployed — approval required before next step: Daniel selects/adjusts a
   still" (no new composited photo has been approved/uploaded yet). It got
   shipped to dev.capyonsen.com by accident as a side effect of THIS session's
   own (unrelated) P2 UX-fix deploy, which scp'd the whole shared theme-extra.
   css file — with this block already sitting in it — and silently neutralized
   the current, actually-approved item-36/37 dark emboss/mat gallery frame
   before its intended replacement photo exists. Wrapped in a never-matching
   media query rather than deleted, so the rules are preserved verbatim for
   whoever resumes item 40 — remove ONLY the wrapper (not the rules) once a
   composite photo is approved and uploaded. Do not deploy this block again
   until then. */
@media (min-width: 999999px) {
.product-gallery-frame {
  padding: clamp(.5rem, 1.5vw, .8rem);
  background: var(--oat-soft);
}
.product-gallery-frame .woocommerce-product-gallery__image:first-of-type {
  background: transparent;
  padding: 0;
}
.product-gallery-frame .woocommerce-product-gallery__image:first-of-type img {
  border-radius: calc(var(--radius) - .35rem);
  box-shadow: none;
  filter: none;
}
.product-gallery-frame::before,
.product-gallery-frame::after { content: none; }
}

/* ---------- Single product: "Complete your ritual" cross-sell ---------- */
.complete-ritual { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); text-align: center; }
.complete-ritual .ritual-divider { margin-bottom: .6rem; }
.complete-ritual .ritual-divider img { margin: 0 auto; opacity: .8; }
.complete-ritual h2 { margin-top: .2rem; }
.complete-ritual .products { margin-top: 1.8rem; text-align: left; }

/* ---------- Coming-soon gate ----------
   Rendered via templates/coming-soon.html (a block template, not a classic PHP
   file — WooCommerce's ComingSoonRequestHandler forces block-template
   resolution for this page even on classic themes). Self-centering on
   .gate-main rather than a body class, since the block-template canvas
   (wp-includes/template-canvas.php) doesn't run this theme's header.php. */
.gate-main {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: clamp(2rem, 6vw, 4rem) var(--pad); text-align: center;
  background: var(--oat); color: var(--text); font-family: var(--font-body);
}
.gate-card { max-width: 480px; }
.gate-mark { border-radius: 50%; margin: 0 auto 1rem; box-shadow: var(--shadow-soft); border: 8px solid var(--oat-soft); }
.gate-motif { display: block; margin: 0 auto .6rem; opacity: .75; }
.gate-word { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; margin: 0; }
.gate-tagline { font-family: var(--font-display); font-style: italic; color: var(--clay-deep); margin: .2rem 0 1.6rem; }
.gate-headline { margin-bottom: .6rem; }
.gate-body { color: var(--muted); max-width: 40em; margin-inline: auto; }
.gate-form { justify-content: center; margin: 1.6rem auto 0; }
.gate-main .form-note { text-align: center; }
.gate-ripple { margin-top: 3rem; opacity: .5; }

/* ---------- YITH "Add to wishlist" button — was unstyled plugin default ----------
   (solid black pill, heavy weight next to the green Add to cart button, no
   relation to the site's actual button language — Daniel: "the buttons looks
   weirdly set"). Restyled as a secondary/ghost action using the same .btn-ghost
   treatment already used elsewhere, sized down and given real spacing instead of
   sitting flush under the primary button. */
.yith-add-to-wishlist-button-block { margin: .9rem 0 0; }
/* !important throughout: YITH's own add-to-wishlist.css ships
   `.yith-wcwl-add-to-wishlist-button:is(button):not(.yith-wcwl-theme-button-style)`
   (specificity ~0,0,2,1 from the :not()'s class), which beats a plain single-class
   override (0,0,1,0) — same specificity-war pattern already hit with WooCommerce's
   own layout.css on the gallery frame earlier this session. */
.yith-wcwl-add-to-wishlist-button {
  display: inline-flex !important; align-items: center; gap: .45rem; cursor: pointer;
  font-family: var(--font-body) !important; font-weight: 600 !important; font-size: .86rem !important;
  padding: .55rem 1.15rem !important; border-radius: 999px !important; border: 0 !important;
  background: transparent !important; color: var(--cocoa) !important;
  box-shadow: inset 0 0 0 1.5px var(--line) !important;
  transition: box-shadow .2s ease, color .2s ease, background .2s ease;
}
.yith-wcwl-add-to-wishlist-button:hover {
  background: var(--oat-soft) !important; box-shadow: inset 0 0 0 1.5px var(--cocoa) !important;
}
.yith-wcwl-icon-svg__wrapper { display: flex; width: 16px; height: 16px; }
.yith-wcwl-icon-svg__wrapper svg { width: 16px; height: 16px; }
.yith-wcwl-add-to-wishlist-button.yith-wcwl-icon-add ~ .yith-wcwl-wishlistaddedbrowse,
a.remove_from_wishlist {
  font-size: .82rem; color: var(--muted);
}

/* ---------- Mobile sticky purchase bar (P0, 2026-07-12) ----------
   Brings the buying action above the fold on mobile without touching the
   real add-to-cart form: shown only while that form is scrolled out of view
   (theme.js), bottom-anchored above iOS safe areas, own stacking layer so a
   future cookie-consent banner can sit above or below without collision. */
.mobile-buy-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: color-mix(in srgb, var(--oat-soft) 96%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(46, 41, 37, .12);
  padding: .65rem var(--pad) calc(.65rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(110%); transition: transform .25s ease;
}
.mobile-buy-bar.is-visible { transform: translateY(0); }
/* GPT-5.6 audit (P2): don't cover the footer's final links — theme.js adds
   .at-footer while the footer is in the viewport. */
.mobile-buy-bar.at-footer { transform: translateY(110%); }
@media (max-width: 860px) {
  .single-product .mobile-buy-bar { display: block; }
}
.mobile-buy-bar__inner { display: flex; align-items: center; gap: .9rem; max-width: var(--maxw); margin: 0 auto; }
.mobile-buy-bar__info { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.mobile-buy-bar__name {
  font-size: .72rem; font-weight: 600; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mobile-buy-bar__price { font-family: var(--font-body); font-weight: 700; color: var(--clay-deep); font-size: 1.05rem; }
.mobile-buy-bar__cta {
  flex: 0 0 auto; min-height: 48px; min-width: 44px; padding: 0 1.3rem;
  background: var(--moss); color: #fff; border: 0; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; cursor: pointer;
}
.mobile-buy-bar__cta:hover, .mobile-buy-bar__cta:focus-visible { background: var(--moss-deep); }
.mobile-buy-bar__cta:active { background: var(--moss-deep); transform: scale(.98); }
.mobile-buy-bar__cta[disabled] { opacity: .75; cursor: default; }

/* Cart-count pulse (2026-07-12, QA audit) — small confirmation animation on
   the header badge whenever an add/remove changes the cart. Used by
   minicart.js now; the "capy-toast" floating banner this used to live
   alongside is REMOVED (2026-07-13) — the mini-cart drawer replaces it. */
.cart-count.pulse { animation: capy-pulse .45s ease 2; }
@keyframes capy-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}

/* ============================================================
   P2 UX fixes (2026-07-13): mobile PDP polish — a separate audit round from
   items 36/37/39 (P0/P1). Explicitly does NOT touch the gallery/mat frame
   CSS above (that block is a different session's active work, see
   capyonsen/AGENTS.md item 38) or the eco-data-block/typography (iterated
   3 rounds already, item 33/34/35).
   ============================================================ */

/* ---------- 1. Mobile tab -> accordion ----------
   Panels are built into <details>/<summary> by theme.js (moves the real WC
   panel nodes, doesn't clone them). Desktop stays exactly as before: the
   accordion summary is hidden and the wrapper adds no visual chrome, so
   ul.tabs + WooCommerce's own click-to-switch JS is the only thing a desktop
   visitor sees. Only <=768px switches on the accordion look/behavior. */
.pdp-accordion__item { border: 0; background: none; margin: 0; }
.pdp-accordion__summary { display: none; }
@media (max-width: 768px) {
  .woocommerce div.product .woocommerce-tabs ul.tabs { display: none; }
  .pdp-accordion { display: block; margin-top: .4rem; }
  .pdp-accordion__item {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--oat-soft); margin-bottom: .7rem; overflow: hidden;
  }
  .pdp-accordion__summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    cursor: pointer; list-style: none; min-height: 44px;
    padding: .85rem 1.1rem; font-family: var(--font-display); font-weight: 600;
    font-size: 1.02rem; color: var(--cocoa);
  }
  .pdp-accordion__summary::-webkit-details-marker { display: none; }
  .pdp-accordion__summary::after {
    content: "+"; font-family: var(--font-display); font-size: 1.3rem; color: var(--clay);
    transition: transform .2s ease; flex: 0 0 auto; line-height: 1;
  }
  .pdp-accordion__item[open] .pdp-accordion__summary::after { transform: rotate(45deg); }
  .pdp-accordion__summary:focus-visible { outline: 2px solid var(--clay); outline-offset: -2px; }
  .pdp-accordion__summary:active { background: var(--oat-deep); }
  /* Force display off WooCommerce's own inline per-tab style (set for the
     desktop tab-switch) so every item can be independently opened/closed
     here regardless of which tab WC considered "active" on load. */
  .pdp-accordion__item:not([open]) > .panel { display: none !important; }
  .pdp-accordion__item[open] > .panel { display: block !important; }
  .pdp-accordion .panel { padding-left: 1.1rem; padding-right: 1.1rem; padding-bottom: 1.1rem; }
}

/* ---------- 2. Section rhythm ----------
   The tabs/accordion block and the "Complete your ritual" cross-sell both sat
   directly on the plain --oat page background, back to back with the buy box
   above — a long flat stretch. Quiet, on-palette tone changes only (existing
   tokens, no new colors): the details/facts/reviews area gets a soft raised
   card, the recommendations area gets a slightly deeper card, so the eye gets
   a beat between "product details" and "recommendations" without any busy
   texture or a hard line. */
.single-product .woocommerce-tabs {
  background: var(--oat-soft); border-radius: var(--radius);
  padding: 1.5rem clamp(1.1rem, 3vw, 2rem) 1.8rem; margin-top: 1.6rem;
  box-shadow: var(--shadow-soft);
}
.complete-ritual {
  background: var(--oat-deep); border-radius: var(--radius);
  padding: 2.2rem clamp(1.2rem, 4vw, 2.5rem) 2.4rem; margin-top: 2.5rem; border-top: 0;
}

/* ---------- 3. Gallery zoom/magnifier control discoverability ----------
   WooCommerce's own trigger (a plain unicode glyph, default styling from
   woocommerce-photoswipe.css) reads as a pale, barely-visible mark on top of
   the product photo. Does NOT touch .product-gallery-frame or
   .woocommerce-product-gallery__image (out of scope — active photo work,
   item 38) — this targets only the trigger control itself, a separate
   element layered on top. */
.woocommerce-product-gallery__trigger {
  position: absolute; z-index: 3; top: 14px; right: 14px;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  display: flex !important; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--cocoa) 78%, transparent) !important;
  border-radius: 50%; box-shadow: var(--shadow-lift);
  opacity: 1 !important; color: #fff !important; font-size: 1.1rem; line-height: 1;
  transition: background .2s ease, transform .2s ease;
}
.woocommerce-product-gallery__trigger:hover {
  background: var(--cocoa) !important; transform: scale(1.06);
}
.woocommerce-product-gallery__trigger:active { transform: scale(.96); }
.woocommerce-product-gallery__trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--oat) 90%, transparent), 0 0 0 5px var(--clay);
}
.woocommerce-product-gallery__trigger img { width: 18px; height: 18px; filter: brightness(0) invert(1); }

/* ---------- 4. Related-products ("Complete your ritual") polish ----------
   Ritual-order context already existed (the .product-kicker "Ritual step N"
   pill, functions.php capyonsen_merch_map). Added: a concise per-card benefit
   line reusing each product's own existing short description (real approved
   copy, same text used as that product's own PDP lead line — nothing
   invented), and — only where real bundle-pricing data confirms an actual
   saving (computed live from WC prices, see capyonsen_complete_ritual_module)
   — a bundle-saving note. Kept visually secondary to the primary buy box:
   small/muted type, no competing button styling. */
.ritual-card-benefit {
  font-size: .82rem; color: var(--muted); margin: .2rem 0 .6rem; line-height: 1.4;
}
.ritual-bundle-note {
  display: block; width: fit-content; margin: 1.6rem auto 0; max-width: 46em; text-align: center;
  font-size: .88rem; color: var(--muted); background: var(--oat-soft);
  border-radius: 999px; padding: .65rem 1.3rem;
}
.ritual-bundle-note a { color: var(--clay-deep); font-weight: 600; }

/* Branded Cart empty-state (2026-07-13, sitewide QA audit — item 5): the default
   WooCommerce-Blocks empty cart was unstyled generic copy with no way back into the
   catalogue. Cart and Checkout share this markup — Woo redirects an empty Checkout to
   /cart/ by default, so this is the only empty-state surface that needs branding. */
.capy-empty-cart { text-align: center; padding-block: 1rem; }
.capy-empty-cart .wc-block-cart__empty-cart__title {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--text);
}
.capy-empty-cart-sub { color: var(--muted); margin-top: -.4rem; margin-bottom: 1.4rem; }
.capy-empty-cart .wp-block-buttons { margin-bottom: 1.8rem; }
.capy-empty-cart .wp-block-woocommerce-product-category ul.products {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; padding: 0; margin-top: 1.2rem;
}
@media (max-width: 720px) { .capy-empty-cart .wp-block-woocommerce-product-category ul.products { grid-template-columns: 1fr; } }

/* ---------- WooCommerce Blocks cart + checkout: brand theming (GPT-5.6
   audit, P1 — beyond the primary button these screens read as a stock
   plugin after a highly branded shop). Scope: inputs, panels, headings,
   focus/error states, coupon controls. ---------- */

/* Form fields — oat surfaces, brand line, pill-adjacent radius */
.wc-block-components-text-input input[type="text"],
.wc-block-components-text-input input[type="email"],
.wc-block-components-text-input input[type="tel"],
.wc-block-components-text-input input[type="url"],
.wc-block-components-text-input input[type="number"],
.wc-block-components-text-input input[type="password"],
.wc-block-components-textarea,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-form .wc-block-components-select .components-custom-select-control__button,
.wc-block-components-country-input input,
.wc-block-components-state-input input {
  background: var(--oat-soft) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--cocoa) !important;
  font-family: var(--font-body) !important;
}
.wc-block-components-text-input input:focus,
.wc-block-components-textarea:focus,
.wc-block-components-combobox input:focus {
  border-color: var(--clay) !important;
  box-shadow: 0 0 0 1px var(--clay) !important;
  outline: none !important;
}
.wc-block-components-text-input label,
.wc-block-components-combobox label,
.wc-block-components-checkbox__label {
  color: var(--muted) !important; font-family: var(--font-body) !important;
}

/* Step + section headings in Fraunces */
.wc-block-components-checkout-step__title,
.wc-block-components-title,
.wp-block-woocommerce-cart h2,
.wc-block-cart__totals-title {
  font-family: var(--font-display) !important;
  font-weight: 550 !important;
  color: var(--cocoa) !important;
  letter-spacing: -.01em;
  text-transform: none !important;
}
.wc-block-components-checkout-step__description { color: var(--muted) !important; }

/* Order summary / totals panel as a raised oat card */
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-cart__sidebar .wc-block-components-sidebar,
.wc-block-cart .wc-block-cart__totals-wrapper {
  background: var(--oat-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.wc-block-components-totals-wrapper { border-top-color: var(--line) !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-family: var(--font-display) !important; color: var(--cocoa) !important;
}

/* Buttons — primary clay, consistent radius/hover with the shop */
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  background: var(--clay) !important; color: #fff !important;
  border-radius: 999px !important; border: 0 !important;
  font-family: var(--font-body) !important; font-weight: 600 !important;
  box-shadow: none !important;
  transition: background .15s ease, transform .15s ease;
}
.wc-block-components-button:not(.is-link):hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  background: var(--clay-deep) !important; transform: translateY(-1px);
}
.wc-block-components-button:not(.is-link):focus-visible {
  outline: 2px solid var(--cocoa) !important; outline-offset: 2px !important;
}

/* Coupon + inline links */
.wc-block-components-totals-coupon-link,
.wc-block-components-express-payment-continue-rule,
.wc-block-checkout__terms a,
.wp-block-woocommerce-cart a:not(.wc-block-components-button) {
  color: var(--clay-deep);
}
.wc-block-components-totals-coupon__button {
  border-radius: 999px !important; border: 1.5px solid var(--cocoa) !important;
  color: var(--cocoa) !important; background: transparent !important; font-weight: 600 !important;
}
.wc-block-components-totals-coupon__button:hover { background: var(--cocoa) !important; color: var(--oat) !important; }

/* Validation / error states — keep them visible but on-brand */
.wc-block-components-validation-error p { color: #B3492F !important; }
.wc-block-components-validation-error,
.has-error .wc-block-components-text-input input {
  border-color: #B3492F !important;
}
.wc-block-components-notice-banner.is-error { border-radius: var(--radius-sm); }
.wc-block-components-notice-banner.is-success { border-radius: var(--radius-sm); }

/* Radio/checkbox accents */
.wc-block-components-radio-control__option input[type="radio"]:checked,
.wc-block-components-checkbox input[type="checkbox"]:checked {
  accent-color: var(--clay);
}

/* ============================================================
   Mini-cart drawer (2026-07-13, Daniel feedback — AJAX add-to-cart build)
   Own stacking layer well above the sticky header (z-index 50) and the
   mobile-buy-bar (z-index 45) — 9998/9999 leaves headroom for a future
   cookie-consent banner to sit under it without collision, same intent as
   the mobile-buy-bar comment above.
   ============================================================ */
html.capy-minicart-locked, html.capy-minicart-locked body { overflow: hidden; }

.capy-minicart-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(46, 41, 37, .45);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.capy-minicart-overlay.is-open { opacity: 1; pointer-events: auto; }

.capy-minicart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 9999;
  width: 380px; max-width: 100vw;
  background: var(--oat); box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  transform: translateX(105%);
  transition: transform .25s ease;
}
.capy-minicart.is-open { transform: translateX(0); }
@media (max-width: 480px) { .capy-minicart { width: 100vw; } }

.capy-minicart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 1.4rem 1rem; border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.capy-minicart-head h2 { margin: 0; font-size: 1.35rem; }
.capy-minicart-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; min-width: 44px; min-height: 44px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--cocoa); font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.capy-minicart-close:hover { border-color: var(--clay); }
.capy-minicart-close:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }

.capy-minicart-scroll { flex: 1 1 auto; overflow-y: auto; padding: 1.2rem 1.4rem 1.5rem; }
.capy-minicart-body { display: flex; flex-direction: column; gap: 1.1rem; }

.capy-minicart-empty { text-align: center; padding: 2.5rem 0; }
.capy-minicart-empty p { color: var(--muted); margin-bottom: 1.2rem; }

.capy-minicart-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.capy-minicart-item {
  display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: flex-start;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line);
}
.capy-minicart-item__thumb { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--oat-soft); }
.capy-minicart-item__thumb img { width: 64px; height: 64px; object-fit: cover; display: block; }
.capy-minicart-item__body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.capy-minicart-item__name {
  font-family: var(--font-display); font-size: 1rem; font-weight: 550; color: var(--cocoa);
  text-decoration: none; line-height: 1.25;
}
.capy-minicart-item__name:hover { color: var(--clay-deep); }
/* +/- quantity stepper (2026-07-13) — rounded pill matching the cart page's
   qty control: a bordered pill (var(--line), var(--radius-sm)) with quiet
   ghost buttons either side of the number, brand-token hover/focus. */
.capy-minicart-item__stepper {
  display: inline-flex; align-items: center; align-self: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: transparent; margin-top: .15rem; overflow: hidden;
}
.capy-minicart-qty-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; min-width: 30px; padding: 0;
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font-size: 1.05rem; line-height: 1;
  transition: color .15s ease, background .15s ease;
}
.capy-minicart-qty-btn:hover:not([disabled]) { color: var(--cocoa); background: var(--oat-deep); }
.capy-minicart-qty-btn:focus-visible { outline: 2px solid var(--clay); outline-offset: -2px; }
.capy-minicart-qty-btn[disabled] { opacity: .4; cursor: default; }
.capy-minicart-qty-btn[aria-busy="true"] { opacity: .5; cursor: default; }
.capy-minicart-item__qty {
  min-width: 1.6rem; text-align: center; font-size: .9rem; font-weight: 600;
  color: var(--cocoa); font-variant-numeric: tabular-nums;
}
.capy-minicart-item__total { font-size: .92rem; font-weight: 600; color: var(--cocoa); }
.capy-minicart-item__remove {
  background: none; border: 0; color: var(--muted); font-size: 1.2rem; line-height: 1;
  width: 32px; height: 32px; min-width: 32px; cursor: pointer; border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.capy-minicart-item__remove:hover { color: var(--cocoa); background: var(--oat-deep); }
.capy-minicart-item__remove:focus-visible { outline: 2px solid var(--clay); outline-offset: 1px; }
.capy-minicart-item__remove[aria-busy="true"] { opacity: .5; cursor: default; }

.capy-minicart-freeship__bar {
  height: 6px; border-radius: 999px; background: var(--oat-deep); overflow: hidden;
}
.capy-minicart-freeship__bar span {
  display: block; height: 100%; background: var(--moss); border-radius: 999px;
  transition: width .35s ease;
}
.capy-minicart-freeship__msg { margin: .5rem 0 0; font-size: .84rem; color: var(--muted); }
.capy-minicart-freeship__msg.is-unlocked { color: var(--moss-deep); font-weight: 600; }

.capy-minicart-shipping-line { margin: 0; font-size: .8rem; color: var(--muted); }

.capy-minicart-subtotal {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .9rem; border-top: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.15rem;
}
.capy-minicart-subtotal__amount { font-weight: 600; }

.capy-minicart-ctas { display: flex; gap: .7rem; }
.capy-minicart-ctas .btn { flex: 1 1 50%; }

/* ---------- Cart-page shipping estimator (section B) ---------- */
.capy-shipping-estimator {
  margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
}
.capy-shipping-estimator h3 { font-size: 1rem; margin: 0 0 .6rem; }
.capy-shipping-estimator__row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.capy-shipping-estimator select {
  padding: .6rem .9rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--oat-soft); color: var(--cocoa); font-family: var(--font-body); font-size: .92rem;
}
.capy-shipping-estimator select:focus-visible { outline: 2px solid var(--clay); outline-offset: 1px; }
.capy-shipping-estimator__result { font-size: .88rem; font-weight: 600; color: var(--moss-deep); }
