/* Product listing page — Figma product-list frame */
.shopping-page {
  background: #fff;
}

.shopping-page .site-header {
  border-bottom: 1px solid #e4e4e7;
}

.shopping-hero {
  padding-top: 34px;
  padding-bottom: 34px;
}

.shopping-breadcrumb {
  --bs-breadcrumb-divider: '/';
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 20px;
}

.shopping-breadcrumb .breadcrumb-item {
  display: flex;
  align-items: center;
}

.shopping-breadcrumb .breadcrumb-item + .breadcrumb-item {
  padding-right: 0;
  padding-left: 0;
}

.shopping-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  float: none;
  padding-right: 0;
  padding-left: 0;
  padding-inline: 4px;
  color: var(--color-border-strong);
}

.shopping-breadcrumb a:hover {
  color: var(--color-heading);
}

.shopping-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
}

.shopping-eyebrow {
  color: var(--color-green-500);
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
}

.shopping-heading h1 {
  margin: 5px 0 6px;
  color: var(--color-heading);
  font-size: 32px;
  font-weight: 800;
  line-height: 44px;
}

.shopping-heading p {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 24px;
}

.shopping-count {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--color-muted);
  font-size: 14px;
  white-space: nowrap;
}

.shopping-count strong {
  color: var(--color-heading);
  font-size: 24px;
  line-height: 32px;
}

.shopping-content {
  padding-bottom: 0px;
}

.shopping-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 0;
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
}

.shopping-toolbar-start {
  display: flex;
  align-items: center;
  gap: 18px;
}

.shopping-result-label {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 20px;
}

.shopping-layout {
  display: grid;
  grid-template-columns: 276px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-top: 32px;
}

.shopping-products-stack {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.shopping-products-stack > .shopping-pagination {
  width: 100%;
  align-self: stretch;
}

.shopping-products-stack [data-archive-lazy-sentinel] {
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.shop-filters {
  position: sticky;
  top: 120px;
  border: 1px solid var(--color-border-soft);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid #f0f0f1;
}

.filter-head h2 {
  margin: 0;
  color: var(--color-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}

.filter-reset {
  border: 0;
  background: transparent;
  color: var(--color-green-500);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.filter-section {
  padding: 17px 20px;
  border-bottom: 1px solid #f0f0f1;
}

.filter-section:last-child {
  border-bottom: 0;
}

.filter-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-heading);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  cursor: pointer;
}

.filter-section-toggle i {
  color: var(--color-muted);
  font-size: 12px;
  transition: transform .2s;
}

.filter-section-toggle:not(.is-open) i {
  transform: rotate(0);
}

.filter-section-body {
  display: none;
  padding-top: 16px;
}

.filter-section-body.is-open {
  display: block;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 33px;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}

.filter-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkmark {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1px solid #cdd2d8;
  border-radius: 5px;
  background: #fff;
}

.filter-check input:checked+.checkmark {
  border-color: var(--color-green-500);
  background: var(--color-green-500);
}

.filter-check input:checked+.checkmark::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-check small {
  margin-inline-start: auto;
  color: var(--color-muted);
  font-size: 11px;
}

.filter-category-tree,
.filter-category-tree-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.filter-category-tree-list > .filter-category-tree-item > .filter-category-tree-list {
  position: relative;
  z-index: 0;
  margin-inline-end: 12px;
  margin-top: -35px;
  padding: 35px 12px 0 0;
}

.filter-category-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 35px;
  padding: 6px 8px;
  background: transparent;
  border-radius: 8px;
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 20px;
  text-decoration: none;
  transition: color .2s, background-color .2s;
}

.filter-category-link:hover {
  color: var(--color-heading);
  background: #f7faf6;
}

.filter-category-link.is-active {
  color: var(--color-green-500);
  background: #eef7eb;
  font-weight: 700;
}

.filter-more {
  padding: 8px 0 0;
  border: 0;
  background: transparent;
  color: var(--color-green-500);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.price-range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--color-muted);
  font-size: 10px;
  line-height: 16px;
}

.price-range {
  position: relative;
  height: 4px;
  margin: 13px 8px 16px;
  border-radius: 10px;
  background: #e7e9ec;
}

.price-range span {
  position: absolute;
  inset: 0 20% 0 0;
  border-radius: inherit;
  background: var(--color-green-500);
}

.price-range i {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-green-500);
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
}

.price-range i:first-of-type {
  right: 0;
}

.price-range i:last-of-type {
  left: 20%;
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.price-inputs label {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid var(--color-border-soft);
  border-radius: 8px;
  color: var(--color-muted);
  font-size: 10px;
}

.price-inputs input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 11px;
  text-align: right;
  cursor: default;
  user-select: none;
  pointer-events: none;
}

.filter-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.filter-switch-row span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filter-switch-row strong {
  color: var(--color-heading);
  font-size: 13px;
  line-height: 20px;
}

.filter-switch-row small {
  color: var(--color-muted);
  font-size: 10px;
  line-height: 16px;
}

.filter-switch-row input {
  position: absolute;
  opacity: 0;
}

.filter-switch-row i {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 38px;
  border-radius: 20px;
  background: #d9dce0;
  transition: background .2s;
}

.filter-switch-row i::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform .2s;
}

.filter-switch-row input:checked+i {
  background: var(--color-green-500);
}

.filter-switch-row input:checked+i::after {
  transform: translateX(-16px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 16px;
  align-items: stretch;
  transition: opacity 0.2s ease;
}

.product-grid.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.product-grid--empty {
  display: block;
}

.shopping-products-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 240px;
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--color-border-soft);
  border-radius: 20px;
  background: #fff;
}

