/* ============================================================
   WooCommerce — design-token mapping layer
   ============================================================
   Loaded only on shop pages (see wpr_woocommerce_assets), and only when
   WooCommerce is active. Woo's own stylesheets stay enqueued and keep doing
   the layout work — cart tables, variation forms, the checkout grid — while
   this file maps its colours, type and controls onto the theme's tokens.

   Everything here resolves from :root, so a Customizer scheme change or a
   custom accent applies to the shop as well without a second set of edits.

   Selectors are scoped under .woocommerce (or a Woo body class) so nothing
   here can leak onto the marketing pages.
   ============================================================ */

/* ---------- type ----------
   IMPORTANT: `woocommerce` and `woocommerce-page` are BODY classes on shop,
   product and category pages — not just wrappers around the shop markup. So a
   bare `.woocommerce a` matched EVERY link in the document and repainted the
   header nav and the footer in --accent-dk, while cart/checkout/account (which
   only get `woocommerce-page`) stayed correct. Same trap for the heading rules.

   These two selector groups are the only ones here broad enough to catch
   unrelated markup, so they are constrained to the page's <main> element.
   Both forms are needed: the class can sit on <body> (shop, product) or on a
   div inside the content (the account screen). Component rules further down
   stay unscoped on purpose — they target Woo's own class names, so a Woo block
   dropped into the header, such as a mini-cart, still inherits them.

   Scope on `main`, NEVER on `#content`. An id contributes an id to the
   specificity, so `.woocommerce #content a` scores (1,1,1) and beats
   `.woocommerce a.button` (0,2,1) — which silently repainted every <a>-based
   Woo button label in --accent-dk instead of the theme's --on-accent2.
   `.woocommerce main a` scores (0,1,2), so the button rule keeps winning while
   the header and footer stay excluded. */
.woocommerce main h1, .woocommerce main h2, .woocommerce main h3,
main .woocommerce h1, main .woocommerce h2, main .woocommerce h3,
.woocommerce-page main h1, .woocommerce-page main h2,
main .product_title{
  font-family:var(--serif); font-weight:400; color:var(--cream); letter-spacing:-0.02em;
}
main .product_title{ font-size:calc(var(--ts,1) * clamp(30px,4.4vw,48px)); line-height:1.12; }
.woocommerce, .woocommerce-page{ color:var(--text); font-family:var(--sans); }
.woocommerce main a,
main .woocommerce a{ color:var(--accent-dk); }

/* ---------- buttons ----------
   Woo reuses .button for everything from "add to cart" to pagination, so the
   base is the theme's primary pill and quieter roles are stepped down below. */
/* Three tiers, not one.
   Woo reuses .button for everything, and painting them all the theme's
   primary fill meant Add to cart, Buy Now, Apply coupon, Proceed to checkout
   and Place order arrived as five identical buttons with no hierarchy between
   them. So the shared rule below sets shape only, and colour is assigned by
   role underneath it: filled for the one action that commits, outlined for
   the ones that help, quiet for the ones that merely adjust. */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.wpr-prod__cart a.button,
.wpr-prodfeat__cart a.button{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--sans); font-weight:600; font-size:calc(var(--ts,1) * 16px);
  padding:16px 28px; border-radius:999px; border:1px solid var(--line);
  background:var(--ink3); color:var(--cream); text-decoration:none;
  line-height:1; text-shadow:none;
  transition:transform .15s, box-shadow .2s, background .15s, border-color .15s, color .15s;
  box-shadow:none;
}
/* Tier 1 — the action that commits: add to cart on the product page, proceed
   to checkout, place the order. One of these per screen. */
/* Every selector here is element-qualified on purpose. The shared rule above
   lists `.woocommerce button.button.alt` at (0,3,1), and an add-to-cart
   button is always .alt as well — so a tidier `.woocommerce
   button.single_add_to_cart_button` at (0,2,1) lost to it and the primary
   button came out as the outlined one. Matching (0,3,1) and sitting later in
   the file is what makes these win. */
.woocommerce button.button.single_add_to_cart_button,
.woocommerce input.button.single_add_to_cart_button,
.woocommerce a.button.checkout-button,
.woocommerce a.button.checkout,
.woocommerce button.button#place_order,
.woocommerce input.button#place_order,
.woocommerce .woocommerce-message a.button,
.woocommerce a.button.product_type_external,
.wpr-prodfeat__cart a.button{
  background:var(--accent2); color:var(--on-accent2); border-color:transparent;
  box-shadow:0 8px 18px -12px var(--accent2-dk);
}
/* Tier 3 — adjusts something without leaving the page. Quieter than the
   outlined default so it cannot be mistaken for the way forward. */
.woocommerce button.button[name="apply_coupon"],
.woocommerce input.button[name="apply_coupon"],
.woocommerce button.button[name="update_cart"],
.woocommerce input.button[name="update_cart"],
.woocommerce button.button[name="woocommerce_checkout_update_totals"],
.woocommerce a.button.wc-backward{
  background:transparent; color:var(--dim); border-color:var(--line); box-shadow:none;
  font-weight:500; padding:13px 22px; font-size:calc(var(--ts,1) * 14.5px);
}
@media (hover:hover){
  .woocommerce a.button:hover,
  .woocommerce button.button:hover,
  .woocommerce input.button:hover,
  .woocommerce #respond input#submit:hover,
  .woocommerce a.button.alt:hover,
  .woocommerce button.button.alt:hover,
  .wpr-prod__cart a.button:hover,
  .wpr-prodfeat__cart a.button:hover{
    background:color-mix(in srgb, var(--cream) 8%, var(--ink3));
    border-color:var(--accent-dk); color:var(--cream); transform:translateY(-1px);
  }
  .woocommerce button.button.single_add_to_cart_button:hover,
  .woocommerce input.button.single_add_to_cart_button:hover,
  .woocommerce a.button.checkout-button:hover,
  .woocommerce a.button.checkout:hover,
  .woocommerce button.button#place_order:hover,
  .woocommerce a.button.product_type_external:hover,
  .wpr-prodfeat__cart a.button:hover{
    background:var(--accent2-dk); color:var(--on-accent2-dk,var(--on-accent2)); border-color:transparent;
  }
  .woocommerce button.button[name="apply_coupon"]:hover,
  .woocommerce input.button[name="apply_coupon"]:hover,
  .woocommerce button.button[name="update_cart"]:hover,
  .woocommerce input.button[name="update_cart"]:hover,
  .woocommerce a.button.wc-backward:hover{
    background:var(--ink3); color:var(--cream); border-color:var(--accent-dk);
  }
}
/* Unavailable, not merely quiet.
   Woo marks a button the shopper cannot use with a `disabled` CLASS as well
   as the attribute — an out-of-stock variation is `.button.alt.disabled`,
   which kept Woo's own purple because the theme only matched `:disabled`.
   Both spellings, and .alt too, land here now. */
.woocommerce a.button.disabled,
.woocommerce button.button.disabled,
.woocommerce input.button.disabled,
.woocommerce a.button.alt.disabled,
.woocommerce button.button.alt.disabled,
.woocommerce input.button.alt.disabled,
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled],
.woocommerce input.button:disabled,
.woocommerce button.button.alt:disabled,
.woocommerce button.button.alt:disabled[disabled],
.woocommerce input.button.alt:disabled,
.woocommerce button.button.single_add_to_cart_button.disabled,
.woocommerce button.button.single_add_to_cart_button:disabled,
.woocommerce .wc-variation-is-unavailable,
.woocommerce .wc-no-matching-variations{
  background:var(--ink3); color:var(--dim); border-color:var(--line);
  box-shadow:none; opacity:1; cursor:not-allowed; transform:none;
}

/* Loop buttons: keep them flex containers, or the label goes left.
   The card is display:flex, so its button is a flex ITEM — and flex items
   are blockified. WooCommerce's `.woocommerce ul.products li.product .button`
   sets display:inline-block at (0,3,2), out-specifying the theme's shared
   inline-flex at (0,2,1), and inline-block blockifies to BLOCK. A block is
   not a flex container, so justify-content:center stopped applying and the
   label fell back to text-align, which inherits start.

   inline-flex blockifies to FLEX, which still centres, so winning the
   specificity is the whole fix. Element-qualified to reach (0,3,3).

   Invisible at desktop widths only because the box shrink-wraps the label
   there; at 375px the button fills the card and the label sits hard left. */
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product button.button,
.woocommerce ul.products li.product input.button{
  display:inline-flex; align-items:center; justify-content:center;
  text-align:center;
}

/* ---------- product loop ----------
   .wpr-grid-3 is added to the <ul> by wpr_woocommerce_loop_start, so the list
   only has to stop being a list. */
.woocommerce ul.products{ margin:0; padding:0; list-style:none; }
.woocommerce ul.products::before,
.woocommerce ul.products::after{ content:none; }
.woocommerce ul.products li.product{
  width:auto !important;   /* Woo hardcodes percentage widths per columns-N */
  margin:0 !important; float:none !important; clear:none !important;
  padding:clamp(20px,2.4vw,28px); border-radius:20px;
  background:var(--ink2); border:1px solid var(--line);
  display:flex; flex-direction:column;
  transition:border-color var(--wpr-hover-dur,180ms) var(--wpr-hover-ease,ease),
             box-shadow  var(--wpr-hover-dur,180ms) var(--wpr-hover-ease,ease),
             transform   var(--wpr-hover-dur,180ms) var(--wpr-hover-ease,ease);
}
/* A product tile always links to the product, so it takes the strong hover
   tier from the theme's hover system rather than the subtle one. */
@media (hover:hover){
  .woocommerce ul.products li.product:hover{
    border-color:var(--wpr-hover-ring, var(--accent));
    box-shadow:var(--wpr-hover-sh-lg, 0 12px 26px -14px rgba(0,0,0,.25));
    transform:translateY(var(--wpr-hover-lift, -2px));
  }
}
@media (prefers-reduced-motion: reduce){
  .woocommerce ul.products li.product{ transition:none; }
  .woocommerce ul.products li.product:hover{ transform:none; }
}
.woocommerce ul.products li.product a img{ border-radius:12px; margin-bottom:16px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-family:var(--serif); font-size:calc(var(--ts,1) * clamp(18px,2vw,21px));
  color:var(--cream); padding:0; margin:0 0 8px;
}
.woocommerce ul.products li.product .price{
  color:var(--cream); font-family:var(--sans); font-weight:600; font-size:16px; margin-bottom:14px;
}
.woocommerce ul.products li.product .price del{ color:var(--dimmer); font-weight:400; }
/* The Sale colour has to be named here as well as in the parity block far
   below: this selector is (0,4,3) and that one is (0,2,1), so a bare
   --cream here quietly beat the role and grid sale prices stayed charcoal
   while the single-product price was terracotta. The `del` above already
   carried its grid selector; this one did not. */
.woocommerce ul.products li.product .price ins{
  text-decoration:none; color:var(--promo-text, var(--cream));
}
/* Push the add-to-cart to the card foot so a row of tiles lines up. */
.woocommerce ul.products li.product .button{ margin-top:auto; align-self:flex-start; }
.woocommerce ul.products li.product .onsale{
  background:var(--accent); color:var(--on-accent); border-radius:999px;
  font-family:var(--sans); font-weight:700; font-size:12.5px; letter-spacing:.03em;
  min-height:0; min-width:0; padding:6px 14px; line-height:1; top:14px; right:14px; left:auto; margin:0;
}

/* ---------- single product ---------- */
.woocommerce div.product .price,
/* Woo renders the summary price as <p class="price"> and only the variation
   price as a <span>, so a span-only selector silently missed the main one: it
   was left at 20px in an inherited olive that failed AA at 3.16:1. */
