/* ============================================================
   Wiha site styles — recreates wihatools.com aesthetic
   ============================================================ */

/* Wiha uses Open Sans / Roboto-ish system; we'll lean on Manrope from the head. */
:root {
  --wiha-red: #D52027;
  --wiha-red-hover: #B3171D;
  --wiha-blue: #1C71B6;
  --wiha-slate: #4F6770;
  --wiha-text: #2A363D;
  --wiha-muted: #6B7A82;
  --wiha-line: #E1E5E8;
  --wiha-bg-soft: #F5F7F8;
  --wiha-now-badge: #1C71B6;
  --wiha-sale-badge: #D52027;
}

/* =============================
   Top utility / promo strip
============================= */
.wiha-utility {
  background: #fff;
  border-bottom: 1px solid var(--wiha-line);
  font-size: 11px;
  color: var(--wiha-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 28px;
  letter-spacing: 0.02em;
}
.wiha-utility__left { display: flex; gap: 18px; }
.wiha-utility__left a { color: var(--wiha-muted); text-decoration: none; }
.wiha-utility__right { display: flex; gap: 18px; align-items: center; }
.wiha-utility__right a { color: var(--wiha-muted); text-decoration: none; }
.wiha-utility__right .lang { font-weight: 600; color: var(--wiha-text); }

/* =============================
   Main header — logo + search + support/account/cart
============================= */
.wiha-header {
  background: #fff;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: 200px 1fr 360px;
  align-items: center;
  gap: 28px;
}
.wiha-header--minimal {
  display: flex;
  justify-content: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--wiha-line);
}
.wiha-logo { display: flex; align-items: center; gap: 0; }
.wiha-logo img { height: 38px; display: block; }
.wiha-logo__tagline {
  font-size: 9.5px;
  font-weight: 500;
  color: var(--wiha-slate);
  margin-left: 8px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  align-self: center;
  margin-top: -2px;
}

.wiha-search {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--wiha-line);
  border-radius: 4px;
  height: 42px;
  padding-left: 16px;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}
.wiha-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--wiha-text);
  outline: none;
  height: 100%;
}
.wiha-search input::placeholder { color: #A5AFB5; }
.wiha-search__btn {
  width: 50px;
  height: 38px;
  margin-right: 2px;
  border: none;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wiha-text);
}
.wiha-search__btn:hover { background: var(--wiha-bg-soft); }

.wiha-utilrow { display: flex; align-items: center; justify-content: flex-end; gap: 26px; }
.wiha-util {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--wiha-text);
  cursor: pointer;
  position: relative;
}
.wiha-util svg { color: var(--wiha-red); }
.wiha-util--support { color: var(--wiha-red); }
.wiha-util__caret { font-size: 8px; margin-left: 2px; opacity: 0.7; }
.wiha-util__label { display: inline-flex; align-items: center; gap: 2px; }

/* =============================
   Main nav (categories)
============================= */
.wiha-nav {
  background: #fff;
  border-top: 1px solid var(--wiha-line);
  border-bottom: 1px solid var(--wiha-line);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 14px;
  font-weight: 600;
}
.wiha-nav a {
  color: var(--wiha-text);
  text-decoration: none;
  padding: 14px 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  font-weight: 600;
}
.wiha-nav a:hover { color: var(--wiha-red); }
.wiha-nav a.active {
  color: var(--wiha-red);
  box-shadow: inset 0 -3px 0 var(--wiha-red);
}
.wiha-nav a.sale { color: var(--wiha-red); }

