/* ==========================================================================
   WOOCOMMERCE SURFACES
   Styling only — all behaviour comes from WooCommerce and theme hooks.
   Phases 6-9 fill this out. Kept minimal for now so shop pages inherit the
   token system without half-built overrides fighting Astra's defaults.
   No raw colour values.
   ========================================================================== */

/* Adopt the token system on WooCommerce pages so archive/product/cart inherit
   our type, colour and radius scale without re-declaring anything. */
.kl-woo .woocommerce,
.kl-woo .site-main {
  font-family: var(--font-body);
  color: var(--ink);
}

/* --- Buttons -------------------------------------------------------------- */

.kl-woo .woocommerce a.button,
.kl-woo .woocommerce button.button,
.kl-woo .woocommerce input.button,
.kl-woo .woocommerce a.button.alt,
.kl-woo .woocommerce button.button.alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--grad);
  color: var(--brand-ink);
  font-size: var(--t-sm);
  font-weight: 700;
  line-height: 1;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}

.kl-woo .woocommerce a.button:hover,
.kl-woo .woocommerce button.button:hover,
.kl-woo .woocommerce button.button.alt:hover {
  background: var(--grad);
  color: var(--brand-ink);
  transform: translateY(-2px);
  box-shadow: var(--sh);
}

/* --- Prices --------------------------------------------------------------- */

.kl-woo .woocommerce .price { font-weight: 800; color: var(--ink); }
.kl-woo .woocommerce .price del { font-weight: 400; color: var(--ink-45); }
.kl-woo .woocommerce .price ins { text-decoration: none; }

/* --- Notices -------------------------------------------------------------- */

.kl-woo .woocommerce-message,
.kl-woo .woocommerce-info,
.kl-woo .woocommerce-error {
  border-top-color: var(--brand);
  border-radius: var(--r-sm);
  background: var(--wash);
  font-size: var(--t-sm);
}

/* --- Stock state ---------------------------------------------------------- */

.kl-woo .woocommerce .stock.in-stock { color: var(--stock); font-weight: 700; }
.kl-woo .woocommerce .stock.out-of-stock { color: var(--ink-45); font-weight: 700; }

/* --- Star ratings --------------------------------------------------------- */

.kl-woo .woocommerce .star-rating span::before,
.kl-woo .woocommerce .star-rating::before { color: var(--rating); }

/* --- Archive header + two-column layout (6) -------------------------------- */

.shop-head { padding-block: clamp(28px, 4vw, 56px) clamp(22px, 2.8vw, 36px); }
.shop-head h1 {
  margin-top: 14px;
  font-size: var(--t-xl);
  font-weight: var(--w-black);
  line-height: var(--lh-tight);
  letter-spacing: -.042em;
}
.shop-head__desc {
  margin-top: 16px; max-width: 58ch;
  color: var(--ink-70); font-size: var(--t-sm);
}

.kl-woo .woocommerce-products-header,
.kl-woo .ast-archive-description,
.kl-woo .ast-single-entry-banner { display: none; }

.shop-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 34px);
  align-items: start;
  padding-bottom: clamp(48px, 6vw, 90px);
}

/* --- Sidebar --------------------------------------------------------------- */

.shop-side { display: grid; gap: 14px; position: sticky; top: 108px; }

.side-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
}
.side-card__h {
  margin-bottom: 14px;
  font-size: var(--t-2xs); font-weight: var(--w-heavy);
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-45);
}

.side-cats { display: grid; gap: 2px; }
.side-cat {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  font-size: var(--t-sm); font-weight: var(--w-bold);
  color: var(--ink-70);
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.side-cat:hover { background: var(--wash); color: var(--ink); }
.side-cat.is-on { background: var(--brand-wash); color: var(--brand-d); }
.side-cat__n {
  min-width: 26px; padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--wash-2);
  font-size: var(--t-2xs); font-weight: var(--w-heavy);
  text-align: center; color: var(--ink-70);
}
.side-cat.is-on .side-cat__n { background: var(--brand); color: var(--brand-ink); }

