/* ============================================================
   PackHouse Design Images — commerce + storefront layer
   Layout utilities (from the handoff commerce.css), homepage
   section structure, the dark chrome, image placeholders, and the
   WooCommerce skin (shop archive, single product, block cart &
   checkout). All colour/type/spacing come from packhouse-tokens.
   ============================================================ */

/* ---- Page scaffold ----
   Kadence renders the content in <main id="inner-wrap">. Inner pages get a
   light surface; the homepage runs its own full-bleed dark/light sections. */
body.packhouse #inner-wrap { background: var(--surface-page); }
/* The homepage runs full-bleed dark/light bands; #inner-wrap has no Kadence
   container child on this template, so neutralising it here is sufficient. */
body.home #inner-wrap {
  background: var(--surface-inverse-deep);
  max-width: none;
  padding: 0;
  margin: 0;
}

/* ============================================================
   CHROME — announcement bar, header, footer
   ============================================================ */
.pk-announce {
  background: var(--ph-black);
  border-bottom: 1px solid var(--line-on-dark);
  color: var(--text-muted-on-dark);
}
.pk-announce .ph-container {
  display: flex; align-items: center; justify-content: center; gap: var(--space-6);
  height: 38px; flex-wrap: wrap;
}
.pk-announce span {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: var(--tracking-label-tight); color: var(--text-muted-on-dark);
  display: inline-flex; align-items: center; gap: 8px;
}
.pk-announce span b { color: var(--ph-red); font-weight: 400; }

.pk-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5,5,5,0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-on-dark);
}
.pk-header__bar {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.pk-brand { display: flex; align-items: center; gap: 12px; }
.pk-brand img { width: 32px; height: 32px; }
.pk-brand__name {
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  letter-spacing: 0.02em; color: var(--text-on-dark); text-transform: uppercase; line-height: 1;
}
.pk-brand__name .dot { color: var(--ph-red); }
.pk-brand__sub {
  display: block; font-family: var(--font-mono); font-weight: 400; font-size: 9px;
  letter-spacing: 0.22em; color: var(--text-muted-on-dark); margin-top: 3px;
}
.pk-nav-desktop { display: flex; align-items: center; gap: 30px; }
body.packhouse .pk-nav-desktop a {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--text-muted-on-dark);
  transition: color var(--dur-base) var(--ease-out); padding-block: 6px;
}
body.packhouse .pk-nav-desktop a:hover,
body.packhouse .pk-nav-desktop a.is-active { color: var(--ph-red-bright); }
.pk-header__actions { display: flex; align-items: center; gap: 12px; }

body.packhouse .pk-cart-pill {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border: 1px solid var(--line-on-dark);
  background: var(--ph-charcoal-2); color: var(--text-on-dark);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: var(--tracking-label-tight);
  text-transform: uppercase; border-radius: var(--radius-xs);
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
body.packhouse .pk-cart-pill:hover { border-color: var(--ph-red); background: var(--ph-charcoal-3); }
.pk-cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px; background: var(--ph-red);
  color: #fff; font-size: 11px; border-radius: var(--radius-pill);
}