.shopping-products-empty-title {
  margin: 0;
  color: var(--color-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.shopping-products-empty-text {
  margin: 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 22px;
}

.shopping-products-empty-link {
  margin-top: 4px;
  text-decoration: none;
}

.shopping-product-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.shopping-product-card .product-card {
  flex: 1;
  height: 100%;
  gap: 18px;
  padding: 5px;
  border-radius: 20px;
}

.shopping-product-card .product-media {
  border-radius: 18px 18px 10px 10px;
}

.shopping-product-card .product-body {
  flex: 1;
  gap: 17px;
  padding: 0 12px 12px;
}

.shopping-product-card .product-info {
  flex: 1;
  gap: 11px;
}

.shopping-product-card .product-price {
  min-height: 52px;
  justify-content: flex-end;
}

.shopping-product-card .product-title {
  font-size: 14px;
  line-height: 22px;
  min-height: 44px;
}

.shopping-product-card .product-meta {
  margin-top: auto;
  padding-top: 14px;
  align-items: flex-end;
}

.shopping-product-card .product-price-now strong {
  font-size: 16px;
  line-height: 24px;
}

.shopping-product-card .product-price-now span {
  font-size: 10px;
}

.shopping-product-card .product-price-old-rows {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

.shopping-product-card .product-price-old-rows .product-price-old--mid {
  margin-top: -1px;
}

.shopping-product-card .product-price-old {
  gap: 4px;
}

.shopping-product-card .price-strike {
  font-size: 11px;
  margin-bottom: -2px;
}

.shopping-product-card .badge-off {
  height: 18px;
  padding: 3px 5px 0;
  font-size: 10px;
}

.shopping-product-card .btn-cart {
  width: 44px;
  height: 44px;
  padding: 11px;
}

.shopping-product-card .product-rating {
  gap: 5px;
  font-size: 10px;
}

.shopping-product-card .product-stars i {
  font-size: 13px;
}

.shopping-product-card .product-media {
  --product-discount-chip-h: 28px;
}

.shopping-product-card .product-discount-badge,
.shopping-product-card .product-discount-timer {
  box-sizing: border-box;
  height: var(--product-discount-chip-h);
  min-height: var(--product-discount-chip-h);
  max-height: var(--product-discount-chip-h);
  line-height: 1;
}

.shopping-product-card .product-media-discount-chips {
  top: 10px;
  left: 10px;
  gap: 5px;
  max-width: calc(100% - 72px);
}

.shopping-product-card .product-special-tier-badge {
  padding: 4px 12px 0;
}

.shopping-product-card .product-special-tier-badge__text {
  font-size: 10px;
  font-weight: 800;
}

.shopping-product-card .badge-off--club-tier {
  height: 18px;
  padding: 3px 5px 0;
  font-size: 10px;
}

.shopping-product-card .product-discount-badge {
  top: 10px;
  left: 10px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 400;
}

.shopping-product-card .product-discount-timer {
  top: 10px;
  right: 10px;
  max-width: calc(100% - 72px);
  padding: 0 8px 0 6px;
  font-size: 10px;
  font-weight: 800;
}

.shopping-product-card .product-discount-timer__icon {
  font-size: 12px;
}

.shopping-product-card .product-card--discounted .product-media:has(.product-discount-timer.is-active) .product-media-discount-chips {
  max-width: calc(50% - 14px);
}

.shopping-pagination {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 46px;
  direction: ltr;
}

.shopping-pagination button,
.shopping-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 32px;
  height: 32px;
  padding: 4px 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #3f3f46;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
  text-decoration: none;
}

.shopping-pagination button.is-active {
  background: #09090b;
  color: #fff;
  cursor: default;
  padding: 8px 12px;
}

.shopping-pagination-nav:disabled {
  color: #a1a1aa;
  cursor: default;
}

.shopping-pagination-nav:disabled img {
  opacity: .4;
}

.shopping-pagination-ellipsis {
  color: #a1a1aa;
  padding-inline: 3px;
  font-size: 10px;
}

/* Brands and SEO copy below the product pagination */
.shopping-page .shopping-after-list {
  margin-top: 104px;
  padding-bottom: 18px;
}

.shopping-page .shopping-brands h2 {
  margin: 0;
  color: var(--color-heading);
  font-size: 28px;
  font-weight: 800;
  line-height: 40px;
  text-align: right;
}

.shopping-page .shopping-brand-swiper {
  width: 100%;
  margin-top: 42px;
  overflow: hidden;
}

.shopping-page .shopping-brand-swiper .swiper-wrapper {
  align-items: center;
}

.shopping-page .shopping-brand-swiper .swiper-slide {
  width: calc((100% - (2.25 * 16px)) / 3.25);
  height: auto;
}

@media (min-width: 576px) {
  .shopping-page .shopping-brand-swiper .swiper-slide {
    width: calc((100% - (3.5 * 16px)) / 4.5);
  }
}

@media (min-width: 992px) {
  .shopping-page .shopping-brand-swiper .swiper-slide {
    width: calc((100% - (6 * 16px)) / 7);
  }
}

.shopping-page .shopping-brand {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  color: #202124;
  text-align: center;
}

.shopping-page .shopping-brand__mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  white-space: nowrap;
}

.shopping-page .shopping-brand__logo {
  width: 100%;
  height: 58px;
  object-fit: contain;
}

.shopping-page .shopping-brand__mark--text {
  display: -webkit-box;
  width: 100%;
  max-height: 58px;
  overflow: hidden;
  font-size: 20px;
  letter-spacing: 0;
  line-height: 29px;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shopping-page .shopping-brand__mark small {
  margin-top: 5px;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1;
}

.shopping-page .shopping-brand__mark--round {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -2px;
}

.shopping-page .shopping-brand__mark--thin {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -2px;
}

.shopping-page .shopping-brand__mark--script {
  font-family: Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  font-style: italic;
}

.shopping-page .shopping-brand__mark--prime {
  align-items: flex-start;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -1px;
}

.shopping-page .shopping-brand__mark--elegant {
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 400;
}

.shopping-page .shopping-brand__mark--serif {
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 500;
}

.shopping-page .shopping-brand__mark--wide {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 2px;
}

.shopping-page .shopping-brand__mark--syn {
  color: #c3a300;
  font-size: 22px;
}

.shopping-page .shopping-brand__mark--syn small {
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0;
}

.shopping-page .shopping-brand__mark--sun {
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 400;
}

.shopping-page .shopping-brand__mark--fulica {
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0;
}

.shopping-page .shopping-brand--blue { color: #2f5ea8; }
.shopping-page .shopping-brand--cyan { color: #11aebb; }
.shopping-page .shopping-brand--indigo { color: #344f96; }
.shopping-page .shopping-brand--gold { color: #a1773c; }
.shopping-page .shopping-brand--orange { color: #ed741b; }
.shopping-page .shopping-brand--aqua { color: #31c0c7; }
.shopping-page .shopping-brand--yellow { color: #c4a400; }
.shopping-page .shopping-brand--charcoal { color: #242426; }

.shopping-page .shopping-description {
  margin-top: 58px;
  color: var(--color-text-secondary);
  text-align: center;
}

.shopping-page .shopping-description__copy {
  position: relative;
  max-height: 140px;
  overflow: hidden;
  text-align: right;
}

.shopping-page .shopping-description__copy::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 58px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--color-bg));
  content: '';
  pointer-events: none;
}

.shopping-page .shopping-description__copy p {
  margin: 0;
  font-size: 14px;
  line-height: 2.25;
}

.shopping-page .shopping-description__toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  border: 0;
  background: transparent;
  color: var(--color-green-500);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.shopping-page .shopping-description__toggle i {
  font-size: 18px;
  transition: transform .2s ease;
}

.shopping-page .shopping-description.is-expanded .shopping-description__copy {
  max-height: none;
}

.shopping-page .shopping-description.is-expanded .shopping-description__copy::after {
  display: none;
}

.shopping-page .shopping-description.is-expanded .shopping-description__toggle i {
  transform: rotate(180deg);
}

@media (max-width: 991.98px) {
  .shopping-page .shopping-after-list {
    margin-top: 64px;
    padding-bottom: 8px;
  }

  .shopping-page .shopping-brands h2 {
    font-size: 22px;
    line-height: 32px;
  }

  .shopping-page .shopping-brand-swiper {
    margin-top: 28px;
  }

  .shopping-page .shopping-brand {
    min-height: 42px;
  }

  .shopping-page .shopping-brand__logo {
    height: 42px;
  }

  .shopping-page .shopping-brand__mark {
    font-size: 18px;
  }

  .shopping-page .shopping-brand__mark--text {
    max-height: 42px;
    font-size: 15px;
    line-height: 21px;
  }

  .shopping-page .shopping-brand__mark--round,
  .shopping-page .shopping-brand__mark--thin,
  .shopping-page .shopping-brand__mark--sun {
    font-size: 19px;
  }

  .shopping-page .shopping-brand__mark--script,
  .shopping-page .shopping-brand__mark--elegant,
  .shopping-page .shopping-brand__mark--serif {
    font-size: 22px;
  }

  .shopping-page .shopping-brand__mark--wide,
  .shopping-page .shopping-brand__mark--fulica {
    font-size: 16px;
  }

  .shopping-page .shopping-brand__mark--prime {
    font-size: 16px;
  }

  .shopping-page .shopping-brand__mark small {
    font-size: 5px;
    letter-spacing: 1px;
  }

  .shopping-page .shopping-description {
    margin-top: 40px;
  }

  .shopping-page .shopping-description__copy {
    max-height: 190px;
  }

  .shopping-page .shopping-description__copy p {
    font-size: 12px;
    line-height: 2.15;
  }

  .shopping-page .shopping-description__toggle {
    margin-top: 14px;
    font-size: 13px;
  }
}

.mobile-filter-button {
  display: none;
}

.shopping-mobile-filters {
  --bs-offcanvas-width: min(390px, 100vw);
  border: 0;
  border-radius: 0 24px 24px 0;
}

.mobile-filter-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  border-bottom: 1px solid var(--color-border-soft);
}

.mobile-filter-header h2 {
  flex: 1;
  margin: 0;
  color: var(--color-heading);
  font-size: 18px;
  line-height: 28px;
}

.mobile-filter-header button {
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font: inherit;
  font-size: 12px;
}

.mobile-filter-header button:first-child {
  font-size: 16px;
}

.mobile-filter-content {
  padding: 0 18px;
  overflow: auto;
}

.mobile-filter-content .shop-filters {
  display: block;
  position: static;
  border: 0;
  border-radius: 0;
}

.mobile-filter-content .filter-head {
  display: none;
}

.mobile-filter-footer {
  padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-border-soft);
}

.mobile-filter-footer .btn-primary-dark {
  width: 100%;
}

@media (max-width: 1199.98px) and (min-width: 992px) {
  .shopping-layout {
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 22px;
  }

  .product-grid {
    gap: 18px 12px;
  }

  .shopping-product-card .product-title {
    font-size: 13px;
  }
}

@media (max-width: 991.98px) {
  .shopping-layout {
    display: block;
  }

  .shop-filters {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row dense;
  }

  .shopping-product-card .product-title {
    min-height: 38px;
  }

  .shopping-product-card .product-meta {
    gap: 5px;
  }

  .shopping-product-card .product-price-old {
    flex-wrap: wrap;
  }

  .shopping-product-card .price-strike {
    font-size: 9px;
  }

  .shopping-product-card .product-rating {
    display: none;
  }

  .shopping-product-card .product-media {
    --product-discount-chip-h: 26px;
  }

  .shopping-product-card .product-media-discount-chips {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 56px);
  }

  .shopping-product-card .product-discount-badge {
    top: 8px;
    left: 8px;
    padding: 0 8px;
    font-size: 10px;
  }

  .shopping-product-card .product-special-tier-badge__text {
    font-size: 9px;
  }

  .shopping-pagination {
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 30px;
    max-width: 100%;
  }

  .shopping-pagination button,
  .shopping-pagination a {
    flex-shrink: 0;
    min-width: 36px;
    height: 36px;
    padding: 6px 10px;
    font-size: 14px;
    gap: 4px;
  }

  .shopping-pagination .shopping-pagination-nav {
    min-width: 0;
    padding-inline: 8px;
  }

  .shopping-pagination .shopping-pagination-nav img {
    width: 16px;
    height: 16px;
  }

  .shopping-pagination-ellipsis {
    flex-shrink: 0;
    padding-inline: 2px;
  }

  .shopping-footer {
    display: none;
  }

  .mobile-filter-content .shop-filters {
    display: block;
  }

  .mobile-filter-content .filter-section {
    padding-inline: 0;
  }

  .mobile-filter-content .filter-section--switch {
    padding-bottom: 22px;
  }
}

@media (min-width: 992px) {
  .shopping-mobile-filters {
    display: none !important;
  }
}

/* Figma ShoppingPage-mobile — 376px composition */
.mobile-page-search,
.mobile-active-filters,
.shopping-promo-card {
  display: none;
}

.shopping-count::before {
  content: '(';
}

.shopping-count::after {
  content: ')';
}

@media (max-width: 991.98px) {

  .shopping-page,
  .shopping-page .site-header,
  .shopping-page .mobile-page-search,
  .shopping-page .shopping-hero,
  .shopping-page .shopping-content {
    background: var(--color-bg-elevated);
  }

  .mobile-page-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    background: #fafafc;
  }

  .mobile-page-search-form img {
    width: 18px;
    height: 18px;
    opacity: .7;
  }

  .mobile-page-search-form input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text);
    /* iOS Safari: inputs <16px trigger viewport zoom on focus */
    font-size: 16px;
    line-height: 22px;
    text-align: right;
  }

  .mobile-page-search-form input::placeholder {
    color: var(--color-placeholder);
  }

  .shopping-breadcrumb {
    display: none;
  }

  .shopping-eyebrow,
  .shopping-heading p {
    display: none;
  }

  .shopping-content {
    padding-bottom: 88px;
  }

  .shopping-result-label {
    color: var(--color-muted);
    font-size: 12px;
    line-height: 20px;
    white-space: nowrap;
  }

  .shopping-product-card .product-card {
    gap: 10px;
    padding: 4px;
    border-color: #e1e2e5;
    border-radius: 14px;
    background: #fff;
  }

  .shopping-product-card .product-media {
    border-radius: 11px 11px 7px 7px;
    background: #fff4f6;
  }

  .shopping-product-card .product-body {
    padding: 0 7px 7px;
    gap: 10px;
  }

  .shopping-product-card .product-title {
    color: #18181b;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
  }

  .shopping-product-card .product-meta {
    padding-top: 9px;
  }

  .shopping-product-card .product-price-now strong {
    font-size: 12px;
    line-height: 18px;
  }

  .shopping-product-card .product-price-now span {
    font-size: 8px;
  }

  .shopping-product-card .btn-cart {
    width: 32px;
    height: 32px;
    padding: 8px;
  }

  .shopping-promo-card {
    grid-column: 1 / -1;
    position: relative;
    display: flex;
    min-height: 142px;
    overflow: hidden;
    border: 1px solid rgba(230, 117, 137, .24);
    border-radius: 14px;
    background: linear-gradient(110deg, #f9ced7 0%, #fff0f2 100%);
  }

  .shopping-promo-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 62%;
    padding: 14px 16px;
  }

  .shopping-promo-copy>span {
    color: #9b4054;
    font-size: 10px;
    line-height: 16px;
  }

  .shopping-promo-copy h2 {
    margin: 2px 0 3px;
    color: #531d29;
    font-size: 18px;
    font-weight: 800;
    line-height: 28px;
  }

  .shopping-promo-copy p {
    margin: 0 0 8px;
    color: #75414d;
    font-size: 10px;
    line-height: 16px;
  }

  .shopping-promo-copy a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #531d29;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
  }

  .shopping-promo-copy a i {
    font-size: 13px;
  }

  .shopping-promo-card>img {
    position: absolute;
    inset: 0 0 0 auto;
    width: 56%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    opacity: .62;
  }

  .shopping-promo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(249, 206, 215, .95) 0%, rgba(249, 206, 215, .48) 54%, transparent 100%);
    pointer-events: none;
  }
}

