/* 
 * VALUE4MONEY - Product Page Styles
 * This stylesheet contains styles specific to the product review page
 */

:root {
  --blue-50: #f0f7ff;
  --blue-100: #e0f0ff;
  --blue-200: #bae0ff;
  --blue-300: #7cc5ff;
  --blue-400: #47a3ff;
  --blue-500: #0077c8;
  --blue-600: #0062a8;
  --blue-700: #004e88;
  --yellow-300: #ff9800;
  --yellow-400: #f57c00;
  --yellow-500: #ef6c00;
  --green-500: #4caf50;
  --green-600: #43a047;
  --green-700: #388e3c;
  --red-500: #f44336;
  --red-600: #e53935;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;

  /* New Primary Color Palette (Teal/Green) */
  --primary-50: #f0fdf9;
  --primary-100: #ccfbf1;
  --primary-200: #99f6e4;
  --primary-300: #5eead4;
  --primary-400: #2dd4bf;
  --primary-500: #14b8a6;
  --primary-600: #0d9488;
  --primary-700: #0f766e;
  --primary-800: #115e59;
  --primary-900: #134e4a;

  /* New Accent Colors (Warm Orange) */
  --accent-50: #fff7ed;
  --accent-100: #ffedd5;
  --accent-200: #fed7aa;
  --accent-300: #fdba74;
  --accent-400: #fb923c;
  --accent-500: #f97316;
  --accent-600: #ea580c;

  /* Secondary Colors (Golden Yellow) */
  --secondary-300: #fcd34d;
  --secondary-400: #fbbf24;

  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --white: #ffffff;
  --black: #000000;

  --border-radius: 0.375rem;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
}

/* ===== Product Hero Section ===== */
.product-hero-section {
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: clamp(1rem, 3vw + 0.75rem, 2.5rem) clamp(0.5rem, 1vw + 0.3rem, 1rem);
  position: relative;
}

.product-hero-section.p1 {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("/product-images/p1.png");
}

.product-hero-section.p2 {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("/product-images/p2.png");
}

.product-hero-section.p3 {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("/product-images/p3.png");
}

.product-hero-section.p4 {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("/product-images/p4.png");
}

.product-hero-section.p5 {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("/product-images/p5.png");
}

.product-hero-section.p6 {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("/product-images/p6.png");
}

.product-hero-section.p7 {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("/product-images/p7.png");
}

.product-hero-section.p8 {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("/product-images/p8.png");
}

.product-hero-section.p9 {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("/product-images/p9.png");
}

.product-hero-section.p10 {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("/product-images/p10.png");
}

.product-hero-content {
  text-align: center;
  padding: clamp(0.5rem, 1vw + 0.3rem, 1rem);
}

.product-hero-title {
  font-size: clamp(1rem, 2.5vw + 0.8rem, 2rem);
  font-weight: 700;
  margin-top: clamp(1.25rem, 2.5vw + 0.75rem, 2rem);
  margin-bottom: clamp(0.3rem, 1vw + 0.2rem, 0.5rem);
  text-align: center !important;
  text-rendering: optimizeLegibility;
  hyphens: auto;
  overflow-wrap: anywhere;
  word-break: normal;
}

.product-hero-subtitle {
  font-size: clamp(1.3rem, 3vw + 1rem, 2rem);
  font-weight: 800;
  margin-bottom: clamp(0.4rem, 1.5vw + 0.3rem, 0.75rem);
  text-align: center;
  text-rendering: optimizeLegibility;
  hyphens: auto;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.4;
}

.product-hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 1vw + 0.3rem, 0.75rem);
  flex-wrap: wrap;
  margin-top: clamp(0.5rem, 1vw + 0.3rem, 0.75rem);
}

.last-updated {
  display: flex;
  align-items: center;
  gap: clamp(0.3rem, 0.5vw + 0.2rem, 0.5rem);
  font-size: clamp(0.75rem, 1vw + 0.6rem, 1rem);
  text-align: center;
  text-rendering: optimizeLegibility;
}