/* mobile nav toggle */
.pk-nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--line-on-dark);
  background: var(--ph-charcoal-2); border-radius: var(--radius-xs); cursor: pointer;
  flex-direction: column; gap: 4px;
}
.pk-nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--text-on-dark); }
.pk-nav-mobile { display: none; border-top: 1px solid var(--line-on-dark); background: rgba(5,5,5,0.92); }
.pk-nav-mobile.is-open { display: block; }
body.packhouse .pk-nav-mobile a {
  display: block; padding: 14px var(--gutter); font-family: var(--font-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
}
body.packhouse .pk-nav-mobile a:hover { color: var(--ph-red-bright); }

/* Keyboard focus across the chrome and card links (WCAG 2.4.7). */
.pk-brand:focus-visible,
.pk-nav-desktop a:focus-visible,
.pk-nav-mobile a:focus-visible,
.pk-cart-pill:focus-visible,
.pk-nav-toggle:focus-visible,
.pk-linklist a:focus-visible,
.pk-pack:focus-visible {
  outline: 2px solid var(--ph-red-bright);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .pk-nav-desktop { display: none !important; }
  .pk-nav-toggle { display: flex; }
}

/* footer */
.pk-footer { background: var(--surface-inverse-deep); border-top: 1px solid var(--line-on-dark); color: var(--text-on-dark); }
.pk-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-6); }
@media (max-width: 860px) { .pk-foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .pk-foot-grid { grid-template-columns: 1fr; } }
.pk-foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-4); }
.pk-foot-brand img { width: 30px; height: 30px; }
.pk-foot-brand span {
  font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: 0.02em;
  color: var(--text-on-dark); text-transform: uppercase;
}
.pk-foot-brand span .dot { color: var(--ph-red); }
.pk-foot-about { font-size: var(--text-sm); color: var(--text-muted-on-dark); max-width: 34ch; line-height: 1.6; }
.pk-linklist { display: grid; gap: 10px; }
.pk-linklist a { font-size: var(--text-sm); color: var(--text-muted-on-dark); transition: color var(--dur-base) var(--ease-out); }
.pk-linklist a:hover { color: var(--ph-red-bright); }
.pk-foot-meta {
  margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--line-on-dark);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.pk-foot-meta span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted-on-dark);
}

/* ============================================================
   IMAGE PLACEHOLDER — replaces the design-tool <image-slot>
   Intentional architectural placeholder: dark, blueprint grid,
   logo watermark, optional mono caption.
   ============================================================ */
.ph-imgph {
  position: relative; width: 100%; height: 100%; min-height: 100%;
  display: flex; align-items: flex-end; justify-content: flex-start;
  background-color: var(--ph-charcoal);
  background-image: var(--bg-grid-dark);
  background-size: 28px 28px;
  overflow: hidden;
}
.ph-imgph::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/ph-logo-white.png") no-repeat center / 38% auto;
  opacity: 0.06;
}
.ph-imgph__cap {
  position: relative; z-index: 1; margin: 16px;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--text-muted-on-dark);
}

/* ============================================================
   HOMEPAGE
   ============================================================ */
.pk-product { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-8); align-items: start; }
@media (max-width: 920px) { .pk-product { grid-template-columns: 1fr; gap: var(--space-7); } }

/* hero */
.pk-hero { position: relative; overflow: hidden; background: var(--surface-inverse-deep); border-bottom: 1px solid var(--line-on-dark); }
.pk-hero__logo { position: absolute; right: -6%; bottom: -12%; width: 460px; max-width: 44vw; opacity: 0.06; pointer-events: none; }
.pk-hero__tick { position: absolute; top: 64px; right: var(--gutter); width: 56px; height: 56px; border-top: 2px solid var(--ph-red); border-right: 2px solid var(--ph-red); }
.pk-hero .ph-container { position: relative; padding-block: clamp(4rem, 8vw, 7rem); }
.pk-hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-8); align-items: center; }
@media (max-width: 920px) { .pk-hero__grid { grid-template-columns: 1fr; gap: var(--space-7); } }
.pk-hero__copy { display: flex; flex-direction: column; gap: var(--space-6); }
body.packhouse .pk-hero__title {
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-display-xl);
  line-height: 0.98; letter-spacing: -0.035em; color: var(--text-on-dark);
  text-transform: uppercase; margin: 0; max-width: 16ch;
}
.pk-hero__title .accent { color: var(--ph-red); }
.pk-hero__lead { font-size: var(--text-lead); line-height: 1.55; color: var(--text-muted-on-dark); max-width: 50ch; margin: 0; }
.pk-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: var(--space-1); }
.pk-hero__media { position: relative; }
.pk-hero__media .frame { aspect-ratio: 4 / 3; background: var(--ph-charcoal); border: 1px solid var(--line-on-dark); }
.pk-corner-tl { position: absolute; top: -12px; left: -12px; width: 26px; height: 26px; border-top: 3px solid var(--ph-red); border-left: 3px solid var(--ph-red); z-index: 2; }
.pk-corner-br { position: absolute; bottom: -12px; right: -12px; width: 26px; height: 26px; border-bottom: 3px solid var(--ph-red); border-right: 3px solid var(--ph-red); z-index: 2; }
.pk-hero__media-badges { position: absolute; bottom: 16px; left: 16px; z-index: 2; display: flex; gap: 8px; }

