/* ─── products.css ───────────────────────────────────────── */

/* HERO */
.products-hero {
  padding: 6rem 1.5rem;
  background: var(--brand-card);
  text-align: center;
}

.products-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--brand-purple);
  margin-bottom: 1rem;
}

.products-hero p {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--brand-muted);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* FILTERS */
.products-body {
  padding: 5rem 1.5rem;
  background: var(--brand-light-lavender);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 4rem;
}

.filter-btn {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.5rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--brand-muted);
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.filter-btn:hover {
  color: var(--brand-purple);
}

.filter-btn.active {
  color: var(--brand-purple);
  border-bottom-color: var(--brand-gold);
}

/* PRODUCT GRID */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 640px)  { .products-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

.prod-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.prod-img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  margin-bottom: 1.25rem;
}

.prod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.prod-card:hover .prod-img-wrap img {
  transform: scale(1.05);
}

.prod-overlay {
  position: absolute;
  inset: 0;
  background: rgba(91,30,140,0.3);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
  transition: opacity 0.5s ease;
}

.prod-card:hover .prod-overlay {
  opacity: 1;
}

.prod-overlay-btn {
  padding: 0.75rem 2rem;
  background: var(--brand-light-lavender);
  color: var(--brand-purple);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transform: translateY(32px);
  transition: transform 0.5s ease, background 0.3s ease, color 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.prod-card:hover .prod-overlay-btn {
  transform: translateY(0);
}

.prod-overlay-btn:hover {
  background: var(--brand-gold);
  color: #ffffff;
}

.prod-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.prod-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--brand-purple);
  margin-bottom: 0.25rem;
}

.prod-scent {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--brand-muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  /* two-line clamp */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-price {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--brand-gold);
}