/* Final mobile alignment with ShoppingPage-mobile / 376px Figma frame */
@media (max-width: 991.98px) {
  .mobile-page-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
    background: #fff;
  }

  .mobile-page-search-form {
    flex: 1 1 auto;
    min-width: 0;
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(34, 35, 40, .06);
  }

  .mobile-page-search>.mobile-filter-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #34353a;
    box-shadow: 0 8px 22px rgba(34, 35, 40, .08);
  }

  .mobile-page-search>.mobile-filter-button img {
    width: 20px;
    height: 20px;
  }

  .mobile-page-search>.mobile-filter-button .filter-count {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    right: -4px;
    bottom: -3px;
    width: 19px;
    height: 19px;
    border: 2px solid #fff;
    background: #ef4650;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
  }

  .shopping-hero {
    padding-top: 0;
    padding-bottom: 0;
  }

  .shopping-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 0;
    padding-bottom: 8px;
  }

  .shopping-heading>div:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }

  .shopping-heading h1 {
    overflow: hidden;
    margin: 0;
    color: #202126;
    font-size: 16px;
    font-weight: 700;
    line-height: 28px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .shopping-count {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
    margin-inline-start: 0;
    color: #77777f;
    font-size: 11px;
    font-weight: 500;
  }

  .shopping-count strong {
    color: #77777f;
    font-size: 11px;
    font-weight: 500;
    line-height: 18px;
  }

  .shopping-toolbar {
    display: none;
  }

  .mobile-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 10px 0 12px;
    overflow: hidden;
    direction: rtl;
  }

  .active-filter-chip,
  .active-filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    height: 32px;
    padding: 0 13px;
    border: 1px solid #e1e5e0;
    border-radius: 999px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
  }

  .active-filter-chip {
    background: #eef5eb;
    color: #3b3d42;
  }

  .active-filter-chip i {
    color: #2f3034;
    font-size: 12px;
  }

  .active-filter-clear {
    order: -1;
    min-width: 91px;
    justify-content: center;
    border-color: #f0f0f1;
    background: #fff;
    color: #3d3e43;
    font-size: 13px;
  }

  .active-filter-clear i {
    color: #43444a;
    font-size: 17px;
  }

  .active-filter-clear img {
    width: 16px;
    height: 16px;
  }

  .shopping-layout {
    padding-top: 0;
  }

  .product-grid {
    gap: 12px 12px;
    padding-top: 12px;
  }

  .shopping-product-card .product-price {
    min-height: 40px;
  }

  .shopping-product-card .product-card {
    padding: 4px;
    border-color: #dce3e7;
    border-radius: 18px;
  }

  .shopping-product-card .product-media {
    border-radius: 14px 14px 9px 9px;
    background: #f2f8ef;
  }

  .shopping-product-card .product-card--discounted .product-media::before {
    display: none;
  }

  .shopping-product-card .product-media-deco,
  .shopping-product-card .product-media-discount-chips,
  .shopping-product-card .product-discount-badge,
  .shopping-product-card .product-special-tier-badge {
    display: none;
  }

  .shopping-product-card .product-discount-timer {
    top: 4px;
    bottom: auto;
    left: 2px;
    right: 2px;
    width: 95%;
    max-width: none;
    height: max-content;
    padding: 0 8px;
    border-radius: 24px;
    justify-content: center;
    gap: 8px;
    border: 0;
    margin: auto;
    box-shadow: none;
    transform: none;
  }

  .shopping-product-card .product-discount-timer.is-active {
    transform: none;
  }

  .shopping-product-card .product-discount-timer__track {
    justify-content: center;
    flex: 1;
  }

  .shopping-product-card .product-media>img {
    width: 100%;
    height: 100%;
  }
}