/* ============================================================
   PAGE TITLE HERO — rebrand Kadence's default light title band
   (the lavender overlay) into the dark blueprint header used
   site-wide. Covers cart, checkout, my account & legal pages,
   matching .pk-hero on the homepage.
   ============================================================ */
body.packhouse .entry-hero.page-hero-section,
body.packhouse .entry-hero.product-hero-section {
  position: relative;
  background: var(--surface-inverse-deep);
  border-bottom: 1px solid var(--line-on-dark);
  overflow: hidden;
}
/* Kill Kadence's light overlay tint that produced the lavender wash. */
body.packhouse .entry-hero .hero-section-overlay { display: none; }
body.packhouse .entry-hero .entry-hero-container-inner { background: transparent; }
/* Blueprint grid texture, faded toward the centre so the title stays clean. */
body.packhouse .entry-hero.page-hero-section::before,
body.packhouse .entry-hero.product-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-grid-dark);
  background-size: var(--grid-size) var(--grid-size);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}
/* Red corner tick, echoing the homepage hero. */
body.packhouse .entry-hero.page-hero-section::after,
body.packhouse .entry-hero.product-hero-section::after {
  content: "";
  position: absolute;
  top: var(--space-5);
  right: var(--gutter);
  width: 44px;
  height: 44px;
  border-top: 2px solid var(--ph-red);
  border-right: 2px solid var(--ph-red);
  pointer-events: none;
}
body.packhouse .entry-hero .hero-container { position: relative; z-index: 1; }
body.packhouse .entry-hero.page-hero-section .entry-header,
body.packhouse .entry-hero.product-hero-section .entry-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.packhouse .entry-hero .entry-title {
  color: var(--text-on-dark);
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--text-display-lg);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  text-transform: uppercase;
}
/* Thin red rule beneath the title to anchor it. */
body.packhouse .entry-hero .entry-title::after {
  content: "";
  display: block;
  width: 56px;
  height: var(--border-rule);
  margin: var(--space-4) auto 0;
  background: var(--ph-red);
}
/* Left-aligned titles keep the rule left too. */
body.packhouse .entry-hero .entry-header.title-align-left .entry-title::after {
  margin-inline: 0;
}
body.packhouse .entry-hero .kadence-breadcrumbs,
body.packhouse .entry-hero .kadence-breadcrumbs a { color: var(--text-muted-on-dark); }
body.packhouse .entry-hero .kadence-breadcrumbs a:hover { color: var(--ph-red); }

.pk-trust { display: flex; gap: var(--space-6); flex-wrap: wrap; align-items: center; margin-top: var(--space-3); }
.pk-trust span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-label-tight); color: var(--text-muted-on-dark); }
.pk-trust span b { color: var(--ph-red); }

/* stats band */
.pk-statsband { background: var(--surface-inverse); border-bottom: 1px solid var(--line-on-dark); }
.pk-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
@media (max-width: 980px) { .pk-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pk-grid-4 { grid-template-columns: 1fr; } }

/* category lines */
.pk-lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-strong); border: 1px solid var(--line-strong); }
@media (max-width: 760px) { .pk-lines { grid-template-columns: 1fr; } }
.pk-line-cell { background: var(--surface-card); padding: var(--space-6); }
.pk-line-cell__idx { display: flex; align-items: baseline; gap: 12px; margin-bottom: var(--space-4); }
.pk-line-cell__idx span { font-family: var(--font-mono); font-size: 13px; color: var(--ph-red); }
body.packhouse .pk-line-cell h3 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.12; margin-bottom: var(--space-3); }
.pk-line-cell p { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; }

/* product grid + pack card */
.pk-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .pk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pk-grid { grid-template-columns: 1fr; } }

.pk-thumb {
  position: relative; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--ph-charcoal); border-bottom: 1px solid var(--line-strong);
}
.pk-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pk-card-tag { position: absolute; top: 12px; left: 12px; z-index: 2; }
.pk-price { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; color: var(--text-strong); font-size: 1.5rem; }
.pk-price-sub { color: var(--text-muted); font-size: var(--text-sm); }

