/**
 * KingsMan Fabrics — Shaffer.store visual parity stylesheet.
 * Tokens extracted from https://shaffer.store/ (July 2026).
 */

@import url("https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600&family=Maven+Pro:wght@400;500;600&display=swap");

:root {
  --km-font-heading: Jost, sans-serif;
  --km-font-body: "Maven Pro", sans-serif;
  --km-font-button: "Maven Pro", sans-serif;

  --km-bg: #ffffff;
  --km-bg-soft: #f7f5f0;
  --km-fg: #000000;
  --km-fg-muted: #666666;
  --km-border: #e6e6e6;
  --km-border-2: #e5e4df;

  --km-header-bar: #000000;
  --km-header-bar-text: #ffffff;
  --km-header-solid: #f7f5f0;
  --km-header-text: #000000;
  --km-header-text-on-hero: #ffffff;

  --km-btn-primary: #1b1a1f;
  --km-btn-primary-text: #ffffff;
  --km-sale: #e22828;
  --km-footer: #000000;
  --km-footer-text: #ffffff;
  --km-footer-muted: #808080;

  --km-radius: 0px;
  --km-announce-h: 33px;
  --km-header-h: 74px;
  --km-logo-max-h: 28px;
  --km-card-ratio: 3 / 4;
  --km-section-gap: 6rem;
  --km-ease: 0.2s ease;
}

/* Hide Blocksy chrome — we own header/footer/cart */
.km-shaffer .ct-header,
.km-shaffer header.ct-header,
.km-shaffer [data-header],
.km-shaffer footer.ct-footer,
.km-shaffer #footer,
.km-shaffer .ct-footer,
.km-shaffer .ct-drawer-canvas,
.km-shaffer #offcanvas,
.km-shaffer .ct-panel,
.km-shaffer .ct-mobile-menu,
.km-shaffer .ct-header-search,
.km-shaffer .site-header,
.km-shaffer .ct-skip-link {
  display: none !important;
}

/* Prevent double top offset from theme wrappers */
.km-shaffer #main-container,
.km-shaffer main#main,
.km-shaffer .ct-container-full {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.km-shaffer,
.km-shaffer body {
  font-family: var(--km-font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--km-fg);
  background: var(--km-bg);
  -webkit-font-smoothing: antialiased;
}

.km-shaffer h1,
.km-shaffer h2,
.km-shaffer h3,
.km-shaffer h4,
.km-shaffer h5,
.km-shaffer .km-logo,
.km-shaffer .product_title {
  font-family: var(--km-font-heading);
  font-weight: 500;
  color: var(--km-fg);
  letter-spacing: 0.02em;
}

.km-shaffer a {
  color: inherit;
  text-decoration: none;
}

.km-shaffer button,
.km-shaffer .button,
.km-shaffer input,
.km-shaffer select,
.km-shaffer textarea,
.km-shaffer img {
  border-radius: var(--km-radius) !important;
}

/* ========== Announcement ========== */
.km-announce {
  background: var(--km-header-bar);
  color: var(--km-header-bar-text);
  text-align: center;
  font-size: 12px;
  line-height: var(--km-announce-h);
  letter-spacing: 0.04em;
  position: relative;
  z-index: 200;
}

.km-announce--scroll {
  overflow: hidden;
  text-align: left;
}

.km-announce__track {
  display: flex;
  width: max-content;
  animation: km-announce-left 28s linear infinite;
}

.km-announce__track--right {
  animation-name: km-announce-right;
}

.km-announce__track span {
  padding-right: 3rem;
  white-space: nowrap;
}

@keyframes km-announce-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes km-announce-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .km-announce__track {
    animation: none;
    width: 100%;
    justify-content: center;
  }
  .km-announce--scroll {
    text-align: center;
  }
  .km-announce__track span:last-child {
    display: none;
  }
}

/* ========== Header (Shaffer: logo-left + icons-right + hamburger) ========== */
.km-site-header {
  position: sticky;
  top: 0;
  z-index: 190;
  height: var(--km-header-h);
  background: var(--km-header-solid);
  color: var(--km-header-text);
  border-bottom: 1px solid var(--km-border);
  transition: background var(--km-ease), color var(--km-ease), border-color var(--km-ease);
  overflow: hidden;
}

.km-site-header.is-transparent {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--km-announce-h);
  background: transparent;
  color: var(--km-header-text-on-hero);
  border-bottom-color: transparent;
}

.km-site-header.is-transparent.is-scrolled,
.home .km-site-header.is-scrolled {
  position: sticky;
  top: 0;
  background: var(--km-header-solid);
  color: var(--km-header-text);
  border-bottom-color: var(--km-border);
}

.km-site-header__inner {
  max-width: 100%;
  height: 100%;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.km-site-header__left {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-self: start;
}

.km-logo {
  font-size: 1.35rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  line-height: 1;
}

.km-logo img {
  max-height: var(--km-logo-max-h);
  width: auto;
  display: block;
}

.km-site-footer .km-logo img {
  max-height: calc(var(--km-logo-max-h) * 1.35);
}

.km-icon-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.35rem;
  cursor: pointer;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.km-icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.km-site-header__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
}

.km-cart-count {
  font-size: 11px;
  margin-left: 2px;
  min-width: 1em;
}

/* ========== Drawers ========== */
.km-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--km-ease);
  z-index: 300;
}

.km-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.km-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(400px, 92vw);
  background: #fff;
  color: #000;
  z-index: 310;
  transform: translateX(0);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: none;
}

.km-drawer--left {
  left: 0;
  transform: translateX(-105%);
}

.km-drawer--right {
  right: 0;
  transform: translateX(105%);
}

.km-drawer.is-open.km-drawer--left,
.km-drawer.is-open.km-drawer--right {
  transform: translateX(0);
}

