/* ================================
   CATEGORY DETAIL PAGE - DARK LUXURY THEME
================================ */

.category-detail-page {
  background: var(--dark-bg);
  min-height: 100vh;
  position: relative;
}

/* Animated Background */
.category-detail-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 10% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Hero Section */
.category-detail-hero {
  padding: 12rem 0 4rem;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--dark-bg) 0%, transparent 100%);
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-gold);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.back-link:hover {
  transform: translateX(-5px);
  color: var(--primary-gold-light);
}

/* Products Section */
.category-products {
  padding: 4rem 0 8rem;
  position: relative;
  z-index: 1;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

/* Product Card */
.product-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  display: block;
  cursor: pointer;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
  transition: left 0.7s ease;
  z-index: 3;
}

.product-card:hover::before {
  left: 100%;
}

.product-card:hover {
  transform: translateY(-15px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4),
              0 0 40px rgba(212, 175, 55, 0.1);
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.product-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.product-view-btn {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary-gold) 0%, var(--primary-gold-light) 100%);
  border: none;
  border-radius: 50px;
  color: var(--dark-bg);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: translateY(20px);
}

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

.product-view-btn:hover {
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.product-info {
  padding: 1.5rem 2rem 2rem;
}

.product-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.product-card:hover .product-info h3 {
  color: var(--primary-gold);
}

.product-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .category-detail-hero {
    padding: 10rem 0 3rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-info h3 {
    font-size: 1.2rem;
  }
}