.pk-pack { display: block; height: 100%; }
.pk-pack .ph-card { padding: 0; overflow: hidden; height: 100%; }
.pk-pack__body { padding: var(--space-5); }
.pk-pack__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pk-pack__line { margin-bottom: 8px; }
body.packhouse .pk-pack__title { font-size: 1.35rem; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.12; }
.pk-pack__price { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; color: var(--text-strong); font-size: 1.5rem; text-align: right; white-space: nowrap; flex-shrink: 0; }
.pk-pack__meta {
  margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-3);
}
.pk-pack__assets { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.pk-pack__view { font-family: var(--font-mono); font-size: 12px; color: var(--ph-red); display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; flex-shrink: 0; }

.pk-section-flexhead { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: var(--space-5); margin-bottom: var(--space-7); }

/* how it works */
.pk-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-7); }
@media (max-width: 820px) { .pk-steps { grid-template-columns: 1fr; } }
.pk-step { border-top: 2px solid var(--ph-red); padding-top: var(--space-5); }
.pk-step__n { font-family: var(--font-display); font-weight: 800; font-size: 3rem; line-height: 1; color: var(--ph-charcoal-3); letter-spacing: -0.03em; }
body.packhouse .pk-step h3 { color: var(--text-on-dark); font-size: 1.4rem; line-height: 1.12; text-transform: uppercase; letter-spacing: -0.01em; margin-top: var(--space-4); margin-bottom: var(--space-3); }
.pk-step p { font-size: var(--text-sm); color: var(--text-muted-on-dark); line-height: 1.65; }

/* testimonials */
.pk-quote {
  border: 1px solid var(--line-strong); background: var(--surface-card); padding: var(--space-6);
  border-radius: var(--radius-xs); display: flex; flex-direction: column; gap: var(--space-5); box-shadow: var(--shadow-sm);
}
.pk-quote__mark { font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; color: var(--ph-red); line-height: 0.6; height: 20px; }
.pk-quote__text { font-size: var(--text-base); line-height: 1.6; color: var(--text-body); }
.pk-quote__foot { margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: baseline; }
.pk-quote__author { font-weight: 600; font-size: var(--text-sm); color: var(--text-strong); }
.pk-quote__co { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.pk-quote__code { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 0.1em; }

/* newsletter */
.pk-news { background: var(--surface-inverse); border-top: 1px solid var(--line-on-dark); }
.pk-news .ph-container { padding-block: var(--space-9); }
.pk-news__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
@media (max-width: 920px) { .pk-news__grid { grid-template-columns: 1fr; gap: var(--space-6); } }
.pk-news__eyebrow { font-family: var(--font-mono); font-size: var(--text-label); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--ph-red); margin-bottom: var(--space-3); }
body.packhouse .pk-news h2 { color: var(--text-on-dark); font-size: var(--text-h1); line-height: 1.05; text-transform: uppercase; letter-spacing: -0.02em; max-width: 16ch; }
.pk-news p { color: var(--text-muted-on-dark); font-size: var(--text-base); line-height: 1.6; margin-top: var(--space-4); max-width: 44ch; }
.pk-news__form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.pk-news__form .ph-field { flex: 1 1 220px; }
/* dark inputs inside the newsletter */
.pk-news__form .ph-field__input { background: var(--surface-inverse-raised); color: var(--text-on-dark); border-color: var(--line-on-dark); }
.pk-news__form .ph-field__label { color: var(--text-muted-on-dark); }