.km-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--km-border);
  font-family: var(--km-font-heading);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.km-drawer__body {
  padding: 1.5rem;
  overflow: auto;
  flex: 1;
}

.km-nav-drawer a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--km-border);
}

.km-nav-drawer a:hover {
  opacity: 0.6;
}

/* ========== Hero ========== */
.km-hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--km-announce-h));
  background: #111;
  color: #fff;
  overflow: hidden;
}

.km-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}

.km-hero__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.km-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--km-header-h) + 2rem) 2.5rem 3rem;
  pointer-events: none;
}

.km-hero__overlay a,
.km-hero__overlay button {
  pointer-events: auto;
}

.km-hero__titles {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  margin-top: 18vh;
}

.km-hero__titles h2 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
  max-width: 10ch;
}

.km-hero__cta {
  align-self: flex-start;
  margin-top: auto;
  color: #fff;
  border-bottom: 1px solid #fff;
  padding-bottom: 4px;
  font-size: 15px;
}

.km-hero__nav {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.km-hero__nav button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

/* ========== Sections ========== */
.km-section {
  padding: var(--km-section-gap) 1.5rem;
}

.km-section--flush {
  padding-left: 0;
  padding-right: 0;
}

.km-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0 1.5rem;
}

.km-section__head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
}

.km-section__head a {
  font-size: 14px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.km-section__title-center {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 2.5rem;
}

/* Collection strip heroes */
.km-collection-hero {
  position: relative;
  min-height: 70vh;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
}

.km-collection-hero h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.km-collection-hero a {
  color: #fff;
  border-bottom: 1px solid #fff;
  padding-bottom: 3px;
}

.km-collection-hero--no-title a {
  margin-top: 0;
}

/* Signature tiles */
.km-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.km-tile {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--km-bg-soft);
  display: block;
}

.km-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.km-tile:hover img {
  transform: scale(1.04);
}

.km-tile__label {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  color: #fff;
  font-family: var(--km-font-heading);
  font-size: 1.25rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.km-tile__cta {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  color: #fff;
  font-size: 13px;
  border-bottom: 1px solid #fff;
}

/* Reviews */
.km-reviews {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.km-review {
  display: none;
  padding: 1rem 0 2rem;
}

.km-review.is-active {
  display: block;
}

.km-review blockquote {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--km-fg-muted);
  margin: 0 0 1.5rem;
  font-weight: 400;
}

.km-review cite {
  font-style: normal;
  font-family: var(--km-font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

/* Editorial */
.km-editorial {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 70vh;
}

.km-editorial__media {
  background: var(--km-bg-soft);
  background-size: cover;
  background-position: center;
  min-height: 420px;
}

.km-editorial__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
  background: var(--km-bg-soft);
}

.km-editorial__body h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 1rem;
}

.km-editorial__body p {
  color: var(--km-fg-muted);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

.km-editorial__body a {
  align-self: flex-start;
  border-bottom: 1px solid #000;
  padding-bottom: 3px;
}

/* ========== Product grid / cards (Shaffer: left-aligned) ========== */
.km-shaffer ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1.5rem 1rem;
  margin: 0 !important;
  padding: 0 1.5rem !important;
  list-style: none;
}

.km-shaffer ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  text-align: left;
  box-shadow: none;
  border: 0;
  background: transparent;
  position: relative;
}

.km-product-card-media {
  position: relative;
  aspect-ratio: var(--km-card-ratio);
  overflow: hidden;
  background: var(--km-bg-soft);
  margin-bottom: 0.85rem;
}

.km-product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s ease;
}

.km-product-card-media .km-hover-image {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.km-product-card-media:hover .km-hover-image {
  opacity: 1;
}

.km-product-card-media:hover .km-primary-image {
  opacity: 0;
}

.km-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3em 0.55em;
  background: #fff;
  color: #666;
  border: 0;
}

.km-badge--sale {
  color: var(--km-sale);
}

.km-badge--coming-soon {
  background: #000;
  color: #fff;
}

.km-shaffer ul.products li.product .woocommerce-loop-product__title,
.km-shaffer .woocommerce-loop-product__title {
  font-family: var(--km-font-body) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  margin: 0 0 0.35rem !important;
  text-align: left;
}

.km-shaffer ul.products li.product .price {
  font-size: 13px;
  font-weight: 500;
  color: #000;
  text-align: left;
  display: block;
}

.km-shaffer ul.products li.product .price del {
  color: #808080;
  margin-right: 0.35rem;
}

.km-shaffer ul.products li.product .price ins {
  color: var(--km-sale);
  text-decoration: none;
}

.km-price-unit {
  color: var(--km-fg-muted);
  font-weight: 400;
}

.km-shaffer ul.products li.product .button,
.km-shaffer ul.products li.product .add_to_cart_button {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 4.5rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--km-ease), transform var(--km-ease), background var(--km-ease), color var(--km-ease);
  background: #fff !important;
  color: #000 !important;
  border: 0 !important;
  font-size: 12px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85em !important;
  text-align: center;
  text-decoration: none !important;
}

.km-shaffer ul.products li.product:hover .button,
.km-shaffer ul.products li.product:hover .add_to_cart_button,
.km-shaffer ul.products li.product .button.km-in-cart,
.km-shaffer ul.products li.product .add_to_cart_button.km-in-cart,
.km-shaffer ul.products li.product .button.added,
.km-shaffer ul.products li.product .add_to_cart_button.added {
  opacity: 1;
  transform: translateY(0);
}

/* Hide WooCommerce’s injected “View cart” — drawer + In-cart state cover this. */
.km-shaffer ul.products li.product a.added_to_cart.wc-forward {
  display: none !important;
}