.woocommerce div.product span.price,
.woocommerce div.product p.price{
  color:var(--cream); font-family:var(--serif); font-weight:400;
  font-size:calc(var(--ts,1) * clamp(30px,4vw,42px)); line-height:1;
}
.woocommerce div.product .woocommerce-tabs ul.tabs{ padding:0; margin:0 0 24px; border-bottom:1px solid var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before{ border-color:var(--line); }
/* Woo styles the tab and the ACTIVE tab in two separate rules, and the active
   one carries an extra class — (0,5,3) against (0,4,3) — so listing `li` alone
   left the selected tab with Woo's hardcoded #fff pill and #515151 label. Those
   are literal colours, so they did not follow the palette: on any scheme other
   than sunset the tab stayed white against a differently-coloured page. Both
   states are declared here at matching specificity, in tokens. The design is an
   underline tab, so the pill itself goes. */
.woocommerce div.product .woocommerce-tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active{
  background:transparent; color:var(--dim);
  border:0; border-radius:0; margin:0 18px 0 0; padding:0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active::after{ content:none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a{
  color:var(--dim); font-weight:600; padding:12px 0; display:inline-block;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a:hover{
  color:var(--accent-dk); box-shadow:inset 0 -2px 0 var(--accent);
}
/* The panel and its heading inherit page tokens rather than Woo's greys. */
.woocommerce div.product .woocommerce-Tabs-panel{ color:var(--text); background:transparent; }
.woocommerce div.product .woocommerce-Tabs-panel h2{ color:var(--cream); }
/* ---------- quantity stepper ----------
   WooCommerce ships only the number input here. The minus/plus controls come
   from a plugin or a child theme, and every one of them spells the markup
   differently: <input type="button">, <button>, or a plain <a>. Left alone
   they keep browser defaults — a ~20px chip baseline-aligned against a 41px
   input, so the three pieces sit at three different heights.

   So: lay the row out here rather than relying on the source order, and size
   the controls off the input instead of hard-coding a height. align-self
   stretch means they keep matching it when the Typography settings change the
   input's line height, which a fixed height would not. */
.woocommerce .quantity,
.woocommerce-page .quantity{
  display:inline-flex; align-items:stretch; gap:6px; vertical-align:middle;
}
.woocommerce .quantity .qty{
  padding:12px 10px; border-radius:10px; border:1px solid var(--line);
  background:var(--ink2); color:var(--text); font-family:var(--sans);
  text-align:center;
}
.woocommerce .quantity .qty:focus{
  outline:none; border-color:var(--accent);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
/* Two ways to step the value is one too many, but only drop the native
   spinner where a plugin has actually supplied buttons — on a plain install
   it is the only control a mouse has. */
.woocommerce .quantity:has(.plus) .qty,
.woocommerce .quantity:has(.minus) .qty,
.woocommerce .quantity:has(button) .qty{ appearance:textfield; -moz-appearance:textfield; }
.woocommerce .quantity:has(.plus) .qty::-webkit-inner-spin-button,
.woocommerce .quantity:has(.minus) .qty::-webkit-inner-spin-button,
.woocommerce .quantity:has(button) .qty::-webkit-inner-spin-button,
.woocommerce .quantity:has(.plus) .qty::-webkit-outer-spin-button,
.woocommerce .quantity:has(.minus) .qty::-webkit-outer-spin-button,
.woocommerce .quantity:has(button) .qty::-webkit-outer-spin-button{
  appearance:none; -webkit-appearance:none; margin:0;
}
.woocommerce .quantity .minus,
.woocommerce .quantity .plus,
.woocommerce .quantity > button,
.woocommerce .quantity > input[type="button"],
.woocommerce .quantity > input[type="submit"]{
  align-self:stretch; flex:0 0 auto;
  display:inline-flex; align-items:center; justify-content:center;
  min-width:42px; padding:0 10px;
  appearance:none; -webkit-appearance:none;
  border:1px solid var(--line); border-radius:10px;
  background:var(--ink3); color:var(--cream);
  font:600 17px/1 var(--sans); text-decoration:none; cursor:pointer;
  user-select:none; -webkit-user-select:none;
  transition:background .18s ease, border-color .18s ease, color .18s ease;
}
/* Deepen the chip and mark the edge, rather than flooding it with an accent.
   --on-accent is picked to sit on --accent, and a palette is free to take
   --accent-dk a long way from it: one shipped site pairs a dark green
   --accent-dk with a near-black --on-accent, which is 3.2:1 — under AA for a
   17px glyph. Even --accent-dk as the glyph only reaches 4.2:1 once the chip
   darkens. Keeping the resting pair and deepening the chip with the text
   colour cannot fail on any palette, because it is the pair the chip already
   uses. */
.woocommerce .quantity .minus:hover,
.woocommerce .quantity .plus:hover,
.woocommerce .quantity > button:hover,
.woocommerce .quantity > input[type="button"]:hover{
  border-color:var(--accent-dk);
  background:color-mix(in srgb, var(--cream) 10%, var(--ink3));
}
.woocommerce .quantity .minus:focus-visible,
.woocommerce .quantity .plus:focus-visible,
.woocommerce .quantity > button:focus-visible,
.woocommerce .quantity > input[type="button"]:focus-visible{
  outline:2px solid var(--accent-dk); outline-offset:2px;
}
.woocommerce .quantity .minus:disabled,
.woocommerce .quantity .plus:disabled,
.woocommerce .quantity > button:disabled,
.woocommerce .quantity > input[type="button"]:disabled{
  opacity:.45; cursor:not-allowed;
}
/* A few plugins stack the two controls in a wrapper instead of placing them
   either side of the input. Keep that column beside the input rather than
   letting a block-level div drop onto its own line. */
.woocommerce .quantity .quantity-nav{
  display:flex; flex-direction:column; gap:4px; flex:0 0 auto;
}
.woocommerce .quantity .quantity-nav .quantity-button{
  display:flex; align-items:center; justify-content:center;
  min-width:30px; flex:1 1 0; padding:0 8px;
  border:1px solid var(--line); border-radius:8px;
  background:var(--ink3); color:var(--cream);
  font:600 13px/1 var(--sans); cursor:pointer; user-select:none;
}
.woocommerce .quantity .quantity-nav .quantity-button:hover{
  border-color:var(--accent-dk);
  background:color-mix(in srgb, var(--cream) 10%, var(--ink3));
}
/* The stepper and the add-to-cart button share a line on the product page.
   float:none is the point of this rule. WooCommerce floats the cart button
   left, so where a plugin adds a second one — a Buy now beside Add to cart —
   the two floats sit flush against each other with nothing between them. No
   margin fixes that on its own while both are floated and the markup between
   them is a hidden input, which is why the sibling rule is `~` and not `+`. */
.woocommerce div.product form.cart .button{ vertical-align:middle; float:none; }
.woocommerce div.product form.cart .button ~ .button{ margin-inline-start:10px; }

/* ---------- forms (cart, checkout, account) ---------- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.select2-container--default .select2-selection--single{
  padding:13px 15px; border-radius:10px; border:1px solid var(--line);
  background:var(--ink2); color:var(--text);
  /* See the note in wpr.css: below 16px, iOS zooms on focus and stays there. */
  font-family:var(--sans); font-size:16px; line-height:1.5; min-height:48px; height:auto;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus{
  outline:none; border-color:var(--accent);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.woocommerce form .form-row label{ color:var(--cream); font-weight:600; font-size:14px; }
.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce-checkout #payment{
  border:1px solid var(--line); border-radius:20px; background:var(--ink2); padding:clamp(20px,3vw,32px);
}
.woocommerce-checkout #payment div.payment_box{
  background:var(--ink3); color:var(--text); border-radius:12px;
}
.woocommerce-checkout #payment div.payment_box::before{ border-bottom-color:var(--ink3); }

/* ---------- tables (cart, order review, account orders) ---------- */
.woocommerce table.shop_table{
  border:1px solid var(--line); border-radius:20px; border-collapse:separate;
  border-spacing:0; overflow:hidden; background:var(--ink2);
}
.woocommerce table.shop_table th{
  font-family:var(--sans); font-weight:700; color:var(--cream);
  background:var(--ink3); border-top:0; padding:16px 20px;
}
.woocommerce table.shop_table td{ border-top:1px solid var(--line); padding:16px 20px; color:var(--text); }
.woocommerce table.shop_table tbody tr:first-child td{ border-top:1px solid var(--line); }
.woocommerce-cart table.cart img{ width:64px; border-radius:10px; }

/* ---------- notices ---------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error{
  border-radius:14px; border:1px solid var(--line); background:var(--ink2);
  color:var(--text); border-top-width:1px; padding:16px 20px 16px 52px;
  font-family:var(--sans);
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before{ top:18px; left:20px; }
.woocommerce-message{ border-color:color-mix(in srgb, var(--accent) 34%, var(--line)); }
.woocommerce-message::before{ color:var(--accent-dk); }
.woocommerce-info{ border-color:color-mix(in srgb, var(--accent) 24%, var(--line)); }
.woocommerce-info::before{ color:var(--accent-dk); }
.woocommerce-error{ border-color:color-mix(in srgb, var(--accent2) 34%, var(--line)); }
.woocommerce-error::before{ color:var(--accent2-dk); }
.woocommerce-error li, .woocommerce-message, .woocommerce-info{ color:var(--text); }

/* ---------- pagination + breadcrumb ---------- */
/* The theme styled the page numbers but never spaced them: WooCommerce's own
   margin is reset by the border:0 below, leaving the row sitting 1px under
   the last row of products with nothing to separate it from the grid.
   Clamped like the theme's other vertical rhythm so it holds on a phone. */
.woocommerce nav.woocommerce-pagination{ margin-top:clamp(32px,4vw,48px); }
.woocommerce nav.woocommerce-pagination ul{ border:0; display:flex; gap:8px; justify-content:center; flex-wrap:wrap; row-gap:8px; margin:0; }
.woocommerce nav.woocommerce-pagination ul li{ border:0; margin:0; overflow:visible; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
  min-width:42px; height:42px; display:inline-flex; align-items:center; justify-content:center;
  padding:0 12px; border-radius:10px; border:1px solid var(--line);
  color:var(--text); font-weight:600; background:var(--ink2);
}
.woocommerce nav.woocommerce-pagination ul li span.current{
  background:var(--accent); color:var(--on-accent); border-color:var(--accent);
}
.woocommerce .woocommerce-breadcrumb{ color:var(--dim); font-size:14px; margin-bottom:24px; }
.woocommerce .woocommerce-breadcrumb a{ color:var(--dim); }
.woocommerce .woocommerce-breadcrumb a:hover{ color:var(--cream); }

/* ---------- ratings ---------- */
/* Rating stars are gold everywhere, and a shopper reads the colour before
   the number. Its own token rather than --accent on purpose: a star in the
   brand colour reads as decoration, and on a shop whose accent is red or
   green it stops looking like a rating at all. */
:root{ --star:#ffb400; }
.woocommerce .star-rating span::before,
.woocommerce p.stars a::before{ color:var(--star); }

/* ---------- narrow screens ----------
   Woo's cart table is the same problem the comparison table had: it does not
   fit and gives no sign that it scrolls. Stacking is handled by Woo's own
   responsive CSS; this only keeps the rounded shell from clipping oddly. */
@media (max-width:768px){
  .woocommerce table.shop_table{ border-radius:16px; }
  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td{ padding:13px 15px; }
  .woocommerce ul.products li.product .button{ align-self:stretch; }
}

/* ---- content width on cart / checkout / account ----
   These three are ordinary pages, so page.php puts their content inside
   .wpr-article — a 760px reading column that is far too narrow for Woo's
   two-column cart, checkout and account layouts.

   Worse, Woo's Cart and Checkout *blocks* ship with .alignwide, and the
   break-out rule in wpr.css expands .wpr-prose > .alignwide to a gutter-less
   1240px, so the content ran out past the container to the viewport edges.

   Both are fixed by giving these pages the same content box as every other
   page on the site: the inner width of .wpr-container. Undo the narrow column,
   then cancel the break-out, since the column is already the right width. */
.woocommerce-cart .wpr-article,
.woocommerce-checkout .wpr-article,
.woocommerce-account .wpr-article{ max-width:none; }

.woocommerce-cart .wpr-prose > .alignwide,
.woocommerce-checkout .wpr-prose > .alignwide,
.woocommerce-account .wpr-prose > .alignwide,
.woocommerce-cart .wpr-prose > .alignfull,
.woocommerce-checkout .wpr-prose > .alignfull,
.woocommerce-account .wpr-prose > .alignfull{
  margin-inline:0;
  width:auto;
  max-width:none;
}

/* ---------- My Account ----------
   Woo ships the account screen as a floated 30/68 split with the nav as a raw
   <ul>: bullets, underlined links, no active state. Grid instead, and the nav
   becomes a card of pills matching the theme's other vertical link lists. */
.woocommerce-account .woocommerce{
  display:grid;
  grid-template-columns:minmax(0,15rem) minmax(0,1fr);
  gap:clamp(28px,4vw,52px);
  align-items:start;
}
/* Woo carries a ::before/::after clearfix on .woocommerce, and on a grid
   container those pseudo-elements become grid ITEMS. They filled row 1, which
   pushed the nav into column 2 and dropped the content onto row 2 in the
   narrow column. Drop them, and place both regions explicitly so no future
   stray child can shuffle the layout again. */
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after{ content:none; display:none; }
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content{
  width:auto; float:none; margin:0;
}
.woocommerce-account .woocommerce-MyAccount-navigation{ grid-column:1; grid-row:1; }
.woocommerce-account .woocommerce-MyAccount-content{ grid-column:2; grid-row:1; }
.woocommerce-MyAccount-navigation ul{
  list-style:none; margin:0; padding:0;
  display:flex; flex-direction:column; gap:4px;
}
.woocommerce-MyAccount-navigation ul li{ margin:0; padding:0; list-style:none; }
.woocommerce-MyAccount-navigation ul li::marker{ content:none; }
.woocommerce-MyAccount-navigation ul li a{
  display:block; padding:11px 15px; border-radius:12px;
  font-family:var(--sans); font-size:15px; font-weight:600;
  color:var(--text); text-decoration:none;
  border:1px solid transparent;
  transition:background .15s, color .15s, border-color .15s;
}
.woocommerce-MyAccount-navigation ul li a:hover{
  background:var(--ink3); color:var(--cream); text-decoration:none;
}
.woocommerce-MyAccount-navigation ul li.is-active a{
  background:var(--ink2); border-color:var(--line); color:var(--cream);
}

/* ---------- Cart & Checkout blocks ----------
   WooCommerce 11 renders these as blocks in the wc-block-* namespace, which
   shares nothing with the classic .woocommerce table markup styled above, so
   none of that work reached them. Everything below maps the block components
   onto the same tokens: no literal colours, so the palette switcher still
   drives the shop. */

/* Section headings: the theme sets headings in --serif. */
.wc-block-cart__totals-title,
.wc-block-components-checkout-step__title,
.wc-block-components-title,
.wp-block-woocommerce-cart-order-summary-heading-block{
  font-family:var(--serif) !important;
  font-weight:400;
  color:var(--cream);
  letter-spacing:-0.01em;
  text-transform:none;
}

/* Buttons: the theme's primary pill. Woo's default is a dark square slab, and
   because the cart's is an <a>, the generic .woocommerce a rule was also
   underlining it in the accent colour. */
.wc-block-components-button:not(.is-link){
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--sans); font-weight:600; font-size:calc(var(--ts,1) * 16px);
  padding:16px 28px; border-radius:999px; border:1px solid transparent;
  background:var(--accent2); color:var(--on-accent2);
  box-shadow:0 8px 18px -12px var(--accent2-dk);
  text-decoration:none; line-height:1;
  transition:background .15s, box-shadow .2s;
}
.wc-block-components-button:not(.is-link):hover{
  background:var(--accent2-dk); color:var(--on-accent2-dk,var(--on-accent2)); text-decoration:none;
}
.wc-block-components-button:not(.is-link) .wc-block-components-button__text{
  text-decoration:none; color:inherit;
}
/* Text-only buttons (remove, "add coupon") read as links, not pills. */
.wc-block-components-button.is-link{
  color:var(--accent-dk); text-decoration:underline; font-weight:600;
}

/* Inputs and selects: theme field styling. */
.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="number"],
.wc-block-components-textarea,
.wc-block-components-select__select{
  background:var(--ink2) !important;
  border:1px solid var(--line) !important;
  border-radius:14px !important;
  color:var(--text);
  font-family:var(--sans);
  font-size:15px;
}
.wc-block-components-text-input input:focus,
.wc-block-components-textarea:focus,
.wc-block-components-select__select:focus{
  outline:none;
  border-color:var(--accent) !important;
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent) !important;
}
.wc-block-components-text-input label,
.wc-block-components-select label{ color:var(--dim); font-family:var(--sans); }

/* The order-summary sidebar becomes a theme card. */
.wc-block-components-sidebar .wc-block-components-panel,
.wp-block-woocommerce-cart-totals-block,
.wc-block-components-sidebar{
  border-radius:20px;
}
.wc-block-components-order-summary,
.wc-block-components-totals-wrapper{ border-color:var(--line); }

/* Quantity stepper: match the theme's small inputs. */
.wc-block-components-quantity-selector{
  border-radius:12px; border:1px solid var(--line); background:var(--ink2);
}
.wc-block-components-quantity-selector__input{
  background:transparent; color:var(--text); font-family:var(--sans);
}
.wc-block-components-quantity-selector__button{ color:var(--dim); }
.wc-block-components-quantity-selector__button:hover{ color:var(--accent-dk); }

/* Product names in cart/summary: the theme does not underline card titles.
   These pages render through page.php, so the block markup sits inside
   .wpr-prose — and `.wpr-prose a` (0,2,0) sets colour AND underline, which a
   lone component class at (0,1,0) cannot beat. Qualifying with `.wpr-prose a`
   is the same trick wpr.css already uses for .wpr-cta-link. Note the block
   cart has NO .woocommerce ancestor (the body class is woocommerce-page), so
   a `.woocommerce a…` selector would never match here. */
.wpr-prose a.wc-block-components-product-name,
.woocommerce a.wc-block-components-product-name,
.wc-block-components-product-name{
  color:var(--cream); text-decoration:none; font-weight:600;
}
.wpr-prose a.wc-block-components-product-name:hover,
.woocommerce a.wc-block-components-product-name:hover,
.wc-block-components-product-name:hover{
  color:var(--accent-dk); text-decoration:underline;
}
.wc-block-components-product-price__value,
.wc-block-components-formatted-money-amount{ color:var(--text); }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value{
  font-family:var(--serif); color:var(--cream);
}

/* ---------- shop toolbar ---------- */
.woocommerce .woocommerce-result-count{
  color:var(--dim); font-family:var(--sans); font-size:15px;
}
.woocommerce .woocommerce-ordering select{
  background:var(--ink2); border:1px solid var(--line); border-radius:12px;
  padding:11px 14px; color:var(--text); font-family:var(--sans); font-size:15px;
  cursor:pointer;
}
.woocommerce .woocommerce-ordering select:focus{
  outline:none; border-color:var(--accent);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
/* Shop/archive H1 comes from woocommerce_content(), not the theme's head. */
.woocommerce .page-title{
  font-family:var(--serif); font-weight:400; color:var(--cream); letter-spacing:-0.01em;
}

/* Single-product gallery: theme cards are rounded. */
.woocommerce div.product .woocommerce-product-gallery__image img,
.woocommerce div.product .woocommerce-product-gallery__wrapper img{
  border-radius:18px;
}

@media (max-width:860px){
  .woocommerce-account .woocommerce{ grid-template-columns:minmax(0,1fr); }
  /* Undo the explicit placement, or both regions would stack in column 1
     while column 2 stayed empty. */
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content{ grid-column:1; grid-row:auto; }
  .woocommerce-MyAccount-navigation ul{
    flex-direction:row; flex-wrap:wrap; gap:6px;
  }
}

/* ============================================================
   REMAINING WOOCOMMERCE SURFACES
   ============================================================
   The rules above cover the shop loop, single product, cart, checkout and the
   account dashboard. These are the screens a real store hits that were still
   falling through to Woo's own defaults: auth forms, the order/thank-you pages,
   variable products, reviews, and the secondary product carousels.
   ------------------------------------------------------------ */

/* ---- login / register / lost password ----
   Woo splits these into a floated .u-columns .col2-set. Grid reads better and
   removes the clearfix dependency. */
.woocommerce .u-columns.col2-set{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));
  gap:clamp(22px,3vw,38px);
}
.woocommerce .u-columns.col2-set::before,
.woocommerce .u-columns.col2-set::after{ content:none; display:none; }
.woocommerce .u-columns .col-1,
.woocommerce .u-columns .col-2{ width:auto; float:none; }
.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.lost_reset_password,
.woocommerce form.checkout_coupon{
  background:var(--ink2); border:1px solid var(--line); border-radius:20px;
  padding:clamp(22px,3vw,32px); margin:0;
}
.woocommerce form.login .form-row,
.woocommerce form.register .form-row{ padding:0; margin-bottom:16px; }
.woocommerce .woocommerce-form-login__rememberme{ font-size:14px; color:var(--dim); font-weight:400; }
.woocommerce .woocommerce-LostPassword{ margin:12px 0 0; font-size:14px; }
.woocommerce .woocommerce-privacy-policy-text{ font-size:14px; color:var(--dim); }

/* ---- addresses & account forms ---- */
.woocommerce .woocommerce-Addresses{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));
  gap:clamp(20px,3vw,32px);
}
.woocommerce .woocommerce-Address{ width:auto; float:none; }
.woocommerce .woocommerce-Address-title{
  display:flex; align-items:baseline; justify-content:space-between; gap:14px; margin-bottom:10px;
}
.woocommerce .woocommerce-Address-title h2,
.woocommerce .woocommerce-Address-title h3{ margin:0; font-family:var(--serif); color:var(--cream); }
.woocommerce address{
  font-style:normal; background:var(--ink2); border:1px solid var(--line);
  border-radius:16px; padding:18px 20px; color:var(--text); line-height:1.7;
}