/* =============================
   PLP — breadcrumbs + title
============================= */
.wiha-plp-root { background: #fff; min-height: 100%; font-family: var(--font-sans); }
.wiha-crumbs {
  padding: 14px 28px 0;
  font-size: 13px;
  color: var(--wiha-muted);
}
.wiha-crumbs a { color: var(--wiha-muted); text-decoration: none; }
.wiha-crumbs .sep { color: var(--wiha-muted); margin: 0 6px; }
.wiha-crumbs .current { color: var(--wiha-text); }

.wiha-plp-title {
  font-family: var(--font-sans);
  font-size: 44px;
  font-weight: 600;
  color: var(--wiha-slate);
  text-align: center;
  margin: 36px 0 24px;
  letter-spacing: -0.01em;
}

/* =============================
   Side-by-side comparison layout
============================= */
.sbs-shell {
  max-width: 1700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sbs-shell .wiha-persona-bar {
  margin: 0;
}
.sbs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 800px) {
  .sbs-grid { grid-template-columns: 1fr; }
}

.sbs-col {
  display: flex;
  flex-direction: column;
  background: transparent;
  height: 100%;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 3px solid var(--c-charcoal);
  box-shadow: 0 18px 40px rgba(6,23,31,0.16);
}
.sbs-col--alpha     { border-color: #888; }
.sbs-col--malachyte {
  border-color: var(--c-malachyte);
  box-shadow: 0 0 0 2px rgba(3,131,98,0.10), 0 18px 40px rgba(3,131,98,0.18);
}
.sbs-col__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 16px 16px;
  background: #F0EAD9;
  position: relative;
}
.sbs-col--alpha .sbs-col__head { background: #ECE7DA; }
.sbs-col--malachyte .sbs-col__head { background: linear-gradient(180deg, #E6F0E2 0%, #DCEBD6 100%); }

.sbs-col__tag {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 8px;
  border-radius: 3px;
  background: var(--c-charcoal);
  color: #fff;
}
.sbs-col--malachyte .sbs-col__tag { background: var(--c-malachyte); }

.sbs-col__logo {
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.sbs-col__logo--wiha { filter: grayscale(0.3) opacity(0.85); }
.sbs-col__caption {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--fg-subtle);
}
.sbs-col--malachyte .sbs-col__caption { color: var(--c-malachyte); }

.sbs-col__viewport {
  background: #fff;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Trim the PLP root padding inside the narrower viewport */
.sbs-col__viewport .wiha-plp-root { padding-bottom: 28px; }
.sbs-col__viewport .wiha-crumbs { padding: 12px 20px 0; font-size: 12px; }
.sbs-col__viewport .wiha-plp-title {
  margin: 20px 0 16px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--wiha-slate);
  text-align: center;
}

/* Toolbar above the grid in each column */
.sbs-toolbar {
  margin: 0 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--wiha-muted);
}
.sbs-toolbar__count { font-size: 12px; color: var(--wiha-muted); white-space: nowrap; }
.sbs-toolbar__static {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wiha-muted);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Product grid in each side-by-side column: 2-up */
.sbs-col__viewport .wiha-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0 18px;
  align-items: stretch;
}
@media (max-width: 700px) {
  .sbs-col__viewport .wiha-grid { grid-template-columns: 1fr; }
}

/* Demo URL bar inside each column */
.sbs-col__viewport .demo-urlbar {
  padding: 8px 14px;
}
.sbs-col__viewport .demo-urlbar__dots span {
  width: 9px; height: 9px;
}
.sbs-col__viewport .demo-urlbar__url {
  font-size: 10.5px;
  padding: 3px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

/* Minimal Wiha header inside each column */
.sbs-col__viewport .wiha-header--minimal {
  padding: 12px 20px;
}
.sbs-col__viewport .wiha-logo img { height: 30px; }
.sbs-col__viewport .wiha-logo__tagline { font-size: 9px; margin-bottom: 0; }

/* =============================
   Search step — in-page search bar with scripted-query dropdown
============================= */
.search-bar-row {
  position: relative;
  margin: 14px 20px 0;
  padding: 0;
  border-bottom: 1.5px solid var(--wiha-text);
}
.search-bar-trigger {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--wiha-text);
  padding: 10px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-weight: 500;
}
.search-bar-trigger-text { flex: 1; }
.search-bar-trigger-text.is-placeholder { color: var(--wiha-muted); }
.search-bar-trigger-caret {
  color: var(--wiha-muted);
  flex-shrink: 0;
  transition: transform 200ms ease;
  font-size: 12px;
}
.search-bar-row.is-active .search-bar-trigger-caret { transform: rotate(180deg); }

.search-bar-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--wiha-line);
  border-radius: 6px;
  box-shadow: 0 14px 36px rgba(6,23,31,0.10);
  padding: 6px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.search-bar-menu-eye {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--wiha-muted);
  font-weight: 700;
  padding: 6px 10px 4px;
}
.search-bar-menu-item {
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 9px 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-sans);
  transition: background 120ms ease;
}
.search-bar-menu-item:hover { background: var(--wiha-bg-soft); }
.search-bar-menu-item.is-selected { background: rgba(173,239,155,0.32); }
.search-bar-menu-item-q { font-size: 13px; color: var(--wiha-text); font-weight: 500; }
.search-bar-menu-item-intent {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wiha-muted);
  background: var(--wiha-bg-soft);
  padding: 3px 7px;
  border-radius: var(--r-pill);
}
.search-bar-menu-item-intent--typo     { background: #FFE2A8; color: #5A3A0E; }
.search-bar-menu-item-intent--semantic { background: #DBD6F6; color: #2D1F4A; }
.search-bar-menu-item-intent--combo    { background: #C5E5C9; color: #1F4A2A; }
.search-bar-menu-item-intent--keyword  { background: var(--wiha-bg-soft); color: var(--wiha-muted); }
.search-bar-menu-item.is-selected .search-bar-menu-item-intent {
  background: var(--c-malachyte);
  color: #fff;
}

.search-head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--wiha-line);
  margin-bottom: 14px;
}
.search-head__eye {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.20em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-malachyte);
}
.sbs-col--alpha .search-head__eye { color: var(--wiha-muted); }
.search-head__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--wiha-slate);
  margin: 4px 0 6px;
  letter-spacing: -0.01em;
}
.search-head__note { font-size: 12px; color: var(--wiha-muted); margin: 0; line-height: 1.4; }