/* Desktop alignment with the ShoppingPage desktop frame */
@media (min-width: 992px) {
  .shopping-page .site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
  }

  .shopping-hero {
    padding-block: 16px;
  }

  .shopping-heading {
    align-items: center;
    justify-content: flex-start;
    margin-top: 24px;
    gap: 16px;
    width: calc(100% - 308px);
    margin-inline-start: 308px;
  }

  .shopping-eyebrow,
  .shopping-heading p {
    display: none;
  }

  .shopping-heading h1 {
    margin: 0;
    font-size: 24px;
    line-height: 44px;
  }

  .shopping-count {
    align-items: center;
    gap: 6px;
    color: var(--color-muted);
    font-size: 16px;
    line-height: 26px;
  }

  .shopping-count strong {
    color: var(--color-muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 28px;
  }

  .shopping-toolbar {
    display: none;
  }

  .mobile-active-filters {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    /* This element is outside .shopping-content, so calculate against the
       centered site container instead of the full viewport. */
    width: calc(min(100vw, var(--container-max) + 80px) - 388px);
    min-height: 48px;
    margin-inline-start: calc(
      (100vw - min(100vw, var(--container-max) + 80px)) / 2 + 348px
    );
    padding: 0 0 16px;
    overflow: visible;
    direction: rtl;
  }

  .active-filter-chip,
  .active-filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    height: 32px;
    padding: 0 16px;
    border: 1px solid #e1e5e0;
    border-radius: 999px;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 22px;
    white-space: nowrap;
  }

  .active-filter-chip {
    background: #eef5eb;
    color: #3b3d42;
  }

  .active-filter-chip i {
    color: #2f3034;
    font-size: 13px;
  }

  .active-filter-clear {
    min-width: 112px;
    border-color: #f0f0f1;
    background: #fff;
    color: #3d3e43;
  }

  .active-filter-clear img {
    width: 18px;
    height: 18px;
  }

  .shopping-layout {
    padding-top: 0;
  }

  .shop-filters {
    margin-top: -122px;
    top: 140px;
  }

  .shopping-product-card .product-media {
    --product-discount-chip-h: 28px;
    background: #f2f8ef;
  }

  .shopping-product-card .product-card--discounted .product-media {
    background: var(--color-product-bg);
  }

  .shopping-product-card .product-media-discount-chips {
    top: 14px;
    left: 14px;
    max-width: calc(100% - 88px);
  }

  .shopping-product-card .product-discount-badge {
    top: 14px;
    left: 14px;
    padding: 4px 12px 0;
    font-size: 14px;
    background: var(--color-discount);
    box-shadow: -6px 6px 16px rgba(246, 51, 154, 0.29);
    border-radius: var(--radius-lg);
  }

  .shopping-product-card .product-special-tier-badge__text {
    font-size: 12px;
  }

  .shopping-product-card .product-discount-timer {
    top: 14px;
    right: 14px;
    left: auto;
    bottom: auto;
    width: max-content;
    max-width: calc(100% - 88px);
    margin: 0;
    padding: 0 10px 0 8px;
    font-size: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(246, 51, 154, 0.2);
    box-shadow: -6px 6px 16px rgba(246, 51, 154, 0.14);
  }

  .shopping-product-card .product-discount-timer__icon {
    font-size: 13px;
  }

  .shopping-product-card .product-card--discounted .product-media:has(.product-discount-timer.is-active) .product-media-discount-chips {
    max-width: calc(50% - 18px);
  }

  .shopping-product-card .product-price-old-rows {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
    row-gap: 2px;
  }

  .shopping-product-card .product-price-old-rows .product-price-old--mid {
    margin-top: 0;
  }

  .shopping-product-card .product-price-old-rows .product-price-old {
    width: auto;
    flex: 0 1 auto;
    max-width: 100%;
  }

  /* When the active-filter row disappears, cards move up without pulling
     the sidebar underneath the sticky header. */
  .shopping-page.has-no-active-filters .shopping-layout > .shop-filters {
    margin-top: -74px;
  }
}

