/* Storefront mobile: preserve the complete uploaded hero image without changing desktop. */
@media (max-width: 620px) {
  .store-shell .hero-split .hero-photo {
    background-color: var(--surface);
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
  }

  .store-shell .hero-editorial.has-image {
    background-color: var(--brand-dark);
    background-size: 100% 100%, contain !important;
    background-repeat: no-repeat !important;
    background-position: center, center !important;
  }

  .store-shell .hero-carousel .hero-slide {
    background-color: var(--brand-dark);
    background-size: 100% 100%, contain !important;
    background-repeat: no-repeat !important;
    background-position: center, center !important;
  }

  .store-shell .hero-carousel {
    display: grid;
    min-height: clamp(280px, 76vw, 315px);
    aspect-ratio: auto;
    padding: 0 !important;
    background: var(--brand-dark) !important;
  }

  .store-shell .hero-carousel .hero-slide {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    background-image: var(--responsive-media-image) !important;
    background-size: cover !important;
    background-position: center !important;
    opacity: 0;
    transform: none !important;
    transition: opacity .35s;
  }

  .store-shell .hero-carousel .hero-slide::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 12px;
    background-image: var(--responsive-media-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }

  .store-shell .hero-carousel .hero-slide::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(90deg, rgba(12, 10, 16, .76), rgba(12, 10, 16, .24));
  }

  .store-shell .hero-carousel .hero-slide.active {
    display: block;
    opacity: 1;
  }

  .store-shell .hero-carousel .hero-copy {
    position: relative;
    z-index: 3;
    inset: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: clamp(280px, 76vw, 315px);
    padding: 28px 44px 44px;
    background: transparent;
  }

  .store-shell .hero-carousel .hero-copy h1 {
    font-size: clamp(28px, 8vw, 34px) !important;
    line-height: .98;
  }

  .store-shell .hero-carousel .hero-copy p {
    font-size: clamp(12px, 3.5vw, 14px);
    line-height: 1.35;
  }

  .store-shell .hero-carousel .hero-arrow {
    top: 50%;
    transform: translateY(-50%);
  }

  .store-shell .hero-carousel .hero-dots {
    top: auto;
    bottom: 20px;
  }

  .store-shell .visual-gallery.gallery-banner {
    height: auto;
  }

  .store-shell .visual-gallery.gallery-banner > div {
    min-height: 0;
    aspect-ratio: var(--natural-media-ratio, 16 / 9);
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
  }

  /* One readable review at a time; native horizontal navigation replaces the compressed marquee. */
  .store-shell .reviews-grid,
  .store-shell .reviews-grid.reviews-count-1,
  .store-shell .reviews-grid.reviews-count-2,
  .store-shell .reviews-grid.reviews-count-3,
  .store-shell .reviews-grid.reviews-count-4 {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
  }

  .store-shell .reviews-grid .review-card,
  .store-shell .reviews-grid.reviews-count-3 .review-card:last-child {
    grid-column: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 22px;
  }

  .store-shell .reviews-marquee {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .store-shell .reviews-marquee::-webkit-scrollbar {
    display: none;
  }

  .store-shell .reviews-marquee-track {
    width: max-content;
    max-width: none;
    animation: none !important;
  }

  .store-shell .reviews-marquee-group {
    gap: 12px;
    padding-right: 12px;
  }

  .store-shell .reviews-marquee-group[aria-hidden="true"] {
    display: none;
  }

  .store-shell .reviews-marquee .review-card {
    flex: 0 0 calc(100vw - 40px);
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
    min-width: 0;
    min-height: 0;
    padding: 22px;
    scroll-snap-align: center;
  }

  .store-shell .review-card > p {
    flex: 0 1 auto;
    margin: 18px 0;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .store-shell .review-card > footer {
    min-width: 0;
  }

  .store-shell .review-card > footer > b,
  .store-shell .review-portrait-name {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .store-shell .reviews-layout-portrait .review-card {
    min-height: 0;
    padding: 22px;
  }

  .store-shell .review-portrait-image,
  .store-shell .review-portrait-placeholder,
  .store-shell .review-card > footer img,
  .store-shell .review-card > footer > span {
    object-fit: cover;
  }
}

/* The preview is container-sized inside a desktop viewport, so activate the same mobile rules there. */
.preview-mobile .store-shell .hero-split .hero-photo {
  background-color: var(--surface);
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.preview-mobile .store-shell .hero-editorial.has-image,
.preview-mobile .store-shell .hero-carousel .hero-slide {
  background-color: var(--brand-dark);
  background-size: 100% 100%, contain !important;
  background-repeat: no-repeat !important;
  background-position: center, center !important;
}

.preview-mobile .store-shell .hero-carousel {
  display: grid;
  min-height: 300px;
  aspect-ratio: auto;
  padding: 0 !important;
  background: var(--brand-dark) !important;
}

.preview-mobile .store-shell .hero-carousel .hero-slide {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  background-image: var(--responsive-media-image) !important;
  background-size: cover !important;
  background-position: center !important;
  opacity: 0;
  transform: none !important;
  transition: opacity .35s;
}

.preview-mobile .store-shell .hero-carousel .hero-slide::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 12px;
  background-image: var(--responsive-media-image);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.preview-mobile .store-shell .hero-carousel .hero-slide::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 10, 16, .76), rgba(12, 10, 16, .24));
}

.preview-mobile .store-shell .hero-carousel .hero-slide.active {
  display: block;
  opacity: 1;
}

.preview-mobile .store-shell .hero-carousel .hero-copy {
  position: relative;
  z-index: 3;
  inset: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: none;
  min-height: 300px;
  padding: 28px 44px 44px;
  background: transparent;
}

.preview-mobile .store-shell .hero-carousel .hero-copy h1 {
  font-size: 32px !important;
  line-height: .98;
}

.preview-mobile .store-shell .hero-carousel .hero-copy p {
  font-size: 14px;
  line-height: 1.35;
}

.preview-mobile .store-shell .hero-carousel .hero-arrow {
  top: 50%;
  transform: translateY(-50%);
}

.preview-mobile .store-shell .hero-carousel .hero-dots {
  top: auto;
  bottom: 20px;
}

.preview-mobile .store-shell .visual-gallery.gallery-banner {
  height: auto;
}

.preview-mobile .store-shell .visual-gallery.gallery-banner > div {
  min-height: 0;
  aspect-ratio: var(--natural-media-ratio, 16 / 9);
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* Search results follow the actual search form instead of the header or viewport. */
.store-shell .search-box {
  position: relative;
}

.store-shell .search-suggestions {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(100vw - 24px);
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
}

@media (max-width: 700px) {
  .store-shell .search-suggestions {
    width: 100%;
    max-width: 100%;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
  }
}

.preview-mobile .store-shell .reviews-marquee {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.preview-mobile .store-shell .reviews-marquee-track {
  width: max-content;
  max-width: none;
  animation: none !important;
}

.preview-mobile .store-shell .reviews-marquee-group[aria-hidden="true"] {
  display: none;
}

.preview-mobile .store-shell .reviews-marquee .review-card {
  flex: 0 0 350px;
  width: 350px;
  max-width: 350px;
  min-height: 0;
  padding: 22px;
  scroll-snap-align: center;
}

.preview-mobile .store-shell .reviews-grid .review-card,
.preview-mobile .store-shell .reviews-grid.reviews-count-3 .review-card:last-child {
  min-height: 0;
  padding: 22px;
}
