/* ============================================================
   Hatch × Malachyte — Hatch visual overrides
   Layered on top of wiha.css — changes colors, fonts, image ratios
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap');

:root {
  --hatch-black: #1A1917;
  --hatch-slate: #6B6560;
  --hatch-muted: #8C877F;
  --hatch-line:  #E8E3DA;
  --hatch-bg-soft: #F5F0E8;
  --hatch-sale-color: #BD5A2E;
  /* Override Wiha vars so existing shared CSS works */
  --wiha-red: #BD5A2E;
  --wiha-red-hover: #9E4A24;
  --wiha-blue: #1A1917;
  --wiha-slate: #6B6560;
  --wiha-text: #1A1917;
  --wiha-muted: #8C877F;
  --wiha-line: #E8E3DA;
  --wiha-bg-soft: #F5F0E8;
  --wiha-now-badge: #1A1917;
  --wiha-sale-badge: #BD5A2E;
}

/* ===== Hatch site chrome ===== */
.hatch-site-header {
  background: #fff;
  border-bottom: 1px solid var(--hatch-line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 18px;
}
.hatch-site-logo img { height: 22px; display: block; object-fit: contain; }
.hatch-site-nav { display: flex; align-items: center; gap: 0; }
.hatch-site-nav__item {
  font-size: 10px; font-weight: 500; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--hatch-black); cursor: pointer; padding: 4px 7px; white-space: nowrap;
  text-decoration: none; border-bottom: 1.5px solid transparent;
}
.hatch-site-nav__item.is-active { border-bottom-color: var(--hatch-black); }
.hatch-site-nav__item.is-sale { color: var(--hatch-sale-color); }
.hatch-site-actions {
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--hatch-black);
}

/* ===== PLP title → editorial serif ===== */
.wiha-plp-title {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 40px !important;
  font-weight: 600 !important;
  font-style: italic !important;
  color: var(--hatch-black) !important;
  letter-spacing: 0.01em !important;
  text-align: center;
  margin: 28px 0 20px;
}
.sbs-col__viewport .wiha-plp-title {
  font-size: 24px !important;
  margin: 16px 0 12px;
}

/* ===== Product card — portrait image ===== */
.wiha-card__img {
  aspect-ratio: 3 / 4;
  background: var(--hatch-bg-soft);
}
.wiha-card__img img { object-fit: cover; width: 100%; height: 100%; }
.wiha-card__name {
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: var(--hatch-black) !important;
  -webkit-line-clamp: 2;
}
.hatch-card__color {
  padding: 0 4px;
  font-size: 10.5px;
  color: var(--hatch-muted);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

/* ===== Badges ===== */
.wiha-badge--new  { background: var(--hatch-black) !important; }
.wiha-badge--sale { background: var(--hatch-sale-color) !important; }

/* ===== Persona bar warm tone ===== */
.wiha-persona-bar {
  background: linear-gradient(180deg, #FDFCFA 0%, #F5F0E8 100%) !important;
  border-color: var(--hatch-line) !important;
}
.wiha-persona-bar__select { border-color: var(--hatch-line) !important; }

/* ===== SBS column header — fixed height so both sides stay in sync ===== */
.sbs-col__head {
  min-height: 92px !important;
  justify-content: center;
}
.sbs-col__logo--hatch {
  height: 32px !important;
  max-width: 120px !important;
  object-fit: contain;
}
/* Malachyte logo in column head — match Hatch height */
.sbs-col__logo--mal {
  height: 32px !important;
}
.sbs-col--alpha .sbs-col__head { background: #F0EBE0; }

/* ===== Alpha/Before column — red border + red railbar ===== */
.sbs-col--alpha {
  border-color: #C8312A !important;
  box-shadow: 0 18px 40px rgba(200,49,42,0.14) !important;
}
.sbs-col--alpha .sbs-col__tag { background: #C8312A !important; }
.wiha-grid-wrap--alpha { border-color: rgba(200,49,42,0.35) !important; background: rgba(200,49,42,0.015) !important; }
.wiha-grid-wrap--alpha .wiha-grid-railbar { background: #C8312A !important; }

/* ===== Column grid alignment — both sides start flush ===== */
.sbs-grid { align-items: start !important; }
.sbs-col__viewport .wiha-grid-wrap { margin-top: 0; }
/* Keep same top spacing so railbars line up */
.sbs-col__viewport .wiha-crumbs,
.sbs-col__viewport .wiha-plp-title,
.sbs-col__viewport .sbs-toolbar { margin-left: 0; margin-right: 0; }

/* ===== Search bar ===== */
.search-bar-row { border-bottom-color: var(--hatch-black) !important; }
.search-bar-trigger { color: var(--hatch-black) !important; }
.search-bar-menu-item.is-selected { background: rgba(196,122,154,0.12) !important; }
.search-bar-menu-item.is-selected .search-bar-menu-item-intent { background: #C47A9A !important; }

/* ===== PDP portrait images ===== */
.pdp-anchor__img { aspect-ratio: 3 / 4; }
.pdp-anchor__img img { object-fit: cover; width: 100%; height: 100%; }
.pdp-rec-mini__img { aspect-ratio: 3 / 4; }
.pdp-rec-mini__img img { object-fit: cover; width: 100%; height: 100%; border-radius: 3px; }

/* PDP recs note */
.pdp-recs__note {
  font-size: 11px; color: var(--hatch-muted); padding: 0 20px; margin-bottom: 12px;
  font-style: italic; line-height: 1.4;
}
.sbs-col--malachyte .pdp-recs__note {
  color: var(--c-malachyte-dark); font-style: normal; font-weight: 500;
}

/* ===== Welcome ===== */
.logo-hatch { height: 40px; object-fit: contain; }
.compare-card--before { background: #F4F1EC; color: #5A5249; border-color: #DDD8CF; }

/* ===== Fav heart pink for Hatch ===== */
.wiha-fav--on { box-shadow: 0 0 0 1px #C47A9A !important; }

/* ===== Merch slot — portrait images ===== */
.merch-slot__img { aspect-ratio: 3 / 4; overflow: hidden; }
.merch-slot__img img { object-fit: cover; width: 100%; height: 100%; }
.merch-pin-prod img { object-fit: cover; }