/* Toggle switches */
.switch {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0;
  cursor: pointer;
  font-size: var(--t-sm); font-weight: 500; color: var(--ink-70);
}
.switch input {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
.switch__ui {
  position: relative; flex-shrink: 0;
  width: 44px; height: 26px;
  border-radius: var(--r-pill);
  background: var(--wash-2);
  transition: background-color .2s var(--ease);
}
.switch__ui::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--sh-sm);
  transition: transform .2s var(--ease);
}
.switch input:checked + .switch__ui { background: var(--grad); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Hidden once JS can auto-submit; still present for no-JS use. */
.side-card__go { width: 100%; margin-top: 12px; }
.js-filters .side-card__go { display: none; }

.side-search { position: relative; }
.side-search svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px;
  fill: none; stroke: var(--ink-45); stroke-width: 1.8; stroke-linecap: round;
}
.side-search input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font: inherit; font-size: var(--t-sm); color: var(--ink);
}

/* --- Toolbar --------------------------------------------------------------- */

.shop-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-bottom: var(--gap);
}
.shop-bar__n { font-size: var(--t-sm); color: var(--ink-70); font-weight: 500; }

.kl-woo .woocommerce .woocommerce-ordering { margin: 0 0 var(--gap); }
.kl-woo .woocommerce .woocommerce-ordering select {
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--paper);
  font: inherit; font-size: var(--t-sm); font-weight: var(--w-bold);
  color: var(--ink); cursor: pointer;
}

/* Sorting select is rendered inside .shop-bar, so no positioning hacks. */
.shop-bar .woocommerce-ordering { margin: 0; }

/* --- Archive grid ---------------------------------------------------------- */

.kl-woo .woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: var(--gap);
  margin: 0; padding: 0; list-style: none;
}
.kl-woo .woocommerce ul.products::before,
.kl-woo .woocommerce ul.products::after { content: none; }
.kl-woo .woocommerce ul.products li.product {
  width: auto !important; float: none !important;
  margin: 0 !important; padding: 0; clear: none !important;
}
.kl-woo .woocommerce ul.products li.product > .card { height: 100%; }

.woocommerce-no-products-found { padding: 40px 0; color: var(--ink-70); }

/* --- Pagination ------------------------------------------------------------ */

.kl-woo .woocommerce nav.woocommerce-pagination { margin-top: clamp(28px, 3.4vw, 44px); }
.kl-woo .woocommerce nav.woocommerce-pagination ul {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; border: 0;
}
.kl-woo .woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0; overflow: visible; }
.kl-woo .woocommerce nav.woocommerce-pagination ul li a,
.kl-woo .woocommerce nav.woocommerce-pagination ul li span {
  display: grid; place-items: center;
  min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: var(--t-sm); font-weight: var(--w-bold);
}
.kl-woo .woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--grad); border-color: transparent; color: var(--brand-ink);
}
.kl-woo .woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--wash); }

@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-side { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .shop-bar { flex-direction: column; align-items: stretch; }
}
@media (max-width: 600px) {
  .kl-woo .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kl-woo .woocommerce .woocommerce-ordering select { width: 100%; }
  .shop-side { grid-template-columns: 1fr; }
}

/* --- Single product (7) ----------------------------------------------------
   Two columns: gallery left on a tinted panel, summary right. */

.kl-woo.single-product div.product {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(24px, 3.4vw, 56px);
  align-items: start;
  width: 100%;
  max-width: calc(var(--shell-max) + var(--shell-pad) * 2);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
  padding-block: clamp(24px, 3.4vw, 48px);
}

.kl-woo.single-product div.product .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--grad-soft);
  overflow: hidden;
}
.kl-woo.single-product div.product .woocommerce-product-gallery img { border-radius: var(--r-md); }

.kl-woo.single-product div.product .summary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.kl-woo .single-product div.product .product_title {
  font-size: var(--t-lg);
  font-weight: var(--w-black);
  letter-spacing: -.03em;
  line-height: var(--lh-tight);
}

/* Rating row directly under the title */
.kl-woo .single-product .woocommerce-product-rating {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 0;
}
.kl-woo .single-product .woocommerce-product-rating .star-rating { margin: 0; float: none; }
.kl-woo .single-product .woocommerce-review-link { font-size: var(--t-sm); color: var(--ink-45); }

