/* ==========================================================================
   AUREL — Shop / Collection listing (mockup-matched)
   ========================================================================== */

.page-shop {
  background: var(--color-background);
}

.page-shop #main-content {
  padding-top: 0;
}

/* ── Hero — collection title ── */
.shop-hero {
  position: relative;
  padding: clamp(2rem, 4.5vw, 3.25rem) 0 clamp(1.5rem, 3vw, 2.15rem);
  background:
    radial-gradient(ellipse 70% 80% at 50% -20%, rgba(168, 139, 74, 0.1) 0%, transparent 68%),
    var(--color-background);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  overflow: hidden;
}

.shop-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 920px;
  margin: 0 auto;
}

.shop-hero__eyebrow {
  margin: 0;
  font-family: var(--font-accent);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
}

.shop-hero__title {
  margin: 0;
  padding-left: 0.22em;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  line-height: 1.05;
  text-transform: uppercase;
  background: linear-gradient(180deg, #f0e2bc 0%, #d4b876 28%, #a88b4a 62%, #8a7038 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 18px rgba(168, 139, 74, 0.28));
}

.shop-hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(300px, 78%);
  height: 1px;
  margin-top: 0.1rem;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(168, 139, 74, 0.15) 18%,
    rgba(168, 139, 74, 0.45) 50%,
    rgba(168, 139, 74, 0.15) 82%,
    transparent 100%
  );
}

.shop-hero__divider-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 12px rgba(168, 139, 74, 0.55);
}

.shop-hero__count {
  display: none;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0.15rem 0 0;
  font-family: var(--font-accent);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.shop-hero__count-num {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.shop-hero__count-label {
  color: #fff;
}

/* ── Layout ── */
.shop-page.section {
  padding-block: clamp(1.75rem, 3vw, 2.5rem) 4rem;
  background: var(--color-background);
}

.shop-page .shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.page-shop .shop-main {
  min-width: 0;
}

/* ── Sidebar — sticky left on desktop / tablet ── */
@media (min-width: 769px) {
  .page-shop .shop-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    align-self: start;
    z-index: 90;
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - var(--header-height) - 2rem);
    padding: 0;
    overflow: hidden;
    content-visibility: visible;
    contain-intrinsic-size: none;
    background: linear-gradient(165deg, rgba(20, 27, 45, 0.98) 0%, rgba(14, 20, 34, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transform: none;
  }

  .page-shop .shop-sidebar__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.35rem 1.15rem 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 139, 74, 0.62) rgba(255, 255, 255, 0.08);
    -webkit-overflow-scrolling: touch;
  }

  .page-shop .shop-sidebar__body::-webkit-scrollbar {
    width: 8px;
  }

  .page-shop .shop-sidebar__body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
  }

  .page-shop .shop-sidebar__body::-webkit-scrollbar-thumb {
    background: rgba(168, 139, 74, 0.62);
    border-radius: 999px;
    border: 2px solid rgba(14, 20, 34, 0.98);
  }

  .page-shop .shop-sidebar__body::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 139, 74, 0.82);
  }

  .page-shop .shop-toolbar__filter-btn {
    display: none !important;
  }

  .page-shop .shop-sidebar__backdrop {
    display: none !important;
  }
}

.shop-sidebar__head {
  display: none;
}

.shop-filter + .shop-filter {
  margin-top: 1.75rem;
}

.shop-filter__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-accent);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.shop-filter__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.shop-filter__title-row .shop-filter__title {
  margin: 0;
}

.shop-filter__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.shop-filter__list--collections .shop-filter__link {
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
}

.shop-filter__link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0;
  font-size: 0.8125rem;
  color: #fff;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.shop-filter__link:hover {
  color: #fff;
}

.shop-filter__list--collections .shop-filter__link:hover {
  background: rgba(255, 255, 255, 0.04);
}

.shop-filter__link.is-active {
  color: var(--color-primary);
  font-weight: 500;
}

.shop-filter__list--collections .shop-filter__link.is-active {
  padding: 0.45rem 0.75rem;
  background: rgba(168, 139, 74, 0.12);
  border: 1px solid rgba(168, 139, 74, 0.28);
  color: var(--color-primary);
}

.shop-filter__chevron {
  font-size: 0.875rem;
  line-height: 1;
  opacity: 0.55;
}

.shop-filter__count {
  margin-left: auto;
  padding-left: 0.5rem;
  font-size: 0.75rem;
  color: #fff;
  flex-shrink: 0;
}