.last-updated i {
  color: var(--green-500);
}

.tested-badge {
  background-color: rgba(255, 255, 255, 0.2);
  padding: clamp(0.3rem, 0.5vw + 0.2rem, 0.4rem) clamp(0.6rem, 1vw + 0.4rem, 0.8rem);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tested-badge span {
  font-weight: 600;
  font-size: clamp(0.75rem, 1vw + 0.6rem, 1rem);
  margin-bottom: 0.2rem;
  text-align: center;
  text-rendering: optimizeLegibility;
}

.stars {
  color: var(--yellow-300);
  font-size: clamp(1rem, 1.5vw + 0.8rem, 1.5rem);
  text-align: center;
}

/* ===== Product Intro Section ===== */
.product-intro-section {
  padding: clamp(0.75rem, 2vw + 0.5rem, 1.5rem) clamp(0.5rem, 1vw + 0.3rem, 1rem);
  background-color: var(--white);
}

.product-intro {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(0.5rem, 1vw + 0.3rem, 1rem);
  text-align: left;
}

.product-intro-text {
  font-size: clamp(0.85rem, 1.5vw + 0.65rem, 1.15rem);
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: clamp(1rem, 1.5vw + 0.75rem, 1.25rem);
  text-align: left !important;
  text-rendering: optimizeLegibility;
  hyphens: auto;
  overflow-wrap: anywhere;
  word-break: normal;
  padding-left: clamp(0.5rem, 1vw + 0.3rem, 1rem);
}

.highlight {
  font-weight: 600;
  color: var(--gray-800);
  background-color: var(--yellow-100);
  padding: 0.1rem 0.2rem;
  border-radius: 0.25rem;
}

.advertiser-disclosure-wrapper {
  text-align: right;
  margin-top: clamp(1rem, 2vw + 0.5rem, 1.5rem);
}

.advertiser-disclosure-btn {
  background: none;
  border: none;
  color: var(--blue-500);
  font-size: clamp(0.8rem, 1vw + 0.7rem, 0.95rem);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition-fast);
}

.advertiser-disclosure-btn:hover {
  background-color: var(--blue-50);
}

/* ===== Disclosure Modal ===== */
.disclosure-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.disclosure-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.disclosure-text {
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-700);
}

.disclosure-link {
  color: var(--blue-500);
  font-weight: 600;
  text-decoration: underline;
}

.close-disclosure {
  background-color: var(--blue-500);
  color: var(--white);
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.close-disclosure:hover {
  background-color: var(--blue-600);
}

/* ===== Product Rankings Section ===== */
.product-rankings-section {
  padding: clamp(0.5rem, 1.5vw + 0.3rem, 1rem) clamp(0.5rem, 1vw + 0.3rem, 1rem);
  background-color: var(--gray-50);
  margin-top: clamp(-0.5rem, -1vw - 0.2rem, -0.3rem);
}

.product-rankings {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(0.5rem, 1vw + 0.3rem, 1rem);
}

.product-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: clamp(1rem, 2vw + 0.5rem, 1.5rem);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.top-product {
  border: 2px solid var(--primary-300);
}

.product-rank {
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--black);
  color: var(--white);
  padding: clamp(0.3rem, 0.5vw + 0.2rem, 0.5rem) clamp(0.6rem, 1vw + 0.4rem, 1rem);
  font-weight: 700;
  font-size: clamp(0.8rem, 1vw + 0.7rem, 0.9rem);
  z-index: 1;
}

.product-card-inner {
  display: grid;
  grid-template-columns: 300px 1px 1fr 1px 200px;
  gap: clamp(1rem, 2vw + 0.5rem, 2rem);
  padding: clamp(1rem, 2vw + 0.5rem, 1.5rem);
  align-items: start;
}

.column-divider {
  width: 1px;
  background-color: #e9ecef;
  height: 100%;
  min-height: 300px;
}

