/*
 * collection.css
 * Collection page: grid, product cards, badges, pagination, sort.
 */

/* ─── COLLECTION HEADER (centered) ───────────────────────────────*/
.collection-grid__header {
  text-align: center;
  margin-bottom: var(--theme-space-sm);
  padding: var(--theme-space-lg) 0 var(--theme-space-sm);
}

.collection-grid__title {
  font-family: var(--theme-font-heading);
  font-size: var(--theme-text-3xl);
  font-weight: var(--theme-weight-bold);
  color: var(--theme-color-text-primary);
  text-transform: uppercase;
  letter-spacing: var(--theme-tracking-widest);
  line-height: var(--theme-leading-tight);
  margin: 0;
}

.collection-grid__description {
  font-family: var(--theme-font-body);
  font-size: var(--theme-text-md);
  color: var(--theme-color-text-secondary);
  line-height: var(--theme-leading-base);
  margin: var(--theme-space-md) auto 0;
  max-width: var(--theme-max-width-narrow);
  text-align: center;
}

/* ─── SUBCATEGORY NAV ────────────────────────────────────────────*/
.collection-grid__subcategories {
  margin-bottom: var(--theme-space-xl);
}

.collection-grid__subcategory-list {
  display: flex;
  justify-content: center;
  gap: var(--theme-space-xl);
  flex-wrap: wrap;
}

.collection-grid__subcategory-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--theme-space-xs);
  text-decoration: none;
  transition: opacity var(--theme-duration-fast) var(--theme-ease-out);
}

.collection-grid__subcategory-card:hover {
  opacity: 0.75;
}

.collection-grid__subcategory-image {
  width: 140px;
  height: 140px;
}

.collection-grid__subcategory-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.collection-grid__subcategory-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--theme-color-gray-300);
  background-color: var(--theme-color-bg-surface);
  border-radius: var(--theme-radius-md);
}

.collection-grid__subcategory-label {
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-sm);
  color: var(--theme-color-text-primary);
  text-align: center;
}

/* ─── SUBCATEGORY ARROWS ─────────────────────────────────────────*/
.collection-grid__subcategories {
  position: relative;
}

.collection-grid__subcategory-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  background: none;
  border: none;
  color: var(--theme-color-text-muted);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: var(--theme-z-raised);
  padding: 0;
  transition: color var(--theme-duration-fast) var(--theme-ease-out);
}

.collection-grid__subcategory-arrow:hover {
  color: var(--theme-color-text-primary);
}

.collection-grid__subcategory-arrow--prev {
  left: calc(var(--theme-space-xs) * -1);
}

.collection-grid__subcategory-arrow--next {
  right: calc(var(--theme-space-xs) * -1);
}

@media (max-width: 1199px) {
  .collection-grid__subcategory-arrow {
    display: flex;
  }

  .collection-grid__subcategory-arrow[hidden] {
    display: none;
  }
}

/* ─── HORIZONTAL FILTER BAR (desktop) ───────────────────────────*/
.collection-bar {
  position: relative;
  margin-bottom: 0;
}

.collection-bar__triggers {
  display: flex;
  gap: var(--theme-space-lg);
  border-bottom: var(--theme-border-width) solid var(--theme-color-border);
}

.collection-bar__trigger {
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-2xs);
  padding: var(--theme-space-xs) 0 var(--theme-space-sm);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font-family: var(--theme-font-ui);
  position: relative;
  white-space: nowrap;
  transition: border-color var(--theme-duration-fast) var(--theme-ease-out);
}

.collection-bar__trigger:hover {
  border-bottom-color: var(--theme-color-gray-300);
}

.collection-bar__trigger--active,
.collection-bar__trigger[aria-expanded="true"] {
  border-bottom-color: var(--theme-color-text-primary);
}

.collection-bar__trigger-label {
  font-size: var(--theme-text-sm);
  color: var(--theme-color-text-secondary);
  text-align: left;
}

.collection-bar__trigger-value {
  font-size: var(--theme-text-md);
  font-weight: var(--theme-weight-bold);
  color: var(--theme-color-text-primary);
  display: flex;
  align-items: center;
  gap: var(--theme-space-2xs);
}

.collection-bar__trigger-chevron {
  display: flex;
  color: var(--theme-color-text-primary);
  transition: transform var(--theme-duration-fast) var(--theme-ease-out);
}

.collection-bar__trigger-chevron svg {
  stroke-width: 2.5;
}

.collection-bar__trigger[aria-expanded="true"] .collection-bar__trigger-chevron {
  transform: rotate(180deg);
}

/* ─── DROPDOWN PANELS ───────────────────────────────────────────*/
.collection-bar__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--theme-color-white);
  border-bottom: var(--theme-border-width) solid var(--theme-color-border);
  z-index: var(--theme-z-dropdown);
  padding: var(--theme-space-sm) 0;
  max-height: 400px;
  overflow-y: auto;
}

.collection-bar__panel[hidden] {
  display: none;
}

.collection-bar__panel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--theme-space-sm);
}

/* ─── CHECKBOX CARDS ────────────────────────────────────────────*/
.collection-bar__card {
  display: flex;
  align-items: center;
  gap: var(--theme-space-sm);
  padding: var(--theme-space-xs) var(--theme-space-sm);
  background: var(--theme-color-bg-surface);
  border: var(--theme-border-width) solid var(--theme-color-border);
  border-radius: var(--theme-radius-full);
  cursor: pointer;
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-sm);
  font-weight: var(--theme-weight-medium);
  transition: border-color var(--theme-duration-fast) var(--theme-ease-out);
  min-width: 140px;
}

