:root {
  /* Dark Mode Color Palette */
  --primary-color: #14b8a6; /* Teal 500 */
  --primary-hover-color: #0f766e; /* Teal 700 */
  --text-color: #e5e7eb; /* Gray 200 (Light text) */
  --light-text-color: #9ca3af; /* Gray 400 (Medium text) */
  --border-color: #4b5563; /* Gray 600 (Subtle borders) */
  --background-color: #1f2937; /* Gray 800 (Dark background) */
  --card-background-color: #374151; /* Gray 700 (Slightly lighter card) */
  --header-background-color: #111827; /* Gray 900 (Darker header) */
  --footer-background-color: #111827; /* Gray 900 (Darker footer) */
  --star-color: #f59e0b; /* Amber 500 */
  --image-width-desktop: 260px;
  --pro-color: #34d399; /* Emerald 400 (Brighter for dark bg) */
  --con-color: #f87171; /* Red 400 (Brighter for dark bg) */
}
body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color); /* Default text color */
}
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 15px;
}
/* --- Header --- */
header {
  background-color: var(--header-background-color); /* Darker Navbar */
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}
header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}
header nav ul li {
  margin-left: 25px;
}
header nav a {
  text-decoration: none;
  color: var(--text-color); /* Light text */
  font-weight: 600;
  transition: color 0.2s ease;
}
header nav a:hover {
  color: var(--primary-color); /* Teal on hover */
}
/* --- Main Content --- */
/* SEO: H1 for main topic */
h1 {
  color: #f9fafb; /* Lighter H1 */
  text-align: center;
  margin-bottom: 10px;
  font-size: 2.2em;
  font-weight: 700;
}
/* SEO: Optional H2 for list section */
h2.list-title {
  color: var(--light-text-color);
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.2em;
  font-weight: 400;
}
.product-list {
  list-style: none;
  padding: 0;
}
/* --- Product Item Card --- */
.product-item {
  border: 1px solid var(--border-color);
  padding: 25px;
  margin-bottom: 30px;
  border-radius: 12px;
  background-color: var(--card-background-color); /* Dark Card */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Adjusted shadow for dark */
  transition: box-shadow 0.3s ease;
}
.product-item:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
/* CSS Grid Layout for Desktop */
.product-content-wrapper {
  display: grid;
  grid-template-columns: var(--image-width-desktop) 1fr;
  grid-template-rows: auto auto;
  gap: 15px 30px;
  align-items: start;
}
/* Grid Cell Assignments & Alignment Fix */
.product-image {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  width: 100%;
}
.product-title-header {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  padding-top: 0;
}
.review-list-container {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  padding-top: 10px; /* Consistent top padding for row 2 */
}
.product-description-action {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 10px; /* Consistent top padding for row 2 */
}
/* --- Element Styling --- */
/* SEO: Ensure alt text is descriptive */
.product-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
/* SEO: H3 for specific item */
.product-title-header h3 {
  margin-top: 0;
  color: var(--text-color);
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 4px;
}
.product-title-header .best-for {
  font-size: 1em;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}
.product-rating {
  margin-bottom: 0;
  font-size: 0.95em;
  color: var(--light-text-color);
  display: flex;
  align-items: center;
  gap: 6px;
}
.product-rating .stars {
  color: var(--star-color);
  letter-spacing: 1px;
  font-size: 1.05em;
}
.product-description {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--light-text-color);
}
.review-summary-title {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
  font-size: 1em;
  margin-top: 0;
}
.review-list {
  margin-top: 0;
  padding-left: 18px;
  font-size: 0.9em;
  color: var(--light-text-color);
  margin-bottom: 0;
}
.review-list li {
  margin-bottom: 5px;
}
/* SEO: Pros and Cons Section */
.pros-cons-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0px; /* Remove gap, use padding/border */
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed var(--border-color);
}
.pros-cons-container h4 {
  margin: 0 0 8px 0;
  font-size: 0.95em;
  font-weight: 600;
}
.pros {
  padding-right: 15px; /* Padding on right of Pros */
}
.cons {
  padding-left: 15px; /* Padding on left of Cons */
  border-left: 1px solid var(--border-color); /* Divider */
}
.pros h4 {
  color: var(--pro-color);
}
.cons h4 {
  color: var(--con-color);
}
.pros-cons-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85em;
  color: var(--light-text-color);
}
.pros-cons-container ul li {
  margin-bottom: 4px;
}
.a-container {
  text-align: right;
  margin-top: auto;
  padding-top: 10px;
}
/* Affiliate Link Button */
/* SEO: Added rel="sponsored" in HTML */
.a-link {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: #fff; /* Ensure white text on button */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.05em;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(20, 184, 166, 0.2);
}
.a-link:hover {
  background-color: var(--primary-hover-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(15, 118, 110, 0.3);
}
.a-link:active {
  transform: translateY(0px);
  box-shadow: 0 1px 2px rgba(20, 184, 166, 0.2);
}
/* --- Footer --- */
footer {
  margin-top: 40px;
  padding: 25px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.9em;
  color: var(--light-text-color); /* Lighter footer text */
  background-color: var(--footer-background-color); /* Darker Footer */
}
.disclaimer {
  margin-bottom: 8px;
}
footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}
footer a:hover {
  text-decoration: underline;
}
.price-note {
  font-style: italic;
  font-size: 0.9em;
  margin-top: 5px;
}
/* Responsive Design (Mobile) */
@media (max-width: 767px) {
  .product-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    grid-template-columns: none;
    grid-template-rows: none;
  }
  /* Ensure all grid items stack properly */
  .product-image,
  .product-title-header,
  .review-list-container,
  .product-description-action {
    grid-column: auto;
    grid-row: auto;
    width: auto;
    max-width: 100%;
    align-self: auto;
    justify-self: auto;
    margin: 0;
    height: auto;
    padding-top: 0; /* Reset padding */
  }
  .product-image {
    max-width: 320px;
    margin: 0 auto 15px auto;
  }
  .affiliate-link-container {
    text-align: left;
    margin-top: 15px;
  }
  .pros-cons-container {
    grid-template-columns: 1fr;
    gap: 10px; /* Stack pros/cons */
  }
  .pros {
    padding-right: 0;
  }
  .cons {
    padding-left: 0;
    border-left: none; /* Remove divider on mobile */
  }
}

/* --- New Styles for Home and Contact Pages --- */

/* Hero Section on Home Page */
.hero {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--card-background-color);
  border-radius: 12px;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2em;
  color: var(--light-text-color);
}

/* Contact Page Specifics */
.contact-card {
  max-width: 700px;
  margin: 40px auto;
  padding: 40px;
  background-color: var(--card-background-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.contact-intro {
  font-size: 1.1em;
  color: var(--light-text-color);
  margin-bottom: 25px;
}

.contact-email {
  font-size: 1.2em;
  font-weight: 600;
}

.contact-email a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* Error Page styles from the original file for completeness */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 80vh;
  text-align: center;
}
.error-page h1 {
  font-size: 2.8em;
  margin-bottom: 15px;
}
.error-page p {
  font-size: 1.2em;
  color: var(--light-text-color);
}
.error-page a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}
.error-page a:hover {
  text-decoration: underline;
}