/* Already in cart — always visible, filled so it’s unmistakable. */
.km-shaffer ul.products li.product .button.km-in-cart,
.km-shaffer ul.products li.product .add_to_cart_button.km-in-cart,
.km-shaffer ul.products li.product .button.added,
.km-shaffer ul.products li.product .add_to_cart_button.added {
  background: #111 !important;
  color: #fff !important;
}

.km-shaffer ul.products li.product .button.km-just-added,
.km-shaffer ul.products li.product .add_to_cart_button.km-just-added {
  background: #1a7f4b !important;
  color: #fff !important;
}

@media (hover: none) {
  /* Touch: show ATC on cards so the control isn’t hover-only. */
  .km-shaffer ul.products li.product .button.add_to_cart_button,
  .km-shaffer ul.products li.product a.add_to_cart_button {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Archive toolbar */
.km-archive-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--km-border);
  font-size: 14px;
}

.km-archive-title {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  padding: 2.5rem 1.5rem 0.5rem;
  margin: 0;
}

/* ========== PDP (Shaffer: stacked gallery | sticky summary) ========== */
/* Kill Blocksy container constraints so PDP can go edge-to-edge */
.km-shaffer.single-product {
  --theme-container-width: 100%;
  --theme-block-max-width: 100%;
  --theme-block-width: 100%;
  --theme-normal-container-max-width: 100%;
  --theme-narrow-container-max-width: 100%;
  --theme-boxed-content-max-width: 100%;
}

.km-shaffer.single-product #main,
.km-shaffer.single-product #main-container,
.km-shaffer.single-product .ct-container-full,
.km-shaffer.single-product .site-content,
.km-shaffer.single-product article.product,
.km-shaffer.single-product .hero-section,
.km-shaffer.single-product .hero-section.is-width-constrained {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-inline: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}

/* Blocksy wraps gallery + summary — make THAT the full-bleed 2-col grid */
.km-shaffer.single-product .product-entry-wrapper,
.km-shaffer.single-product .product-entry-wrapper.is-width-constrained,
body.km-shaffer.single-product .product-entry-wrapper.is-width-constrained {
  display: grid !important;
  grid-template-columns: minmax(0, 58%) minmax(320px, 42%) !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  margin-inline: 0 !important;
  padding: 0 !important;
  align-items: start;
  box-sizing: border-box;
}

/* Only the main product article — never related/upsell cards (.product) */
.km-shaffer.single-product article.product {
  display: block !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

/* Related / upsells: full-width grid (PDP full-bleed rules must not collapse cards) */
.km-shaffer.single-product section.related,
.km-shaffer.single-product section.upsells,
.km-shaffer.single-product .related.products,
.km-shaffer.single-product .up-sells.products,
.km-shaffer.single-product .upsells.products {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 3rem 0 0 !important;
  margin-inline: 0 !important;
  padding: 0 1.5rem 3rem !important;
  box-sizing: border-box;
  clear: both;
}

.km-shaffer.single-product section.related .ct-module-title,
.km-shaffer.single-product section.upsells .ct-module-title,
.km-shaffer.single-product .related.products .ct-module-title,
.km-shaffer.single-product .up-sells .ct-module-title {
  margin: 0 0 1.5rem !important;
  text-align: left;
}

.km-shaffer.single-product section.related ul.products,
.km-shaffer.single-product section.upsells ul.products,
.km-shaffer.single-product .related ul.products,
.km-shaffer.single-product .up-sells ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1.5rem 1rem !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  list-style: none !important;
}

