/* Product page specific styles */

/* Hero Section */
.product-hero {
  background: linear-gradient(
    135deg,
    rgba(163, 191, 250, 0.1),
    rgba(255, 232, 214, 0.1)
  );
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.product-hero .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  opacity: 0.05;
  z-index: -1;
}

body[data-theme="dark"] .product-hero .hero-background {
  opacity: 0.1;
}

.product-hero .hero-content {
  animation: fadeInUp 0.8s ease forwards;
}

.product-hero .hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.product-hero .hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted-light);
  margin-bottom: 0;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

body[data-theme="dark"] .product-hero .hero-subtitle {
  color: var(--text-muted-dark);
}

/* Product Filter Section */
.product-filter {
  background: var(--bg-light);
}

body[data-theme="dark"] .product-filter {
  background: var(--bg-dark);
}

.filter-controls .form-select {
  border-radius: 12px;
  border: 1px solid rgba(163, 191, 250, 0.3);
  padding: 14px 18px;
  background: transparent;
  color: var(--text-light);
  font-size: 1rem;
  transition: all 0.3s ease;
}

body[data-theme="dark"] .filter-controls .form-select {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-dark);
}

.filter-controls .form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(163, 191, 250, 0.25);
}

/* Products Section */
.products {
  background: rgba(232, 236, 239, 0.3);
}

body[data-theme="dark"] .products {
  background: rgba(232, 236, 239, 0.05);
}

.product-card {
  background: var(--bg-light);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(163, 191, 250, 0.1);
  height: 100%;
}

body[data-theme="dark"] .product-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(163, 191, 250, 0.2);
}

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-content {
  padding: 2rem;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-light);
}

body[data-theme="dark"] .product-title {
  color: var(--text-dark);
}

.product-excerpt {
  color: var(--text-muted-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

body[data-theme="dark"] .product-excerpt {
  color: var(--text-muted-dark);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-category {
  color: var(--secondary-color);
  font-size: 0.875rem;
  font-weight: 500;
}

body[data-theme="dark"] .product-category {
  color: var(--secondary-dark);
}

.product-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

body[data-theme="dark"] .product-link {
  color: var(--secondary-dark);
}

.product-link:hover {
  color: var(--accent-color);
}

body[data-theme="dark"] .product-link:hover {
  color: var(--accent-dark);
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-hero {
    padding: 100px 0 60px;
  }

  .product-hero .hero-title {
    font-size: 2.5rem;
  }

  .product-hero .hero-subtitle {
    font-size: 1.125rem;
  }

  .product-content {
    padding: 1.5rem;
  }

  .product-image img {
    height: 200px;
  }
}

/* Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}