.shop-filter__link.is-active .shop-filter__count {
  color: rgba(168, 139, 74, 0.75);
}

.shop-filter__group + .shop-filter__group {
  margin-top: 1.25rem;
}

.shop-filter__label {
  margin: 0 0 0.55rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.shop-filter__colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-color-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.shop-color-swatch__fill {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--swatch, #888);
  border: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.42),
    inset 0 1px 1px rgba(255, 255, 255, 0.18),
    inset 0 -1px 2px rgba(0, 0, 0, 0.22);
}

.shop-color-swatch:hover {
  transform: scale(1.06);
  border-color: rgba(255, 255, 255, 0.46);
}

.shop-color-swatch.is-active {
  border-color: var(--color-primary);
  box-shadow:
    0 0 0 2px rgba(168, 139, 74, 0.22),
    inset 0 0 0 1px rgba(168, 139, 74, 0.35);
}

.shop-color-swatch.is-active .shop-color-swatch__fill {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 0 0 3px rgba(168, 139, 74, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 -1px 2px rgba(0, 0, 0, 0.22);
}

.shop-filter__checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.shop-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: #fff;
  cursor: pointer;
}

.shop-filter__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.3rem 0;
  font-size: 0.8125rem;
  color: #fff;
  transition: color 0.2s ease;
}

.shop-filter__option:hover,
.shop-filter__option.is-active {
  color: var(--color-primary);
}

.shop-filter__option.is-active .shop-filter__count {
  color: rgba(168, 139, 74, 0.75);
}

/* Price range — dual draggable sliders */
.shop-price-range {
  padding: 0.15rem 0 0.35rem;
}

.shop-price-range__track {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.shop-price-range__fill {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8a7340 0%, var(--color-primary) 50%, #c4a862 100%);
  pointer-events: none;
  z-index: 1;
}

.shop-price-range__track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 0;
}

.shop-price-range__input {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  cursor: pointer;
}

.shop-price-range__input--min {
  z-index: 3;
}

.shop-price-range__input--max {
  z-index: 2;
}

.shop-price-range__input.is-active {
  z-index: 4;
}

.shop-price-range__input::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: 3px;
  background: transparent;
  border: none;
}

.shop-price-range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  border: 2px solid #0a0a0a;
  background: radial-gradient(circle at 35% 35%, #e8d5a3, var(--color-primary) 55%, #8a7340);
  box-shadow:
    0 0 0 1px rgba(168, 139, 74, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.45);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.shop-price-range__input:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.08);
  box-shadow:
    0 0 0 2px rgba(168, 139, 74, 0.65),
    0 3px 12px rgba(0, 0, 0, 0.55);
}

.shop-price-range__input::-moz-range-track {
  height: 3px;
  background: transparent;
  border: none;
}

.shop-price-range__input::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #0a0a0a;
  background: radial-gradient(circle at 35% 35%, #e8d5a3, var(--color-primary) 55%, #8a7340);
  box-shadow:
    0 0 0 1px rgba(168, 139, 74, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.45);
  cursor: grab;
}

.shop-price-range__input:active::-moz-range-thumb {
  cursor: grabbing;
  transform: scale(1.08);
}

.shop-price-range__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
}

.shop-price-range__labels span:first-child {
  color: #fff;
}

/* Rating filter rows */
.shop-filter__ratings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.shop-rating-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0;
  font-size: 0.8125rem;
  opacity: 1;
  color: #fff;
  transition: color 0.2s ease;
}

.shop-rating-filter:hover {
  color: #fff;
}

.shop-rating-filter.is-active {
  color: #fff;
}

.shop-rating-filter.is-active .shop-filter__count {
  color: rgba(168, 139, 74, 0.85);
}

.shop-rating-filter__suffix {
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  opacity: 1;
  color: #fff;
}

.shop-rating-filter.is-active .shop-rating-filter__suffix {
  opacity: 1;
  color: #fff;
}

.rating-stars--filter .rating-stars__icon.is-filled {
  fill: var(--color-primary);
  stroke: #e8d5a3;
}

.shop-rating-filter.is-active .rating-stars__icon.is-filled {
  fill: #e8d5a3;
  stroke: #fff;
}

.shop-clear-all {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-accent);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.shop-clear-all--inline {
  width: auto;
  margin-top: 0;
  margin-left: auto;
  padding: 0.35rem 0.65rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
  flex-shrink: 0;
}