.collection-bar__card:hover {
  border-color: var(--theme-color-border-strong);
}

.collection-bar__card--checked {
  border-color: var(--theme-color-text-primary);
}

.collection-bar__card-input {
  width: 18px;
  height: 18px;
  accent-color: var(--theme-color-text-primary);
  flex-shrink: 0;
}

.collection-bar__card-label {
  flex: 1;
}

/* ─── PRICE RANGE (in panel) ────────────────────────────────────*/
.collection-bar__price-range {
  display: flex;
  gap: var(--theme-space-sm);
  align-items: flex-end;
  max-width: 400px;
}

.collection-bar__price-field {
  flex: 1;
  position: relative;
}

.collection-bar__price-label {
  display: block;
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-xs);
  color: var(--theme-color-text-muted);
  margin-bottom: var(--theme-space-3xs);
}

.collection-bar__price-prefix {
  position: absolute;
  bottom: 0;
  left: var(--theme-space-xs);
  height: 40px;
  display: flex;
  align-items: center;
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-sm);
  color: var(--theme-color-text-muted);
  pointer-events: none;
}

.collection-bar__price-input {
  width: 100%;
  padding: var(--theme-space-xs) var(--theme-space-xs) var(--theme-space-xs) var(--theme-space-lg);
  border: var(--theme-border-width) solid var(--theme-color-border);
  border-radius: var(--theme-radius-sm);
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-sm);
  height: 40px;
  box-sizing: border-box;
}

.collection-bar__price-input:focus {
  outline: none;
  border-color: var(--theme-input-border-focus);
  box-shadow: var(--theme-input-shadow-focus);
}

.collection-bar__price-separator {
  color: var(--theme-color-text-muted);
  padding-bottom: var(--theme-space-xs);
}

/* ─── MOBILE TRIGGER ────────────────────────────────────────────*/
.collection-bar__mobile-trigger {
  display: none;
  align-items: center;
  gap: var(--theme-space-2xs);
  padding: var(--theme-space-xs) var(--theme-space-md);
  border: var(--theme-border-width) solid var(--theme-color-text-primary);
  border-radius: var(--theme-radius-sm);
  background: var(--theme-color-white);
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-sm);
  font-weight: var(--theme-weight-semibold);
  cursor: pointer;
  margin-bottom: var(--theme-space-sm);
}

.collection-bar__mobile-badge {
  background: var(--theme-color-text-primary);
  color: var(--theme-color-white);
  border-radius: var(--theme-radius-full);
  min-width: 20px;
  height: 20px;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--theme-weight-bold);
}

/* ─── RESULTS BAR ───────────────────────────────────────────────*/
.collection-bar__results {
  display: flex;
  align-items: center;
  gap: var(--theme-space-sm);
  padding: var(--theme-space-sm) 0 var(--theme-space-2xs);
  margin-bottom: var(--theme-space-sm);
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-sm);
}

.collection-bar__results-clear {
  color: var(--theme-color-text-primary);
  font-weight: var(--theme-weight-semibold);
  text-decoration: underline;
  white-space: nowrap;
}

.collection-bar__results-divider {
  color: var(--theme-color-border);
}

.collection-bar__results-count {
  color: var(--theme-color-text-muted);
  flex: 1;
}

.collection-bar__results-sort {
  display: flex;
  align-items: center;
  gap: var(--theme-space-2xs);
  margin-left: auto;
  white-space: nowrap;
}

.collection-bar__results-sort-label {
  font-size: var(--theme-text-sm);
  color: var(--theme-color-text-muted);
}

