:root {
  --bg-color: #f7f9fc;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --accent-sage: #6a8c71;
  /* Desaturated sage green */
  --accent-sage-hover: #56755c;
  --card-bg: #ffffff;
  --border-radius: 16px;
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --shadow-hover: 0 25px 30px -5px rgb(0 0 0 / 0.08), 0 10px 15px -8px rgb(0 0 0 / 0.04);
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: #0f172a;
  /* Slightly darker for better contrast */
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  background-color: var(--card-bg);
  padding: 24px 0;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--accent-sage);
}

/* Hero Section */
.hero {
  padding: 60px 0 0px;
  text-align: center;
}

.hero-container h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.hero-container p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--text-dark);
  color: #fff;
}

.btn-primary:hover {
  background-color: #000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-accent {
  background-color: var(--accent-sage);
  color: #fff;
}

.btn-accent:hover {
  background-color: var(--accent-sage-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Category Filter */
.category-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--card-bg);
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
  font-size: 0.95rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--accent-sage);
  color: var(--text-dark);
}

.filter-btn.active {
  background-color: var(--accent-sage);
  color: #fff;
  border-color: var(--accent-sage);
}

/* Products Section */
.products-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 32px;
  padding-bottom: 100px;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.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;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.product-image-container {
  width: 100%;
  background-color: var(--card-bg);
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img {
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

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

.product-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-sage);
  margin-bottom: 12px;
}

.product-info h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
  line-height: 1.3;
}

.product-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.feature {
  font-size: 0.9rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  font-weight: 500;
}

.action-area {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 24px;
}

.rating {
  font-size: 1.1rem;
  color: #fbbf24;
  letter-spacing: 2px;
}

.review-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: normal;
  margin-left: 4px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 64px 0;
  border-top: 1px solid #e2e8f0;
  color: var(--text-muted);
}

.footer .disclaimer {
  font-size: 0.8rem;
  max-width: 600px;
  margin: 16px auto 0;
  color: var(--text-light);
}

/* Review Page Styles */
.review-page {
  padding: 60px 24px 100px;
}

.back-link {
  color: var(--text-muted);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 24px;
}

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

.review-header h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.2;
}

.review-content {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  margin-top: 50px;
  align-items: start;
}

.review-image {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
}

.review-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.review-image img:hover {
  transform: scale(1.02);
}

.review-details {
  max-width: 800px;
}

.review-details h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 32px 0 16px;
  color: var(--text-dark);
}

.review-details .lead {
  font-size: 1.25rem;
  color: #334155;
  font-weight: 500;
  line-height: 1.8;
  margin-bottom: 32px;
}

.review-details ul {
  list-style-position: inside;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.review-details li {
  margin-bottom: 8px;
}

.review-verdict {
  background: var(--card-bg);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  margin-top: 48px;
}

.review-verdict h3 {
  margin-top: 0;
  color: var(--accent-sage);
}

.btn-large {
  display: inline-block;
  margin-top: 24px;
  font-size: 1.1rem;
  padding: 16px 32px;
  width: 100%;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-container h1 {
    font-size: 2.5rem;
  }

  .products-section {
    grid-template-columns: 1fr;
  }

  .review-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .review-image {
    position: static;
    order: -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
  }

  .review-header h1 {
    font-size: 2.25rem;
  }

  .review-details .lead {
    font-size: 1.1rem;
    line-height: 1.7;
  }
}