.is-home {
  --max: 82rem;
  background: #fff;
}

.is-home .home-topbar-links {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.store-hero {
  display: grid;
  align-items: stretch;
  width: 100%;
  min-height: clamp(22rem, 62vh, 38rem);
  isolation: isolate;
}

.store-hero-slide {
  position: relative;
  inset: auto;
  grid-area: 1 / 1;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  background-color: var(--hero-background, var(--header-bg));
  color: var(--hero-text-color, #fff);
}

.store-hero-slide.has-desktop-background {
  --hero-overlay-opacity: 1;
  --hero-subtitle: #f0f5fb;
  color: #fff;
}

.store-hero-slide > .store-hero-mobile-background {
  display: none;
}

.store-hero-slide.is-active {
  pointer-events: auto;
}

.store-hero-slide > picture,
.store-hero-slide::after {
  position: absolute;
  inset: 0;
}

.store-hero-slide::after {
  content: "";
  opacity: var(--hero-overlay-opacity, 0);
  background: linear-gradient(90deg, rgb(7 17 35 / 91%), rgb(7 17 35 / 62%) 40%, rgb(7 17 35 / 8%) 78%);
  pointer-events: none;
}

.store-hero-copy {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding-block: 2rem 3.5rem;
}

.store-hero-copy :is(h1, h2) {
  font: 750 clamp(2.2rem, 5.7vw, 5rem)/1.03 var(--font);
  letter-spacing: -.052em;
  max-width: 43rem;
  margin: 0;
}

.store-hero-copy p {
  margin: 1rem 0 0;
  max-width: 27rem;
  color: var(--hero-subtitle, currentColor);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.store-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.55rem;
}

.store-hero-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: .72rem 1.05rem;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: .45rem;
  background: var(--slide-button-bg, #0e6bb7);
  color: var(--slide-button-fg, #fff);
  text-align: center;
  font-size: .92rem;
  font-weight: 700;
}

.store-hero-button:hover {
  color: var(--slide-button-fg, #fff);
  filter: brightness(.9);
}

.store-hero-controls {
  left: auto;
  right: max(1rem, calc((100% - var(--max)) / 2));
  bottom: 1rem;
  transform: none;
  padding: .45rem .7rem;
  border-radius: 2rem;
  background: rgb(11 17 39 / 74%);
}

.store-hero-pause {
  border: 0;
  padding: .1rem .25rem;
  background: transparent;
  color: #fff;
  font: 600 .8rem var(--font);
  cursor: pointer;
}

.store-hero.is-reduced-motion .store-hero-pause {
  display: none;
}

.store-home {
  padding-block: clamp(1.75rem, 4vw, 3.5rem) 4rem;
  --rail-gap: clamp(.9rem, 1.6vw, 1.35rem);
  --rail-card: clamp(13.5rem, 21vw, 18rem);
  --rail-blue: #12385f;
}

.store-collection + .store-collection {
  margin-top: clamp(1.8rem, 5vw, 4rem);
}

.store-collection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: .8rem;
}

.store-collection-header h2 {
  margin: 0;
  font: 750 clamp(1.45rem, 2.6vw, 2.25rem)/1.15 var(--font);
  letter-spacing: -.025em;
}

.store-collection-controls {
  display: flex;
  gap: .45rem;
}

.store-collection-controls[hidden] {
  display: none;
}

.store-collection-controls button {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid #dce5ed;
  border-radius: 50%;
  background: #f5f8fb;
  color: var(--rail-blue);
  font: 650 1.05rem var(--font);
  cursor: pointer;
}

.store-collection-controls button:disabled {
  opacity: .45;
  cursor: default;
}

.store-collection-row {
  display: grid;
  grid-template-columns: var(--rail-card) minmax(0, 1fr);
  align-items: stretch;
  gap: var(--rail-gap);
}

.store-category-card {
  min-width: 0;
  margin-block: .35rem 1rem;
}

.store-home-products {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(100%, var(--rail-card));
  gap: var(--rail-gap);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  margin: 0;
  padding: .35rem .25rem 1rem;
  list-style: none;
  scrollbar-width: none;
}

.store-home-products::-webkit-scrollbar {
  display: none;
}

.store-rail-dots {
  display: flex;
  justify-content: center;
  gap: .2rem;
  margin-top: .1rem;
  margin-inline-start: calc(var(--rail-card) + var(--rail-gap));
}

.store-rail-dots[hidden] {
  display: none;
}

.store-rail-dots button {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #a5b7c9;
  cursor: pointer;
}

.store-rail-dots button::after {
  content: "";
  width: .42rem;
  height: .42rem;
  border-radius: 1rem;
  background: currentColor;
}

.store-rail-dots button[aria-current="true"] {
  color: var(--accent);
}

.store-rail-dots button[aria-current="true"]::after {
  width: .95rem;
}

.store-home-products > li {
  min-width: 0;
  scroll-snap-align: start;
}

.store-home-products > li > a,
.store-category-card > a {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: calc(var(--rail-card) + 7rem);
  overflow: hidden;
  isolation: isolate;
  border-radius: .95rem;
  box-shadow: 0 .25rem .8rem rgb(17 38 64 / 9%);
}

.store-home-products > li > a:focus-visible,
.store-category-card > a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.store-category-card > a {
  background: var(--rail-blue);
  color: #fff;
}

.store-category-card img,
.store-category-card > a::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.store-category-card img {
  object-fit: cover;
}

.store-category-card > a::after {
  content: "";
  background: linear-gradient(160deg, rgb(8 30 59 / 94%) 12%, rgb(8 30 59 / 63%) 45%, rgb(8 30 59 / 68%) 100%);
}

.store-category-copy {
  padding: clamp(1rem, 2vw, 1.45rem);
}

.store-category-copy strong {
  display: block;
  font: 750 clamp(1.3rem, 2.2vw, 1.75rem)/1.1 var(--font);
  letter-spacing: -.02em;
}

.store-category-copy p {
  margin: .55rem 0 0;
  color: #e5f3ff;
  font-size: .88rem;
}

.store-category-link {
  display: flex;
  justify-content: space-between;
  padding: 1.1rem 1.35rem;
  margin-top: auto;
  font-weight: 700;
}

.store-category-card a:hover {
  color: #fff;
}

.store-product-card a {
  background: #fff;
  color: var(--text);
}

.store-product-media {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f2f5f8;
}

.store-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-product-no-image {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--muted);
}

.store-product-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .75rem;
  flex: 1;
  padding: .95rem 1.05rem;
}

.store-product-info h3 {
  margin: .3rem 0 0;
  font: 700 1rem/1.28 var(--font);
  overflow-wrap: anywhere;
}

.store-product-stock {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: #186345;
  font-size: .73rem;
  font-weight: 700;
}

.store-product-stock::before {
  content: "";
  width: .34rem;
  height: .34rem;
  border-radius: 50%;
  background: currentColor;
}

.store-product-stock.is-unavailable {
  color: #8f2d45;
}

.store-product-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .5rem;
}