.collection-bar__results-sort-select {
  appearance: none;
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-sm);
  font-weight: var(--theme-weight-bold);
  color: var(--theme-color-text-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding-right: var(--theme-space-md);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231c1814' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

/* ─── MOBILE FILTER OVERLAY ─────────────────────────────────────*/
.collection-mobile-filters {
  position: fixed;
  inset: 0;
  background: var(--theme-color-white);
  z-index: var(--theme-z-modal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.collection-mobile-filters[hidden] {
  display: none;
}

.collection-mobile-filters__screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  transition: transform var(--theme-duration-slow) var(--theme-ease-out);
}

.collection-mobile-filters__screen--main {
  transform: translateX(0);
}

.collection-mobile-filters__screen--main.is-drilled {
  transform: translateX(-100%);
}

.collection-mobile-filters__screen--sub {
  transform: translateX(100%);
}

.collection-mobile-filters__screen--sub.is-active {
  transform: translateX(0);
}

.collection-mobile-filters__screen--sub[hidden] {
  display: none;
}

.collection-mobile-filters__header {
  display: flex;
  align-items: center;
  gap: var(--theme-space-xs);
  padding: var(--theme-space-md);
  border-bottom: var(--theme-border-width) solid var(--theme-color-border);
  flex-shrink: 0;
}

.collection-mobile-filters__header-icon {
  display: flex;
  color: var(--theme-color-text-primary);
}

.collection-mobile-filters__title {
  font-family: var(--theme-font-heading);
  font-size: var(--theme-text-lg);
  font-weight: var(--theme-weight-bold);
  margin: 0;
  flex: 1;
}

.collection-mobile-filters__close {
  background: none;
  border: none;
  color: var(--theme-color-text-muted);
  cursor: pointer;
  padding: var(--theme-space-3xs);
  display: flex;
}

.collection-mobile-filters__body {
  flex: 1;
  overflow-y: auto;
}

.collection-mobile-filters__row {
  display: flex;
  align-items: center;
  width: 100%;
  padding: var(--theme-space-md);
  border: none;
  border-bottom: var(--theme-border-width) solid var(--theme-color-border);
  background: none;
  cursor: pointer;
  font-family: var(--theme-font-ui);
  text-align: left;
}

.collection-mobile-filters__row-label {
  font-size: var(--theme-text-md);
  font-weight: var(--theme-weight-semibold);
  color: var(--theme-color-text-primary);
}

.collection-mobile-filters__row-value {
  font-size: var(--theme-text-sm);
  color: var(--theme-color-text-muted);
  margin-left: var(--theme-space-xs);
  flex: 1;
}

.collection-mobile-filters__row-chevron {
  display: flex;
  color: var(--theme-color-text-muted);
}

.collection-mobile-filters__clear {
  display: block;
  padding: var(--theme-space-md);
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-sm);
  font-weight: var(--theme-weight-semibold);
  color: var(--theme-color-text-primary);
  text-decoration: underline;
}

.collection-mobile-filters__footer {
  padding: var(--theme-space-sm) var(--theme-space-md);
  border-top: var(--theme-border-width) solid var(--theme-color-border);
  flex-shrink: 0;
  background: var(--theme-color-white);
}

.collection-mobile-filters__apply {
  display: block;
  width: 100%;
  padding: var(--theme-space-sm) var(--theme-space-md);
  background: var(--theme-color-text-primary);
  color: var(--theme-color-white);
  border: none;
  border-radius: var(--theme-radius-sm);
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-md);
  font-weight: var(--theme-weight-semibold);
  cursor: pointer;
  text-align: center;
}

/* ─── MOBILE SUB-SCREEN ─────────────────────────────────────────*/
.collection-mobile-filters__sub-header {
  display: flex;
  align-items: center;
  padding: var(--theme-space-md);
  border-bottom: var(--theme-border-width) solid var(--theme-color-border);
  flex-shrink: 0;
}

.collection-mobile-filters__back {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  color: var(--theme-color-text-primary);
}

.collection-mobile-filters__sub-title {
  font-family: var(--theme-font-heading);
  font-size: var(--theme-text-lg);
  font-weight: var(--theme-weight-bold);
  margin: 0;
  flex: 1;
  text-align: center;
  padding-right: 20px;
}

.collection-mobile-filters__sub-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--theme-space-md);
}

.collection-mobile-filters__card {
  display: flex;
  align-items: center;
  gap: var(--theme-space-sm);
  padding: var(--theme-space-md);
  background: var(--theme-color-bg-surface);
  border: var(--theme-border-width) solid var(--theme-color-border);
  border-radius: var(--theme-radius-sm);
  cursor: pointer;
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-md);
  margin-bottom: var(--theme-space-sm);
  transition: border-color var(--theme-duration-fast) var(--theme-ease-out);
}

.collection-mobile-filters__card--checked {
  border-color: var(--theme-color-text-primary);
}

.collection-mobile-filters__card-input {
  width: 22px;
  height: 22px;
  accent-color: var(--theme-color-text-primary);
  flex-shrink: 0;
}

.collection-mobile-filters__card-label {
  flex: 1;
  text-align: center;
}

/* ─── MOBILE PRICE RANGE ────────────────────────────────────────*/
.collection-mobile-filters__price-range {
  display: flex;
  gap: var(--theme-space-sm);
  align-items: flex-end;
}

.collection-mobile-filters__price-field {
  flex: 1;
  position: relative;
}

.collection-mobile-filters__price-label {
  display: block;
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-xs);
  color: var(--theme-color-text-muted);
  margin-bottom: var(--theme-space-3xs);
}

.collection-mobile-filters__price-prefix {
  position: absolute;
  bottom: 0;
  left: var(--theme-space-xs);
  height: 44px;
  display: flex;
  align-items: center;
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-sm);
  color: var(--theme-color-text-muted);
  pointer-events: none;
}

.collection-mobile-filters__price-input {
  width: 100%;
  padding: var(--theme-space-xs) var(--theme-space-xs) var(--theme-space-xs) var(--theme-space-lg);
  border: var(--theme-border-width) solid var(--theme-color-border);
  border-radius: var(--theme-radius-sm);
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-md);
  height: 44px;
  box-sizing: border-box;
}

.collection-mobile-filters__price-input:focus {
  outline: none;
  border-color: var(--theme-input-border-focus);
  box-shadow: var(--theme-input-shadow-focus);
}

.collection-mobile-filters__price-separator {
  color: var(--theme-color-text-muted);
  padding-bottom: var(--theme-space-xs);
}

/* ─── FILTER RESPONSIVE ─────────────────────────────────────────*/
@media (max-width: 767px) {
  .collection-bar {
    display: none;
  }

  .collection-bar__mobile-trigger {
    display: flex;
  }
}

@media (min-width: 768px) {
  .collection-mobile-filters__screen {
    display: none;
  }
}