/* breadcrumb */
.pk-crumb { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: var(--tracking-label-tight); color: var(--text-muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pk-crumb a:hover { color: var(--ph-red); }
.pk-crumb .sep { color: var(--line-strong); }

/* ============================================================
   WOOCOMMERCE — shop archive
   ============================================================ */
.woocommerce-page #inner-wrap,
.woocommerce #inner-wrap { color: var(--text-body); }

/* Archive header (shop) — styled within Kadence's container, not full bleed. */
.woocommerce-products-header { margin-bottom: var(--space-6); }
.woocommerce-products-header__title,
.woocommerce .woocommerce-loop-product__title,
h1.entry-title,
.woocommerce-page h1.entry-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; color: var(--text-strong);
}
.woocommerce-products-header__title { font-size: var(--text-display-lg); }

.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin: 0; padding: 0; list-style: none;
}
@media (max-width: 980px) { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .woocommerce ul.products, .woocommerce-page ul.products { grid-template-columns: 1fr; } }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important; padding: 0 !important;
}
.woocommerce ul.products li.product::before { display: none; }
/* Strip Kadence's loop-entry drop-shadow + white content-bg box; the flat
   bordered card lives on the inner .ph-card. */
.woocommerce ul.products li.product.loop-entry,
.woocommerce-page ul.products li.product.loop-entry {
  box-shadow: none; background: transparent; border: 0;
}

/* WooCommerce loop result count / ordering */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: var(--tracking-label-tight); color: var(--text-muted); }
.woocommerce .woocommerce-ordering select {
  font-family: var(--font-mono); font-size: 12px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs); padding: 8px 10px; background: var(--surface-card); color: var(--text-strong);
}

/* ============================================================
   WOOCOMMERCE — single product
   ============================================================ */
.single-product div.product {
  display: grid; grid-template-columns: 1.15fr 1fr;
  column-gap: var(--space-8); row-gap: var(--space-7); align-items: start;
}
@media (max-width: 920px) { .single-product div.product { grid-template-columns: 1fr; gap: var(--space-7); } }

/* Lower content (tabs, related, up-sells) spans the full content width below
   the gallery/summary buy block instead of being trapped in the two grid
   columns — where the related card was crushed into a third of a half column,
   clipping its price and wrapping its "View pack" link. */
.single-product div.product .woocommerce-tabs,
.single-product div.product .related.products,
.single-product div.product .up-sells.products {
  grid-column: 1 / -1;
}
.single-product div.product .related.products,
.single-product div.product .up-sells.products {
  padding-top: var(--space-6);
  border-top: 1px solid var(--line-strong);
}
.single-product .related.products > h2,
.single-product .up-sells.products > h2 {
  font-family: var(--font-display); font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.05;
  color: var(--text-strong); font-size: var(--text-h2);
  margin: 0 0 var(--space-6);
}

.single-product div.product .woocommerce-product-gallery { width: 100% !important; margin: 0 !important; float: none !important; }
.single-product div.product .woocommerce-product-gallery__image { border: 1px solid var(--line-strong); border-radius: var(--radius-xs); overflow: hidden; }
.single-product div.product .flex-control-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); margin-top: var(--space-3); padding: 0; }
.single-product div.product .flex-control-thumbs li { width: auto; margin: 0; }

.single-product div.product .summary { margin: 0 !important; width: 100% !important; float: none !important; display: flex; flex-direction: column; gap: var(--space-4); }
.single-product div.product .product_title {
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-display-lg);
  text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.02; color: var(--text-strong); margin: 0;
}
.single-product .summary .price,
.single-product .summary .price ins { color: var(--text-strong); }
.single-product .summary .price {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: 2rem;
}
.single-product .summary .woocommerce-product-details__short-description { color: var(--text-body); font-size: var(--text-base); line-height: 1.6; }
.single-product .summary .stock { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: var(--tracking-label-tight); }
.single-product .summary .in-stock { color: var(--status-success); }

/* qty stepper */
.pk-qty, .woocommerce .quantity { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); overflow: hidden; }
.woocommerce .quantity input.qty {
  width: 56px; height: 48px; border: 0;
  text-align: center; font-family: var(--font-mono); font-size: 15px; color: var(--text-strong);
  background: var(--surface-card);
  appearance: none; -webkit-appearance: none; -moz-appearance: textfield;
}
.woocommerce .quantity input.qty::-webkit-inner-spin-button,
.woocommerce .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* Dividers only when WooCommerce's +/- spinner buttons are present. */
.woocommerce .quantity.spinners-added input.qty { border-inline: 1px solid var(--line-strong); }
/* Add-to-cart row: qty stepper + button on one line. Overrides Kadence's
   fixed 70%/63% button width and 60px height, and targets the variable-product
   container too (where qty + button nest under .woocommerce-variation-add-to-cart). */
