/* ============================================================
   HIRSCH redesign — Pass 2
   Direction: editorial-luxury. Fraunces display serif + Hanken
   Grotesk body sans. Cream/ink palette with HIRSCH green as the
   single brand accent. Tactile noise, magazine-style section
   numbering, scroll-revealed reveals. Scoped to #common-home so
   non-home pages stay on the prior visual.
   Loaded AFTER redesign.css so these win on conflict.
   ============================================================ */

/* Palette + type tokens — at :root so the header + footer (which render outside
   #common-home) can also use them. Section styling stays scoped via the
   #common-home prefix below. */
:root {
  --hp-cream: #faf7f1;
  --hp-cream-2: #f3eee3;
  --hp-cream-3: #ece5d3;
  /* Same lightness/saturation feel as the creams but with a HIRSCH-green hue */
  --hp-mint: #f1f7ec;
  --hp-ink: #15181a;
  --hp-ink-2: #2c3035;
  --hp-ink-soft: #6b6f74;
  --hp-line: #e6dfd0;
  --hp-line-soft: #efe9da;
  --hp-green: #43a137;
  /* Was a deep forest green for italic accents/hovers — switched to the bright
     HIRSCH green so the same accent colour reads across header, eyebrows,
     italic headlines, link hovers, and the green pops more consistently. */
  --hp-green-deep: #43a137;
  --hp-green-soft: #e6efde;
  --hp-sand: #d8d0bb;
  --hp-accent: #f4d35e;
  --hp-shadow: 0 6px 22px rgba(21, 24, 26, 0.06), 0 1px 3px rgba(21, 24, 26, 0.04);
  --hp-shadow-lg: 0 32px 70px rgba(21, 24, 26, 0.10), 0 12px 24px rgba(21, 24, 26, 0.06);

  --hp-font-display: "Outfit", "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --hp-font-body: "Hanken Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --hp-font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------- Base body type ---------- */
#common-home {
  background: var(--hp-cream);
  color: var(--hp-ink-2);
  font-family: var(--hp-font-body);
  font-feature-settings: "ss01", "ss02", "cv11";
  font-size: 15.5px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle paper noise overlay — purely decorative, fixed for parallax feel */
#common-home::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.10  0 0 0 0 0.10  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* Sections sit above the noise */
#common-home>* {
  position: relative;
  z-index: 1;
}

/* ---------- Display headings (Fraunces) ---------- */
#common-home .hp-section-head h2,
#common-home h1.hp-display,
#common-home h2.hp-display,
#common-home h3.hp-display {
  font-family: var(--hp-font-display);
  font-weight: 350;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--hp-ink);
  font-feature-settings: "ss01";
  /* Variable font axis tuning — optical size + soft + wonk */
  font-variation-settings: "opsz" 96, "SOFT" 30, "WONK" 0;
  font-style: normal;
}

/* Larger section headlines */
#common-home .hp-section-head h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 360;
  margin: 14px 0 14px;
}

#common-home .hp-section-head h2 em {
  font-style: italic;
  font-feature-settings: "ss01";
  font-variation-settings: "opsz" 96, "SOFT" 60, "WONK" 1;
  color: var(--hp-green-deep);
}

/* ---------- Editorial section header pattern ---------- */
.hp-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 60px);
}

#common-home .hp-section-head p {
  font-size: 15px;
  color: var(--hp-ink-soft);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Section number + eyebrow as a single small-caps line: "01 / Curated" */
#common-home .hp-section-head .hp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  padding: 0;
  border: 0;
  color: var(--hp-ink-soft);
  font-family: var(--hp-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 18px;
  position: relative;
}

#common-home .hp-section-head .hp-eyebrow::before {
  content: attr(data-index);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--hp-ink);
  color: var(--hp-cream);
  font-family: var(--hp-font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0;
  font-variation-settings: "opsz" 14, "SOFT" 100, "WONK" 1;
  flex-shrink: 0;
}

#common-home .hp-section-head .hp-eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--hp-sand);
  vertical-align: middle;
}

/* ---------- Section backgrounds (override pass 1) ---------- */
#common-home .hp-section {
  padding-top: clamp(60px, 8vw, 60px);
  padding-bottom: clamp(60px, 8vw, 60px);
}

#common-home .hp-featured-brands {
  background: var(--hp-cream);
}

#common-home .hp-categories {
  background: var(--hp-cream);
  border-top: 1px solid var(--hp-line);
}

#common-home .hp-categories.hp-categories--themes {
  background: #ffffff;
  border-top: 1px solid var(--hp-line);
}

#common-home .hp-arrivals {
  background: var(--hp-cream);
  border-top: 1px solid var(--hp-line);
}

#common-home .hp-resources {
  background: var(--hp-cream);
  border-top: 1px solid var(--hp-line);
  border-bottom: 1px solid var(--hp-line);
}

#common-home #manufacturer-banner.hp-brands {
  background: var(--hp-cream);
}

#common-home .hp-why {
  background: var(--hp-ink);
  color: rgba(255, 255, 255, 0.86);
}

/* ---------- HEADER + UTILITY BAR refinements ---------- */
.hp-redesign-header .hp-utility {
  background: var(--hp-ink, #15181a);
}

.hp-redesign-header .hp-utility,
.hp-redesign-header .hp-utility a,
.hp-redesign-header .hp-utility button {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  letter-spacing: 0.05em;
  font-size: 11.5px;
}

/* Slightly deeper, richer green for the main bar — feels less "internet green" */
.hp-redesign-header .hp-mainbar {
  background: var(--hp-green);
}

/* Nav links — Hanken Grotesk, tracked-out, more refined */
.hp-redesign-header .hp-nav-link {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hp-redesign-header .hp-nav-link::after {
  bottom: 4px;
  height: 1.5px;
}

/* Mega menu typography */
.hp-mega-link {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.hp-mega-preview-meta strong {
  font-family: var(--hp-font-display);
  font-weight: 350;
  letter-spacing: -0.015em;
  font-size: 22px;
  font-variation-settings: "opsz" 60, "SOFT" 40, "WONK" 0;
}

/* Search input on the green bar — refine border + radius */
.hp-redesign-header #search .form-control {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  background: rgba(255, 255, 255, 0.96);
  border: 0;
  height: 46px;
  padding-left: 26px;
}

/* Mobile drawer search: thin grey border so it stands out on the white drawer;
   green on focus. Must come after the borderless green-bar rule above to win
   the cascade. */
.hp-mobile-drawer-search #search .form-control {
  border: 1px solid #c4c9cf;
}
.hp-mobile-drawer-search #search .search-input-cl:focus {
  border-color: var(--hp-green);
  box-shadow: none;
}