/* ---- order received / thank you / order detail ---- */
.woocommerce .woocommerce-thankyou-order-received{
  font-family:var(--serif); color:var(--cream);
  font-size:calc(var(--ts,1) * clamp(22px,2.6vw,28px)); line-height:1.3;
}
.woocommerce ul.woocommerce-order-overview,
.woocommerce ul.order_details{
  list-style:none; margin:26px 0; padding:22px 24px;
  display:flex; flex-wrap:wrap; gap:22px 34px;
  background:var(--ink2); border:1px solid var(--line); border-radius:20px;
}
.woocommerce ul.woocommerce-order-overview li,
.woocommerce ul.order_details li{
  border:none; padding:0; margin:0; float:none; list-style:none;
  font-size:13px; text-transform:uppercase; letter-spacing:.08em; color:var(--dimmer); font-weight:700;
}
.woocommerce ul.woocommerce-order-overview li strong,
.woocommerce ul.order_details li strong{
  display:block; margin-top:6px; font-size:17px; letter-spacing:0;
  text-transform:none; color:var(--cream); font-weight:600;
}
.woocommerce .woocommerce-order-details__title,
.woocommerce .woocommerce-column__title,
.woocommerce .woocommerce-customer-details h2{
  font-family:var(--serif); font-weight:400; color:var(--cream);
}
.woocommerce .woocommerce-customer-details .woocommerce-columns{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:clamp(20px,3vw,32px);
}
.woocommerce .woocommerce-order-downloads,
.woocommerce .woocommerce-MyAccount-downloads{ margin-top:26px; }

/* ---- variable products ---- */
.woocommerce div.product form.cart .variations{
  width:100%; border-collapse:collapse; margin-bottom:18px; background:none; border:none;
}
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td{
  background:none; border:none; padding:0 0 12px; vertical-align:middle;
}
.woocommerce div.product form.cart .variations th.label{
  font-family:var(--sans); font-weight:600; color:var(--cream); text-align:left; padding-right:14px;
}
.woocommerce div.product form.cart .variations select{
  width:100%; background:var(--ink2); border:1px solid var(--line); border-radius:12px;
  padding:12px 14px; color:var(--text); font-family:var(--sans); font-size:15px; cursor:pointer;
}
.woocommerce div.product form.cart .reset_variations{
  font-size:14px; color:var(--accent-dk); text-decoration:underline; font-weight:600;
}
.woocommerce div.product .woocommerce-variation-price{ margin-bottom:14px; }

/* ---- stock status ---- */
.woocommerce div.product p.stock.in-stock{ color:var(--dim); font-size:15px; }
/* Out of stock had been borrowing --accent2-dk, which is also the primary
   button hover: changing one moved the other. The sale role separates them. */
.woocommerce div.product p.stock.out-of-stock,
.woocommerce ul.products li.product .out-of-stock{
  color:var(--promo-text, var(--accent2-dk)); font-weight:600; font-size:15px;
}

/* ---- related / upsells / cross-sells ----
   The product cards themselves already inherit the shop-loop styling because
   Woo reuses ul.products markup; only these section headings were unstyled. */
.woocommerce .related > h2,
.woocommerce .upsells > h2,
.woocommerce .cross-sells > h2,
.woocommerce section.related h2,
.woocommerce section.upsells h2{
  font-family:var(--serif); font-weight:400; color:var(--cream);
  font-size:calc(var(--ts,1) * clamp(24px,3vw,32px));
  margin:clamp(40px,5vw,64px) 0 clamp(20px,3vw,30px);
}

/* Reviews as their own section, below the tabs or the accordion.
   `clear:both` for the same reason the accordion needs it: WooCommerce
   floats the gallery and the summary, nothing clears after them, and a block
   without it starts level with the images and runs through them. */
