/* ============================================================
   WC NOISE NUKE — belt-and-suspenders (hooks removed in PHP too)
   ============================================================ */
.woocommerce-breadcrumb,
.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce-store-notice,
.demo_store,
.woocommerce-products-header__title,
.woocommerce-products-header,
.term-description,
.posted_in,
.sku_wrapper,
.tagged_as { display: none !important; }
/* Hide the default WC ul.products — we render our own kc-grid */
.woocommerce ul.products { display: none !important; }

/* ============================================================
   SHOP HERO — title + tagline framed by brand rules
   ============================================================ */
.kc-shop-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px);
  background: linear-gradient(180deg, var(--color-secondary) 0%, var(--color-bg) 100%);
  text-align: center;
}
.kc-shop-hero__title {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.kc-shop-hero__tagline-row {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  max-width: 720px; margin: 0 auto;
}
.kc-shop-hero__rule {
  flex: 1; height: 1px; max-width: 120px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent) 50%, transparent 100%);
}
.kc-shop-hero__tagline {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .kc-shop-hero__rule { max-width: 40px; }
  .kc-shop-hero__tagline { font-size: 11px; letter-spacing: 0.14em; white-space: normal; text-align: center; }
}

/* ============================================================
   SHOP LAYOUT — 1fr 280px grid, sidebar on right
   ============================================================ */
.kc-shop { padding: 32px 0 80px; }
.kc-shop__grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
}
@media (max-width: 960px) {
  .kc-shop__grid { grid-template-columns: 1fr; gap: 32px; }
}
.kc-shop__main { min-width: 0; }

/* Search pill above results */
.kc-shop__pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px; margin-bottom: 24px;
  background: var(--color-secondary);
  border: 1px solid var(--color-border-strong);
  font-size: 13px; color: var(--color-text);
}
.kc-shop__pill-clear { color: var(--color-primary); font-weight: 600; text-decoration: underline; }

.kc-shop__noresults {
  padding: 64px 24px; text-align: center;
  background: var(--color-surface-alt);
  border: 1px dashed var(--color-border-strong);
}
.kc-shop__noresults h3 { margin-bottom: 16px; }

/* ============================================================
   PRODUCT GRID — 3 desktop, 2 tablet, 1 mobile
   ============================================================ */
.kc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .kc-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 600px)  { .kc-grid { grid-template-columns: 1fr; gap: 16px; } }

