/* KL Golf Hub — homepage: Shop by Brand, combined transparency layout, best-value suggestion */

/* Filtered-out catalogue items must stay hidden even when a utility class sets display. */
#shop [hidden], #brands [hidden], #best-value[hidden] { display: none !important; }

/* ---------- Shop by Brand ---------- */
.brand-grid {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
  scroll-padding-inline: 16px; scrollbar-width: thin;
}
@media (min-width: 640px) { .brand-grid { margin: 0; padding-left: 0; padding-right: 0; scroll-padding-inline: 0; } }
@media (min-width: 1024px) {
  .brand-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; overflow: visible; }
}
.brand-tile {
  flex: 0 0 42%; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 12px 14px; border-radius: 18px; background: #fff;
  border: 1px solid #d7deea; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
@media (min-width: 640px) { .brand-tile { flex-basis: 30%; } }
.brand-tile:hover { border-color: #8599bd; box-shadow: 0 18px 36px -24px rgba(7,13,25,.45); transform: translateY(-2px); }
.brand-tile:focus-visible { outline: 3px solid rgba(23,40,77,.35); outline-offset: 2px; }
.brand-tile-img { display: block; aspect-ratio: 4 / 3; border-radius: 12px; background: #fff; overflow: hidden; margin-bottom: 8px; }
.brand-tile-img img { width: 100%; height: 100%; object-fit: contain; }
.brand-tile-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 20px; line-height: 1.1; color: #070d19; text-transform: uppercase; letter-spacing: .01em; }
.brand-tile-meta { font-size: 12.5px; color: #4f688f; }

/* Catalogue brand filter */
.brand-filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 20px; scrollbar-width: thin; }
.brand-filter button {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid #d7deea; background: #fff; color: #142243;
  font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.brand-filter button:hover { border-color: #8599bd; }
.brand-filter button[aria-pressed="true"] { background: #17284d; border-color: #17284d; color: #fff; }
.brand-filter button:focus-visible { outline: 3px solid rgba(23,40,77,.35); outline-offset: 2px; }

/* "View full product details" lands here */
#shop article.is-highlighted { box-shadow: 0 0 0 3px #17284d, 0 24px 48px -24px rgba(7,13,25,.5); }

/* ---------- Combined transparency section ---------- */
.tx-layout { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .tx-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
}
.tx-step {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bv-green, #0e4f35);
}
.tx-step span {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px;
  background: var(--bv-green, #0e4f35); color: #fff; letter-spacing: 0; font-size: 12px;
}
.tx-title { margin-top: 10px; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; text-transform: uppercase; font-size: 30px; line-height: 1; color: #070d19; }
.tx-sub { margin-top: 8px; font-size: 15px; color: #475569; }
.tx-cards { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 640px) and (max-width: 1023px) { .tx-cards { grid-template-columns: 1fr 1fr; } }
/* In the side-by-side layout the viewer gets a squarer stage */
@media (min-width: 1024px) {
  .tx-viewer .bv-stage { aspect-ratio: 1 / 0.92; }
  .tx-viewer .bv-seg { margin-left: 0; }
  .tx-viewer .bv-trust, .tx-viewer .bv-note { justify-content: flex-start; text-align: left; }
}

/* At-a-glance condition facts inside each grade card */
.bv-facts { display: grid; gap: 6px; margin: 2px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(7,13,25,.07); }
.bv-facts div { display: grid; grid-template-columns: 72px 1fr; gap: 10px; font-size: 14px; }
.bv-facts dt { color: #64748b; font-weight: 600; }
.bv-facts dd { color: #070d19; margin: 0; }

/* ---------- Best-value suggestion ---------- */
.fv-card {
  display: grid; gap: 0; overflow: hidden; border-radius: 28px;
  background: linear-gradient(180deg, #f6f8fb 0%, #eef1f6 100%);
  border: 1px solid #d7deea;
}
@media (min-width: 1024px) { .fv-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.fv-media { position: relative; aspect-ratio: 2031 / 1635; background: #e6eaf1; } /* whole photo on small screens */
@media (min-width: 1024px) { .fv-media { aspect-ratio: auto; min-height: 100%; } }
.fv-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; /* keep the KL Golf Hub mark (bottom-left) in frame */ }
.fv-grade {
  position: absolute; top: 16px; left: 16px;
  padding: 7px 14px; border-radius: 999px; background: #fff; color: #070d19;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 8px 20px -10px rgba(7,13,25,.5);
}
.fv-body { padding: 28px 22px 26px; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 640px) { .fv-body { padding: 40px 40px 36px; } }
.fv-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #475569; }
.fv-product { margin-top: 6px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 26px; line-height: 1.05; color: #17284d; }
.fv-mix { font-size: 14px; color: #4f688f; margin-top: -4px; }
.fv-copy { color: #334155; font-size: 16px; line-height: 1.55; max-width: 38rem; }
.fv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 0; }
.fv-stats div { background: #fff; border: 1px solid #d7deea; border-radius: 16px; padding: 10px 10px; min-width: 0; }
@media (min-width: 640px) { .fv-stats div { padding: 12px 14px; } }
.fv-stats dt { font-size: 12px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .06em; }
.fv-stats dd { margin: 2px 0 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 19px; color: #070d19; line-height: 1.1; white-space: nowrap; }
@media (min-width: 640px) { .fv-stats dd { font-size: 24px; } .fv-stats { gap: 10px; } }
.fv-grade-note { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid #d7deea; border-radius: 16px; padding: 14px; font-size: 14.5px; color: #334155; line-height: 1.5; }
.fv-grade-note a { color: #17284d; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.fv-grade-chip {
  flex: none; width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center;
  background: #17284d; color: #fff; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 16px;
}
.fv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.fv-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px;
  background: #17284d; color: #fff; font-weight: 700; font-size: 16px; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.fv-btn:hover { background: #111c38; }
.fv-btn:active { transform: scale(.98); }
.fv-btn:focus-visible { outline: 3px solid rgba(23,40,77,.35); outline-offset: 2px; }
.fv-btn svg { width: 18px; height: 18px; }
.fv-link { font-weight: 600; color: #17284d; text-decoration: underline; text-underline-offset: 4px; }
.fv-small { font-size: 12.5px; color: #64748b; }
.fv-small a { text-decoration: underline; text-underline-offset: 3px; }
