:root {
  --v3-ink: #1f211d;
  --v3-muted: #666960;
  --v3-paper: #f7f3ed;
  --v3-card: #fff;
  --v3-line: #d9d2c8;
  --v3-wine: #7b2340;
}

.v3-unified-collection {
  color: var(--v3-ink);
  background: var(--v3-paper);
}

.v3-unified-collection .v2-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--v3-ink);
  background: rgba(247, 243, 237, .96);
  border-bottom: 1px solid var(--v3-line);
  backdrop-filter: blur(16px);
}
.v3-unified-collection .v2-nav,
.v3-unified-collection .v2-brand { color: var(--v3-ink); }

.v3-collection-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 24px 5vw;
  background: #f4efe8;
  border-bottom: 1px solid var(--v3-line);
}

.v3-collection-switcher a {
  position: relative;
  display: grid;
  min-height: 118px;
  align-content: center;
  padding: 20px 22px;
  overflow: hidden;
  color: var(--v3-ink);
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--v3-line);
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.v3-collection-switcher a::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--v3-wine);
  content: "";
  opacity: 0;
}

.v3-collection-switcher a:hover,
.v3-collection-switcher a.active {
  background: #fff;
  border-color: #b9a99e;
  transform: translateY(-1px);
}

.v3-collection-switcher a.active::before { opacity: 1; }
.v3-collection-switcher small {
  margin-bottom: 6px;
  color: var(--v3-wine);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.v3-collection-switcher b {
  font: 400 clamp(21px, 2vw, 30px)/1.15 Georgia, "Times New Roman", serif;
}
.v3-collection-switcher span {
  margin-top: 8px;
  color: var(--v3-muted);
  font-size: 12px;
}

/* All three destinations use the same compact collection rhythm. */
.collection-new-page .collection-hero,
.collection-stock-page .stock-hero {
  min-height: 470px;
  max-height: 620px;
}

.collection-stock-page .stock-hero-copy {
  padding-top: 92px;
  padding-bottom: 72px;
}
.collection-stock-page .stock-hero h1 {
  font-size: clamp(48px, 6vw, 78px);
}
.collection-stock-page .hero-facts { margin-top: 38px; }
.collection-stock-page .collection-intro {
  grid-template-columns: .65fr 1.2fr 1fr;
  padding: 64px 5vw 42px;
}
.collection-stock-page .collection-intro h2 {
  font-size: clamp(36px, 4vw, 58px);
}

.collection-library-page .page-hero.compact {
  min-height: 0;
  padding: 64px 5vw 46px;
  background: #eee7de;
  border-bottom: 1px solid var(--v3-line);
}
.collection-library-page .page-hero.compact,
.collection-library-page .page-hero.compact h1,
.collection-library-page .page-hero.compact .lead { color: var(--v3-ink); }
.collection-library-page .page-hero.compact .eyebrow { color: var(--v3-wine); }
.collection-library-page .page-hero.compact h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 66px);
}
.collection-library-page .page-hero.compact .lead { max-width: 760px; }
.collection-library-page .gallery-tool {
  padding-top: 42px;
  padding-right: 5vw;
  padding-left: 5vw;
}
.collection-library-page .product-gallery { gap: 22px 14px; }

/* New collection: replace the unique left rail with the shared horizontal filter pattern. */
.collection-new-page .collection-shell {
  display: block;
  padding: 34px 5vw 72px;
}
.collection-new-page .collection-sidebar {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-right: 0;
  border-bottom: 1px solid var(--v3-line);
}
.collection-new-page .sidebar-title {
  width: 100%;
  margin-bottom: 4px;
}
.collection-new-page .category-button,
.collection-new-page .category-button:first-of-type,
.collection-new-page .category-button:last-of-type {
  width: auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--v3-line);
  border-radius: 999px;
}
.collection-new-page .category-button.active,
.collection-new-page .category-button:hover {
  color: #fff;
  background: var(--v3-wine);
  border-color: var(--v3-wine);
}
.collection-new-page .category-button.active span { color: rgba(255,255,255,.75); }
.collection-new-page .sidebar-note { display: none; }
.collection-new-page .collection-toolbar {
  grid-template-columns: 1fr repeat(2, minmax(150px, 190px));
}