/* Final filter-panel sizing and controls — Figma Filter frame */
.shopping-page .shop-filters {
  background: #fff;
}

.shopping-page .filter-section {
  padding: 15px 20px 17px;
}

.shopping-page .filter-section-toggle {
  font-size: 12px;
  line-height: 20px;
}

.shopping-page .filter-section-body {
  padding-top: 12px;
}

.shopping-page .filter-check {
  min-height: 35px;
  gap: 9px;
  font-size: 12px;
  line-height: 20px;
}

.shopping-page .checkmark {
  width: 17px;
  height: 17px;
  flex-basis: 17px;
}

.shopping-page .filter-search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  margin-bottom: 7px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fafafc;
  color: var(--color-muted);
}

.shopping-page .filter-search i {
  flex: 0 0 auto;
  color: var(--color-muted);
  font-size: 14px;
}

.shopping-page .filter-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: 11px;
  line-height: 18px;
  text-align: right;
}

@media (max-width: 991.98px) {
  .shopping-page .filter-search input {
    font-size: 16px;
    line-height: 22px;
  }
}

.shopping-page .filter-search input::placeholder {
  color: #9ca3af;
}

.shopping-page .filter-search-empty {
  margin: 8px 0 0;
  padding: 8px 4px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.shopping-page .filter-section--switches {
  padding-top: 13px;
  padding-bottom: 14px;
}

.shopping-page .filter-section--switches .filter-switch-row+.filter-switch-row {
  margin-top: 5px;
}

.shopping-page .filter-switch-row strong {
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
}

.shopping-page .filter-switch-row i {
  width: 31px;
  height: 18px;
  flex-basis: 31px;
}

.shopping-page .filter-switch-row i::after {
  top: 2px;
  right: 3px;
  width: 14px;
  height: 14px;
}

.shopping-page .filter-switch-row input:checked+i::after {
  transform: translateX(-13px);
}

.shopping-page .price-range {
  margin: 16px 8px 19px;
}

.shopping-page .price-range span {
  inset: 0 10% 0 10%;
}

.shopping-page .price-range i {
  border: 0;
  background: var(--color-green-500);
}

.shopping-page .price-range i:first-of-type {
  right: 0;
}

.shopping-page .price-range i:last-of-type {
  left: 0;
}

.shopping-page .price-range-input {
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
  outline: 0;
}

.shopping-page .price-range-input--min,
.shopping-page .price-range-input--max {
  direction: rtl;
}

.shopping-page .price-range-input--min {
  z-index: 3;
}

.shopping-page .price-range-input--max {
  z-index: 2;
}

.shopping-page .price-range-input::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

.shopping-page .price-range-input::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
  cursor: grab;
}

.shopping-page .price-range-input:active::-webkit-slider-thumb {
  cursor: grabbing;
}

.shopping-page .price-range-input::-moz-range-track {
  height: 4px;
  background: transparent;
}

.shopping-page .price-range-input::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  pointer-events: auto;
  cursor: grab;
}

.shopping-page .price-range-handle {
  z-index: 1;
  pointer-events: none;
}

.shopping-page .price-range-handle--min {
  right: 0;
}

.shopping-page .price-range-handle--max {
  left: 0;
}

.shopping-page .price-inputs label {
  height: 29px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fafafc;
  font-size: 9px;
}

/* Product-list promotional banners */
.shopping-page .shopping-product-banner {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 40, 20, .08);
  border-radius: 16px;
  background: #fff;
  line-height: 0;
}

.shopping-page .shopping-product-banner--wide {
  grid-column: span 2;
  aspect-ratio: 686 / 549;
}

.shopping-page .shopping-product-banner--full {
  grid-column: 1 / -1;
  aspect-ratio: 1040 / 246;
}

.shopping-page .shopping-product-banner--portrait {
  grid-column: span 1;
  aspect-ratio: 331 / 525;
}

/* Admin product list banners; the grid is RTL, so column 1 is the right one. */
.shopping-page .product-grid {
  grid-auto-flow: row dense;
}

.shopping-page .shopping-product-banner--span-1 {
  grid-column: span 1;
  aspect-ratio: 331 / 525;
}

.shopping-page .shopping-product-banner--span-2 {
  grid-column: span 2;
  aspect-ratio: 686 / 549;
}

.shopping-page .shopping-product-banner--span-3 {
  grid-column: 1 / -1;
  aspect-ratio: 1040 / 246;
}

.shopping-page .shopping-product-banner--span-1.shopping-product-banner--align-right { grid-column: 1; }
.shopping-page .shopping-product-banner--span-1.shopping-product-banner--align-center { grid-column: 2; }
.shopping-page .shopping-product-banner--span-1.shopping-product-banner--align-left { grid-column: 3; }
.shopping-page .shopping-product-banner--span-2.shopping-product-banner--align-right { grid-column: 1 / span 2; }
.shopping-page .shopping-product-banner--span-2.shopping-product-banner--align-left { grid-column: 2 / span 2; }

.shopping-page .shopping-product-banner--mobile {
  grid-column: 1 / -1;
}

.shopping-page .shopping-product-banner--mobile img {
  height: auto;
}

.shopping-page .shopping-product-banner a,
.shopping-page .shopping-product-banner img {
  display: block;
  width: 100%;
  height: 100%;
}

.shopping-page .shopping-product-banner img {
  object-fit: cover;
}

@media (max-width: 991.98px) {
  .shopping-page .shopping-product-banner {
    border-radius: 14px;
  }

  .shopping-page .shopping-product-banner--wide {
    grid-column: 1 / -1;
    aspect-ratio: 686 / 549;
  }

  .shopping-page .shopping-product-banner--portrait {
    grid-column: 1 / -1;
    aspect-ratio: 331 / 525;
  }
}

/* Bootstrap accordion filter sections */
.shopping-page .filter-accordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-bg: transparent;
  --bs-accordion-btn-bg: transparent;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-btn-focus-box-shadow: none;
}

/* Desktop select and mobile bottom sort sheet */
.shopping-page .shopping-desktop-sort {
  position: relative;
  display: none;
  align-items: center;
  gap: 9px;
  margin-inline-start: auto;
  color: #3f4046;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  white-space: nowrap;
}

.shopping-page .shopping-desktop-sort img {
  width: 20px;
  height: 20px;
}

.shopping-page .shopping-desktop-sort select {
  min-width: 0;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
}

.shopping-page .shopping-mobile-sort {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3f4046;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  white-space: nowrap;
  cursor: pointer;
}

.shopping-page .shopping-mobile-sort img {
  width: 16px;
  height: 16px;
}

.shopping-page .shopping-sort-sheet {
  --bs-offcanvas-height: max-content;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: #fff;
}

.shopping-page .shopping-sort-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--color-border-soft);
}

