.collection-page {
  background: #f7f7f5;
  min-height: 60vh;
}

.collection-hero {
  background: #111;
  color: #fff;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}

.collection-hero h1 {
  font-family: 'Alias', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.collection-hero--plain {
  background: transparent;
  color: #0a0a0a;
  padding: 2rem 1.5rem 0.25rem;
  text-align: left;
  max-width: 1536px;
  margin: 0 auto;
}

.collection-hero--plain h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0;
}

.collection-page--all .collection-toolbar-row {
  padding-top: 0.75rem;
}

.collection-count {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}

.collection-toolbar {
  max-width: 1536px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.collection-filter-btn {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.875rem;
  color: var(--black);
  cursor: default;
}

.collection-grid {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .collection-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.product-card {
  background: #efefec;
  border-radius: 12px;
  overflow: hidden;
}

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

.product-card-media {
  position: relative;
  aspect-ratio: 1;
  background: #efefec;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-badge {
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.product-card-media > .product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.product-badge-new {
  background: #b8e6e0;
  color: #111;
}

.product-badge-sale {
  background: #fff;
  color: #111;
}

.product-badge-oos {
  background: rgba(255, 255, 255, 0.92);
  color: #666;
}

.product-card-body {
  padding: 0.875rem 0.875rem 1rem;
}

.product-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 0.35rem;
}

.product-card-prices {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-price {
  font-size: 0.95rem;
  font-weight: 600;
}

.product-price-sale {
  color: #c0392b;
}

.product-price-compare {
  font-size: 0.875rem;
  color: #777;
  text-decoration: line-through;
}

/* --- Bracelets collection page --- */
.collection-page--bracelets {
  background: #f7f7f5;
}

.collection-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  min-height: 180px;
}

.collection-banner-img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
}

.collection-banner-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: 'Alias', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.collection-banner-title--dark {
  color: #0a0a0a;
  text-shadow: none;
}

.collection-page--necklaces .collection-banner-img,
.collection-page--rings .collection-banner-img {
  max-height: 280px;
  object-position: center;
}

/* Bracelet category link tiles (matches official swiper__link-tiles) */
.collection-link-tiles {
  padding: 0 0 1rem 1rem;
}

@media (min-width: 1024px) {
  .collection-link-tiles {
    padding: 0 2.5rem 1rem;
  }
}

.collection-link-tiles-inner {
  max-width: 1536px;
  margin: 0 auto;
}

.collection-link-tiles-scroller {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  container-type: inline-size;
  container-name: link-tiles;
}

.collection-link-tiles-scroller::-webkit-scrollbar {
  display: none;
}

.collection-link-tiles-track {
  display: flex;
  gap: 1rem;
}

.collection-link-tiles-slide {
  flex: 0 0 calc((100cqw - 1rem * 1.5) / 2.5);
  min-width: 0;
}

@media (min-width: 1024px) {
  .collection-link-tiles-scroller {
    overflow: visible;
  }

  .collection-link-tiles-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }

  .collection-link-tiles--cols-6 .collection-link-tiles-track {
    grid-template-columns: repeat(6, 1fr);
  }

  .collection-link-tiles-slide {
    flex: none;
    width: auto;
  }
}

@media (min-width: 1536px) {
  .collection-link-tiles-track {
    gap: 1.25rem;
  }
}

.collection-link-tile {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 0.75rem;
  overflow: hidden;
}

.collection-link-tile-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  aspect-ratio: 1;
  object-fit: cover;
  background: #efefec;
}

.collection-link-tile-label {
  display: block;
  text-align: center;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  padding: 0.75rem 0 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

.collection-link-tile.is-active .collection-link-tile-label {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.collection-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width, 1536px);
  margin: 0 auto;
  padding: 0.75rem 1.5rem 1rem;
}

.collection-toolbar-row .collection-count {
  font-size: 0.875rem;
  color: #444;
}

.collection-toolbar-row .collection-filter-btn {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.collection-toolbar-row .collection-filter-btn:hover {
  opacity: 0.75;
}

.product-card[hidden] {
  display: none;
}

.product-card-media {
  position: relative;
  aspect-ratio: 1;
  background: #efefec;
}

.product-card-media .product-badge-row {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.product-badge-featured {
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.product-badge-charity {
  background: #b8e6e0;
  color: #111;
}

.product-badge-custom {
  background: #fff;
  color: #111;
}

.product-badge-value {
  background: #fff;
  color: #111;
}

.product-badge-stock {
  background: #fff3cd;
  color: #111;
}

.product-card-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.35rem;
  min-height: 1.25rem;
}

.product-swatch,
.product-swatch-more {
  font-size: 0.6875rem;
  color: #666;
  line-height: 1.3;
}

.product-swatch {
  cursor: default;
}

.product-swatch-more {
  color: #888;
}

/* Filter drawer */
body.filter-drawer-open {
  overflow: hidden;
}

.collection-filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1100;
}

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

.collection-filter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(100%, 420px);
  height: 100vh;
  background: #fff;
  z-index: 1101;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}

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

.collection-filter-drawer-inner {
  padding: 1.25rem 1.5rem 2rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.collection-filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.collection-filter-drawer-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.collection-filter-close {
  font-size: 1.75rem;
  line-height: 1;
  color: #333;
  padding: 0.25rem;
}

.filter-group {
  margin-bottom: 1.25rem;
}

.filter-group h3 {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 0.35rem 0;
  color: #555;
}

.filter-price {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.filter-price input {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.4rem 0.5rem;
  margin-left: 0.35rem;
  width: 6rem;
}

.collection-filter-count {
  margin: auto 0 1rem;
  font-size: 0.875rem;
  color: #666;
}

.collection-filter-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.filter-clear-btn,
.filter-apply-btn {
  flex: 1;
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-clear-btn {
  background: #fff;
  border: 1px solid #ccc;
  color: #888;
}

.filter-apply-btn {
  background: #111;
  color: #fff;
}

/* Pagination */
.collection-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: var(--max-width, 1536px);
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
}

.collection-page-nav {
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #333;
}

.collection-page-nav:disabled {
  opacity: 0.35;
  cursor: default;
  text-decoration: none;
}

.collection-page-numbers {
  display: flex;
  gap: 0.5rem;
}

.collection-page-btn {
  min-width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
  background: transparent;
}

.collection-page-btn.is-active {
  background: #111;
  color: #fff;
}

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

/* SEO block */
.collection-seo {
  background: #fff;
  border-top: 1px solid #e8e8e8;
  padding: 2.5rem 1.5rem 3rem;
}

.collection-seo-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.collection-seo-lead {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #444;
  margin: 0 0 1rem;
}

.collection-seo-toggle {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #111;
  margin-bottom: 1.5rem;
}

.collection-seo-more {
  text-align: left;
}

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

.collection-seo-more h2 {
  font-family: 'Alias', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin: 1.5rem 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.collection-seo-more p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #444;
  margin: 0 0 1rem;
}