/* Product card */
.kc-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.kc-card:hover { transform: translateY(-3px); border-color: var(--color-primary); }
.kc-card__imglink { display: block; }
.kc-card__img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--color-secondary);
}
.kc-card__img img,
.kc-card__thumb {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}
.kc-card__noimg { width: 100%; height: 100%; background: var(--color-secondary); }
.kc-card__body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kc-card__title { font-family: var(--font-heading); font-size: 17px; font-weight: 700; line-height: 1.25; margin: 0; }
.kc-card__title a { color: var(--color-text); }
.kc-card__title a:hover { color: var(--color-primary); }
.kc-card__sku { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-dim); font-weight: 600; }
.kc-card__price { font-size: 16px; font-weight: 700; color: var(--color-primary); margin-top: auto; }
.kc-card__price del { color: var(--color-text-dim); font-weight: 400; margin-right: 6px; }
.kc-card__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 16px;
  background: var(--color-primary); color: #fff !important;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border: none; cursor: pointer; touch-action: manipulation; text-decoration: none;
  margin-top: 4px;
}
.kc-card__btn:hover { background: var(--color-primary-dk); color: #fff !important; }
.kc-card__btn--ghost { background: transparent; color: var(--color-primary) !important; border: 1px solid var(--color-primary); }
.kc-card__btn--ghost:hover { background: var(--color-primary); color: #fff !important; }

/* ============================================================
   SIDEBAR BLOCKS
   ============================================================ */
.kc-shop__sidebar { display: flex; flex-direction: column; gap: 24px; }
.kc-side-block {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  padding: 20px;
}
.kc-side-block h4 {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 700;
}
.kc-side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.kc-side-list li { padding-bottom: 10px; border-bottom: 1px solid var(--color-border); }
.kc-side-list li:last-child { border-bottom: none; padding-bottom: 0; }
.kc-side-list a { color: var(--color-text); font-size: 14px; font-weight: 500; }
.kc-side-list a:hover { color: var(--color-primary); }

.kc-side-ruo { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.kc-side-ruo strong { display: block; margin-bottom: 8px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.kc-side-ruo p { margin: 0; font-size: 12px; line-height: 1.55; color: rgba(255,255,255,0.85); }

/* Search form */
.kc-search {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--color-border-strong);
  background: #fff;
}
.kc-search__input {
  flex: 1 1 auto;
  min-width: 0;            /* critical: prevents button bleed */
  border: none;
  padding: 0 12px;
  font: inherit; font-size: 14px;
  background: transparent;
  outline: none;
  color: var(--color-text);
}
.kc-search__input::placeholder { color: var(--color-text-dim); }
.kc-search__btn {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
}
.kc-search__btn:hover { background: var(--color-accent-dk); }
.kc-search__btn svg { width: 20px; height: 20px; display: block; }

/* ============================================================
   BREADCRUMB on single product
   ============================================================ */
.kc-crumbs {
  padding: 16px 0;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.kc-crumbs .kc-container { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kc-crumbs a { color: var(--color-text-muted); }
.kc-crumbs a:hover { color: var(--color-primary); }
.kc-crumbs__sep { color: var(--color-text-dim); }
.kc-crumbs__current { color: var(--color-text); font-weight: 700; }

/* ============================================================
   SINGLE PRODUCT — Revive-style 2-col hero
   ============================================================ */
.kc-prod { padding: 48px 0 0; }
.kc-prod__hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 960px) { .kc-prod__hero { grid-template-columns: 1fr; gap: 32px; } }

.kc-prod__well {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 60%),
    linear-gradient(135deg, #d8e7ec 0%, #cfdee2 50%, #b8c8cd 100%);
  background-color: var(--color-secondary);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: inset 0 0 80px rgba(20,40,60,0.06);
}
.kc-prod__well::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(20,40,60,0.04) 1px, transparent 1px),
    radial-gradient(rgba(20,40,60,0.03) 1px, transparent 1px);
  background-size: 16px 16px, 24px 24px;
  background-position: 0 0, 8px 12px;
  pointer-events: none;
}
.kc-prod__img,
.kc-prod__well img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: contain;
  padding: 8%;
}

.kc-prod__buy { padding: 8px 0; }
.kc-prod__eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 12px;
  padding: 4px 10px;
  background: rgba(53,121,174,0.1);
}
.kc-prod__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.kc-prod__sku {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-dim);
  font-weight: 700;
  margin-bottom: 16px;
}
.kc-prod__short {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.kc-prod__short p:last-child { margin-bottom: 0; }
.kc-prod__price {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.kc-prod__price del { color: var(--color-text-dim); margin-right: 8px; font-weight: 400; font-size: 0.7em; }

.kc-prod__form { display: flex; gap: 12px; align-items: stretch; margin-bottom: 32px; flex-wrap: wrap; }
.kc-prod__qty {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--color-border-strong);
  background: #fff;
}
.kc-prod__qbtn {
  width: 44px; height: 56px;
  background: transparent; border: none;
  color: var(--color-text); font-size: 20px;
  cursor: pointer; touch-action: manipulation;
}
.kc-prod__qbtn:hover { background: var(--color-secondary); }
.kc-prod__qinput {
  width: 56px; height: 56px;
  border: none; border-left: 1px solid var(--color-border); border-right: 1px solid var(--color-border);
  text-align: center; font: inherit; font-weight: 700; font-size: 16px;
  background: transparent; outline: none;
  -moz-appearance: textfield;
}
.kc-prod__qinput::-webkit-outer-spin-button,
.kc-prod__qinput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Metallic Add-to-Cart */
.kc-prod__atc {
  flex: 1 1 200px;
  min-height: 56px;
  padding: 0 28px;
  border: 1px solid var(--color-primary-dk);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  background:
    linear-gradient(180deg,
      var(--color-primary-light) 0%,
      var(--color-primary) 40%,
      var(--color-primary-dk) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    0 4px 12px rgba(53,121,174,0.28);
  transition: transform 0.08s ease, box-shadow 0.12s ease;
  touch-action: manipulation;
}
.kc-prod__atc:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    inset 0 -1px 0 rgba(0,0,0,0.22),
    0 6px 18px rgba(53,121,174,0.35);
}
.kc-prod__atc:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.22),
    0 1px 4px rgba(53,121,174,0.2);
}

.kc-prod__oos { color: var(--color-text-dim); font-style: italic; }

/* Trust card */
.kc-pcard { border: 1px solid var(--color-border); background: var(--color-surface-alt); }
.kc-pcard__row {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}
.kc-pcard__row:last-child { border-bottom: none; }
.kc-pcard__row strong { font-family: var(--font-heading); font-size: 14px; color: var(--color-text); font-weight: 700; }
.kc-pcard__row span { font-size: 13px; color: var(--color-text-muted); }

/* Full-width RUO band */
.kc-prod__ruo-band {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 18px 16px;
  margin: 64px 0 0;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.kc-prod__ruo-band strong { letter-spacing: 0.12em; text-transform: uppercase; margin-right: 8px; }

/* Description + at-a-glance grid */
.kc-prod__detail { padding: 64px 0 96px; background: var(--color-surface-alt); }
.kc-prod__detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .kc-prod__detail-grid { grid-template-columns: 1fr; gap: 32px; } }
.kc-prod__desc h2 { margin-top: 0; font-size: clamp(24px, 3vw, 32px); }
.kc-prod__desc p { font-size: 16px; line-height: 1.75; color: var(--color-text); }
.kc-prod__meta {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 24px;
}
.kc-prod__meta h3 {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text-muted); margin: 0 0 16px;
}
.kc-prod__dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 13px; }
.kc-prod__dl dt { color: var(--color-text-dim); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; padding-top: 2px; }
.kc-prod__dl dd { margin: 0; color: var(--color-text); font-weight: 500; }