.shopping-page .shopping-sort-sheet-header h2 {
  margin: 0;
  color: var(--color-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.shopping-page .shopping-sort-sheet-header button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-bg-elevated);
  color: var(--color-muted);
}

.shopping-page .shopping-sort-options {
  padding: 8px 20px 24px;
}

.shopping-page .shopping-sort-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 20px;
  cursor: pointer;
}

.shopping-page .shopping-sort-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shopping-page .shopping-sort-option i {
  display: none;
  color: var(--color-green-500);
  font-size: 18px;
}

.shopping-page .shopping-sort-option input:checked~i {
  display: inline-flex;
}

@media (min-width: 992px) {
  .shopping-page .shopping-desktop-sort {
    display: inline-flex;
  }
}

@media (max-width: 991.98px) {
  .shopping-page .shopping-toolbar {
    display: none;
  }

  .shopping-page .shopping-heading .shopping-mobile-sort {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1 1 auto;
    color: #3f4046;
    font-size: 12px;
    font-weight: 400;
    line-height: 22px;
  }

  /* Keep the product count directly beside the title on mobile. */
  .shopping-page .shopping-heading > div:first-child {
    flex: 0 1 auto;
  }

  .shopping-page .shopping-heading .shopping-count {
    flex: 0 0 auto;
  }

  .shopping-page .shopping-heading .shopping-mobile-sort img {
    width: 16px;
    height: 16px;
  }

  .shopping-page .shopping-toolbar .shopping-mobile-sort {
    display: none;
  }
}

@media (min-width: 992px) {
  .shopping-page .shopping-sort-sheet {
    display: none !important;
  }
}

.shopping-page .filter-accordion .accordion-item {
  padding: 0;
  border: 0;
  border-bottom: 1px solid #f0f0f1;
  border-radius: 0;
  background: transparent;
}

.shopping-page .filter-accordion .accordion-item:last-child {
  border-bottom: 0;
}

.shopping-page .filter-accordion .accordion-header {
  margin: 0;
}

.shopping-page .filter-accordion .accordion-button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-heading);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  box-shadow: none;
}

.shopping-page .filter-accordion .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--color-heading);
  box-shadow: none;
}

.shopping-page .filter-accordion .accordion-button::after {
  width: 12px;
  height: 12px;
  margin-inline-start: auto;
  background-size: 12px;
}

.shopping-page .filter-accordion .accordion-collapse {
  border: 0;
}

.shopping-page .filter-accordion .filter-section-body {
  display: block;
  max-height: 300px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 20px 17px;
}

@media (max-width: 991.98px) {
  .shopping-page .mobile-filter-content .filter-accordion .accordion-button {
    padding-inline: 0;
  }

  .shopping-page .mobile-filter-content .filter-accordion .filter-section-body {
    max-height: 260px;
    overflow-y: auto;
    padding-inline: 0;
  }
}

