﻿.categories-page {
  background-color: #ffffff;
  padding-bottom: 4rem;
}
@media (min-width: 768px) { .categories-page { padding-bottom: 8rem; } }

/* Hero Section */
.categories-hero {
  padding-top: 6.75rem;
  padding-bottom: 2.75rem;
  background-color: #0f172a;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 640px) { .categories-hero { padding-top: 7.5rem; padding-bottom: 3.5rem; } }
@media (min-width: 768px) { .categories-hero { padding-top: 8.5rem; padding-bottom: 4.5rem; } }
@media (min-width: 1024px) { .categories-hero { padding-top: 8.5rem; padding-bottom: 4.5rem; } }

.categories-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: url('../../images/hero/pages/categories.webp');
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.categories-hero-content {
  position: relative;
  z-index: 10;
}

.categories-subtitle {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #c5a059;
  margin-bottom: 1rem;
  display: block;
}
@media (min-width: 480px) { .categories-subtitle { font-size: 10px; letter-spacing: 0.4em; } }
@media (min-width: 640px) { .categories-subtitle { font-size: 11px; letter-spacing: 0.5em; } }

.categories-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: white;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
@media (min-width: 480px) { .categories-title { font-size: 2.25rem; } }
@media (min-width: 640px) { .categories-title { font-size: 2.75rem; } }
@media (min-width: 768px) { .categories-title { font-size: 4.5rem; } }

.categories-desc {
  font-size: 0.9375rem;
  color: #cbd5e1;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
@media (min-width: 640px) { .categories-desc { font-size: 1.125rem; } }

/* Container & Grid */
.categories-container {
  max-width: 80rem;
  margin: -2rem auto 0;
  padding: 0 1rem;
  position: relative;
  z-index: 20;
}
@media (min-width: 480px) { .categories-container { padding: 0 1.5rem; margin: -3rem auto 0; } }
@media (min-width: 768px) { .categories-container { margin: -4rem auto 0; } }
@media (min-width: 1024px) { .categories-container { padding: 0 3rem; } }

.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .categories-grid { grid-template-columns: repeat(2, 1fr); } }

/* Category Card */
.category-card {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.05);
}
.category-card.is-featured {
  border-color: #c5a059;
}
.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.category-img-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.category-card:hover .category-img { transform: scale(1.1); }

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: #c5a059;
  color: white;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  z-index: 20;
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.5), transparent);
  opacity: 0.6;
  transition: opacity 0.5s;
}
.category-card:hover .category-overlay { opacity: 0.3; }

.category-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
@media (min-width: 480px) { .category-content { padding: 2rem; } }
@media (min-width: 1024px) { .category-content { padding: 2.5rem; } }

.category-id {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #c5a059;
  margin-bottom: 0.75rem;
  display: block;
}

.category-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 1rem;
  line-height: 1.1;
  transition: color 0.3s;
}
@media (min-width: 480px) { .category-title { font-size: 1.625rem; margin-bottom: 1.25rem; } }
@media (min-width: 768px) { .category-title { font-size: 2rem; } }
.category-card:hover .category-title { color: #c5a059; }

.category-desc {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.625;
  margin-bottom: 1.5rem;
  font-weight: 300;
  flex: 1;
}
@media (min-width: 480px) { .category-desc { font-size: 0.9375rem; margin-bottom: 2rem; } }
@media (min-width: 768px) { .category-desc { font-size: 1rem; margin-bottom: 2.5rem; } }

.category-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  transition: transform 0.5s;
}
.category-card:hover .category-link { transform: translateX(1rem); }

.category-link-text {
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #0f172a;
}

/* Animations */
.hero-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.hero-animate.is-visible { opacity: 1; transform: translateY(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.category-product-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  display: block;
}