.wpr-reviews-section{
  clear:both; display:flow-root;
  margin:clamp(28px,4vw,48px) 0 0; padding-top:clamp(28px,4vw,48px);
  border-top:1px solid var(--line);
}
.wpr-reviews-section #reviews{ margin:0; }

/* SKU, categories and tags under the add-to-cart. WooCommerce runs them
   together on one line separated by nothing but a space, so "SKU: almond-badam
   Category: Dry Fruits" reads as one sentence. They are separate facts. */
.woocommerce div.product .product_meta{
  margin-top:clamp(16px,2.2vw,24px);
  font-size:calc(var(--ts,1) * 14px); color:var(--dim);
}
.woocommerce div.product .product_meta > span{ display:block; margin:0 0 6px; }
.woocommerce div.product .product_meta > span:last-child{ margin-bottom:0; }
.woocommerce div.product .product_meta a{ color:var(--accent-dk); }

/* ---- reviews ----
   Every rule here carries `#comments` because WooCommerce's own do. Its
   review styles are written as `.woocommerce #reviews #comments ol.commentlist
   li .comment-text` and similar — two IDs — so the shorter selectors this
   block used before lost outright, whatever order the files loaded in. The
   result was Woo's layout showing through the theme's: the avatar stayed
   absolutely positioned at 32px outside the card, and `.comment-text` kept
   its own border and `margin-left:50px` and shrank to its content. It went
   unnoticed for as long as it did because the theme closed comments, so no
   review could ever render to show it. */
.woocommerce #reviews #comments > h2{
  font-family:var(--serif); font-weight:400; color:var(--cream);
  font-size:calc(var(--ts,1) * clamp(21px,2.4vw,26px)); margin:0 0 20px;
}
.woocommerce #reviews #comments ol.commentlist{ list-style:none; margin:0; padding:0; }
.woocommerce #reviews #comments ol.commentlist li{ margin:0 0 18px; }
.woocommerce #reviews #comments ol.commentlist li .comment_container{
  background:var(--ink2); border:1px solid var(--line); border-radius:18px;
  padding:clamp(18px,2.4vw,24px); display:flex; gap:16px; align-items:flex-start;
}
.woocommerce #reviews #comments ol.commentlist li img.avatar{
  position:static; float:none; flex:none;
  width:44px; height:44px; border-radius:999px;
  border:none; padding:0; margin:0; background:var(--line); box-shadow:none;
}
/* flex:1 + min-width:0 — without the second half a long unbroken word in a
   review stretches the card past the page instead of wrapping. */
.woocommerce #reviews #comments ol.commentlist li .comment-text{
  flex:1 1 auto; min-width:0; margin:0; border:none; border-radius:0; padding:0;
}
.woocommerce #reviews #comments ol.commentlist li .comment-text p{ margin:0 0 10px; }
.woocommerce #reviews #comments ol.commentlist li .comment-text p:last-child{ margin-bottom:0; }
.woocommerce #reviews #comments ol.commentlist li .comment-text p.meta,
.woocommerce #reviews #comments ol.commentlist li .meta{
  font-size:calc(var(--ts,1) * 14px); color:var(--dim); line-height:1.5;
}
.woocommerce #reviews #comments ol.commentlist li .comment-text strong[itemprop="author"],
.woocommerce #reviews #comments ol.commentlist li .woocommerce-review__author{
  color:var(--cream); font-weight:700;
}
.woocommerce #reviews #comments ol.commentlist li .woocommerce-review__verified{
  font-style:normal; font-weight:600; color:var(--accent-dk);
}
/* Woo floats the stars right of the meta line; give them room so a long
   name cannot run underneath them. */
.woocommerce #reviews #comments ol.commentlist li .comment-text .star-rating{
  float:right; margin:0 0 6px 12px;
}
.woocommerce #reviews #comments ol.commentlist ul.children{ margin:18px 0 0 60px; }
/* On a phone the float leaves the name and date wrapping into a column
   beside the stars. Stacked, they read as one line each. */
@media (max-width:600px){
  .woocommerce #reviews #comments ol.commentlist li .comment-text .star-rating{
    float:none; margin:0 0 8px;
  }
  .woocommerce #reviews #comments ol.commentlist ul.children{ margin-left:0; }
}

/* The "(2 customer reviews)" link, and Woo's #767676 on it. */
.woocommerce #reviews h2 small,
.woocommerce #reviews h2 small a{ color:var(--dim); font-size:calc(var(--ts,1) * 15px); }
.woocommerce #reviews .woocommerce-noreviews{ color:var(--dim); margin:0 0 20px; }

/* ---- the review form ---- */
.woocommerce #review_form_wrapper{ margin-top:30px; }
.woocommerce #review_form #respond{
  background:var(--ink2); border:1px solid var(--line); border-radius:20px;
  padding:clamp(22px,3vw,30px);
}
.woocommerce #review_form #reply-title{ font-family:var(--serif); color:var(--cream); font-size:calc(var(--ts,1) * 21px); }
.woocommerce #review_form label{ display:block; font-weight:600; color:var(--cream); font-size:15px; margin-bottom:6px; }
/* 16px, not 15: anything smaller and iOS Safari zooms the page on focus and
   never zooms back. Same rule as every other form in the theme. */
.woocommerce #review_form textarea,
.woocommerce #review_form input[type="text"],
.woocommerce #review_form input[type="email"]{
  width:100%; padding:14px 16px; border-radius:14px; border:1px solid var(--line);
  background:var(--ink); color:var(--text); font-family:var(--sans);
  font-size:max(16px, calc(var(--ts,1) * 16px)); min-height:48px;
}
/* Woo sets #comment to a flat height:75px, which is two lines. */
.woocommerce #reviews #comment,
.woocommerce #review_form textarea{ height:auto; min-height:140px; }
.woocommerce #review_form textarea:focus,
.woocommerce #review_form input:focus{
  outline:none; border-color:var(--accent);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
/* The rating picker. Woo gives each star a 1em box — 24x24, well under the
   44px a finger needs. The padding grows the hit area without changing the
   glyph, and ::before is nudged by the same amount because it is positioned
   against the padding box, not the content box. */
.woocommerce #review_form p.stars{ margin:0 0 14px; }
.woocommerce #review_form p.stars a{
  width:28px; height:28px; font-size:28px; padding:8px; box-sizing:content-box;
}
.woocommerce #review_form p.stars a::before{ top:8px; left:8px; }
.woocommerce #review_form p.stars a:focus-visible{
  outline:2px solid var(--accent); outline-offset:0; border-radius:8px;
}
/* The consent checkbox is a row, not a stacked label, and the label above
   turns every label in this form into a bold block. */
.woocommerce #review_form .comment-form-cookies-consent{
  display:flex; align-items:flex-start; gap:10px; margin:14px 0;
}
.woocommerce #review_form .comment-form-cookies-consent input[type="checkbox"]{
  flex:none; width:20px; height:20px; margin:1px 0 0; accent-color:var(--accent-dk);
}
.woocommerce #review_form .comment-form-cookies-consent label{
  display:inline; font-weight:400; font-size:calc(var(--ts,1) * 15px);
  color:var(--text); margin:0;
}

/* ---- cart collaterals & shipping calculator (classic cart) ---- */
.woocommerce .cart-collaterals .cart_totals{ width:auto; float:none; }
.woocommerce .cart-collaterals .cart_totals > h2{ font-family:var(--serif); font-weight:400; color:var(--cream); }
.woocommerce .shipping-calculator-button{ color:var(--accent-dk); text-decoration:underline; font-weight:600; }
.woocommerce .shipping-calculator-form{ margin-top:14px; }
.woocommerce .cart-collaterals{ display:grid; gap:24px; }

/* ---- mini cart / cart drawer block ---- */
.wc-block-mini-cart__badge{ background:var(--accent2); color:var(--on-accent2); }
.wc-block-mini-cart__button{ color:inherit; }
.wp-block-woocommerce-mini-cart-contents{ background:var(--ink); color:var(--text); }
.wc-block-mini-cart__footer{ border-top:1px solid var(--line); }

/* ---- coupon / empty states ---- */
.woocommerce .cart-empty, .wc-block-cart__empty-cart__title{
  font-family:var(--serif); color:var(--cream);
}
.woocommerce .return-to-shop{ margin-top:18px; }

/* ---------- shop pages whose markup has lost WooCommerce's classes ----------
   Everything above is anchored on `.woocommerce`, the element class Woo's own
   templates print. Cart, checkout and account render through page.php, so if
   a site replaces those templates with custom ones — and several do — that
   wrapper and the inner class names (.form-row, .input-text, .button,
   .shop_table) go with them, and not one rule in this file can match. The
   page then renders as raw browser defaults inside an otherwise styled site.

   The body classes survive that, because WooCommerce adds them itself and no
   template can drop them. So: scope to those, stay inside .wpr-prose where
   page content lives, and match on element rather than class. This is a floor,
   not a replacement — where the real classes are present the rules above are
   more specific and still win. */
