/* ═══════════════════════════════════════════════════════
   COLLECTION PAGES — Shared Styles
   Extends design tokens from main.css
   ═══════════════════════════════════════════════════════ */

/* ── Hero Collection Cards (on homepage) ── */
.hero-collections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 5rem;
  max-width: 780px;
  width: 100%;
  opacity: 0;
  animation: fadeUp 1s 1.3s ease forwards;
}

.collection-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(var(--gold-rgb), 0.16);
  padding: 1.2rem 0.8rem;
  text-decoration: none;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
  border-radius: 1px;
}

.collection-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(var(--gold-rgb), 0.35);
  transform: translateY(-4px);
}

.collection-card-label {
  font-family: "Cormorant SC", serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold-on-dark-soft);
  line-height: 1.3;
}

.collection-card-desc {
  font-family: "Cormorant", serif;
  font-style: italic;
  font-size: 0.78rem;
  color: var(--parchment);
  line-height: 1.3;
  opacity: 0.7;
}

/* ── Collection Mini Nav ── */
.col-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1.2rem, 5vw, 5rem);
  background: rgba(22, 35, 18, 0.94);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(120, 180, 90, 0.15);
}

.col-nav-home {
  font-family: "Cormorant SC", serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold-on-dark-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.col-nav-home:hover {
  color: var(--gold-pale);
}

.col-nav-title {
  font-family: "Cormorant", serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--parchment);
  font-weight: 300;
}

/* ── Collection Hero Banner ── */
.col-hero {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem clamp(1.5rem, 5vw, 5rem) 5rem;
  position: relative;
  overflow: hidden;
  background: var(--garden-deep);
}

.col-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 50% 110%, rgba(61, 102, 54, 0.4) 0%, transparent 55%),
              radial-gradient(ellipse 50% 50% at 15% 60%, rgba(120, 190, 100, 0.08) 0%, transparent 55%);
}

.col-hero h1 {
  position: relative;
  z-index: 1;
  font-family: "Cormorant", serif;
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1.1;
  color: var(--parchment);
  margin-bottom: 1.5rem;
}

.col-hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.col-hero p {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(245, 237, 216, 0.65);
  max-width: 580px;
}

.col-hero-sub {
  position: relative;
  z-index: 1;
  font-family: "Cormorant SC", serif;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold-on-dark-soft);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

/* ── Collection Content Area ── */
.col-content {
  background: var(--parchment2);
  padding: 5rem clamp(1.5rem, 5vw, 5rem);
}

.col-content-inner {
  max-width: 960px;
  margin: 0 auto;
}

/* Collection section (sub-category block) */
.col-section {
  margin-bottom: 4rem;
  scroll-margin-top: 5rem;
}

.col-section:last-child {
  margin-bottom: 0;
}

.col-section-header {
  margin-bottom: 2rem;
}

.col-section-title {
  font-family: "Cormorant", serif;
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--garden-deep);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.col-section-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.2rem;
}

.col-section-desc {
  font-size: 0.94rem;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 700px;
}

.col-section-feats {
  list-style: none;
  margin-bottom: 1.5rem;
}

.col-section-feats li {
  font-size: 0.84rem;
  color: var(--body);
  padding: 0.35rem 0 0.35rem 1.1rem;
  position: relative;
  line-height: 1.6;
}

.col-section-feats li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
}

/* ── Collection Gallery Grid ── */
.col-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.col-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.col-gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(var(--gold-rgb), 0.15);
  transition: transform 0.35s ease, border-color 0.35s;
}

.col-gallery-item:hover img {
  transform: scale(1.03);
  border-color: rgba(var(--gold-rgb), 0.35);
}

.col-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.8rem;
  background: linear-gradient(to top, rgba(22, 35, 18, 0.8) 0%, transparent 100%);
  color: var(--parchment);
  font-size: 0.68rem;
  font-family: "Cormorant SC", serif;
  letter-spacing: 0.12em;
  opacity: 0;
  transition: opacity 0.25s;
}

.col-gallery-item:hover .col-gallery-caption {
  opacity: 1;
}

/* ── Sub-navigation within collection pages ── */
.col-subnav {
  position: sticky;
  top: 55px;
  z-index: 500;
  background: rgba(22, 35, 18, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.1);
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.col-subnav::-webkit-scrollbar {
  display: none;
}

.col-subnav a {
  flex-shrink: 0;
  font-family: "Cormorant SC", serif;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  color: rgba(245, 237, 216, 0.55);
  text-decoration: none;
  padding: 0.9rem 1.4rem;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  border-right: 1px solid rgba(var(--gold-rgb), 0.06);
}

.col-subnav a:hover {
  color: var(--gold-on-dark-soft);
  background: rgba(255, 255, 255, 0.04);
}

/* ── Store Link Section ── */
.col-store {
  background: var(--garden-dark);
  padding: 5rem clamp(1.5rem, 5vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.col-store::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(100, 165, 80, 0.2) 0%, transparent 55%);
}

.col-store h2 {
  position: relative;
  z-index: 1;
  font-family: "Cormorant", serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--parchment);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.col-store p {
  position: relative;
  z-index: 1;
  font-size: 0.94rem;
  color: rgba(245, 237, 216, 0.55);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.col-store .btn-primary {
  display: inline-block;
}

.col-store-note {
  font-family: "Cormorant", serif;
  font-style: italic;
  font-size: 0.85rem !important;
  color: rgba(245, 237, 216, 0.35) !important;
  margin-top: 1.5rem !important;
  margin-bottom: 0 !important;
}

/* ── Section Vine Decoration ── */
.col-vine {
  width: 32px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.2rem;
  position: relative;
}

.col-vine::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--parchment2);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-collections {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .collection-card {
    padding: 1rem 0.6rem;
  }

  .col-hero {
    min-height: 40vh;
    padding: 6rem clamp(1.2rem, 5vw, 5rem) 3rem;
  }

  .col-subnav {
    top: 50px;
  }

  .col-subnav a {
    padding: 0.7rem 1rem;
    font-size: 0.52rem;
  }

  .col-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .col-gallery-item img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .hero-collections {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .collection-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    padding: 0.8rem 1rem;
    min-height: 72px;
  }

  .collection-card-label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .collection-card-desc {
    font-size: 0.72rem;
  }

  .col-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .col-gallery-item img {
    height: 140px;
  }
}