/* Empty placeholder card — keeps both columns the same shape when alpha has 0 hits */
.wiha-card--empty {
  background: repeating-linear-gradient(
    135deg,
    #F5F7F8 0 10px,
    #FAFBFC 10px 20px
  );
  border: 1px dashed var(--wiha-line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  gap: 6px;
}
.wiha-card__empty-glyph { font-size: 32px; color: var(--wiha-muted); font-weight: 300; line-height: 1; }
.wiha-card__empty-msg {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wiha-muted);
  font-weight: 700;
}
.search-empty { padding: 24px; color: var(--wiha-muted); font-size: 13px; grid-column: 1 / -1; text-align: center; }

/* =============================
   PDP step
============================= */
.pdp-anchor {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--wiha-line);
}
.pdp-anchor__img {
  aspect-ratio: 1;
  background: var(--wiha-bg-soft);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pdp-anchor__img img { width: 90%; height: 90%; object-fit: contain; }
.pdp-anchor__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--wiha-text);
  margin: 4px 0 14px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.pdp-anchor__price {
  font-size: 24px;
  font-weight: 700;
  color: var(--wiha-text);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.pdp-anchor__desc {
  font-size: 13px;
  color: var(--wiha-slate);
  line-height: 1.55;
  margin: 0;
}

.pdp-recs {
  padding-top: 18px;
}
.pdp-recs__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px 14px;
}
.pdp-recs__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--wiha-text);
  margin: 0;
  letter-spacing: -0.005em;
}
.pdp-recs__head .wiha-rank-chip { align-self: flex-start; }
.pdp-recs__head .sbs-toolbar__static { align-self: flex-start; }