/* Spec chips */
.pdp-specs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.spec-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  font-size: var(--t-sm); color: var(--ink-70);
}
.spec-chip svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--brand); }
.spec-chip b { color: var(--ink); font-weight: var(--w-heavy); }

/* Handling notice */
.pdp-notice {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 18px; padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--brand-wash);
  font-size: var(--t-sm); color: var(--ink-70);
  line-height: var(--lh-snug);
}
.pdp-notice svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--brand-d); margin-top: 1px; }
.pdp-notice strong, .pdp-notice b { color: var(--brand-d); font-weight: var(--w-heavy); }

/* --- Variant card grid ------------------------------------------------------ */

.pdp-label {
  display: block; margin: 26px 0 14px;
  font-size: var(--t-2xs); font-weight: var(--w-heavy);
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-45);
}

.variant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.variant {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 16px 16px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  font: inherit; text-align: left; cursor: pointer;
  transition: border-color .16s var(--ease), background-color .16s var(--ease),
              box-shadow .16s var(--ease), transform .16s var(--ease);
}
.variant:hover { border-color: var(--brand-l); transform: translateY(-2px); }
.variant.is-on {
  border-color: var(--brand);
  background: var(--brand-wash);
  box-shadow: var(--sh-sm);
}
.variant.is-out { opacity: .45; cursor: not-allowed; }
.variant:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.variant__flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: 10px; font-weight: var(--w-heavy);
  letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap;
}
.variant__flag--pick { background: var(--grad); color: var(--brand-ink); }
.variant__flag--best { background: var(--ink); color: var(--paper); }

.variant__label { font-size: var(--t-base); font-weight: var(--w-heavy); }
.variant__price { font-size: var(--t-sm); font-weight: var(--w-heavy); color: var(--brand-d); }
.variant__price .amount { color: inherit; }
.variant__was {
  font-size: var(--t-xs); color: var(--ink-45); text-decoration: line-through;
}
.variant__unit {
  width: 100%; margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: var(--t-xs); color: var(--ink-45);
}
.variant__unit.is-best { color: var(--stock); font-weight: var(--w-bold); }

/* Native dropdowns are kept in the DOM for WooCommerce's own JS, but hidden. */
.kl-woo .single-product .variations { display: none; }

@media (max-width: 900px) { .variant-grid { grid-template-columns: repeat(2, 1fr); } }

/* --- Add to cart ------------------------------------------------------------ */

.kl-woo .single-product div.product form.cart { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.kl-woo .single-product div.product form.cart .quantity input {
  min-height: 52px; width: 92px; padding: 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill);
  font: inherit; font-weight: var(--w-bold); text-align: center;
}
.kl-woo .single-product div.product form.cart .single_add_to_cart_button { flex: 1 1 200px; min-height: 52px; }
.kl-woo .single-product div.product .woocommerce-variation-price { margin-bottom: 8px; }
.kl-woo .single-product div.product .woocommerce-variation-price .price { font-size: var(--t-lg); font-weight: var(--w-black); }

/* --- Trust blocks ----------------------------------------------------------- */

.pdp-trust { display: grid; gap: 10px; margin-top: 26px; }
.pdp-trust__item {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--wash);
}
.pdp-trust__item h3 { font-size: var(--t-sm); font-weight: var(--w-heavy); margin-bottom: 6px; }
.pdp-trust__item p { font-size: var(--t-sm); color: var(--ink-70); }

/* --- Below the fold --------------------------------------------------------- */

.pdp-block {
  width: 100%;
  max-width: calc(var(--shell-max) + var(--shell-pad) * 2);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
  padding-block: clamp(24px, 3.4vw, 44px);
}
.pdp-block h2 { font-size: var(--t-md); font-weight: var(--w-heavy); margin-bottom: 14px; }
.pdp-block__body { max-width: 72ch; color: var(--ink-70); }

.kl-woo .related.products,
.kl-woo .up-sells {
  width: 100%;
  max-width: calc(var(--shell-max) + var(--shell-pad) * 2);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
  padding-block: clamp(28px, 4vw, 56px);
}
.kl-woo .related.products > h2,
.kl-woo .up-sells > h2 { font-size: var(--t-lg); font-weight: var(--w-black); margin-bottom: var(--gap); }

