/* v2 restyle of the WooCommerce product page (rr-product.css keeps the layout and plugin hooks; this file sets the
   worker-led look: charcoal, Montserrat/Poppins, tight corners, family colour accent from the body class). */
.rr-pdp {
  --ink: #1a1a1a; --ink-2: #5e6871; --muted: #5e6871; --line: #ddd8ce; --soft: #f3f1ec; --soft-2: #ece8e0;
  --brand: #1a1a1a; --brand-dark: #000; --brand-tint: #fbfaf7; --sun: var(--c); --sun-tint: #fff6df;
  --radius: 4px; --radius-sm: 2px;
  font-family: var(--text); font-size: 16px; color: var(--char);
}
.rr-pdp .rr-wrap { max-width: var(--wrap); padding: 0 var(--gut); }

/* Buy box */
.rr-pdp .rr-buy { position: relative; }
.rr-pdp .rr-eyebrow, .rr-pdp .rr-eyebrow a { font: 600 12px/1.2 var(--display) !important; letter-spacing: .18em; text-transform: uppercase; color: var(--steel) !important; text-decoration: none; }
.rr-pdp .rr-eyebrow::before { background: var(--c) !important; width: 6px !important; height: 18px !important; border-radius: 0 !important; }
.rr-pdp .rr-title { font: 800 clamp(30px, 3vw, 42px)/1.05 var(--display) !important; text-transform: uppercase; letter-spacing: -.005em; }
.rr-pdp .rr-rating .star-rating span::before, .rr-pdp .star-rating span::before { color: #e3a008; }
.rr-pdp .rr-price, .rr-pdp .rr-price .wc-block-components-product-price { font: 800 34px/1 var(--display) !important; color: var(--char) !important; }
.rr-pdp .rr-price del { font-size: 17px; color: var(--mist); font-weight: 400; }
.rr-pdp .rr-lede, .rr-pdp .rr-lede p { font-size: 16.5px; line-height: 1.6; color: #33393e; }
.rr-pdp .rr-step-label, .rr-pdp .rr-sizes__group { font: 700 11px/1 var(--display) !important; letter-spacing: .16em; text-transform: uppercase; }
.rr-pdp .rr-size { border-radius: 2px; }
.rr-pdp .rr-size.is-active { border-color: var(--char); box-shadow: inset 0 0 0 1px var(--char); background: #fbfaf7; }
.rr-pdp .rr-atc .quantity { border-radius: 2px !important; }
.rr-pdp .rr-atc .quantity input.qty { font: 700 16px var(--text) !important; }
.rr-pdp .rr-atc .single_add_to_cart_button { background: var(--char) !important; border-radius: var(--r) !important; height: 56px;
  font: 700 13px/1 var(--display) !important; letter-spacing: .14em !important; text-transform: uppercase; }
.rr-pdp .rr-atc .single_add_to_cart_button:hover { background: #000 !important; }
.rr-pdp .rr-subctas .rr-btn { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; height: auto; padding: 10px 14px; line-height: 1.25 !important; white-space: normal; }
.rr-pdp .rr-btn { border-radius: var(--r) !important; font: 700 11.5px/1 var(--display) !important; letter-spacing: .14em; text-transform: uppercase; }
.rr-pdp .rr-btn--ghost { border: 1px solid var(--char) !important; color: var(--char) !important; background: transparent !important; }
.rr-pdp .rr-btn--ghost:hover { background: var(--paper) !important; }
.rr-pdp .rr-trust svg { color: var(--char); }
.rr-pdp .rr-slot__head { font: 700 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; background: var(--paper); }

/* Gallery: fill the column (the WooCommerce gallery block caps itself at the 512px image setting) */
.rr-pdp .rr-gallery .wp-block-woocommerce-product-image-gallery, .rr-pdp .rr-gallery .woocommerce-product-gallery, .rr-pdp .rr-gallery .flex-viewport { max-width: none !important; width: 100% !important; }
.rr-pdp .rr-gallery .woocommerce-product-gallery__image:first-child, .rr-pdp .rr-gallery .flex-viewport { border-radius: 0; border-color: transparent; background: #f6f5f2; }
.rr-pdp .rr-gallery .woocommerce-product-gallery__image img { mix-blend-mode: multiply; }
.rr-pdp .rr-gallery .flex-control-thumbs img { border-radius: 0 !important; }

/* Sections from the old template */
.rr-pdp .rr-band h2, .rr-pdp .rr-details .woocommerce-Tabs-panel h2 { font: 800 clamp(24px, 2.6vw, 34px)/1.05 var(--display); text-transform: uppercase; }
.rr-pdp .rr-details .wc-tabs li a { font: 700 12px/1 var(--display) !important; letter-spacing: .14em; text-transform: uppercase; }
.rr-pdp .rr-details .wc-tabs li.active { box-shadow: inset 0 -3px 0 var(--c); }
.rr-pdp .rr-band--soft { background: var(--paper); }
.rr-pdp .rr-docs a::before { background: var(--char); border-radius: 0; }
.rr-pdp .rr-ups li.product .button { background: var(--char) !important; border-radius: var(--r) !important; }

/* v2 story sections inside the product template (partials/product-*.html) */
.rr-story .h2 { margin: 0 0 14px; line-height: 1; font: 800 clamp(28px, 3.4vw, 44px)/1 var(--display); }
.rr-story .band--ink { background: var(--ink); color: var(--white); }
.rr-story .split.band--ink .split__txt { background: var(--ink); }
.rr-story .faq summary { font: 700 16px/1.35 var(--text); text-transform: none; }

/* Sticky add to cart */
.rr-sticky button { background: var(--char) !important; border-radius: var(--r) !important; font: 700 12px/1 var(--display) !important; letter-spacing: .14em; text-transform: uppercase; }

/* The hidden variations table must not widen the page on phones (it is visually hidden, the size tiles drive it). */
table.rr-visually-hidden { display: block; max-width: 1px; }

/* ---------- Key Ingredients section (2026-10-12; inc/product-info.php rr_ki_section) ----------
   Desktop: up to 4 cards in a row (5-6 wrap). Under 860px: a horizontal swipe row with scroll-snap and a peek of the
   next card, no JS needed. Photos are square; until they exist, a family-colour circle with a line icon stands in. */
.rr-ki { background: var(--white); }
.rr-ki__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rr-ki__list[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rr-ki__list[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; }
.rr-ki__card { background: var(--paper); border-top: 4px solid var(--c); padding: 22px 22px 18px; display: flex; flex-direction: column; min-width: 0; }
.rr-ki__media { aspect-ratio: 1 / 1; margin: 0 0 18px; overflow: hidden; border-radius: 50%; background: var(--stone); width: 100%; max-width: 220px; align-self: center; }
.rr-ki__media img { width: 100%; height: 100%; object-fit: cover; }
.rr-ki__media--ph { display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff 0 18%, color-mix(in srgb, var(--c) 22%, #fff) 60%, color-mix(in srgb, var(--c) 38%, #fff) 100%); }
.rr-ki__ph { color: color-mix(in srgb, var(--c) 70%, #1a1a1a); }
.rr-ki__ph svg { width: 64px; height: 64px; stroke-width: 1.2; }
.rr-ki__tag { font: 600 10.5px/1.3 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--steel); margin: 0 0 6px; }
.rr-ki__name { font: 800 18px/1.2 var(--display); text-transform: uppercase; margin: 0 0 8px; }
.rr-ki__pct { display: inline-block; font: 700 12px/1 var(--display); letter-spacing: .06em; background: var(--char); color: var(--white); padding: 5px 7px; border-radius: 2px; vertical-align: 3px; margin-left: 4px; }
.rr-ki__line { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: #33393e; }
.rr-ki__more { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.rr-ki__more summary { cursor: pointer; font: 700 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.rr-ki__more summary::-webkit-details-marker { display: none; }
.rr-ki__more summary::after { content: '+'; font-size: 18px; line-height: 1; }
.rr-ki__more[open] summary::after { content: '\2212'; }
.rr-ki__more summary:focus-visible, .rr-ki a:focus-visible { outline: 2px solid var(--char); outline-offset: 3px; }
.rr-ki__more p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--steel); }
.rr-ki__also { margin: 22px 0 0; font-size: 14.5px; color: var(--steel); }
.rr-ki__also b { font: 700 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--char); margin-right: 8px; }
.rr-ki__cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 24px 28px; background: var(--ink); color: var(--white); }
.rr-ki__cta p { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.rr-ki__cta b { font: 800 20px/1.15 var(--display); text-transform: uppercase; }
.rr-ki__cta span { color: #cfd4d8; font-size: 15px; }
.rr-ki__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.rr-ki__cta .btn--solid { background: var(--white); color: var(--char); }
.rr-ki__cta .btn--solid:hover { background: var(--paper); }
.rr-ki__cta .btn--ghost { color: var(--white); }
.rr-ki__note { margin: 14px 0 0; font-size: 12.5px; color: var(--steel); }
@media (max-width: 1100px) { .rr-ki__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rr-ki__list[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .rr-ki__list, .rr-ki__list[data-count] { display: flex; grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 10px; scroll-padding: 0 var(--gut); -webkit-overflow-scrolling: touch; }
  .rr-ki__card { flex: 0 0 78%; scroll-snap-align: start; padding: 18px 18px 14px; }
  .rr-ki__list[data-count="1"] .rr-ki__card { flex-basis: 100%; }
  .rr-ki__media { max-width: 180px; }
  .rr-ki__cta { padding: 20px; }
  .rr-ki__btns, .rr-ki__btns .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .rr-ki__list { scroll-behavior: auto; } }

/* 0.3.71 phones could pan sideways on product pages: the visually-hidden .sr text inside each Key Ingredients
   "More" summary is absolutely positioned, and with a static swipe row its containing block sat outside the row,
   so it escaped the row's overflow clipping and widened the page to ~835px. Make the row the containing block. */
.rr-ki__list { position: relative; }
