/* ============================================================
   COLLECTION PAGE — Elevated Editorial
   SSense / DSM direction
   ============================================================ */

/* ---- Page base ---- */
body { background: #0a0a0a; }

/* ---- Hero ---- */
.collection-hero {
  height: 100vh;
  margin-top: 0;
}
.collection-hero-bg img { filter: brightness(0.35); }
.collection-hero-bg::after {
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.96) 0%,
    rgba(10,10,10,0.4) 50%,
    rgba(10,10,10,0.1) 100%
  );
}
.collection-hero h1 {
  font-size: clamp(4rem, 9vw, 8rem);
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  letter-spacing: 0.06em;
}
.collection-hero-content { gap: 6px; }
.col-hero-label {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 400;
}

/* ---- Light hero variant (fragrances) ---- */
.collection-hero--light .collection-hero-bg img {
  filter: brightness(1);
}
.collection-hero--light .collection-hero-bg::after {
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.0) 0%,
    rgba(10,10,10,0.0) 55%,
    rgba(10,10,10,0.6) 80%,
    rgba(10,10,10,1.0) 100%
  );
}

/* Centered hero text */
.collection-hero-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  z-index: 2;
  padding: 0 24px;
}
.fragrance-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(5rem, 13vw, 11rem);
  font-weight: 300;
  font-style: italic;
  color: #0a0a0a;
  letter-spacing: 0.04em;
  line-height: 0.9;
  text-shadow: 0 2px 40px rgba(245,242,238,0.6);
}
.fragrance-hero-sub {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.65);
  margin-top: 4px;
}

/* ---- Hero bottom fade ---- */
.collection-hero--light::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, #0a0a0a);
  z-index: 3;
  pointer-events: none;
}

/* ---- Fragrance filter bar ---- */
.frag-filter-bar {
  position: sticky;
  top: var(--header-h, 60px);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 48px;
  background: #0f0f0f;
  border-top: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease;
}
.frag-filter-bar.is-sticky {
  background: rgba(10,10,10,0.95);
}

/* Tabs */
.frag-filter-tabs {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
}
.frag-tab {
  height: 100%;
  padding: 0 20px;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aaa;
  cursor: pointer;
  position: relative;
  transition: color 0.25s ease;
}
.frag-tab::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20px; right: 20px;
  height: 1px;
  background: #c9a84c;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
.frag-tab:hover { color: #f5f0e8; }
.frag-tab.active { color: #f5f0e8; }
.frag-tab.active::after { transform: scaleX(1); }

/* Right side */
.frag-filter-right {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
}
.frag-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.08);
  margin: 0 4px;
}
.frag-filter-action {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  padding: 0 20px;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #aaa;
  cursor: pointer;
  transition: color 0.25s ease;
}
.frag-filter-action:hover { color: #f5f0e8; }
.frag-sort {
  appearance: none;
  -webkit-appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23aaa' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0 center;
  border: none;
  outline: none;
  padding: 0 20px 0 16px;
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #aaa;
  cursor: pointer;
  transition: color 0.25s ease;
}
.frag-sort:hover { color: #f5f0e8; }
.frag-sort option { background: #111; color: #fff; }

/* ---- Grid meta ---- */
.collection-grid-section { padding: 28px 0 80px; background: #0a0a0a; }

/* ---- Fragrance grid — light card style ---- */
.frag-grid {
  grid-template-columns: repeat(3, 1fr);
  background: transparent;
  gap: 24px;
}
.collection-grid-section:has(.frag-grid) {
  background: #f5f2ee;
  padding: 40px 56px 80px;
}
.collection-grid-section:has(.frag-grid) .collection-count { color: #7a7368; }

/* Cancel dark overrides for frag-grid cards */
.frag-grid .product-card,
.frag-grid .product-card:hover { background: #ffffff; }
.frag-grid .product-card { border-radius: 8px; }
.frag-grid .shop-card-body { background: #ffffff; }
.frag-grid .shop-card-title { color: #111008; }
.frag-grid .shop-card-price { color: #111008; }
.collection-meta { margin-bottom: 20px; }
.collection-count {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #444;
}

/* ---- Product grid ---- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: #1a1a1a;
}

/* ---- Product card ---- */
.product-card {
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  border-radius: 0;
}
.product-card:hover { background: #0a0a0a; }

/* Media / image */
.product-card-media {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: #111;
}
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1);
  display: block;
}
.product-card:hover .product-card-media img {
  transform: scale(1.03);
}

/* Badges */
.product-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  font-weight: 600;
  font-family: var(--font-body);
  z-index: 2;
  line-height: 1;
}
.product-card-badge.new {
  background: #fff;
  color: #0a0a0a;
}
.product-card-badge:not(.new) {
  background: var(--gold);
  color: #0a0a0a;
}

/* Quick add — slides up on hover */
.quick-add {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(4px);
  padding: 14px 16px;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  border-top: none;
}
.product-card:hover .quick-add { transform: translateY(0); }
.quick-add-btn {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  text-align: center;
  transition: opacity 0.2s ease;
}
.quick-add-btn:hover { opacity: 0.6; }

/* Info below image */
.product-card-info {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #0a0a0a;
}
.product-card-brand {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #555;
  font-family: var(--font-body);
  font-weight: 400;
}
.product-card-title {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f0ebe0;
  font-weight: 600;
  font-family: var(--font-body);
  line-height: 1.3;
}
.product-card-price {
  font-size: 13px;
  color: #f0ebe0;
  font-weight: 400;
  font-family: var(--font-body);
  margin-top: 2px;
}
.product-card-price s { color: #444; margin-right: 6px; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card-media { height: 280px; }
}