.km-shaffer.single-product section.related ul.products li.product,
.km-shaffer.single-product section.upsells ul.products li.product,
.km-shaffer.single-product .related ul.products li.product,
.km-shaffer.single-product .up-sells ul.products li.product {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

.km-shaffer.single-product section.related .woocommerce-loop-product__title,
.km-shaffer.single-product section.upsells .woocommerce-loop-product__title,
.km-shaffer.single-product .related .woocommerce-loop-product__title,
.km-shaffer.single-product .up-sells .woocommerce-loop-product__title {
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere;
  writing-mode: horizontal-tb !important;
}

.km-shaffer.single-product .woocommerce-product-gallery,
.km-shaffer.single-product .km-product-gallery,
.km-shaffer.single-product .entry-summary,
.km-shaffer.single-product .summary {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  opacity: 1 !important;
  grid-column: auto !important;
}

/* Vertical stacked gallery — one image per row */
.km-shaffer.single-product .woocommerce-product-gallery__wrapper,
.km-shaffer.single-product .km-product-gallery__stack {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
  max-width: none !important;
  width: 100% !important;
  transform: none !important;
}

.km-shaffer.single-product .woocommerce-product-gallery__image,
.km-shaffer.single-product .km-product-gallery .woocommerce-product-gallery__image {
  display: block !important;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.km-shaffer.single-product .woocommerce-product-gallery__image img,
.km-shaffer.single-product .wp-post-image {
  width: 100% !important;
  height: auto !important;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Single image — one full-width frame, no multi-image chrome */
.km-shaffer.single-product .km-gallery--single .woocommerce-product-gallery__wrapper,
.km-shaffer.single-product .km-gallery--single .km-product-gallery__stack {
  gap: 0 !important;
}

.km-shaffer.single-product .km-gallery--single .woocommerce-product-gallery__image img {
  aspect-ratio: 3 / 4;
}

.km-shaffer.single-product .summary,
.km-shaffer.single-product .entry-summary {
  position: sticky;
  top: calc(var(--km-announce-h) + var(--km-header-h) + 1rem);
  align-self: start;
  padding: 2.25rem 2.75rem 3rem !important;
  max-height: calc(100vh - var(--km-announce-h) - var(--km-header-h));
  overflow-y: auto;
}

.km-shaffer .woocommerce-breadcrumb {
  font-size: 12px;
  color: var(--km-fg-muted);
  margin-bottom: 1rem !important;
}

/* Prefer single breadcrumb in summary */
.km-shaffer.single-product .ct-breadcrumbs,
.km-shaffer.single-product .rank-math-breadcrumb {
  display: none !important;
}

.km-shaffer.single-product .product_title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  margin: 0 0 0.85rem;
  line-height: 1.2;
}

.km-shaffer.single-product .price {
  font-size: 17px;
  font-weight: 500;
  color: #000;
  margin-bottom: 0.35rem;
}

.km-shipping-note {
  font-size: 13px;
  color: var(--km-fg-muted);
  margin: 0 0 1.5rem;
}

.km-shaffer.single-product .variations {
  margin-bottom: 0.25rem;
  width: 100%;
}

.km-shaffer.single-product .variations tr {
  display: block;
  margin-bottom: 1rem;
}

.km-shaffer.single-product .variations td,
.km-shaffer.single-product .variations th {
  display: block;
  padding: 0;
  border: 0;
  text-align: left;
}

.km-shaffer.single-product .variations th label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.km-shaffer.single-product .variations select {
  border: 1px solid var(--km-border);
  padding: 0.65rem 0.75rem;
  width: 100%;
  background: #fff;
}

.km-shaffer.single-product form.cart {
  margin-top: 0.75rem;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0;
}

.km-shaffer.single-product form.cart .woocommerce-variation-add-to-cart,
.km-shaffer.single-product form.cart .ct-cart-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  gap: 0.65rem !important;
  width: 100% !important;
}

/* Quantity — compact stepper, same visual weight as purchase buttons */
.km-shaffer.single-product form.cart .quantity,
.km-shaffer.single-product .ct-cart-actions .quantity {
  position: relative;
  display: flex !important;
  align-items: stretch;
  width: 100% !important;
  max-width: 9.5rem !important;
  height: 52px !important;
  margin: 0.85rem 0 0 !important;
  border: 1px solid #1a1a1a !important;
  background: #fff;
  border-radius: 0 !important;
  --quantity-height: 52px;
  --quantity-width: 9.5rem;
  order: 0 !important;
  box-sizing: border-box;
}

.km-shaffer.single-product .quantity .qty {
  border: 0 !important;
  height: 52px !important;
  min-height: 52px !important;
  width: 100% !important;
  padding: 0 2.25rem !important;
  text-align: center;
  background: transparent !important;
  box-shadow: none !important;
  font-family: var(--km-font-body) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em;
  color: #000 !important;
  border-radius: 0 !important;
  -moz-appearance: textfield;
}

.km-shaffer.single-product .quantity .qty::-webkit-outer-spin-button,
.km-shaffer.single-product .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.km-shaffer.single-product .quantity .ct-increase,
.km-shaffer.single-product .quantity .ct-decrease {
  width: 2.25rem !important;
  max-width: none !important;
  color: #000;
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.km-shaffer.single-product .quantity .ct-increase:hover,
.km-shaffer.single-product .quantity .ct-decrease:hover {
  opacity: 1;
  color: #000;
}

/* Purchase buttons — equal height, refined type, black hover */
.km-shaffer.single-product .single_add_to_cart_button,
.km-shaffer.single-product .km-btn-outline,
.km-shaffer .km-btn-outline {
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  min-height: 52px !important;
  height: 52px !important;
  background: #fff !important;
  color: #000 !important;
  border: 1px solid #1a1a1a !important;
  padding: 0 1.35rem !important;
  font-family: var(--km-font-body) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: 0.06em !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
}

.km-shaffer.single-product .single_add_to_cart_button:hover,
.km-shaffer.single-product .single_add_to_cart_button:focus,
.km-shaffer.single-product .km-btn-outline:hover,
.km-shaffer.single-product .km-btn-outline:focus,
.km-shaffer .km-btn-outline:hover,
.km-shaffer .km-btn-outline:focus {
  background: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}

.km-shaffer.single-product .single_add_to_cart_button:active,
.km-shaffer.single-product .km-btn-outline:active {
  transform: translateY(1px);
}

.km-enquire-btn {
  display: flex !important;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  background: #25d366 !important;
  color: #fff !important;
  border: 0 !important;
  padding: 1rem 1.25rem !important;
  font-size: 15px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin: 0 0 0.25rem !important;
  border-radius: 0 !important;
}

.km-enquire-btn:hover {
  filter: brightness(0.95);
  color: #fff !important;
}

.km-enquire-btn__icon {
  flex: 0 0 auto;
}

.km-enquire-btn--primary {
  background: #000 !important;
}

.km-coming-soon-panel {
  border-top: 1px solid var(--km-border);
  border-bottom: 1px solid var(--km-border);
  padding: 1.25rem 0;
  margin: 1rem 0;
}

.km-coming-soon-panel__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--km-fg-muted);
}

.km-coming-soon-panel__text {
  font-family: var(--km-font-heading);
  font-size: 1.35rem;
  margin: 0.35rem 0 1rem;
}

/* Accordion-ish description */
.km-shaffer.single-product .woocommerce-tabs {
  clear: both;
  grid-column: 1 / -1;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.km-shaffer.single-product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 1rem;
  border: 0;
  display: flex;
  gap: 1.5rem;
}

.km-shaffer.single-product .woocommerce-tabs ul.tabs li {
  border: 0 !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.km-shaffer.single-product .woocommerce-tabs ul.tabs li a {
  font-family: var(--km-font-heading);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0 !important;
  border-bottom: 1px solid transparent;
}

.km-shaffer.single-product .woocommerce-tabs ul.tabs li.active a {
  border-bottom-color: #000;
}

/* ========== Cart drawer items ========== */
#km-cart-drawer-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 0 !important;
}

.km-cart-empty {
  color: var(--km-fg-muted);
  text-align: center;
  padding: 3rem 1.5rem;
}

.km-cart-lines {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0 1.5rem;
  min-height: 0;
}

