/**
 * Puck & Wick Product Catalog & Scent Filters Styles
 * Obsidian black & brushed gold card architecture, responsive 3-column grid,
 * and horizontal scrollable filter tabs.
 */

.catalog-container {
  width: 100%;
}

/* Filter Tabs Bar */
.catalog-filters-bar,
.category-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.5rem;
  padding-bottom: 0.75rem;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scrollbar-color: rgba(197, 160, 89, 0.3) transparent;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.catalog-filters-bar::-webkit-scrollbar,
.category-filter-bar::-webkit-scrollbar {
  display: none;
}

@media (max-width: 900px) {
  .catalog-filters-bar,
  .category-filter-bar {
    flex-wrap: nowrap;
    padding-inline: 0.25rem;
  }
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  background: var(--color-charcoal-850, #14161B);
  border: 1px solid var(--color-border-dark, #242730);
  border-radius: 9999px;
  color: var(--color-parchment, #FAF5E8);
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-tab:hover {
  background: rgba(197, 160, 89, 0.1);
  border-color: var(--color-gold-500, #C5A059);
  color: #FFFFFF;
}

.filter-tab.active,
.filter-tab[aria-selected="true"] {
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.22) 0%, rgba(197, 160, 89, 0.08) 100%);
  border-color: var(--color-gold-bright, #D4AF37);
  color: var(--color-gold-bright, #D4AF37);
  box-shadow: 0 0 16px rgba(197, 160, 89, 0.2);
}

.filter-count {
  font-size: 0.75rem;
  opacity: 0.7;
}

.box-icon-link {
  width: 14px;
  height: 14px;
  color: var(--color-gold-500, #C5A059);
  transition: transform 0.2s ease;
}

.filter-tab:hover .box-icon-link {
  transform: translateX(3px);
}

/* Product Cards Grid */
.product-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1080px) {
  .product-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .product-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Product Card Component */
.product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--color-charcoal-900, #0E1015);
  border: 1px solid var(--color-border-dark, #1E2129);
  border-radius: var(--radius-lg, 0.75rem);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-gold-subtle, rgba(197, 160, 89, 0.35));
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.9), 0 0 25px rgba(197, 160, 89, 0.08);
}

/* Vessel Visual Stage */
.product-card-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 55%, rgba(197, 160, 89, 0.09) 0%, rgba(11, 12, 14, 0.98) 78%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  cursor: pointer;
  overflow: hidden;
}

.vessel-wrapper {
  width: 100%;
  height: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.candle-vessel-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.product-card:hover .vessel-wrapper {
  transform: scale(1.03);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  line-height: 1;
}

.badge-flagship {
  background: rgba(197, 160, 89, 0.18);
  border: 1px solid var(--color-gold-500, #C5A059);
  color: var(--color-gold-bright, #D4AF37);
}

.badge-seasonal {
  background: rgba(59, 122, 87, 0.25);
  border: 1px solid #3B7A57;
  color: #A7F3D0;
}

.visual-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.product-card-visual:hover .visual-hover-overlay,
.product-card-visual:focus-visible .visual-hover-overlay {
  opacity: 1;
}

.btn-hover-quick-view {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(197, 160, 89, 0.9);
  color: #0A0A0C;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transform: translateY(6px);
  transition: transform 0.2s ease;
}

.product-card-visual:hover .btn-hover-quick-view {
  transform: translateY(0);
}

/* Card Body */
.product-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--color-gold-500, #C5A059);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-title {
  font-family: var(--font-serif, 'Cormorant Garamond', 'Cinzel', serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 0.35rem 0;
  line-height: 1.25;
}

.product-title .title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.product-title .title-link:hover {
  color: var(--color-gold-bright, #D4AF37);
}

.product-tagline-text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-muted, #9EA3AE);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Notes Teaser */
.product-notes-summary {
  margin-top: auto;
  margin-bottom: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.notes-kicker {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-subtle, #757A88);
  margin-bottom: 0.4rem;
}

.notes-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mini-note-pill {
  font-size: 0.7rem;
  padding: 0.18rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(197, 160, 89, 0.2);
  border-radius: 4px;
  color: var(--color-parchment, #FAF5E8);
}

/* Card Footer */
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.price-container {
  display: flex;
  flex-direction: column;
}

.product-price {
  font-family: var(--font-serif, 'Cormorant Garamond', 'Cinzel', serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #FFFFFF;
}

.wax-spec-sub {
  font-size: 0.65rem;
  color: var(--color-text-subtle, #757A88);
  letter-spacing: 0.05em;
}

.card-button-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quick-view-btn {
  padding: 0.45rem 0.85rem;
}

.quick-add-btn {
  padding: 0.45rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Empty Catalog Fallback */
.catalog-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--color-charcoal-900, #0E1015);
  border: 1px dashed var(--color-border-dark, #242730);
  border-radius: var(--radius-lg, 0.75rem);
}

.empty-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem auto;
  color: var(--color-gold-500, #C5A059);
}

.empty-title {
  font-family: var(--font-serif, 'Cormorant Garamond', 'Cinzel', serif);
  font-size: 1.75rem;
  color: #FFFFFF;
  margin: 0 0 0.5rem 0;
}

.empty-text {
  font-size: 0.9rem;
  color: var(--color-text-muted, #9EA3AE);
  max-width: 420px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
}