/* ---------- HERO refinements ---------- */
#common-home .hp-hero {
  background: var(--hp-cream-2);
  border-bottom: 1px solid var(--hp-line);
}

/* Scroll cue below the hero, magazine style */
#common-home .hp-hero::after {
  content: "scroll";
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  padding: 8px 16px 28px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 30%, transparent 100%);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

#common-home .hp-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.85) 100%);
  z-index: 5;
  transform: translateX(-50%);
  pointer-events: none;
  animation: hp-scrollcue 2.4s ease-in-out infinite;
}

@keyframes hp-scrollcue {

  0%,
  100% {
    opacity: 0.4;
    transform: translateX(-50%) scaleY(0.6);
    transform-origin: bottom;
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
  }
}

/* ---------- FEATURED BRANDS — compact bar under the hero ---------- */
#common-home .hp-featured-bar {
  background: var(--hp-cream);
  border-top: 1px solid var(--hp-line);
  border-bottom: 1px solid var(--hp-line);
  padding: 16px 0;
}

#common-home .hp-featured-bar-inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  min-height: 56px;
}

#common-home .hp-featured-bar-label {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hp-ink-soft);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

#common-home .hp-featured-bar-label::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 16px;
  background: var(--hp-line);
}

#common-home .hp-featured-bar-logos {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  align-items: center;
  justify-content: space-around;
  gap: clamp(8px, 1.6vw, 28px);
}

/* Each logo is itself a flex item that can shrink down to share the available
   row evenly. Without `min-width: 0` flex items refuse to go below their
   intrinsic content size, which is what was overflowing at ~1024px. */
#common-home .hp-featured-bar-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  height: 42px;
  padding: 0 4px;
  filter: grayscale(40%);
  opacity: 0.78;
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

#common-home .hp-featured-bar-logo:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}

#common-home .hp-featured-bar-logo img {
  max-height: 36px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

#common-home .hp-featured-bar-all {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hp-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--hp-ink);
  padding: 4px 0;
  flex-shrink: 0;
  transition: color 0.18s ease, border-bottom-color 0.18s ease, gap 0.18s ease;
}

#common-home .hp-featured-bar-all:hover {
  color: var(--hp-green);
  border-bottom-color: var(--hp-green);
  gap: 12px;
}

#common-home .hp-featured-bar-all i {
  font-size: 10px;
}

/* Hide the right-side "All 70+ brands" CTA on small desktop so all 8 logos
   keep their breathing room. The CTA still exists in the nav (Brands menu). */
@media (max-width: 1199px) {
  #common-home .hp-featured-bar-all {
    display: none;
  }
}

/* Below ~992px the single-row layout cramps the logos. Drop into the stacked
   mobile layout (label centered above, logos wrapping below) so the logos
   stay legible on tablet portrait + phones. */
@media (max-width: 991px) {
  #common-home .hp-featured-bar {
    padding: 14px 0;
  }

  #common-home .hp-featured-bar-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
  }

  #common-home .hp-featured-bar-label {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  #common-home .hp-featured-bar-label::after {
    display: none;
  }

  #common-home .hp-featured-bar-logos {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 28px;
  }

  #common-home .hp-featured-bar-logo {
    flex: 0 0 auto;
    /* natural sizing once wrapping */
    height: 36px;
    padding: 0 4px;
  }

  #common-home .hp-featured-bar-logo img {
    max-height: 32px;
    max-width: 112px;
  }
}

/* Phone: slightly smaller logos so 8 fit on two rows comfortably */
@media (max-width: 575px) {
  #common-home .hp-featured-bar-logo {
    height: 30px;
  }

  #common-home .hp-featured-bar-logo img {
    max-height: 26px;
    max-width: 96px;
  }
}

/* ---------- SHOP BY CATEGORY / THEME — editorial card surface ---------- */
#common-home .hp-categories-grid {
  gap: 14px;
}

#common-home .hp-category-card {
  border-radius: 2px;
  aspect-ratio: 3 / 4;
}

#common-home .hp-category-card::after {
  background: linear-gradient(to top,
      rgba(21, 24, 26, 0.78) 0%,
      rgba(21, 24, 26, 0.32) 38%,
      rgba(21, 24, 26, 0) 72%);
}

#common-home .hp-category-card .hp-category-label {
  align-items: flex-end;
  bottom: 20px;
  left: 20px;
  right: 20px;
}

#common-home .hp-category-card .hp-category-label-text {
  font-family: var(--hp-font-display);
  font-weight: 400;
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: -0.015em;
  line-height: 1.05;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 0;
}

#common-home .hp-category-card .hp-category-cta {
  width: 38px;
  height: 38px;
  border-radius: 0;
  background: transparent;
  border: 1.5px solid #ffffff;
  color: #ffffff;
}

#common-home .hp-category-card:hover .hp-category-cta {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--hp-green);
}

/* ---------- effect-line hover frame (Shop by Category / Shop by Theme) ----------
   Bespoke port of the old.hirschpromo.com `.effect-line` hover. Two inset white
   lines sweep in to draw a frame on hover: top + bottom on ::before (scales on
   the X axis), left + right on ::after (scales on the Y axis). It rides on its
   own overlay span so it stacks ABOVE the card's gradient (.hp-category-card
   ::after, z-index 1) while the label (z-index 2) still reads on top. The card
   keeps its gradient because that pseudo-element is shared with the banner module
   — and a single element only has ::before + ::after, not enough for gradient
   plus both animated line axes. pointer-events:none keeps the whole card clickable. */
#common-home .hp-effect-line {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

#common-home .hp-effect-line::before,
#common-home .hp-effect-line::after {
  content: "";
  position: absolute;
  inset: 12px;
  transition: transform 0.4s ease-in-out;
}

#common-home .hp-effect-line::before {
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transform: scale(0, 1);
}

#common-home .hp-effect-line::after {
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
  transform: scale(1, 0);
}

#common-home .hp-category-card:hover .hp-effect-line::before,
#common-home .hp-category-card:hover .hp-effect-line::after {
  transform: scale(1);
}

/* ---------- LATEST ARRIVALS — refined card ----------
   The legacy .product-thumb-grid has `padding: 0 8px` on each cell which
   inflates the visible horizontal gap to 32px (16 grid gap + 2×8 padding).
   Drop the wrapper padding and use a uniform 32px grid gap so rows match
   the left/right spacing exactly. */