.product-image-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden; /* Prevent image overflow */
}

.product-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: clamp(2rem, 3vw, 3rem);
  width: 100%;
  max-width: 300px; /* Constrain image container */
}

.product-img {
  max-width: 90%; /* Adjusted to prevent overflow into rating column */
  height: auto;
  margin-bottom: clamp(0.5rem, 1vw + 0.3rem, 0.75rem);
  object-fit: contain;
}

.product-logo {
  display: none;
}

.logo-img {
  width: 100%;
  height: auto;
}

.product-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 300px;
  margin-top: auto;
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.popularity-badge {
  background-color: #6c757d;
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  width: 100%;
  max-width: 300px;
  position: relative;
}

.popularity-badge::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #6c757d;
}

.product-rankings-section .claim-discount-btn,
.product-rankings-section .visit-amazon-btn {
  background: linear-gradient(90deg, var(--primary-600) 0%, var(--primary-700) 100%);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  width: 100%;
  max-width: 300px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  animation: pulse 2s infinite;
  box-shadow: var(--shadow-md);
}

.product-rankings-section .claim-discount-btn:hover,
.product-rankings-section .visit-amazon-btn:hover {
  background: linear-gradient(90deg, var(--primary-700) 0%, var(--primary-800) 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  animation: none;
}

.product-rankings-section .claim-discount-btn::after,
.product-rankings-section .visit-amazon-btn::after {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-left: 0.75rem;
  transition: transform 0.3s ease;
}

.product-rankings-section .claim-discount-btn:hover::after,
.product-rankings-section .visit-amazon-btn:hover::after {
  transform: translateX(5px);
}

.product-features-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-title {
  font-size: clamp(1.1rem, 1.5vw + 0.9rem, 1.3rem);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.title-underline {
  width: 60%;
  height: 2px;
  background-color: #dee2e6;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.feature-item.positive i {
  color: #28a745;
  margin-top: 0.1rem;
}

.feature-item.negative i {
  color: #dc3545;
  margin-top: 0.1rem;
}

.discount-badge {
  background-color: #007bff;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin-top: 1rem;
}

.discount-badge i {
  background-color: white;
  color: #007bff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.product-score-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding-left: 0;
  padding-top: clamp(3rem, 6vw, 4rem);
}

.score-value {
  font-size: 4rem;
  font-weight: 900;
  color: var(--gray-800);
  line-height: 1;
  text-align: center;
}

.score-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
  justify-content: center;
}

.score-stars i {
  color: #ffc107;
  font-size: 1.2rem;
}

.score-rating {
  font-size: 1.1rem;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 0.5rem;
  text-align: center;
}

.user-rating {
  font-size: 0.85rem;
  color: var(--gray-600);
  font-weight: 500;
  text-align: center;
}

/* ===== Reviewer Section ===== */
.reviewer-section {
  padding: clamp(1rem, 2vw + 0.5rem, 1.5rem) clamp(0.5rem, 1vw + 0.3rem, 1rem);
  background-color: var(--gray-100);
}

.reviewer-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
  display: flex;
  gap: clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
  max-width: 900px;
  margin: 0 auto;
}

.reviewer-image {
  flex-shrink: 0;
}

.reviewer-img {
  width: clamp(60px, 10vw + 40px, 80px);
  height: clamp(60px, 10vw + 40px, 80px);
  border-radius: 50%;
  object-fit: cover;
}

.reviewer-info {
  flex-grow: 1;
}

.reviewer-header {
  display: flex;
  align-items: center;
  gap: clamp(0.3rem, 0.5vw + 0.2rem, 0.5rem);
  margin-bottom: clamp(0.3rem, 0.5vw + 0.2rem, 0.5rem);
}

.written-by {
  color: var(--gray-600);
  font-size: clamp(0.8rem, 1vw + 0.7rem, 0.9rem);
}

.reviewer-name {
  font-weight: 600;
  color: var(--gray-800);
}

