html:has(body.shop-page) {
  scroll-padding-top: 0;
}

.shop-page :is(#shop-product-catalogue, #shop-product-title, #shop-categories-section, #shop-featured, #shop-categories, [data-shop-details]) {
  scroll-margin-top: var(--site-header-clearance, 9.5rem);
}

.shop-page .shop-hero-inner {
  min-height: 0;
}

.shop-page .shop-catalogue-section {
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.shop-page .shop-catalogue-section .shop-section-heading {
  gap: 12px 24px;
  margin-bottom: 14px;
}

.shop-page .shop-catalogue-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.shop-page .shop-catalogue-links a {
  padding-block: 7px;
}

.shop-page .shop-discovery {
  padding: 0;
  border: 0;
  background: none;
}

.shop-page .shop-search-panel {
  gap: 10px;
}

.shop-page .shop-result-count {
  margin: 12px 0;
}

.shop-page .shop-load-help {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff6e3;
  color: #543019;
}

.shop-page .shop-load-help a {
  color: var(--mar);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.shop-page [hidden] {
  display: none !important;
}

.shop-page .shop-product-media > span,
.shop-page .shop-detail-media > span {
  position: static;
  display: block;
  max-width: none;
  padding: 7px 10px;
  border: 0;
  border-top: 1px solid #eddfc4;
  border-radius: 0;
  background: #fff8e9;
  color: #543019;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: normal;
  text-align: left;
}

.shop-page .shop-product-description {
  display: block;
  overflow: visible;
  font-size: 13px;
}

.shop-page .shop-dialog {
  overflow: hidden;
}

.shop-page #shop-dialog-body {
  display: flex;
  max-height: min(90dvh - 2px, 848px);
  flex-direction: column;
  overflow: hidden;
}

.shop-page .shop-dialog-scroll {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.shop-page .shop-detail-actions {
  flex: none;
  margin: 0;
  padding: 10px clamp(12px, 3vw, 28px);
  border-top: 1px solid #e7d6b4;
  background: #fffaf1;
}

.shop-page .shop-detail-actions .shop-whatsapp-button {
  width: 100%;
  min-height: 44px;
  font-size: 15px;
}

.shop-page #shop-dialog-title {
  scroll-margin-top: 14px;
}

.shop-page .shop-more-button {
  display: block;
  min-height: 44px;
  margin: 20px auto 0;
  cursor: pointer;
}

.shop-page .shop-more-button.b2 {
  border-color: var(--gold);
  background: #fff8e9;
  color: var(--mar);
}

@media (max-width: 620px) {
  .shop-page .shop-hero-inner {
    padding: 18px;
    gap: 12px;
  }

  .shop-page .shop-hero h1 {
    font-size: clamp(30px, 8.4vw, 46px);
  }

  .shop-page .shop-hero-actions {
    margin-top: 16px;
  }

  .shop-page .shop-hero-visual img {
    aspect-ratio: 2.2;
  }

  .shop-page .shop-dialog-scroll .shop-detail-media img {
    aspect-ratio: 1.65;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .shop-page .shop-hero {
    padding: 6px 0 16px;
  }

  .shop-page .shop-hero-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    gap: 17px;
    padding: 14px 18px;
  }

  .shop-page .shop-hero h1 {
    margin-bottom: 6px;
    font-size: clamp(25px, 4.6vw, 38px);
  }

  .shop-page .shop-hero-copy > p:not(.shop-eyebrow):not(.shop-hero-note) {
    font-size: 15px;
    line-height: 1.35;
  }

  .shop-page .shop-hero-visual img {
    min-height: 0;
    aspect-ratio: 1.5;
  }

  .shop-page .shop-hero-actions {
    flex-direction: row;
    margin-top: 10px;
  }

  .shop-page .shop-hero-actions .btn {
    width: auto;
    min-height: 42px;
    padding: 6px 10px;
    font-size: 13px;
  }

  .shop-page .shop-hero-note {
    margin-top: 8px;
  }
}