#common-home .hp-arrivals-grid {
  gap: 32px;
}

#common-home .hp-arrivals .product-thumb-grid {
  padding: 0;
}

#common-home .hp-arrivals .product-thumb {
  background: var(--hp-cream);
  border: 1px solid var(--hp-line);
  border-radius: 3px;
}

#common-home .hp-arrivals .product-thumb:hover {
  border-color: var(--hp-ink);
  box-shadow: var(--hp-shadow);
}

#common-home .hp-arrivals .product-thumb .image {
  background: #fff;
}

#common-home .hp-arrivals .product-thumb .product-colors {
  background: #fff;
}

#common-home .hp-arrivals .product-thumb .content {
  /* Lighter tan — matches the Shop by Theme section background */
  background: var(--hp-cream);
  border-top: 1px solid var(--hp-line);
  padding: 16px 18px 20px;
}

#common-home .hp-arrivals .product-thumb .description h4 a {
  font-family: "Hanken Grotesk", system-ui, sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  color: var(--hp-ink-soft) !important;
}

#common-home .hp-arrivals .product-thumb .description .hp-name a {
  font-family: var(--hp-font-display) !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
  font-size: 18px !important;
  color: var(--hp-ink) !important;
  line-height: 1.2;
  font-variation-settings: "opsz" 48, "SOFT" 50, "WONK" 0;
}

#common-home .hp-arrivals .product-thumb .description .hp-name a:hover {
  color: var(--hp-green-deep) !important;
}

#common-home .hp-arrivals .product-thumb .price .hp-price-label {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--hp-ink-soft);
}

#common-home .hp-arrivals .product-thumb .price .price-new {
  font-family: var(--hp-font-display);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--hp-ink);
  font-variation-settings: "opsz" 36;
}

/* ---------- RESOURCES — refined typography on colored cards ---------- */
#common-home .hp-resources-grid {
  gap: 14px;
}

#common-home .hp-resource-card {
  border-radius: 4px;
  min-height: 300px;
}

#common-home .hp-resource-front,
#common-home .hp-resource-back {
  padding: 26px;
}

#common-home .hp-resource-front .hp-resource-icon {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

#common-home .hp-resource-front h3 {
  font-family: var(--hp-font-display) !important;
  font-weight: 350;
  font-size: 26px;
  letter-spacing: -0.015em;
  line-height: 1.05;
  font-variation-settings: "opsz" 72, "SOFT" 60, "WONK" 1;
}

#common-home .hp-resource-front .hp-resource-cta {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  letter-spacing: 0.22em;
  font-size: 10px;
  transition: color 0.3s ease;
}

/* ----- Resource card hover: lift + heavier shadow, icon highlight, plus
   icon rotates 45° to telegraph the "click to expand" interaction ----- */
#common-home .hp-resource-card {
  cursor: pointer;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#common-home .hp-resource-card:hover:not(.is-open) {
  transform: translateY(-8px);
  box-shadow:
    0 32px 56px -10px rgba(21, 24, 26, 0.28),
    0 10px 20px -6px rgba(21, 24, 26, 0.14);
}

#common-home .hp-resource-front .hp-resource-icon {
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#common-home .hp-resource-card:hover:not(.is-open) .hp-resource-icon {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.06);
}

#common-home .hp-resource-card:hover:not(.is-open) .hp-resource-front .hp-resource-cta {
  color: #fff;
}

/* Subtle inner shine on hover — a soft diagonal highlight across the card */
#common-home .hp-resource-front {
  position: absolute;
  inset: 0;
}

#common-home .hp-resource-card .hp-resource-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

#common-home .hp-resource-card:hover:not(.is-open) .hp-resource-front::before {
  opacity: 1;
}

#common-home .hp-resource-back h3 {
  font-family: var(--hp-font-display) !important;
  font-weight: 350;
  font-size: 22px;
  font-variation-settings: "opsz" 60, "SOFT" 50;
  /* Leave room for the absolutely-positioned X close button (30px wide,
     14px from the right) so longer titles never duck behind it. */
  padding-right: 44px;
}

#common-home .hp-resource-back p {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

#common-home .hp-resource-back .hp-resource-link {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  letter-spacing: 0.08em;
  font-size: 12px;
  border-radius: 0;
}

/* ---------- 70+ BRANDS — refined logo cards ---------- */
#common-home .hp-brands .hp-brand-logo {
  background: var(--hp-cream);
  border: 1px solid var(--hp-line);
  border-radius: 2px;
  height: 118px;
}

#common-home .hp-brands .hp-brand-logo:hover {
  border-color: var(--hp-ink);
  box-shadow: var(--hp-shadow);
}

#common-home .hp-brands-arrow {
  background: var(--hp-cream);
  border: 1px solid var(--hp-ink);
  color: var(--hp-ink);
  border-radius: 0;
  width: 44px;
  height: 44px;
}

#common-home .hp-brands-arrow:hover {
  background: var(--hp-ink);
  border-color: var(--hp-ink);
  color: var(--hp-cream);
}

#common-home .hp-brands-title-row {
  gap: 24px;
}

/* ---------- WHY HIRSCH — bold editorial moment, on ink not green ---------- */
#common-home .hp-why {
  padding-top: clamp(60px, 8vw, 80px);
  padding-bottom: clamp(60px, 8vw, 80px);
}

#common-home .hp-why::before {
  background:
    radial-gradient(900px 480px at 8% 18%, rgba(67, 161, 55, 0.20), transparent 60%),
    radial-gradient(700px 480px at 92% 88%, rgba(244, 211, 94, 0.10), transparent 60%);
}

#common-home .hp-why .hp-section-head {
  max-width: 980px;
  text-align: left;
  margin-left: 0;
  margin-bottom: clamp(48px, 6vw, 76px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

#common-home .hp-why .hp-section-head .hp-eyebrow {
  color: rgba(255, 255, 255, 0.65);
  background: transparent;
}

#common-home .hp-why .hp-section-head .hp-eyebrow::before {
  background: var(--hp-cream);
  color: var(--hp-ink);
}

#common-home .hp-why .hp-section-head .hp-eyebrow::after {
  background: rgba(255, 255, 255, 0.2);
}

#common-home .hp-why .hp-section-head h2 {
  color: var(--hp-cream);
  font-family: var(--hp-font-display);
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 320;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 16ch;
}

#common-home .hp-why .hp-section-head h2 em {
  color: var(--hp-green);
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 60, "WONK" 1;
}

#common-home .hp-why .hp-section-head p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  max-width: 60ch;
  margin: 8px 0 0;
}

