/* Homepage only: independent of catalog grids and portrait-display overrides. */
.zb-home-products { min-width: 0; max-width: 100%; width: 100%; margin: 24px 0; }
.zb-home-products, .zb-home-products * { box-sizing: border-box; }
.zb-home-products__heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.zb-home-products__heading > div { min-width: 0; }
.zb-home-products__heading h2 { margin: 4px 0 0; color: #202124; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; }
.zb-home-products__heading p { margin: 6px 0 0; color: #626974; font-size: 13px; }
.zb-home-products__eyebrow { color: #d94300; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.zb-home-slider__controls { display: flex; gap: 8px; }
.zb-home-slider__controls[hidden] { display: none; }
.zb-home-slider__controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0 0 3px; border: 1px solid #ffd0b8; border-radius: 50%; background: #fff; color: #e74700; font: 32px/1 Arial, sans-serif; cursor: pointer; }
.zb-home-slider__controls button:hover:not(:disabled) { background: #fff0e7; border-color: #ff5000; }
.zb-home-slider__controls button:disabled { opacity: .35; cursor: default; }
.zb-home-slider__track { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - 60px) / 6); gap: 12px; max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #ffb589 #fff3eb; padding: 4px 0 14px; }
.zb-home-slider__track > * { scroll-snap-align: start; }
.zb-home-offers { scroll-margin-top: 110px; }
.zb-home-offers__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; min-width: 0; }
.zb-home-offers__count { color: #8b3a0f; background: #fff0e7; border-radius: 30px; padding: 8px 12px; font-size: 12px; font-weight: 600; }
.zb-home-products .product-card, .zb-home-products .mobile-product-card { min-width: 0; width: 100%; height: 100%; margin: 0; border-radius: 12px; }
.zb-home-products .product-card__img, .zb-home-products .product-media { position: relative; aspect-ratio: 1 / 1; height: auto; min-height: 0; flex-shrink: 0; }
.zb-home-products .product-card__img > img, .zb-home-products .product-media > img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; }
.zb-home-products .product-card__info h3, .zb-home-products .product-body h3 { overflow-wrap: anywhere; }
.zb-home-products .product-card__price { flex-wrap: wrap; }
.zb-home-offers__summary { text-align: center; color: #626974; font-size: 13px; margin: 24px 0 12px; }
.zb-home-offers__empty { padding: 24px; border: 1px solid #eee; border-radius: 12px; background: #fff; color: #626974; }
.zb-home-offers__empty a { color: #d94300; }
.zb-home-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin: 12px 0 30px; }
.zb-home-pagination a, .zb-home-pagination span { min-width: 40px; min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 6px 10px; border: 1px solid #eeded4; border-radius: 9px; color: #303030; background: #fff; font-size: 14px; text-decoration: none; }
.zb-home-pagination [aria-current="page"] { background: #ff5000; color: #fff; border-color: #ff5000; font-weight: 700; }
.zb-home-pagination .zb-home-pagination__gap { border: 0; padding: 0; min-width: 14px; background: transparent; }
.zb-home-pagination a:hover { border-color: #ff5000; color: #d94300; }
.zb-home-products :focus-visible { outline: 3px solid #e54b00; outline-offset: -3px; }
@media (max-width: 1199px) {
  body[data-version="desktop"] .zb-home-slider__track { grid-auto-columns: calc((100% - 24px) / 3); }
  body[data-version="desktop"] .zb-home-offers__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
body[data-version="mobile"] .zb-home-products { margin: 20px 0; }
body[data-version="mobile"] .zb-home-products__heading h2 { font-size: 22px; }
body[data-version="mobile"] .zb-home-products__heading { gap: 8px; }
body[data-version="mobile"] .zb-home-products__heading > div:first-child { flex: 1 1 180px; }
body[data-version="mobile"] .zb-home-slider__track { grid-auto-columns: minmax(160px, 45%); gap: 10px; }
body[data-version="mobile"] .zb-home-offers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body[data-version="mobile"] .zb-home-products .product-body { padding: 10px; gap: 8px; }
body[data-version="mobile"] .zb-home-products .product-body h3 { font-size: 12px; line-height: 1.3; }
body[data-version="mobile"] .zb-home-products .product-body .price { font-size: 19px; }
body[data-version="mobile"] .zb-home-products .old-price { display: block; font-size: 11px; }
@media (min-width: 700px) {
  body[data-version="mobile"] .zb-home-slider__track { grid-auto-columns: calc((100% - 20px) / 3); }
  body[data-version="mobile"] .zb-home-offers__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .zb-home-products *, .zb-home-products *::before, .zb-home-products *::after { transition: none !important; }
}

/* Six cards on desktop; smaller screens retain their existing readable layout. */
@media (min-width: 1200px) {
  body[data-version="desktop"] .zb-home-products .product-card__info { padding: 10px; }
  body[data-version="desktop"] .zb-home-products .product-card__info h3 { font-size: 12px; line-height: 1.35; }
  body[data-version="desktop"] .zb-home-products .product-card__brand { font-size: 10px; }
  body[data-version="desktop"] .zb-home-products .product-card__price { gap: 4px 6px; }
  body[data-version="desktop"] .zb-home-products .product-card__price strong { font-size: 16px; }
  body[data-version="desktop"] .zb-home-products .product-card__price del { font-size: 11px; }
  body[data-version="desktop"] .zb-home-products .product-card__img > img { inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
}