@media (max-width: 900px) {
  .kl-woo.single-product div.product { grid-template-columns: 1fr; }
}

/* --- Cart drawer (§8) ------------------------------------------------------ */

.cart-drawer { position: fixed; inset: 0; z-index: 200; }
.cart-drawer[hidden] { display: none; }

.cart-drawer__scrim {
  position: absolute; inset: 0;
  background: rgb(16 22 28 / .45);
  opacity: 0;
  transition: opacity .26s var(--ease);
}
.cart-drawer.is-open .cart-drawer__scrim { opacity: 1; }

.cart-drawer__panel {
  position: absolute; top: 0; right: 0;
  display: flex; flex-direction: column;
  width: min(420px, 100%); height: 100%;
  background: var(--paper);
  box-shadow: var(--sh-lg);
  transform: translateX(100%);
  transition: transform .26s var(--ease);
}
.cart-drawer.is-open .cart-drawer__panel { transform: none; }

.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.cart-drawer__head h2 { font-size: var(--t-md); font-weight: 800; }
.cart-drawer__x {
  width: 40px; height: 40px;
  border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--ink-70);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.cart-drawer__x:hover { background: var(--wash); color: var(--ink); }

.cart-drawer__body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.cart-drawer__inner { display: flex; flex-direction: column; min-height: 100%; }
.cart-drawer__empty { margin-bottom: 16px; color: var(--ink-70); font-size: var(--t-sm); }

.cart-lines { display: grid; gap: 14px; }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: start; }
.cart-line__img img { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; }
.cart-line__body a { font-size: var(--t-sm); font-weight: 700; }
.cart-line__meta { display: block; margin-top: 4px; font-size: var(--t-xs); color: var(--ink-45); }
.cart-line__x { font-size: 1.2rem; color: var(--ink-45); line-height: 1; }
.cart-line__x:hover { color: var(--ink); }

.cart-drawer__foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.cart-drawer__total { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: var(--t-sm); }
.cart-drawer__total strong { font-size: var(--t-md); font-weight: 800; }
.cart-drawer__go { width: 100%; }
.cart-drawer__view { display: block; margin-top: 12px; text-align: center; font-size: var(--t-xs); color: var(--ink-70); }

/* Free-shipping progress */
.ship-prog { margin-bottom: 18px; padding: 14px; border-radius: var(--r-sm); background: var(--wash); }
.ship-prog__txt { font-size: var(--t-xs); color: var(--ink-70); }
.ship-prog__bar { margin-top: 9px; height: 6px; border-radius: var(--r-pill); background: var(--line-2); overflow: hidden; }
.ship-prog__bar span { display: block; height: 100%; border-radius: var(--r-pill); background: var(--grad); transition: width .3s var(--ease); }

@media (max-width: 600px) {
  .cart-drawer__panel { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cart-drawer__panel, .cart-drawer__scrim { transition: none; }
}

/* --- Cart page ------------------------------------------------------------- */

.kl-woo .woocommerce-cart .site-main,
.kl-woo .woocommerce-checkout .site-main {
  width: 100%;
  max-width: calc(var(--shell-max) + var(--shell-pad) * 2);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
  padding-block: clamp(28px, 4vw, 56px);
}

.kl-woo .woocommerce table.shop_table {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  border-collapse: separate;
  overflow: hidden;
}
.kl-woo .woocommerce table.shop_table th { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; }
.kl-woo .woocommerce table.shop_table td { font-size: var(--t-sm); }
.kl-woo .woocommerce .cart_totals h2,
.kl-woo .woocommerce-checkout h3 { font-size: var(--t-md); font-weight: 800; margin-bottom: 12px; }

.kl-woo .woocommerce .coupon input[type="text"],
.kl-woo .woocommerce form .form-row input.input-text,
.kl-woo .woocommerce form .form-row textarea,
.kl-woo .woocommerce form .form-row select {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font: inherit;
  font-size: var(--t-sm);
}

/* --- Checkout (§9) --------------------------------------------------------- */

.kl-woo .woocommerce-checkout #customer_details { margin-bottom: var(--gap); }
.kl-woo .woocommerce-checkout #order_review_heading,
.kl-woo .woocommerce-checkout #order_review {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--wash);
}
.kl-woo .woocommerce-checkout #payment { background: transparent; border-radius: var(--r-md); }
.kl-woo .woocommerce-checkout #payment ul.payment_methods { border-bottom: 1px solid var(--line); padding: 0 0 14px; }
.kl-woo .woocommerce-checkout #payment div.form-row { padding: 14px 0 0; }