/* One card language: 3:4 image, bordered information block, visible buyer action. */
.collection-new-page .product-grid,
.collection-stock-page .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 14px;
}
.collection-stock-page .product-grid { padding: 34px 5vw 130px; }

.collection-new-page .collection-card,
.collection-stock-page .product-card {
  min-width: 0;
  overflow: hidden;
  background: var(--v3-card);
  border: 1px solid var(--v3-line);
  border-radius: 0;
}
.collection-new-page .image-frame,
.collection-stock-page .product-image { aspect-ratio: 3 / 4; }
.collection-new-page .card-body,
.collection-stock-page .product-info {
  display: flex;
  min-height: 242px;
  flex-direction: column;
  padding: 16px;
}
.collection-new-page .card-body h3,
.collection-stock-page .product-info h3 {
  margin: 8px 0 7px;
  font: 400 clamp(19px, 1.6vw, 24px)/1.15 Georgia, "Times New Roman", serif;
}
.collection-new-page .tag-row,
.collection-stock-page .tags { margin-top: 10px; }
.collection-new-page .tag-row span,
.collection-stock-page .tags span {
  padding: 5px 8px;
  color: var(--v3-muted);
  background: #f5f1eb;
  border: 0;
  border-radius: 999px;
  font-size: 10px;
}
.collection-new-page .conversion-select-button {
  width: 100%;
  min-height: 42px;
  margin-top: auto;
}
.collection-stock-page .stock-note { margin-top: auto; }
.collection-stock-page .pick-button { display: none; }
.collection-stock-page .v3-ready-select {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  color: var(--v3-ink);
  background: #fff;
  border: 1px solid var(--v3-ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.collection-stock-page .v3-ready-select.selected {
  color: #fff;
  background: var(--v3-wine);
  border-color: var(--v3-wine);
}

@media (max-width: 980px) {
  .collection-new-page .product-grid,
  .collection-stock-page .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .v3-unified-collection .v2-header { min-height: 76px; }
  .v3-collection-switcher {
    gap: 6px;
    padding: 12px 8px;
  }
  .v3-collection-switcher a {
    min-height: 92px;
    padding: 12px 10px;
  }
  .v3-collection-switcher small { font-size: 8px; }
  .v3-collection-switcher b { font-size: 15px; }
  .v3-collection-switcher span { margin-top: 5px; font-size: 9px; }

  .collection-new-page .collection-hero,
  .collection-stock-page .stock-hero { min-height: 430px; max-height: none; }
  .collection-new-page .hero-copy { padding: 38px 20px; }
  .collection-new-page .collection-shell { padding: 24px 10px 70px; }
  .collection-new-page .collection-sidebar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 12px;
  }
  .collection-new-page .sidebar-title { display: none; }
  .collection-new-page .category-button { flex: 0 0 auto; }
  .collection-new-page .collection-toolbar {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .collection-new-page .collection-count { grid-column: 1 / -1; }

  .collection-stock-page .collection-intro {
    grid-template-columns: 1fr;
    padding: 54px 20px 34px;
  }
  .collection-stock-page .collection-intro h2 { font-size: 40px; }
  .collection-library-page .page-hero.compact { padding: 46px 20px 34px; }
  .collection-library-page .gallery-tool {
    padding: 28px 10px 0;
  }

  .collection-new-page .product-grid,
  .collection-stock-page .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 8px;
  }
  .collection-stock-page .product-grid { padding: 20px 8px 125px; }
  .collection-new-page .card-body,
  .collection-stock-page .product-info {
    min-height: 238px;
    padding: 12px 10px;
  }
  .collection-new-page .card-body h3,
  .collection-stock-page .product-info h3 { font-size: 17px; }
}