.store-product-footer .price {
  margin: 0;
}

.store-product-footer .price-promo-note {
  margin: .25rem 0 0;
  font-size: .75rem;
}

.store-product-arrow {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: #ebf3fa;
  color: var(--accent-hover);
}

.store-product-card a:hover .store-product-arrow {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 700px) {
  .store-hero {
    min-height: clamp(24rem, 82vw, 31rem);
  }

  .store-hero-slide {
    align-items: end;
  }

  .store-hero-slide.has-mobile-background {
    --hero-overlay-opacity: 1;
    --hero-subtitle: #f0f5fb;
    color: #fff;
  }

  .store-hero-slide > .store-hero-mobile-background {
    display: block;
  }

  .store-hero-slide::after {
    background: linear-gradient(0deg, rgb(7 17 35 / 92%), rgb(7 17 35 / 36%) 66%, transparent);
  }

  .store-hero-copy {
    padding-bottom: 4rem;
  }

  .store-hero-actions > a {
    padding-inline: .7rem;
  }

  .store-home {
    --rail-card: min(67vw, 15.5rem);
  }
}

@media (max-width: 700px) {
  .store-collection {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .store-collection-header {
    display: contents;
  }

  .store-collection-header h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .store-collection-controls {
    grid-area: 2 / 2;
    padding-inline-end: .15rem;
  }

  .store-collection-row {
    grid-area: 1 / 1 / 2 / -1;
    grid-template-columns: minmax(0, 1fr);
    gap: .65rem;
  }

  .store-category-card {
    margin: 0;
  }

  .store-category-card > a {
    min-height: clamp(8.5rem, 28vw, 11rem);
  }

  .store-home-products > li > a {
    min-height: 0;
  }

  .store-category-copy strong {
    overflow-wrap: anywhere;
  }

  .store-category-copy p {
    max-width: 34ch;
  }

  .store-category-link {
    padding: .55rem 1rem .85rem;
  }

  .store-rail-dots {
    grid-area: 2 / 1;
    margin-inline-start: 0;
  }
}

.store-hero-inner {
  --hero-gap: clamp(1rem, 3vw, 3rem);
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  align-items: center;
}

.store-hero-inner .store-hero-copy {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.store-hero-foreground {
  min-width: 0;
  padding-block: 1rem 3rem;
}

.store-hero .store-hero-slide .store-hero-foreground img {
  width: 100%;
  height: auto;
  max-height: min(45vh, 28rem);
  object-fit: contain;
}

.home-slideshow:not(.is-reduced-motion) .store-hero-slide.is-active .store-hero-foreground img {
  animation: var(--hero-art-entrance, none);
}

@media (min-width: 701px) {
  .store-hero-inner.has-foreground {
    grid-template-columns: minmax(0, 1fr) var(--hero-art-width);
    gap: var(--hero-gap);
  }

  .store-hero-slide.is-text-right::after {
    background: linear-gradient(270deg, rgb(7 17 35 / 91%), rgb(7 17 35 / 62%) 40%, rgb(7 17 35 / 8%) 78%);
  }

  .store-hero-slide.is-text-right .store-hero-inner.has-foreground {
    grid-template-columns: var(--hero-art-width) minmax(0, 1fr);
  }

  .store-hero-slide.is-text-right .store-hero-copy {
    grid-column: -2 / -1;
    grid-row: 1;
    text-align: right;
  }

  .store-hero-slide.is-text-right .store-hero-copy :is(h1, h2, p) {
    margin-inline-start: auto;
  }

  .store-hero-slide.is-text-right .store-hero-actions {
    justify-content: flex-end;
  }

  .store-hero-slide.is-text-right .store-hero-foreground {
    grid-column: 1;
    grid-row: 1;
  }
}

@media (max-width: 700px) {
  .store-hero-inner.has-foreground .store-hero-copy {
    padding-bottom: 1rem;
  }

  .store-hero-foreground {
    width: var(--hero-art-mobile-width, clamp(9rem, var(--hero-art-width), 20rem));
    max-width: 100%;
    margin-inline: auto;
  }

  .store-hero .store-hero-slide .store-hero-foreground img {
    max-height: var(--hero-art-mobile-max-height, 11rem);
  }
}
