/* NextBuy all-site homepage v5. Scoped exclusively to [nextbuy_homepage].
   Genuine WooCommerce cards, genuine terms, no archive/SEO CSS changes. */
.nb-homepage {
  --nbhp-blue: #2549b8;
  --nbhp-blue-hover: #1b3588;
  --nbhp-ink: #172033;
  --nbhp-muted: #4b5568;
  --nbhp-surface: #f6f8fb;
  --nbhp-border: #e3e8f0;
  --nbhp-price: #b46a00;
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 10px 0 76px;
  color: var(--nbhp-ink);
  font: inherit;
}
.nb-homepage *, .nb-homepage *::before, .nb-homepage *::after { box-sizing: border-box; }
.nb-homepage a { text-decoration: none!important; }
.nb-homepage a:focus-visible { outline: 3px solid var(--nbhp-blue); outline-offset: 3px; }
.nb-homepage svg { vertical-align: middle; }

/* Merchandising lead: product + navigable promotional destinations. */
.nb-homepage__opening {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 15px;
}
.nb-homepage__hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas:
    "copy visual"
    "product visual"
    "controls visual";
  gap: 18px 22px;
  align-items: stretch;
  min-height: 410px;
  padding: clamp(24px, 2.7vw, 43px);
  border-radius: 18px;
  background: linear-gradient(135deg, #f4f7fb 0%, #fbfcfe 56%, #eef3f9 100%);
  border: 1px solid var(--nbhp-border);
  overflow: hidden;
}
.nb-homepage__hero::after {
  content: "";
  position: absolute;
  inset: auto auto -110px -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,73,184,.075) 0%, rgba(37,73,184,0) 72%);
  pointer-events: none;
}
.nb-homepage__hero--plain { grid-template-columns: 1fr; grid-template-areas: "copy"; }
.nb-homepage__hero-copy {
  grid-area: copy;
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.nb-homepage__eyebrow {
  margin: 0 0 15px!important;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.35;
  color: #566579;
}
.nb-homepage .nb-homepage__hero h1 {
  margin: 0 0 14px!important;
  max-width: 580px;
  font-size: clamp(31px, 2.9vw, 46px);
  font-weight: 800;
  letter-spacing: -.041em;
  line-height: 1.06;
  color: #152037;
  overflow-wrap: anywhere;
}
.nb-homepage__hero-description {
  max-width: 500px;
  margin: 0 0 16px!important;
  font-size: 14px;
  line-height: 1.68;
  color: var(--nbhp-muted);
}
.nb-homepage__hero-detail-track {
  grid-area: product;
  width: 100%;
  min-width: 0;
}
.nb-homepage__hero-product {
  align-self: start;
  width: 100%;
  max-width: 470px;
  padding: 18px 18px 17px;
  border: 1px solid #dde5f0;
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 10px 28px rgba(21,32,55,.045);
}
.nb-homepage__hero-featured { display: flex; flex-direction: column; gap: 6px; margin: 0 0 13px!important; }
.nb-homepage__hero-featured > span { color: #65738a; font-size: 9px; letter-spacing: .11em; font-weight: 800; }
.nb-homepage__hero-featured > strong { color: var(--nbhp-ink); font-size: clamp(15px,1.6vw,20px); line-height: 1.32; letter-spacing: -.013em; font-weight: 750; }
.nb-homepage__hero-price {
  margin: 0 0 18px;
  color: var(--nbhp-price)!important;
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 800;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.nb-homepage__hero-price *,
.nb-homepage__hero-price .woocommerce-Price-amount,
.nb-homepage__hero-price .woocommerce-Price-currencySymbol { color: var(--nbhp-price)!important; }
.nb-homepage__hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.nb-homepage__text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nbhp-blue)!important;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.nb-homepage__text-link:hover { color: var(--nbhp-blue-hover)!important; }
.nb-homepage__hero-feature-link { min-height: 35px; font-size: 13px; font-weight: 800; }
.nb-homepage__hero-visual {
  grid-area: visual;
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 330px;
}
.nb-homepage__hero-image-link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  text-decoration: none!important;
}
.nb-homepage__hero-image-link .nb-homepage__hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.nb-homepage__hero-image-link img {
  display: block;
  width: 100%!important;
  max-width: 100%!important;
  height: 100%!important;
  max-height: 100%!important;
  object-fit: contain!important;
}
.nb-homepage [data-nbhp-hero-image][hidden],
.nb-homepage [data-nbhp-hero-detail][hidden],
.nb-homepage [data-nbhp-hero-controls][hidden] { display: none!important; }
.nb-homepage__hero-media {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 330px;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,249,253,.98));
  border: 1px solid #e6ebf3;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 12px 32px rgba(22,36,56,.055);
}
.nb-homepage__hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 410px;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(27,42,61,.08));
}
/* Accessible, restrained hero slider controls; hidden without JS. */
.nb-homepage__hero-controls {
  grid-area: controls;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 34px;
  margin-top: 0;
}
.nb-homepage__hero-nav {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 1px solid #d5dfea;
  border-radius: 50%;
  background: #fff;
  color: #152037;
  cursor: pointer;
}
.nb-homepage__hero-nav:hover { border-color: #9db3d5; color: var(--nbhp-blue); }
.nb-homepage__hero-nav--prev svg { transform: rotate(180deg); }
.nb-homepage__hero-dots { display: flex; align-items: center; justify-content: center; gap: 7px; }
.nb-homepage__hero-dot {
  flex: none;
  display: block;
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #bcc7d7;
  cursor: pointer;
}
.nb-homepage__hero-dot[aria-current="true"] { width: 20px; border-radius: 999px; background: var(--nbhp-blue); }
.nb-homepage__hero-counter { font-size: 11px; color: #627086; margin-left: 2px; font-variant-numeric: tabular-nums; }
.nb-homepage__hero-nav:focus-visible,
.nb-homepage__hero-dot:focus-visible { outline: 2px solid var(--nbhp-blue); outline-offset: 3px; }
.nb-homepage__promos { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; min-width: 0; margin-top: 14px; }
.nb-homepage__promo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  min-height: 110px;
  gap: 6px;
  padding: 20px 23px;
  border: 1px solid var(--nbhp-border);
  border-radius: 13px;
  color: var(--nbhp-ink)!important;
  background: #f6f8fc;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.nb-homepage__promo--offers { background: linear-gradient(135deg, #eaf0ff, #f5f7fc); }
.nb-homepage__promo--used { background: linear-gradient(135deg, #f2f2ef, #fafaf8); }
.nb-homepage__promo:hover { border-color: #b9c6d9; box-shadow: 0 6px 20px rgba(19,32,54,.045); }
.nb-homepage__promo-kicker { color: #647087; font-size: 10px; font-weight: 800; letter-spacing: .11em; }
.nb-homepage__promo strong { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.17; font-weight: 800; letter-spacing: -.025em; }
.nb-homepage__promo > span:not(.nb-homepage__promo-kicker):not(.nb-homepage__promo-action) { color: var(--nbhp-muted); font-size: 12px; line-height: 1.5; }
.nb-homepage__promo-action { display: inline-flex; align-items: center; gap: 7px; margin-top: 7px; color: var(--nbhp-blue); font-size: 12px; font-weight: 800; }

/* All populated departments, never an incomplete hard-coded grid. */
.nb-homepage__section { margin: clamp(35px, 4.4vw, 62px) 0 0; }
.nb-homepage__section-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 19px; }
.nb-homepage .nb-homepage__section-header h2 { margin: 0!important; font-size: clamp(21px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.026em; font-weight: 800; color: var(--nbhp-ink); }
.nb-homepage__section-subtitle { margin: 7px 0 0!important; font-size: 12.5px; line-height: 1.55; color: var(--nbhp-muted); }
.nb-homepage__view-all { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; flex: none; color: var(--nbhp-blue)!important; font-size: 12px; font-weight: 800; white-space: nowrap; }
.nb-homepage__view-all:hover { color: var(--nbhp-blue-hover)!important; }
.nb-homepage__department-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nb-homepage__department {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 112px;
  padding: 13px;
  border: 1px solid var(--nbhp-border);
  border-radius: 12px;
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.nb-homepage__department:hover { border-color: #c8d1e0; box-shadow: 0 5px 15px rgba(25,40,62,.035); }
.nb-homepage__department-primary { display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 52px; color: var(--nbhp-ink)!important; }
.nb-homepage__department-visual { display: grid; place-items: center; flex: none; width: 57px; height: 57px; padding: 4px; border-radius: 9px; background: var(--nbhp-surface); overflow: hidden; }
.nb-homepage__department-visual img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nb-homepage__department-initial { color: #7b88a6; font-size: 26px; font-weight: 800; }
.nb-homepage__department-name { flex: 1; min-width: 0; font-size: 13px; line-height: 1.28; letter-spacing: -.008em; font-weight: 800; overflow-wrap: anywhere; }
.nb-homepage__department-arrow { display: flex; flex: none; color: #a0a8b5; }
.nb-homepage__department-subcats { display: flex; flex-wrap: wrap; gap: 5px 10px; padding: 8px 0 0 68px; }
.nb-homepage__department-subcats a { color: var(--nbhp-muted)!important; font-size: 11px; line-height: 1.5; }
.nb-homepage__department-subcats a:hover { color: var(--nbhp-blue)!important; text-decoration: underline!important; }

/* Product shelves use the exact catalogue article renderer and dimensions. */
.nb-homepage.woocommerce ul.products.nb-homepage__product-grid,
.woocommerce .nb-homepage ul.products.nb-homepage__product-grid,
.woocommerce-page .nb-homepage ul.products.nb-homepage__product-grid {
  display: grid!important;
  grid-template-columns: repeat(2,minmax(0,1fr))!important;
  gap: 12px!important;
  align-items: stretch!important;
  width: 100%!important;
  margin: 0!important;
  padding: 0!important;
  list-style: none!important;
}
.nb-homepage.woocommerce ul.products.nb-homepage__product-grid > li.product,
.woocommerce .nb-homepage ul.products.nb-homepage__product-grid > li.product,
.woocommerce-page .nb-homepage ul.products.nb-homepage__product-grid > li.product {
  width: auto!important;
  min-width: 0!important;
  max-width: none!important;
  margin: 0!important;
  padding: 0!important;
  float: none!important;
  clear: none!important;
}
/* Compact two-column desktop list: image left, information right.
   Reuse the actual catalogue card renderer; only the homepage presentation
   changes. Six products show as three balanced rows per department. */
.nb-homepage .nb-product-card {
  display: grid!important;
  grid-template-columns: clamp(156px, 13vw, 188px) minmax(0,1fr)!important;
  align-items: stretch!important;
  height: 100%!important;
  min-height: 175px!important;
}
.nb-homepage .nb-product-card__media {
  width: 100%!important;
  height: 100%!important;
  min-height: 100%!important;
  aspect-ratio: auto!important;
}
.nb-homepage .nb-product-card__image-inner { padding: 12px!important; }
.nb-homepage .nb-product-card__body {
  min-height: 0!important;
  padding: 14px 16px 14px!important;
}
.nb-homepage .nb-product-card__title {
  height: auto!important;
  min-height: 0!important;
  max-height: 42px!important;
  margin-bottom: 7px!important;
}
.nb-homepage .nb-product-card__price {
  height: auto!important;
  min-height: 0!important;
  max-height: none!important;
  flex: 0 0 auto!important;
  margin-bottom: 8px!important;
}
.nb-homepage .nb-product-card__meta {
  min-height: 0!important;
  margin-bottom: 8px!important;
}
.nb-homepage .nb-product-card__actions { margin-top: auto!important; }
.nb-homepage .nb-product-card__cta,
.woocommerce .nb-homepage .nb-product-card__cta { min-height: 39px!important; }
.nb-homepage .nb-product-card__price,
.nb-homepage .nb-product-card__price ins,
.nb-homepage .nb-product-card__price > span,
.nb-homepage .nb-product-card__price .woocommerce-Price-amount { color: var(--nbhp-price)!important; }
.nb-homepage .nb-product-card__price del,
.nb-homepage .nb-product-card__price del .woocommerce-Price-amount { color: #8b93a0!important; }
.nb-homepage__offers-empty, .nb-homepage__preowned-feature { min-height: 140px; padding: 24px; border: 1px solid var(--nbhp-border); border-radius: 14px; background: var(--nbhp-surface); }
.nb-homepage__offers-empty .nb-homepage__section-header, .nb-homepage__preowned-feature .nb-homepage__section-header { margin: 0; }

/* Structured, compact directory. All category anchors exist in the HTML.
   JavaScript progressively enhances overflow links with smooth disclosure. */
.nb-homepage__directory {
  padding: clamp(23px, 3vw, 38px);
  background: var(--nbhp-surface);
  border: 1px solid var(--nbhp-border);
  border-radius: 16px;
}
.nb-homepage__directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}
.nb-homepage__directory-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 132px;
  height: 100%;
  padding: 17px 18px 16px;
  border: 1px solid var(--nbhp-border);
  border-radius: 12px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.nb-homepage__directory-group:hover { border-color: #d2dcea; }
/* Quiet category visual: one existing WooCommerce thumbnail where possible,
   otherwise a neutral inline SVG. The entire tile remains text/link-first. */
.nb-homepage__directory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  margin-bottom: 8px;
}
.nb-homepage__directory-art {
  display: grid;
  flex: 0 0 56px;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 5px;
  border: 1px solid #edf1f6;
  border-radius: 12px;
  background: #f7f9fc;
  color: #98a9c2;
  overflow: hidden;
  pointer-events: none;
}
.nb-homepage__directory-art-image,
.nb-homepage__directory-art > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: .83;
  filter: saturate(.78);
}
.nb-homepage__directory-art-icon { width: 35px; height: 35px; }
.nb-homepage__directory-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
  color: var(--nbhp-ink)!important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}
.nb-homepage__directory-title span { min-width: 0; }
.nb-homepage__directory-title svg { width: 15px; height: 15px; flex: none; color: #8395b5; }
.nb-homepage__directory-title:hover, .nb-homepage__directory-title:hover svg { color: var(--nbhp-blue)!important; }
.nb-homepage__directory-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px 11px;
  width: 100%;
}
.nb-homepage__directory-links a {
  display: inline-block;
  max-width: 100%;
  color: var(--nbhp-muted)!important;
  font-size: 11.7px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}
.nb-homepage__directory-links a:hover { color: var(--nbhp-blue)!important; text-decoration: underline!important; text-underline-offset: 2px; }
.nb-homepage__directory-extra {
  display: grid;
  grid-template-rows: 1fr;
  width: 100%;
  min-width: 0;
  opacity: 1;
  visibility: visible;
}
.nb-homepage__directory-extra-inner { min-width: 0; min-height: 0; overflow: hidden; }
.nb-homepage__directory-extra-inner .nb-homepage__directory-links { padding-top: 7px; }
/* The collapse only happens after JS is ready; with JS disabled all links
   remain immediately visible, readable and clickable. */
.nb-homepage__directory-grid.is-enhanced .nb-homepage__directory-extra {
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.nb-homepage__directory-grid.is-enhanced .nb-homepage__directory-extra.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nb-homepage__directory-grid.is-enhanced.is-ready .nb-homepage__directory-extra {
  transition: grid-template-rows .33s cubic-bezier(.22, 1, .36, 1),
              opacity .21s ease,
              visibility 0s linear .33s;
}
.nb-homepage__directory-grid.is-enhanced.is-ready .nb-homepage__directory-extra.is-open {
  transition: grid-template-rows .33s cubic-bezier(.22, 1, .36, 1),
              opacity .24s ease,
              visibility 0s linear 0s;
}
.nb-homepage .nb-homepage__directory-more-toggle,
.nb-homepage .nb-homepage__directory-more-toggle:hover,
.nb-homepage .nb-homepage__directory-more-toggle:focus {
  display: none!important;
  align-items: center!important;
  justify-content: flex-start!important;
  gap: 5px!important;
  width: auto!important;
  min-width: 0!important;
  max-width: 100%!important;
  height: auto!important;
  min-height: 28px!important;
  margin: 9px 0 0!important;
  padding: 1px 0!important;
  border: 0!important;
  border-radius: 0!important;
  background: transparent!important;
  box-shadow: none!important;
  transform: none!important;
  color: var(--nbhp-blue)!important;
  font: inherit!important;
  font-size: 11.5px!important;
  font-weight: 750!important;
  line-height: 1.4!important;
  text-align: left!important;
  cursor: pointer!important;
}
.nb-homepage .nb-homepage__directory-grid.is-enhanced .nb-homepage__directory-more-toggle,
.nb-homepage .nb-homepage__directory-grid.is-enhanced .nb-homepage__directory-more-toggle:hover,
.nb-homepage .nb-homepage__directory-grid.is-enhanced .nb-homepage__directory-more-toggle:focus {
  display: inline-flex!important;
}
.nb-homepage .nb-homepage__directory-more-toggle svg {
  flex: none;
  width: 15px;
  height: 15px;
  transition: transform .3s ease;
}
.nb-homepage .nb-homepage__directory-group.is-open .nb-homepage__directory-more-toggle svg { transform: rotate(180deg); }
.nb-homepage .nb-homepage__directory-more-toggle:hover { color: var(--nbhp-blue-hover)!important; }
.nb-homepage .nb-homepage__directory-more-toggle:focus-visible { outline: 2px solid var(--nbhp-blue)!important; outline-offset: 3px!important; border-radius: 3px!important; }
.nb-homepage__directory-offers {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 13px;
  color: var(--nbhp-blue)!important;
  font-size: 11.5px;
  line-height: 1.4;
  font-weight: 750;
}
.nb-homepage__directory-offers:hover { color: var(--nbhp-blue-hover)!important; text-decoration: underline!important; text-underline-offset: 2px; }
.nb-homepage__directory-offers svg { flex: none; width: 13px; height: 13px; }
/* This page only: suppress redundant Astra title, not archive/brand titles. */
body.nbcs-homepage-page .site-main > article.page > header.entry-header > h1.entry-title,
body.nbcs-homepage-page .site-main > article.page > .entry-header > .entry-title { display: none!important; }

@media (max-width: 1200px) {
  .nb-homepage__opening { grid-template-columns: minmax(0,1fr); }
  .nb-homepage__hero { grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: 390px; }
  .nb-homepage__department-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .nb-homepage .nb-product-card { grid-template-columns: 148px minmax(0,1fr)!important; }
}
@media (max-width: 990px) {
  .nb-homepage__opening { grid-template-columns: 1fr; }
  .nb-homepage__promos { grid-template-columns: 1fr; }
  .nb-homepage__promo { min-height: 160px; }
  .nb-homepage__hero { min-height: 0; }
  .nb-homepage__directory-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nb-homepage.woocommerce ul.products.nb-homepage__product-grid { grid-template-columns: minmax(0,1fr)!important; }
  .nb-homepage .nb-product-card { grid-template-columns: clamp(160px, 26vw, 230px) minmax(0,1fr)!important; }
}
@media (max-width: 760px) {
  .nb-homepage { padding: 0 0 46px; }
  .nb-homepage__hero { grid-template-columns: minmax(0,1fr); grid-template-areas: "copy" "visual" "product" "controls"; gap: 16px; padding: 24px 20px 20px; min-height: 0; }
  .nb-homepage .nb-homepage__hero h1 { font-size: clamp(28px,6vw,38px); }
  .nb-homepage__hero-description { max-width: 500px; }
  .nb-homepage__hero-visual { min-height: 250px; }
  .nb-homepage__hero-media { min-height: 250px; padding: 18px; }
  .nb-homepage__hero-image { max-height: 250px; }
  .nb-homepage__hero-product { max-width: none; }
  .nb-homepage__hero-controls { justify-content: center; margin-top: 2px; }
  .nb-homepage__promos { grid-template-columns: 1fr; }
  .nb-homepage.woocommerce ul.products.nb-homepage__product-grid { grid-template-columns: minmax(0,1fr)!important; gap: 15px 0!important; }
  .nb-homepage .nb-product-card { display: grid!important; grid-template-columns: minmax(118px,132px) minmax(0,1fr)!important; align-items: stretch!important; }
  .nb-homepage .nb-product-card__media { width: 100%!important; min-width: 0!important; min-height: 100%!important; height: 100%!important; aspect-ratio: auto!important; }
  .nb-homepage .nb-product-card__image-inner { padding: 14px!important; }
  .nb-homepage .nb-product-card__body { min-height: 0!important; padding: 14px 14px 14px 15px!important; }
  .nb-homepage .nb-product-card__category,
  .nb-homepage .nb-product-card__title,
  .nb-homepage .nb-product-card__price { height: auto!important; min-height: 0!important; max-height: none!important; }
  .nb-homepage .nb-product-card__title,
  .nb-homepage .nb-product-card__title a { -webkit-line-clamp: 2!important; max-height: none!important; }
  .nb-homepage .nb-product-card__price { flex-basis: auto!important; line-height: 1.35!important; }
  .nb-homepage .nb-product-card__meta { min-height: 0!important; margin-bottom: 10px!important; }
  .nb-homepage .nb-product-card__actions { margin-top: 8px!important; }
  .nb-homepage .nb-product-card__cta,
  .woocommerce .nb-homepage .nb-product-card__cta { min-height: 40px!important; }
  .nb-homepage__promo { min-height: 144px; }
  .nb-homepage__department-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .nb-homepage__department { padding: 11px; min-height: 100px; }
  .nb-homepage__department-visual { width: 48px; height: 48px; }
  .nb-homepage__department-subcats { padding-left: 0; }
  .nb-homepage__directory-grid { gap: 10px; }
  
}
@media (max-width: 520px) {
  .nb-homepage__opening, .nb-homepage__promos { gap: 9px; }
  .nb-homepage__hero-product { padding: 15px 14px; border-radius: 13px; }
  .nb-homepage .nb-product-card { grid-template-columns: 110px minmax(0,1fr)!important; }
  .nb-homepage .nb-product-card__image-inner { padding: 12px!important; }
  .nb-homepage .nb-product-card__body { padding: 12px 12px 12px 13px!important; }
  .nb-homepage__hero-actions { align-items: center; }
  .nb-homepage__hero { border-radius: 13px; }
  .nb-homepage__promos { grid-template-columns: 1fr; }
  .nb-homepage__promo { border-radius: 11px; min-height: 98px; padding: 14px 17px; gap: 5px; }
  .nb-homepage__promo strong { font-size: 19px; }
  .nb-homepage__promo > span:not(.nb-homepage__promo-kicker):not(.nb-homepage__promo-action) { font-size: 11px; }
  .nb-homepage__promo-kicker { font-size: 8.5px; }
  .nb-homepage__promo-action { font-size: 10.5px; }
  .nb-homepage__section { margin-top: 36px; }
  .nb-homepage__section-header { align-items: center; gap: 9px; margin-bottom: 15px; }
  .nb-homepage .nb-homepage__section-header h2 { font-size: 21px; }
  .nb-homepage__section-subtitle { font-size: 11.5px; }
  .nb-homepage__view-all { font-size: 11px; }
  .nb-homepage__view-all svg { width: 14px; height: 14px; }
  .nb-homepage__department-name { font-size: 11.7px; }
  .nb-homepage__department-primary { gap: 8px; }
  .nb-homepage__department-arrow svg { width: 13px; height: 13px; }
  .nb-homepage__department-visual { width: 43px; height: 43px; }
  .nb-homepage__department-subcats a { font-size: 10px; }
  .nb-homepage__directory { padding: 20px 15px; border-radius: 11px; }
  .nb-homepage__directory-grid { gap: 10px; }
  .nb-homepage__directory-group { padding: 15px 14px; }
  .nb-homepage__directory-heading { min-height: 48px; gap: 9px; margin-bottom: 6px; }
  .nb-homepage__directory-art { flex-basis: 50px; width: 50px; height: 50px; border-radius: 10px; }
  .nb-homepage__directory-art-icon { width: 31px; height: 31px; }
  .nb-homepage__directory-title { font-size: 12px; }
  .nb-homepage__directory-links a { font-size: 11px; }
  .nb-homepage.woocommerce ul.products.nb-homepage__product-grid,
  .woocommerce .nb-homepage ul.products.nb-homepage__product-grid {
    grid-template-columns: minmax(0,1fr)!important;
    gap: 15px!important;
  }
  .nb-homepage .nb-product-card { max-width: none!important; }
  /* All selected products remain accessible on narrow screens. */
}

/* HOMEPAGE ONLY: links instead of heavy black add-to-cart / options buttons.
   Keep WooCommerce's actual href, AJAX hooks, disabled state and semantics. */
.nb-homepage.woocommerce ul.products.nb-homepage__product-grid li.product a.nb-product-card__cta,
.woocommerce .nb-homepage ul.products.nb-homepage__product-grid li.product a.nb-product-card__cta,
.woocommerce-page .nb-homepage ul.products.nb-homepage__product-grid li.product a.nb-product-card__cta {
  display: inline-flex!important;
  align-items: center!important;
  justify-content: flex-start!important;
  width: auto!important;
  max-width: 100%!important;
  min-width: 0!important;
  height: auto!important;
  min-height: 28px!important;
  margin: 0!important;
  padding: 2px 0!important;
  background: transparent!important;
  border: 0!important;
  border-radius: 0!important;
  color: var(--nbhp-blue)!important;
  font-size: 12.5px!important;
  font-weight: 750!important;
  line-height: 1.45!important;
  text-align: left!important;
  box-shadow: none!important;
  transform: none!important;
  text-decoration: none!important;
}
.nb-homepage.woocommerce ul.products.nb-homepage__product-grid li.product a.nb-product-card__cta:hover,
.woocommerce .nb-homepage ul.products.nb-homepage__product-grid li.product a.nb-product-card__cta:hover {
  color: var(--nbhp-blue-hover)!important;
  background: transparent!important;
  border: 0!important;
  box-shadow: none!important;
  text-decoration: underline!important;
  text-underline-offset: 3px;
  transform: none!important;
}
.nb-homepage.woocommerce ul.products.nb-homepage__product-grid li.product a.nb-product-card__cta--unavailable {
  color: #717986!important;
}
.nb-homepage .nb-product-card__actions { margin-top: auto!important; padding-top: 6px!important; }

/* Reset theme hover-button growth that damaged featured slider arrows. */
.nb-homepage .nb-homepage__hero-controls button.nb-homepage__hero-nav,
.nb-homepage .nb-homepage__hero-controls button.nb-homepage__hero-nav:hover,
.nb-homepage .nb-homepage__hero-controls button.nb-homepage__hero-nav:focus,
.nb-homepage .nb-homepage__hero-controls button.nb-homepage__hero-nav:active {
  box-sizing: border-box!important;
  display: inline-flex!important;
  flex: 0 0 36px!important;
  align-items: center!important;
  justify-content: center!important;
  width: 36px!important;
  min-width: 36px!important;
  max-width: 36px!important;
  height: 36px!important;
  min-height: 36px!important;
  max-height: 36px!important;
  margin: 0!important;
  padding: 0!important;
  border: 1px solid #d5dfea!important;
  border-radius: 50%!important;
  background: #fff!important;
  color: var(--nbhp-ink)!important;
  font-size: 0!important;
  line-height: 1!important;
  box-shadow: none!important;
  transform: none!important;
  cursor: pointer!important;
}
.nb-homepage .nb-homepage__hero-controls button.nb-homepage__hero-nav:hover {
  color: var(--nbhp-blue)!important;
  border-color: #9db3d5!important;
}
.nb-homepage .nb-homepage__hero-controls button.nb-homepage__hero-nav svg {
  display: block!important;
  width: 18px!important;
  height: 18px!important;
  max-width: none!important;
  flex: 0 0 18px!important;
  stroke: currentColor!important;
}
.nb-homepage .nb-homepage__hero-controls button.nb-homepage__hero-nav--prev svg { transform: rotate(180deg)!important; }
.nb-homepage .nb-homepage__hero-controls button.nb-homepage__hero-nav:focus-visible {
  outline: 2px solid var(--nbhp-blue)!important;
  outline-offset: 3px!important;
}
.nb-homepage .nb-homepage__hero-controls button.nb-homepage__hero-dot,
.nb-homepage .nb-homepage__hero-controls button.nb-homepage__hero-dot:hover {
  display: inline-block!important;
  flex: none!important;
  width: 9px!important;
  min-width: 9px!important;
  max-width: 20px!important;
  height: 9px!important;
  min-height: 9px!important;
  max-height: 9px!important;
  margin: 0!important;
  padding: 0!important;
  border: 0!important;
  border-radius: 99px!important;
  background: #bcc7d7!important;
  transform: none!important;
  box-shadow: none!important;
}
.nb-homepage .nb-homepage__hero-controls button.nb-homepage__hero-dot[aria-current="true"] {
  width: 20px!important;
  min-width: 20px!important;
  background: var(--nbhp-blue)!important;
}

/* Balanced, compact delivery + self-service footer instead of top trust strip. */
.nb-homepage__service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 11px;
}
.nb-homepage__service-item {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 90px;
  padding: 16px;
  border: 1px solid var(--nbhp-border);
  border-radius: 12px;
  background: var(--nbhp-surface);
  color: var(--nbhp-ink)!important;
  text-decoration: none!important;
}
a.nb-homepage__service-item:hover { border-color: #bfcce1; background: #fff; }
.nb-homepage__service-mark {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #dee6f3;
  border-radius: 11px;
  background: #fff;
  color: var(--nbhp-blue);
}
.nb-homepage__service-icon { width: 20px; height: 20px; }
.nb-homepage__service-copy { display: flex; flex: 1 1 auto; flex-direction: column; gap: 4px; min-width: 0; }
.nb-homepage__service-copy strong { color: var(--nbhp-ink); font-size: 13px; line-height: 1.3; font-weight: 800; }
.nb-homepage__service-copy small { color: var(--nbhp-muted); font-size: 11.5px; line-height: 1.45; }
.nb-homepage__service-arrow { flex: none; align-self: center; color: var(--nbhp-blue); }
.nb-homepage__service-arrow svg { width: 15px; height: 15px; }

/* Avoid a half-empty final row when the store has only 4/5 service links. */
.nb-homepage__service-item:nth-last-child(2):nth-child(3n+1),
.nb-homepage__service-item:last-child:nth-child(3n+2) { grid-column: span 3; }
.nb-homepage__service-item:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
@media (max-width: 990px) {
  .nb-homepage__service-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .nb-homepage__service-item, .nb-homepage__service-item:nth-last-child(2):nth-child(3n+1), .nb-homepage__service-item:last-child:nth-child(3n+2), .nb-homepage__service-item:last-child:nth-child(3n+1) { grid-column: auto; }
}
@media (max-width: 600px) {
  .nb-homepage__service-grid { grid-template-columns: minmax(0,1fr); }
  .nb-homepage__directory-grid { grid-template-columns: minmax(0,1fr); }
  .nb-homepage__promo { min-height: 94px; }
  .nb-homepage .nb-product-card { min-height: 162px!important; }
}
@media (prefers-reduced-motion: reduce) {
  .nb-homepage__button, .nb-homepage__promo, .nb-homepage__department { transition: none!important; }
  .nb-homepage__directory-grid.is-enhanced.is-ready .nb-homepage__directory-extra,
  .nb-homepage__directory-more-toggle svg,
  .nb-homepage__directory-group { transition: none!important; }
}