/* Horizontal carousel of small recommendation cards */
.pdp-carousel {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--wiha-line) transparent;
}
.pdp-carousel::-webkit-scrollbar { height: 6px; }
.pdp-carousel::-webkit-scrollbar-track { background: transparent; }
.pdp-carousel::-webkit-scrollbar-thumb {
  background: var(--wiha-line);
  border-radius: 3px;
}
.pdp-rec-mini {
  flex: 0 0 calc((100% - 40px) / 5);
  min-width: 90px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--wiha-line);
  border-radius: 4px;
  padding: 8px 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.pdp-rec-mini:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.pdp-rec-mini__img {
  aspect-ratio: 1;
  background: var(--wiha-bg-soft);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pdp-rec-mini__img img { width: 86%; height: 86%; object-fit: contain; }
.pdp-rec-mini__name {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--wiha-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pdp-rec-mini__price {
  font-size: 11px;
  font-weight: 700;
  color: var(--wiha-text);
}
.pdp-rec-mini__rank {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--c-charcoal);
  color: var(--c-lime-hivis);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 5px;
  border-radius: 2px;
}

/* =============================
   Merchandising step — Malachyte-only, single pane
============================= */
.merch-shell {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.merch-viewport-shell {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid var(--c-malachyte);
  box-shadow: 0 0 0 2px rgba(3,131,98,0.10), 0 24px 60px rgba(3,131,98,0.18);
}

.merch-portal-cta--top {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--c-charcoal);
  color: #fff;
  padding: 22px 26px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: background 220ms ease;
  isolation: isolate;
}
.merch-portal-cta--top:hover { background: #0E2A36; }
.merch-portal-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.merch-portal-cta__oval {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  opacity: 0.7;
}
.merch-portal-cta__oval--1 {
  width: 260px;
  height: 180px;
  right: -60px;
  top: -60px;
  background: radial-gradient(circle at 30% 30%, #ADEF9B 0%, var(--c-malachyte) 70%, transparent 100%);
  transform: rotate(-12deg);
}
.merch-portal-cta__oval--2 {
  width: 180px;
  height: 140px;
  right: 120px;
  bottom: -50px;
  background: radial-gradient(circle at 30% 30%, #DBD6F6 0%, #A7A0EB 70%, transparent 100%);
  transform: rotate(-10deg);
  opacity: 0.55;
}
.merch-portal-cta__logo {
  height: 32px;
  position: relative;
  z-index: 2;
  filter: brightness(1.1);
}
.merch-portal-cta__title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.005em;
  position: relative;
  z-index: 2;
}
.merch-portal-cta__arrow {
  margin-left: auto;
  font-size: 22px;
  color: var(--c-lime-hivis);
  position: relative;
  z-index: 2;
}

.merch-pane__sub {
  font-size: 13px;
  color: var(--wiha-slate);
  line-height: 1.55;
  margin: 6px 0 0;
  max-width: 720px;
}

/* Keep the rule cards expanded for the single-pane view */
.merch-shell .merch-pane {
  padding: 26px 28px;
  background: linear-gradient(180deg, #FAFBF6 0%, #F2F7EF 100%);
  border-radius: 0;
  min-height: 0;
}
.merch-shell .merch-rule {
  padding: 14px 16px;
}

/* =============================
   Side-by-side merchandising (legacy) — kept for fallback only
============================= */
.merch-viewport {
  padding: 0 !important;
}
.merch-pane {
  background: #fff;
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 520px;
}
.merch-pane--mal {
  background: linear-gradient(180deg, #FAFBF6 0%, #F2F7EF 100%);
}
.merch-pane__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid var(--wiha-line);
  padding-bottom: 12px;
}
.merch-pane__eye {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wiha-muted);
  font-weight: 700;
}
.merch-pane__eye--mal { color: var(--c-malachyte); }
.merch-pane__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--wiha-text);
  letter-spacing: -0.005em;
}

/* Spreadsheet on alpha side */
.merch-spreadsheet {
  border: 1px solid var(--wiha-line);
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
}
.merch-row {
  display: grid;
  grid-template-columns: 36px 72px 1fr 80px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--wiha-line);
}
.merch-row:last-child { border-bottom: none; }
.merch-row--head {
  background: #F5F7F8;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--wiha-muted);
  text-transform: uppercase;
  padding: 8px 12px;
}
.merch-cell--pos { font-weight: 700; color: var(--wiha-text); }
.merch-cell--sku { color: var(--wiha-muted); }
.merch-cell--name { font-family: var(--font-sans); font-size: 12.5px; color: var(--wiha-text); }
.merch-cell--price { font-weight: 600; color: var(--wiha-text); text-align: right; }