#common-home .hp-why-grid {
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#common-home .hp-why-card {
  background: var(--hp-ink);
  border: 0;
  border-radius: 0;
  padding: 36px 28px 32px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: relative;
  overflow: hidden;
}

#common-home .hp-why-card:hover {
  background: rgba(67, 161, 55, 0.18);
  transform: none;
}

#common-home .hp-why-icon {
  background: transparent;
  border: 1px solid var(--hp-green);
  color: var(--hp-green);
  border-radius: 0;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
}

#common-home .hp-why-card h3 {
  font-family: var(--hp-font-display) !important;
  font-weight: 380 !important;
  font-size: 24px !important;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--hp-cream) !important;
  font-variation-settings: "opsz" 60, "SOFT" 50, "WONK" 0;
}

#common-home .hp-why-card p {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- FOOTER — bold HIRSCH-green band, all-white type ---------- */
footer.hp-footer {
  background: var(--hp-green) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border-top: 0;
}

footer.hp-footer .hp-footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

footer.hp-footer .hp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

footer.hp-footer .hp-footer-brand p {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.7;
}

/* Logo — invert the black-rendered PNG back to white on the green band */
footer.hp-footer .hp-footer-logo {
  display: block;
  height: 52px;
  width: auto;
  margin: 0 0 22px;
  filter: brightness(0) invert(1);
}

footer.hp-footer .hp-footer-col h4 {
  font-family: "Hanken Grotesk", system-ui, sans-serif !important;
  color: #ffffff !important;
  font-size: 11px !important;
  letter-spacing: 0.22em !important;
  font-weight: 700 !important;
}

footer.hp-footer .hp-footer-col a,
footer.hp-footer a {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

footer.hp-footer .hp-footer-col a:hover {
  color: #ffffff;
}

footer.hp-footer .hp-footer-socials a {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
  border-radius: 0;
  width: 40px;
  height: 40px;
}

footer.hp-footer .hp-footer-socials a:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--hp-green);
  transform: translateY(-2px);
}

footer.hp-footer .hp-footer-bottom {
  color: rgba(255, 255, 255, 0.75);
}

footer.hp-footer .hp-footer-bottom a {
  color: #ffffff;
}

footer.hp-footer .hp-credentials {
  gap: 28px;
}

/* Thin divider between logo and social icons in the brand column */
footer.hp-footer .hp-footer-brand .hp-footer-socials {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 22px;
  margin-top: 22px;
}

footer.hp-footer .hp-credentials span {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.85);
  border-radius: 0;
  padding: 0;
}

/* ---------- Footer — mobile layout ---------- */
@media (max-width: 575px) {
  /* Center the brand block: logo + social icons. */
  footer.hp-footer .hp-footer-brand {
    text-align: center;
  }
  footer.hp-footer .hp-footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
  footer.hp-footer .hp-footer-brand .hp-footer-socials {
    justify-content: center;
  }
  /* Copyright on its own line, then the legal links on their own line,
     both centered. Full width so the text centers on screen, not just within
     its content-sized flex box. */
  footer.hp-footer .hp-footer-legalrow {
    width: 100%;
    text-align: center;
  }
  footer.hp-footer .hp-footer-copy,
  footer.hp-footer .hp-footer-legal {
    display: block;
  }
  /* Hide the separator that sat between copyright and the legal links inline. */
  footer.hp-footer .hp-footer-sep {
    display: none;
  }
  /* Center the ASI/PPAI/SAGE/UPIC badges on their own row. */
  footer.hp-footer .hp-credentials {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Section CTA links — editorial underline ---------- */
#common-home .hp-link-arrow {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hp-ink);
  border-bottom: 1px solid var(--hp-ink);
  border-radius: 0;
  padding: 6px 0 4px;
}

#common-home .hp-link-arrow:hover {
  color: var(--hp-green-deep);
  border-bottom-color: var(--hp-green-deep);
}

/* ---------- Subtle pull-rule between sections (when same surface) ---------- */
#common-home .hp-arrivals+.hp-section,
#common-home .hp-featured-brands+.hp-section {
  /* already handled via individual section borders */
}

/* ---------- Scroll-reveal: respect prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hp-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }

  .hp-reveal.is-in {
    opacity: 1;
    transform: translateY(0);
  }

  .hp-reveal-d1.is-in {
    transition-delay: 0.08s;
  }

  .hp-reveal-d2.is-in {
    transition-delay: 0.16s;
  }

  .hp-reveal-d3.is-in {
    transition-delay: 0.24s;
  }

  .hp-reveal-d4.is-in {
    transition-delay: 0.32s;
  }
}

/* ---------- 70+ Brands carousel stripes — refined gap ---------- */
#common-home .hp-brands-stripes {
  gap: 10px;
}

/* ---------- Body color overrides for legacy elements ---------- */
#common-home a {
  color: inherit;
}

#common-home p {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
}

/* ============================================================
   MEGA MENUS — editorial-luxury refinement
   ============================================================ */

/* Panel surface: white, sharp, single hairline top + heavy bottom shadow */
.hp-mega {
  background: #ffffff !important;
  border-top: 1px solid var(--hp-line) !important;
  border-radius: 0 !important;
  box-shadow: 0 32px 64px rgba(21, 24, 26, 0.10), 0 8px 16px rgba(21, 24, 26, 0.04) !important;
  padding: 44px 40px 36px !important;
}

/* Hide the hover-arrow on category links — the color change carries the
   feedback by itself */
.hp-mega-link .hp-mega-arrow {
  display: none !important;
}

/* Editorial eyebrow style for the column headings inside each mega.
   Matches the section-head eyebrows on the home page (tracked small caps
   with a short trailing rule), but without the numeric bullet. */
.hp-mega-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hp-ink-soft);
  margin: 0 0 22px;
}

.hp-mega-eyebrow::after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--hp-sand);
}

/* Column links — editorial underline that draws in on hover, no fill */
.hp-mega-columns {
  gap: 4px 32px !important;
  row-gap: 2px;
}

.hp-mega-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0 !important;
  border-radius: 0 !important;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--hp-ink-2);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-bottom-color 0.22s ease, padding-left 0.22s ease;
}

.hp-mega-link:hover {
  background: transparent !important;
  color: var(--hp-ink) !important;
  padding-left: 6px !important;
  border-bottom-color: var(--hp-ink);
}

.hp-mega-link .hp-mega-arrow {
  margin-left: auto;
  color: var(--hp-ink) !important;
  font-size: 11px;
}