/* ─── PRODUCT GRID ───────────────────────────────────────────────*/
.collection-grid__grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols, 4), 1fr);
  gap: var(--theme-grid-gap);
}

@media (max-width: 1023px) {
  .collection-grid__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Subcategory carousel on tablet/mobile */
@media (max-width: 1199px) {
  .collection-grid__subcategory-list {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: var(--theme-space-lg);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--theme-space-xs);
    scrollbar-width: none;
    cursor: grab;
  }

  .collection-grid__subcategory-list.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
  }

  .collection-grid__subcategory-list.is-dragging {
    user-select: none;
  }

  .collection-grid__subcategory-list::-webkit-scrollbar {
    display: none;
  }

  .collection-grid__subcategory-card {
    flex-shrink: 0;
    scroll-snap-align: center;
  }

  .collection-grid__subcategory-image {
    width: 100px;
    height: 100px;
  }

  .collection-grid__subcategory-label {
    font-size: var(--theme-text-xs);
  }
}

@media (max-width: 767px) {
  .collection-grid__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--theme-grid-gap-sm);
  }
}

/* ─── PRODUCT CARD ───────────────────────────────────────────────*/
.product-card {
  position: relative;
  height: 100%;
  background-color: var(--theme-card-bg);
  border: var(--theme-border-width) solid var(--theme-card-border);
  border-radius: var(--theme-card-radius);
  overflow: hidden;
  box-shadow: var(--theme-card-shadow);
  transition:
    box-shadow var(--theme-duration-base) var(--theme-ease-out),
    transform var(--theme-duration-base) var(--theme-ease-out);
}

.product-card:hover {
  box-shadow: var(--theme-card-shadow-hover);
  transform: translateY(-2px);
}

.product-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ── Card Image ── */
.product-card__media {
  position: relative;
  overflow: hidden;
  background-color: var(--theme-card-bg);
}

.product-card__media--landscape {
  aspect-ratio: 4 / 3;
}

.product-card__media--portrait {
  aspect-ratio: 4 / 5;
}

.product-card__media--square {
  aspect-ratio: 1 / 1;
}

/* Mobile: subtle portrait crop for square cards (more browseable on phones) */
@media (max-width: 767px) {
  .product-card__media--square {
    aspect-ratio: 5 / 6;
  }
}

.product-card__img {
  display: block;
  width: 100%;
  height: 100%;
  /* contain (not cover) so the whole product is always visible — the card
     background is #fff, matching the studio-on-white photos, so the
     letterboxing is invisible. */
  object-fit: contain;
}

.product-card__img--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--theme-duration-base) var(--theme-ease-out);
}

.product-card:hover .product-card__img--hover {
  opacity: 1;
}

.product-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--theme-color-gray-300);
}

/* ── Sale Tag ── */
.product-card__sale-tag {
  position: absolute;
  top: var(--theme-space-2xs);
  right: var(--theme-space-2xs);
  background-color: var(--theme-color-error);
  color: var(--theme-color-white);
  font-family: var(--theme-font-ui);
  font-size: var(--theme-badge-font-size);
  font-weight: var(--theme-badge-font-weight);
  letter-spacing: var(--theme-badge-tracking);
  text-transform: uppercase;
  padding: var(--theme-space-3xs) var(--theme-space-2xs);
  border-radius: var(--theme-badge-radius);
  z-index: var(--theme-z-raised);
}

/* ── Card Info ── */
.product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card__info {
  padding: var(--theme-space-sm);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__options {
  margin-top: auto;
  padding-top: var(--theme-space-2xs);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--theme-space-xs);
}

.product-card__vendor {
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-xs);
  font-weight: var(--theme-weight-semibold);
  color: var(--theme-color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--theme-tracking-widest);
  margin: 0 0 var(--theme-space-3xs);
}

.product-card__title {
  font-family: var(--theme-font-heading);
  font-size: var(--theme-text-md);
  font-weight: var(--theme-weight-semibold);
  color: var(--theme-color-text-primary);
  line-height: var(--theme-leading-snug);
  margin: 0 0 var(--theme-space-2xs);
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--theme-space-2xs);
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-md);
}

.product-card__price-current {
  font-weight: var(--theme-weight-bold);
  color: var(--theme-color-text-primary);
}

.product-card__price-current--sale {
  color: var(--theme-color-error);
}

.product-card__price-compare {
  font-weight: var(--theme-weight-normal);
  color: var(--theme-color-text-muted);
  text-decoration: line-through;
  font-size: var(--theme-text-sm);
}

/* ─── PRODUCT OPTIONS SUMMARY ────────────────────────────────────*/

.product-card__options-item {
  font-family: var(--theme-font-ui);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--theme-color-text-secondary);
  display: flex;
  align-items: center;
  gap: var(--theme-space-2xs);
}

.product-card__options-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.product-card__options-item + .product-card__options-item::before {
  content: '';
}

/* ─── PRODUCT BADGE ──────────────────────────────────────────────*/
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--theme-space-3xs);
  padding: 0 var(--theme-badge-padding-x);
  font-family: var(--theme-font-ui);
  font-weight: var(--theme-badge-font-weight);
  letter-spacing: var(--theme-badge-tracking);
  text-transform: uppercase;
  border-radius: var(--theme-badge-radius);
  white-space: nowrap;
}