.woocommerce form.cart,
.single-product div.product .woocommerce-variation-add-to-cart {
  display: flex; gap: var(--space-3); align-items: stretch; flex-wrap: wrap; margin-top: var(--space-2);
}
.single-product div.product form.cart .quantity,
.single-product div.product form.cart .quantity.spinners-added,
.single-product div.product .woocommerce-variation-add-to-cart .quantity { width: auto !important; }
.single-product div.product .button.single_add_to_cart_button {
  width: auto !important; flex: 1 1 auto !important; height: auto !important;
  line-height: 1 !important; font-size: var(--text-base) !important;
}
/* Force the add-to-cart CTA to brand red over Kadence's palette button colour,
   including the variable-product disabled/alt state (dimmed while awaiting a
   variation choice). */
.woocommerce div.product .single_add_to_cart_button,
.woocommerce div.product .single_add_to_cart_button.alt,
.woocommerce div.product .single_add_to_cart_button.disabled,
.woocommerce div.product .single_add_to_cart_button.alt.disabled {
  background-color: var(--action-primary) !important;
  color: var(--action-primary-text) !important;
  border-color: transparent !important;
}
.woocommerce div.product .single_add_to_cart_button.disabled,
.woocommerce div.product .single_add_to_cart_button.wc-variation-selection-needed { opacity: 0.5; }
.woocommerce div.product .single_add_to_cart_button:hover { background-color: var(--action-primary-hover) !important; }

/* Neutralise Kadence's white card box around the product so the two-column
   layout sits edge to edge within the container (the design's .pk-product). */
.single-product div.product.entry-content-wrap { padding: 0; background: transparent; box-shadow: none; }

/* Variable product — variations table, attribute select, variation price. */
.single-product div.product table.variations { width: 100%; border-collapse: collapse; margin: 0 0 var(--space-4); }
.single-product div.product table.variations th,
.single-product div.product table.variations td { padding: 10px 0; vertical-align: middle; text-align: left; border: 0; }
.single-product div.product table.variations th {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: var(--tracking-label-tight);
  font-weight: 400; color: var(--text-muted); font-size: var(--text-xs); width: 34%;
}
.single-product div.product table.variations select {
  font-family: var(--font-mono); font-size: 13px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs); padding: 10px 12px; background: var(--surface-card); color: var(--text-strong); width: 100%;
}
.single-product .woocommerce-variation-price .price,
.single-product .single_variation .price {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: 2rem; color: var(--text-strong);
}
.single-product .woocommerce-variation-availability .stock {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: var(--tracking-label-tight);
}
.single-product a.reset_variations {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-label-tight); color: var(--ph-red);
}

/* spec table + what's included */
.pk-spec { width: 100%; border-collapse: collapse; }
.pk-spec th, .pk-spec td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: var(--text-sm); vertical-align: top; }
.pk-spec th { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: var(--tracking-label-tight); font-weight: 400; color: var(--text-muted); width: 42%; font-size: var(--text-xs); }
.pk-spec td { color: var(--text-body); }
.woocommerce .product .woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.woocommerce .product .woocommerce-product-attributes th,
.woocommerce .product .woocommerce-product-attributes td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: var(--text-sm); }
.woocommerce .product .woocommerce-product-attributes th { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: var(--tracking-label-tight); font-weight: 400; color: var(--text-muted); }

.pk-incl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pk-incl li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--text-sm); color: var(--text-body); }
.pk-incl li::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: 3px; background: var(--ph-red); border-radius: 1px; }

/* product tabs */
.woocommerce-tabs ul.tabs { border: 0; padding: 0; margin: 0 0 var(--space-5); display: flex; gap: var(--space-5); border-bottom: 1px solid var(--line-strong); }
.woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce-tabs ul.tabs li { background: transparent; border: 0; border-radius: 0; padding: 0; margin: 0; }
.woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce-tabs ul.tabs li a {
  font-family: var(--font-mono) !important; font-size: 12px !important; text-transform: uppercase; letter-spacing: var(--tracking-label-tight);
  color: var(--text-muted) !important; padding: 12px 0 !important; border-bottom: 2px solid transparent;
}
.woocommerce-tabs ul.tabs li.active a { color: var(--text-strong) !important; border-bottom-color: var(--ph-red); }
/* Keep tab-panel copy at a comfortable reading measure now the tabs run the
   full width of the page. */
