#instyle-category .catalog--stories {
  padding-inline: 0;
}

#instyle-category .catalog--stories > :is(.category-links, .subcategory-links, .catalog-controls, .active-filters, .woocommerce-pagination, .empty) {
  margin-inline: var(--side);
}

#instyle-category .product-grid--full {
  display: block;
}

#instyle-category .product-grid--mixed .product-story {
  grid-column: 1 / -1;
  margin-inline: calc(-1 * var(--side));
}

#instyle-category .product-grid--mixed:has(.product-story) {
  row-gap: 0;
}

#instyle-category .product-grid--mixed:has(.product-story) .product-card {
  padding-bottom: clamp(23px, 4vw, 66px);
}

#instyle-category .product-grid--mixed .product-story:has(+ .product-card) {
  margin-bottom: clamp(15px, 3vw, 46px);
}

#instyle-category .product-story {
  position: relative;
  min-width: 0;
}

#instyle-category .product-story + .product-story {
  margin-top: -1px;
}

#instyle-category .product-story-link {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

#instyle-category .product-story-link::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, var(--ink), #191919ad 19%, #19191924 48%, transparent 67%),
    linear-gradient(180deg, var(--ink), #1919190a 16%, transparent 30%),
    linear-gradient(34deg, #121212ab, #12121225 33%, transparent 63%);
}

#instyle-category .product-story-photo {
  grid-area: 1 / 1;
  display: block;
  align-self: start;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: filter .45s ease;
}

#instyle-category[data-category="garden"] .category-hero {
  min-height: 0;
}

#instyle-category[data-category="garden"] .hero-image,
#instyle-category[data-category="garden"] .hero-copy {
  grid-area: 1 / 1;
}

#instyle-category[data-category="garden"] .hero-image {
  position: relative;
  align-self: start;
  height: auto;
  object-fit: contain;
}

#instyle-category[data-category="garden"] .product-media:not(.product-media--cutout) img {
  width: 94%;
  height: 94%;
  padding: 0;
  mask-image: none;
  object-fit: contain;
}

#instyle-category[data-category="garden"] .product-media--cutout::before {
  background: radial-gradient(ellipse 64% 56% at 50% 59%, #484848b5, #39393970 49%, transparent 80%);
}

#instyle-category .product-story-copy {
  z-index: 1;
  grid-area: 1 / 1;
  padding: clamp(28px, 5.1vw, 82px) var(--side);
  text-shadow: 0 1px 11px #0f0f0f80;
}

#instyle-category .product-story-copy h3 {
  max-width: 23ch;
  color: inherit;
  font-size: clamp(30px, 5vw, 77px);
  font-weight: 450;
  line-height: .98;
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

#instyle-category .product-story-copy p {
  margin-top: 10px;
  color: #fcfbf8;
  font-size: clamp(14px, 1.55vw, 22px);
}

#instyle-category .product-story-copy del {
  opacity: .72;
}

#instyle-category .product-story-cta {
  display: inline-flex;
  align-items: center;
  gap: 1.15em;
  min-height: 44px;
  margin-top: clamp(6px, 1.3vw, 20px);
  border-bottom: 1px solid currentColor;
  color: #f9f8f4;
  font-size: clamp(13px, 1.15vw, 17px);
  font-weight: 550;
  transition: color .25s ease;
}

#instyle-category .product-story-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -4px;
}

@media (hover: hover) {
  #instyle-category .product-story-link:hover .product-story-photo { filter: brightness(1.06); }
  #instyle-category .product-story-link:hover .product-story-cta { color: var(--green); }
}

@media (max-width: 760px) {
  #instyle-category .product-story-copy {
    padding: 30px var(--side) 25px;
  }

  #instyle-category .product-story-copy h3 {
    max-width: 22ch;
    font-size: clamp(25px, 7vw, 42px);
  }

  #instyle-category .product-story-link::after {
    background: linear-gradient(0deg, var(--ink), #191919b8 24%, #19191923 52%, transparent 73%, #19191996);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    #instyle-category .product-story-copy {
      animation: instyle-story-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
  }
}

@keyframes instyle-story-reveal {
  from { opacity: .76; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  #instyle-category .product-story-photo,
  #instyle-category .product-story-cta { transition: none; }
}