.km-cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.85rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--km-border);
  align-items: start;
  transition: opacity 0.2s ease;
}

.km-cart-line.is-updating,
.km-qty.is-updating {
  opacity: 0.55;
  pointer-events: none;
}

.km-cart-line img {
  width: 72px;
  height: 96px;
  object-fit: cover;
}

.km-cart-line__title {
  font-size: 14px;
  margin: 0 0 0.25rem;
  line-height: 1.35;
}

.km-cart-line__title a {
  color: inherit;
  text-decoration: none;
}

.km-cart-line__meta {
  font-size: 12px;
  color: var(--km-fg-muted);
  margin: 0 0 0.65rem;
}

.km-cart-line__unit {
  opacity: 0.8;
}

.km-cart-line__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.km-cart-line__total {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.km-cart-line__remove a,
.km-cart-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 22px;
  line-height: 1;
  color: var(--km-fg-muted);
  text-decoration: none;
}

.km-cart-line__remove a:hover,
.km-cart-remove:hover {
  color: #000;
}

/* Qty stepper — cart drawer, cart page, checkout */
.km-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #1a1a1a;
  background: #fff;
  height: 36px;
}

.km-qty__btn {
  width: 34px;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.km-qty__btn:hover {
  background: #f3f3f3;
}

.km-qty__input {
  width: 3.25rem !important;
  min-width: 0;
  border: 0 !important;
  border-left: 1px solid #e5e5e5 !important;
  border-right: 1px solid #e5e5e5 !important;
  border-radius: 0 !important;
  text-align: center;
  font-size: 13px !important;
  padding: 0 0.15rem !important;
  height: 100% !important;
  -moz-appearance: textfield;
  box-shadow: none !important;
}

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

.km-cart-drawer__foot {
  flex: 0 0 auto;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--km-border);
  background: #fff;
}

.km-cart-drawer__foot .km-btn-outline,
.km-cart-drawer__checkout {
  margin-top: 0.35rem;
}

.km-cart-drawer__total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
  font-weight: 500;
  font-size: 15px;
}

.km-cart-drawer__note {
  margin: 0 0 0.85rem;
  font-size: 12px;
  color: var(--km-fg-muted);
}