.woocommerce-tabs .woocommerce-Tabs-panel { max-width: 72ch; }
.woocommerce-tabs .woocommerce-Tabs-panel > p { color: var(--text-body); font-size: var(--text-base); line-height: 1.7; margin: 0 0 var(--space-4); }
.woocommerce-tabs .woocommerce-Tabs-panel > p:last-child { margin-bottom: 0; }

/* ============================================================
   WOOCOMMERCE — generic buttons, prices, notices (site-wide)
   ============================================================ */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #respond input#submit,
.woocommerce .button {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.01em;
  background: var(--action-primary); color: var(--action-primary-text);
  border: var(--border-thin) solid transparent; border-radius: var(--radius-xs);
  padding: 13px 24px; line-height: 1; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce .button:hover {
  background: var(--action-primary-hover); color: #fff; transform: translateY(-2px);
}
.woocommerce a.button:active, .woocommerce button.button:active, .woocommerce .button:active { transform: translateY(0) scale(0.98); }
.woocommerce a.button:focus-visible, .woocommerce button.button:focus-visible, .woocommerce .button:focus-visible,
.wc-block-components-button:focus-visible, .wc-block-grid .wp-block-button__link:focus-visible {
  outline: 2px solid var(--ph-red-bright); outline-offset: 2px;
}
.woocommerce .single_add_to_cart_button { flex: 1 1 auto; }
/* secondary / ghost-style button (e.g. "view cart") */
.woocommerce a.added_to_cart {
  display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: var(--tracking-label-tight); color: var(--ph-red); padding: 13px 16px;
}

.woocommerce .price, .woocommerce span.amount { color: var(--text-strong); font-weight: 600; }
.woocommerce del { color: var(--text-muted); }

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info {
  border-top: 2px solid var(--ph-red); border-radius: var(--radius-xs);
  background: var(--surface-card); box-shadow: var(--shadow-sm);
  font-size: var(--text-sm);
}
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before { color: var(--ph-red); }

/* pagination */
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
  font-family: var(--font-mono); font-size: 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); margin: 0 4px;
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ph-red); color: #fff; border-color: var(--ph-red); }

/* ============================================================
   WOOCOMMERCE BLOCKS — cart & checkout skin
   ============================================================ */
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { color: var(--text-body); }

/* headings */
.wc-block-components-title, .wc-block-cart__totals-title, .wc-block-checkout__main-title,
.wp-block-woocommerce-checkout h2, .wp-block-woocommerce-cart h2 {
  font-family: var(--font-display) !important; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; color: var(--text-strong);
}
.wc-block-components-checkout-step__title { font-family: var(--font-display) !important; font-weight: 800; text-transform: uppercase; }

/* step labels / mono detail */
.wc-block-components-checkout-step__heading-content,
.wc-block-components-totals-item__label,
.wc-block-components-order-summary__content {
  font-family: var(--font-body);
}

/* inputs */
.wc-block-components-text-input input,
.wc-block-components-text-input.is-active input,
.wc-block-components-select .wc-block-components-select__container,
.wc-block-components-quantity-selector {
  border-radius: var(--radius-xs) !important;
  border-color: var(--line-strong) !important;
}
.wc-block-components-text-input input:focus {
  border-color: var(--line-ink) !important;
  box-shadow: 0 0 0 3px rgba(255,16,16,0.12) !important;
}
.wc-block-components-text-input label,
.wc-block-components-checkout-step__description { color: var(--text-muted); }

/* totals / summary card */
.wc-block-components-totals-wrapper,
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-cart__totals-title + * {
  border-color: var(--line-strong);
}
.wc-block-components-totals-item__value { font-family: var(--font-body); color: var(--text-strong); }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-family: var(--font-display); font-weight: 800; color: var(--text-strong);
}