.reviewer-stars {
  color: var(--yellow-300);
  margin-bottom: clamp(0.3rem, 0.5vw + 0.2rem, 0.5rem);
  font-size: clamp(0.85rem, 1vw + 0.7rem, 1rem);
}

.reviewer-bio {
  font-size: clamp(0.85rem, 1vw + 0.7rem, 0.95rem);
  line-height: 1.5;
  color: var(--gray-700);
}

/* ===== CTA Section ===== */
.product-cta-section {
  padding: clamp(1rem, 2vw + 0.5rem, 1.5rem) clamp(0.5rem, 1vw + 0.3rem, 1rem);
  background-color: var(--white);
  text-align: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.3rem, 0.5vw + 0.2rem, 0.5rem);
  background-color: var(--yellow-500);
  color: var(--white);
  font-size: clamp(1rem, 1.5vw + 0.8rem, 1.25rem);
  font-weight: 700;
  padding: clamp(0.6rem, 1vw + 0.4rem, 0.75rem) clamp(1.5rem, 2vw + 1rem, 2rem);
  border-radius: 9999px;
  text-decoration: none;
  transition: var(--transition);
  margin-bottom: clamp(0.5rem, 1vw + 0.3rem, 0.75rem);
  min-height: 44px;
}

.cta-button:hover {
  background-color: var(--yellow-400);
}

.cta-button i {
  margin-left: 0.5rem;
}

.cta-sale-text {
  font-size: clamp(0.9rem, 1.5vw + 0.7rem, 1.125rem);
  font-weight: 600;
  color: var(--gray-800);
}

/* ===== Product Details Section ===== */
.product-details-section {
  padding: clamp(1.5rem, 3vw + 1rem, 2rem) clamp(0.5rem, 1vw + 0.3rem, 1rem);
  background-color: var(--gray-50);
}

.product-details {
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(0.5rem, 1vw + 0.3rem, 1rem);
  text-align: left;
}

.product-detail-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2vw + 0.5rem, 1.5rem);
  margin-bottom: clamp(1.5rem, 2vw + 1rem, 2rem);
  position: relative;
}

.approved-badge {
  position: absolute;
  top: clamp(15px, 2vw + 10px, 20px);
  left: clamp(1rem, 1.5vw + 0.5rem, 1.5rem);
  width: clamp(50px, 8vw + 30px, 60px);
  height: clamp(50px, 8vw + 30px, 60px);
}

.badge-img {
  width: 100%;
  height: auto;
}

.detail-title {
  font-size: clamp(1.2rem, 2vw + 0.9rem, 1.5rem);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: clamp(1rem, 2vw + 0.5rem, 1.5rem);
  padding-left: clamp(50px, 10vw + 30px, 80px);
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw + 0.5rem, 1.5rem);
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
}

.pros h4,
.cons h4 {
  font-size: clamp(1rem, 1.5vw + 0.8rem, 1.25rem);
  font-weight: 700;
  margin-bottom: clamp(0.5rem, 1vw + 0.3rem, 0.75rem);
}

.pros h4 {
  color: var(--green-600);
}

.cons h4 {
  color: var(--red-600);
}

.pros-list,
.cons-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.pros-list li,
.cons-list li {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.3rem, 0.5vw + 0.2rem, 0.5rem);
  margin-bottom: clamp(0.3rem, 0.5vw + 0.2rem, 0.5rem);
  font-size: clamp(0.85rem, 1vw + 0.7rem, 0.95rem);
  line-height: 1.4;
}