@media (min-width: 992px) {
  .kl-woo .woocommerce-checkout form.checkout { display: grid; grid-template-columns: 1.35fr .85fr; gap: var(--gap); align-items: start; }
  .kl-woo .woocommerce-checkout form.checkout #customer_details { grid-column: 1; }
  .kl-woo .woocommerce-checkout form.checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; }
  .kl-woo .woocommerce-checkout form.checkout #order_review { grid-column: 2; grid-row: 2; position: sticky; top: 90px; }
}

/* --- Cart & Checkout Blocks (§8-9) -----------------------------------------
   This install uses WooCommerce's BLOCK cart and checkout (React-rendered),
   not the classic shortcodes. The reference site uses classic + CheckoutWC.
   We keep blocks: they are WooCommerce's maintained default, are mobile-first,
   and avoid a paid dependency. Styling therefore targets wc-block-components-*
   rather than .shop_table / #order_review.

   Only tokens are applied here — no layout surgery. Fighting the block
   layout engine is how checkouts break on WooCommerce updates. */

.kl-woo .wc-block-components-title,
.kl-woo .wp-block-woocommerce-cart h2,
.kl-woo .wp-block-woocommerce-checkout h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Buttons */
.kl-woo .wc-block-components-button:not(.is-link) {
  min-height: 48px;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--grad);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: var(--t-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.kl-woo .wc-block-components-button:not(.is-link):hover {
  transform: translateY(-2px);
  box-shadow: var(--sh);
}

/* Inputs */
.kl-woo .wc-block-components-text-input input,
.kl-woo .wc-block-components-select select,
.kl-woo .wc-block-components-textarea {
  min-height: 48px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  color: var(--ink);
}
.kl-woo .wc-block-components-text-input input:focus,
.kl-woo .wc-block-components-select select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

/* Panels: order summary, totals, sidebar */
.kl-woo .wc-block-components-sidebar .wc-block-components-panel,
.kl-woo .wc-block-cart__sidebar .wc-block-components-order-summary,
.kl-woo .wc-block-checkout__sidebar {
  border-radius: var(--r-md);
}
.kl-woo .wc-block-components-totals-item__value,
.kl-woo .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  font-weight: 800;
  color: var(--ink);
}

/* Product rows */
.kl-woo .wc-block-components-product-name { font-weight: 700; color: var(--ink); }
.kl-woo .wc-block-components-product-name:hover { color: var(--brand); }
.kl-woo .wc-block-cart-item__image img,
.kl-woo .wc-block-components-order-summary-item__image img {
  border-radius: var(--r-sm);
}

/* Payment method radios */
.kl-woo .wc-block-components-radio-control__option { border-radius: var(--r-sm); }
.kl-woo .wc-block-components-radio-control-accordion-option {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  margin-bottom: 8px;
}

/* Notices inherit our palette */
.kl-woo .wc-block-components-notice-banner { border-radius: var(--r-sm); font-size: var(--t-sm); }

/* Give the block cart/checkout our page width, since Astra's container is
   neutralised on these templates by the chrome layout. */
.kl-woo .wp-block-woocommerce-cart,
.kl-woo .wp-block-woocommerce-checkout {
  width: 100%;
  max-width: calc(var(--shell-max) + var(--shell-pad) * 2);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
  padding-block: clamp(24px, 3.4vw, 48px);
}

/* --- Sale flash ----------------------------------------------------------- */

.kl-woo .woocommerce span.onsale {
  min-height: 0;
  min-width: 0;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--brand);
  color: var(--brand-ink);
  font-size: var(--t-xs);
  font-weight: 700;
  line-height: 1.4;
}