/* Preview area: white frame around a white image card with serif label */
.hp-mega-preview {
  background: #ffffff !important;
  border: 1px solid var(--hp-line);
  border-radius: 0 !important;
  padding: 22px !important;
  min-height: 380px !important;
}

.hp-mega-preview .hp-mega-preview-img {
  background: #fff !important;
  border: 1px solid var(--hp-line-soft);
  border-radius: 0 !important;
}

.hp-mega-preview img {
  max-height: 280px;
}

.hp-mega-preview-meta strong {
  font-family: var(--hp-font-display) !important;
  font-weight: 380;
  font-size: 22px;
  letter-spacing: -0.018em;
  line-height: 1.1;
  color: var(--hp-ink);
  font-variation-settings: "opsz" 60, "SOFT" 50, "WONK" 0;
}

/* ---------- BRANDS MEGA ---------- */

/* Letter filter: clean rectangular chips, ink active state */
.hp-brand-filter {
  background: transparent !important;
  border: none;
  border-radius: 0 !important;
  padding: 4px !important;
  gap: 2px !important;
  width: 100% !important;
  max-width: none;
  justify-content: center;
}

.hp-brand-filter>span {
  border-radius: 0 !important;
  min-width: 34px !important;
  height: 30px !important;
  padding: 0 10px !important;
  font-family: "Hanken Grotesk", system-ui, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em;
  color: var(--hp-ink-soft) !important;
  background: transparent !important;
  transition: background 0.18s ease, color 0.18s ease;
}

.hp-brand-filter>span:hover {
  color: var(--hp-ink) !important;
  background: var(--hp-cream-2) !important;
}

.hp-brand-filter>span.active {
  background: var(--hp-ink) !important;
  color: var(--hp-cream) !important;
  box-shadow: none !important;
}

/* Brand grid — denser to fit more brands without scrolling (10 cols, compact tiles) */
.hp-brand-grid {
  padding: 8px 0 12px !important;
  gap: 6px !important;
  grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
  max-height: calc(100vh - 220px) !important;
}

.hp-brand-grid .brand-item {
  background: #ffffff !important;
  border: 1px solid transparent !important;
  border-radius: 0 !important;
  min-height: 58px !important;
  padding: 4px 4px !important;
}

.hp-brand-grid .brand-item img {
  max-height: 46px !important;
  max-width: 100% !important;
}

.hp-brand-grid .brand-item:hover {
  border-color: var(--hp-green) !important;
  box-shadow: var(--hp-shadow) !important;
  transform: none !important;
}

/* "Scroll for more" hint */
.hp-brand-scroll-hint {
  background: var(--hp-ink) !important;
  color: var(--hp-cream) !important;
  border-radius: 0 !important;
  font-family: "Hanken Grotesk", system-ui, sans-serif !important;
  font-size: 10px !important;
  letter-spacing: 0.24em !important;
  padding: 8px 16px !important;
}

/* ---------- SALES TOOLS MEGA ---------- */

.hp-mega-tools {
  gap: 8px !important;
  min-width: 600px !important;
}

.hp-mega-tool {
  background: #ffffff !important;
  border: 1px solid var(--hp-line) !important;
  border-radius: 0 !important;
  padding: 18px 18px !important;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.hp-mega-tool:hover {
  background: #ffffff !important;
  border-color: var(--hp-ink) !important;
  box-shadow: var(--hp-shadow) !important;
  transform: none !important;
}

.hp-mega-tool .hp-mega-tool-icon {
  width: 44px !important;
  height: 44px !important;
  background: transparent !important;
  border: 1px solid var(--hp-green) !important;
  color: var(--hp-green) !important;
  border-radius: 0 !important;
  font-size: 16px !important;
}

.hp-mega-tool strong {
  font-family: var(--hp-font-display) !important;
  font-weight: 380 !important;
  font-size: 17px !important;
  letter-spacing: -0.012em !important;
  line-height: 1.15;
  color: var(--hp-ink) !important;
  font-variation-settings: "opsz" 36, "SOFT" 50, "WONK" 0;
  display: block;
}

.hp-mega-tool span {
  font-family: "Hanken Grotesk", system-ui, sans-serif !important;
  font-size: 12px !important;
  color: var(--hp-ink-soft) !important;
  letter-spacing: 0.005em;
  margin-top: 4px !important;
}

/* Grids inside mega menus shouldn't show legacy preview/eyebrow margins */
.hp-mega .hp-eyebrow {
  /* in case any stragglers exist */
  background: transparent !important;
  padding: 0 !important;
  font-family: "Hanken Grotesk", system-ui, sans-serif !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.24em !important;
  color: var(--hp-ink-soft) !important;
  text-transform: uppercase;
}

/* ============================================================
   Pass-2 round-2 tweaks (squarer header, white sections, no-wrap copy)
   ============================================================ */

/* ---------- Utility-bar promo link ---------- */
.hp-redesign-header a.hp-utility-promo {
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.18s ease;
}

.hp-redesign-header a.hp-utility-promo:hover {
  opacity: 0.78;
  color: #fff;
}

/* ---------- Header element squaring ---------- */
/* Cart badge — was a pill, now a square chip */
.hp-redesign-header #cart-badge {
  border-radius: 2px !important;
  padding: 0 5px !important;
  min-width: 16px !important;
  height: 16px !important;
}

/* Action buttons square corners */
.hp-redesign-header .hp-icon-btn,
.hp-redesign-header .top-header-btn,
.hp-redesign-header #cart-button {
  border-radius: 2px !important;
}

/* ---------- Mega Menu: Brand cards on white ---------- */
.hp-brand-grid .brand-item {
  background: #ffffff !important;
}

/* ---------- Hero: drop scroll cue, square arrows ---------- */
#common-home .hp-hero::before,
#common-home .hp-hero::after {
  content: none !important;
}

#common-home .hp-hero .carousel-control-prev,
#common-home .hp-hero .carousel-control-next {
  width: 44px !important;
  height: 44px !important;
  border-radius: 2px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid var(--hp-line) !important;
  box-shadow: var(--hp-shadow);
  transform: translateY(-50%) !important;
}

#common-home .hp-hero .carousel-control-prev:hover,
#common-home .hp-hero .carousel-control-next:hover {
  background: var(--hp-ink) !important;
  border-color: var(--hp-ink) !important;
  transform: translateY(-50%) !important;
}

#common-home .hp-hero .carousel-control-prev:hover .carousel-control-prev-icon,
#common-home .hp-hero .carousel-control-next:hover .carousel-control-next-icon {
  border-color: var(--hp-cream) !important;
}