.pros-list li i {
  color: var(--green-500);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.cons-list li i {
  color: var(--red-500);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.detail-image {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail-img {
  max-width: 100%;
  height: auto;
}

.detail-icons {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
}

.detail-icon {
  width: clamp(30px, 6vw + 20px, 40px);
  height: clamp(30px, 6vw + 20px, 40px);
}

.user-impact {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
  background-color: var(--blue-50);
  padding: clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
  border-radius: var(--border-radius);
  margin-top: clamp(1rem, 2vw + 0.5rem, 1.5rem);
}

.impact-number {
  font-size: clamp(1.5rem, 3vw + 1rem, 1.75rem);
  font-weight: 800;
  color: var(--gray-800);
  white-space: nowrap;
}

.impact-text {
  font-size: clamp(0.85rem, 1vw + 0.7rem, 0.95rem);
  line-height: 1.5;
  color: var(--gray-700);
  flex-grow: 1;
}

.impact-icon {
  flex-shrink: 0;
}

.impact-img {
  width: clamp(40px, 8vw + 30px, 50px);
  height: clamp(40px, 8vw + 30px, 50px);
}

.rating-explanation {
  margin-top: clamp(1rem, 2vw + 0.5rem, 1.5rem);
  padding-top: clamp(1rem, 2vw + 0.5rem, 1.5rem);
  border-top: 1px solid var(--gray-200);
}

.rating-explanation h4 {
  font-size: clamp(1rem, 1.5vw + 0.8rem, 1.25rem);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: clamp(0.5rem, 1vw + 0.3rem, 0.75rem);
}

.highlight-rate {
  color: var(--blue-500);
}

.rating-explanation p {
  font-size: clamp(0.85rem, 1vw + 0.7rem, 0.95rem);
  line-height: 1.5;
  color: var(--gray-700);
}

.product-description {
  font-size: clamp(0.9rem, 1.5vw + 0.7rem, 1.25rem);
  line-height: 1.8;
  color: var(--gray-700);
  text-align: left !important;
  padding-left: clamp(0.5rem, 1vw + 0.3rem, 1rem);
}

.product-description p {
  margin-bottom: clamp(1rem, 1.5vw + 0.75rem, 1.25rem);
}

.product-description strong {
  color: var(--gray-800);
}

/* ===== Stats Section ===== */
.stats-section {
  padding: clamp(1.5rem, 3vw + 1rem, 2rem) clamp(0.5rem, 1vw + 0.3rem, 1rem);
  background-color: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.stats-container {
  display: flex;
  justify-content: space-around;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: clamp(1rem, 2vw + 0.5rem, 1.5rem);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-icon {
  font-size: clamp(1.5rem, 2vw + 1rem, 1.75rem);
  color: var(--yellow-300);
  margin-bottom: clamp(0.5rem, 1vw + 0.3rem, 0.75rem);
}

.stat-number {
  font-size: clamp(1.3rem, 2vw + 0.9rem, 1.5rem);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: clamp(0.3rem, 0.5vw + 0.2rem, 0.4rem);
}

.stat-text {
  font-size: clamp(0.85rem, 1vw + 0.7rem, 0.95rem);
  color: var(--gray-600);
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--black);
  color: var(--white);
  padding: clamp(1.5rem, 3vw + 1rem, 2rem) clamp(0.5rem, 1vw + 0.3rem, 1rem) clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw + 0.5rem, 1.5rem);
  margin-bottom: clamp(1rem, 2vw + 0.5rem, 1.5rem);
}

.footer-heading {
  font-size: clamp(0.9rem, 1vw + 0.8rem, 1rem);
  font-weight: 700;
  margin-bottom: clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
  color: var(--gray-300);
}

.footer-links {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: clamp(0.3rem, 0.5vw + 0.2rem, 0.5rem);
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-disclaimer {
  font-size: clamp(0.8rem, 1vw + 0.7rem, 0.9rem);
  line-height: 1.5;
  color: var(--gray-400);
}

.footer-logo {
  display: flex;
  justify-content: center;
}

.footer-logo-img {
  max-width: clamp(160px, 20vw + 120px, 180px);
  height: auto;
}

.footer-bottom {
  text-align: center;
  padding-top: clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
  border-top: 1px solid var(--gray-800);
}

.copyright {
  font-size: clamp(0.8rem, 1vw + 0.7rem, 0.9rem);
  color: var(--gray-500);
}

/* ===== Media Queries for Responsive Design ===== */

/* Large Screens (min-width: 1600px and above) */
@media (min-width: 1600px) {
  .product-rankings,
  .product-intro,
  .product-details {
    max-width: 1400px;
  }
  
  .product-card-inner {
    grid-template-columns: 350px 1px 1fr 1px 220px;
    gap: 2rem;
  }
  
  .product-img {
    max-width: 85%; /* Adjusted to prevent overflow */
  }
  
  .product-image {
    max-width: 350px; /* Constrain image container */
  }
  
  .product-title {
    font-size: 1.5rem;
  }
  
  .feature-item {
    font-size: 1rem;
  }
}

@media (min-width: 2000px) {
  .product-rankings,
  .product-intro,
  .product-details {
    max-width: 1600px;
  }
  
  .product-card-inner {
    grid-template-columns: 400px 1px 1fr 1px 250px;
  }
  
  .product-img {
    max-width: 80%; /* Adjusted to prevent overflow */
  }
  
  .product-image {
    max-width: 400px; /* Constrain image container */
  }
}

/* Medium to Large Screens (max-width: 1200px) */
@media (max-width: 1200px) {
  .product-card-inner {
    grid-template-columns: 250px 1px 1fr 1px 180px;
    gap: 1rem;
  }
  
  .product-img {
    max-width: 85%; /* Adjusted to prevent overflow */
  }
  
  .product-image {
    max-width: 250px; /* Constrain image container */
  }
}

/* Medium Screens (max-width: 992px) */
@media (max-width: 992px) {
  .product-card-inner {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
  }

  .column-divider {
    display: none;
  }

  .product-image-column {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    margin-top: clamp(0.5rem, 1vw, 1rem);
    padding: 0 1rem;
    overflow: hidden; /* Prevent image overflow */
  }

  .product-image {
    max-width: 100%; /* Constrain image container */
  }

  .product-img {
    max-width: 90%; /* Adjusted to fit within column */
  }

  .product-features-column {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
  }

  .product-score-column {
    grid-row: 2 / 3;
    grid-column: 1 / 3;
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--gray-200);
    padding-top: clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
    margin-top: clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
  }

  .product-action {
    grid-row: 2 / 3;
    grid-column: 1 / 3;
    padding-top: clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
    margin-top: clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
  }

  .score-value {
    font-size: 3rem;
  }

  .detail-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-logo {
    grid-column: 1 / 3;
    margin-top: clamp(0.75rem, 1.5vw + 0.5rem, 1rem);
  }
  
  .title-underline {
    width: 70%;
  }
}

/* Tablets and Small Screens (max-width: 768px) */
@media (max-width: 768px) {
  /* General Layout Adjustments */
  .product-hero-section {
    padding-top: clamp(1.5rem, 4vw + 1rem, 3rem);
  }

  .product-hero-title,
  .product-intro,
  .product-details {
    text-align: center !important;
  }

  .product-hero-subtitle,
  .last-updated,
  .tested-badge span,
  .stars,
  .product-intro-text,
  .product-description {
    text-align: left;
    text-align-last: left;
    hyphens: auto;
    line-break: auto;
    word-break: normal;
    padding-left: clamp(0.5rem, 1vw + 0.3rem, 1rem);
  }

  .product-card-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: clamp(0.25rem, 0.5vw + 0.2rem, 0.5rem);
    padding: clamp(0.5rem, 1vw + 0.3rem, 1rem);
  }

  .column-divider {
    display: none;
  }

  .product-image-column {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
    margin-top: clamp(0.5rem, 1vw, 0.75rem);
    padding: 0 clamp(0.5rem, 1vw, 0.75rem);
    min-height: 300px; /* Increased to accommodate larger image */
    overflow: hidden; /* Prevent image overflow */
  }

  .product-image {
    max-width: 100%; /* Constrain image container */
  }

  .product-img {
    max-width: 90%; /* Adjusted to prevent overlap */
    margin-bottom: clamp(0.25rem, 0.5vw + 0.2rem, 0.5rem);
  }

  .product-score-column {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
    border-top: 1px solid var(--gray-200);
    padding: clamp(0.5rem, 1vw + 0.3rem, 0.75rem) 0;
    margin: 0;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.5rem;
    align-items: center;
    justify-items: center;
    width: 100%;
  }

  .score-value {
    font-size: 2.5rem;
    grid-column: 1 / 2;
    grid-row: 1 / 4;
    margin: 0;
    justify-self: end;
    padding-right: 1rem;
    align-self: center;
  }

  .score-stars {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    margin: 0;
    justify-self: start;
    padding-left: 1rem;
  }

  .score-rating {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    margin: 0;
    font-size: 1rem;
    text-align: center;
    width: 100%;
  }

  .user-rating {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    margin: 0;
    font-size: 0.8rem;
    text-align: center;
    width: 100%;
  }

  .product-features-column {
    grid-row: 3 / 4;
    grid-column: 1 / 2;
    padding: 0 clamp(0.5rem, 1vw, 0.75rem);
    margin: 0;
  }

  .product-title {
    font-size: 1.1rem;
    margin-bottom: clamp(0.25rem, 0.5vw + 0.2rem, 0.5rem);
  }

  .title-underline {
    width: 95%;
    margin: 0 auto clamp(0.5rem, 1vw, 0.75rem) auto;
  }

  .feature-list {
    gap: clamp(0.25rem, 0.5vw + 0.2rem, 0.5rem);
  }

  .feature-item {
    font-size: 0.85rem;
    padding: 0.25rem 0;
  }

  .discount-badge {
    margin: clamp(0.5rem, 1vw, 0.75rem) auto 0;
    padding: clamp(0.3rem, 0.5vw + 0.2rem, 0.5rem) clamp(0.75rem, 1.5vw, 1rem);
  }

  .product-action {
    grid-row: 4 / 5;
    grid-column: 1 / 2;
    padding: clamp(0.5rem, 1vw, 0.75rem) 0;
    margin: 0;
    gap: clamp(0.5rem, 1vw, 0.75rem);
  }

  /* Button Adjustments */
  .product-rankings-section .claim-discount-btn,
  .product-rankings-section .visit-amazon-btn,
  .mobile-claim-btn,
  .mobile-visit-btn {
    width: 90%;
    max-width: 280px;
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
    margin: 0 auto;
  }

  .mobile-buttons {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.5rem, 1vw, 0.75rem);
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .mobile-claim-btn,
  .mobile-visit-btn {
    background: linear-gradient(90deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    width: 100%;
    max-width: 300px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: pulse 2s infinite;
    box-shadow: var(--shadow-md);
  }

  .mobile-claim-btn:hover,
  .mobile-visit-btn:hover {
    background: linear-gradient(90deg, var(--primary-700) 0%, var(--primary-800) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    animation: none;
  }

  .mobile-claim-btn::after,
  .mobile-visit-btn::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 0.75rem;
    transition: transform 0.3s ease;
  }

  .mobile-claim-btn:hover::after,
  .mobile-visit-btn:hover::after {
    transform: translateX(5px);
  }

  .mobile-popularity-badge {
    background-color: #6c757d;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    width: 100%;
    max-width: 300px;
    position: relative;
  }

  .mobile-popularity-badge::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #6c757d;
  }

  /* Other Section Adjustments */
  .reviewer-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pros-cons {
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vw + 0.5rem, 1.5rem);
  }

  .user-impact {
    flex-direction: column;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-logo {
    grid-column: 1 / 2;
  }

  .product-logo {
    display: none;
    width: 35%;
    margin: 0 auto;
  }

  .product-rankings-section,
  .product-intro-section,
  .reviewer-section,
  .product-details-section {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .footer-links a {
    padding: 0.25rem 0;
    display: block;
  }

  .detail-title {
    font-size: clamp(0.95rem, 1.6vw + 0.65rem, 1.2rem);
  }

  /* Prevent horizontal scrolling */
  body {
    overflow-x: hidden;
  }
}

/* Small Screens (max-width: 576px) */
@media (max-width: 576px) {
  .product-hero-section {
    padding-top: clamp(2rem, 5vw + 1.5rem, 3.5rem);
  }

  .product-img {
    max-width: 90%; /* Adjusted to prevent overflow */
    margin: 0 auto clamp(0.5rem, 0.7vw + 0.4rem, 0.7rem);
  }

  .product-image {
    max-width: 100%; /* Constrain image container */
  }
}

/* Very Small Screens (max-width: 480px) */
@media (max-width: 480px) {
  .product-hero-section {
    padding-top: clamp(2rem, 5vw + 1.5rem, 3.5rem);
  }

  .product-img {
    max-width: 85%; /* Adjusted to prevent overlap */
    margin-top: clamp(2.5rem, 3.5vw, 2.5rem);
  }

  .product-image {
    max-width: 100%; /* Constrain image container */
  }

  .product-image-column {
    min-height: 280px; /* Adjusted to accommodate larger image */
    overflow: hidden; /* Prevent image overflow */
  }

  .product-logo {
    display: none;
    width: 35%;
    margin: 0 auto;
  }

  /* Button Adjustments */
  .product-rankings-section .claim-discount-btn,
  .product-rankings-section .visit-amazon-btn,
  .mobile-claim-btn,
  .mobile-visit-btn {
    width: 95%;
    max-width: 260px;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .cta-button {
    width: 90%;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    text-align: center;
    justify-content: center;
  }

  /* Rating Column Adjustments */
  .product-score-column {
    padding: 0.75rem 0;
    gap: 0.3rem;
  }

  .score-value {
    font-size: 2.2rem;
    padding-right: 0.75rem;
  }

  .score-stars {
    padding-left: 0.75rem;
  }

  .score-stars i {
    font-size: 1rem;
  }

  .score-rating {
    font-size: 0.9rem;
  }

  .user-rating {
    font-size: 0.75rem;
  }

  .detail-title {
    font-size: clamp(0.9rem, 1.6vw + 0.6rem, 1.2rem);
  }
}

/* Extra Small Screens (max-width: 400px) */
@media (max-width: 400px) {
  .product-hero-section {
    padding-top: clamp(2.5rem, 6vw + 2rem, 4rem);
  }

  .product-img {
    max-width: 85%; /* Adjusted to prevent overlap */
  }

  .product-image {
    max-width: 100%; /* Constrain image container */
  }
}

/* Very Small Screens (max-width: 360px) */
@media (max-width: 360px) {
  .product-img {
    max-width: 80%; /* Further adjusted to prevent overlap */
  }

  .product-image {
    max-width: 100%; /* Constrain image container */
  }

  .score-value {
    font-size: 2rem;
    padding-right: 0.5rem;
  }

  .score-stars {
    padding-left: 0.5rem;
  }

  .score-stars i {
    font-size: 0.9rem;
  }
}

/* ===== General Styles ===== */
.product-intro-text,
.product-description {
  text-align: justify;
  hyphens: none;
  word-break: keep-all;
}

.feature-item span {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.product-hero-title,
.product-hero-subtitle,
.product-title,
.detail-title,
.score-rating,
.user-rating {
  word-break: keep-all;
  overflow-wrap: normal;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.detail-title {
  font-size: clamp(1.2rem, 2vw + 0.9rem, 1.5rem);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: clamp(1rem, 2vw + 0.5rem, 1.5rem);
  padding-left: clamp(50px, 10vw + 30px, 80px);
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(13, 148, 136, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0);
  }
}

.product-card,
.reviewer-card,
.product-detail-card {
  animation: fadeIn 0.6s ease-in-out;
}