/*
 * CELLO Homepage Smart Bento V2
 * Homepage-only layout. Header/footer/navigation are intentionally untouched.
 * Visual tokens follow application/view/theme/default/assets/css/design-system.css.
 */
#cello-smart-bento-home-v2.chb2 {
  --chb2-text: var(--cello-color-text, #222);
  --chb2-muted: var(--cello-color-muted, #666);
  --chb2-border: var(--cello-color-border, #e3e3e3);
  --chb2-surface: var(--cello-color-surface, #fff);
  --chb2-soft: var(--cello-color-surface-muted, #f4f4f4);
  --chb2-accent: var(--cello-color-primary, #f58220);
  --chb2-accent-hover: var(--cello-color-primary-hover, #df6f0d);
  --chb2-warm: #f8f5f1;
  --chb2-radius: var(--cello-radius-lg, 12px);
  --chb2-radius-md: var(--cello-radius-md, 8px);
  --chb2-shadow: var(--cello-shadow-sm, 0 1px 3px rgba(0,0,0,.08));
  background: #fff;
  color: var(--chb2-text);
  padding: 18px 0 56px;
  font-family: var(--cello-font-family, Montserrat, Arial, sans-serif);
}
#cello-smart-bento-home-v2 * { box-sizing: border-box; }
#cello-smart-bento-home-v2 a { color: inherit; text-decoration: none; }
#cello-smart-bento-home-v2 img { display: block; max-width: 100%; }
.chb2-shell { width: min(1440px, calc(100% - 40px)); margin: 0 auto; }
.chb2-section { margin-top: 16px; }
.chb2-eyebrow { display: block; margin-bottom: 7px; color: #8c8177; font-size: 11px; font-weight: 600; line-height: 1.25; letter-spacing: .08em; text-transform: uppercase; }
.chb2-section-head, .chb2-panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.chb2-section-head { padding: 13px 2px 12px; }
.chb2-section-head h2, .chb2-panel-head h2 { margin: 0; color: var(--chb2-text); font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -.025em; }
.chb2-section-note { color: #8a8a8a; font-size: 11px; }
.chb2-section-head > a, .chb2-panel-head > a { color: #6e6a66; font-size: 11px; font-weight: 600; white-space: nowrap; }
.chb2-section-head > a:hover, .chb2-panel-head > a:hover { color: var(--chb2-accent); }

/* Five image banners (V2.2.1): Desktop Mosaic 1 + 4, native 16:9 artwork.
 * The desktop columns are offset by a few pixels so the large 16:9 tile and
 * the 2x2 small 16:9 grid finish at the same height even with a 12px gap. */
.chb2-banner-mosaic { display: grid; grid-template-columns: calc(50% - 1px) calc(50% - 11px); gap: 12px; align-items: start; }
.chb2-banner-mosaic--no-hero, .chb2-banner-mosaic--no-promos { grid-template-columns: 1fr; }
.chb2-banner-mosaic--no-promos .chb2-hero-banner { aspect-ratio: 16 / 9; }
.chb2-hero { display: block; min-width: 0; }
.chb2-hero-banner { position: relative; display: block; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--chb2-radius); background: transparent; isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); transform: translateZ(0); transition: box-shadow .18s ease; }
.chb2-hero-banner:hover { box-shadow: 0 8px 24px rgba(0,0,0,.055); }
.chb2-hero-banner img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; border: 0; border-radius: inherit; background: #fff; transform: translateZ(0); transition: opacity .18s ease; }
.chb2-hero-banner:hover img { opacity: .985; }
.chb2-banner-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; min-width: 0; }
.chb2-banner-mosaic--no-hero .chb2-banner-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.chb2-promo-banner { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border: 0; border-radius: var(--chb2-radius); background: transparent; isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); transform: translateZ(0); transition: transform .18s ease, box-shadow .18s ease; }
.chb2-promo-banner:hover { transform: translateY(-2px) translateZ(0); box-shadow: 0 8px 24px rgba(0,0,0,.055); }
.chb2-promo-banner img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; border: 0; border-radius: inherit; background: #fff; transform: translateZ(0); transition: opacity .18s ease; }
.chb2-promo-banner:hover img { opacity: .985; }

/* Smart collections */
.chb2-smart-section { padding: 13px; border: 1px solid var(--chb2-border); border-radius: var(--chb2-radius); background: #fff; }
.chb2-smart-section .chb2-section-head { padding: 2px 2px 13px; }
.chb2-smart-row { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; }
.chb2-smart-card { display: grid; grid-template-columns: 42px 1fr 18px; align-items: center; gap: 11px; min-height: 104px; padding: 13px; border: 1px solid var(--chb2-border); border-radius: var(--chb2-radius); background: #fbfbfa; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.chb2-smart-card:hover { transform: translateY(-2px); border-color: #d6cec6; background: #fff; }
.chb2-smart-card h3 { margin: 0 0 4px; font-size: 12px; font-weight: 600; line-height: 1.35; }
.chb2-smart-card p { margin: 0; color: #817b75; font-size: 10px; line-height: 1.45; }
.chb2-mini-arrow { color: #77716b; font-size: 14px; }
.chb2-smart-icon { position: relative; display: block; width: 42px; height: 42px; border: 1px solid #e5ddd5; border-radius: 10px; background: var(--chb2-warm); }
.chb2-smart-icon:before, .chb2-smart-icon:after { content: ""; position: absolute; border: 1.5px solid var(--chb2-accent); }
.chb2-icon-starter:before { left: 11px; top: 11px; width: 18px; height: 18px; border-radius: 5px; }
.chb2-icon-starter:after { left: 15px; top: 15px; width: 10px; height: 10px; border-radius: 50%; }
.chb2-icon-work:before { left: 9px; top: 12px; width: 22px; height: 15px; border-radius: 3px; }
.chb2-icon-work:after { left: 15px; bottom: 9px; width: 10px; height: 1px; border-width: 1px 0 0; }
.chb2-icon-sound:before { left: 10px; top: 8px; width: 8px; height: 24px; border-radius: 8px; }
.chb2-icon-sound:after { right: 9px; top: 12px; width: 9px; height: 16px; border-radius: 50%; }
.chb2-icon-travel:before { left: 11px; top: 9px; width: 18px; height: 24px; border-radius: 5px; }
.chb2-icon-travel:after { left: 16px; top: 5px; width: 8px; height: 5px; border-radius: 5px 5px 0 0; }
.chb2-icon-gift:before { left: 9px; top: 15px; width: 22px; height: 17px; border-radius: 3px; }
.chb2-icon-gift:after { left: 19px; top: 10px; width: 1px; height: 25px; border-width: 0 1.5px 0 0; }

/* Brand logos + services */
.chb2-info-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; }
.chb2-panel { min-width: 0; padding: 18px; border: 1px solid var(--chb2-border); border-radius: var(--chb2-radius); background: #fff; }
.chb2-panel-head { margin-bottom: 14px; }
.chb2-panel-head h2 { font-size: 19px; }
.chb2-brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); overflow: hidden; border: 1px solid var(--chb2-border); border-radius: var(--chb2-radius-md); }
.chb2-brand-grid a { display: flex; align-items: center; justify-content: center; min-height: 84px; padding: 12px 16px; border-right: 1px solid var(--chb2-border); border-bottom: 1px solid var(--chb2-border); background: #fff; transition: background .18s ease; }
.chb2-brand-grid a:nth-child(4n) { border-right: 0; }
.chb2-brand-grid a:nth-last-child(-n+4) { border-bottom: 0; }
.chb2-brand-grid a:hover { background: #fafafa; }
.chb2-brand-grid img { width: auto; max-width: 150px; height: auto; max-height: 54px; object-fit: contain; filter: grayscale(100%); opacity: .88; transition: filter .18s ease, opacity .18s ease, transform .18s ease; }
.chb2-brand-grid a:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.02); }
.chb2-service-list { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--chb2-border); border-radius: var(--chb2-radius-md); overflow: hidden; }
.chb2-service-list > a { display: grid; grid-template-columns: 38px 1fr 12px; gap: 10px; align-items: center; min-height: 84px; padding: 12px 14px; border-right: 1px solid var(--chb2-border); border-bottom: 1px solid var(--chb2-border); }
.chb2-service-list > a:nth-child(2n) { border-right: 0; }
.chb2-service-list > a:nth-last-child(-n+2) { border-bottom: 0; }
.chb2-service-list > a:hover { background: #fafafa; }
.chb2-service-list b { display: block; margin-bottom: 3px; font-size: 11px; font-weight: 600; }
.chb2-service-list small { display: block; color: #85807b; font-size: 9.5px; line-height: 1.45; }
.chb2-service-list i { color: #aaa29a; font-style: normal; }
.chb2-service-icon { position: relative; width: 36px; height: 36px; border-radius: 9px; background: var(--chb2-warm); }
.chb2-service-icon:after { content: ""; position: absolute; inset: 9px; border: 1.5px solid var(--chb2-accent); border-radius: 4px; }
.chb2-svc-truck:after { border-radius: 3px 3px 6px 6px; }
.chb2-svc-card:after { top: 12px; height: 10px; }
.chb2-svc-shield:after { border-radius: 8px 8px 10px 10px; }
.chb2-svc-return:after { border-radius: 50%; }

/* Explore */
.chb2-explore-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; }
.chb2-explore-card { display: grid; grid-template-columns: 48px 1fr 18px; align-items: center; gap: 13px; min-height: 130px; padding: 17px; border: 1px solid var(--chb2-border); border-radius: var(--chb2-radius); background: linear-gradient(135deg, #fff, #faf8f6); transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.chb2-explore-card:hover { transform: translateY(-2px); border-color: #d8cec4; box-shadow: 0 7px 22px rgba(0,0,0,.04); }
.chb2-explore-card h3 { margin: 0 0 5px; font-size: 13px; font-weight: 600; }
.chb2-explore-card p { margin: 0; color: #817b75; font-size: 10px; line-height: 1.5; }
.chb2-explore-card > b { color: #77716b; font-size: 15px; font-weight: 400; }
.chb2-explore-icon { position: relative; width: 48px; height: 48px; border: 1px solid #e5ddd5; border-radius: 11px; background: #fff; }
.chb2-explore-icon:before, .chb2-explore-icon:after { content: ""; position: absolute; border: 1.5px solid var(--chb2-accent); }
.chb2-exp-recovery:before { left: 11px; top: 13px; width: 23px; height: 9px; border-radius: 6px; transform: rotate(-25deg); }
.chb2-exp-recovery:after { left: 21px; top: 24px; width: 6px; height: 14px; border-radius: 5px; }
.chb2-exp-watch:before { left: 14px; top: 11px; width: 18px; height: 25px; border-radius: 6px; }
.chb2-exp-watch:after { left: 20px; top: 20px; width: 6px; height: 6px; border-radius: 50%; }
.chb2-exp-cinema:before { left: 9px; top: 11px; width: 28px; height: 16px; border-radius: 3px; }
.chb2-exp-cinema:after { left: 14px; bottom: 9px; width: 18px; height: 5px; border-radius: 3px; }
.chb2-exp-gift:before { left: 11px; top: 16px; width: 24px; height: 20px; border-radius: 4px; }
.chb2-exp-gift:after { left: 22px; top: 11px; width: 1px; height: 26px; border-width: 0 1.5px 0 0; }

/* Product listing: internal card visuals come from category-card-polish.css to stay aligned with Category/Brand pages.
 * V2.4.3: keep New Arrivals as a two-row grid on desktop, but use the exact
 * horizontal rhythm of Need Discovery: 5 equal cards + 14px gaps. */
.chb2-featured-section { padding-top: 2px; }
.chb2-featured-section .chb2-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 4px 1px 0;
  overflow: visible;
}
.chb2-featured-section .chb2-product-grid > [class*="col-"] {
  float: none;
  width: auto;
  min-width: 0;
  padding: 0;
}
.chb2-featured-section.cello-category-polish { padding-bottom: 0; }
.chb2-featured-section.cello-category-polish .product-item { height: 100%; margin-bottom: 0; }

/* Showroom CTA */
.chb2-showroom-strip { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 18px; padding: 34px 38px; border-radius: var(--chb2-radius); background: #151515; color: #fff; }
.chb2-showroom-strip .chb2-eyebrow { color: #b8aea5; }
.chb2-showroom-strip h2 { margin: 0 0 8px; color: #fff; font-size: 25px; font-weight: 500; line-height: 1.25; letter-spacing: -.03em; }
.chb2-showroom-strip p { max-width: 780px; margin: 0; color: #bdb8b3; font-size: 11px; line-height: 1.65; }
.chb2-showroom-strip .chb2-outline-button { flex: 0 0 auto; border-color: #4a4a4a; background: transparent; }
.chb2-showroom-strip .chb2-outline-button:hover { border-color: #fff; background: #fff; color: #111; }

@media (max-width: 1199px) {
  .chb2-smart-row { grid-template-columns: repeat(5, 230px); overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x proximity; }
  .chb2-smart-card { scroll-snap-align: start; }
}

@media (max-width: 991px) {
  #cello-smart-bento-home-v2.chb2 { padding-top: 12px; }
  .chb2-shell { width: min(100% - 24px, 1440px); }
  .chb2-banner-mosaic { display: block; }
  .chb2-hero { display: block; }
  .chb2-hero-banner { aspect-ratio: 16 / 9; }
  .chb2-banner-grid, .chb2-banner-mosaic--no-hero .chb2-banner-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
  .chb2-featured-section .chb2-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .chb2-info-grid { grid-template-columns: 1fr; }
  .chb2-explore-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  #cello-smart-bento-home-v2.chb2 { padding: 8px 0 34px; }
  .chb2-shell { width: calc(100% - 20px); }
  .chb2-hero-banner { aspect-ratio: 16 / 9; }
  .chb2-section { margin-top: 10px; }
  .chb2-section-head { align-items: center; padding: 9px 2px; }
  .chb2-section-head h2 { font-size: 18px; }
  .chb2-section-note { display: none; }
  .chb2-eyebrow { margin-bottom: 5px; font-size: 9px; }
  .chb2-button, .chb2-outline-button { min-height: 38px; padding: 8px 12px; font-size: 9px; }
  .chb2-banner-grid, .chb2-banner-mosaic--no-hero .chb2-banner-grid { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding: 0 1px 5px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .chb2-banner-grid::-webkit-scrollbar { display: none; }
  .chb2-promo-banner { flex: 0 0 84%; scroll-snap-align: start; }
  .chb2-smart-section { padding: 10px; }
  .chb2-smart-section .chb2-section-head { padding-bottom: 10px; }
  .chb2-smart-row { grid-template-columns: repeat(5, 190px); gap: 7px; }
  .chb2-smart-card { min-height: 94px; padding: 10px; grid-template-columns: 36px 1fr 14px; }
  .chb2-smart-icon { width: 36px; height: 36px; transform: scale(.88); }
  .chb2-smart-card h3 { font-size: 11px; }
  .chb2-smart-card p { font-size: 9.5px; }
  .chb2-panel { padding: 12px; }
  .chb2-panel-head { margin-bottom: 10px; }
  .chb2-panel-head h2 { font-size: 16px; }
  .chb2-brand-grid { grid-template-columns: 1fr 1fr; }
  .chb2-brand-grid a { min-height: 66px; padding: 9px; }
  .chb2-brand-grid a:nth-child(2n) { border-right: 0; }
  .chb2-brand-grid a:nth-child(4n) { border-right: 0; }
  .chb2-brand-grid a:nth-last-child(-n+4) { border-bottom: 1px solid var(--chb2-border); }
  .chb2-brand-grid a:nth-last-child(-n+2) { border-bottom: 0; }
  .chb2-brand-grid img { max-width: 120px; max-height: 42px; }
  .chb2-service-list { grid-template-columns: 1fr; }
  .chb2-service-list > a, .chb2-service-list > a:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--chb2-border); }
  .chb2-service-list > a:last-child { border-bottom: 0; }
  .chb2-explore-grid { grid-template-columns: 1fr 1fr; gap: 7px; }
  .chb2-explore-card { min-height: 112px; padding: 12px; grid-template-columns: 39px 1fr; gap: 9px; }
  .chb2-explore-card > b { display: none; }
  .chb2-explore-icon { width: 39px; height: 39px; transform: scale(.88); }
  .chb2-explore-card h3 { font-size: 11px; }
  .chb2-explore-card p { font-size: 9.5px; }
  .chb2-featured-section .chb2-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 3px; }
  .chb2-showroom-strip { align-items: flex-start; flex-direction: column; gap: 18px; padding: 24px 20px; }
  .chb2-showroom-strip h2 { font-size: 20px; }
  .chb2-showroom-strip p { font-size: 10px; }
}

@media (max-width: 430px) {
  .chb2-explore-grid { grid-template-columns: 1fr; }
  .chb2-explore-card { min-height: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  #cello-smart-bento-home-v2 *, #cello-smart-bento-home-v2 *:before, #cello-smart-bento-home-v2 *:after { transition: none !important; scroll-behavior: auto !important; }
}

/* Homepage-only progressive reveal. The page stays fully visible when JavaScript is unavailable. */
.chb2-reveal { opacity: 0; transform: translateY(10px); }
.chb2-reveal.chb2-reveal--visible { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
@media (prefers-reduced-motion: reduce) {
  .chb2-reveal { opacity: 1 !important; transform: none !important; }
}

/* V2.3 — Lựa chọn theo nhu cầu
 * Customer-facing discovery layer. Smart Collection remains the data engine.
 * Visual language intentionally reuses CELLO Design System + Category product cards. */
.chb2-needs-section {
  padding: 14px;
  border: 1px solid var(--chb2-border);
  border-radius: var(--chb2-radius);
  background: var(--chb2-surface);
}
.chb2-needs-section .chb2-needs-head { align-items: flex-end; padding: 2px 2px 13px; }
.chb2-needs-subtitle { margin: 5px 0 0; color: #7f7b77; font-size: 10.5px; line-height: 1.55; }
.chb2-needs-view-all { flex: 0 0 auto; padding-bottom: 2px; color: #5e5a56; font-size: 11px; font-weight: 600; white-space: nowrap; }
.chb2-needs-view-all:hover { color: #111; }
.chb2-needs-view-all span { display: inline-block; margin-left: 5px; transition: transform .18s ease; }
.chb2-needs-view-all:hover span { transform: translateX(2px); }

.chb2-need-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; margin-bottom: 13px; }
.chb2-need-tab {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid var(--chb2-border);
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: #2e2e2e;
  font: inherit;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.chb2-need-tab:hover { border-color: #cfcac5; background: #faf9f7; transform: translateY(-1px); }
.chb2-need-tab.is-active { border-color: #111; background: #111; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.10); }
.chb2-need-tab:focus-visible { box-shadow: 0 0 0 3px rgba(17,17,17,.12); }
.chb2-need-tab > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chb2-need-icon { position: relative; flex: 0 0 24px; width: 24px; height: 24px; color: currentColor; }
.chb2-need-icon:before, .chb2-need-icon:after { content: ""; position: absolute; box-sizing: border-box; }
.chb2-need-home_audio:before { left: 4px; top: 4px; width: 16px; height: 15px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 10px 10px 0 0; }
.chb2-need-home_audio:after { left: 2px; top: 13px; width: 20px; height: 8px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; border-radius: 4px; }
.chb2-need-run:before { left: 8px; top: 3px; width: 6px; height: 6px; border: 1.5px solid currentColor; border-radius: 50%; }
.chb2-need-run:after { left: 6px; top: 10px; width: 12px; height: 10px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: skew(-25deg) rotate(-25deg); }
.chb2-need-work:before { left: 3px; top: 5px; width: 18px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; }
.chb2-need-work:after { left: 1px; bottom: 3px; width: 22px; height: 3px; border-top: 1.5px solid currentColor; border-radius: 50%; }
.chb2-need-travel:before { left: 5px; top: 6px; width: 14px; height: 15px; border: 1.5px solid currentColor; border-radius: 3px; }
.chb2-need-travel:after { left: 9px; top: 2px; width: 6px; height: 6px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; }
.chb2-need-wellness:before { left: 5px; top: 5px; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; }
.chb2-need-wellness:after { left: 11px; top: 8px; width: 2px; height: 8px; background: currentColor; box-shadow: -3px 3px 0 -0.5px currentColor, 3px 3px 0 -0.5px currentColor; }
.chb2-need-gift:before { left: 3px; top: 9px; width: 18px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px; }
.chb2-need-gift:after { left: 11px; top: 5px; width: 2px; height: 16px; background: currentColor; box-shadow: -5px -1px 0 -1px currentColor, 5px -1px 0 -1px currentColor; }

.chb2-needs-products-wrap { position: relative; min-height: 250px; }
.chb2-needs-product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 56px) / 5);
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  /* Extra top breathing room keeps the -2px hover lift and orange border visible. */
  padding: 4px 1px 7px;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #d8d5d1 transparent;
}
.chb2-needs-product-rail::-webkit-scrollbar { height: 4px; }
.chb2-needs-product-rail::-webkit-scrollbar-track { background: transparent; }
.chb2-needs-product-rail::-webkit-scrollbar-thumb { border-radius: 10px; background: #d8d5d1; }
.chb2-need-product-cell { min-width: 0; scroll-snap-align: start; }
.chb2-needs-section.cello-category-polish .product-item { height: calc(100% - 1px); margin-bottom: 0; }

.chb2-needs-loading {
  position: absolute;
  z-index: 3;
  inset: 0 0 7px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 14px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity .14s ease, visibility .14s ease;
}
.chb2-needs-loading span {
  border: 1px solid #ece9e6;
  border-radius: var(--chb2-radius-md);
  background: linear-gradient(100deg, #f6f5f4 25%, #fbfaf9 42%, #f6f5f4 60%);
  background-size: 240% 100%;
  animation: chb2NeedsShimmer 1.15s linear infinite;
}
.chb2-needs-products-wrap.is-loading .chb2-needs-loading { opacity: 1; visibility: visible; }
.chb2-needs-products-wrap.is-loading .chb2-needs-product-rail { opacity: .18; pointer-events: none; }
.chb2-need-empty { display: flex; align-items: center; justify-content: center; min-height: 220px; padding: 30px; border: 1px dashed #ddd8d2; border-radius: var(--chb2-radius-md); color: #77716c; font-size: 11px; text-align: center; }
@keyframes chb2NeedsShimmer { to { background-position-x: -140%; } }

@media (max-width: 1199px) {
  .chb2-need-tabs { display: flex; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .chb2-need-tabs::-webkit-scrollbar { display: none; }
  .chb2-need-tab { flex: 0 0 auto; min-width: 176px; scroll-snap-align: start; }
  .chb2-needs-product-rail { grid-auto-columns: 230px; }
  .chb2-needs-loading { grid-template-columns: repeat(4, minmax(180px,1fr)); }
}

@media (max-width: 767px) {
  .chb2-needs-section { padding: 10px; }
  .chb2-needs-section .chb2-needs-head { align-items: flex-end; padding: 1px 1px 10px; }
  .chb2-needs-subtitle { max-width: 235px; margin-top: 3px; font-size: 9.5px; }
  .chb2-needs-view-all { font-size: 9.5px; }
  .chb2-need-tabs { gap: 6px; margin: 0 -1px 9px; }
  .chb2-need-tab { min-width: 150px; min-height: 40px; padding: 8px 9px; border-radius: 9px; font-size: 9.5px; }
  .chb2-need-icon { flex-basis: 21px; width: 21px; height: 21px; transform: scale(.9); }
  .chb2-needs-products-wrap { min-height: 205px; }
  .chb2-needs-product-rail { grid-auto-columns: 46%; gap: 8px; padding: 3px 0 5px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .chb2-needs-product-rail::-webkit-scrollbar { display: none; }
  .chb2-needs-loading { grid-template-columns: 1fr 1fr; gap: 8px; }
  .chb2-need-empty { min-height: 180px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .chb2-needs-loading span { animation: none; }
  .chb2-needs-product-rail { scroll-behavior: auto; }
}

/* V2.4 — Need Discovery refinement + Garmin families */
.chb2-need-icon { display:flex; align-items:center; justify-content:center; flex:0 0 22px; width:22px; height:22px; }
.chb2-need-icon:before,.chb2-need-icon:after { display:none !important; content:none !important; }
.chb2-need-icon svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.chb2-need-tab .chb2-need-icon { transition:transform .22s cubic-bezier(.2,.7,.2,1); }
.chb2-need-tab:hover .chb2-need-icon { transform:translateY(-1px) scale(1.04); }
.chb2-need-tab.is-active .chb2-need-icon { transform:scale(1.06); }

/* Keep the product region stable while content changes, then cross-fade/slide the new rail in. */
.chb2-needs-product-rail { will-change:opacity, transform; transition:opacity .18s ease, transform .22s cubic-bezier(.2,.7,.2,1), filter .18s ease; }
.chb2-needs-products-wrap.is-switching .chb2-needs-product-rail { opacity:0; transform:translateY(7px); filter:blur(.7px); pointer-events:none; }
.chb2-needs-products-wrap.is-loading .chb2-needs-product-rail { opacity:0; transform:translateY(5px); filter:none; }
.chb2-needs-product-rail.is-entering { animation:chb2NeedRailEnter .34s cubic-bezier(.2,.72,.2,1) both; }
.chb2-needs-product-rail.is-entering .chb2-need-product-cell { animation:chb2NeedCardEnter .32s cubic-bezier(.2,.72,.2,1) both; }
.chb2-needs-product-rail.is-entering .chb2-need-product-cell:nth-child(2){animation-delay:.025s}
.chb2-needs-product-rail.is-entering .chb2-need-product-cell:nth-child(3){animation-delay:.05s}
.chb2-needs-product-rail.is-entering .chb2-need-product-cell:nth-child(4){animation-delay:.075s}
.chb2-needs-product-rail.is-entering .chb2-need-product-cell:nth-child(5){animation-delay:.10s}
.chb2-needs-product-rail.is-entering .chb2-need-product-cell:nth-child(6){animation-delay:.125s}
@keyframes chb2NeedRailEnter { from{opacity:0;transform:translateY(9px)} to{opacity:1;transform:none} }
@keyframes chb2NeedCardEnter { from{opacity:0;transform:translateY(7px)} to{opacity:1;transform:none} }

/* The former service panel is now Garmin family discovery. */
.chb2-garmin-series-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
.chb2-garmin-series { display:flex; align-items:center; gap:8px; min-height:52px; padding:9px 10px; border:1px solid var(--chb2-border); border-radius:9px; background:#fff; color:#343230; font-size:10px; font-weight:600; transition:border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.chb2-garmin-series:hover { transform:translateY(-1px); border-color:#d5cec7; background:#faf9f7; box-shadow:0 4px 12px rgba(0,0,0,.035); }
.chb2-garmin-icon { display:flex; align-items:center; justify-content:center; flex:0 0 31px; width:31px; height:31px; border:1px solid #e6dfd8; border-radius:8px; background:var(--chb2-warm); color:#6f645b; }
.chb2-garmin-icon svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.55; stroke-linecap:round; stroke-linejoin:round; }
.chb2-garmin-series:hover .chb2-garmin-icon { color:var(--chb2-accent); }

@media(max-width:1199px){.chb2-garmin-series-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:767px){
  .chb2-garmin-series-grid{display:flex;overflow-x:auto;gap:7px;padding-bottom:4px;scroll-snap-type:x proximity;scrollbar-width:none}
  .chb2-garmin-series-grid::-webkit-scrollbar{display:none}
  .chb2-garmin-series{flex:0 0 126px;min-height:48px;scroll-snap-align:start;font-size:9.5px}
}
@media(prefers-reduced-motion:reduce){
  .chb2-needs-product-rail.is-entering,.chb2-needs-product-rail.is-entering .chb2-need-product-cell{animation:none!important}
  .chb2-needs-products-wrap.is-switching .chb2-needs-product-rail{filter:none!important;transform:none!important}
}


/* V2.4.4 — New Arrivals 5x2 grid stability
 * Bootstrap .row injects ::before/::after clearfix nodes. Once .row becomes CSS Grid,
 * those generated nodes become anonymous grid items and consume columns. Remove them
 * only for the Homepage New Arrivals grid so 10 products remain exactly 5 x 2. */
.chb2-featured-section .chb2-product-grid::before,
.chb2-featured-section .chb2-product-grid::after {
  display: none !important;
  content: none !important;
}

/* Keep product hover lift fully visible without changing card sizing or grid rhythm. */
.chb2-featured-section .chb2-product-grid {
  overflow: visible;
}
