/* CSS Variables */
:root {
  --accent: #5AE0E7;
  --background: #000000;
  --foreground: #e5e5e5;
  --muted-foreground: #888888;
  --card: #111111;
  --secondary: #333333;
}

/* Product Rating Stars */
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.rating-stars {
  display: flex;
  gap: 0.125rem;
}

.rating-star {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.rating-star.filled {
  color: #ffc107;
}

.rating-count {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Product Listing Page - Homepage Theme */

.product-listing-page {
  background: #000;
  min-height: 100vh;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.listing-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.listing-bg-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(90, 224, 231, 0.3);
  border-radius: 50%;
  animation: float-up 15s linear infinite;
}

.listing-container {
  position: relative;
  z-index: 1;
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.listing-header {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeInDown 0.6s ease-out;
}

.listing-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: white;
  margin-bottom: 1rem;
  font-weight: 500;
}

.listing-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  animation: fadeInUp 0.8s ease-out;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--secondary);
  border-radius: 0.625rem;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  animation: fadeInUp 0.5s ease-out both;
}

.product-card:hover {
  border-color: rgba(90, 224, 231, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(90, 224, 231, 0.15);
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 250px;
  background: #111;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.3s;
}

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

.product-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--accent);
  color: #000;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-content {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.125rem;
  color: white;
  margin-bottom: 0.5rem;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-specs-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.product-specs-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
  color: var(--muted-foreground);
}

.product-specs-list li::before {
  content: '';
  width: 0.25rem;
  height: 0.25rem;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 0.5rem;
}

.product-price-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.product-current-price {
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 600;
}

.product-original-price {
  font-size: 1rem;
  color: var(--muted-foreground);
  text-decoration: line-through;
}

.product-view-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.product-view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(90, 224, 231, 0.3);
}

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

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