.km-cart-drawer__view-cart {
  display: block;
  text-align: center;
  margin-top: 0.85rem;
  font-size: 13px;
  color: var(--km-fg-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.km-cart-drawer__view-cart:hover {
  color: #000;
}

/* Classic cart page qty */
.km-shaffer.woocommerce-cart .quantity,
.km-shaffer.woocommerce-cart .km-qty {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.km-shaffer.woocommerce-cart table.cart .qty {
  width: 4rem !important;
  min-height: 36px;
  pointer-events: auto !important;
}

/* ========== Footer ========== */
.km-site-footer {
  background: var(--km-footer);
  color: var(--km-footer-text);
  padding: 4rem 2rem 2rem;
}

.km-site-footer a {
  color: var(--km-footer-text);
}

.km-site-footer a:hover {
  color: #fff;
  opacity: 0.75;
}

.km-site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.km-site-footer__brand p {
  color: var(--km-footer-muted);
  line-height: 1.7;
  font-size: 14px;
  max-width: 28ch;
}

.km-site-footer h4 {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  font-family: var(--km-font-body);
  font-weight: 500;
}

.km-site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.km-site-footer li {
  margin: 0 0 0.65rem;
  font-size: 14px;
}

.km-site-footer__bottom {
  border-top: 1px solid #222;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 13px;
  color: var(--km-footer-muted);
  max-width: 1200px;
  margin: 0 auto;
}

/* Search overlay */
.km-search {
  position: fixed;
  inset: 0;
  z-index: 320;
  background: #fff;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 20vh 1.5rem;
}

.km-search.is-open {
  display: flex;
}

.km-search form {
  width: min(640px, 100%);
  display: flex;
  border-bottom: 1px solid #000;
}

.km-search input {
  flex: 1;
  border: 0;
  font-size: 1.25rem;
  padding: 0.75rem 0;
  outline: none;
  font-family: var(--km-font-body);
}

.km-search__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

/* Content width for CMS pages */
.km-shaffer .entry-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  line-height: 1.7;
  color: var(--km-fg-muted);
}

.km-shaffer .entry-content h1,
.km-shaffer .entry-content h2,
.km-shaffer .entry-content h3 {
  color: var(--km-fg);
  margin: 2rem 0 0.85rem;
}

.km-shaffer .entry-content h1 {
  margin-top: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.km-shaffer .entry-content ul {
  padding-left: 1.2rem;
  margin: 0.75rem 0 1.25rem;
}

.km-shaffer .entry-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.km-payment-delivery {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--km-border);
  background: #fafafa;
}

.km-payment-delivery h3 {
  margin-top: 0 !important;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.km-zone-a-list {
  columns: 2;
  gap: 1.5rem;
}

.km-shaffer .entry-header {
  text-align: center;
  padding: 3rem 1.5rem 0;
}

.km-shaffer .entry-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

/* Responsive */
@media (max-width: 980px) {
  .km-tiles {
    grid-template-columns: 1fr 1fr;
  }
  .km-shaffer ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .km-shaffer.single-product section.related ul.products,
  .km-shaffer.single-product section.upsells ul.products,
  .km-shaffer.single-product .related ul.products,
  .km-shaffer.single-product .up-sells ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .km-shaffer.single-product .product-entry-wrapper,
  .km-shaffer.single-product .product-entry-wrapper.is-width-constrained {
    grid-template-columns: 1fr !important;
  }
  .km-shaffer.single-product .summary,
  .km-shaffer.single-product .entry-summary {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 1.5rem !important;
  }
  .km-editorial {
    grid-template-columns: 1fr;
  }
  .km-site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .km-hero__titles {
    flex-direction: column;
    margin-top: 12vh;
  }
}

@media (max-width: 600px) {
  .km-tiles {
    grid-template-columns: 1fr;
  }
  .km-site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Size pills (Shaffer) ========== */
.km-variation-wrap {
  position: relative;
  margin: 0.75rem 0 1rem;
}

.km-variation-wrap > select {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
}

.km-size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.km-size-pill {
  appearance: none;
  background: #fff;
  border: 1px solid var(--km-border);
  color: #000;
  padding: 0.65rem 1.1rem;
  font-family: var(--km-font-body);
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px !important;
  min-width: 4.5rem;
  text-align: center;
}

.km-size-pill.is-active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.km-size-pill:hover {
  border-color: #000;
}

.km-colour-note {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--km-fg-muted);
  margin: 0.35rem 0 1rem;
}

.km-corporate-link {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 14px;
}

.km-corporate-link a {
  text-decoration: underline;
}

.km-buy-now {
  margin-top: 0.65rem !important;
}

/* Filter drawer */
.km-filter-trigger {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.km-filter-form h4 {
  font-family: var(--km-font-heading);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 1.5rem 0 0.75rem;
}

.km-filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  font-size: 14px;
  cursor: pointer;
}

.km-filter-option em {
  color: var(--km-fg-muted);
  font-style: normal;
  font-size: 12px;
}

.km-filter-clear {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 13px;
  text-decoration: underline;
  color: var(--km-fg-muted);
}

/* Sticky ATC */
.km-sticky-atc {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border-top: 1px solid var(--km-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.km-sticky-atc.is-visible {
  display: flex;
}

.km-sticky-atc__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.km-sticky-atc__info strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.km-sticky-atc__info span {
  font-size: 12px;
  color: var(--km-fg-muted);
}

.km-sticky-atc__btn {
  flex-shrink: 0;
  background: #000 !important;
  color: #fff !important;
  border: 0 !important;
  padding: 0.85rem 1.1rem !important;
  font-size: 13px !important;
}

@media (min-width: 981px) {
  .km-sticky-atc {
    display: none !important;
  }
}

/* Newsletter */
.km-newsletter {
  background: var(--km-bg-soft);
  text-align: center;
  padding: 5rem 1.5rem;
}

.km-newsletter h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.km-newsletter p {
  color: var(--km-fg-muted);
  margin: 0 0 1.75rem;
}

.km-newsletter form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border-bottom: 1px solid #000;
}

.km-newsletter input[type="email"] {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.85rem 0;
  font-size: 1rem;
  outline: none;
  font-family: var(--km-font-body);
}

.km-newsletter button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.85rem 0 0.85rem 1rem;
  font-family: var(--km-font-body);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}

.km-newsletter__note {
  margin-top: 1rem;
  font-size: 13px;
  color: var(--km-fg-muted);
}

/* Hide Woo/Flexslider gallery chrome — we render a custom stacked gallery */
.km-shaffer.single-product .flex-control-thumbs,
.km-shaffer.single-product .flex-direction-nav,
.km-shaffer.single-product .woocommerce-product-gallery__trigger,
.km-shaffer.single-product .woocommerce-product-gallery .zoomImg {
  display: none !important;
}

/* Hide leftover Blocksy/page lists in accessibility dump areas */
.km-shaffer .ct-header-text,
.km-shaffer .widget_pages,
.km-shaffer aside.widget_pages {
  display: none !important;
}

/* ========== Checkout — luxury redesign ========== */
.km-shaffer.woocommerce-checkout {
  background:
    radial-gradient(1200px 480px at 12% -10%, rgba(255, 255, 255, 0.9), transparent 55%),
    radial-gradient(900px 520px at 100% 0%, rgba(232, 224, 210, 0.55), transparent 50%),
    var(--km-bg-soft);
}

/* Break out of Blocksy / WP constrained content width */
.km-shaffer.woocommerce-checkout .entry-content,
.km-shaffer.woocommerce-checkout .entry-content.is-layout-constrained,
.km-shaffer.woocommerce-checkout .ct-container,
.km-shaffer.woocommerce-checkout .ct-container-full {
  max-width: none !important;
  width: 100% !important;
}

.km-shaffer.woocommerce-checkout .entry-content.is-layout-constrained > *,
.km-shaffer.woocommerce-checkout .entry-content > * {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Blocksy sets form.checkout / .ct-woocommerce-checkout to a 2-col grid — kill it */
.km-shaffer.woocommerce-checkout form.checkout,
.km-shaffer.woocommerce-checkout form.woocommerce-checkout,
.km-shaffer.woocommerce-checkout .ct-woocommerce-checkout {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
}

.km-shaffer.woocommerce-checkout .site-main > .woocommerce,
.km-shaffer.woocommerce-checkout .ct-container .woocommerce,
.km-shaffer.woocommerce-checkout .woocommerce {
  max-width: none !important;
  margin: 0;
  padding: 0;
  width: 100% !important;
}

.km-shaffer.woocommerce-checkout .entry-header,
.km-shaffer.woocommerce-checkout .page-title,
.km-shaffer.woocommerce-checkout .wp-block-post-title,
.km-shaffer.woocommerce-checkout h1.entry-title {
  display: none !important;
}

.km-checkout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 5rem;
}

.km-checkout__intro {
  text-align: center;
  margin-bottom: 2.75rem;
  animation: kmCheckoutIn 0.55s ease both;
}

.km-checkout__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--km-fg-muted);
}

.km-checkout__title {
  margin: 0 0 1rem;
  font-family: var(--km-font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.km-checkout__path {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--km-fg-muted);
}

.km-checkout__path a {
  color: var(--km-fg-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--km-ease), border-color var(--km-ease);
}

.km-checkout__path a:hover {
  color: #000;
  border-bottom-color: #000;
}

.km-checkout__path .is-current {
  color: #000;
}

.km-checkout__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 2rem 3rem;
  align-items: start;
}

.km-checkout__main {
  min-width: 0;
  animation: kmCheckoutIn 0.65s ease 0.05s both;
}

.km-checkout__aside {
  position: sticky;
  top: calc(var(--km-announce-h) + var(--km-header-h) + 0.75rem);
  background: #16151a;
  color: #f7f4ee;
  padding: 1.6rem 1.5rem 1.75rem;
  animation: kmCheckoutIn 0.7s ease 0.12s both;
}

/* Force readable contrast inside the dark order panel (beat Blocksy/Woo greys). */
.km-checkout__aside,
.km-checkout__aside * {
  color: inherit;
}

.km-checkout__aside a {
  color: #fff !important;
}

.km-checkout #customer_details,
.km-checkout .col-1,
.km-checkout .col-2 {
  width: 100% !important;
  float: none !important;
  max-width: none !important;
}

.km-checkout__panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.75rem 1.6rem 1.5rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(6px);
}