/* ---------- Section backgrounds (Featured + Arrivals + Brands → pure white) ---------- */
#common-home .hp-featured-brands {
  background: #ffffff !important;
}

#common-home .hp-arrivals {
  background: #ffffff !important;
}

#common-home #manufacturer-banner.hp-brands {
  background: #ffffff !important;
}

#common-home .hp-arrivals .product-thumb .image,
#common-home .hp-arrivals .product-thumb .product-colors {
  background: #ffffff !important;
}

/* ---------- Section description: no-wrap on desktop, normal on mobile ---------- */
@media (min-width: 768px) {

  #common-home .hp-categories .hp-section-head p,
  #common-home .hp-arrivals .hp-section-head p,
  #common-home .hp-resources .hp-section-head p,
  #common-home #manufacturer-banner .hp-section-head p {
    white-space: nowrap;
    max-width: none;
  }

  #common-home #manufacturer-banner .hp-section-head .hp-brands-title-row h2 {
    white-space: nowrap;
  }
}

/* ---------- Resources: fix unreadable CTA on revealed card back ---------- */
#common-home .hp-resource-back .hp-resource-link {
  background: var(--hp-cream) !important;
  color: var(--hp-ink) !important;
  border: 1px solid var(--hp-cream) !important;
}

#common-home .hp-resource-back .hp-resource-link:hover {
  background: var(--hp-green) !important;
  border-color: var(--hp-green) !important;
  color: #fff !important;
}

#common-home .hp-resource-back .hp-resource-link i {
  color: inherit !important;
}

/* ---------- Scroll-reveal: extended delay classes for 2-row grids ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hp-reveal-d5.is-in {
    transition-delay: 0.40s;
  }

  .hp-reveal-d6.is-in {
    transition-delay: 0.48s;
  }

  .hp-reveal-d7.is-in {
    transition-delay: 0.56s;
  }

  .hp-reveal-d8.is-in {
    transition-delay: 0.64s;
  }
}

/* ---------- 70+ Brands: static wall, every brand visible at once ----------
   Using flex-wrap instead of CSS Grid so the last (incomplete) row can be
   center-aligned via justify-content. --cols drives the per-tile width via
   calc and shifts at breakpoints. */

#common-home .hp-brands-wall {
  --cols: 10;
  --gap: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  margin: clamp(36px, 5vw, 56px) 0;
}

#common-home .hp-brand-tile {
  flex: 0 0 auto;
  width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--hp-line);
  min-height: 92px;
  padding: 8px 10px;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#common-home .hp-brand-tile img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  object-fit: contain;
  filter: grayscale(35%);
  opacity: 0.82;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

#common-home .hp-brand-tile:hover {
  border-color: var(--hp-green);
  box-shadow: var(--hp-shadow);
}

#common-home .hp-brand-tile:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}

/* Responsive column counts (just update --cols; calc handles widths) */
@media (max-width: 1399px) {
  #common-home .hp-brands-wall {
    --cols: 9;
  }
}

@media (max-width: 1199px) {
  #common-home .hp-brands-wall {
    --cols: 8;
  }
}

@media (max-width: 991px) {
  #common-home .hp-brands-wall {
    --cols: 6;
  }
}

@media (max-width: 767px) {
  #common-home .hp-brands-wall {
    --cols: 4;
  }
}

@media (max-width: 419px) {
  #common-home .hp-brands-wall {
    --cols: 3;
  }
}

/* Tighten tile size on smaller screens */
@media (max-width: 991px) {
  #common-home .hp-brand-tile {
    min-height: 78px;
    padding: 6px 8px;
  }

  #common-home .hp-brand-tile img {
    max-height: 60px;
  }
}

@media (max-width: 575px) {
  #common-home .hp-brand-tile {
    min-height: 64px;
    padding: 4px 6px;
  }

  #common-home .hp-brand-tile img {
    max-height: 50px;
  }
}

/* ---------- Latest Arrivals: square color swatches ---------- */
#common-home .hp-arrivals .product-thumb .product-colors .color-border {
  border-radius: 2px !important;
  border-color: var(--hp-line) !important;
}

#common-home .hp-arrivals .product-thumb .product-colors .color-border img {
  border-radius: 0 !important;
}

/* ---------- Latest Arrivals: make the whole tile clickable ----------
   A transparent <a> overlay spans the entire .product-thumb at z-index 1.
   The image, color swatches, and other action elements live at z-index 2
   so per-color URLs (swatch clicks) and the inner image anchor still win.
   Pseudo-elements were tried first but the inner .image is `position: relative`
   so the anchor's ::after couldn't escape the image box. */
#common-home .hp-arrivals .product-thumb {
  position: relative;
}

#common-home .hp-arrivals .product-thumb .hp-product-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  /* No text/visible content; the existing inner anchors carry the
     accessible name. We still set an aria-label as a safety net. */
}

/* Lift the per-product interactive bits above the overlay */
#common-home .hp-arrivals .product-thumb .image,
#common-home .hp-arrivals .product-thumb .product-colors {
  position: relative;
  z-index: 2;
}

#common-home .hp-arrivals .product-thumb .product-colors a {
  position: relative;
}

#common-home .hp-arrivals .product-thumb .hp-card-foot {
  position: relative;
  z-index: 2;
}

/* ---------- Why HIRSCH: center alignment, clean wrap ---------- */
#common-home .hp-why .hp-section-head {
  max-width: 880px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

#common-home .hp-why .hp-section-head .hp-eyebrow {
  justify-content: center;
}

#common-home .hp-why .hp-section-head h2 {
  font-size: clamp(40px, 5.4vw, 72px);
  margin: 14px auto 18px;
  text-align: center;
}

@media (min-width: 768px) {
  #common-home .hp-why .hp-section-head h2 {
    white-space: nowrap;
    max-width: none;
  }
}

#common-home .hp-why .hp-section-head p {
  margin: 0 auto;
  max-width: 86ch;
  text-align: center;
}

/* ============================================================
   Header / menu palette: strictly HIRSCH green + white
   No darker greens, no ink. Hover states use invert (green↔white)
   or opacity rather than another shade.
   ============================================================ */

/* Utility bar — HIRSCH green, same as the main bar so they read as one band.
   A faint white hairline at the bottom separates the two so the top strip
   still reads as a distinct band. */