/* buttons inside blocks */
.wc-block-components-button:not(.is-link),
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button {
  background: var(--action-primary) !important; color: #fff !important;
  border-radius: var(--radius-xs) !important; font-family: var(--font-display) !important;
  font-weight: 600 !important; text-transform: uppercase; letter-spacing: 0.01em;
}
.wc-block-components-button:not(.is-link):hover { background: var(--action-primary-hover) !important; }

/* proceed to checkout / cart sidebar */
.wc-block-cart__sidebar .wc-block-components-sidebar,
.wp-block-woocommerce-checkout-order-summary-block {
  background: var(--surface-card); border: 1px solid var(--line-strong); border-radius: var(--radius-xs);
  box-shadow: var(--shadow-sm);
}

/* product titles / links in blocks */
.wc-block-components-product-name { color: var(--text-strong); font-weight: 600; }
.wc-block-cart-item__total .wc-block-components-product-price__value { font-weight: 600; color: var(--text-strong); }

/* payment / coupon */
.wc-block-components-totals-coupon__button,
.wc-block-components-totals-coupon .wc-block-components-button { color: var(--ph-red) !important; }
.wc-block-components-totals-coupon__input input {
  border: 1px solid var(--line-strong) !important; border-radius: var(--radius-xs) !important; background: var(--surface-card);
}

/* quantity stepper (block) — red hover, matching the design's pk-qty */
.wc-block-components-quantity-selector__button {
  font-family: var(--font-mono); color: var(--text-strong);
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.wc-block-components-quantity-selector__button:hover { background: var(--ph-red); color: #fff; }
.wc-block-components-quantity-selector__input { font-family: var(--font-mono); color: var(--text-strong); }

/* remove-item link, selected shipping/payment option, field validation */
.wc-block-cart-item__remove-link {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: var(--tracking-label-tight); color: var(--text-muted);
}
.wc-block-cart-item__remove-link:hover { color: var(--ph-red); }
.wc-block-components-radio-control__option--checked-option-highlighted { border-color: var(--ph-red); box-shadow: 0 0 0 1px var(--ph-red); }
.wc-block-components-validation-error { color: var(--ph-red); }

/* empty-cart state + 'New products' block-grid upsell */
.wc-block-cart__empty-cart__title {
  font-family: var(--font-display) !important; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; color: var(--text-strong);
}
.wc-block-grid__product-title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; color: var(--text-strong);
}
.wc-block-grid__product-link, .wc-block-grid__product-title-link { color: var(--text-strong); }
.wc-block-grid .wp-block-button__link,
.wc-block-grid .wp-block-button__link.add_to_cart_button {
  background: var(--action-primary); color: #fff; border-radius: var(--radius-xs);
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.01em;
}
.wc-block-grid .wp-block-button__link:hover { background: var(--action-primary-hover); }

/* ============================================================
   WOOCOMMERCE — my account
   ============================================================ */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); }
.woocommerce-account .woocommerce-MyAccount-navigation li { border-bottom: 1px solid var(--line-soft); }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 16px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: var(--tracking-label-tight); color: var(--text-muted); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--ph-red); }

/* form fields on classic forms (login/account/coupon) */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce .woocommerce-form-login input.input-text,
.woocommerce-cart .coupon input {
  border: var(--border-thin) solid var(--line-strong); border-radius: var(--radius-xs);
  padding: 12px 14px; font-family: var(--font-body); color: var(--text-strong); background: var(--surface-card);
}
.woocommerce form .form-row input.input-text:focus { border-color: var(--line-ink); box-shadow: 0 0 0 3px rgba(255,16,16,0.12); outline: none; }
.woocommerce form .form-row label { font-family: var(--font-mono); font-size: var(--text-label); text-transform: uppercase; letter-spacing: var(--tracking-label-tight); color: var(--text-muted); }

/* ============================================================
   Utility
   ============================================================ */
.ph-flex { display: flex; }
.ph-mt-1 { margin-top: var(--space-1); }
.ph-mt-3 { margin-top: var(--space-3); }
.ph-mt-7 { margin-top: var(--space-7); }
.ph-eyebrow-red { color: var(--ph-red); }
.ph-section--flush-top { padding-top: 0; }