.shop-clear-all:hover {
  border-color: rgba(168, 139, 74, 0.45);
  color: var(--color-primary);
}

/* ── Toolbar ── */
.page-shop .shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.page-shop .shop-toolbar__actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 0.65rem;
}

.page-shop .shop-toolbar__filter-btn {
  display: none;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  height: 34px;
  padding: 0 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-accent);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.page-shop .shop-toolbar__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #fff;
}

.page-shop .shop-toolbar__btn-label {
  line-height: 1;
}

.page-shop .shop-toolbar__filter-btn:hover {
  border-color: rgba(168, 139, 74, 0.4);
  background: rgba(168, 139, 74, 0.08);
}

.page-shop .shop-toolbar__count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0;
  font-family: var(--font-accent);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.page-shop .shop-toolbar__count-num {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.page-shop .shop-toolbar__count-label {
  color: #fff;
}

.page-shop .shop-toolbar__sort {
  display: flex;
  align-items: center;
  margin: 0;
}

.page-shop .shop-sort {
  position: relative;
  min-width: 0;
}

.page-shop .shop-sort__label {
  display: none;
}

.page-shop .shop-sort__lead {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.page-shop .shop-sort__icon {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #fff;
}

.page-shop .shop-sort__chevron-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-shop .shop-sort__native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

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

@keyframes shopSortIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-shop .shop-sort__option {
  display: block;
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: left;
  color: #fff;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.page-shop .shop-sort__option:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.page-shop .shop-sort__option.is-selected {
  background: rgba(168, 139, 74, 0.14);
  color: #e8d5a3;
  font-weight: 500;
}

/* ── Sort / toolbar — desktop ── */
@media (min-width: 769px) {
  .page-shop .shop-toolbar__actions {
    margin-left: auto;
    gap: 0.75rem;
  }

  .page-shop .shop-sort {
    min-width: 196px;
  }

  .page-shop .shop-sort__icon {
    display: inline-flex;
    color: #fff;
  }

  .page-shop .shop-sort__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    min-width: 196px;
    height: 40px;
    padding: 0 0.7rem 0 0.9rem;
    border: 1px solid rgba(168, 139, 74, 0.28);
    border-radius: 5px;
    background: var(--color-background, #0A0F1A);
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    transition:
      border-color 0.2s ease,
      background 0.2s ease,
      box-shadow 0.2s ease,
      color 0.2s ease;
  }

  .page-shop .shop-sort__value {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page-shop .shop-sort__chevron {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(168, 139, 74, 0.12);
    color: #fff;
    opacity: 1;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  }

  .page-shop .shop-sort__trigger:hover,
  .page-shop .shop-sort.is-open .shop-sort__trigger {
    border-color: var(--color-primary);
    background: var(--color-surface, #141B2D);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(168, 139, 74, 0.12);
  }

  .page-shop .shop-sort.is-open .shop-sort__trigger {
    border-color: var(--color-primary);
  }

  .page-shop .shop-sort.is-open .shop-sort__chevron {
    transform: rotate(180deg);
    background: rgba(168, 139, 74, 0.22);
    color: #fff;
  }

  .page-shop .shop-sort__menu {
    position: absolute;
    z-index: 50;
    top: calc(100% + 0.45rem);
    right: 0;
    left: auto;
    width: 100%;
    min-width: 236px;
    max-height: min(340px, calc(100vh - 12rem));
    margin: 0;
    padding: 0.4rem;
    list-style: none;
    overflow-y: auto;
    border: 1px solid rgba(168, 139, 74, 0.28);
    border-radius: 8px;
    background: var(--color-surface, #141B2D);
    box-shadow:
      0 16px 40px rgba(10, 15, 26, 0.55),
      inset 0 1px 0 rgba(168, 139, 74, 0.08);
    animation: shopSortIn 0.18s ease;
  }

  .page-shop .shop-sort__option {
    padding: 0.65rem 0.8rem;
    border-radius: 5px;
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #fff;
  }

  .page-shop .shop-sort__option:hover {
    background: rgba(168, 139, 74, 0.14);
    color: #fff;
  }

  .page-shop .shop-sort__option.is-selected {
    background: rgba(168, 139, 74, 0.2);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 2px 0 0 var(--color-primary);
  }
}

.page-shop .shop-sort-backdrop {
  display: none;
}

/* ── Sort / toolbar — mobile ── */
@media (max-width: 768px) {
  .page-shop .shop-toolbar {
    position: sticky;
    top: var(--header-height);
    z-index: 100;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1rem;
    padding: 0;
    overflow: hidden;
    background: rgba(10, 15, 26, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  }

  .page-shop .shop-toolbar.is-sort-open {
    border-bottom-color: rgba(168, 139, 74, 0.22);
  }

  .page-shop .shop-toolbar__count {
    display: none !important;
  }

  .shop-hero__count {
    display: inline-flex;
  }

  .shop-hero {
    padding: 1.55rem 0 1.25rem;
  }

  .shop-hero__title {
    font-size: clamp(1.55rem, 7.5vw, 2.15rem);
    letter-spacing: 0.16em;
    padding-left: 0.16em;
  }

  .shop-hero__eyebrow {
    font-size: 0.5625rem;
    letter-spacing: 0.24em;
  }

  .shop-hero__divider {
    width: min(220px, 68%);
  }

  .page-shop .shop-toolbar__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    width: 100%;
    margin: 0;
    gap: 1px;
    min-height: 46px;
    background: rgba(255, 255, 255, 0.1);
  }

  .page-shop .shop-toolbar__filter-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    width: 100%;
    height: 46px;
    min-height: 46px;
    margin: 0;
    padding: 0 1rem;
    border: none;
    border-radius: 0;
    background: rgba(14, 20, 34, 0.98);
    font-family: var(--font-accent);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
  }

  .page-shop .shop-toolbar__sort {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 46px;
    min-height: 46px;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(14, 20, 34, 0.98);
  }

  .page-shop .shop-sort__label {
    display: none;
  }

  .page-shop .shop-sort {
    display: flex;
    align-items: stretch;
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 100%;
  }

  .page-shop .shop-sort__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    height: 46px;
    min-height: 46px;
    min-width: 0;
    padding: 0 1rem;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: var(--font-accent);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
  }

  .page-shop .shop-sort__lead {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex: 1;
  }

  .page-shop .shop-sort__icon {
    display: inline-flex;
  }

  .page-shop .shop-sort__value {
    color: #fff;
    font-weight: 600;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page-shop .shop-sort__chevron {
    width: 14px;
    height: 14px;
    border-radius: 0;
    background: transparent;
    opacity: 0.75;
    transition: transform 0.2s ease;
  }

  .page-shop .shop-sort.is-open .shop-sort__trigger {
    background: rgba(168, 139, 74, 0.1);
    box-shadow: none;
  }

  .page-shop .shop-sort.is-open .shop-sort__chevron {
    transform: rotate(180deg);
    background: transparent;
  }

  .page-shop .shop-sort__menu {
    position: fixed;
    z-index: 110;
    top: var(--shop-sort-menu-top, calc(var(--header-height) + 46px));
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    max-height: min(56vh, 340px);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    border: none;
    border-top: 1px solid rgba(168, 139, 74, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    background: linear-gradient(180deg, rgba(16, 22, 38, 0.99) 0%, rgba(10, 15, 26, 0.99) 100%);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    animation: shopSortIn 0.2s ease;
    -webkit-overflow-scrolling: touch;
  }

  .page-shop .shop-sort__option {
    padding: 0.72rem 1rem;
    border-radius: 0;
    font-size: 0.8125rem;
  }

  .page-shop .shop-sort-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 105;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .page-shop .shop-sort-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }

  body.is-shop-sort-open {
    overflow: hidden;
  }
}

/* ── Grid ── */
.page-shop .shop-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.6vw, 1.45rem);
}

/* ── Infinite scroll ── */
.page-shop .shop-infinite {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-shop .shop-infinite__sentinel {
  width: 100%;
  height: 1px;
  margin-top: 0.5rem;
  pointer-events: none;
}

.page-shop .shop-infinite__status {
  margin-top: 2rem;
}

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

.page-shop .shop-infinite__end {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0.25rem 0;
}

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

.page-shop .shop-infinite__end-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
}

.page-shop .shop-infinite__end-text {
  font-family: var(--font-accent);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.page-shop .shop-infinite__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.page-shop .shop-infinite__error-text {
  margin: 0;
  font-size: 0.8125rem;
  color: #fff;
}

.page-shop .shop-infinite__retry {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(168, 139, 74, 0.38);
  border-radius: 4px;
  background: rgba(168, 139, 74, 0.08);
  font-family: var(--font-accent);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.page-shop .shop-infinite__retry:hover {
  background: rgba(168, 139, 74, 0.14);
  border-color: rgba(168, 139, 74, 0.5);
}

/* Product card skeletons */
.page-shop .product-card-skeleton--catalog {
  display: flex;
  flex-direction: column;
  height: 100%;
  pointer-events: none;
}

.page-shop .product-card-skeleton__image {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.04) 8%,
    rgba(255, 255, 255, 0.09) 18%,
    rgba(255, 255, 255, 0.04) 33%
  );
  background-size: 200% 100%;
  animation: shopCardShimmer 1.35s ease-in-out infinite;
}

.page-shop .product-card-skeleton__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding-top: 0.65rem;
}

.page-shop .product-card-skeleton__line {
  height: 10px;
  border-radius: 3px;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.04) 8%,
    rgba(255, 255, 255, 0.08) 18%,
    rgba(255, 255, 255, 0.04) 33%
  );
  background-size: 200% 100%;
  animation: shopCardShimmer 1.35s ease-in-out infinite;
}