.km-checkout__panel--shipping {
  margin-bottom: 0;
}

.km-checkout__section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem 1rem;
  align-items: start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.km-checkout__step {
  font-family: var(--km-font-heading);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--km-fg-muted);
  line-height: 1.6;
  padding-top: 0.2rem;
}

.km-checkout__section-head h3 {
  font-family: var(--km-font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 0.3rem;
  letter-spacing: 0.02em;
}

.km-checkout__section-head h3 label {
  font-size: inherit !important;
  letter-spacing: inherit !important;
  text-transform: none !important;
  color: inherit !important;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
}

.km-checkout__section-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--km-fg-muted);
}

.km-shaffer.woocommerce-checkout .form-row {
  margin: 0 0 1rem !important;
  padding: 0 !important;
}

.km-shaffer.woocommerce-checkout .form-row label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c574f;
  margin: 0 0 0.45rem;
  font-weight: 500;
}

.km-shaffer.woocommerce-checkout .form-row label .required {
  color: #b42318 !important;
  text-decoration: none;
  border: 0;
  font-weight: 500;
}

.km-shaffer.woocommerce-checkout .form-row label .optional {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #9a948a;
}

.km-shaffer.woocommerce-checkout .input-text,
.km-shaffer.woocommerce-checkout select,
.km-shaffer.woocommerce-checkout textarea,
.km-shaffer.woocommerce-checkout .select2-container .select2-selection--single {
  border: 0 !important;
  border-bottom: 1px solid #9f9688 !important;
  background: transparent !important;
  border-radius: 0 !important;
  min-height: 48px;
  padding: 0.65rem 0 !important;
  font-size: 15px !important;
  color: #111 !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.km-shaffer.woocommerce-checkout textarea.input-text {
  min-height: 96px;
  resize: vertical;
}

.km-shaffer.woocommerce-checkout .input-text:hover,
.km-shaffer.woocommerce-checkout select:hover {
  border-bottom-color: #8f8779 !important;
}

.km-shaffer.woocommerce-checkout .input-text:focus,
.km-shaffer.woocommerce-checkout select:focus,
.km-shaffer.woocommerce-checkout textarea:focus {
  border-bottom-color: #111 !important;
  background: rgba(255, 255, 255, 0.55) !important;
  outline: none;
}

.km-shaffer.woocommerce-checkout .select2-container--default .select2-selection--single {
  border: 0 !important;
  border-bottom: 1px solid #cfc7ba !important;
  background: transparent !important;
  border-radius: 0 !important;
  height: 48px;
  display: flex;
  align-items: center;
}

.km-shaffer.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0 !important;
  line-height: 1.4;
  color: #111;
}

.km-shaffer.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 10px;
  right: 0;
}

.km-shaffer.woocommerce-checkout .form-row-first,
.km-shaffer.woocommerce-checkout .form-row-last {
  width: 48.5% !important;
}

.km-shaffer.woocommerce-checkout .km-field-phone label::after {
  content: " — required for delivery";
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
  color: #9a948a;
  font-weight: 400;
}

.km-shaffer.woocommerce-checkout .km-cod-checkout-note {
  margin: 0.25rem 0 0;
  padding: 0.95rem 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  font-size: 13px;
  color: var(--km-fg-muted);
  line-height: 1.55;
}

.km-shaffer.woocommerce-checkout .km-cod-checkout-note p {
  margin: 0 0 0.35rem;
}

.km-shaffer.woocommerce-checkout .km-cod-checkout-note p:last-child {
  margin-bottom: 0;
}

.km-checkout__aside-title,
.km-checkout__aside #order_review_heading,
.km-shaffer.woocommerce-checkout .entry-content .km-checkout__aside-title,
.km-shaffer.woocommerce-checkout .entry-content #order_review_heading {
  margin: 0 0 1.25rem !important;
  font-family: var(--km-font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff !important;
}

.km-checkout__summary-toggle {
  display: none;
}

.km-checkout-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.9rem;
  padding: 0.15rem 0 1.15rem;
}

.km-checkout-line__media img,
.km-checkout-thumb {
  width: 64px !important;
  height: 84px !important;
  object-fit: cover;
  display: block;
  background: #2a2930;
}

.km-checkout-line__top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.km-checkout-line__title {
  font-size: 14px;
  line-height: 1.35;
  color: #ffffff !important;
}

.km-checkout-line__price {
  font-size: 13px;
  white-space: nowrap;
  color: #f0ebe3 !important;
}

.km-checkout-line__qty {
  margin-top: 0.65rem;
}

.km-checkout__aside .km-qty {
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  background: rgba(255, 255, 255, 0.08);
  height: 34px;
}

.km-checkout__aside .km-qty__btn {
  color: #ffffff !important;
  opacity: 1 !important;
}