.hp-redesign-header .hp-utility {
  background: var(--hp-green) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

/* Promo dot — was green-on-green which doesn't read, switch to a white dot
   with a transparent-white pulsing halo so it pops on the green band.
   NOTE: do NOT mark box-shadow !important here — per spec, !important
   static declarations override animation keyframes, which would freeze
   the halo and stop the pulse. */
.hp-redesign-header .hp-utility .hp-pulse {
  background: #ffffff !important;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
  animation: hp-pulse-white 1.8s infinite !important;
}

@keyframes hp-pulse-white {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Search button — green default, invert to white-bg + green-icon on hover */
#search button {
  background: var(--hp-green, #43a137) !important;
  color: #ffffff !important;
  border: 1px solid var(--hp-green, #43a137) !important;
}

#search button:hover {
  background: #ffffff !important;
  color: var(--hp-green, #43a137) !important;
}

#search button svg {
  color: inherit !important;
}

/* Section number badge in eyebrow — green circle, white digits */
#common-home .hp-section-head .hp-eyebrow::before {
  background: var(--hp-green) !important;
  color: #ffffff !important;
}

/* Mega menu link hover — green text + green underline */
.hp-mega-link:hover {
  border-bottom-color: var(--hp-green) !important;
  color: var(--hp-green) !important;
}

.hp-mega-link .hp-mega-arrow {
  color: var(--hp-green) !important;
}

/* Brand filter row — green active chip, soft green hover */
.hp-brand-filter>span:hover {
  color: var(--hp-green) !important;
  background: rgba(67, 161, 55, 0.08) !important;
}

.hp-brand-filter>span.active {
  background: var(--hp-green) !important;
  color: #ffffff !important;
}

/* Brand grid tile hover — green border */
.hp-brand-grid .brand-item:hover {
  border-color: var(--hp-green) !important;
}

/* "Scroll for more" hint — green pill with white text */
.hp-brand-scroll-hint {
  background: var(--hp-green) !important;
  color: #ffffff !important;
}

/* Sales Tools mega tile hover — green border */
.hp-mega-tool:hover {
  border-color: var(--hp-green) !important;
}

/* Hero prev/next on hover — green button, white arrow */
#common-home .hp-hero .carousel-control-prev:hover,
#common-home .hp-hero .carousel-control-next:hover {
  background: var(--hp-green) !important;
  border-color: var(--hp-green) !important;
}

#common-home .hp-hero .carousel-control-prev:hover .carousel-control-prev-icon,
#common-home .hp-hero .carousel-control-next:hover .carousel-control-next-icon {
  border-color: #ffffff !important;
}

/* Search autocomplete "View all results" CTA — green button, invert on hover */
#search #searchResults>.list-group-item:last-child,
#search .list-group-item.fw-bold.text-center {
  background: var(--hp-green) !important;
  color: #ffffff !important;
}

#search #searchResults>.list-group-item:last-child:hover,
#search .list-group-item.fw-bold.text-center:hover {
  background: #ffffff !important;
  color: var(--hp-green) !important;
  border: 1px solid var(--hp-green) !important;
}

/* Featured Brands bar "All 70+ brands" CTA — green underlined link */
#common-home .hp-featured-bar-all {
  color: var(--hp-green) !important;
  border-bottom-color: var(--hp-green) !important;
}

#common-home .hp-featured-bar-all:hover {
  opacity: 0.7;
}

/* Editorial section CTA arrow link — green underlined */
#common-home .hp-link-arrow {
  color: var(--hp-green) !important;
  border-bottom-color: var(--hp-green) !important;
}

#common-home .hp-link-arrow:hover {
  opacity: 0.7;
}

/* ============================================================
   Simplified section headings
   Hide the numeric eyebrow + paragraph description; render just
   the title centered with grey hairlines extending on either side.
   ============================================================ */
#common-home .hp-section-head .hp-eyebrow,
#common-home .hp-section-head>p {
  display: none !important;
}

#common-home .hp-section-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 48px);
  max-width: 920px;
  margin: 0 auto clamp(36px, 5vw, 60px);
}

#common-home .hp-section-head::before,
#common-home .hp-section-head::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: var(--hp-line);
  min-width: 40px;
}

#common-home .hp-section-head h2 {
  flex: 0 0 auto;
  margin: 0 !important;
  white-space: nowrap;
}

/* Mobile — let the title wrap, lines stay flanking */
@media (max-width: 575px) {
  #common-home .hp-section-head h2 {
    white-space: normal;
    text-align: center;
    /* Allow the flex item to shrink below its single-line content width so the
       title actually wraps instead of overflowing the screen. */
    flex: 0 1 auto;
    min-width: 0;
  }

  #common-home .hp-section-head {
    gap: 14px;
  }

  #common-home .hp-section-head::before,
  #common-home .hp-section-head::after {
    min-width: 20px;
  }
}

/* Why HIRSCH section head was previously left/centered with bigger type +
   constrained max-width; keep the centering but let it use the same
   flex-with-side-lines pattern */
#common-home .hp-why .hp-section-head {
  max-width: 1080px;
}

#common-home .hp-why .hp-section-head h2 {
  max-width: none;
}

/* ============================================================
   Hero prev/next: just white arrows (no white box / no border)
   ============================================================ */
#common-home .hp-hero .carousel-control-prev,
#common-home .hp-hero .carousel-control-next {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  width: 56px !important;
  height: 56px !important;
}

#common-home .hp-hero .carousel-control-prev:hover,
#common-home .hp-hero .carousel-control-next:hover {
  background: transparent !important;
  border: 0 !important;
}

#common-home .hp-hero .carousel-control-prev-icon,
#common-home .hp-hero .carousel-control-next-icon {
  border-color: #ffffff !important;
  border-width: 0 3px 3px 0 !important;
  width: 18px !important;
  height: 18px !important;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

#common-home .hp-hero .carousel-control-prev:hover .carousel-control-prev-icon,
#common-home .hp-hero .carousel-control-next:hover .carousel-control-next-icon {
  border-color: #ffffff !important;
  transform: scale(1.15);
  transition: transform 0.18s ease;
}

/* ====================================================================
   BRANDS PAGE (/brands) — alphabetical logo wall
   Mirrors the homepage "70+ premium brands" section, with an A–Z filter
   bar like the header brand megamenu and slightly larger logo tiles.
   ==================================================================== */

#product-manufacturer .hp-brandpage-head {
  text-align: center;
  margin: clamp(8px, 2vw, 20px) 0 clamp(12px, 2.5vw, 24px);
}

#product-manufacturer .hp-brandpage-head h1 {
  margin: 0;
}

