/* Scoped to products with a fully curated color/photo map. The native gallery remains the fallback. */
@media (min-width: 768px) {
  .js-product-detail:has(.wim-color-gallery-ready) > .container {
    width: calc(100% - 48px);
    max-width: 1280px;
  }
  .js-product-detail:has(.wim-color-gallery-ready) > .container > .row > .col-md-7 {
    flex: 0 0 64%;
    max-width: 64%;
  }
  .js-product-detail:has(.wim-color-gallery-ready) > .container > .row > .col {
    flex: 0 0 36%;
    max-width: 36%;
  }
}
.js-product-detail [data-store^="product-image-"].wim-color-gallery-ready {
  display: block;
  margin: 0;
}
.js-product-detail [data-store^="product-image-"].wim-color-gallery-ready > :not(.wim-color-gallery) {
  display: none !important;
}
.js-product-detail .wim-color-gallery-ready .wim-color-gallery {
  width: 100%;
}
.wim-color-gallery-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
}
.wim-color-gallery-image {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #f7f7f7;
  cursor: zoom-in;
}
.wim-color-gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wim-color-gallery-image:focus-visible,
.wim-color-gallery-more:focus-visible,
.wim-color-gallery-dialog button:focus-visible {
  outline: 2px solid #5b483d;
  outline-offset: 3px;
}
.wim-color-gallery-more {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 1px solid #5b483d;
  background: transparent;
  color: #5b483d;
  font: 600 14px/1.3 Inter, Arial, sans-serif;
  cursor: pointer;
}
.wim-color-gallery-more[hidden] { display: none; }
.wim-color-gallery-counter { display: none; }
.wim-color-gallery-dialog {
  width: min(95vw, 1100px);
  max-width: none;
  max-height: 95vh;
  padding: 50px 56px 30px;
  border: 0;
  background: #f7f3ef;
  overflow: hidden;
}
.wim-color-gallery-dialog::backdrop { background: rgba(20, 15, 12, .8); }
.wim-color-gallery-large {
  display: block;
  width: 100%;
  max-height: calc(95vh - 80px);
  object-fit: contain;
}
.wim-color-gallery-dialog button {
  position: absolute;
  border: 0;
  background: rgba(247, 243, 239, .9);
  color: #5b483d;
  font-size: 36px;
  cursor: pointer;
}
.wim-color-gallery-close { top: 4px; right: 12px; width: 44px; height: 44px; }
.wim-color-gallery-previous,
.wim-color-gallery-next { top: 50%; transform: translateY(-50%); width: 44px; height: 56px; }
.wim-color-gallery-previous { left: 4px; }
.wim-color-gallery-next { right: 4px; }
@media (max-width: 767px) {
  .wim-color-gallery-track {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .wim-color-gallery-track::-webkit-scrollbar { display: none; }
  .wim-color-gallery-image {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 2 / 3;
  }
  .wim-color-gallery-counter {
    display: block;
    margin: 8px 0 0;
    color: #5b483d;
    font: 500 12px/1.4 Inter, Arial, sans-serif;
    text-align: center;
  }
  .wim-color-gallery-dialog { width: 100vw; max-height: 100vh; padding: 44px 25px 22px; }
  .wim-color-gallery-large { max-height: calc(100vh - 66px); }
  .wim-color-gallery-previous { left: 0; }
  .wim-color-gallery-next { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wim-color-gallery-track { scroll-behavior: auto; }
}

/* WIM gallery V2: all published products; the native gallery remains the fallback. */
.wim-color-gallery[data-product-id="368756118"] .wim-color-gallery-image[data-image-id="1277278927"] img {
  transform: scale(1.035);
  transform-origin: center center;
}

/* Home benefits use the native module as source and leave it intact if JS fails. */
.template-home .section-informative-banners.wim-benefits-source-hidden {
  display: none !important;
}
.template-home .wim-benefits-strip {
  width: 100%;
  margin: 32px 0 0;
  border-top: 1px solid #373B40;
  border-bottom: 1px solid #373B40;
  background: #373B40;
  color: #FFFFFF;
  font-family: Inter, Arial, sans-serif;
}
.template-home .wim-benefits-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  box-sizing: border-box;
  width: min(100% - 40px, 1240px);
  margin: 0 auto;
  padding: 22px 0;
  list-style: none;
}
.template-home .wim-benefits-item {
  display: flex;
  align-items: flex-start;
  min-width: 0;
  gap: 12px;
  padding: 0 20px;
  border-right: 1px solid rgba(255, 255, 255, .24);
}
.template-home .wim-benefits-item:first-child { padding-left: 0; }
.template-home .wim-benefits-item:last-child { padding-right: 0; border-right: 0; }
.template-home .wim-benefits-item svg {
  display: block;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  color: #F5F3F0;
  fill: #F5F3F0 !important;
}
.template-home .wim-benefits-copy { display: grid; min-width: 0; gap: 4px; }
.template-home .wim-benefits-copy strong {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.template-home .wim-benefits-copy span {
  font-size: 11px;
  line-height: 1.45;
  color: #E6E7E8;
}
@media (max-width: 900px) {
  .template-home .wim-benefits-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 0; }
  .template-home .wim-benefits-item { padding: 0 16px; }
  .template-home .wim-benefits-item:nth-child(odd) { padding-left: 0; }
  .template-home .wim-benefits-item:nth-child(even) { border-right: 0; padding-right: 0; }
}
@media (max-width: 480px) {
  .template-home .wim-benefits-list { width: calc(100% - 32px); padding: 20px 0; gap: 20px 12px; }
  .template-home .wim-benefits-item { gap: 7px; padding: 0 !important; border-right: 0; }
  .template-home .wim-benefits-item svg { flex-basis: 19px; width: 19px; height: 19px; }
  .template-home .wim-benefits-copy strong { font-size: 10px; }
  .template-home .wim-benefits-copy span { font-size: 10px; }
}
