/* Collection destinations and the homepage shop directory — desktop & mobile polished */
.collection-hero {
  padding-block: 42px 28px;
}
.collection-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 20px;
}
.collection-breadcrumb a:hover {
  color: var(--orange);
}
.collection-hero .eyebrow {
  margin-bottom: 12px;
}
.collection-hero h1 {
  font: clamp(34px, 4.4vw, 56px)/1.1 var(--serif);
  letter-spacing: -0.035em;
  margin: 0 0 16px;
  max-width: 900px;
}
.collection-hero > p:not(.collection-breadcrumb) {
  max-width: 680px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}
.collection-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.collection-links a {
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #cfd3c2;
  background: #fffdf8;
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.collection-links a:hover {
  background: #e9eddb;
  border-color: #9aa68a;
}
.collection-links a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.collection-page .shop-section {
  padding-block: 18px 70px;
}
.collection-page .color-section {
  padding-top: 10px;
}
.collection-page .accessory-section {
  padding-top: 24px;
}
.collection-page .starter-project-kits {
  margin-top: 55px;
}
.collection-page .collection-subheading {
  font: 32px/1.15 var(--serif);
  letter-spacing: -0.025em;
  margin: 0 0 22px;
}
.collection-page #colorKitGrid[data-tiers="starter"],
.collection-page #colorKitGrid[data-tiers="creative"],
.collection-page #colorKitGrid[data-tiers="professional"] {
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
}
.collection-page #colorKitGrid[data-tiers="starter"] .color-kit-card,
.collection-page #colorKitGrid[data-tiers="creative"] .color-kit-card,
.collection-page #colorKitGrid[data-tiers="professional"] .color-kit-card {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: stretch;
}
.collection-page .color-kit-card-copy {
  height: 100%;
}
.collection-page .color-kit-card-bottom {
  margin-top: auto;
}
.theme-collection {
  margin-top: 55px;
  padding-top: 45px;
  border-top: 1px solid var(--line);
}
.theme-collection .occasion-kit-mount:first-of-type {
  margin-top: 0;
}
body[data-kit-category="holiday"] .theme-collection,
body[data-kit-category="birthday"] .theme-collection,
body[data-kit-category="pets"] .theme-collection,
body[data-kit-category="animals"] .theme-collection,
body[data-kit-category="food"] .theme-collection,
body[data-kit-category="fantasy"] .theme-collection,
body[data-kit-category="space"] .theme-collection {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* Homepage 3-card collection showcase — strictly locked 4:3 image ratio & equal card heights */
.home-collections {
  padding-block: 68px 76px;
  border-top: 1px solid var(--line);
}
.home-collections .section-heading > p {
  font-size: 13.5px;
  line-height: 1.75;
  max-width: 360px;
}
.home-collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.home-collection-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #dcded0;
  border-radius: 12px;
  overflow: hidden;
  background: #fbfaf5;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.home-collection-card:hover {
  transform: translateY(-3px);
  border-color: #c2c7b2;
  box-shadow: 0 12px 28px #30342b12;
}
.home-collection-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3eae0;
  flex-shrink: 0;
}
.home-collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}
.home-collection-card:hover img {
  transform: scale(1.03);
}
.home-collection-copy {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 1px solid #ecebe1;
}
.home-collection-copy h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 26px/1.2 var(--serif);
  letter-spacing: -0.025em;
  margin: 0 0 8px;
}
.home-collection-copy h3 span {
  font: 20px var(--sans);
  color: var(--orange);
}
.home-collection-copy p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 900px) {
  .home-collection-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .home-collection-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
  }
  .home-collection-image {
    height: 100%;
    aspect-ratio: 4 / 3;
  }
  .home-collection-copy {
    border-top: 0;
  }
}

@media (max-width: 760px) {
  .collection-hero {
    padding-block: 24px 18px;
  }
  .collection-breadcrumb {
    font-size: 11px;
    margin-bottom: 14px;
  }
  .collection-hero h1 {
    font-size: clamp(27px, 7.2vw, 36px);
    line-height: 1.13;
    margin-bottom: 12px;
  }
  .collection-hero > p:not(.collection-breadcrumb) {
    font-size: 13px;
    line-height: 1.65;
  }
  /* Smooth horizontal chip bar on phones so 11 category pills never eat half the screen */
  .collection-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    margin-top: 18px;
    padding: 16px 2px 4px;
  }
  .collection-links::-webkit-scrollbar {
    display: none;
  }
  .collection-links a {
    font-size: 12px;
    padding: 8px 14px;
    flex-shrink: 0;
  }
  .collection-page .shop-section {
    padding-bottom: 44px;
  }
  .collection-page .collection-subheading {
    font-size: 26px;
    margin-bottom: 16px;
  }
  .collection-page #colorKitGrid[data-tiers] .color-kit-card {
    display: flex;
    flex-direction: column;
  }
  .theme-collection {
    margin-top: 36px;
    padding-top: 28px;
  }
  .home-collections {
    padding-block: 42px 48px;
  }
  .home-collection-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .home-collection-image {
    aspect-ratio: 16 / 10;
    height: auto;
  }
  .home-collection-copy {
    padding: 18px 20px 20px;
    border-top: 1px solid #ecebe1;
  }
  .home-collection-copy h3 {
    font-size: 23px;
  }
}