.page-shop .product-card-skeleton__line--title {
  width: 78%;
  max-width: 180px;
  height: 12px;
}

.page-shop .product-card-skeleton__line--price {
  width: 42%;
  max-width: 90px;
  animation-delay: 0.12s;
}

.page-shop .product-card-skeleton__sizes {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.page-shop .product-card-skeleton__chip {
  width: 28px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.03) 8%,
    rgba(255, 255, 255, 0.07) 18%,
    rgba(255, 255, 255, 0.03) 33%
  );
  background-size: 200% 100%;
  animation: shopCardShimmer 1.35s ease-in-out infinite;
  animation-delay: 0.2s;
}

.page-shop .product-card-skeleton__chip:nth-child(2) {
  animation-delay: 0.28s;
}

.page-shop .product-card-skeleton__chip:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes shopCardShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .page-shop .product-card-skeleton__image,
  .page-shop .product-card-skeleton__line,
  .page-shop .product-card-skeleton__chip {
    animation: none;
    background: rgba(255, 255, 255, 0.05);
  }
}

/* ── Pagination ── */
.page-shop .shop-pagination {
  margin-top: 2.5rem;
  padding-top: 0;
  border: none;
}

.page-shop .shop-pager {
  gap: 0.5rem;
}

.page-shop .shop-pager__btn,
.page-shop .shop-pager__page {
  min-width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8125rem;
  color: #fff;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.page-shop .shop-pager__btn:hover:not(.is-disabled),
.page-shop .shop-pager__page:hover {
  border-color: rgba(168, 139, 74, 0.45);
  color: var(--color-primary);
  background: rgba(168, 139, 74, 0.08);
}

.page-shop .shop-pager__page.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #0a0a0a;
  font-weight: 600;
}

