/* :root {
    --primary: #3498db;
    --secondary: #536e88;
    --light: #f8f9fa;
    --dark: #343a40;
    --accent: #e74c3c;
    --text: #333;
    --gray: #6c757d;
    --light-gray: #e9ecef;
  } */

:root {
  --primary: #4f46e5; /* Indigo-600: bold but clean */
  --secondary: #64858b; /* Slate-500: soft, elegant gray-blue */
  --light: #f9fafb; /* Very light gray */
  --dark: #1e293b; /* Slate-800: soft dark, not harsh */
  --accent: #f43f5e; /* Rose-500: friendly pop */
  --text: #111827; /* Gray-900: crisp and modern text */
  --gray: #94a3b8; /* Slate-400: useful for muted UI */
  --light-gray: #e2e8f0; /* Slate-200: soft background/section divider */
}

/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  } */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Manrope", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

body {
  background-color: var(--light);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
}

.logo span {
  color: var(--primary);
}

.logo-icon {
  margin-right: 10px;
  font-size: 1.5rem;
  color: var(--primary);
}

.logo-icon img {
  height: 50px;
}

.menu {
  display: flex;
  gap: 25px;
}

.menu-item {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 5px 0;
  position: relative;
}

.menu-item:hover {
  color: var(--primary);
}

.menu-item::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.menu-item:hover::after {
  width: 100%;
}

.menu-item.active {
  color: var(--primary);
}

.menu-item.active::after {
  width: 100%;
}

.search-container {
  background-color: var(--light);
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-box {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid var(--light-gray);
  border-radius: 25px;
  font-size: 16px;
  transition: all 0.3s ease;
  outline: none;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.search-button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-button:hover {
  background-color: var(--secondary);
}

/* Main content */
main {
  padding: 30px 0;
}

/* Home Page */
.home-page {
  display: block;
}

.categories-page,
.top-page,
.product-page {
  display: none;
}

.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 60px 0;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 30px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--secondary);
  position: relative;
  padding-bottom: 10px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 60px;
  background-color: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.product-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-card {
  transition: all 0.3s ease;
}

.product-card[style*="display: none"] {
  opacity: 0;
  transform: scale(0.95);
}

.product-card[style*="display: block"] {
  opacity: 1;
  transform: scale(1);
} 

.product-image {
  height: 200px;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
}

.product-info {
  padding: 20px;
}

.product-category {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.product-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.stars {
  color: #ffc107;
  margin-right: 10px;
  margin-left: 10px;
}

.product-description {
  color: var(--gray);
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.product-price {
  font-weight: 600;
  color: var(--secondary);
  font-size: 1.1rem;
}

/* Product Page */
.product-detail {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.product-header {
  display: flex;
  flex-wrap: wrap;
}

.product-detail-image {
  flex: 1;
  min-width: 300px;
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: var(--gray);
}

.product-detail-info {
  flex: 1;
  min-width: 300px;
  padding: 30px;
}

.product-detail-category {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.product-detail-title {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.product-detail-meta {
  margin-bottom: 20px;
}

.product-detail-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 20px;
}

.product-detail-description {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 25px;
}

.specs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.spec-item {
  display: flex;
  flex-direction: column;
}

.spec-label {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 5px;
}

.spec-value {
  font-weight: 500;
}

.review-section {
  padding: 30px;
  border-top: 1px solid var(--light-gray);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.review-summary {
  display: flex;
  margin-bottom: 30px;
}

.rating-big {
  font-size: 3rem;
  font-weight: 700;
  color: var(--dark);
  margin-right: 20px;
}

.rating-breakdown {
  flex: 1;
}

.rating-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.rating-label {
  min-width: 60px;
  font-size: 0.9rem;
  color: var(--gray);
}

.rating-bar-bg {
  flex: 1;
  height: 8px;
  background-color: var(--light-gray);
  border-radius: 4px;
  overflow: hidden;
  margin-right: 10px;
}

.rating-bar-fill {
  height: 100%;
  background-color: var(--primary);
}

.rating-count {
  min-width: 30px;
  font-size: 0.9rem;
  color: var(--gray);
  text-align: right;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-card {
  background-color: var(--light);
  border-radius: 8px;
  padding: 20px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.reviewer-info {
  display: flex;
  align-items: center;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--gray);
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.reviewer-name {
  font-weight: 600;
}

.review-date {
  color: var(--gray);
  font-size: 0.85rem;
}

.review-content {
  margin-top: 10px;
  color: var(--text);
}

.pros-cons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

.pros,
.cons {
  flex: 1;
  min-width: 200px;
}

.pros h5,
.cons h5 {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.pros h5 {
  color: #28a745;
}

.cons h5 {
  color: var(--accent);
}

.pros-cons-list {
  list-style: none;
}

.pros-cons-list li {
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
}

.pros-cons-list li:before {
  content: "•";
  margin-right: 10px;
}

.pros .pros-cons-list li:before {
  color: #61a771;
}

.cons .pros-cons-list li:before {
  color: var(--accent);
}

.category-section {
  margin-bottom: 40px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.category-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  text-align: center;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.category-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 10px;
}

.category-count {
  color: var(--gray);
  font-size: 0.9rem;
}

footer {
  background-color: var(--secondary);
  color: white;
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 30px;
  background-color: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  font-size: 0.9rem;
}

.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  color: var(--secondary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: white;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
  }

  .menu.active {
    display: flex;
  }

  .mobile-menu-button {
    display: block;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .product-detail-image {
    height: 300px;
  }

  .product-detail-title {
    font-size: 1.8rem;
  }
}

/* Featured Reviews Section */
.featured-section .section-title {
  color: #ff5733; /* Orange */
}

/* Recent Reviews Section */
.recent-section .section-title {
  color: #33ff57; /* Green */
}

/* Books Reviews Section */
.books-section .section-title {
  color: #3357ff; /* Blue */
}

/* Cameras Reviews Section */
.cameras-section .section-title {
  color: #ff33a1; /* Pink */
}

/* Car Accessories Reviews Section */
.car-accessories-section .section-title {
  color: #ffda33; /* Yellow */
}

/* Online Courses Reviews Section */
.online-courses-section .section-title {
  color: #33ffda; /* Teal */
}

/* Fitness Reviews Section */
.fitness-section .section-title {
  color: #da33ff; /* Purple */
}

/* Gaming Reviews Section */
.gaming-section .section-title {
  color: #ff5733; /* Orange */
}

/* Headphones Reviews Section */
.headphones-section .section-title {
  color: #f033ff; /* Violet */
}

/* Home Appliances Reviews Section */
.home-appliances-section .section-title {
  color: #33ff57; /* Green */
}

/* Laptops Reviews Section */
.laptops-section .section-title {
  color: #5733ff; /* Indigo */
}

/* Outdoor Gear Reviews Section */
.outdoor-gear-section .section-title {
  color: #ff9a33; /* Coral */
}

/* Smartphones Reviews Section */
.smartphones-section .section-title {
  color: #33a1ff; /* Sky Blue */
}

/* Software Reviews Section */
.software-section .section-title {
  color: #f0a1a1; /* Soft Red */
}

/* Tablets Reviews Section */
.tablets-section .section-title {
  color: #9a33ff; /* Lavender */
}

/* Travel Gear Reviews Section */
.travel-gear-section .section-title {
  color: #ffb833; /* Amber */
}

/* TVs Reviews Section */
.tvs-section .section-title {
  color: #33d4ff; /* Light Blue */
}

/* Wearables Reviews Section */
.wearables-section .section-title {
  color: #b833ff; /* Magenta */
}