.product-badge__icon {
  flex-shrink: 0;
  object-fit: contain;
}

/* ── Badge position zones (product card) ── */
.product-card__badges {
  display: flex;
  flex-direction: column;
  gap: var(--theme-space-3xs);
  z-index: var(--theme-z-raised);
}

.product-card__badges--top-left {
  position: absolute;
  top: var(--theme-space-2xs);
  left: var(--theme-space-2xs);
}

.product-card__badges--top-right {
  position: absolute;
  top: var(--theme-space-2xs);
  right: var(--theme-space-2xs);
  align-items: flex-end;
}

.product-card__badges--bottom-left {
  position: absolute;
  bottom: var(--theme-space-2xs);
  left: var(--theme-space-2xs);
}

.product-card__badges--bottom-right {
  position: absolute;
  bottom: var(--theme-space-2xs);
  right: var(--theme-space-2xs);
  align-items: flex-end;
}

/* ─── PAGINATION ─────────────────────────────────────────────────*/
.collection-grid__pagination {
  margin-top: var(--theme-space-2xl);
  display: flex;
  justify-content: center;
}

.collection-grid__pagination-list {
  display: flex;
  align-items: center;
  gap: var(--theme-space-3xs);
}

.collection-grid__pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--theme-space-3xs);
  min-width: 40px;
  height: 40px;
  padding: 0 var(--theme-space-xs);
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-sm);
  font-weight: var(--theme-weight-medium);
  color: var(--theme-color-text-primary);
  text-decoration: none;
  border: var(--theme-border-width) solid var(--theme-color-border);
  border-radius: var(--theme-radius-md);
  transition:
    background-color var(--theme-duration-fast) var(--theme-ease-out),
    border-color var(--theme-duration-fast) var(--theme-ease-out);
}

.collection-grid__pagination-link:hover {
  background-color: var(--theme-color-gray-50);
  border-color: var(--theme-color-border-strong);
  text-decoration: none;
}

.collection-grid__pagination-link--current {
  background-color: var(--theme-color-brand-gold);
  border-color: var(--theme-color-brand-gold);
  color: var(--theme-color-white);
  pointer-events: none;
}

.collection-grid__pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-sm);
  color: var(--theme-color-text-muted);
}

/* ─── LOAD MORE ──────────────────────────────────────────────────*/
.collection-grid__load-more {
  display: flex;
  justify-content: center;
  margin-top: var(--theme-space-xl);
  margin-bottom: var(--theme-space-md);
}

.collection-grid__load-more-btn {
  min-width: 240px;
}

.collection-grid__load-more-btn[disabled] {
  opacity: 0.5;
  cursor: wait;
}

/* ─── EMPTY STATE ────────────────────────────────────────────────*/
.collection-grid__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--theme-space-3xl) var(--theme-space-md);
  color: var(--theme-color-text-muted);
}

.collection-grid__empty-title {
  font-family: var(--theme-font-heading);
  font-size: var(--theme-text-2xl);
  font-weight: var(--theme-weight-bold);
  color: var(--theme-color-text-primary);
  margin: var(--theme-space-md) 0 var(--theme-space-2xs);
}

.collection-grid__empty-text {
  font-family: var(--theme-font-body);
  font-size: var(--theme-text-md);
  color: var(--theme-color-text-secondary);
  margin: 0 0 var(--theme-space-lg);
  max-width: 400px;
}

/* ─── SHOP BY COLLECTION ─────────────────────────────────────────*/
.shop-by-collection {
  padding: var(--theme-space-xl) 0;
  margin-top: var(--theme-space-xl);
  border-top: var(--theme-border-width) solid var(--theme-color-border);
}

.shop-by-collection__heading {
  font-family: var(--theme-font-heading);
  font-size: var(--theme-text-lg);
  font-weight: var(--theme-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--theme-tracking-widest);
  color: var(--theme-color-text-primary);
  text-align: center;
  margin: 0 0 var(--theme-space-lg);
}

.shop-by-collection__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--theme-space-sm);
}

.shop-by-collection__card {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  border-radius: var(--theme-radius-md);
}

.shop-by-collection__card-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.shop-by-collection__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--theme-duration-slow) var(--theme-ease-out);
}

.shop-by-collection__card:hover .shop-by-collection__img {
  transform: scale(1.05);
}

.shop-by-collection__card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--theme-space-sm);
  font-family: var(--theme-font-heading);
  font-size: var(--theme-text-sm);
  font-weight: var(--theme-weight-bold);
  color: var(--theme-color-white);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  text-transform: uppercase;
  letter-spacing: var(--theme-tracking-wide);
}

@media (max-width: 1023px) {
  .shop-by-collection__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .shop-by-collection__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--theme-space-xs);
  }

  .shop-by-collection__card-title {
    font-size: var(--theme-text-xs);
    padding: var(--theme-space-xs);
  }
}

/* ─── RELATED SEARCHES ───────────────────────────────────────────*/
.related-searches {
  padding: var(--theme-space-xl) 0;
  border-top: var(--theme-border-width) solid var(--theme-color-border);
  text-align: center;
}

.related-searches__heading {
  font-family: var(--theme-font-heading);
  font-size: var(--theme-text-lg);
  font-weight: var(--theme-weight-bold);
  color: var(--theme-color-text-primary);
  margin: 0 0 var(--theme-space-md);
}