.merch-pain {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.merch-pain li {
  font-size: 12.5px;
  color: var(--wiha-slate);
  padding-left: 18px;
  position: relative;
  line-height: 1.45;
}
.merch-pain li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: #C9352B;
  font-weight: 700;
}

/* Rules on malachyte side */
.merch-rules {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.merch-rule {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #D6E4D2;
  border-radius: 8px;
  padding: 12px 14px;
}
.merch-rule__kind {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
}
.merch-rule__kind--promote { background: rgba(3,131,98,0.12); color: var(--c-malachyte-dark); }
.merch-rule__kind--bury    { background: rgba(167,160,235,0.18); color: #4B3F8A; }
.merch-rule__kind--inject  { background: rgba(216,146,81,0.18); color: #74441A; }
.merch-rule__body {
  font-size: 12.5px;
  color: var(--wiha-text);
  line-height: 1.5;
}
.merch-rule__body b { font-family: var(--font-mono); font-weight: 700; color: var(--c-malachyte-dark); }
.merch-rule__lift {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--c-malachyte);
  white-space: nowrap;
  background: rgba(173,239,155,0.32);
  border: 1px solid rgba(3,131,98,0.28);
  padding: 4px 8px;
  border-radius: var(--r-pill);
}

.merch-portal-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--c-charcoal);
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-top: 8px;
  transition: background 200ms ease;
}
.merch-portal-cta:hover { background: #0F2A36; }
.merch-portal-cta__logo { height: 24px; filter: brightness(1.1); }
.merch-portal-cta__arrow {
  margin-left: auto;
  font-size: 18px;
  color: var(--c-lime-hivis);
}

/* =============================
   Per-mode wrap around the product grid only — keeps both sides symmetrical
============================= */
.wiha-grid-wrap {
  margin: 8px 18px 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
}
.wiha-grid-railbar {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wiha-grid-railbar b { font-weight: 700; letter-spacing: 0.04em; text-transform: none; }
.wiha-grid-railbar__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
}

.wiha-grid-wrap--alpha {
  border-color: rgba(213,32,39,0.35);
  background: rgba(213,32,39,0.02);
}
.wiha-grid-wrap--alpha .wiha-grid-railbar { background: var(--wiha-red); }

.wiha-grid-wrap--malachyte {
  border-color: rgba(3,131,98,0.35);
  background: rgba(3,131,98,0.02);
}
.wiha-grid-wrap--malachyte .wiha-grid-railbar { background: var(--c-malachyte); }

/* Grid inside the wrap loses its outer padding since the wrap already has margin */
.wiha-grid-wrap .wiha-grid {
  padding: 14px 12px;
}

/* =============================
   PLP body grid — filters sidebar + product grid
============================= */
.wiha-plp-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 0 28px 60px;
}
@media (max-width: 1000px) {
  .wiha-plp-body { grid-template-columns: 1fr; }
  .wiha-filters { display: none; }
}

/* Filters sidebar */
.wiha-filters {
  padding-top: 6px;
}
.wiha-filters__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--wiha-slate);
  margin: 0 0 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--wiha-line);
}
.wiha-filter {
  border-bottom: 1px solid var(--wiha-line);
  padding: 14px 0 14px;
}
.wiha-filter__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--wiha-text);
}
.wiha-filter__head .chev {
  font-size: 10px;
  color: var(--wiha-muted);
  transition: transform 200ms ease;
}
.wiha-filter.is-open .wiha-filter__head .chev { transform: rotate(180deg); }
.wiha-filter__body {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wiha-filter__body label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--wiha-text);
  cursor: pointer;
  padding: 2px 0;
}
.wiha-filter__body label .count {
  margin-left: auto;
  font-size: 12px;
  color: var(--wiha-muted);
}
.wiha-filter__body input[type=checkbox] {
  accent-color: var(--wiha-red);
  width: 14px;
  height: 14px;
}