.km-checkout__aside .km-qty__btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.km-checkout__aside .km-qty__input {
  color: #ffffff !important;
  background: transparent !important;
  border-left: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.35) !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #ffffff;
}

.km-checkout-lines,
.km-checkout-lines tbody,
.km-checkout-lines tfoot,
.km-checkout-lines tr,
.km-checkout-lines th,
.km-checkout-lines td {
  border: 0 !important;
  background: transparent !important;
}

.km-checkout-lines {
  width: 100%;
  margin: 0 0 0.5rem;
}

.km-checkout-lines td,
.km-checkout-lines th {
  padding: 0 !important;
  color: inherit;
}

.km-checkout-totals th,
.km-checkout-totals td {
  padding: 0.55rem 0 !important;
  font-size: 13px;
  font-weight: 400;
  color: #e8e2d8 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.km-checkout-totals th {
  text-align: left;
}

.km-checkout-totals td {
  text-align: right;
}

.km-checkout-totals .order-total th,
.km-checkout-totals .order-total td {
  padding-top: 0.95rem !important;
  font-family: var(--km-font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.04em;
}

.km-checkout-totals .woocommerce-Price-amount,
.km-checkout-line__price .woocommerce-Price-amount {
  color: inherit;
}

.km-checkout__aside .woocommerce-shipping-totals ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.km-checkout__aside .woocommerce-shipping-totals li {
  margin: 0.2rem 0;
}

.km-checkout__aside .woocommerce-shipping-totals label {
  color: #f0ebe3 !important;
  font-size: 13px;
}

.km-checkout__pay-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.km-checkout__pay-head h3 {
  margin: 0;
  font-family: var(--km-font-heading);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff !important;
}

.km-checkout__step--light {
  color: #d4cbbd !important;
  padding-top: 0;
}

.km-shaffer.woocommerce-checkout #payment {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin-top: 0;
}

.km-shaffer.woocommerce-checkout #payment ul.payment_methods {
  border: 0 !important;
  padding: 0 0 1rem !important;
  margin: 0 !important;
}

.km-shaffer.woocommerce-checkout #payment ul.payment_methods li {
  margin: 0 0 0.65rem !important;
  padding: 0 !important;
  list-style: none;
}

.km-shaffer.woocommerce-checkout #payment ul.payment_methods label {
  color: #ffffff !important;
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* Hide empty COD / gateway description boxes */
.km-shaffer.woocommerce-checkout #payment div.payment_box:empty,
.km-shaffer.woocommerce-checkout #payment div.payment_box:blank {
  display: none !important;
}

.km-shaffer.woocommerce-checkout #payment div.payment_box {
  display: none !important; /* Long gateway copy removed — keep panel clean */
}

.km-shaffer.woocommerce-checkout #payment div.payment_box::before {
  display: none !important;
}

.km-shaffer.woocommerce-checkout #payment .woocommerce-privacy-policy-text {
  color: #d8d2c6 !important;
  font-size: 12px;
  line-height: 1.5;
}

.km-shaffer.woocommerce-checkout #payment .woocommerce-privacy-policy-text a {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.km-shaffer #place_order {
  background: #f5f2eb !important;
  color: #16151a !important;
  border: 0 !important;
  width: 100%;
  min-height: 54px;
  padding: 1rem 1.25rem !important;
  font-family: var(--km-font-heading) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 0.85rem !important;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.km-shaffer #place_order:hover {
  background: #fff !important;
  color: #000 !important;
  transform: translateY(-1px);
}

.km-checkout__trust {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 0.45rem;
}

.km-checkout__trust li {
  position: relative;
  padding-left: 1rem;
  font-size: 12px;
  color: #d8d2c6 !important;
  letter-spacing: 0.02em;
}

.km-checkout__trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  background: #c4a574;
}

.km-shaffer.woocommerce-checkout .woocommerce-form__label-for-checkbox {
  display: inline-flex !important;
  align-items: flex-start;
  gap: 0.55rem;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 14px !important;
  color: #222 !important;
  cursor: pointer;
}

.km-shaffer.woocommerce-checkout .woocommerce-info,
.km-shaffer.woocommerce-checkout .woocommerce-message,
.km-shaffer.woocommerce-checkout .woocommerce-error {
  max-width: 1180px;
  margin: 1rem auto;
  padding: 0.95rem 1.25rem !important;
  border-top: 0 !important;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  list-style: none !important;
}

@keyframes kmCheckoutIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .km-checkout__intro,
  .km-checkout__main,
  .km-checkout__aside {
    animation: none;
  }

  .km-shaffer #place_order:hover {
    transform: none;
  }
}

@media (max-width: 960px) {
  .km-checkout {
    padding: 1.5rem 1rem 4rem;
  }

  .km-checkout__layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .km-checkout__aside {
    position: static;
    order: -1;
    padding: 0;
    background: #16151a;
  }

  .km-checkout__summary-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: transparent;
    border: 0;
    color: #f5f2eb;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .km-checkout__summary-toggle svg {
    transition: transform 0.2s ease;
  }

  .km-checkout__aside.is-collapsed .km-checkout__summary-toggle svg {
    transform: rotate(-90deg);
  }

  .km-checkout__aside.is-collapsed .km-checkout__aside-title,
  .km-checkout__aside.is-collapsed .km-checkout__review,
  .km-checkout__aside.is-collapsed .km-checkout__trust {
    display: none;
  }

  .km-checkout__aside-title,
  .km-checkout__review,
  .km-checkout__trust {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .km-checkout__trust {
    padding-bottom: 1.25rem;
  }

  .km-checkout__panel {
    padding: 1.35rem 1.15rem 1.2rem;
  }

  .km-shaffer.woocommerce-checkout .form-row-first,
  .km-shaffer.woocommerce-checkout .form-row-last {
    width: 100% !important;
  }
}
