/* Zoomag home banner repair, 2026-09-30.
 * Load after the existing storefront sheets (or append to their final sheet).
 * Existing rules use !important; these home-only selectors win that cascade.
 * Original logos/product photos stay intact and use object-fit: contain.
 */

html body #common-home.zm-home-layout-r34 .zoomag-banner-shell.zoomag-home-brands-slider {
  padding-inline: 0 !important;
  margin-block: 28px 34px !important;
  overflow: hidden !important;
}
html body #common-home.zm-home-layout-r34 .zoomag-banner-shell.zoomag-home-brands-slider .zoomag-banner-stage {
  height: auto !important;
  min-height: 0 !important;
}
html body #common-home.zm-home-layout-r34 .zoomag-banner-shell.zoomag-home-brands-slider .zoomag-home-brands-track {
  display: flex !important;
  align-items: stretch !important;
  gap: 16px !important;
  height: auto !important;
  padding: 4px 4px 12px !important;
  overflow: auto hidden !important;
  scroll-snap-type: x proximity !important;
  scrollbar-width: auto !important;
}
html body #common-home.zm-home-layout-r34 .zoomag-banner-shell.zoomag-home-brands-slider .zoomag-home-brand-item {
  flex: 0 0 clamp(232px, 21vw, 280px) !important;
  min-width: 0 !important;
}
html body #common-home.zm-home-layout-r34 .zoomag-banner-shell.zoomag-home-brands-slider .zoomag-banner-card {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 154px !important;
  min-height: 154px !important;
  padding: 10px !important;
  border-radius: 14px !important;
  background: #fff !important;
  transform: none !important;
}
html body #common-home.zm-home-layout-r34 .zoomag-banner-shell.zoomag-home-brands-slider .zoomag-banner-card-link {
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: visible !important;
}
html body #common-home.zm-home-layout-r34 .zoomag-banner-shell.zoomag-home-brands-slider .zoomag-banner-card-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 0 !important;
  transform: none !important;
}

/* A square, responsive media area replaces the fixed 196px strip.
 * The image fills this area with contain: all of the product remains visible.
 * Separate thumbnail normalization can remove only blank source-image margins.
 */
html body #common-home.zm-home-layout-r34 .zm-home-specials-r19 .zm-home-specials-r19__rail {
  grid-auto-columns: minmax(286px, calc(25% - 12px)) !important;
  gap: 16px !important;
  padding-bottom: 12px !important;
  scroll-snap-type: x proximity !important;
  scrollbar-width: auto !important;
}
html body #common-home.zm-home-layout-r34 .zm-home-specials-r19 .zm-home-specials-r19__card .zm-catalog-media-r68 {
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  padding: 10px !important;
}
html body #common-home.zm-home-layout-r34 .zm-home-specials-r19 .zm-home-specials-r19__card .zm-catalog-media-r68__image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
}
html body #common-home.zm-home-layout-r34 .zm-home-specials-r19 .zm-home-specials-r19__card-body {
  padding: 14px !important;
}
html body #common-home.zm-home-layout-r34 .zm-home-specials-r19 .zm-home-specials-r19__card-body h3 {
  min-height: 67.2px !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  -webkit-line-clamp: 3 !important;
}
html body #common-home.zm-home-layout-r34 .zm-home-specials-r19 .zm-home-specials-r27__group {
  font-size: 13px !important;
  line-height: 1.2 !important;
  padding: 5px 9px !important;
}
html body #common-home.zm-home-layout-r34 .zm-home-specials-r19 .zm-home-specials-r19__copy h2 {
  font-size: clamp(28px, 2.2vw, 36px) !important;
  line-height: 1.18 !important;
}
html body #common-home.zm-home-layout-r34 .zm-home-specials-r19 .zm-home-specials-r27__actions a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  font-size: 16px !important;
  white-space: normal !important;
}
html body #common-home.zm-home-layout-r34 .zoomag-home-brands-track:focus-visible,
html body #common-home.zm-home-layout-r34 .zoomag-banner-card-link:focus-visible,
html body #common-home.zm-home-layout-r34 .zm-home-specials-r19__rail:focus-visible,
html body #common-home.zm-home-layout-r34 .zm-home-specials-r19__card-link:focus-visible,
html body #common-home.zm-home-layout-r34 .zm-home-specials-r19__nav:focus-visible {
  outline: 3px solid #176b46 !important;
  outline-offset: 3px !important;
}

@media (max-width: 1099.98px) {
  html body #common-home.zm-home-layout-r34 .zm-home-specials-r19 .zm-home-specials-r19__rail {
    grid-auto-columns: minmax(260px, calc(33.3333% - 10.6667px)) !important;
  }
}
@media (max-width: 767.98px) {
  html body #common-home.zm-home-layout-r34 .zoomag-banner-shell.zoomag-home-brands-slider .zoomag-home-brand-item {
    flex-basis: clamp(208px, 64vw, 248px) !important;
  }
  html body #common-home.zm-home-layout-r34 .zoomag-banner-shell.zoomag-home-brands-slider .zoomag-banner-card {
    height: 132px !important;
    min-height: 132px !important;
    padding: 10px !important;
  }
  html body #common-home.zm-home-layout-r34 .zm-home-specials-r19 .zm-home-specials-r19__rail {
    grid-auto-columns: minmax(224px, 82%) !important;
    gap: 14px !important;
    padding-inline: 12px !important;
  }
  html body #common-home.zm-home-layout-r34 .zm-home-specials-r19 .zm-home-specials-r19__copy h2 {
    font-size: clamp(24px, 6.2vw, 28px) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body #common-home.zm-home-layout-r34 .zoomag-home-brands-track,
  html body #common-home.zm-home-layout-r34 .zm-home-specials-r19__rail {
    scroll-behavior: auto !important;
  }
}