.related-searches__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--theme-space-xs);
}

.related-searches__pill {
  display: inline-block;
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-sm);
  font-weight: var(--theme-weight-medium);
  color: var(--theme-color-text-primary);
  text-decoration: none;
  padding: var(--theme-space-2xs) var(--theme-space-md);
  border: var(--theme-border-width) solid var(--theme-color-border);
  border-radius: var(--theme-radius-full);
  transition:
    background-color var(--theme-duration-fast) var(--theme-ease-out),
    border-color var(--theme-duration-fast) var(--theme-ease-out),
    color var(--theme-duration-fast) var(--theme-ease-out);
}

.related-searches__pill:hover {
  background-color: var(--theme-color-brand-gold);
  border-color: var(--theme-color-brand-gold);
  color: var(--theme-color-white);
}

/* ─── SHOP BY RANGE ──────────────────────────────────────────────*/
.shop-by-range {
  padding: var(--theme-space-xl) 0;
  border-top: var(--theme-border-width) solid var(--theme-color-border);
}

.shop-by-range__heading {
  font-family: var(--theme-font-heading);
  font-size: var(--theme-text-lg);
  font-weight: var(--theme-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--theme-tracking-widest);
  color: var(--theme-color-text-primary);
  text-align: center;
  margin: 0 0 var(--theme-space-lg);
}

.shop-by-range__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--theme-space-sm);
}

.shop-by-range__card {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  border-radius: var(--theme-radius-md);
}

.shop-by-range__card-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.shop-by-range__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--theme-duration-slow) var(--theme-ease-out);
}

.shop-by-range__card:hover .shop-by-range__img {
  transform: scale(1.05);
}

.shop-by-range__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--theme-color-bg-surface);
  color: var(--theme-color-gray-300);
}

.shop-by-range__card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--theme-space-sm);
  font-family: var(--theme-font-heading);
  font-size: var(--theme-text-sm);
  font-weight: var(--theme-weight-bold);
  color: var(--theme-color-white);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
  text-transform: uppercase;
  letter-spacing: var(--theme-tracking-wide);
}

@media (max-width: 1023px) {
  .shop-by-range__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .shop-by-range__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--theme-space-xs);
  }

  .shop-by-range__card-title {
    font-size: var(--theme-text-xs);
    padding: var(--theme-space-xs);
  }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────*/
@media (max-width: 479px) {
  .product-card__info {
    padding: var(--theme-space-xs);
  }

  .product-card__title {
    font-size: var(--theme-text-sm);
  }

  .product-badge {
    font-size: 9px;
    height: 18px;
    padding: 0 var(--theme-space-2xs);
    line-height: 18px;
  }
}

/* ─── COLLECTION LANDING (parent category page) ─────────────────*/
.collection-landing {
  padding: var(--theme-space-md) 0 var(--theme-space-2xl);
}

.collection-landing__header {
  text-align: center;
  padding: var(--theme-space-xl) 0 var(--theme-space-lg);
  max-width: var(--theme-max-width-narrow);
  margin: 0 auto;
}

.collection-landing__title {
  font-family: var(--theme-font-heading);
  font-size: var(--theme-text-3xl);
  font-weight: var(--theme-weight-bold);
  color: var(--theme-color-text-primary);
  margin: 0 0 var(--theme-space-sm);
}

.collection-landing__subtitle {
  font-family: var(--theme-font-heading);
  font-size: var(--theme-text-xl);
  font-weight: var(--theme-weight-medium);
  color: var(--theme-color-text-secondary);
  margin: 0 0 var(--theme-space-sm);
}

.collection-landing__description {
  font-family: var(--theme-font-body);
  font-size: var(--theme-text-md);
  color: var(--theme-color-text-secondary);
  line-height: var(--theme-leading-base);
}

.collection-landing__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--theme-space-md);
  max-width: 1000px;
  margin: 0 auto;
}

.collection-landing__card {
  width: calc(20% - var(--theme-space-md));
}

.collection-landing__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--theme-space-2xs);
  text-decoration: none;
}

.collection-landing__card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--theme-radius-md);
  background-color: var(--theme-card-bg);
}

.collection-landing__card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--theme-duration-slow) var(--theme-ease-out);
}

.collection-landing__card:hover .collection-landing__card-img {
  transform: scale(1.04);
}

.collection-landing__card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--theme-color-gray-300);
}

.collection-landing__card-label {
  font-family: var(--theme-font-heading);
  font-size: var(--theme-text-md);
  font-weight: var(--theme-weight-bold);
  color: var(--theme-color-text-primary);
  text-align: center;
}

.collection-landing__card:hover .collection-landing__card-label {
  color: var(--theme-color-brand-gold);
}

.collection-landing__shop-all {
  text-align: center;
  padding-top: var(--theme-space-xl);
}

.collection-landing__shop-all-link {
  font-family: var(--theme-font-heading);
  font-size: var(--theme-text-md);
  font-weight: var(--theme-weight-bold);
  color: var(--theme-color-text-primary);
  text-decoration: underline;
  text-underline-offset: var(--theme-space-3xs);
  text-transform: uppercase;
  letter-spacing: var(--theme-tracking-wide);
  transition: color var(--theme-duration-fast) var(--theme-ease-out);
}

.collection-landing__shop-all-link:hover {
  color: var(--theme-color-brand-gold);
}

