/*
Theme Name: WR Peptides
Theme URI: https://WR Peptides.to
Author: WR Peptides
Description: Custom WooCommerce theme for WR Peptides.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: summit
Tags: e-commerce, custom-colors, custom-menu, featured-images
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --accent: #A8DDE6;
  --accent-soft: #B2E4EC;
  --accent-hover: #8FD3DF;
  --accent-ink: #26707C;
  --accent-wash: rgba(168, 221, 230, .14);
  --black: #000;
  --ink: #0b0b0b;
  --body: #111;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --line-dark: #2a2a2a;
  --card: #141414;
  --band: #B2E4EC;
  --band-soft: #EAF7FA;
  --surface: #f5f5f5;
  --white: #fff;
  --green: #1f9d55;
  --radius-sm: 5px;
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1280px;
  --gutter: 40px;
  --topbar-h: 42px;
  --header-h: 92px;
  --font: "Instrument Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 18px 40px rgba(0, 0, 0, .08);
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Preview the alternative font with ?font=inter */
body.font-inter {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(34px, 4vw, 54px); }
h2 { font-size: clamp(28px, 3.2vw, 42px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
h4 { font-size: 18px; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important;
  width: 1px; word-wrap: normal !important;
}

.skip-link:focus {
  background: #fff; clip: auto; clip-path: none; color: #000; display: block;
  font-size: 14px; height: auto; left: 12px; padding: 12px 18px; top: 12px;
  width: auto; z-index: 100000;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide { max-width: 1509px; padding-inline: 35px; }

.section { padding-block: clamp(56px, 7vw, 96px); }
.section--tight { padding-block: clamp(40px, 4vw, 60px); }

/* Homepage: Our Vision leads straight into Best Sellers, so the gap between
   the two blocks is trimmed. Best Sellers hands straight over to Shop by
   Category, so that seam is trimmed from both sides. */
.section--vision { padding-bottom: clamp(26px, 3vw, 44px); }
.section--bestsellers { padding-top: clamp(26px, 3vw, 44px); padding-bottom: clamp(20px, 2.5vw, 32px); }
.section--categories { padding-top: clamp(26px, 3vw, 44px); }

.eyebrow {
  display: block;
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  text-transform: capitalize;
  letter-spacing: 0;
}

.eyebrow--accent { color: var(--accent-soft); }
.eyebrow--plain { text-transform: uppercase; font-size: 16px; letter-spacing: .06em; }

.lede { color: var(--muted); }

/* ==========================================================================
   3. Buttons
   ========================================================================== */
.btn,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 55px;
  padding: 20px 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.btn:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: #222;
  color: var(--white);
}

.btn--accent { background: var(--accent); color: #000; }
.btn--accent:hover { background: var(--accent-hover); color: #000; }

.btn--ghost { background: rgba(95, 95, 95, .78); color: #fff; }
.btn--ghost:hover { background: rgba(60, 60, 60, .9); color: #fff; }

.btn--dark { background: #3d3d3d; color: #fff; }
.btn--dark:hover { background: #2a2a2a; color: #fff; }

.btn--outline {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: #fff; }

.btn__arrow { width: 14px; height: 14px; flex: 0 0 auto; }

.btn-row { display: flex; flex-wrap: wrap; gap: 20px; }

/* ==========================================================================
   4. Top bars
   ========================================================================== */
.topbar { background: var(--black); color: var(--white); }

/* Anchors the transparent home header to the research bar, so any PHP
   notice printed above the page pushes the logo and nav down with it.

   Also pins the header to the top of the viewport on scroll: the research
   bar slides away and the nav row stays put, so search, account and cart
   are always reachable. The offset is the bar height, so it scrolls off
   exactly as the header locks in place. */
.site-top {
  position: sticky;
  top: calc(-1 * var(--topbar-h));
  z-index: 90;
}

/* Keep the header clear of the WordPress admin bar for logged-in editors. */
.admin-bar .site-top { top: calc(32px - var(--topbar-h)); }

@media (max-width: 782px) {
  .admin-bar .site-top { top: calc(46px - var(--topbar-h)); }
}

.research-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ==========================================================================
   5. Header
   ========================================================================== */
/* Dark glass header used on every page. The research bar above it is black,
   so the two read as one dark band. */
.site-header {
  position: relative;
  z-index: 60;
  background: rgba(11, 11, 11, .95);
  color: #fff;
}

@supports (backdrop-filter: blur(10px)) {
  .site-header {
    background: rgba(11, 11, 11, .86);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
  padding-inline: clamp(20px, 6.6vw, 100px);
}

.site-brand { display: flex; align-items: center; flex: 0 0 auto; }
.site-brand img { width: 190px; height: auto; }
.site-logo--dark { display: none; }
.site-logo--light { display: block; }

.main-nav { flex: 1 1 auto; }

.main-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.6vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .22s ease;
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after { width: 100%; }

/* Shop category dropdown */
.main-nav .menu-item-has-children { position: relative; }

.main-nav .menu-item-has-children > a { padding-right: 15px; }

.main-nav .menu-item-has-children > a::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 1px;
  width: 6px;
  height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  opacity: .55;
  transition: transform .2s ease, opacity .2s ease;
}

.main-nav .menu-item-has-children:hover > a::before,
.main-nav .menu-item-has-children:focus-within > a::before {
  transform: translateY(-30%) rotate(225deg);
  opacity: .9;
}

.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 2px;
  min-width: 224px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(16, 24, 27, .15);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  pointer-events: none;
}

.main-nav .menu-item-has-children:hover > .sub-menu,
.main-nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* Invisible bridge so the menu stays open while moving the cursor down */
.main-nav .menu-item-has-children > .sub-menu::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}

.main-nav .sub-menu li { width: 100%; }

.main-nav .sub-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.main-nav .sub-menu .icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--accent-ink);
}

.main-nav .sub-menu__label { min-width: 0; }

.main-nav .sub-menu a::after { display: none; }

.main-nav .sub-menu a:hover,
.main-nav .sub-menu .current-menu-item > a,
.main-nav .sub-menu .current-menu-ancestor > a {
  background: #eef8fa;
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: none;
  color: currentColor;
  padding: 0;
}

.header-action svg { width: 22px; height: 22px; }

.header-cart-count[hidden] { display: none; }
.header-cart-count {
  position: absolute;
  top: -2px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

.nav-toggle { display: none; }

/* On the home page the header sits over the hero instead of pushing it
   down, which keeps the hero full-bleed. Every other page keeps the header
   in normal flow, but the dark glass band is the same. */
.home .site-header {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
}

/* Once the header is pinned, give it a hairline and a soft shadow so it
   separates from the content scrolling underneath. Drawn with a shadow
   rather than a border to avoid a 1px height jump at the pin point. */
.site-top.is-pinned .site-header {
  box-shadow: 0 1px 0 rgba(255, 255, 255, .14), 0 14px 30px rgba(0, 0, 0, .35);
}

/* ==========================================================================
   6. Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 878px;
  padding-block: 120px 70px;
  background: #111 url("assets/img/hero-bg-peak.jpg") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .34) 45%, rgba(0, 0, 0, 0) 72%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 760px) 1fr;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1509px;
  margin-inline: auto;
  padding-inline: 75px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 26px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: background .2s ease;
}

.hero__tag:hover { background: var(--accent-hover); color: #000; }

.hero__tag svg { width: 14px; height: 14px; }

.hero__title {
  margin: 0 0 24px;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  color: #fff;
}

.hero__title .accent { color: var(--accent-soft); }

.hero__text {
  max-width: 571px;
  margin: 0 0 34px;
  color: #eee;
  font-size: 16px;
  line-height: 26px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 44px;
}

.hero__stat {
  min-width: 120px;
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid rgba(255, 255, 255, .3);
}

.hero__stat:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

.hero__stat b {
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.hero__stat span {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, .78);
}

.hero__media {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero__media img {
  width: min(100%, 700px);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .35));
}

/* ==========================================================================
   7. Split sections (vision / quality / about)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(30px, 4vw, 55px);
}

.split__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.split__media img { width: 100%; height: 100%; object-fit: cover; }

.split__body h2 { margin-bottom: 18px; font-size: clamp(30px, 3.4vw, 54px); line-height: 1; letter-spacing: -.02em; }

.split--text-first .split__media { order: 2; }

.section-heading {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.section-heading h2 { margin-bottom: 18px; }

/* Homepage: heading row shared by Best Sellers and Shop by Category */
.section-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-bar h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.section-bar__more {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 12px 22px;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.section-bar__more svg { width: 14px; height: 14px; }

/* Best Sellers reuses the related-product card: one row of six on wide
   screens, wrapping to shorter rows as the viewport narrows. */
ul.products.best-sellers__grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 10px;
}

/* Six up leaves little room in the card foot, so the pill stays slightly
   smaller here than on the related rails. */
.best-sellers__grid .related-card__add {
  min-height: 38px;
  padding: 0 22px;
  font-size: 13px;
}

.best-sellers__grid .related-card__action .card-qty { min-height: 38px; }

.best-sellers__grid .related-card__action .card-qty__btn { min-height: 38px; }

/* Narrower windows keep the six cards at full size and scroll sideways
   instead of squeezing them into a shorter grid. */
@media (max-width: 1180px) {
  ul.products.best-sellers__grid {
    position: relative;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .best-sellers__grid .related-card {
    flex: 0 0 246px;
  }
}

/* Shop by Category: equal-size category tiles, six across on desktop */
.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  display: flex;
  flex-direction: column;
  min-height: 140px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.category-card:hover {
  border-color: var(--accent-ink);
  box-shadow: var(--shadow);
}

.category-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent-ink);
}

.category-card__arrow {
  color: #b4b4b4;
  transition: color .2s ease, transform .2s ease;
}

.category-card:hover .category-card__arrow {
  color: var(--accent-ink);
  transform: translateX(3px);
}

.category-card__name {
  margin-top: auto;
  padding-top: 18px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.category-card__count { color: var(--muted); font-size: 12.5px; }

@media (max-width: 1180px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  /* Heading and button stay on one line, so the row never wraps. */
  .section-bar {
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
  }

  .section-bar h2 { font-size: 22px; }

  .section-bar__more { padding: 9px 12px; font-size: 11px; }

  /* Best Sellers becomes a swipeable rail: one row, horizontally scrollable.
     position: relative keeps the off-screen cards from widening the page. */
  ul.products.best-sellers__grid {
    position: relative;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }

  .best-sellers__grid .related-card {
    flex: 0 0 60%;
  }

  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  .category-card { min-height: 120px; padding: 14px 16px; }

  .category-card__name { padding-top: 12px; font-size: 16px; }
}

/* ==========================================================================
   8. Advantage cards
   ========================================================================== */
.advantage { background: var(--black); color: #fff; }
.advantage h2 { color: #fff; }
.advantage .section-heading p { color: rgba(255, 255, 255, .82); }

.advantage__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 46px;
}

.advantage__card {
  padding: 22px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--card);
}

.advantage__card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
}

.advantage__card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #c9c9c9;
}

/* Mission band in the store accent: dark text, black cards. */
.advantage--accent { background: var(--accent); color: #0b0b0b; }
.advantage--accent h2 { color: #0b0b0b; }
.advantage--accent .section-heading p { color: rgba(0, 0, 0, .72); }
.advantage--accent .eyebrow--accent { color: var(--accent-ink); }

.advantage--accent .advantage__card {
  background: #0b0b0b;
  border-color: rgba(255, 255, 255, .14);
}

.advantage--accent .advantage__card h3 { color: #fff; }
.advantage--accent .advantage__card p { color: rgba(255, 255, 255, .76); }

/* ==========================================================================
   9. CTA band
   ========================================================================== */
.cta {
  background: var(--band);
  color: #0a0a0a;
  text-align: center;
}

.cta h2 { font-size: clamp(30px, 3.6vw, 54px); line-height: 1.05; }
.cta p { max-width: 860px; margin-inline: auto; }
.cta .btn-row { justify-content: center; margin-top: 34px; }

/* On the light cyan band the solid accent would disappear, so lead with black. */
.cta .btn--accent { background: #0b0b0b; color: #fff; }
.cta .btn--accent:hover { background: #222; color: #fff; }
.cta .btn--dark {
  background: #fff;
  border: 1px solid #0b0b0b;
  color: #0b0b0b;
}
.cta .btn--dark:hover { background: #0b0b0b; color: #fff; }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer { background: var(--black); color: #fff; }

.site-footer__main {
  display: grid;
  grid-template-columns: 1.35fr .8fr .9fr 1.15fr;
  gap: clamp(24px, 4vw, 56px);
  padding-block: 62px 48px;
}

.site-footer h3 {
  margin: 0 0 22px;
  color: var(--accent-soft);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.site-footer p { color: #d7d7d7; font-size: 14px; line-height: 1.7; }

/* Scoped to the site logo only: the Interac badge now lives in this column
   too and must keep its own, smaller width. */
.site-footer__brand > a img { width: 190px; margin-bottom: 22px; }

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.footer-mail svg { width: 16px; height: 16px; color: var(--accent-soft); flex: 0 0 auto; }
.footer-mail:hover { color: var(--accent-soft); }

.footer-pay { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; margin-top: 26px; }
.footer-pay__label { color: #9c9c9c; font-size: 12px; white-space: nowrap; }
.footer-pay__logo { display: block; width: 92px; height: auto; }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #fff; font-size: 15px; font-weight: 500; }
.footer-links a:hover { color: var(--accent-soft); }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--band);
  color: #1b1b1b;
}

.footer-social svg { width: 17px; height: 17px; }

.footer-newsletter { position: relative; margin-top: 22px; }

.footer-newsletter input[type="email"] {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 14px;
}

.footer-newsletter input::placeholder { color: rgba(255, 255, 255, .75); }

.footer-newsletter button {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  border: 0;
  background: none;
  color: #fff;
}

/* Bot trap: present in the markup for form fillers, invisible to people. */
.footer-newsletter__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer-newsletter__note {
  margin: 10px 0 0;
  color: var(--accent-soft);
  font-size: 13px;
}

.footer-newsletter__note--error { color: #ffb4a8; }

.site-footer__bottom {
  border-top: 1px solid #262626;
  padding-block: 22px;
  font-size: 13px;
  color: #e6e6e6;
}

.site-footer__bottom .container { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* ==========================================================================
   11. Search modal / cart drawer
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
  background: rgba(0, 0, 0, .62);
}

.modal.is-open { display: flex; }

/* Keep modals clear of the WordPress admin bar for logged-in editors. */
.admin-bar .modal { top: var(--wp-admin--admin-bar--height, 32px); }

@media (max-width: 782px) {
  .admin-bar .modal { top: var(--wp-admin--admin-bar--height, 46px); }
}

.modal__panel {
  width: min(720px, 100%);
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.modal__panel h2 { font-size: 22px; margin-bottom: 16px; }

.search-form { display: flex; gap: 10px; }
.search-form input[type="search"] {
  flex: 1 1 auto;
  height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fafafa;
  font-size: 15px;
}
.search-form button { min-height: 54px; padding-inline: 26px; }

.modal__close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Navigation drawer (mobile / tablet)

   Slides in from the right edge and runs the full height of the screen: logo
   and close at the top, a product search field, the category list with counts,
   the site pages, and a pinned My Account button at the bottom.
   -------------------------------------------------------------------------- */
.modal--drawer {
  align-items: stretch;
  justify-content: flex-end;
  padding: 0;
}

.modal--drawer .modal__panel {
  display: flex;
  flex-direction: column;
  width: min(400px, 88vw);
  height: 100%;
  max-height: none;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  animation: nav-drawer-in .26s ease;
}

@keyframes nav-drawer-in {
  from { transform: translateX(32px); opacity: .5; }
  to { transform: none; opacity: 1; }
}

.nav-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(18px + env(safe-area-inset-top)) 20px 12px;
}

.nav-drawer__brand { display: inline-flex; align-items: center; }
.nav-drawer__brand img { width: 128px; height: auto; display: block; }
.nav-drawer__brand .site-logo--dark { display: block; }
.nav-drawer__brand .site-logo--light { display: none; }

.nav-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
}

.nav-drawer__search {
  position: relative;
  margin: 0 20px 4px;
}

.nav-drawer__search input[type="search"] {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f4f4f4;
  font-family: var(--font);
  /* 16px keeps iOS from zooming the page when the field is focused. */
  font-size: 16px;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}

.nav-drawer__search input[type="search"]:focus {
  border-color: var(--accent);
  background: #fff;
  outline: none;
}

.nav-drawer__search input::placeholder { color: #8a8a8a; opacity: 1; }

.nav-drawer__search-submit {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 46px;
  padding: 0;
  border: 0;
  background: none;
  color: #8a8a8a;
}

.nav-drawer__scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 20px 20px;
}

.nav-drawer__label {
  margin: 20px 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-drawer__cats,
.nav-drawer__pages { margin: 0; padding: 0; list-style: none; }

.nav-drawer__cats a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.nav-drawer__cats .icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--accent-ink);
}

.nav-drawer__name { flex: 1 1 auto; }

.nav-drawer__count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.nav-drawer__pages {
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.nav-drawer__pages a {
  display: block;
  padding: 11px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.nav-drawer__cats a:hover,
.nav-drawer__pages a:hover { color: var(--accent-ink); }

.nav-drawer__foot {
  flex: 0 0 auto;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
}

.nav-drawer__account {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.nav-drawer__account .icon { width: 20px; height: 20px; }
.nav-drawer__account:hover { border-color: var(--accent-ink); color: var(--accent-ink); }

/* ==========================================================================
   12. Page header / breadcrumbs
   ========================================================================== */
.page-head {
  /* Trimmed by ~30% from the previous 42px band for a tighter page header. */
  padding-block: 20px;
  /* Header band. Previous grey: var(--surface) (#f5f5f5). */
  background: var(--accent);
}

/* Keep header text readable on the accent band. */
.page-head .breadcrumbs,
.page-head .breadcrumbs a,
.page-head .page-head__meta { color: rgba(11, 61, 69, .78); }
.page-head .breadcrumbs a:hover { color: var(--ink); }

.page-head h1 { margin: 0 0 6px; font-size: clamp(28px, 2.4vw, 34px); font-weight: 500; }
.page-head .eyebrow { margin-bottom: 8px; }

.page-head__meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .02em;
}

.entry-content hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   12b. Long-form policy pages (shipping, privacy, refunds)
   Scoped with .legal-page so shop, cart and account copy keeps its markup.
   ========================================================================== */
.legal-page .entry-content { max-width: 820px; }

.legal-page .entry-content > p:first-of-type {
  color: #2c2c2c;
  font-size: 17px;
  line-height: 1.7;
}

.legal-page .entry-content h2 {
  margin: 42px 0 14px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.legal-page .entry-content h2:first-child { margin-top: 0; }

.legal-page .entry-content h3 {
  margin: 28px 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.legal-page .entry-content h4 {
  margin: 20px 0 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #3a3a3a;
}

.legal-page .entry-content p {
  margin: 0 0 16px;
  color: #343434;
  font-size: 15.5px;
  line-height: 1.75;
}

.legal-page .entry-content ul,
.legal-page .entry-content ol {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.legal-page .entry-content ul li,
.legal-page .entry-content ol li {
  position: relative;
  padding-left: 20px;
  color: #343434;
  font-size: 15.5px;
  line-height: 1.7;
}

.legal-page .entry-content ul > li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-ink);
}

/* Numbered lists (claims windows, retention points) keep their counters. */
.legal-page .entry-content ol { counter-reset: legal-list; }

.legal-page .entry-content ol > li { counter-increment: legal-list; }

.legal-page .entry-content ol > li::before {
  content: counter(legal-list) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-ink);
  font-weight: 600;
}

.legal-page .entry-content a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page .entry-content a:hover { color: var(--ink); }

/* Delivery-time table. Wrapper scrolls instead of breaking the layout. */
.legal-table {
  margin: 10px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-page .entry-content .legal-table table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 14.5px;
}

.legal-page .entry-content .legal-table th,
.legal-page .entry-content .legal-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-page .entry-content .legal-table thead th {
  background: #f6f8f8;
  color: #55605f;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.legal-page .entry-content .legal-table tbody tr:nth-child(even) { background: #fbfcfc; }
.legal-page .entry-content .legal-table tbody tr:last-child th,
.legal-page .entry-content .legal-table tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 700px) {
  .legal-page .entry-content h2 { margin-top: 34px; font-size: 19px; }
  .legal-page .entry-content p,
  .legal-page .entry-content ul li,
  .legal-page .entry-content ol li { font-size: 15px; }
  .legal-page .entry-content .legal-table th,
  .legal-page .entry-content .legal-table td { padding: 11px 13px; font-size: 14px; }
}

.breadcrumbs {
  color: #6f6f6f;
  font-size: 13px;
  line-height: 1.5;
}

.breadcrumbs a { color: #6f6f6f; }
.breadcrumbs a:hover { color: #000; }
.breadcrumbs .sep { margin-inline: 6px; }

/* ==========================================================================
   13. WooCommerce: shop archive
   ========================================================================== */
.shop-layout {
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-block: 40px 70px;
}

.shop-sidebar { display: grid; gap: 16px; }

.widget {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0;
  overflow: hidden;
}

.widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: none;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
}

.widget__head svg { width: 14px; height: 14px; transition: transform .2s ease; }
.widget.is-collapsed .widget__head svg { transform: rotate(180deg); }
.widget.is-collapsed .widget__body { display: none; }

.widget__body { padding: 0 18px 18px; }

.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { border-top: 1px solid #f0f0f0; }
.widget li:first-child { border-top: 0; }

.widget li a,
.widget .cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  color: #2b2b2b;
  font-size: 14px;
}

.widget li a:hover { color: #000; }
.widget .count { color: #8a8a8a; font-size: 13px; }

/* Filter rows: a small icon leads each category / research area. The wide
   research icons carry a tinted shape painted with the accent. */
.filter-name {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.filter-name .icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--accent-ink);
}

.filter-name .icon--wide { width: 19px; height: 19px; }

.filter-name .icon-tint { fill: var(--accent); stroke: none; }

/* Active filter rows: accent text plus a soft accent pill so the current
   category / research area stands out from the rest of the list. */
.widget li a.is-active,
.widget li a.filter-area.is-active {
  margin-inline: -10px;
  padding-inline: 10px;
  border-radius: 6px;
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-weight: 600;
}

.widget li a.is-active .count,
.widget li a.filter-area.is-active .count { color: var(--accent-ink); }

.widget li a.is-active:hover,
.widget li a.filter-area.is-active:hover { color: var(--accent-ink); }

.shop-empty {
  margin: 6px 0 0;
  padding: 34px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafafa;
  color: #4a4a4a;
  text-align: center;
}

.widget .filter-reset { margin: 10px 0 0; font-size: 13px; }
.widget .filter-reset a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

.widget__scroll { max-height: 240px; overflow-y: auto; padding-right: 4px; }

.price-filter { display: grid; gap: 12px; }
.price-filter__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.price-filter__field { display: grid; gap: 7px; min-width: 0; }
.price-filter__label { color: #4a4a4a; font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.price-filter__field input[type="number"] {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  color: #1c1c1c;
  font-size: 15px;
  line-height: 1;
  -moz-appearance: textfield;
}
.price-filter__field input[type="number"]::placeholder { color: #9a9a9a; opacity: 1; }
.price-filter__field input[type="number"]:focus { border-color: #1c1c1c; outline: none; box-shadow: 0 0 0 1px #1c1c1c; }
.price-filter__field input[type="number"]::-webkit-outer-spin-button,
.price-filter__field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-filter__submit { width: 100%; min-height: 42px; padding: 12px 18px; font-size: 13px; }

/* Sidebar product search, above the category list. */
.shop-search { min-width: 0; }
.shop-search__form { margin: 0; }
.shop-search__field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 6px 0 13px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.shop-search__field:focus-within { border-color: #1c1c1c; box-shadow: 0 0 0 1px #1c1c1c; }
.shop-search__field > .icon { flex: 0 0 auto; width: 16px; height: 16px; color: #9a9a9a; }
.shop-search__field input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: #1c1c1c;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}
.shop-search__field input[type="search"]::placeholder { color: #9a9a9a; opacity: 1; }
.shop-search__field input[type="search"]:focus { outline: none; }
.shop-search__field input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.shop-search__submit {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  transition: background .18s ease;
}
.shop-search__submit svg { width: 15px; height: 15px; }
.shop-search__submit:hover { background: #222; }

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.shop-main { min-width: 0; }
.shop-layout > * { min-width: 0; }

.shop-sidebar__head { display: none; }

.filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
}

.shop-toolbar__meta {
  display: flex;
  flex: 1 1 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  min-width: 0;
}

.shop-toolbar .result-count { margin: 0; color: #4a4a4a; font-size: 14px; }
.shop-toolbar__right { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }

/* Active filters: accent pills with an X, right-aligned on the result line. */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background .18s ease;
}

.filter-chip:hover,
.filter-chip:focus-visible { background: var(--accent-hover); color: var(--ink); }
.filter-chip .icon { flex: 0 0 auto; width: 12px; height: 12px; opacity: .7; }
.filter-chip:hover .icon,
.filter-chip:focus-visible .icon { opacity: 1; }

/* Below the desktop breakpoint the filter button shares the first row with
   the selects, so the result count and chips move to a full-width row of
   their own to avoid the chips colliding with the sort controls. */
@media (max-width: 1024px) {
  .shop-toolbar__meta { order: 3; flex: 1 0 100%; }
}

/* Both boxes are sized to their content, with a few pixels of slack so the
   longest option ("Show All", "Sort by price: low to high") never clips. */
.per-page-form { width: 112px; }
.per-page-form select { width: 100%; }
.woocommerce-ordering { min-width: 214px; }
.woocommerce-ordering select { width: 100%; }

/* Draw our own chevron so the boxes size to their content instead of the
   browser's wider native select chrome, which leaves dead space after the
   selected value. */
.shop-toolbar select {
  height: 42px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  font-size: 14px;
  -webkit-appearance: none;
  appearance: none;
}

ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Block product grids (for example "New in store" on the empty cart) reuse
   the theme card, so they need the same grid layout. */
.wc-block-grid .wc-block-grid__products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wc-block-grid.has-4-columns .wc-block-grid__products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wc-block-grid__products > .product-card { width: auto; margin: 0; }

@media (max-width: 1024px) {
  .wc-block-grid .wc-block-grid__products,
  .wc-block-grid.has-4-columns .wc-block-grid__products {
    /* WooCommerce collapses block grids to one column at 480px; keep two. */
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }
}

@media (max-width: 640px) {
  .wc-block-grid .wc-block-grid__products,
  .wc-block-grid.has-4-columns .wc-block-grid__products {
    gap: 12px 10px;
  }
}

.product-card {
  position: relative;
  float: none;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: auto;
  margin: 0;
}

.product-card__visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.product-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f1f1f1;
  aspect-ratio: 1 / 1;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Chromium sometimes leaves a thumbnail inside the rounded, clipped media
     box unpainted until something else invalidates it - which is why cards
     used to fill in as the mouse moved over them. Promoting the image to its
     own layer up front means every card paints as soon as its file decodes. */
  transform: translateZ(0);
  transition: transform .35s ease;
}

.product-card:hover .product-card__media img { transform: scale(1.03); }

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 3px;
  background: rgba(28, 28, 28, .82);
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.product-card__badge--out { background: rgba(0, 0, 0, .85); color: #fff; }

/* Title, spec and the price/action foot stack the same way as the Best
   Sellers cards, so a shop card reads like the rest of the site. */
.product-card__meta {
  display: block;
  margin: 14px 0 12px;
}

.product-card__cat {
  margin: 0 0 6px;
  color: #8a8a8a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.product-card__title {
  min-width: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.product-card__sizes {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .005em;
}

.product-card__title a:hover { text-decoration: underline; }

.product-card__price {
  color: #1c1c1c;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  /* The currency suffix must never drop to a second line: a card with the Add
     pill and the same card with the stepper would then differ in height. */
  flex: 0 0 auto;
  white-space: nowrap;
}

.product-card__price del { color: #8a8a8a; margin-right: 6px; }
.product-card__price ins { text-decoration: none; }

/* Sale pricing on every product card: original above, current below. */
.product-card__price del,
.related-card__price del {
  display: block;
  margin-right: 0;
}

/* "From" sits on its own line above the starting price, mirroring the sale
   layout so every card foot reads the same way. */
.product-card__price .price-from,
.related-card__price .price-from {
  display: block;
  color: #8a8a8a;
  font-size: .82em;
  font-weight: 500;
  line-height: 1.25;
}

.price-cad {
  margin-left: 2px;
  color: #6b6b6b;
  font-size: max(.72em, 10px);
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
}

.single-product .price .price-cad { margin-left: -6px; }

/* Every card keeps its price and purchase action in a single foot row, the
   same shape as the Best Sellers rail, so the button no longer waits for a
   hover. */
.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

/* Cards sit in horizontally scrolling rails on phones; without this a tap can
   be swallowed as a scroll and the add never fires. */
.related-card__add,
.card-qty__btn,
.product-card__buy .button { touch-action: manipulation; }

/* The purchase pill sits at the right edge of the foot and keeps the same
   footprint whether it is the Add button or the stepper. */
.product-card__buy {
  display: flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.product-card .product-card__buy .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}

.product-card__buy [data-summit-add] { min-width: 0; }

.product-card .product-card__buy .button svg { width: 14px; height: 14px; }
.product-card .product-card__buy .button:hover { background: #222; color: var(--white); }

/* Same feedback as the stepper's buttons: the pill dims for a beat instead of
   changing colour, so adding and changing quantity look like one action. */
.product-card .product-card__buy .button:active,
.product-card .product-card__buy .button.is-busy {
  background: var(--black);
  color: var(--white);
  opacity: .55;
}

/* It has to land instantly: the pill is swapped for the stepper after ~180ms. */
.product-card .product-card__buy .button.is-busy { transition: none; }

.product-card .product-card__buy .product-card__buy-options {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--ink);
}

.product-card .product-card__buy .product-card__buy-options:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--ink);
}

.product-card .product-card__buy .product-card__buy-options:active,
.product-card .product-card__buy .product-card__buy-options.is-busy {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--ink);
}

.product-card .product-card__buy .product-card__buy-options.is-busy { transition: none; }

/* Quantity stepper that replaces the add button once a product is in the cart. */
.card-qty {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 40px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.card-qty__btn {
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 0;
  background: var(--black);
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s ease;
}

/* Hover feedback only where a pointer can really hover: on touch screens the
   state stuck after a tap, so the highlight outlived the tap. */
@media (hover: hover) and (pointer: fine) {
  .card-qty__btn:hover { background: #222; }
}

.card-qty__btn:active { background: #333; transition: none; }
.card-qty__btn:focus-visible { outline: 2px solid var(--white); outline-offset: -4px; }
.card-qty__value {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-inline: 1px solid rgba(255, 255, 255, .18);
  font-size: 13px;
  font-weight: 600;
}
.card-qty.is-busy { opacity: .55; pointer-events: none; }

/* Shop card foot: the stepper matches the Add pill's height exactly, so
   swapping one for the other never changes the card's size. */
.product-card__buy .card-qty { width: 100%; min-height: 38px; }
.product-card__buy .card-qty__btn { flex: 0 0 34px; min-height: 38px; font-size: 16px; }
.product-card__buy .card-qty__value { min-width: 24px; font-size: 12px; }

/* Single product page: the add button splits into the same stepper. */
.single-cart-slot .card-qty {
  min-height: 55px;
  border-radius: var(--radius-sm);
  background: var(--black);
  color: var(--white);
}
.single-cart-slot .card-qty__btn {
  flex: 0 0 60px;
  min-height: 55px;
  font-size: 20px;
}
.single-cart-slot .card-qty__value {
  border-inline-color: rgba(255, 255, 255, .18);
  font-size: 15px;
  font-weight: 700;
}

/* WooCommerce appends this after an AJAX add; the card shows a stepper instead. */
.added_to_cart { display: none !important; }

.woocommerce-pagination { margin-top: 40px; }.woocommerce-pagination ul { display: flex; gap: 8px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.woocommerce-pagination a,
.woocommerce-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 14px;
}
.woocommerce-pagination span.current { background: #000; border-color: #000; color: #fff; }

/* "Back to top" box under the pagination. */
.shop-backtop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  min-height: 42px;
  margin: 22px auto 0;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #0b0b0b;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease;
}

.shop-backtop svg { width: 14px; height: 14px; }
.shop-backtop:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* A short result page (12 or fewer) scrolls less on desktop than the control
   saves, so it is only offered on mobile. */
@media (min-width: 1025px) {
  .shop-backtop--few { display: none; }
}

/* ==========================================================================
   14. WooCommerce: single product
   ========================================================================== */
.product-page { padding-block: 28px 70px; }

.product-gallery { position: relative; }

.single-product .onsale {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 3px;
  background: rgba(28, 28, 28, .82);
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.single-product div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
}

.woocommerce-product-gallery { position: relative; margin: 0; }

.woocommerce-product-gallery__image {
  overflow: hidden;
  border-radius: var(--radius);
  background: #f1f1f1;
}

.woocommerce-product-gallery__image img { width: 100%; height: auto; object-fit: contain; }

.woocommerce-product-gallery__wrapper { margin: 0; }

.woocommerce-product-gallery .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.woocommerce-product-gallery .flex-control-thumbs img {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f6f6;
  padding: 6px;
  cursor: pointer;
}

.product-taxonomy {
  display: grid;
  gap: 4px;
  margin: 0 0 10px;
}

.product-taxonomy__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
}

.product-taxonomy__label { color: var(--muted); font-weight: 500; }
.product-taxonomy__value { color: var(--accent-ink); font-weight: 600; }

.product-taxonomy__value a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(38, 112, 124, .4);
}

.product-taxonomy__value a:hover {
  text-decoration-color: currentColor;
}

.product_title {
  margin: 0 0 22px;
  font-size: clamp(26px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.2;
}

.product-size-line {
  margin: -14px 0 22px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .01em;
}

/* Product name and its sizes share one line: "BPC-157 - 10mg". */
.product-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 22px;
}

.product-title-row .product_title { margin: 0; }
.product-title-row .product-size-line { margin: 0; }

.product-title-row .product-size-line::before {
  content: "-";
  margin-right: 8px;
  color: var(--muted);
}

/* Long names push the size onto its own line; the dash would lead it. */
.product-title-row.is-wrapped .product-size-line::before { content: none; }

.product-title-row:has(.product-size-line) { margin-bottom: 12px; }

/* Other forms of the same peptide (vial / capsules / spray / pen) and the
   blends it appears in, each row linking straight to that listing. */
.product-forms {
  display: grid;
  gap: 7px;
  margin: 0 0 16px;
}

.product-forms__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.product-forms__label {
  margin-right: 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.product-forms__chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.product-forms__chip:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--black);
}

/* Blends are a different kind of link: tinted so the two rows read apart. */
.product-forms__chip--blend {
  background: #f2fafb;
  border-color: #d9eef1;
}

.product-forms__chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.product-accordion { border-top: 1px solid var(--line); }
.product-accordion:last-of-type { border-bottom: 1px solid var(--line); }

.product-accordion__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 2px;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
}

.product-accordion__head svg { width: 12px; height: 12px; transition: transform .2s ease; }
.product-accordion.is-open .product-accordion__head svg { transform: rotate(180deg); }

.product-accordion__body { display: none; padding: 0 2px 16px; font-size: 14px; color: #444; }
.product-accordion.is-open .product-accordion__body { display: block; }

.product-attributes {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0;
  font-size: 14px;
  color: #3a3a3a;
}

.product-attributes b { font-weight: 500; }

.single-product .price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 10px;
  font-size: 24px;
  font-weight: 400;
  color: #111;
}

.single-product .price del { color: #9a9a9a; font-size: 20px; }
.single-product .price ins { text-decoration: none; }

.stock { margin: 0 0 18px; font-size: 12px; color: var(--green); }
.stock.out-of-stock { color: #b3261e; }

/* Buy box: price and stock stack on the left, the Add To Cart button / stepper
   sits to their right at the height of both lines instead of spanning the
   column. */
.product-buy {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(190px, 1fr);
  align-items: center;
  column-gap: 16px;
  margin: 10px 0 18px;
}

.product-buy > .price { grid-area: 1 / 1; margin: 0; flex-wrap: wrap; }
.product-buy > .stock { grid-area: 2 / 1; margin: 2px 0 0; }

.product-buy > form.cart {
  grid-area: 1 / 2 / span 2 / auto;
  margin: 0;
}

.product-buy .single-cart-slot { width: 100%; min-width: 190px; }

/* Multi-size products keep the swatch grid full width, then pair the live
   variation price and stock with the button underneath. */
.product-buy:has(.summit-swatches) > form.cart { display: contents; }

.product-buy:has(.summit-swatches) .variations,
.product-buy:has(.summit-swatches) .summit-variants {
  grid-area: 1 / 1 / auto / -1;
}

.product-buy:has(.summit-swatches) .summit-variants { margin-bottom: 14px; }

.product-buy:has(.summit-swatches) .single_variation_wrap { display: contents; }

.product-buy:has(.summit-swatches) .single_variation { grid-area: 2 / 1; }
.product-buy:has(.summit-swatches) .woocommerce-variation .price { margin: 0; }

.product-buy:has(.summit-swatches) > .stock { grid-area: 3 / 1; }

.product-buy:has(.summit-swatches) .woocommerce-variation-add-to-cart {
  grid-area: 2 / 2 / span 2 / auto;
  margin: 0;
}

@media (max-width: 480px) {
  .product-buy { grid-template-columns: minmax(0, max-content) minmax(0, 1fr); column-gap: 12px; }
  .product-buy > .price,
  .product-buy .woocommerce-variation .price { font-size: 21px; }
  .product-buy .single-cart-slot { min-width: 0; }
  .product-buy .single-cart-slot .card-qty__btn { flex-basis: 40px; }
}

/* Browsers without :has() cannot detect the swatch grid, so fall back to the
   stacked form rather than squeezing it into the button column. */
@supports not selector(:has(*)) {
  .product-buy { grid-template-columns: minmax(0, 1fr); }
  .product-buy > form.cart { grid-area: auto; }
}

.variations_form { margin-top: 8px; }

.variations { width: 100%; border: 0; margin: 0 0 16px; }
.variations th,
.variations td { padding: 0; border: 0; vertical-align: top; }
.variations .label { display: none; }
.variations select { display: none; }

.summit-variants__label {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}

.summit-swatches { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 18.75%)); }

.summit-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 50px;
  padding: 4px 8px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.summit-swatch__main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.1;
}

.summit-swatch__permg {
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.1;
  white-space: nowrap;
}

.summit-swatch__unit { color: inherit; }

.summit-swatch:hover { border-color: #9a9a9a; }

.summit-swatch.is-selected {
  border-color: #000;
  box-shadow: inset 0 0 0 1px #000;
}

.summit-swatch.is-disabled { opacity: .45; cursor: not-allowed; }

.summit-swatch__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #555;
  font-size: 14px;
}

.qty-cart {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-top: 18px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  height: 55px;
}

.qty button {
  width: 42px;
  height: 100%;
  border: 0;
  background: none;
  font-size: 18px;
  line-height: 1;
  color: #333;
}

.qty input {
  width: 52px;
  height: 100%;
  border: 0;
  background: none;
  text-align: center;
  font-size: 15px;
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Simple products fold the quantity into the add button, which turns into the
   same stepper used on product cards. Variable products keep the usual form. */
.single-product form.cart:not(.variations_form) {
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.single-product form.cart:not(.variations_form) > .quantity { display: none; }

.single-cart-slot { flex: 1 1 auto; display: flex; }
.single-cart-slot.is-busy { opacity: .55; pointer-events: none; }

.single_add_to_cart_button {
  flex: 1 1 auto;
  min-height: 55px;
}

.single_variation_wrap .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin-top: 18px;
}

.single_variation_wrap .quantity {
  display: inline-flex;
  align-items: center;
  height: 55px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}

.single_variation_wrap .quantity:has(> input[type="hidden"]) { display: none; }

/* The variation add button carries the quantity now. WooCommerce toggles the
   quantity wrapper with inline styles, so this needs !important to win. */
.single_variation_wrap .quantity { display: none !important; }

.single_variation_wrap .quantity input.qty {
  width: 64px;
  height: 100%;
  padding: 0 6px;
  border: 0;
  background: none;
  text-align: center;
  font-size: 15px;
  -moz-appearance: textfield;
}

.single_variation_wrap .quantity input.qty::-webkit-outer-spin-button,
.single_variation_wrap .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.single_variation_wrap .single_add_to_cart_button {
  flex: 1 1 200px;
  min-height: 55px;
}

.woocommerce-variation-price {
  margin: 0 0 4px;
  font-size: 20px;
}

.woocommerce-variation-availability p.stock {
  margin-bottom: 10px;
}

/* Lab result card */
.lab-result {
  margin-top: 26px;
  padding: 18px;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  background: #fcfcfc;
}

.lab-result__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.lab-result__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #6a6a6a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lab-result__title { margin: 0; font-size: 20px; font-weight: 500; }
.lab-result__ln { color: var(--accent-ink); font-size: 13px; font-weight: 600; letter-spacing: .04em; }

.lab-result__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.lab-result__cell {
  padding: 14px 8px;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.lab-result__cell svg { margin: 0 auto 8px; width: 18px; height: 18px; color: var(--accent-ink); }
.lab-result__cell b { display: block; font-size: 13px; font-weight: 600; }
.lab-result__cell span { display: block; color: #8a8a8a; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }

.lab-result .btn { min-height: 40px; padding: 12px 18px; font-size: 13px; }

/* Description / disclaimer accordions */
.product-details {
  margin-top: 48px;
}

.product-details__body {
  max-width: 860px;
  color: #444;
  font-size: 15px;
  line-height: 1.75;
}

.product-details__body h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

.product-details__body h3 {
  margin: 28px 0 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
}

.product-details__body p { margin: 0 0 14px; }

.product-details__body ul {
  margin: 0 0 16px;
  padding-left: 20px;
  list-style: disc;
}

.product-details__body li { margin-bottom: 7px; }

.product-details__body li strong { color: var(--ink); font-weight: 600; }

.product-details__body > h2:first-child { margin-top: 0; }

@media (max-width: 700px) {
  .product-details { margin-top: 36px; padding-top: 28px; }
}

/* Specifications */
.spec-table { margin-top: 40px; }
.spec-table h2 { font-size: 22px; font-weight: 500; }
.spec-table table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); font-size: 14px; }
.spec-table th,
.spec-table td { padding: 14px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 190px; font-weight: 500; background: #fafafa; }

/* Related */
/* Related - "You may also like" */
.related { margin-top: 60px; }

.related__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.related__eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.related__head h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 500;
  line-height: 1.15;
}

.related__more {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 12px 22px;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.related__more svg { width: 14px; height: 14px; }

ul.products.related__grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 10px;
}

.related-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.related-card__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f1f1f1;
  aspect-ratio: 1 / 1;
}

.related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateZ(0);
  transition: transform .35s ease;
}

.related-card:hover .related-card__media img { transform: scale(1.03); }

.related-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding-top: 16px;
}

.related-card__cat {
  margin: 0 0 6px;
  color: #8a8a8a;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.related-card__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.related-card__title a { color: inherit; }
.related-card__title a:hover { color: var(--muted); }

.related-card__spec {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.related-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.related-card__price {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.related-card__price del {
  color: #9a9a9a;
  font-size: 13px;
  font-weight: 400;
}

.related-card__price ins { text-decoration: none; }

.related-card__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}

.related-card__add:hover { background: #222; color: var(--white); }

/* Tap / in-flight feedback: the pill dims like the stepper does, before it
   swaps for the stepper. */
.related-card__add:active,
.related-card__add.is-busy {
  background: var(--black);
  color: var(--white);
  opacity: .55;
}

.related-card__add.is-busy { transition: none; }

.related-card__add--options {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--ink);
}

.related-card__add--options:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--ink);
}

.related-card__add--options:active,
.related-card__add--options.is-busy {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--ink);
}

.related-card__add--options.is-busy { transition: none; }

.related-card__add svg { width: 14px; height: 14px; }

/* Only the button swaps for the stepper, so the price stays visible. The
   action grows to fill the foot, since stacked prices are narrow. */
.related-card__action {
  display: inline-flex;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

/* The add button matches the stepper's width, so the card keeps its size
   when the button turns into "- | qty | +" after adding to the cart. */
.related-card__action [data-summit-add] { min-width: 0; }

.related-card__action .card-qty {
  flex: 1 1 auto;
  width: 100%;
  min-height: 42px;
}

.related-card__action .card-qty__btn {
  flex: 0 0 34px;
  min-height: 42px;
  font-size: 16px;
}

.related-card__action .card-qty__value { min-width: 24px; font-size: 12px; }

@media (max-width: 1180px) {
  ul.products.related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
  ul.products.related__grid > li:nth-child(n + 5) { display: none; }
}

@media (max-width: 640px) {
  .related__head {
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 22px;
  }

  .related__head h2 { font-size: 22px; }

  .related__more {
    padding: 10px 14px;
    font-size: 12px;
  }

  ul.products.related__grid { gap: 14px 10px; }

  /* Price and pill share one line, with a smaller pill so both fit inside a
     phone-width card. */
  .related-card__foot {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .related-card__price { font-size: 13px; }

  .related-card__add,
  .best-sellers__grid .related-card__add {
    width: auto;
    min-height: 34px;
    padding: 0 12px;
    gap: 5px;
    font-size: 12px;
  }

  .related-card__add svg { width: 12px; height: 12px; }

  /* The desktop min-width keeps the stepper the same size as the pill; on a
     phone it just pushes the pill past the card edge. */
  .related-card__action [data-summit-add] { min-width: 0; }

  .related-card__action {
    width: auto;
    flex: 1 1 auto;
    justify-content: flex-end;
  }

  .related-card__action .card-qty,
  .best-sellers__grid .related-card__action .card-qty {
    width: 100%;
    min-height: 34px;
  }

  .related-card__action .card-qty__btn,
  .best-sellers__grid .related-card__action .card-qty__btn {
    flex: 0 0 28px;
    min-height: 34px;
    font-size: 14px;
  }

  .related-card__action .card-qty__value { min-width: 18px; font-size: 11px; }
}

/* ==========================================================================
   15. WooCommerce: cart / checkout / account
   ========================================================================== */
.woocommerce-page .page-head + .container { padding-block: 40px 70px; }

.woocommerce table.shop_table {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.woocommerce table.shop_table th {
  padding: 14px 16px;
  background: #fafafa;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.woocommerce table.shop_table td { padding: 16px; border-top: 1px solid var(--line); }

/* Order received: the order details table carries the same thumbnail size as
   the cart line, a black "Product | Total" header and accent total labels,
   with the address columns pushed down off the table. */
.woocommerce-order-details .woocommerce-table--order-details thead th {
  background: var(--black);
  color: #fff;
}

.woocommerce-order-details .woocommerce-table--order-details td.product-name { vertical-align: middle; }

.woocommerce-order-details .woocommerce-table--order-details .order-item__thumb {
  display: inline-block;
  vertical-align: middle;
  margin-right: 16px;
}

.woocommerce-order-details .woocommerce-table--order-details .order-item__thumb img {
  width: 88px;
  height: 88px;
  max-width: 88px;
  border-radius: 8px;
  object-fit: contain;
  background: #f4f4f4;
}

.woocommerce-order-details .woocommerce-table--order-details .order-item__body {
  display: inline-block;
  vertical-align: middle;
  max-width: calc(100% - 108px);
}

.woocommerce-order-details .woocommerce-table--order-details tfoot th {
  background: var(--accent);
  color: #0b0b0b;
}

.woocommerce-order-details .woocommerce-table--order-details tfoot td { background: #fff; }

.woocommerce-customer-details { margin-top: 38px; }

.woocommerce-cart .cart-collaterals { margin-top: 30px; }
.woocommerce-cart .cart_totals { width: 100%; max-width: 460px; margin-left: auto; }
.woocommerce-cart .cart_totals h2 { font-size: 20px; font-weight: 500; }

/* Cart page: the dotted divider between the cart block and "You may also
   like" is dropped and replaced with a real gap, so the empty-cart button no
   longer sits flush against the "Keep browsing" header. */
.woocommerce-cart .wp-block-separator.is-style-dots { display: none; }
.woocommerce-cart .related__head { margin-top: 34px; }

/* Cart line: image | details | price column. The quantity stepper and the
   remove button drop into that right column, stacked under the line total,
   so price, quantity and trash share one edge. The table is unboxed so the
   grid rows can stretch to the full cart width. */
.woocommerce-cart .wc-block-cart-items,
.woocommerce-cart .wc-block-cart-items thead,
.woocommerce-cart .wc-block-cart-items tbody { display: block; }

.woocommerce-cart .wc-block-cart-items__header {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  column-gap: 16px;
}

.woocommerce-cart .wc-block-cart-items__header th { padding: 14px 0; }

.woocommerce-cart .wc-block-cart-items__row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.woocommerce-cart .wc-block-cart-items__row > td {
  border-top: 0;
  padding: 0;
}

.woocommerce-cart .wc-block-cart-item__image {
  grid-column: 1;
  grid-row: 1 / span 3;
  padding-right: 16px;
}

.woocommerce-cart .wc-block-cart-item__image img {
  width: 88px;
  height: 88px;
  max-width: 88px;
  border-radius: 8px;
}

.woocommerce-cart .wc-block-cart-item__product,
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__wrap { display: contents; }

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__wrap > * { grid-column: 2; }

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name { grid-row: 1; }

/* The line total above the stepper already shows the money; the unit price
   under the product name repeated it. */
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__prices { display: none; }

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-metadata { grid-row: 2; }

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name {
  color: #111;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.woocommerce-cart .wc-block-cart-item__total {
  grid-column: 3;
  grid-row: 1;
  justify-content: flex-end;
}

/* Trash sits just left of the stepper, close enough to read as one control
   group but far enough that a mis-tap does not delete the line. */
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity {
  grid-column: 3;
  grid-row: 2 / span 2;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__remove-link {
  margin: 0;
  padding: 4px;
  border-radius: var(--radius-sm);
  color: #555;
}

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__remove-link:hover { color: #b3261e; }

.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-components-quantity-selector {
  width: 100px;
  min-width: 100px;
}

/* Phones: Woo's own block rules pin the image cell to 60px, and the trash +
   stepper group is too wide to sit beside the name — drop it under the
   details, still left of the stepper. */
@media (max-width: 700px) {
  .woocommerce-cart .wc-block-cart-items__header,
  .woocommerce-cart .wc-block-cart-items__row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    column-gap: 12px;
  }

  .woocommerce-cart .wc-block-cart .wc-block-cart-items__row .wc-block-cart-item__image {
    width: auto;
    padding-right: 8px;
  }

  .woocommerce-cart .wc-block-cart-item__image img {
    width: 56px;
    height: 56px;
    max-width: 56px;
  }

  .woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity {
    grid-column: 2 / -1;
    grid-row: 3;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-top: 10px;
  }

  .woocommerce-order-details .woocommerce-table--order-details .order-item__thumb { margin-right: 12px; }

  .woocommerce-order-details .woocommerce-table--order-details .order-item__thumb img {
    width: 56px;
    height: 56px;
    max-width: 56px;
  }

  .woocommerce-order-details .woocommerce-table--order-details .order-item__body { max-width: calc(100% - 72px); }

  /* Phone: a table pins the product name to the label column, which is far too
     narrow next to a thumbnail, so the rows stack like the cart line. */
  .woocommerce-order-details .woocommerce-table--order-details { display: block; }

  .woocommerce-order-details .woocommerce-table--order-details thead { display: none; }

  .woocommerce-order-details .woocommerce-table--order-details tbody,
  .woocommerce-order-details .woocommerce-table--order-details tfoot { display: block; }

  .woocommerce-order-details .woocommerce-table--order-details tbody tr.order_item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    padding: 14px 16px;
  }

  .woocommerce-order-details .woocommerce-table--order-details tbody td.product-name {
    display: contents;
    border: 0;
    padding: 0;
  }

  .woocommerce-order-details .woocommerce-table--order-details tbody td.product-total {
    padding: 0;
    border: 0;
    text-align: right;
  }

  .woocommerce-order-details .woocommerce-table--order-details .order-item__thumb { margin-right: 0; }

  .woocommerce-order-details .woocommerce-table--order-details .order-item__body { max-width: none; }

  .woocommerce-order-details .woocommerce-table--order-details tfoot tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    align-items: center;
  }

  .woocommerce-order-details .woocommerce-table--order-details tfoot th,
  .woocommerce-order-details .woocommerce-table--order-details tfoot td {
    padding: 12px 14px;
    border-top: 1px solid var(--line);
    font-size: 12px;
  }

  .woocommerce-order-details .woocommerce-table--order-details tfoot td { text-align: right; }

  .woocommerce-customer-details { margin-top: 28px; }
}

/* Cart quantity stepper: the +/- ends take the store accent, like the
   product-page and card steppers. */
.wc-block-components-quantity-selector {
  border-color: var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
  background: var(--accent);
  color: #000;
  -webkit-tap-highlight-color: transparent;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:disabled {
  background: #ececec;
  color: #9a9a9a;
}

/* Both ends of the cart stepper are live controls: black like the store's
   primary buttons. A disabled minus falls back to the grey state below. */
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:not(:disabled) {
  background: var(--black);
  color: var(--white);
}

@media (hover: hover) and (pointer: fine) {
  .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:not(:disabled):hover {
    background: #222;
    color: var(--white);
  }
}

/* "Save $x" chip on a discounted cart line. */
.wc-block-components-sale-badge {
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
}

/* Coupon field: keep the compact, top-aligned label and the roomier input
   padding from the focused state, so the text does not jump size or position
   when the panel opens or the field loses focus. */
.wc-block-components-totals-coupon .wc-block-components-text-input label {
  top: 6px;
  transform: scale(.82);
}

.wc-block-components-totals-coupon .wc-block-components-text-input input {
  padding: 24px 9px 8px 8.5px;
}

/* The coupon field's active ring is drawn by the browser (gold on some
   Chromium builds); paint it in the store accent instead. */
.wc-block-components-totals-coupon .wc-block-components-text-input.is-active {
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 2px var(--accent);
}

.wc-block-components-totals-coupon .wc-block-components-text-input input:focus,
.wc-block-components-totals-coupon .wc-block-components-text-input input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: none;
}

/* Apply sits next to the input as the panel's primary action: black pill. */
.wc-block-components-totals-coupon .wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.wc-block-components-totals-coupon .wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button:not(:disabled):hover {
  background: #222;
  border-color: #222;
  color: var(--white);
}

.wc-block-components-totals-coupon .wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button:disabled {
  background: #ececec;
  border-color: #ececec;
  color: #9a9a9a;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 15px;
}

.woocommerce form .form-row textarea { height: auto; padding: 12px 14px; }

.woocommerce-checkout .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.woocommerce-checkout #order_review_heading { margin-top: 34px; }

.woocommerce-account .woocommerce { display: block; }

/* My Account masthead */
.account-masthead { padding-block: 48px 0; background: #fff; }
.account-masthead .container { max-width: calc(1000px + (var(--gutter) * 2)); padding-bottom: 22px; border-bottom: 1px solid var(--line); }
/* Logged-in account pages use the wider shell so the title, nav and content line up. */
.logged-in .account-masthead .container { max-width: calc(1200px + (var(--gutter) * 2)); }
.account-masthead .breadcrumbs { margin-bottom: 14px; }
.account-masthead h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.account-page { padding-block: 36px 84px; }
.entry-content--account { width: 100%; max-width: 1000px; margin-inline: auto; }
/* Logged-in account area lines up with the "My account" masthead. */
.logged-in .entry-content--account { max-width: 1200px; }
.account-page .woocommerce-notices-wrapper { margin-bottom: 24px; }

/* Auth cards */
.account-auth { width: 100%; }
.account-auth__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.account-auth--single .account-auth__grid { grid-template-columns: minmax(0, 490px); justify-content: center; }
.account-card {
  display: flex;
  flex-direction: column;
  padding: 36px;
  border: 1px solid #e9e7e6;
  border-radius: 28px;
  background: #fff;
}
.account-card--soft { border-color: rgba(168, 221, 230, .55); background: var(--band-soft); }
.account-card h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.account-card__lede { margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.account-card form { display: flex; flex: 1; flex-direction: column; }
.account-card .form-row,
.account-card .account-field { margin: 0 0 16px; padding: 0; }
.account-card label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.account-card .required { color: var(--accent-ink); }

.account-card form .form-row input.input-text,
.account-card form .form-row textarea,
.account-card form .form-row select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #dcd9d2;
  border-radius: 12px;
  background: #fff;
  font-size: 15.5px;
  line-height: 1.2;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.account-card form .form-row textarea { height: auto; min-height: 110px; padding: 14px 16px; }
.account-card form .form-row input.input-text:focus,
.account-card form .form-row textarea:focus,
.account-card form .form-row select:focus {
  outline: none;
  border-color: var(--accent-ink);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.account-form__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 18px;
  font-size: 13.5px;
}
.account-card .account-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
}
.account-card .account-check input { width: 16px; height: 16px; margin: 0; accent-color: #000; }
.account-link { color: var(--ink); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; }
.account-link:hover { color: var(--accent-ink); }

.account-card form button[type="submit"] {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  padding: 12px 24px;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.account-card form button[type="submit"]:hover { border-color: #222; background: #222; color: #fff; }
.account-card--soft form button[type="submit"] { border-color: var(--ink); background: transparent; color: var(--ink); }
.account-card--soft form button[type="submit"]:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.account-card__note { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.account-card__back { margin: 18px 0 0; font-size: 14px; }
.account-card__back a { text-decoration: underline; text-underline-offset: 3px; }
.account-card__guest { margin: auto 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.account-card__guest a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.account-card .woocommerce-privacy-policy-text { margin: 0 0 18px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.account-card .woocommerce-privacy-policy-text p { margin: 0; }

/* Password visibility toggle */
.woocommerce form .password-input { position: relative; display: block; }
.woocommerce form .form-row .password-input input.input-text { padding-right: 48px; }
.woocommerce form .show-password-input {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transform: translateY(-50%);
  cursor: pointer;
}
.woocommerce form .show-password-input::before {
  content: "";
  display: block;
  width: 18px;
  height: 11px;
  border: 1.6px solid currentColor;
  border-radius: 50% / 60%;
}
.woocommerce form .show-password-input::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.woocommerce form .show-password-input.display-password { color: var(--accent-ink); }

/* Register benefits */
.account-benefits {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(38, 112, 124, .16);
  list-style: none;
}
.account-benefits li { display: flex; align-items: flex-start; gap: 10px; color: #1d4a52; font-size: 14px; line-height: 1.45; }
.account-benefits__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b3d45;
}
.account-benefits__icon .icon { width: 12px; height: 12px; }

/* Trust strip */
.account-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.account-trust__item { display: flex; align-items: center; gap: 12px; padding: 0 22px; border-right: 1px solid var(--line); }
.account-trust__item:first-child { padding-left: 0; }
.account-trust__item:last-child { padding-right: 0; border-right: 0; }
.account-trust__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent-ink);
}
.account-trust__text { display: flex; flex-direction: column; min-width: 0; }
.account-trust__text strong { font-size: 14px; font-weight: 600; line-height: 1.3; }
.account-trust__text small { color: var(--muted); font-size: 12px; line-height: 1.4; }

/* Logged-in dashboard */
.account-dashboard {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.account-nav-card,
.account-content-card { border: 1px solid var(--line); border-radius: 24px; background: #fff; padding: 26px; }
.account-nav-card { background: #fbfbfb; }
.account-nav-card__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.account-nav-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b3d45;
  font-size: 18px;
  font-weight: 700;
}
.account-nav-card__identity { display: flex; flex-direction: column; min-width: 0; }
.account-nav-card__identity strong { overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.account-nav-card__identity small { color: var(--muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.account-nav-card .woocommerce-MyAccount-navigation ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.account-nav-card .woocommerce-MyAccount-navigation li { border: 0; }
.account-nav-card .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  transition: background .2s ease, color .2s ease;
}
.account-nav-card .woocommerce-MyAccount-navigation a:hover { background: var(--accent-wash); color: var(--accent-ink); }
.account-nav-card .woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: #fff; font-weight: 600; }
.account-content-card { padding: 32px; }
.account-content-card h2 { margin-bottom: 14px; font-size: 24px; font-weight: 600; }
.account-content-card h3 { font-size: 20px; }
.account-content-card p a { text-decoration: underline; text-underline-offset: 3px; }
.account-content-card .woocommerce-Input,
.account-content-card input.input-text,
.account-content-card select,
.account-content-card textarea { border-radius: 10px; }
.account-content-card button.button,
.account-content-card a.button { border-radius: 999px; }
.account-content-card .woocommerce-orders-table__cell-order-actions .button { min-height: 36px; padding: 8px 16px; font-size: 13px; }

/* Orders: table rows as cards */
.woocommerce .account-content-card table.woocommerce-orders-table {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  border-collapse: separate;
  border-spacing: 0 12px;
}
.woocommerce .account-content-card table.woocommerce-orders-table thead th {
  padding: 0 22px 2px;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}
.woocommerce .account-content-card table.woocommerce-orders-table tbody th,
.woocommerce .account-content-card table.woocommerce-orders-table tbody td {
  padding: 18px 22px;
  border: 0;
  background: var(--surface);
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
}
.woocommerce .account-content-card table.woocommerce-orders-table tbody tr > :first-child { border-radius: 16px 0 0 16px; }
.woocommerce .account-content-card table.woocommerce-orders-table tbody tr > :last-child { border-radius: 0 16px 16px 0; }
.account-content-card .woocommerce-orders-table__cell-order-number a { font-weight: 600; }

@media (max-width: 700px) {
  .woocommerce .account-content-card table.woocommerce-orders-table { display: block; }
  .woocommerce .account-content-card table.woocommerce-orders-table thead { display: none; }
  .woocommerce .account-content-card table.woocommerce-orders-table tbody,
  .woocommerce .account-content-card table.woocommerce-orders-table tbody tr { display: block; }
  .woocommerce .account-content-card table.woocommerce-orders-table tbody tr {
    margin-bottom: 12px;
    padding: 8px 0;
    border-radius: 16px;
    background: var(--surface);
  }
  .woocommerce .account-content-card table.woocommerce-orders-table tbody th,
  .woocommerce .account-content-card table.woocommerce-orders-table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 18px;
    border: 0;
    border-radius: 0 !important;
    background: transparent;
    text-align: right;
  }
  .woocommerce .account-content-card table.woocommerce-orders-table tbody th::before,
  .woocommerce .account-content-card table.woocommerce-orders-table tbody td::before {
    content: attr(data-title);
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
  }
}

/* Orders / addresses: notices become wide cards with a pill action */
.account-content-card .woocommerce-info,
.account-content-card .woocommerce-message {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  margin: 0 0 14px;
  padding: 22px 26px;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
.account-content-card .woocommerce-info::before,
.account-content-card .woocommerce-message::before { display: none; }
.account-content-card .woocommerce-info .button,
.account-content-card .woocommerce-message .button {
  order: 2;
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.account-content-card .woocommerce-info .button:hover,
.account-content-card .woocommerce-message .button:hover { background: #222; color: #fff; }

/* Addresses: two bordered cards with a right-aligned edit link */
.account-content-card .woocommerce-Addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
}
.account-content-card .woocommerce-Address {
  float: none;
  width: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 24px 26px;
}
.account-content-card .woocommerce-Address-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 14px;
}
.account-content-card .woocommerce-Address-title h2,
.account-content-card .woocommerce-Address-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}
.account-content-card .woocommerce-Address-title .edit {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.account-content-card .woocommerce-Address-title .edit:hover { color: var(--accent-ink); }
.account-content-card .woocommerce-Address address {
  margin: 0;
  color: #3d3d3d;
  font-size: 15px;
  font-style: italic;
  line-height: 1.65;
}

/* Orders and the address overview sit directly on the page, like the rows above. */
.account-flat .account-content-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* Account forms */
.account-content-card .form-row { margin: 0 0 16px; padding: 0; }
.account-content-card .form-row label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; line-height: 1.35; }
.account-content-card .form-row .description { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.account-content-card #account_display_name_description { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.account-content-card #account_display_name_description em { font-style: normal; }
.account-content-card .woocommerce-EditAccountForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}
.account-content-card .woocommerce-EditAccountForm .clear { display: none; }
.account-content-card .woocommerce-EditAccountForm > .form-row-first,
.account-content-card .woocommerce-EditAccountForm > .form-row-last { grid-column: span 1; }
.account-content-card .woocommerce-EditAccountForm > .form-row-wide,
.account-content-card .woocommerce-EditAccountForm > .form-row:not(.form-row-first):not(.form-row-last) { grid-column: 1 / -1; }
.account-content-card .woocommerce-EditAccountForm fieldset {
  grid-column: 1 / -1;
  margin: 0 0 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.account-content-card .woocommerce-EditAccountForm legend { padding: 0 8px; font-size: 15px; font-weight: 600; }
.account-content-card .woocommerce-EditAccountForm > p:last-of-type { grid-column: 1 / -1; margin: 0; }

/* Notices */
.summit-notices { margin-top: 28px; }
.summit-notices .woocommerce-error,
.summit-notices .woocommerce-message,
.summit-notices .woocommerce-info { margin: 0; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  padding: 14px 18px;
  border-top: 2px solid #000;
  border-radius: var(--radius-sm);
  background: #f7f7f7;
  font-size: 14px;
  list-style: none;
}

/* Primary store actions use the cyan CTA treatment. */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #place_order,
.woocommerce .checkout-button,
.woocommerce .single_add_to_cart_button,
.wc-block-components-button:not(.is-link) {
  border: 0;
  background: var(--accent);
  color: #000;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  transition: background .2s ease, color .2s ease;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #place_order:hover,
.woocommerce .checkout-button:hover,
.woocommerce .single_add_to_cart_button:hover,
.wc-block-components-button:not(.is-link):hover {
  background: var(--accent-hover);
  color: #000;
}

/* The product page CTA stays black instead of using the cyan store accent. */
.single-product.woocommerce button.single_add_to_cart_button {
  background: var(--black);
  color: var(--white);
}

.single-product.woocommerce button.single_add_to_cart_button:hover {
  background: #222;
  color: var(--white);
}

/* Block checkout */
.wc-block-checkout {
  font-family: var(--font);
}

/* Keep the order summary below the pinned header instead of sliding
   underneath it while the checkout form scrolls. */
.wc-block-checkout__sidebar {
  top: calc(var(--header-h) + 24px);
}

.wc-block-checkout .wc-block-components-button:not(.is-link) {
  min-height: 55px;
  border-radius: var(--radius-sm);
  padding: 18px 30px;
}

.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-checkout .wc-block-components-select select {
  border-radius: var(--radius-sm);
  font-family: var(--font);
}

.wc-block-checkout .wc-block-components-title,
.wc-block-checkout .wc-block-components-checkout-step__title {
  font-family: var(--font);
  font-weight: 600;
}

/* Cart line items */
.woocommerce-cart .woocommerce-cart-form__cart-item .product-thumbnail img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: #f7f7f7;
}

.woocommerce-cart .woocommerce-cart-form__cart-item .product-name a {
  font-weight: 600;
}

.woocommerce-cart .cart_totals .shop_table th,
.woocommerce-cart .cart_totals .shop_table td {
  padding: 12px 0;
}

.woocommerce-cart .cart_totals .shop_table {
  border: 0;
  border-radius: 0;
}

.woocommerce-cart .cart_totals .shop_table tr:first-child th,
.woocommerce-cart .cart_totals .shop_table tr:first-child td {
  border-top: 0;
}


/* ==========================================================================
   16. Content pages
   ========================================================================== */
.page-hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 40px;
  padding-block: 60px;
}

.page-hero h1 { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.05; }
.page-hero__tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.page-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.page-stats b { display: block; font-size: 24px; font-weight: 700; line-height: 1.2; }
.page-stats span { display: block; font-size: 12px; color: #6f6f6f; }

.checklist { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 22px; }
.checklist li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.checklist .icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #000; font-size: 15px; font-weight: 700;
}
.checklist h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.checklist p { margin: 0; font-size: 14px; color: #4d4d4d; }

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 20px 0; border: 0; background: none;
  font-size: 17px; font-weight: 500; text-align: left;
}
.faq__q svg { width: 14px; height: 14px; flex: 0 0 auto; transition: transform .2s ease; }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); }
.faq__a { display: none; padding: 0 0 20px; max-width: 900px; font-size: 15px; color: #4d4d4d; }
.faq__item.is-open .faq__a { display: block; }

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 34px;
}

.lab-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}

.lab-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.lab-card img { width: 84px; height: 84px; object-fit: contain; background: #f4f4f4; border-radius: 8px; }
.lab-card h3 { margin: 0 0 4px; font-size: 15px; font-weight: 500; line-height: 1.35; }
.lab-card span { color: var(--accent-ink); font-size: 12px; font-weight: 600; letter-spacing: .04em; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.post-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-card__media { display: block; }
.post-card__body { padding: 20px; }
.post-card h3 { font-size: 18px; font-weight: 500; }
.post-card time { display: block; color: #8a8a8a; font-size: 12px; }

/* Single post */
.single-post-article { max-width: 860px; margin-inline: auto; }
.single-post-article__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: #8a8a8a;
  font-size: 13px;
}
.single-post-article__media { margin: 0 0 30px; }
.single-post-article__media img { width: 100%; height: auto; border-radius: var(--radius); }
.single-post-article__content { font-size: 16px; line-height: 1.75; color: #3a3a3a; }
.single-post-article__content h2,
.single-post-article__content h3,
.single-post-article__content h4 { color: #000; line-height: 1.25; margin: 34px 0 12px; }
.single-post-article__content h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; }
.single-post-article__content h3 { font-size: 22px; font-weight: 600; }
.single-post-article__content p { margin: 0 0 18px; }
.single-post-article__content ul,
.single-post-article__content ol { margin: 0 0 20px; padding-left: 22px; }
.single-post-article__content li { margin-bottom: 8px; }
.single-post-article__content a { text-decoration: underline; }
.single-post-article__content strong { color: #000; }
.single-post-article__footer { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }

/* Search */
.search-block { margin-bottom: 64px; }
.search-block:last-child { margin-bottom: 0; }
.section-heading--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.search-block__count { margin: 0 0 4px; color: #8a8a8a; font-size: 14px; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 60px); align-items: start; }

/* Contact page is enquiry-by-email only: the copy column keeps a readable
   measure instead of stretching across the full container. */
.contact-layout--single { grid-template-columns: minmax(0, 1fr); }
.contact-layout--single > div { max-width: 720px; }

/* ==========================================================================
   17. Gate
   ========================================================================== */
.gate-body { margin: 0; background: #050505; }

.gate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.gate__media {
  position: relative;
  background: #0b0b0b url("assets/img/hero-bg.jpg") center / cover no-repeat;
}

.gate__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55)); }

.gate__logo {
  position: absolute;
  top: 34px;
  left: 34px;
  z-index: 2;
  width: 120px;
}

.gate__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 70px);
  background: #0a0a0a;
  color: #fff;
}

.gate__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.gate h1 { color: #fff; font-size: clamp(30px, 3vw, 42px); line-height: 1.05; margin-bottom: 18px; }
.gate h1 [hidden] { display: none; }
.gate__intro { max-width: 560px; color: #cfcfcf; font-size: 15px; }

.gate__error {
  max-width: 560px;
  margin: 0 0 18px;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: var(--accent-wash);
  color: var(--accent-soft);
  font-size: 14px;
  line-height: 1.5;
}

.gate__form { max-width: 560px; margin-top: 26px; }
.gate__field { margin-bottom: 14px; }
.gate__field input,
.gate__field select {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #2b2b2b;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font-size: 15px;
}
.gate__field input::placeholder { color: #8a8a8a; }

.gate__check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; margin: 14px 0; font-size: 12px; line-height: 1.55; color: #d8d8d8; }
.gate__check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.gate__check a { color: var(--accent-soft); text-decoration: underline; }

.gate__offer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px 0;
  padding: 12px;
  border: 1px dashed #3a3a3a;
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #cfcfcf;
}
.gate__offer b { color: var(--accent-soft); font-size: 22px; letter-spacing: 0; }

.gate .btn { width: 100%; }
.gate__links { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; font-size: 13px; color: #bdbdbd; }
.gate__links a { color: #fff; text-decoration: underline; }
.gate__links a:hover { color: var(--accent-soft); }

/* ==========================================================================
   18. Utilities / responsive
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.hidden { display: none !important; }

@media (max-width: 1180px) {
  .hero__inner { padding-inline: 40px; grid-template-columns: minmax(0, 1fr) .8fr; }
  .advantage__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__main { grid-template-columns: 1.2fr 1fr 1fr; }
  .site-footer__news { grid-column: 1 / -1; }
  ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 1024px) {
  :root { --gutter: 26px; --header-h: 80px; }
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }

  .header-actions { margin-left: auto; }
  /* The wordmark sits below the centre of the logo artwork, so nudge the
     lockup up until "SUMMIT" lines up with the header action icons. */
  .site-brand img { width: 160px; transform: translateY(-11.7px); }
  /* Sit directly under the research bar instead of floating below it. */
  .home .site-header { position: absolute; top: 100%; }

  .hero { min-height: auto; padding-block: 140px 60px; }
  /* The stacked hero lays copy over the artwork across the full width, so the
     sideways scrim becomes a vertical one to keep the white text readable. */
  .hero::after { background: linear-gradient(180deg, rgba(0, 0, 0, .26) 0%, rgba(0, 0, 0, .42) 45%, rgba(0, 0, 0, .62) 100%); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; justify-content: center; }
  .hero__media img { width: min(80%, 520px); }
  .hero__stat { min-width: 100px; padding-right: 18px; margin-right: 18px; }

  .split, .sample-label, .page-hero, .contact-layout { grid-template-columns: 1fr; }
  .split--text-first .split__media { order: 0; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { display: none; }
  .shop-layout.is-filters-open .shop-sidebar { display: grid; }
  .shop-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6px;
  }
  .shop-sidebar__head > span { font-size: 18px; font-weight: 600; }
  .shop-sidebar__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
  }
  .filter-toggle { display: inline-flex; }
  /* The sidebar is hidden here, so the grid takes whatever columns fit at
     the card width used above. */
  ul.products { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px 20px; }
  .single-product div.product { grid-template-columns: 1fr; }
  .account-dashboard { grid-template-columns: 1fr; }
  .woocommerce-checkout .col2-set { grid-template-columns: 1fr; }
  .lab-grid, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__main { grid-template-columns: 1fr 1fr; }
  .gate { grid-template-columns: 1fr; }
  .gate__media { min-height: 260px; }
}

@media (max-width: 640px) {
  :root { --gutter: 18px; --header-h: 72px; }
  .research-banner { font-size: 12px; letter-spacing: .08em; }
  .site-header__inner { gap: 10px; }
  .site-brand img { width: 140px; transform: translateY(-10.2px); }
  .header-actions { gap: 10px; }

  .hero { padding-block: 120px 44px; }
  .hero__title { font-size: 34px; }
  .hero__stats { gap: 18px 0; }
  .hero__stat { min-width: 45%; border-right: 0; padding-right: 0; margin-right: 0; }

  ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .product-card__meta { margin: 10px 0 10px; }
  .product-card__title { font-size: 13px; }
  .product-card__sizes { font-size: 12px; }
  .product-card__price { font-size: 13px; }

  /* Compact pill so price and action share one line inside a phone card,
     with the stepper kept to exactly the same height. */
  .product-card__foot { gap: 8px; }
  .product-card__buy [data-summit-add] { min-width: 0; }
  .product-card .product-card__buy .button {
    min-height: 34px;
    padding: 0 12px;
    gap: 5px;
    font-size: 12px;
  }
  .product-card .product-card__buy .button svg { width: 12px; height: 12px; }
  .product-card__buy .card-qty { min-height: 34px; }
  .product-card__buy .card-qty__btn { flex: 0 0 28px; min-height: 34px; font-size: 14px; }
  .product-card__buy .card-qty__value { min-width: 18px; font-size: 11px; }

  /* Filters, "Show #" and "Sort by" share one row; the result count drops
     to its own line underneath. The selects give up their intrinsic width
     so the three controls fit without wrapping. */
  .shop-toolbar { flex-wrap: wrap; gap: 8px; }
  .shop-toolbar__meta { order: 3; flex: 1 0 100%; width: 100%; gap: 6px 10px; }
  .shop-toolbar .result-count { width: auto; font-size: 13px; }
  .active-filters { margin-left: auto; gap: 6px; }
  .filter-chip { height: 28px; padding: 0 9px 0 11px; font-size: 12px; }
  .shop-toolbar__right { width: auto; flex: 1 1 0; min-width: 0; flex-wrap: nowrap; justify-content: flex-end; gap: 8px; }
  .filter-toggle {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 12px;
    gap: 6px;
    font-size: 13px;
  }
  .per-page-form { flex: 0 0 auto; width: 88px; }
  #summit-per-page { width: 100%; }
  .woocommerce-ordering { flex: 1 1 0; min-width: 0; }
  .shop-toolbar select {
    height: 40px;
    padding: 0 23px 0 9px;
    font-size: 13px;
    background-position: right 8px center;
    background-size: 12px 12px;
  }

  .advantage__grid, .lab-grid, .post-grid { grid-template-columns: 1fr; }
  .site-footer__main { grid-template-columns: 1fr; }
  .summit-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-result__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qty-cart { flex-wrap: wrap; }
  .qty { width: 100%; justify-content: space-between; }
  .btn, .woocommerce a.button, .woocommerce button.button { padding: 18px 24px; }

  /* Vision and contact rows: both pills share one line on phones. */
  .split__body .btn-row,
  .cta .btn-row {
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 24px;
  }

  .split__body .btn-row .btn,
  .cta .btn-row .btn {
    flex: 0 1 auto;
    min-height: 42px;
    padding: 0 10px;
    gap: 6px;
    font-size: 11.5px;
    white-space: nowrap;
  }

  .split__body .btn-row .btn svg,
  .cta .btn-row .btn svg { width: 12px; height: 12px; }
}

@media (max-width: 860px) {
  .account-auth__grid { grid-template-columns: 1fr; }
  .account-auth--single .account-auth__grid { grid-template-columns: minmax(0, 490px); }
  .account-card { padding: 30px; }
  .account-trust { grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
  .account-trust__item { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .account-trust__item:last-child { border-bottom: 0; }
  .account-content-card .woocommerce-Addresses { grid-template-columns: 1fr; }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .account-nav-card .woocommerce-MyAccount-navigation ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .account-masthead { padding-block: 32px 0; }
  .account-masthead .container { padding-bottom: 16px; }
  .account-masthead h1 { font-size: 32px; }
  .account-page { padding-block: 28px 60px; }
  .account-card { padding: 24px; border-radius: 22px; }
  .account-card h2 { font-size: 23px; }
  .account-card__lede { margin-bottom: 20px; }
  .account-form__meta { align-items: flex-start; flex-direction: column; gap: 10px; }
  .account-trust__icon { width: 38px; height: 38px; }
  .account-nav-card,
  .account-content-card { padding: 22px; border-radius: 20px; }
  .account-content-card .woocommerce-EditAccountForm { grid-template-columns: 1fr; }
  .account-content-card .woocommerce-info,
  .account-content-card .woocommerce-message { flex-direction: column; align-items: stretch; padding: 18px 20px; }
  .account-content-card .woocommerce-info .button,
  .account-content-card .woocommerce-message .button { width: 100%; margin: 0; }
  .account-content-card .woocommerce-Address { padding: 20px; }
  .account-content-card .woocommerce-Address-title { flex-wrap: wrap; gap: 8px 16px; }
  .account-content-card .woocommerce-Address-title .edit { margin-left: auto; }
}

/* Very small phones: the two-column card is too narrow to hold a full price
   and a purchase pill side by side, so the price wraps rather than spilling
   out of the card. */
@media (max-width: 400px) {
  .product-card__price { flex: 0 1 auto; white-space: normal; }
  .related-card__price { flex: 0 1 auto; white-space: normal; }
}


/* Hover feedback on every purchase pill: the black Add pill picks up a hint of
   the store accent, and the accent Options pill picks up a hint of black, so
   the pointer target answers back without changing the button's identity. */
.related-card__add:not(.related-card__add--options):hover,
.product-card .product-card__buy .button:not(.product-card__buy-options):hover,
.single-product.woocommerce button.single_add_to_cart_button:hover {
  background: #253133;
  background: color-mix(in srgb, var(--accent) 22%, var(--black));
  color: var(--white);
}

.related-card__add--options:hover,
.product-card .product-card__buy .product-card__buy-options:hover {
  background: #99c9d1;
  background: color-mix(in srgb, var(--black) 9%, var(--accent));
  border-color: #99c9d1;
  border-color: color-mix(in srgb, var(--black) 9%, var(--accent));
  color: var(--ink);
}

/* Touch screens keep :hover on the element they last tapped, so the colour
   change outlived the tap and looked like stuck feedback. Show hover only
   where a real pointer can hover; touch gets :active instead. */
@media (hover: none) {
  .single-product.woocommerce button.single_add_to_cart_button:hover {
    background: var(--black);
    color: var(--white);
  }
  .product-card .product-card__buy .button:hover {
    background: var(--black);
    color: var(--white);
  }
  .product-card .product-card__buy .product-card__buy-options:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
  }
  .related-card__add:hover { background: var(--black); color: var(--white); }
  .related-card__add--options:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
  }
}

/* Taps show the pressed state immediately, then release it. */
.single_add_to_cart_button,
.related-card__add,
.product-card__buy .button { -webkit-tap-highlight-color: transparent; }

/* ==========================================================================
   Unified product card
   The Best Sellers treatment, applied to every card on the site: shop and
   block grids (.product-card) plus the related rails, the cart's "You may
   also like" grid and the homepage rail (.related-card).
   ========================================================================== */

/* Shell: the same rounded outline as the Shop by Category tiles. */
.related-card,
.product-card {
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.related-card:hover,
.product-card:hover {
  border-color: var(--accent-ink);
  box-shadow: var(--shadow);
}

/* Category, name and size/spec sit centred under the image. */
.related-card__cat,
.related-card__title,
.related-card__spec,
.product-card__cat,
.product-card__title,
.product-card__sizes { text-align: center; }

.related-card__body { padding-top: 8px; }

.product-card__meta { margin: 8px 0 10px; }

.related-card__cat,
.product-card__cat { margin: 0 0 4px; }

.related-card__title,
.product-card__title { margin: 0 0 2px; }

.related-card__spec { margin: 0 0 10px; }

.product-card__sizes { margin-top: 2px; }

/* Foot stacks: "From $100.00 CAD" on one centred line, then the purchase
   pill stretched to the card's inner width. */
.related-card__foot,
.product-card__foot {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.related-card__price,
.product-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 5px;
}

.related-card__price .price-from,
.product-card__price .price-from,
.related-card__price del,
.product-card__price del {
  display: inline;
  margin-right: 0;
}

.related-card__action,
.product-card__buy {
  width: 100%;
  justify-content: stretch;
}

.related-card__add,
.related-card__action .card-qty,
.product-card__buy .card-qty {
  width: 100%;
}