.woocommerce-cart .wpr-prose input[type="text"],
.woocommerce-cart .wpr-prose input[type="email"],
.woocommerce-cart .wpr-prose input[type="tel"],
.woocommerce-cart .wpr-prose input[type="number"],
.woocommerce-cart .wpr-prose select,
.woocommerce-cart .wpr-prose textarea,
.woocommerce-checkout .wpr-prose input[type="text"],
.woocommerce-checkout .wpr-prose input[type="email"],
.woocommerce-checkout .wpr-prose input[type="tel"],
.woocommerce-checkout .wpr-prose input[type="number"],
.woocommerce-checkout .wpr-prose input[type="password"],
.woocommerce-checkout .wpr-prose select,
.woocommerce-checkout .wpr-prose textarea,
.woocommerce-account .wpr-prose input[type="text"],
.woocommerce-account .wpr-prose input[type="email"],
.woocommerce-account .wpr-prose input[type="password"],
.woocommerce-account .wpr-prose select,
.woocommerce-account .wpr-prose textarea{
  display:block; width:100%; max-width:420px; margin-top:6px;
  padding:13px 15px; border-radius:10px; border:1px solid var(--line);
  background:var(--ink2); color:var(--text);
  /* See the note in wpr.css: below 16px, iOS zooms on focus and stays there. */
  font-family:var(--sans); font-size:16px; line-height:1.5; min-height:48px; height:auto;
}
.woocommerce-cart .wpr-prose input:focus,
.woocommerce-cart .wpr-prose select:focus,
.woocommerce-cart .wpr-prose textarea:focus,
.woocommerce-checkout .wpr-prose input:focus,
.woocommerce-checkout .wpr-prose select:focus,
.woocommerce-checkout .wpr-prose textarea:focus,
.woocommerce-account .wpr-prose input:focus,
.woocommerce-account .wpr-prose select:focus,
.woocommerce-account .wpr-prose textarea:focus{
  outline:none; border-color:var(--accent);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
/* A checkbox stretched to 420px is not a checkbox. */
.woocommerce-cart .wpr-prose input[type="checkbox"],
.woocommerce-cart .wpr-prose input[type="radio"],
.woocommerce-checkout .wpr-prose input[type="checkbox"],
.woocommerce-checkout .wpr-prose input[type="radio"],
.woocommerce-account .wpr-prose input[type="checkbox"],
.woocommerce-account .wpr-prose input[type="radio"]{
  display:inline-block; width:auto; max-width:none; margin-top:0;
  accent-color:var(--accent-dk);
}
/* :not(.button) is load-bearing. These selectors tie with the button tiers at
   (0,3,1) and sit later in the file, so without it this floor won the tie and
   repainted every properly-classed button solid — Apply coupon included, which
   the tiers deliberately make quiet. The floor is for markup that has LOST
   Woo's classes; a button that still has them is not its business. */
.woocommerce-cart .wpr-prose button[type="submit"]:not(.button),
.woocommerce-cart .wpr-prose input[type="submit"]:not(.button),
.woocommerce-checkout .wpr-prose button[type="submit"]:not(.button),
.woocommerce-checkout .wpr-prose input[type="submit"]:not(.button),
.woocommerce-account .wpr-prose button[type="submit"]:not(.button),
.woocommerce-account .wpr-prose input[type="submit"]:not(.button){
  display:inline-flex; align-items:center; justify-content:center;
  padding:14px 26px; border:0; border-radius:999px;
  background:var(--accent2); color:var(--on-accent2);
  font-family:var(--sans); font-size:calc(var(--ts,1) * 15px); font-weight:600;
  line-height:1; cursor:pointer;
  transition:background .18s ease;
}
.woocommerce-cart .wpr-prose button[type="submit"]:not(.button):hover,
.woocommerce-cart .wpr-prose input[type="submit"]:not(.button):hover,
.woocommerce-checkout .wpr-prose button[type="submit"]:not(.button):hover,
.woocommerce-checkout .wpr-prose input[type="submit"]:not(.button):hover,
.woocommerce-account .wpr-prose button[type="submit"]:not(.button):hover,
.woocommerce-account .wpr-prose input[type="submit"]:not(.button):hover{
  background:var(--accent2-dk); color:var(--on-accent2-dk,var(--on-accent2));
}
/* The same three roles, for markup with no classes left to go on. Name is
   all there is to identify them by, and it survives when the class does not. */
.woocommerce-cart .wpr-prose button[name="apply_coupon"]:not(.button),
.woocommerce-cart .wpr-prose input[name="apply_coupon"]:not(.button),
.woocommerce-cart .wpr-prose button[name="update_cart"]:not(.button),
.woocommerce-cart .wpr-prose input[name="update_cart"]:not(.button),
.woocommerce-checkout .wpr-prose button[name="apply_coupon"]:not(.button),
.woocommerce-checkout .wpr-prose input[name="apply_coupon"]:not(.button){
  background:transparent; color:var(--dim); border:1px solid var(--line);
  font-weight:500; padding:13px 22px; font-size:calc(var(--ts,1) * 14.5px);
}
.woocommerce-cart .wpr-prose button[name="apply_coupon"]:not(.button):hover,
.woocommerce-cart .wpr-prose input[name="apply_coupon"]:not(.button):hover,
.woocommerce-cart .wpr-prose button[name="update_cart"]:not(.button):hover,
.woocommerce-checkout .wpr-prose button[name="apply_coupon"]:not(.button):hover{
  background:var(--ink3); color:var(--cream); border-color:var(--accent-dk);
}

/* An empty submit button is invisible and unclickable. Custom cart templates
   drop WooCommerce's "Update cart" label often enough to be worth a floor. */
.woocommerce-cart .wpr-prose button[name="update_cart"]:empty::after{
  content:"Update cart";
}
/* Payment methods and shipping options are lists of controls, not prose. */
.woocommerce-checkout .wpr-prose ul:has(> li > input[type="radio"]),
.woocommerce-cart .wpr-prose ul:has(> li > input[type="radio"]){
  list-style:none; margin-left:0; padding-left:0;
}
/* An inline SVG with no width or height has no intrinsic size, so inside a
   content link it grows to the width of the page — one shipped site had a
   checkout arrow rendering at over 1000px. Anything sized stays as authored. */
.wpr-prose a > svg:not([width]):not([height]):not([class]){
  width:1em; height:1em; display:inline-block; vertical-align:-0.125em;
}

/* The same variation list appears in the cart and order tables, where the
   page's paragraph spacing inflates it just as it did in the drawer. Woo's own
   rules handle the float; these only take the air back out. */
.woocommerce td.product-name dl.variation,
.woocommerce td.product-name .wc-item-meta{
  margin:4px 0 0; font-size:13.5px; line-height:1.45; color:var(--dim);
}
.woocommerce td.product-name dl.variation dd,
.woocommerce td.product-name .wc-item-meta li{
  margin:0 0 2px; padding:0;
}
.woocommerce td.product-name dl.variation dd :is(p,span),
.woocommerce td.product-name .wc-item-meta li :is(p,span){
  margin:0; font-size:inherit; line-height:inherit;
}

/* ---------- theme product blocks ----------
   wpr/product-grid, wpr/product-featured and wpr/product-categories render
   the theme's own .wpr-card rather than WooCommerce's loop markup, so almost
   everything is inherited. What is left is the three pieces a card has never
   had to show before: a price, an add-to-cart button and a category count. */
.wpr-prod,
.wpr-prodcat{ display:flex; flex-direction:column; }
/* Push the button to the foot of the card so a two-line product name does not
   leave one tile's button sitting higher than its neighbour's. */
.wpr-prod__cart{ margin-top:auto; padding-top:14px; }
.wpr-prod__price,
.wpr-prodfeat__price{
  font-family:var(--serif); color:var(--cream); line-height:1.2; margin-top:10px;
}
.wpr-prod__price{ font-size:calc(var(--ts,1) * 20px); }
.wpr-prodfeat__price{ font-size:calc(var(--ts,1) * 30px); margin-top:14px; }
/* Woo prints the old price as <del> and the new one as <ins>; the underline
   on <ins> reads as a mistake next to a struck-through number. */
.wpr-prod__price del,
.wpr-prodfeat__price del{ color:var(--dimmer); font-size:.78em; margin-right:8px; }
/* These blocks render on ordinary pages, which have no `.woocommerce`
   ancestor, so the parity block below never reaches them — the role is named
   here too or a sale price in the theme's own product blocks ignores it. */
.wpr-prod__price ins,
.wpr-prodfeat__price ins{
  text-decoration:none; background:transparent;
  color:var(--promo-text, inherit); font-weight:var(--promo-bold, inherit);
}
/* The word "Sale" itself, so it takes the Sale colour when there is one. */
.wpr-prod__flash{
  margin-top:12px; color:var(--promo-text, var(--accent-dk)); letter-spacing:.08em;
}
.wpr-prodcat__count{ margin-top:8px; color:var(--dim); font-size:14px; }
.wpr-prodfeat__cart{ margin-top:22px; }
/* The loop button is Woo's, and Woo's button paint is scoped to a
   `.woocommerce` ancestor — which the shop has and an ordinary page does not.
   So the fill, border, label colour and hover come from joining the shared
   button rules above by name (the grid as the shop's own card button, the
   featured band as the one primary action), and only the metrics are set
   here. `a.button`, not `.button`: at (0,2,1) this matches the shared rules
   and wins by coming later, where (0,2,0) lost on every shop page. */
.wpr-prod__cart a.button,
.wpr-prodfeat__cart a.button{
  display:inline-flex; align-items:center; justify-content:center;
  padding:13px 24px; border-radius:999px; min-height:44px; /* touch target */
  font-family:var(--sans); font-size:calc(var(--ts,1) * 15px); font-weight:600; line-height:1;
}
/* "Added" tick and the "View cart" link Woo appends after an ajax add. */
.wpr-prod__cart .added_to_cart,
.wpr-prodfeat__cart .added_to_cart{
  display:inline-block; margin-left:12px; font-size:14px; font-weight:600;
  color:var(--accent-dk); text-decoration:underline; text-underline-offset:2px;
}
@media (max-width:560px){
  .wpr-prod__cart a.button,
  .wpr-prodfeat__cart a.button{ width:100%; }
}

/* "Buy Now", from the quick-buy plugins most shops add, arrives carrying
   .single_add_to_cart_button and would otherwise be a second identical
   primary button beside Add to cart. One commit action per screen. */
.woocommerce button.button.wc-buy-now-btn,
.woocommerce a.button.wc-buy-now-btn,
.woocommerce button.button.buy-now-button{
  background:var(--promo, var(--ink3)); color:var(--on-promo, var(--cream));
  border-color:var(--promo, var(--line)); box-shadow:none;
}
@media (hover:hover){
  .woocommerce button.button.wc-buy-now-btn:hover,
  .woocommerce a.button.wc-buy-now-btn:hover{
    background:var(--promo-dk, color-mix(in srgb, var(--cream) 8%, var(--ink3)));
    border-color:var(--promo-dk, var(--accent-dk));
    color:var(--on-promo-dk, var(--cream));
  }
}

/* ---------- colour parity with the Customizer palette ----------
   Everything WooCommerce paints from its own hex values, pointed back at the
   theme's tokens so changing the palette changes the shop with it. */

/* Woo resolves most of its colours at build time, but a handful of rules go
   through these. Setting them here is the cheapest coverage available.
   --wc-red is deliberately NOT remapped: it carries error states, and an
   error that is not red stops reading as one. The two places it is used
   decoratively rather than as a warning are overridden by name below. */
.woocommerce,
.woocommerce-page,
.wpr-cartdrawer{
  --wc-form-color-background:var(--ink2);
  --wc-form-color-text:var(--text);
  --wc-form-border-color:var(--line);
  --wc-form-border-radius:10px;
  --wc-content-bg:var(--ink2);
  --wc-secondary:var(--ink3);
  --wc-secondary-text:var(--cream);
  --wc-primary:var(--accent2);
  --wc-primary-text:var(--on-accent2);
  --wc-highlight:var(--accent-dk);
  --wc-highligh-text:var(--on-accent);
  --wc-subtext:var(--dim);
}

/* Sale badge.
   Woo ships #958E09 with white on it, which is 3.4:1 — under AA. The obvious
   fix, a filled accent chip, is not reliably better: --on-accent is chosen to
   sit on --accent, and whether it also clears AA on --accent-dk depends on
   the palette (white on the orange one does, near-black on the green one does
   not). --accent-dk as INK on the --ink3 chip clears AA on every shipped
   palette, so the badge is a tinted chip with an accent edge rather than a
   fill. Covers the single product page too, which the loop-scoped rule did
   not reach — that was the olive badge showing through. */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale,
.woocommerce div.product span.onsale{
  background:var(--promo, var(--ink3)); color:var(--on-promo, var(--accent-dk));
  border:1px solid var(--promo, var(--accent-dk)); border-radius:999px;
  font-family:var(--sans); font-weight:700; font-size:12.5px; letter-spacing:.03em;
  min-height:0; min-width:0; padding:5px 13px; line-height:1; margin:0;
  text-shadow:none;
}
.woocommerce div.product span.onsale{ top:14px; left:14px; right:auto; }

/* The remove cross is decoration, not an error: Woo paints it
   var(--wc-red)!important, which only !important can beat. */
.woocommerce a.remove{
  color:var(--promo-text, var(--dim))!important; background:var(--ink3);
  border-radius:999px; font-weight:400; text-decoration:none;
}
.woocommerce a.remove:hover{
  background:var(--accent2); color:var(--on-accent2)!important;
}

/* A required marker is a label, not a warning. Woo's red asterisk was the
   loudest thing on the checkout form. */
/* The required marker had been borrowing --accent-dk, the link colour. */
.woocommerce .required,
.woocommerce abbr.required,
.woocommerce form .form-row .required{
  color:var(--promo-text, var(--accent-dk)); border:0; text-decoration:none; font-weight:700;
}
.woocommerce .optional{ color:var(--dimmer); }

/* Old price next to a sale price. Both were rendered at the full price size,
   so a struck-through number competed with the one the shopper should read. */
.woocommerce del,
.woocommerce .price del,
.woocommerce div.product p.price del,
.woocommerce ul.products li.product .price del{
  color:var(--dimmer); font-size:.68em; font-weight:400; opacity:1; margin-right:8px;
}
/* --promo-bold is emitted only with the sale colour, so without the role
   the weight is inherited exactly as before. */
.woocommerce ins,
.woocommerce .price ins{
  text-decoration:none; background:transparent;
  color:var(--promo-text, inherit); font-weight:var(--promo-bold, inherit);
}

/* Store notice — the bar Woo pins across the top of every page. #720EEC. */
.woocommerce-store-notice,
p.demo_store{
  background:var(--cream); color:var(--ink);
  font-family:var(--sans); font-size:15px; box-shadow:none;
}
.woocommerce-store-notice a,
p.demo_store a{ color:var(--ink); text-decoration:underline; text-underline-offset:2px; }

/* Ratings: empty stars took Woo's lilac, filled ones its olive. */
.woocommerce .star-rating::before{ color:var(--line); }
/* The picker is a control, not a backdrop: --line is a hairline colour and
   left the five empty stars almost invisible on a light scheme. */
.woocommerce .comment-form-rating p.stars a::before{ color:var(--dim); }
.woocommerce .star-rating span,
.woocommerce p.stars:hover a::before,
.woocommerce p.stars.selected a.active::before,
.woocommerce p.stars.selected a:not(.active)::before{ color:var(--star); }

/* The tooltip on a checkout field was a bright blue speech bubble. */
.woocommerce form .form-row .woocommerce-input-wrapper .description{
  background:var(--cream); color:var(--ink); border-radius:10px;
}
.woocommerce form .form-row .woocommerce-input-wrapper .description a{ color:var(--ink); }
.woocommerce form .form-row .woocommerce-input-wrapper .description::before{
  border-top-color:var(--cream);
}

/* In stock and out of stock are already handled, deliberately, further up:
   in stock is quiet and out of stock is emphasised. Backorder is the one Woo
   state the theme never claimed, so it was still arriving in Woo's olive.
   Specificity matches the pair above, or it would not win either. */
.woocommerce div.product p.stock.available-on-backorder,
.woocommerce ul.products li.product .available-on-backorder{
  color:var(--dim); font-weight:600; font-size:15px;
}

/* Password strength meter: four WordPress-pink states. Kept distinguishable
   by tint rather than by four unrelated hues. */
.woocommerce-password-strength{
  border-radius:10px; border:1px solid var(--line); background:var(--ink3);
  color:var(--cream); font-size:14px; font-weight:600;
}
.woocommerce-password-strength.short,
.woocommerce-password-strength.bad{
  background:color-mix(in srgb, var(--cream) 8%, var(--ink3)); border-color:var(--line); color:var(--dim);
}
.woocommerce-password-strength.good{
  background:color-mix(in srgb, var(--accent) 12%, var(--ink3)); border-color:var(--line); color:var(--cream);
}
.woocommerce-password-strength.strong{
  background:color-mix(in srgb, var(--accent) 20%, var(--ink3)); border-color:var(--accent-dk); color:var(--cream);
}
.woocommerce-password-hint{ color:var(--dim); }

/* Error notices take the sale role too — it is the theme's one "pay attention"
   colour. Only when it is set; otherwise WooCommerce's own red stands. */
.woocommerce-error{ border-top-color:var(--promo, #b81c23); }
.woocommerce-error::before{ color:var(--promo, #b81c23); }
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select{
  border-color:var(--promo, var(--line));
}

/* ---------- AJAX add to cart (single product form) ----------
   The button keeps its own width while the label changes, or the whole
   summary column reflows twice on every add. min-width is set from the
   rendered label by the browser, so this only has to stop the shrink. */
.woocommerce div.product form.cart button.single_add_to_cart_button.is-loading,
.woocommerce div.product form.cart button.single_add_to_cart_button.is-added{
  position:relative;
}
.woocommerce div.product form.cart button.single_add_to_cart_button.is-loading{
  cursor:progress; opacity:.85;
}
/* The spinner is drawn in the label's own colour, so it inherits whatever the
   button tier resolved to rather than needing a token of its own. */
.woocommerce div.product form.cart button.single_add_to_cart_button.is-loading::after{
  content:""; position:absolute; top:50%; inset-inline-end:14px;
  width:14px; height:14px; margin-top:-7px; border-radius:50%;
  border:2px solid currentColor; border-top-color:transparent;
  animation:wpr-atc-spin .6s linear infinite;
}
@keyframes wpr-atc-spin{ to{ transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce){
  .woocommerce div.product form.cart button.single_add_to_cart_button.is-loading::after{
    animation:none; border-top-color:currentColor; opacity:.45;
  }
}
/* "Added" is a state, not a second button: same fill, so the only thing that
   moves is the word. A colour change here would read as a different control. */
.woocommerce div.product form.cart button.single_add_to_cart_button.is-added{
  cursor:default;
}
/* Error sits under the button, in the promotional role that already owns
   notices; #b81c23 is the same fallback .woocommerce-error uses. */
.woocommerce div.product form.cart .wpr-atc-error{
  flex-basis:100%; margin:10px 0 0; padding:0;
  font-family:var(--sans); font-size:14px; line-height:1.4;
  color:var(--promo-text, #b81c23);
}
.woocommerce div.product form.cart .wpr-atc-error[hidden]{ display:none; }

/* ---------- product grid on small screens (T12) ----------
   The theme's shared card grids collapse to one column at 900px, which is
   right for a feature card carrying a paragraph and wrong for a product tile
   carrying a photo and a price: it turns a phone shop into a column of
   full-width posters and puts the fourth product three screens down.

   Scoped to the product loop rather than fixing .wpr-grid-3 itself, because
   that class is shared with every other three-up grid in the theme and those
   DO want one column on a phone. All three widths are named so the override
   holds whichever column count the shop is set to. */
@media (max-width:900px){
  .woocommerce ul.products.wpr-grid-2,
  .woocommerce ul.products.wpr-grid-3,
  .woocommerce ul.products.wpr-grid-4{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:600px){
  .woocommerce ul.products.wpr-grid-2,
  .woocommerce ul.products.wpr-grid-3,
  .woocommerce ul.products.wpr-grid-4{ gap:12px; }
  /* 375px - 32px gutter - 12px gap = 165px a tile; the standard 20px padding
     leaves 125px for a product name, so it comes down with the gap. */
  .woocommerce ul.products li.product{ padding:12px; border-radius:14px; }
  .woocommerce ul.products li.product a img{ margin-bottom:10px; border-radius:8px; }
  /* Two lines, then ellipsis: a long name must not push the price and button
     of one tile out of line with its neighbour's. */
  .woocommerce ul.products li.product .woocommerce-loop-product__title{
    display:-webkit-box; -webkit-line-clamp:2; line-clamp:2;
    -webkit-box-orient:vertical; overflow:hidden;
    font-size:calc(var(--ts,1) * 15px); margin-bottom:6px;
  }
  /* <span class="price"> is inline, so the margin below it did nothing and
     the price shared a line with whatever followed. */
  .woocommerce ul.products li.product .price{ display:block; font-size:15px; margin-bottom:10px; }
  /* Overrides the align-self:flex-start that shrink-wraps the button on a
     wide screen, where a full-width button would look stranded. */
  .woocommerce ul.products li.product .button{
    align-self:stretch; width:100%; padding-inline:10px; font-size:14px;
  }
}

/* ---------- delivery and trust rows (T3) ----------
   A list, not a row of badges: these are sentences of different lengths and
   a badge row reflows into ragged columns the moment one of them wraps. */
.wpr-prodtrust{
  list-style:none; margin:18px 0 0; padding:16px; display:grid; gap:10px;
  background:var(--ink3); border:1px solid var(--line); border-radius:14px;
}
.wpr-prodtrust__row{
  display:flex; align-items:flex-start; gap:10px; margin:0; padding:0;
  font-family:var(--sans); font-size:14.5px; line-height:1.45; color:var(--text);
}
/* The icon keeps its box when the sentence wraps to a second line. */
.wpr-prodtrust__row svg{ flex:0 0 auto; width:18px; height:18px; margin-top:1px; color:var(--accent-dk); }
.wpr-prodtrust__wa{ color:var(--accent-dk); text-decoration:underline; text-underline-offset:2px; }
.wpr-prodtrust__wa:hover{ color:var(--cream); }
@media (max-width:600px){
  .wpr-prodtrust{ padding:14px; gap:9px; }
  .wpr-prodtrust__row{ font-size:14px; }
}

/* ---------- mobile sticky add-to-cart bar (T2) ----------
   Phone only: on a desktop the real button is rarely far from view and a
   pinned bar just eats the window. z-index sits under the cart drawer
   (9999) so opening the drawer covers it, and over the floating widgets at
   80 so it is never half-hidden by one. */
.wpr-stickyatc{
  position:fixed; inset-inline:0; bottom:0; z-index:90; display:none;
  background:var(--ink2); border-top:1px solid var(--line);
  box-shadow:0 -8px 24px -18px rgba(0,0,0,.4);
  padding:10px 16px calc(10px + env(safe-area-inset-bottom));
  transform:translateY(100%); transition:transform .22s ease;
}
.wpr-stickyatc.is-up{ transform:translateY(0); }
@media (prefers-reduced-motion: reduce){
  .wpr-stickyatc{ transition:none; }
}
@media (max-width:900px){
  .wpr-stickyatc{ display:block; }
  /* Reserve the bar's height, or the last line of the page sits under it. */
  body.wpr-stickyatc-on .wpr-foot{ padding-bottom:84px; }
}
.wpr-stickyatc[hidden]{ display:none; }
.wpr-stickyatc__inner{ display:flex; align-items:center; gap:12px; }
.wpr-stickyatc__img{
  width:44px; height:44px; flex:0 0 auto; border-radius:8px; object-fit:cover; display:block;
}
/* min-width:0 so a long product name can actually shrink instead of pushing
   the button off the end of the row. */
.wpr-stickyatc__text{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:1px; }
.wpr-stickyatc__name{
  font-family:var(--sans); font-size:13.5px; font-weight:600; color:var(--cream);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.wpr-stickyatc__meta{
  display:flex; align-items:baseline; gap:8px; min-width:0;
  font-family:var(--sans); font-size:13px; color:var(--dim);
}
.wpr-stickyatc__price{ color:var(--cream); font-weight:600; white-space:nowrap; }
.wpr-stickyatc__price del{ display:none; }   /* no room for two prices here */
.wpr-stickyatc__price ins{
  text-decoration:none; background:transparent; color:var(--promo-text, inherit);
}
.wpr-stickyatc__option{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* 48px tall and never narrower than a thumb, per the 44x44 target rule. */
.wpr-stickyatc__btn{
  flex:0 0 auto; min-height:48px; min-width:132px; padding:0 18px; border:0; cursor:pointer;
  border-radius:999px; font-family:var(--sans); font-size:15px; font-weight:600;
  background:var(--accent2, var(--accent)); color:var(--on-accent2, var(--on-accent));
}
@media (hover:hover){
  .wpr-stickyatc__btn:hover{
    background:var(--accent2-dk, var(--accent-dk)); color:var(--on-accent2-dk, var(--on-accent2));
  }
}
.wpr-stickyatc__btn.is-off,
.wpr-stickyatc__btn:disabled{
  background:var(--ink3); color:var(--dim); cursor:not-allowed;
}

/* ---------- checkout terms sentence (T8) ----------
   Sits under Place order, so it reads as a note on the button rather than
   another thing to do before pressing it. */
.woocommerce-checkout .wpr-checkout-terms{
  margin:12px 0 0; font-family:var(--sans); font-size:13px; line-height:1.5;
  color:var(--dim); text-align:center;
}
.woocommerce-checkout .wpr-checkout-terms a{
  color:var(--accent-dk); text-decoration:underline; text-underline-offset:2px;
}

/* ---------- checkout form quality (T7) ----------
   The message WooCommerce never prints. It already marks the row invalid and
   recolours the border; a colour alone says something is wrong but not what,
   and fails 1.4.1 Use of Colour on its own. */
.woocommerce-checkout .form-row .wpr-field-error{
  display:block; margin-top:6px; font-family:var(--sans); font-size:13.5px;
  line-height:1.4; color:var(--promo-text, #b81c23);
}
/* Woo's own invalid state is a red border; match it to the promotional role
   so a shop that set one does not get two different reds on one screen. */
.woocommerce-checkout .form-row.woocommerce-invalid input.input-text,
.woocommerce-checkout .form-row.woocommerce-invalid select,
.woocommerce-checkout .form-row.woocommerce-invalid textarea,
.woocommerce-checkout .form-row.woocommerce-invalid .select2-selection--single{
  border-color:var(--promo-text, #b81c23);
}

/* Place order while the totals move or the order goes in. Not `disabled`:
   a disabled button loses its accessible name in some screen readers and
   cannot be focused, so the reader loses their place. pointer-events keeps
   the second click from landing, aria-busy says why. */
.woocommerce-checkout #place_order.is-busy{
  position:relative; pointer-events:none; opacity:.72; cursor:progress;
}
.woocommerce-checkout #place_order.is-busy::after{
  content:""; position:absolute; top:50%; inset-inline-end:14px;
  width:14px; height:14px; margin-top:-7px; border-radius:50%;
  border:2px solid currentColor; border-top-color:transparent;
  animation:wpr-atc-spin .6s linear infinite;
}
@media (prefers-reduced-motion: reduce){
  .woocommerce-checkout #place_order.is-busy::after{
    animation:none; border-top-color:currentColor; opacity:.45;
  }
}

/* The grey wash WooCommerce drops over the whole form on every recalculation.
   The block itself is kept — it stops a shopper clicking Place order against
   a total that is about to change — but it no longer looks like the page has
   broken. The review table dims instead, which says "this number is moving"
   and nothing more. */
.woocommerce-checkout .blockUI.blockOverlay{
  background:transparent !important; opacity:1 !important;
}
.woocommerce-checkout .processing .shop_table,
.woocommerce-checkout .processing .woocommerce-checkout-review-order-table{
  opacity:.5; transition:opacity .15s ease;
}
@media (prefers-reduced-motion: reduce){
  .woocommerce-checkout .processing .shop_table,
  .woocommerce-checkout .processing .woocommerce-checkout-review-order-table{ transition:none; }
}

/* select2 keeps the original <select> in the page for screen readers, hidden
   behind `height:1px` and `overflow:hidden`. min-height beats height in the
   cascade regardless of !important, so the 48px floor above was inflating
   that invisible duplicate to 48px of absolutely-positioned nothing, sitting
   over whatever was beneath it. The floor is for controls a thumb can hit;
   this one is not on screen. */
.woocommerce form .form-row select.select2-hidden-accessible,
.woocommerce-page form .form-row select.select2-hidden-accessible{
  min-height:0;
}

/* ---------- focused checkout layout (T4) ----------
   Everything here is behind .wpr-checkout-focused, which only appears when
   the shop chooses the layout, so a site on the standard checkout is
   byte-identical to before. */

/* Slim header. The nav is absent from the markup rather than hidden, so this
   only has to space what remains. */
.wpr-nav--checkout .wpr-nav__inner{ justify-content:space-between; }
.wpr-nav__secure{
  display:inline-flex; align-items:center; gap:8px; margin:0;
  font-family:var(--sans); font-size:14px; font-weight:600; color:var(--dim);
}
.wpr-nav__secure svg{ width:18px; height:18px; color:var(--accent-dk); }

/* Two columns on a wide screen: the form, then a summary that stays with you.
   Grid rather than float so the summary can be sticky — a floated column
   cannot be, and Woo's own markup is floats. */
@media (min-width:901px){
  .wpr-checkout-focused form.checkout{
    display:grid; grid-template-columns:minmax(0,1fr) 380px;
    /* Column gap separates the two halves; the row gap only ever sits
       between the summary heading and its own card, where 48px reads as a
       mistake. */
    column-gap:clamp(24px,3vw,48px); row-gap:14px; align-items:start;
  }
  /* The span is the whole trick. Without `grid-row:1 / 3` the form
     auto-places into row 1, row 1 becomes as tall as the form — 818px on a
     real order — and the summary, pinned to row 2, lands that far BELOW its
     own heading with nothing in between. Spanning both rows lets the
     heading and the summary stack normally beside it. */
  .wpr-checkout-focused form.checkout > #customer_details{ grid-column:1; grid-row:1 / 3; }
  .wpr-checkout-focused form.checkout > #order_review_heading{
    grid-column:2; grid-row:1; margin:0;   /* row-gap does this now */
  }
  .wpr-checkout-focused form.checkout > #order_review{
    grid-column:2; grid-row:2;
    position:sticky; top:24px;
    background:var(--ink2); border:1px solid var(--line);
    border-radius:16px; padding:20px;
  }
  /* Anything a plugin adds to the form keeps the full width rather than
     being squeezed into whichever track it lands in. */
  .wpr-checkout-focused form.checkout > *:not(#customer_details):not(#order_review):not(#order_review_heading){
    grid-column:1 / -1;
  }
  .wpr-checkout-focused .col2-set .col-1,
  .wpr-checkout-focused .col2-set .col-2{ width:auto; float:none; }
}

/* The summary is one panel. Inside it the totals table and the payment
   block each draw a card of their own — correct on the standard checkout
   where they stand alone, three borders deep when nested in this one.

   Desktop only, and that matters: the outer card exists only above 901px.
   Applied everywhere, this stripped the payment block's own card on a phone
   and left it floating borderless on the page background. */
@media (min-width:901px){
  .wpr-checkout-focused #order_review table.shop_table{
    border:0; background:transparent; border-radius:0;
  }
  .wpr-checkout-focused #order_review #payment{
    border:0; background:transparent; border-radius:0; padding:16px 0 0; margin-top:16px;
    border-top:1px solid var(--line);
  }
}

/* Payment methods as cards, so the choice reads as a choice rather than a
   list of radio buttons. No gateway is named: whatever the shop has on. */
.wpr-checkout-focused .wc_payment_methods{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.wpr-checkout-focused .wc_payment_methods > li{
  margin:0; padding:14px 16px; border:1px solid var(--line); border-radius:12px;
  background:var(--ink2); transition:border-color .15s ease;
}
.wpr-checkout-focused .wc_payment_methods > li:has(input:checked){
  border-color:var(--accent2, var(--accent)); background:var(--ink3);
}
.wpr-checkout-focused .wc_payment_methods > li label{
  display:flex; align-items:center; gap:10px; margin:0; cursor:pointer;
  font-family:var(--sans); font-size:15px; font-weight:600; color:var(--cream);
}
.wpr-checkout-focused .wc_payment_methods > li input[type="radio"]{
  width:20px; height:20px; flex:0 0 auto; accent-color:var(--accent2, var(--accent));
}
.wpr-checkout-focused .wc_payment_methods .payment_box{
  margin:10px 0 0; font-size:14px; line-height:1.5;
}

/* Place order: full width, and on a phone it stays on screen once you are in
   the payment block. position:sticky rather than a second fixed button, so
   there is only ever one Place order on the page to tab to or mis-tap. */
.wpr-checkout-focused #place_order{ width:100%; display:block; }
@media (max-width:900px){
  .wpr-checkout-focused #payment .place-order{
    position:sticky; bottom:0; z-index:5;
    margin:0 -16px -16px; padding:12px 16px calc(12px + env(safe-area-inset-bottom));
    background:var(--ink); border-top:1px solid var(--line);
  }
}

/* The collapsed summary, phone only. The bar carries the total so it is
   readable without opening anything, which is the point of it. */
.wpr-cosummary{
  margin:0 0 18px; border:1px solid var(--line); border-radius:14px;
  background:var(--ink2); overflow:hidden;
}
.wpr-cosummary[hidden]{ display:none; }
.wpr-cosummary__toggle{
  display:flex; width:100%; align-items:center; justify-content:space-between; gap:12px;
  min-height:52px; padding:14px 16px; border:0; background:transparent; cursor:pointer;
  font-family:var(--sans); font-size:15px; color:var(--accent-dk); text-align:start;
}
.wpr-cosummary__label{ display:inline-flex; align-items:center; gap:7px; font-weight:600; }
.wpr-cosummary__label::after{
  content:""; width:8px; height:8px; border-right:2px solid currentColor;
  border-bottom:2px solid currentColor; transform:rotate(45deg) translate(-2px,-2px);
}
.wpr-cosummary__toggle[aria-expanded="true"] .wpr-cosummary__label::after{
  transform:rotate(-135deg) translate(-2px,-2px);
}
.wpr-cosummary__total{ font-weight:700; font-size:16px; color:var(--cream); white-space:nowrap; }
.wpr-cosummary__body{ padding:0 16px 16px; }
.wpr-cosummary__body[hidden]{ display:none; }
.wpr-cosummary__body table{ margin:0; }
/* The coupon toggle moves in here, where a discount code belongs. */
.wpr-cosummary__body .woocommerce-form-coupon-toggle{ margin-top:12px; }
.wpr-cosummary__body .woocommerce-info{ margin:0; padding:0; background:none; border:0; font-size:14px; }
@media (min-width:901px){
  .wpr-cosummary{ display:none; }
}

/* The two toggles WooCommerce renders as full notice boxes — "Returning
   customer?" and "Have a coupon?" — become one-line links. As boxes they cost
   95px each at the top of a phone checkout for one sentence nobody is looking
   for, which is 95px the first field could have had. Scoped to the toggles,
   so a real notice (an error, a stock warning) keeps its box. */
.wpr-checkout-focused .woocommerce-form-login-toggle .woocommerce-info,
.wpr-checkout-focused .woocommerce-form-coupon-toggle .woocommerce-info{
  margin:0 0 10px; padding:0; border:0; background:none; min-height:0;
  font-family:var(--sans); font-size:14px; line-height:1.45; color:var(--dim);
}
.wpr-checkout-focused .woocommerce-form-login-toggle .woocommerce-info::before,
.wpr-checkout-focused .woocommerce-form-coupon-toggle .woocommerce-info::before{
  content:none;
}
.wpr-checkout-focused .woocommerce-form-login-toggle .woocommerce-info a,
.wpr-checkout-focused .woocommerce-form-coupon-toggle .woocommerce-info a{
  color:var(--accent-dk); text-decoration:underline; text-underline-offset:2px;
}

/* Close the gap the page furniture leaves above the form. The title block and
   the prose rhythm are sized for an article; a checkout is a form, and every
   pixel here is one the first field does not get on a phone. */
.wpr-checkout-focused .wpr-head{ margin-bottom:18px; }
.wpr-checkout-focused .wpr-prose > * + *{ margin-top:0.6em; }
.wpr-checkout-focused #customer_details h3,
.wpr-checkout-focused #order_review_heading{ margin-top:0; font-size:calc(var(--ts,1) * 20px); }
@media (max-width:900px){
  .wpr-checkout-focused .wpr-section{ padding-top:20px; }
}

/* ---------- free-delivery progress (T16) ---------- */
.wpr-freeship{
  margin:0 0 14px; padding:12px 14px; border-radius:12px;
  background:var(--ink3); border:1px solid var(--line);
}
.wpr-freeship__text{
  margin:0 0 8px; font-family:var(--sans); font-size:14px; line-height:1.45; color:var(--text);
}
.wpr-freeship__text .amount{ font-weight:700; color:var(--cream); }
.wpr-freeship__track{
  height:6px; border-radius:999px; background:var(--line); overflow:hidden;
}
.wpr-freeship__fill{
  display:block; height:100%; border-radius:999px;
  background:var(--accent2, var(--accent));
  transition:width .25s ease;
}
/* Done is a different statement, not a louder one: the sale colour already
   means "a deal" everywhere else in the theme. */
.wpr-freeship.is-done{ border-color:var(--promo, var(--accent2, var(--accent))); }
.wpr-freeship.is-done .wpr-freeship__fill{ background:var(--promo, var(--accent2, var(--accent))); }
@media (prefers-reduced-motion: reduce){
  .wpr-freeship__fill{ transition:none; }
}

/* ---------- cart page (T17) ----------
   Two columns on a wide screen: the items, then a summary that stays put.
   Grid on the .woocommerce wrapper rather than floats, for the same reason
   as the checkout — a floated column cannot be sticky. Anything else in
   there (notices, the empty-cart band) spans both tracks, so a child this
   does not know about can never land in the summary column. */
@media (min-width:901px){
  .woocommerce-cart .woocommerce{
    display:grid; grid-template-columns:minmax(0,1fr) 360px;
    gap:clamp(24px,3vw,44px); align-items:start;
  }
  .woocommerce-cart .woocommerce > form.woocommerce-cart-form{ grid-column:1; }
  .woocommerce-cart .woocommerce > .cart-collaterals{
    grid-column:2; position:sticky; top:24px; width:auto;
  }
  .woocommerce-cart .woocommerce > *:not(form.woocommerce-cart-form):not(.cart-collaterals){
    grid-column:1 / -1;
  }
}
/* One column on a phone, with the summary and Checkout straight after the
   items rather than below whatever else the page carries. */
@media (max-width:900px){
  .woocommerce-cart .woocommerce > .cart-collaterals{ margin-top:20px; }
}
.woocommerce-cart .cart-collaterals .cart_totals{
  background:var(--ink2); border:1px solid var(--line); border-radius:16px; padding:18px;
}
.woocommerce-cart .cart-collaterals .cart_totals > h2{ margin:0 0 12px; font-size:calc(var(--ts,1) * 20px); }
.woocommerce-cart .wc-proceed-to-checkout .checkout-button{ width:100%; text-align:center; }

/* Updating. The rows stay readable and stay put — a spinner that replaces
   the table makes the page jump by the height of the cart. */
.wpr-cart-busy{ opacity:.55; pointer-events:none; transition:opacity .15s ease; }
@media (prefers-reduced-motion: reduce){ .wpr-cart-busy{ transition:none; } }

/* The coupon, behind a link. */
.wpr-coupon-toggle{
  display:inline-block; margin:0 0 10px; padding:0; border:0; background:none; cursor:pointer;
  font-family:var(--sans); font-size:14px; color:var(--accent-dk);
  text-decoration:underline; text-underline-offset:2px;
}
.woocommerce-cart .woocommerce-cart-form .coupon[hidden]{ display:none; }
.woocommerce-cart .woocommerce-cart-form .coupon{
  display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:12px;
}
.woocommerce-cart .woocommerce-cart-form .coupon input.input-text{ flex:1 1 180px; min-width:0; }

/* Empty cart: the suggestions band sits inside a page that already has its
   own padding, so it does not need a section's worth of its own. */
.wpr-cart-empty-grid{ padding-top:clamp(28px,4vw,44px); padding-bottom:0; }

/* ---------- product gallery (T18) ----------
   WooCommerce's own gallery is already in play — the theme declares slider,
   zoom and lightbox support, so flexslider handles the swipe and PhotoSwipe
   handles full screen and pinch zoom. None of that is reimplemented here.
   What was missing was everything you can see.

   SPECIFICITY. Every rule below carries `div.images`, and most carry one
   element more than that. WooCommerce's own gallery rules are
   `.woocommerce div.product div.images …` — (0,4,2) for the trigger, (0,4,3)
   for a control item, (0,4,4) for its image — and its stylesheet loads after
   the theme's. A rule written without `div.images` is (0,3,n) and loses
   silently: the first version of this block set the dots to 9px and they
   rendered at 84px, because Woo's `width:25%` was still in charge. */

/* A stable box, so swiping between a square photo and a portrait one does
   not change the height of the page under your thumb. object-fit:contain
   rather than cover: a crop would silently remove part of a photograph the
   shop chose, and letterboxing is the honest failure. Shops on WooCommerce's
   default 1:1 product images — most of them — see no change at all. */
.woocommerce div.product div.images .woocommerce-product-gallery__image{
  aspect-ratio:1 / 1; background:var(--ink2); border-radius:14px; overflow:hidden;
}
.woocommerce div.product div.images .woocommerce-product-gallery__image img{
  width:100%; height:100%; object-fit:contain; display:block;
}
.woocommerce div.product div.images{ position:relative; margin-bottom:1.5em; }

/* The full-screen trigger. Woo draws the magnifier with a ::before and hides
   the text at -9999px, so only the box is resized here — 36px is under the
   44px a thumb needs. (0,4,3) against Woo's (0,4,2). */
.woocommerce div.product div.images a.woocommerce-product-gallery__trigger,
.woocommerce div.product div.images button.woocommerce-product-gallery__trigger{
  width:44px; height:44px; top:12px; right:12px;
  background:var(--ink2); border:1px solid var(--line);
  box-shadow:0 2px 8px -4px rgba(0,0,0,.3);
}
.woocommerce div.product div.images a.woocommerce-product-gallery__trigger::before,
.woocommerce div.product div.images button.woocommerce-product-gallery__trigger::before{
  border-color:var(--cream); left:13px; top:13px;
}

/* ---- the control strip ----
   One control in the markup, shown two ways. WooCommerce hardcodes
   flexslider's controlNav to "thumbnails", and that setting is not
   responsive — so rather than fight it with a filter and lose thumbnails on
   desktop, the same list is restyled as dots on a phone. Clicking and
   keyboard focus keep working because the element itself is untouched. */
.woocommerce div.product div.images ol.flex-control-thumbs{
  display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 0; padding:0; list-style:none; float:none;
}
.woocommerce div.product div.images ol.flex-control-thumbs li{
  margin:0; padding:0; float:none; flex:0 0 auto;
}

/* Desktop: real thumbnails. (0,4,4) and (0,4,5), both over Woo's. */
@media (min-width:601px){
  .woocommerce div.product div.images ol.flex-control-thumbs li{ width:72px; height:72px; }
  .woocommerce div.product div.images ol.flex-control-thumbs li img{
    width:72px; height:72px; object-fit:cover; display:block; cursor:pointer;
    border-radius:10px; border:1px solid var(--line); opacity:.72;
    transition:opacity .15s ease, border-color .15s ease;
  }
  .woocommerce div.product div.images ol.flex-control-thumbs li img.flex-active,
  .woocommerce div.product div.images ol.flex-control-thumbs li img:hover{
    opacity:1; border-color:var(--accent);
  }
}

/* Phone: the same list as dots. The image is made transparent rather than
   display:none — a hidden image leaves the accessibility tree and takes its
   click target with it, and the dot is the control. */
@media (max-width:600px){
  .woocommerce div.product div.images ol.flex-control-thumbs{
    justify-content:center; gap:8px; margin-top:14px;
  }
  .woocommerce div.product div.images ol.flex-control-thumbs li{
    width:10px; height:10px; min-width:10px; border-radius:50%; overflow:hidden;
    background:var(--line); transition:background-color .15s ease;
  }
  .woocommerce div.product div.images ol.flex-control-thumbs li img{
    width:100%; height:100%; opacity:0; display:block; cursor:pointer; border-radius:50%;
  }
  .woocommerce div.product div.images ol.flex-control-thumbs li:has(img.flex-active){
    background:var(--accent-dk);
  }
}
@media (prefers-reduced-motion: reduce){
  .woocommerce div.product div.images ol.flex-control-thumbs li,
  .woocommerce div.product div.images ol.flex-control-thumbs li img{ transition:none; }
}

/* The header search panel renders on every page, not just shop pages, so
   its styling lives in wpr.css — this file is only enqueued where a shop
   page or a product block needs it. See .wpr-search there. */

/* ---------- category chips and filters (T15) ---------- */
.wpr-shopfilters{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
  margin:0 0 18px; position:relative;
}

/* A scroller, not a wrap: eight categories wrapping to three rows pushes the
   products off a phone screen before anyone has chosen one. */
.wpr-chips{
  flex:1 1 auto; min-width:0; display:flex; gap:8px;
  overflow-x:auto; overscroll-behavior-x:contain;
  scrollbar-width:none; -ms-overflow-style:none;
  padding-bottom:2px; scroll-snap-type:x proximity;
}
.wpr-chips::-webkit-scrollbar{ display:none; }
.wpr-chip-link{
  flex:0 0 auto; scroll-snap-align:start;
  display:inline-flex; align-items:center; min-height:40px; padding:0 15px;
  border-radius:999px; border:1px solid var(--line); background:var(--ink2);
  font-family:var(--sans); font-size:14.5px; font-weight:600; color:var(--text);
  text-decoration:none; white-space:nowrap;
}
@media (hover:hover){
  .wpr-chip-link:hover{ border-color:var(--accent); color:var(--cream); }
}
.wpr-chip-link.is-current{
  background:var(--accent2, var(--accent)); border-color:var(--accent2, var(--accent));
  color:var(--on-accent2, var(--on-accent));
}

.wpr-filters__open{
  flex:0 0 auto; min-height:40px; padding:0 16px; cursor:pointer;
  border-radius:999px; border:1px solid var(--line); background:var(--ink2);
  font-family:var(--sans); font-size:14.5px; font-weight:600; color:var(--text);
}
/* A dot, so "filters are on" is visible without opening the sheet. */
.wpr-filters__open.is-active{ border-color:var(--accent2, var(--accent)); color:var(--cream); }
.wpr-filters__open.is-active::after{
  content:""; display:inline-block; width:7px; height:7px; margin-inline-start:7px;
  border-radius:50%; background:var(--accent2, var(--accent)); vertical-align:middle;
}

.wpr-filters{
  display:none; gap:14px; align-items:flex-end; flex-wrap:wrap;
  width:100%; padding:14px; border:1px solid var(--line); border-radius:14px;
  background:var(--ink2);
}
.wpr-shopfilters.is-open .wpr-filters{ display:flex; }
.wpr-filters__head{ display:none; }
.wpr-filters__check{
  display:inline-flex; align-items:center; gap:8px; min-height:44px;
  font-family:var(--sans); font-size:15px; color:var(--text); cursor:pointer;
}
.wpr-filters__check input{ width:20px; height:20px; accent-color:var(--accent2, var(--accent)); }
.wpr-filters__price{ display:flex; align-items:center; gap:8px; border:0; margin:0; padding:0; }
.wpr-filters__price legend{
  font-family:var(--sans); font-size:13px; color:var(--dim); padding:0; margin-bottom:4px;
}
.wpr-filters__price input{
  width:92px; min-height:44px; padding:0 10px; border-radius:10px;
  border:1px solid var(--line); background:var(--ink); color:var(--text);
  font-family:var(--sans); font-size:16px;
}
.wpr-filters__actions{ display:flex; align-items:center; gap:12px; }
.wpr-filters__clear{
  font-family:var(--sans); font-size:14px; color:var(--accent-dk);
  text-decoration:underline; text-underline-offset:2px;
}
.wpr-shopfilters__status{
  flex:1 1 100%; margin:0; font-family:var(--sans); font-size:13.5px; color:var(--dim);
}
.wpr-shopfilters__status:empty{ display:none; }
/* The grid stays in place and dims. Replacing it with a spinner collapses
   the page to nothing and throws the scroll position away. */
body.wpr-shop-loading ul.products{ opacity:.45; transition:opacity .15s ease; }
@media (prefers-reduced-motion: reduce){
  body.wpr-shop-loading ul.products{ transition:none; }
}

/* Phone: the filter is a sheet rather than a row, because a price range and
   a checkbox laid out inline leave no room for either. */
@media (max-width:600px){
  .wpr-shopfilters.is-open .wpr-filters{
    position:fixed; inset:auto 0 0 0; z-index:95; display:block;
    border-radius:16px 16px 0 0; border-bottom:0;
    padding:16px 16px calc(16px + env(safe-area-inset-bottom));
    box-shadow:0 -12px 40px -20px rgba(0,0,0,.5); max-height:80vh; overflow-y:auto;
  }
  .wpr-shopfilters.is-open .wpr-filters__head{
    display:flex; align-items:center; justify-content:space-between; margin-bottom:10px;
    font-family:var(--sans); color:var(--cream);
  }
  .wpr-filters__close{
    width:44px; height:44px; border:0; background:none; color:var(--dim); cursor:pointer;
  }
  .wpr-filters__price{ margin:10px 0; }
  .wpr-filters__price input{ flex:1 1 0; width:auto; }
  .wpr-filters__actions{ margin-top:14px; }
  .wpr-filters__actions .wpr-btn{ flex:1 1 auto; justify-content:center; }
}

/* ---------- product sections as an accordion (T19) ----------
   <details>/<summary>, so this is open/close, focus and keyboard support
   with no script. The only thing CSS has to do is stop it looking like a
   browser default. */
/* clear:both is load-bearing. On a desktop WooCommerce floats the gallery
   left and the summary right, and neither the plugin nor this theme clears
   after them — Woo's own tabs escape it only by accident, because
   `overflow:hidden` on ul.tabs makes that element a block formatting
   context, which cannot overlap a float. The accordion has no such
   property, so without this it starts level with the gallery and its first
   panel's text runs through the product images and the summary beside them. */
.wpr-prodsections{
  clear:both; display:flow-root;
  margin:clamp(28px,4vw,48px) 0 0; border-top:1px solid var(--line);
}
.wpr-prodsection{ border-bottom:1px solid var(--line); }
.wpr-prodsection__head{
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  min-height:56px; padding:14px 2px; cursor:pointer; list-style:none;
  font-family:var(--serif); font-size:calc(var(--ts,1) * 19px); color:var(--cream);
}
/* Both are needed: WebKit uses the pseudo-element, everyone else the
   display:list-item default. Removing one marker and leaving the other is
   how you end up with a triangle on exactly one browser. */
.wpr-prodsection__head::-webkit-details-marker{ display:none; }
.wpr-prodsection__head::marker{ content:""; }
@media (hover:hover){
  .wpr-prodsection__head:hover{ color:var(--accent-dk); }
}
.wpr-prodsection__head:focus-visible{
  outline:2px solid var(--accent); outline-offset:3px; border-radius:6px;
}
/* The chevron is drawn rather than iconised, so it can rotate with the
   open state without any script to keep the two in step. */
.wpr-prodsection__head::after{
  content:""; flex:0 0 auto; width:9px; height:9px; margin-inline-end:6px;
  border-right:2px solid currentColor; border-bottom:2px solid currentColor;
  transform:rotate(45deg) translate(-2px,-2px);
  transition:transform .18s ease;
}
.wpr-prodsection[open] > .wpr-prodsection__head::after{
  transform:rotate(-135deg) translate(-2px,-2px);
}
@media (prefers-reduced-motion: reduce){
  .wpr-prodsection__head::after{ transition:none; }
}
.wpr-prodsection__body{ padding:0 2px 22px; }
.wpr-prodsection__body > :first-child{ margin-top:0; }
.wpr-prodsection__body > :last-child{ margin-bottom:0; }
/* Woo's own heading inside the description panel repeats the summary. */
.wpr-prodsection__body > h2:first-child{ display:none; }
.wpr-prodsection__body table.shop_attributes{ margin:0; }
/* Reviews set to stay visible: a panel with no summary and nothing to click.
   It keeps the accordion's rhythm — same rule above it, same side padding —
   so it reads as the last section rather than something bolted on. */
.wpr-prodsection--static{ padding:22px 2px; }
.wpr-prodsection--static > :first-child{ margin-top:0; }
.wpr-prodsection--static > :last-child{ margin-bottom:0; }