@media (max-width: 1023px) {
  .collection-landing__card {
    width: calc(33.333% - var(--theme-space-md));
  }
}

@media (max-width: 767px) {
  .collection-landing__card {
    width: calc(50% - var(--theme-space-sm));
  }

  .collection-landing__grid {
    gap: var(--theme-space-sm);
  }

  .collection-landing__title {
    font-size: var(--theme-text-2xl);
  }

  .collection-landing__card-label {
    font-size: var(--theme-text-sm);
  }
}

/* ─── COLLECTION CARDS (reusable section) ───────────────────── */

.collection-cards {
  padding: var(--theme-space-xl) 0;
}

.collection-cards__heading {
  font-family: var(--theme-font-heading);
  font-size: var(--theme-text-2xl);
  font-weight: var(--theme-weight-bold);
  color: var(--theme-color-text-primary);
  text-transform: uppercase;
  letter-spacing: var(--theme-tracking-wide);
  text-align: center;
  margin-bottom: var(--theme-space-2xs);
}

.collection-cards__subheading {
  font-family: var(--theme-font-body);
  font-size: var(--theme-text-base);
  color: var(--theme-color-text-secondary);
  text-align: center;
  margin-bottom: var(--theme-space-lg);
}

.collection-cards__heading + .collection-cards__grid {
  margin-top: var(--theme-space-lg);
}

.collection-cards__grid {
  display: grid;
  gap: var(--theme-space-md);
  max-width: 1200px;
  margin: 0 auto;
}

.collection-cards__grid--2 { grid-template-columns: repeat(2, 1fr); }
.collection-cards__grid--3 { grid-template-columns: repeat(3, 1fr); }
.collection-cards__grid--4 { grid-template-columns: repeat(4, 1fr); }
.collection-cards__grid--5 { grid-template-columns: repeat(5, 1fr); }

.collection-cards__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--theme-space-xs);
  margin: 0 0 var(--theme-space-lg);
}

.collection-cards__filter {
  appearance: none;
  background: transparent;
  border: var(--theme-border-width) solid var(--theme-color-gray-300);
  border-radius: 999px;
  padding: var(--theme-space-2xs) var(--theme-space-md);
  font: inherit;
  font-size: var(--theme-text-sm);
  color: var(--theme-color-text-primary);
  cursor: pointer;
  transition:
    background-color var(--theme-duration-base) var(--theme-ease-out),
    color var(--theme-duration-base) var(--theme-ease-out),
    border-color var(--theme-duration-base) var(--theme-ease-out);
}

.collection-cards__filter:hover {
  border-color: var(--theme-color-text-primary);
}

.collection-cards__filter.is-active {
  background: var(--theme-color-text-primary);
  border-color: var(--theme-color-text-primary);
  color: var(--theme-color-white);
}

.collection-cards__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--theme-space-2xs);
  text-decoration: none;
}

.collection-cards__card[hidden] {
  display: none;
}

.collection-cards__card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--theme-radius-md);
  background-color: var(--theme-card-bg);
}

.collection-cards__card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--theme-duration-slow) var(--theme-ease-out);
}

.collection-cards__card:hover .collection-cards__card-img {
  transform: scale(1.04);
}

.collection-cards__card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--theme-color-gray-300);
}

.collection-cards__card-label {
  font-family: var(--theme-font-heading);
  font-size: var(--theme-text-md);
  font-weight: var(--theme-weight-bold);
  color: var(--theme-color-text-primary);
  text-align: center;
}

.collection-cards__card:hover .collection-cards__card-label {
  color: var(--theme-color-brand-gold);
}

.collection-cards__card-count {
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-xs);
  color: var(--theme-color-text-muted);
}

@media (max-width: 1023px) {
  .collection-cards__grid--4,
  .collection-cards__grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .collection-cards__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--theme-space-sm);
  }

  .collection-cards__heading {
    font-size: var(--theme-text-xl);
  }

  .collection-cards__card-label {
    font-size: var(--theme-text-sm);
  }
}

/* ─── RECENTLY VIEWED ────────────────────────────────────────── */
.recently-viewed {
  padding: var(--theme-space-md) 0;
  border-top: var(--theme-border-width) solid var(--theme-color-border);
}

.recently-viewed__heading {
  font-family: var(--theme-font-heading);
  font-size: var(--theme-text-lg);
  font-weight: var(--theme-weight-semibold);
  color: var(--theme-color-text-secondary);
  margin: 0 0 var(--theme-space-sm) 0;
}

.recently-viewed__track {
  display: flex;
  gap: var(--theme-space-sm);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  padding-bottom: var(--theme-space-xs);
}

.recently-viewed__track::-webkit-scrollbar {
  height: 4px;
}

.recently-viewed__track::-webkit-scrollbar-thumb {
  background: var(--theme-color-border);
  border-radius: 2px;
}

.recently-viewed__card {
  flex: 0 0 auto;
  width: 180px;
  scroll-snap-align: start;
  text-decoration: none;
  color: var(--theme-color-text-primary);
  transition: transform var(--theme-duration-fast);
}

.recently-viewed__card:hover {
  transform: translateY(-2px);
}

.recently-viewed__image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--theme-radius-md);
  overflow: hidden;
  background: var(--theme-color-bg-surface);
  margin-bottom: var(--theme-space-2xs);
}