/* On mobile the main site menu scrolls away; the product controls stay visible. */
@media (max-width: 991.98px) {
  .shopping-page {
    --mobile-sticky-search-height: 62px;
    --mobile-sticky-heading-height: 39px;
  }

  .shopping-page .site-header {
    position: relative;
    top: auto;
    z-index: auto;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .shopping-page .mobile-page-search {
    position: sticky;
    top: 0;
    z-index: 1025;
    background: var(--color-bg-elevated);
  }

  .shopping-page .shopping-hero {
    position: sticky;
    top: var(--mobile-sticky-search-height);
    z-index: 1024;
    background: var(--color-bg-elevated);
  }

  .shopping-page .mobile-active-filters {
    position: sticky;
    top: calc(var(--mobile-sticky-search-height) + var(--mobile-sticky-heading-height));
    z-index: 1023;
    background: var(--color-bg-elevated);
  }

  .shopping-page .mobile-page-search,
  .shopping-page .mobile-page-search-form,
  .shopping-page .mobile-page-search-form img,
  .shopping-page .mobile-page-search > .mobile-filter-button,
  .shopping-page .mobile-page-search > .mobile-filter-button img,
  .shopping-page .mobile-page-search > .mobile-filter-button .filter-count,
  .shopping-page .shopping-hero,
  .shopping-page .shopping-heading,
  .shopping-page .shopping-heading h1,
  .shopping-page .shopping-count,
  .shopping-page .shopping-count strong,
  .shopping-page .shopping-heading .shopping-mobile-sort,
  .shopping-page .shopping-heading .shopping-mobile-sort img,
  .shopping-page .mobile-active-filters,
  .shopping-page .active-filter-chip,
  .shopping-page .active-filter-clear {
    transition:
      padding 240ms ease,
      gap 240ms ease,
      width 240ms ease,
      height 240ms ease,
      top 240ms ease,
      flex-basis 240ms ease,
      font-size 240ms ease,
      line-height 240ms ease,
      box-shadow 240ms ease,
      opacity 240ms ease;
  }

  .shopping-page.mobile-controls-stuck {
    --mobile-sticky-search-height: 50px;
    --mobile-sticky-heading-height: 34px;
  }

  .shopping-page.mobile-controls-stuck .mobile-page-search {
    padding-top: 6px;
    padding-bottom: 6px;
    box-shadow: 0 5px 14px rgba(34, 35, 40, .09);
  }

  .shopping-page.mobile-controls-stuck .mobile-page-search-form {
    height: 38px;
    padding-inline: 12px;
  }

  .shopping-page.mobile-controls-stuck .mobile-page-search-form img {
    width: 16px;
    height: 16px;
  }

  .shopping-page.mobile-controls-stuck .mobile-page-search > .mobile-filter-button {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .shopping-page.mobile-controls-stuck .mobile-page-search > .mobile-filter-button img {
    width: 18px;
    height: 18px;
  }

  .shopping-page.mobile-controls-stuck .mobile-page-search > .mobile-filter-button .filter-count {
    right: -3px;
    bottom: -2px;
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  .shopping-page.mobile-controls-stuck .shopping-hero {
    padding-top: 0;
    box-shadow: 0 4px 12px rgba(34, 35, 40, .05);
  }

  .shopping-page.mobile-controls-stuck .shopping-heading {
    gap: 4px;
  }

  .shopping-page.mobile-controls-stuck .shopping-heading h1 {
    font-size: 14px;
    line-height: 20px;
  }

  .shopping-page.mobile-controls-stuck .shopping-count,
  .shopping-page.mobile-controls-stuck .shopping-count strong {
    font-size: 10px;
    line-height: 17px;
  }

  .shopping-page.mobile-controls-stuck .shopping-heading .shopping-mobile-sort {
    gap: 6px;
    font-size: 12px;
    line-height: 20px;
  }

  .shopping-page.mobile-controls-stuck .shopping-heading .shopping-mobile-sort img {
    width: 14px;
    height: 14px;
  }

  .shopping-page.mobile-controls-stuck .mobile-active-filters {
    height: 46px;
    padding-top: 7px;
    padding-bottom: 9px;
    box-shadow: 0 8px 18px rgba(34, 35, 40, .1);
  }

  .shopping-page.mobile-controls-stuck .active-filter-chip,
  .shopping-page.mobile-controls-stuck .active-filter-clear {
    height: 30px;
    padding-inline: 11px;
    font-size: 11px;
  }
}

/* Final mobile sticky override: the controls move as one layer. */
.shopping-mobile-sticky {
  display: contents;
}

@media (max-width: 991.98px) {
  .shopping-page .shopping-mobile-sticky {
    display: block;
    position: sticky;
    top: 0;
    z-index: 1025;
    background: var(--color-bg-elevated);
    box-shadow: none;
    transition: box-shadow 240ms ease;
  }

  .shopping-page .shopping-mobile-sticky > .mobile-page-search,
  .shopping-page .shopping-mobile-sticky > .shopping-hero,
  .shopping-page .shopping-mobile-sticky > .mobile-active-filters {
    position: static;
    top: auto;
    z-index: auto;
    background: transparent;
    box-shadow: none;
  }

  .shopping-page.mobile-controls-stuck .shopping-mobile-sticky {
    box-shadow: 0 8px 20px rgba(34, 35, 40, .12);
  }
}

/* Active filter chips can be browsed horizontally at every breakpoint. */
.shopping-page .mobile-active-filters {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.shopping-page .mobile-active-filters::-webkit-scrollbar {
  display: none;
}

.shopping-page .mobile-active-filters[hidden],
.shopping-page .active-filter-chip[hidden],
.shopping-page .active-filter-clear[hidden] {
  display: none !important;
}

/* Desktop layout guard: keep the sidebar and product grid inside the container. */
@media (min-width: 992px) {
  .shopping-page .site-container {
    /* Match the homepage container so browser zoom keeps the same frame. */
    max-width: calc(var(--container-max) + 80px);
    padding-inline: 40px;
  }

  /* The active-filter row already includes the container offset in its width. */
  .shopping-page .mobile-active-filters {
    padding-inline: 0;
  }

  .shopping-page .shopping-content,
  .shopping-page .shopping-layout,
  .shopping-page .product-grid {
    min-width: 0;
  }

  .shopping-page .shopping-layout {
    display: grid;
    grid-template-columns: 276px minmax(0, 1fr);
    gap: 32px;
    width: 100%;
  }

  .shopping-page .shopping-layout > .shop-filters {
    width: 276px;
    min-width: 0;
  }
}

/* Mobile iPhone-style glass surface for the shopping controls. */
@media (max-width: 991.98px) {
  .shopping-page {
    --shopping-glass-surface: rgba(255, 255, 255, .58);
    --shopping-glass-border: rgba(255, 255, 255, .82);
    --shopping-glass-shadow: 0 12px 28px rgba(55, 57, 66, .09);
    --shopping-glass-inset: inset 0 1px 0 rgba(255, 255, 255, .92), inset 0 -1px 0 rgba(208, 210, 218, .2);
  }

  .shopping-page .site-header,
  .shopping-page .shopping-mobile-sticky {
    background: rgba(248, 248, 250, .68);
    border-color: rgba(255, 255, 255, .72);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
  }

  .shopping-page .shopping-mobile-sticky {
    box-shadow: var(--shopping-glass-inset), 0 8px 24px rgba(55, 57, 66, .045);
  }

  .shopping-page .mobile-page-search {
    background: transparent;
  }

  .shopping-page .mobile-page-search-form,
  .shopping-page .mobile-page-search > .mobile-filter-button,
  .shopping-page .mobile-routine-toggle,
  .shopping-page .mobile-menu-btn,
  .shopping-page .active-filter-chip,
  .shopping-page .active-filter-clear {
    border: 1px solid var(--shopping-glass-border);
    background: var(--shopping-glass-surface);
    box-shadow: var(--shopping-glass-inset), var(--shopping-glass-shadow);
    backdrop-filter: blur(22px) saturate(155%);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
  }

  .shopping-page .mobile-page-search-form {
    background: linear-gradient(180deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .44));
  }

  .shopping-page .mobile-page-search > .mobile-filter-button {
    border-radius: 50%;
  }

  .shopping-page .mobile-routine-toggle {
    background: linear-gradient(105deg, rgba(214, 239, 204, .62), rgba(255, 255, 255, .58) 66%);
  }

  .shopping-page .active-filter-chip {
    background: rgba(225, 240, 220, .54);
  }

  .shopping-page .active-filter-clear {
    background: rgba(255, 255, 255, .54);
  }

  .shopping-page .mobile-menu-btn {
    background: rgba(255, 255, 255, .46);
  }

  .shopping-page .mobile-page-search-form:focus-within,
  .shopping-page .mobile-page-search > .mobile-filter-button:focus-visible,
  .shopping-page .mobile-routine-toggle:focus-visible,
  .shopping-page .mobile-menu-btn:focus-visible {
    border-color: rgba(255, 255, 255, .98);
    box-shadow: var(--shopping-glass-inset), 0 0 0 3px rgba(116, 170, 98, .14), var(--shopping-glass-shadow);
  }

  .shopping-page.mobile-controls-stuck .shopping-mobile-sticky {
    background: rgba(248, 248, 250, .78);
    box-shadow: var(--shopping-glass-inset), 0 10px 24px rgba(55, 57, 66, .11);
  }

  /* Mobile filter — full viewport (open as full screen, not a short bottom sheet) */
  .shopping-page .shopping-mobile-filters {
    --bs-offcanvas-height: 100%;
    --shopping-filter-sheet-bg: rgba(247, 247, 249, .96);
    position: fixed;
    z-index: 1055;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: var(--shopping-filter-sheet-bg);
    box-shadow: none;
    overflow: hidden;
  }

  .shopping-page .shopping-mobile-filters.is-full {
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .shopping-page .shopping-mobile-filters.is-full::before {
    display: none;
  }

  .shopping-page .shopping-mobile-filters::before {
    display: none;
  }

  body:has(#mobileFilters.show) .offcanvas-backdrop {
    z-index: 1050;
    background: rgba(32, 33, 38, .42);
    -webkit-backdrop-filter: blur(7px) saturate(115%);
    backdrop-filter: blur(7px) saturate(115%);
  }

  .shopping-page .shopping-mobile-filters .mobile-filter-header {
    position: relative;
    flex: 0 0 66px;
    justify-content: center;
    padding: 24px 16px 8px;
    border-bottom: 1px solid rgba(218, 218, 223, .7);
    background: rgba(255, 255, 255, .5);
  }

  .shopping-page .shopping-mobile-filters .mobile-filter-header h2 {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
  }

  .shopping-page .shopping-mobile-filters .mobile-filter-header button:first-child {
    position: absolute;
    inset-inline-start: 16px;
    top: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(214, 215, 221, .9);
    border-radius: 50%;
    background: rgba(255, 255, 255, .48);
    color: #3b3c43;
  }

  .shopping-page .shopping-mobile-filters .mobile-filter-header button:last-child {
    position: absolute;
    inset-inline-end: 18px;
    top: 32px;
    color: #34353a;
    font-size: 12px;
  }

  .shopping-page .shopping-mobile-filters .mobile-filter-content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 18px calc(112px + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .shopping-page .shopping-mobile-filters .mobile-filter-content::-webkit-scrollbar {
    display: none;
  }

  .shopping-page .shopping-mobile-filters .mobile-filter-content .shop-filters {
    background: transparent;
  }

  .shopping-page .shopping-mobile-filters .filter-section--switches {
    padding: 16px 0 13px;
    border-bottom-color: rgba(218, 218, 223, .7);
  }

  .shopping-page .shopping-mobile-filters .filter-accordion {
    padding-top: 13px;
  }

  .shopping-page .shopping-mobile-filters .filter-accordion .accordion-item {
    margin-bottom: 8px;
    border: 0;
    overflow: visible;
  }

  .shopping-page .shopping-mobile-filters .filter-accordion .accordion-button {
    min-height: 50px;
    padding: 0 18px;
    border: 1px solid rgba(228, 228, 233, .82);
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    color: #3b3c43;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 3px 10px rgba(40, 41, 48, .035);
    overflow: hidden;
  }

  .shopping-page .shopping-mobile-filters .filter-accordion .accordion-item:last-child {
    margin-bottom: 18px;
  }

  .shopping-page .shopping-mobile-filters .filter-accordion .accordion-item:last-child .accordion-button.collapsed {
    border-radius: 999px;
  }

  .shopping-page .shopping-mobile-filters .filter-accordion .filter-section-body {
    padding: 12px 12px 14px;
  }

  .shopping-page .shopping-mobile-filters .mobile-filter-footer {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 10px;
    direction: rtl;
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 3;
    flex: 0 0 auto;
    margin: 0;
    padding: 8px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    border-top: 0;
    background: linear-gradient(180deg, rgba(247, 247, 249, 0), rgba(247, 247, 249, .16) 38%, rgba(247, 247, 249, .3));
    pointer-events: none;
  }

  .shopping-page .shopping-mobile-filters .mobile-filter-footer .btn-filter-cancel,
  .shopping-page .shopping-mobile-filters .mobile-filter-footer .btn-primary-dark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    overflow: hidden;
    height: 50px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    color: #24252b;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .94),
      inset 0 -1px 0 rgba(156, 159, 170, .2),
      0 10px 24px rgba(40, 41, 48, .1),
      0 2px 6px rgba(40, 41, 48, .05);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    opacity: 1;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
    pointer-events: auto;
  }

  .shopping-page .shopping-mobile-filters .mobile-filter-footer .btn-filter-cancel,
  .shopping-page .shopping-mobile-filters .mobile-filter-footer .btn-filter-apply {
    min-width: 0;
    width: 100%;
  }

  .shopping-page .shopping-mobile-filters .mobile-filter-footer.has-pending-filters {
    grid-template-columns: 38fr 62fr;
  }

  .shopping-page .shopping-mobile-filters .mobile-filter-footer:not(.has-pending-filters) .btn-filter-cancel {
    grid-column: 1;
    width: 100%;
  }

  .shopping-page .shopping-mobile-filters .mobile-filter-footer .btn-filter-cancel {
    grid-column: 1;
    border-color: rgba(255, 255, 255, .58);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .25)),
      rgba(214, 216, 223, .18);
    color: #202126;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .94),
      inset 0 -1px 0 rgba(0, 0, 0, .1),
      0 8px 20px rgba(0, 0, 0, .12),
      0 2px 5px rgba(0, 0, 0, .06);
  }

  .shopping-page .shopping-mobile-filters .mobile-filter-footer .btn-filter-apply {
    grid-column: 2;
  }

  .shopping-page .shopping-mobile-filters .mobile-filter-footer button[hidden] {
    display: none !important;
  }

  .shopping-page .shopping-mobile-filters .mobile-filter-footer .btn-filter-cancel::before,
  .shopping-page .shopping-mobile-filters .mobile-filter-footer .btn-primary-dark::before {
    content: '';
    position: absolute;
    inset: 1px;
    z-index: 0;
    border-radius: inherit;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .2) 42%, rgba(255, 255, 255, .06) 100%),
      radial-gradient(ellipse at 50% -45%, rgba(255, 255, 255, .9), transparent 65%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
    pointer-events: none;
  }

  .shopping-page .shopping-mobile-filters .mobile-filter-footer .btn-filter-cancel::after,
  .shopping-page .shopping-mobile-filters .mobile-filter-footer .btn-primary-dark::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 12%;
    right: 12%;
    height: 1px;
    z-index: 1;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    opacity: .75;
    pointer-events: none;
  }

  .shopping-page .shopping-mobile-filters .mobile-filter-footer .btn-filter-cancel > span,
  .shopping-page .shopping-mobile-filters .mobile-filter-footer .btn-primary-dark > span {
    position: relative;
    z-index: 2;
  }

  .shopping-page .shopping-mobile-filters .mobile-filter-footer .btn-filter-cancel:hover,
  .shopping-page .shopping-mobile-filters .mobile-filter-footer .btn-filter-cancel:focus-visible {
    opacity: 1;
    background: rgba(255, 255, 255, .3);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 1),
      inset 0 -1px 0 rgba(193, 195, 202, .2),
      0 10px 26px rgba(40, 41, 48, .11),
      0 2px 6px rgba(40, 41, 48, .05);
  }

  /* Apply uses the same solid black button material as the rest of the site. */
  .shopping-page .shopping-mobile-filters .mobile-filter-footer .btn-filter-apply {
    border: 0;
    background: var(--color-black);
    color: #fff;
    text-shadow: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .shopping-page .shopping-mobile-filters .mobile-filter-footer .btn-filter-apply::before,
  .shopping-page .shopping-mobile-filters .mobile-filter-footer .btn-filter-apply::after {
    display: none;
  }

  .shopping-page .shopping-mobile-filters .mobile-filter-footer .btn-filter-apply:hover,
  .shopping-page .shopping-mobile-filters .mobile-filter-footer .btn-filter-apply:focus-visible {
    background: var(--color-black);
    box-shadow: none;
    opacity: .9;
  }

  /* Mobile sort sheet uses the same iPhone-style top frame as filters. */
  .shopping-page .shopping-sort-sheet {
    --bs-offcanvas-height: max-content;
    position: fixed;
    width: 100%;
    height: max-content;
    max-height: calc(100dvh - 72px);
    border: 0;
    border-radius: 28px 28px 0 0;
    background: rgba(247, 247, 249, .96);
    box-shadow: 0 -12px 36px rgba(23, 24, 29, .16);
    overflow: hidden;
  }

  .shopping-page .shopping-sort-sheet::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #dedee3;
    transform: translateX(-50%);
    pointer-events: none;
  }

  .shopping-page .shopping-sort-sheet-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 66px;
    min-height: 66px;
    padding: 25px 18px 9px;
    border-bottom: 1px solid rgba(218, 218, 223, .7);
    background: rgba(255, 255, 255, .5);
  }

  .shopping-page .shopping-sort-sheet-header h2 {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 20px;
  }

  .shopping-page .shopping-sort-sheet-header .shopping-sort-close {
    position: absolute;
    inset-inline-start: 16px;
    top: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(214, 215, 221, .9);
    border-radius: 50%;
    background: rgba(255, 255, 255, .48);
    color: #3b3c43;
  }

  .shopping-page .shopping-sort-sheet-header .shopping-sort-reset {
    position: absolute;
    inset-inline-end: 18px;
    top: 32px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #34353a;
    font: inherit;
    font-size: 12px;
    line-height: 20px;
  }

  .shopping-page .shopping-sort-sheet-header .shopping-sort-reset i {
    font-size: 14px;
  }

  .shopping-page .shopping-sort-options {
    padding: 8px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  }
}
