/* Only the image row of the original left homepage card rotates. */
.shop-hero.category-hero {
  --hero-interval: 2400ms;
  padding: 22px 0 78px;
  margin: 0;
  background: #fff;
  color: #141414;
  isolation: isolate;
}
.category-hero .site-width { width: min(calc(100% - 64px), 1360px); margin-inline: auto; }
.category-hero-mosaic {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: 628px;
  gap: 12px;
}
.category-hero-main {
  position: relative;
  display: grid;
  grid-column: 1;
  grid-row: 1 / span 2;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #e1eae0;
  isolation: isolate;
}
.category-hero-copy { position: relative; z-index: 2; min-width: 0; padding: 22px 24px 10px; }
.category-hero-kicker { margin: 0 0 10px; font-size: 9px; font-weight: 700; line-height: 1.5; letter-spacing: .14em; }
.category-hero-copy h1 { margin: 0 0 24px; color: #141414; font-size: clamp(26px, 2.5vw, 34px); font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.category-hero-description { max-width: 220px; margin: 0; color: rgba(20, 20, 20, .72); font-size: 12px; line-height: 1.5; }
.category-hero-cta { display: inline-flex; align-items: center; gap: 5px; width: fit-content; margin-top: 18px; border-bottom: 1px solid currentColor; color: #141414; font-size: 11px; line-height: 1.9; text-decoration: none; }
.category-hero-buyer-link { display: block; width: fit-content; margin-top: 14px; color: #315c43; font-size: 12px; line-height: 1.7; text-underline-offset: .2em; }
.category-hero-gallery { position: relative; min-width: 0; min-height: 0; width: 100%; perspective: 1200px; touch-action: pan-y; }
.category-hero-slide { position: absolute; inset: 0 0 34px; opacity: 0; visibility: hidden; transition: opacity 160ms ease, visibility 160ms; }
.category-hero-slide.is-active { z-index: 1; opacity: 1; visibility: visible; }
.category-hero-product { display: block; width: 100%; height: 100%; min-height: 0; padding: 4px 22px 10px; text-decoration: none; }
.category-hero-product > img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; transform-origin: center; backface-visibility: hidden; user-select: none; }
/* Blend the supplied studio photo into the card, without repainting its bags or lettering. */
.category-hero-slide[data-hero-slide="reusable"] .category-hero-product { background: #e1eae0; isolation: isolate; }
.category-hero-slide[data-hero-slide="reusable"] img { mix-blend-mode: darken; filter: brightness(1.08); }
.category-hero-slide[data-hero-slide="nonwoven"] img { -webkit-mask-image: url("/assets/homepage-hero/nonwoven-series-head02-mask.svg"); mask-image: url("/assets/homepage-hero/nonwoven-series-head02-mask.svg"); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.category-hero-slide.is-entering img { animation: category-hero-turn-360 700ms cubic-bezier(.24, .62, .34, 1) both; }
@keyframes category-hero-turn-360 {
  0% { transform: perspective(1200px) rotateY(-360deg) scale(.92); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: perspective(1200px) rotateY(0deg) scale(1); opacity: 1; }
}
.category-hero-image-controls { position: absolute; z-index: 3; inset: auto 14px 4px; display: none; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.category-hero[data-ready="true"] .category-hero-image-controls { display: flex; }
.category-hero-selectors { display: flex; align-items: center; gap: 0; }
.category-hero-selector { display: grid; place-items: center; width: 28px; height: 28px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.category-hero-selector > span { display: block; width: 6px; height: 6px; border: 1px solid #536d5a; border-radius: 50%; background: transparent; }
.category-hero-selector.is-active > span { background: #315f42; }
.category-hero-control { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0; padding: 6px; border: 0; border-radius: 50%; background: transparent; color: #31513b; cursor: pointer; }
.category-hero-control:hover { background: rgb(255 255 255 / 40%); }
.category-hero-control svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.category-hero-control .hero-play-icon { display: none; }
.category-hero-control[data-paused="true"] .hero-play-icon { display: block; }
.category-hero-control[data-paused="true"] .hero-pause-icon { display: none; }
.category-hero :is(a, button):focus-visible { outline: 2px solid #315f42; outline-offset: 3px; border-radius: 3px; }
.category-hero-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.category-hero .category-hero-side {
  position: relative;
  display: grid;
  grid-column: 2;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  color: #141414;
  text-decoration: none;
}
.category-hero-side[data-hero-fixed="nonwoven"] { grid-row: 1; }
.category-hero-side[data-hero-fixed="cooler"] { grid-row: 2; }
.category-hero .category-hero-side > .hero-tile-copy {
  position: relative;
  grid-area: 1 / 1;
  align-self: start;
  justify-items: start;
  inset: auto;
  width: 100%;
  max-width: none;
  padding: 22px 24px 10px;
  gap: 5px;
  text-align: left;
}
.category-hero .category-hero-side > .hero-tile-copy strong { font-size: 22px; line-height: 1.3; }
.category-hero .category-hero-side > img,
.category-hero .category-hero-side > .content-carousel-layer {
  position: relative;
  grid-area: 2 / 1;
  align-self: stretch;
  justify-self: stretch;
  inset: auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
}
.category-hero .category-hero-side > img { padding: 8px 14px 18px; object-fit: contain; object-position: center; }
.category-hero .category-hero-side .content-carousel-slide { inset: 8px 14px 18px; }
.category-hero .category-hero-side :is(img, .content-carousel-layer, .content-carousel-slide, .content-carousel-media) { animation: none !important; transition: none !important; }
html[lang^="en"] .category-hero-copy h1 { font-size: clamp(25px, 2.5vw, 34px); line-height: 1.2; margin-bottom: 14px; }
html[lang^="en"] .category-hero-description { max-width: none; font-size: 12px; line-height: 1.6; }
html[lang^="en"] .category-hero-side[data-hero-fixed="nonwoven"] > .hero-tile-copy strong { font-size: 17px; }
@media (min-width: 761px) and (max-width: 1100px) {
  .category-hero .site-width { width: calc(100% - 40px); }
  .category-hero-copy { padding-inline: 20px; }
  .category-hero .category-hero-side > .hero-tile-copy { padding-inline: 18px; }
}
@media (max-width: 760px) {
  .shop-hero.category-hero { padding: 14px 0 42px; }
  .category-hero .site-width { width: calc(100% - 40px); }
  .category-hero-mosaic { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; height: auto; }
  .category-hero-main { grid-column: 1; grid-row: auto; grid-template-rows: auto clamp(220px, 65vw, 300px); height: auto; }
  .category-hero-copy { padding: 16px 16px 8px; }
  .category-hero-copy h1 { font-size: 24px; line-height: 1.3; margin-bottom: 18px; }
  .category-hero-description { max-width: 100%; font-size: 12px; line-height: 1.55; }
  .category-hero-cta { margin-top: 10px; font-size: 11px; line-height: 1.5; }
  .category-hero-product { padding-inline: 10px; }
  .category-hero .category-hero-side { grid-column: 1; grid-row: auto; height: 330px; }
  .category-hero .category-hero-side > .hero-tile-copy { padding: 16px 16px 8px; }
  .category-hero .category-hero-side > .hero-tile-copy strong { font-size: 20px; }
  html[lang^="en"] .category-hero-copy h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .category-hero *, .category-hero *::before, .category-hero *::after { animation: none !important; transition: none !important; }
}