.page-shop .shop-pager__btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* Collection page — centered card copy, tighter rhythm */
.page-shop .product-card--catalog .product-card__body {
  text-align: center;
  align-items: center;
  padding-top: 0.6rem;
  gap: 0.28rem;
}

.page-shop .product-card--catalog .product-card__title {
  min-height: 0;
}

.page-shop .product-card--catalog .product-card__price,
.page-shop .product-card--catalog .product-card__sizes,
.page-shop .product-card--catalog .product-card__rating {
  justify-content: center;
}

.page-shop .product-card--catalog .product-card__sizes-empty {
  text-align: center;
}

/* ── Tablet ── */
@media (max-width: 900px) {
  .page-shop .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .page-shop .shop-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .page-shop .shop-sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: min(78vh, calc(100dvh - var(--header-height) - 1rem));
    padding: 0;
    background: linear-gradient(180deg, rgba(18, 24, 40, 0.99) 0%, rgba(12, 17, 30, 0.99) 100%);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
    transform: translateY(calc(-100% - var(--header-height)));
    transition: transform 0.35s ease;
    overflow: hidden;
    content-visibility: visible;
    contain-intrinsic-size: none;
  }

  .page-shop .shop-sidebar.is-open {
    transform: translateY(0);
  }

  .page-shop .shop-sidebar__head {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0.85rem 1.25rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .page-shop .shop-sidebar__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.85rem 1.25rem 1.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .page-shop .shop-sidebar__head h3 {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary);
  }

  .page-shop .shop-sidebar__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .page-shop .shop-sidebar__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .page-shop .shop-sidebar__backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }

  body.is-shop-filter-open {
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  .page-shop .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .page-shop .shop-grid {
    grid-template-columns: 1fr;
  }
}