.recently-viewed__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.recently-viewed__title {
  display: block;
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-sm);
  font-weight: var(--theme-weight-semibold);
  line-height: var(--theme-leading-snug);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recently-viewed__price {
  display: block;
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-sm);
  color: var(--theme-color-text-muted);
}

/* ─── VIDEO PLAY BUTTON (on product card) ────────────────────────*/
.product-card__video-btn {
  position: absolute;
  bottom: var(--theme-space-xs);
  right: var(--theme-space-xs);
  padding: 0;
  background: none;
  color: #000;
  border: none;
  cursor: pointer;
  line-height: 0;
  z-index: var(--theme-z-raised);
  transition: transform var(--theme-duration-fast) var(--theme-ease-out);
}

.product-card__video-btn:hover {
  transform: scale(1.1);
}

/* ─── VIDEO LIGHTBOX MODAL ───────────────────────────────────────*/
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--theme-z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-lightbox[hidden] {
  display: none;
}

.video-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: var(--theme-color-bg-overlay);
  cursor: pointer;
}

.video-lightbox__content {
  position: relative;
  width: 90vw;
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-lightbox__close {
  position: absolute;
  top: calc(var(--theme-space-md) * -1);
  right: 0;
  background: none;
  border: none;
  color: var(--theme-color-white);
  cursor: pointer;
  padding: var(--theme-space-3xs);
  display: flex;
  z-index: var(--theme-z-raised);
  transition: opacity var(--theme-duration-fast);
}

.video-lightbox__close:hover {
  opacity: 0.7;
}

.video-lightbox__video {
  width: 100%;
  max-height: 80vh;
  border-radius: var(--theme-radius-md);
  background: var(--theme-color-black);
  object-fit: contain;
}

@media (max-width: 767px) {
  .video-lightbox__content {
    width: 95vw;
  }

  .video-lightbox__video {
    max-height: 70vh;
  }
}

/* ─── COLLECTION HERO ───────────────────────────────────────────*/
.collection-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 320px;
  max-height: 600px;
  overflow: hidden;
}

/* ── Media layer ── */
.collection-hero__media {
  position: absolute;
  inset: 0;
}

.collection-hero__img,
.collection-hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.collection-hero__picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* When video exists, image is hidden (video poster attr handles the flash) */
.collection-hero__picture--fallback {
  display: none;
}

/* Desktop/mobile video switching */
.collection-hero__video--mobile {
  display: none;
}

/* ── Gradient scrim overlay ── */
.collection-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Directional gradients — heavier behind text position */
.collection-hero__overlay--bottom-left,
.collection-hero__overlay--bottom-right {
  background: linear-gradient(
    to top,
    var(--hero-overlay-color) 0%,
    transparent 70%
  );
}

.collection-hero__overlay--center,
.collection-hero__overlay--center-left,
.collection-hero__overlay--center-right {
  background: radial-gradient(
    ellipse at center,
    var(--hero-overlay-color) 0%,
    transparent 80%
  );
}

.collection-hero__overlay--top-left,
.collection-hero__overlay--top-right {
  background: linear-gradient(
    to bottom,
    var(--hero-overlay-color) 0%,
    transparent 70%
  );
}

/* ── Text content ── */
.collection-hero__content {
  position: absolute;
  inset: 0;
  display: flex;
  padding: var(--theme-space-lg);
  z-index: var(--theme-z-raised);
}

.collection-hero__text {
  max-width: 600px;
}

/* Position variants */
.collection-hero__content--bottom-left {
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
}

.collection-hero__content--bottom-right {
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
}

.collection-hero__content--center {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.collection-hero__content--center-left {
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.collection-hero__content--center-right {
  align-items: center;
  justify-content: flex-end;
  text-align: right;
}

.collection-hero__content--top-left {
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.collection-hero__content--top-right {
  align-items: flex-start;
  justify-content: flex-end;
  text-align: right;
}

/* ── Typography ── */
.collection-hero__title {
  font-family: var(--theme-font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--theme-weight-bold);
  line-height: 1.1;
  margin: 0;
  letter-spacing: var(--theme-tracking-tight);
  color: inherit;
}

.collection-hero__subtitle {
  font-family: var(--theme-font-ui);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: var(--theme-weight-regular);
  line-height: 1.4;
  margin: var(--theme-space-xs) 0 0;
  opacity: 0.9;
}

.collection-hero__cta {
  display: inline-block;
  margin-top: var(--theme-space-md);
  background: transparent;
  border: var(--theme-border-width-thick) solid currentColor;
  padding: var(--theme-space-xs) var(--theme-space-lg);
  font-family: var(--theme-font-ui);
  font-size: var(--theme-text-sm);
  font-weight: var(--theme-weight-semibold);
  letter-spacing: var(--theme-tracking-wide);
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--theme-duration-fast) var(--theme-ease-out),
              color var(--theme-duration-fast) var(--theme-ease-out);
}

.collection-hero__cta:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ── Mobile ── */
@media (max-width: 767px) {
  .collection-hero {
    height: 40vh;
    min-height: 260px;
  }

  .collection-hero__content {
    padding: var(--theme-space-md);
  }

  .collection-hero__video--desktop {
    display: none;
  }

  .collection-hero__video--mobile {
    display: block;
  }

  /* If no mobile video, show desktop video on mobile */
  .collection-hero__video--desktop:only-child {
    display: block;
  }
}