/* =============================
   Sort + per-page bar
============================= */
.wiha-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 13px;
  gap: 12px;
  flex-wrap: wrap;
}
.wiha-toolbar__left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wiha-toolbar__right { display: flex; align-items: center; gap: 14px; color: var(--wiha-muted); flex-wrap: wrap; justify-content: flex-end; }
.wiha-toolbar label { color: var(--wiha-muted); font-weight: 500; }
.wiha-select {
  border: 1.5px solid var(--wiha-line);
  border-radius: 3px;
  font-family: inherit;
  font-size: 13px;
  padding: 7px 28px 7px 12px;
  color: var(--wiha-text);
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 4.5l3 3 3-3' stroke='%23556' fill='none' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

/* =============================
   Product grid + card
============================= */
.wiha-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 1200px) { .wiha-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .wiha-grid { grid-template-columns: repeat(2, 1fr); } }

.wiha-card {
  background: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 18px 6px 8px;
  border-radius: 2px;
  transition: box-shadow 180ms ease, transform 180ms ease;
  height: 100%;
}
.wiha-card:hover {
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

/* Status badges (top-left) */
.wiha-badge {
  position: absolute;
  top: 0;
  left: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  padding: 4px 10px;
  z-index: 2;
  white-space: nowrap;
}
.wiha-badge--new { background: var(--wiha-now-badge); }
.wiha-badge--sale { background: var(--wiha-sale-badge); }
.wiha-flag {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 22px;
  height: 14px;
  border-radius: 1px;
  z-index: 2;
  background: linear-gradient(#000 33%, #D52027 33%, #D52027 66%, #FCD400 66%);
  border: 1px solid rgba(0,0,0,0.2);
}

/* Product image */
.wiha-card__img {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.wiha-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 240ms ease;
}
.wiha-card:hover .wiha-card__img img { transform: scale(1.03); }

/* Spec icons row (e.g. bit type icons) */
.wiha-card__icons {
  display: flex;
  gap: 6px;
  padding: 0 4px;
  min-height: 22px;
  margin-bottom: 10px;
}
.wiha-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--wiha-red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.wiha-card__name {
  padding: 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wiha-text);
  line-height: 1.35;
  margin: 0 0 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wiha-card__price-row {
  padding: 0 6px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  margin-top: auto;
  margin-bottom: 0;
}
.wiha-card__price { font-weight: 600; color: var(--wiha-text); }
.wiha-card__orig {
  margin-left: 6px;
  text-decoration: line-through;
  color: var(--wiha-muted);
  font-weight: 400;
  font-size: 13px;
}
.wiha-card__sku { font-size: 12px; color: var(--wiha-muted); font-family: var(--font-mono); }

/* Add to cart CTA */
.wiha-card__add {
  margin: 0 6px;
  background: #fff;
  border: 1.5px solid var(--wiha-line);
  color: var(--wiha-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 0;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 120ms ease, border-color 120ms ease;
}
.wiha-card__add:hover {
  background: var(--wiha-bg-soft);
  border-color: var(--wiha-slate);
}
.wiha-card__add svg { color: var(--wiha-red); }

/* =============================
   Malachyte-mode-only additions on card
============================= */
.wiha-rank {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--c-charcoal);
  color: var(--c-lime-hivis);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 3px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  z-index: 3;
}
/* When BOTH a rank chip and a NEW/ON SALE badge are present, push the badge down. */
.wiha-card.is-ranked .wiha-badge { top: 28px; }

.wiha-why {
  margin: 0 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  color: var(--c-malachyte-dark);
  background: rgba(173,239,155,0.20);
  border: 1px solid rgba(3,131,98,0.32);
  padding: 3px 8px;
  border-radius: var(--r-pill);
  width: fit-content;
  align-self: flex-start;
}
.wiha-why--anti {
  color: #8A2419;
  background: rgba(213,32,39,0.08);
  border-color: rgba(213,32,39,0.28);
}
.wiha-why__dot {
  width: 5px; height: 5px;
  background: var(--c-malachyte);
  border-radius: 50%;
}
.wiha-why--anti .wiha-why__dot { background: var(--wiha-red); }

.wiha-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 4;
  transition: transform 140ms ease;
}
.wiha-fav:hover { transform: scale(1.08); }
.wiha-fav:active { transform: scale(0.94); }
.wiha-fav--on { box-shadow: 0 0 0 1px var(--wiha-red); }

/* =============================
   Default-mode "no personalization" banner
============================= */
.wiha-static-banner {
  margin: 0 28px 18px;
  padding: 14px 18px;
  background: #FFF1EE;
  border: 1.5px solid #C9352B;
  border-left-width: 4px;
  border-radius: 4px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  font-family: var(--font-sans);
}
.wiha-static-banner__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  background: #C9352B;
  padding: 5px 10px;
  border-radius: 3px;
  white-space: nowrap;
}
.wiha-static-banner__body { font-size: 13px; color: #6A2018; line-height: 1.5; }
.wiha-static-banner__body b { color: #4A1A14; }

/* =============================
   Persona panel (Malachyte mode only) — compact: ID + portrait + pills + switch
============================= */
.wiha-persona-bar {
  margin: 12px 28px 18px;
  background: linear-gradient(180deg, #FAFBF6 0%, #F1F6EE 100%);
  border: 1px solid #D6E4D2;
  border-radius: 10px;
  padding: 10px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  font-family: var(--font-sans);
}
.wiha-persona-bar__id {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wiha-persona-eye {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--c-malachyte);
  font-weight: 700;
}
.wiha-persona-userid {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-charcoal);
  letter-spacing: 0.02em;
}
.wiha-persona-bar__switch {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}
.wiha-persona-bar__switch label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  font-weight: 600;
}
.wiha-persona-bar__select {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-charcoal);
  background: #fff;
  border: 1.5px solid #D6E4D2;
  border-radius: 6px;
  padding: 7px 30px 7px 12px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 4.5l3 3 3-3' stroke='%23038362' fill='none' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* Portrait — smaller in the compact bar */
.wp-portrait-wrap {
  position: relative;
  width: 220px;
  height: 96px;
  flex-shrink: 0;
  justify-self: center;
}
.wp-portrait {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 3px 10px rgba(6,23,31,0.12);
  background: #EFEAD9;
  z-index: 1;
  border: 2px solid #fff;
}
.wp-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wp-sig {
  position: absolute;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(6,23,31,0.08);
  z-index: 2;
  line-height: 1.2;
}
.wp-sig--tl { top: 4px;    left: 0; }
.wp-sig--tr { top: 4px;    right: 0; }
.wp-sig--bl { bottom: 4px; left: 0; }
.wp-sig--br { bottom: 4px; right: 0; }
.wp-sig--amber  { background: #FFE2A8; color: #5A3A0E; border: 1px solid #E8C26A; }
.wp-sig--rose   { background: #F5BFC5; color: #5A2530; border: 1px solid #E89AA1; }
.wp-sig--violet { background: #DBD6F6; color: #2D1F4A; border: 1px solid #B8AFE2; }

/* Rank chip in toolbar */
.wiha-rank-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(173,239,155,0.32);
  border: 1px solid rgba(3,131,98,0.28);
  color: var(--c-malachyte-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
  white-space: nowrap;
  width: fit-content;
}
.wiha-rank-chip__dot {
  width: 6px; height: 6px;
  background: var(--c-malachyte);
  border-radius: 50%;
  animation: wpulse 2s ease-in-out infinite;
}
@keyframes wpulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

@media (max-width: 900px) {
  .wiha-persona-bar { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .wiha-persona-bar__switch { justify-self: center; }
  .wp-portrait-wrap { margin: 0 auto; }
}

/* =============================
   Compact floating persona pill — shows when scrolled past the main bar
============================= */
.wiha-persona-pill {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 250;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border: 1px solid #D6E4D2;
  border-radius: 999px;
  padding: 6px 8px 6px 6px;
  box-shadow: 0 8px 24px rgba(6,23,31,0.14);
  font-family: var(--font-sans);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.wiha-persona-pill.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.wiha-persona-pill__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  background: #EFEAD9;
  flex-shrink: 0;
  border: 1.5px solid #fff;
  box-shadow: 0 1px 4px rgba(6,23,31,0.10);
}
.wiha-persona-pill__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wiha-persona-pill__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  gap: 1px;
  padding: 0 4px 0 2px;
}
.wiha-persona-pill__eye {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-malachyte);
  font-weight: 700;
}
.wiha-persona-pill__id {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-charcoal);
}
.wiha-persona-pill__chips { display: flex; gap: 4px; flex-wrap: nowrap; }
.wiha-persona-pill__chip {
  font-size: 9.5px;
  font-weight: 600;
  padding: 2.5px 7px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.wiha-persona-pill__chip--amber  { background: #FFE2A8; color: #5A3A0E; }
.wiha-persona-pill__chip--rose   { background: #F5BFC5; color: #5A2530; }
.wiha-persona-pill__chip--violet { background: #DBD6F6; color: #2D1F4A; }
.wiha-persona-pill__select {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--c-charcoal);
  background: #fff;
  border: 1.5px solid #D6E4D2;
  border-radius: 999px;
  padding: 5px 26px 5px 10px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 4.5l3 3 3-3' stroke='%23038362' fill='none' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
@media (max-width: 720px) {
  .wiha-persona-pill__chips { display: none; }
}

/* =============================
   Welcome (pitch) screen
============================= */
.welcome-shell {
  padding: 60px 40px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  font-family: var(--font-sans);
}
.welcome-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 4px;
}
.welcome-logos img.logo-wiha { height: 56px; }
.welcome-logos img.logo-mal { height: 38px; }
.welcome-logos .sep { width: 1px; height: 36px; background: #D5D1C3; }
.welcome-eye {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-malachyte);
  font-weight: 700;
  font-family: var(--font-mono);
}
.welcome-title {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0;
  max-width: 720px;
  line-height: 1.15;
  color: var(--c-charcoal);
  text-wrap: balance;
}
.welcome-title em { color: var(--wiha-red); font-style: normal; }
.welcome-blurb {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 620px;
  text-align: center;
  margin: 0;
}

.welcome-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 880px;
  margin-top: 16px;
}
.compare-card {
  padding: 22px 24px;
  border-radius: 8px;
  font-size: 13.5px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}
.compare-card--before { background: #F4F1E9; color: #5A5249; border: 1px solid #E2DCCF; }
.compare-card--after { background: var(--bg-accent-soft); color: var(--c-malachyte-dark); border: 1px solid var(--c-malachyte-light); }
.compare-card .compare-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.7);
}
.compare-card .compare-icon img { width: 32px; height: 32px; object-fit: contain; }
.compare-card--before .compare-icon img { filter: grayscale(1) contrast(1.05); opacity: 0.85; }
.compare-card h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-weight: 700;
}
.compare-card p { margin: 0; line-height: 1.55; }

/* Persona quick-pick cards on welcome — portrait with floating signal pills */
.welcome-personas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1040px;
  width: 100%;
}
.welcome-persona-card {
  background: #fff;
  border: 2px solid var(--wiha-line);
  border-radius: 14px;
  padding: 22px 22px 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: all 200ms var(--ease-out);
  font-family: inherit;
  position: relative;
}
.welcome-persona-card:hover { border-color: var(--c-malachyte); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(6,23,31,0.06); }
.welcome-persona-card.is-selected {
  border-color: var(--c-malachyte);
  background: var(--bg-accent-soft);
  box-shadow: 0 0 0 3px rgba(3,131,98,0.12), 0 8px 18px rgba(6,23,31,0.06);
}
.welcome-persona-card__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-charcoal);
  text-align: center;
  margin-top: 4px;
}
.welcome-persona-card__sub {
  font-size: 13px;
  color: var(--fg-muted);
  text-align: center;
  line-height: 1.45;
  margin-top: 2px;
  max-width: 260px;
}

/* =============================
   Modal/banner showing default order's flaws
============================= */
.wiha-alpha-note {
  margin: 0 28px 18px;
  padding: 10px 14px;
  background: var(--wiha-bg-soft);
  border-left: 3px solid var(--wiha-slate);
  font-size: 12px;
  color: var(--wiha-slate);
  border-radius: 0 4px 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wiha-alpha-note__tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--wiha-slate);
  padding: 3px 8px;
  border-radius: 3px;
}
