.products-page {
  min-height: 100vh;
}

.products-category-tabs {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: min(100%, 860px);
  margin: 0 auto -8px;
  padding: 6px;
  border: 1px solid rgba(12, 12, 12, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
}

.products-category-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #111;
  text-align: center;
  text-decoration: none;
  padding: 0 6px;
  font-size: clamp(0.56rem, 1vw, 0.66rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}


.products-category-tab:hover {
  transform: translateY(-1px);
}

.products-category-tab.is-active {
  background: #111;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  color: #fff;
}


.products-directory {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 26px);
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) clamp(12px, 2.2vw, 34px) clamp(52px, 6vw, 82px);
}

.products-filters {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  align-self: start;
  margin-top: 58px;
  padding: 18px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
}


.products-filters__header,
.products-results__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.products-filters__header p,
.products-results__eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.products-filters__header button {
  min-height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #111;
  padding: 0 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}


.products-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.products-field span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.products-field input,
.products-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  padding: 0 14px;
  font: inherit;
}


.products-price-field {
  gap: 16px;
}

.products-price-field__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.products-price-field__top strong {
  color: #111;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}


.products-range {
  --range-start: 0%;
  --range-end: 100%;
  position: relative;
  height: 38px;
  display: grid;
  align-items: center;
}

.products-range::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.12) 0 var(--range-start),
      #111 var(--range-start) var(--range-end),
      rgba(0, 0, 0, 0.12) var(--range-end) 100%
    );
  content: "";
  transform: translateY(-50%);
}


.products-range input {
  position: absolute;
  inset-inline: 0;
  width: 100%;
  height: 38px;
  min-height: 0;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

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

.products-range input::-moz-range-track {
  height: 4px;
  background: transparent;
}

.products-range input::-webkit-slider-thumb {
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border: 4px solid #111;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
}

.products-range input::-moz-range-thumb {
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  border: 4px solid #111;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  pointer-events: auto;
}


.products-results {
  min-width: 0;
}

.products-results__bar {
  margin-bottom: clamp(14px, 2vw, 22px);
}

.products-results__bar h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 4.8rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.products-results__bar > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 22px);
}

.product-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.08);
  color: inherit;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}


.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(2, 65, 46, 0.28);
  box-shadow: 0 28px 54px rgba(0, 0, 0, 0.13);
}


.product-card__media {
  height: clamp(260px, 25vw, 390px);
  min-height: 0;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
}


.product-card__media img {
  width: min(72%, 280px);
  max-height: 440px;
  object-fit: contain;
  filter: drop-shadow(0 28px 28px rgba(0, 0, 0, 0.2));
  transition: transform 220ms ease, filter 220ms ease;
}

.product-card--editorial-photo .product-card__media img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  filter: none;
}

.product-card:hover .product-card__media img {
  transform: translateY(-8px) scale(1.02);
}

.product-card--editorial-photo:hover .product-card__media img {
  transform: scale(1.035);
}


.product-card__body {
  display: grid;
  gap: 8px;
  padding: clamp(12px, 1.25vw, 18px);
}

.product-card--custom-font .product-card__body,
.product-card--custom-font .product-card__body h3,
.product-card--custom-font .product-card__body p,
.product-card--custom-font .product-card__pill {
  font-family: var(--selko-product-font-family);
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.product-card__pill {
  max-width: 100%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  padding: 0 9px;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}


.product-card h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 2.05vw, 2.35rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__detail,
.product-card__description {
  margin: 0;
}

.product-card__detail {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__description {
  display: -webkit-box;
  overflow: hidden;
  color: currentColor;
  font-size: 0.82rem;
  line-height: 1.45;
  opacity: 0.78;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 2px;
}

.product-card__price {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.products-empty {
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 28px;
  padding: 42px;
  text-align: center;
}


.products-empty h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.products-empty p {
  margin: 8px 0 0;
  color: var(--muted);
}

.products-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(24px, 4vw, 46px);
}

.products-pagination[hidden] {
  display: none;
}

.products-pagination button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #111;
  padding: 0 14px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}


.products-pagination button.is-active {
  background: #111;
  color: #fff;
}


.products-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

@media (max-width: 1024px) {
  .products-directory {
    grid-template-columns: 1fr;
  }

  .products-category-tabs {
    grid-column: 1;
    margin-bottom: 0;
  }

  .products-filters {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 0;
  }

  .products-filters__header {
    grid-column: 1 / -1;
  }

  .products-field {
    margin-top: 0;
  }

  .products-price-field {
    grid-column: 1 / -1;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .products-category-tabs {
    grid-template-columns: 1fr;
    border-radius: 28px;
  }

  .products-directory {
    padding-inline: 14px;
  }

  .products-filters,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .products-results__bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-card__media {
    height: 330px;
  }

  .product-card__footer {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Collectible mode: the selected (active) category tab stays gold; unselected tabs stay light. */
body[data-page-mode="collectible"] .products-category-tab.is-active {
  background: linear-gradient(135deg, #2e4d3f, #02412e);
  box-shadow: 0 16px 36px rgba(2, 65, 46, 0.2);
  color: #f3efe7;
}