/* A–Z filter bar — reuses the megamenu chip styling, centered above the wall */
#product-manufacturer .hp-brandpage-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--hp-line);
  padding-bottom: 12px !important;
  margin-bottom: clamp(20px, 3vw, 36px);
}

/* Logo wall — flex-wrap so the last row centers; --cols sets tile width */
#product-manufacturer .hp-brandpage-wall {
  --cols: 8;
  --gap: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  margin: 0 0 clamp(40px, 5vw, 64px);
}

#product-manufacturer .hp-brandpage-tile {
  flex: 0 0 auto;
  width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--hp-line);
  min-height: 116px;
  padding: 12px 14px;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#product-manufacturer .hp-brandpage-tile img {
  max-width: 100%;
  max-height: 88px;
  width: auto;
  object-fit: contain;
  filter: grayscale(35%);
  opacity: 0.82;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

#product-manufacturer .hp-brandpage-tile:hover {
  border-color: var(--hp-green);
  box-shadow: var(--hp-shadow);
}

#product-manufacturer .hp-brandpage-tile:hover img {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}

#product-manufacturer .hp-brandpage-empty {
  text-align: center;
  color: var(--hp-ink-soft);
  margin: 40px 0;
}

/* Responsive column counts (calc handles the widths) */
@media (max-width: 1399px) {
  #product-manufacturer .hp-brandpage-wall { --cols: 7; }
}

@media (max-width: 1199px) {
  #product-manufacturer .hp-brandpage-wall { --cols: 6; }
}

@media (max-width: 991px) {
  #product-manufacturer .hp-brandpage-wall { --cols: 5; }

  #product-manufacturer .hp-brandpage-tile {
    min-height: 96px;
    padding: 8px 10px;
  }

  #product-manufacturer .hp-brandpage-tile img {
    max-height: 72px;
  }
}

@media (max-width: 767px) {
  #product-manufacturer .hp-brandpage-wall { --cols: 4; }
}

@media (max-width: 575px) {
  #product-manufacturer .hp-brandpage-wall { --cols: 3; }

  #product-manufacturer .hp-brandpage-tile {
    min-height: 78px;
    padding: 6px 8px;
  }

  #product-manufacturer .hp-brandpage-tile img {
    max-height: 56px;
  }
}

@media (max-width: 419px) {
  #product-manufacturer .hp-brandpage-wall { --cols: 2; }
}
/* ====================================================================
   SHOP ALL CATEGORIES / THEMES (/categories, /themes) — full tile wall
   Reuses the homepage "Shop by Category/Theme" card surface on a /brands-
   style landing page. The header mirrors the brands wall; the .hp-tilewall
   rules below carry the homepage's #common-home card refinements (gap,
   aspect ratio, gradient, display label, hover frame) onto this page,
   since those refinements were originally scoped to #common-home.
   ==================================================================== */

#product-tile-wall {
  padding-top: clamp(16px, 3vw, 32px);
  padding-bottom: clamp(40px, 6vw, 80px);
}

#product-tile-wall .hp-brandpage-head {
  text-align: center;
  margin: clamp(8px, 2vw, 20px) 0 clamp(20px, 3vw, 36px);
}

#product-tile-wall .hp-brandpage-head h1 {
  margin: 0;
}

#product-tile-wall .hp-brandpage-head p {
  max-width: 640px;
  margin: 10px auto 0;
  color: var(--hp-muted, #5b6066);
}

.hp-tilewall .hp-categories-grid {
  gap: 14px;
}

.hp-tilewall .hp-category-card {
  border-radius: 2px;
  aspect-ratio: 3 / 4;
}

.hp-tilewall .hp-category-card::after {
  background: linear-gradient(to top,
      rgba(21, 24, 26, 0.78) 0%,
      rgba(21, 24, 26, 0.32) 38%,
      rgba(21, 24, 26, 0) 72%);
}

.hp-tilewall .hp-category-card .hp-category-label {
  align-items: flex-end;
  bottom: 20px;
  left: 20px;
  right: 20px;
}

.hp-tilewall .hp-category-card .hp-category-label-text {
  font-family: var(--hp-font-display);
  font-weight: 400;
  font-size: clamp(20px, 1.6vw, 26px);
  letter-spacing: -0.015em;
  line-height: 1.05;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  font-variation-settings: "opsz" 72, "SOFT" 40, "WONK" 0;
}

.hp-tilewall .hp-effect-line {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hp-tilewall .hp-effect-line::before,
.hp-tilewall .hp-effect-line::after {
  content: "";
  position: absolute;
  inset: 12px;
  transition: transform 0.4s ease-in-out;
}

.hp-tilewall .hp-effect-line::before {
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transform: scale(0, 1);
}

.hp-tilewall .hp-effect-line::after {
  border-left: 1px solid #fff;
  border-right: 1px solid #fff;
  transform: scale(1, 0);
}

.hp-tilewall .hp-category-card:hover .hp-effect-line::before,
.hp-tilewall .hp-category-card:hover .hp-effect-line::after {
  transform: scale(1);
}

/* ---------- Cross-link CTA (bottom of /categories, /themes, /brands) ----------
   "Don't see what you're looking for?" nudges shoppers toward the other two
   browse axes. Shared by the tile-wall pages and the brands wall. */
.hp-crosslink {
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding: clamp(28px, 4vw, 44px) 24px 4px;
  max-width: 760px;
  text-align: center;
  border-top: 1px solid var(--hp-line);
}

.hp-crosslink-text {
  margin: 0 0 20px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--hp-ink);
}

.hp-crosslink-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hp-crosslink-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid var(--hp-green);
  color: var(--hp-green);
  background: transparent;
  transition: background 0.18s ease, color 0.18s ease, gap 0.18s ease, transform 0.18s ease;
}

.hp-crosslink-btn:hover {
  background: var(--hp-green);
  color: #fff;
  gap: 13px;
  transform: translateY(-1px);
}

/* First button gets the solid emphasis treatment. */
.hp-crosslink-btn:first-child {
  background: var(--hp-green);
  color: #fff;
  border-color: var(--hp-green);
}

.hp-crosslink-btn:first-child:hover {
  background: var(--hp-green-dark);
  border-color: var(--hp-green-dark);
}

/* Brands wall (list page only) — match the /categories & /themes bottom spacing
   so the cross-link CTA isn't crammed against the footer. Scoped to .hp-wallpage
   so the brand product page (shares #product-manufacturer) is unaffected. */
#product-manufacturer.hp-wallpage {
  padding-bottom: clamp(40px, 6vw, 80px);
}
