/* =============================================
   ANRRI Blue Light Blocking Glasses
   Landing Page — Hindi | Green Minimal Theme
   ============================================= */

/* --- CSS Variables --- */
:root {
  --green-50:  #f0faf4;
  --green-100: #dcf5e7;
  --green-200: #b9ecce;
  --green-400: #4caf7d;
  --green-500: #2e9e60;
  --green-600: #1f7d47;
  --green-700: #145c32;
  --green-900: #0a3a1e;

  --text-primary:   #1a2e22;
  --text-secondary: #4a6555;
  --text-muted:     #7a9a87;
  --text-light:     #f7fdf9;

  --bg-body:    #f4fbf7;
  --bg-card:    #ffffff;
  --bg-footer:  #0f3d22;

  --border:     #d4ecde;
  --shadow-sm:  0 1px 4px rgba(46,158,96,.08);
  --shadow-md:  0 4px 18px rgba(46,158,96,.13);
  --shadow-lg:  0 10px 40px rgba(46,158,96,.18);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --font-body:  'DM Sans', 'Tiro Devanagari Hindi', sans-serif;
  --font-hindi: 'Tiro Devanagari Hindi', 'DM Sans', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 100%);
  padding: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.header-logo {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-200);
}

.header-title {
  font-family: var(--font-hindi);
  font-size: clamp(14px, 2.5vw, 19px);
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  line-height: 1.4;
  /* H1 is here */
}

/* =============================================
   PRODUCT SECTION
   ============================================= */
.product-section {
  max-width: 1180px;
  margin: 40px auto 0;
  padding: 0 20px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
}

/* =============================================
   GALLERY
   ============================================= */
.slide-radio { display: none; }

.gallery-block {
  position: relative;
  background: var(--green-50);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 20px 20px;
  gap: 14px;
}

/* Slides */
.slides-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 1 / 1;
  background: #fff;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

/* Radio-driven slide display */
#s1:checked ~ .slides-wrapper .slide:nth-child(1),
#s2:checked ~ .slides-wrapper .slide:nth-child(2),
#s3:checked ~ .slides-wrapper .slide:nth-child(3),
#s4:checked ~ .slides-wrapper .slide:nth-child(4) { display: block; }

/* Dots */
.slide-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-200);
  cursor: pointer;
  transition: background .2s, transform .2s;
  display: block;
}

#s1:checked ~ .slide-dots label:nth-child(1),
#s2:checked ~ .slide-dots label:nth-child(2),
#s3:checked ~ .slide-dots label:nth-child(3),
#s4:checked ~ .slide-dots label:nth-child(4) {
  background: var(--green-500);
  transform: scale(1.3);
}

/* Thumbnails */
.slide-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.slide-thumbs label {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  flex-shrink: 0;
}

.slide-thumbs label img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slide-thumbs label:hover { border-color: var(--green-400); }

#s1:checked ~ .slide-thumbs label:nth-child(1),
#s2:checked ~ .slide-thumbs label:nth-child(2),
#s3:checked ~ .slide-thumbs label:nth-child(3),
#s4:checked ~ .slide-thumbs label:nth-child(4) {
  border-color: var(--green-600);
  box-shadow: 0 0 0 2px var(--green-200);
}

/* =============================================
   PRODUCT INFO
   ============================================= */
.product-info {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-500);
  margin-bottom: 8px;
}

.product-title {
  font-family: var(--font-hindi);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 14px;
}

/* Rating */
.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.stars {
  color: #f59e0b;
  font-size: 18px;
  letter-spacing: 2px;
}

.half-star { opacity: .65; }

.rating-count {
  font-size: 13px;
  color: var(--green-600);
  font-weight: 500;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

/* Description blocks */
.desc-block { margin-bottom: 4px; }

.desc-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

.desc-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.desc-list li {
  font-family: var(--font-hindi);
  font-size: 14px;
  color: var(--text-primary);
  padding-left: 18px;
  position: relative;
  line-height: 1.6;
}

.desc-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--green-500);
  font-size: 11px;
  top: 3px;
}

/* Details table */
.details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.details-table tr:nth-child(even) td { background: var(--green-50); }

.details-table td {
  padding: 7px 10px;
  vertical-align: top;
  line-height: 1.5;
}

.detail-key {
  font-weight: 600;
  color: var(--text-secondary);
  width: 45%;
  white-space: nowrap;
}

.sub-rank {
  font-size: 12px;
  color: var(--text-muted);
}

/* SEO note */
.seo-note {
  font-family: var(--font-hindi);
  font-size: 13.5px;
  color: var(--text-secondary);
  background: var(--green-50);
  border-left: 3px solid var(--green-400);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.7;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  text-align: center;
  padding: 52px 20px 48px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 100%);
  color: #ffffff;
  font-family: var(--font-hindi);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 700;
  padding: 20px 52px;
  border-radius: 50px;
  box-shadow: 0 6px 28px rgba(46,158,96,.40);
  letter-spacing: .02em;
  transition: transform .15s, box-shadow .15s, background .15s;
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 38px rgba(46,158,96,.50);
  text-decoration: none;
  background: linear-gradient(135deg, var(--green-600) 0%, var(--green-700) 100%);
  color: #fff;
}

.cta-icon { font-size: 1.2em; }

/* =============================================
   REVIEWS SECTION
   ============================================= */
.reviews-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 52px 20px 60px;
}

.reviews-inner {
  max-width: 780px;
  margin: 0 auto;
}

.reviews-heading {
  font-family: var(--font-hindi);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 36px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--green-100);
}

/* Individual review */
.review-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.review-item:last-child { border-bottom: none; }

.review-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--green-100);
  border: 2px solid var(--green-200);
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-meta { display: flex; flex-direction: column; gap: 2px; }

.reviewer-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.review-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 1px;
}

.review-title-text {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}

.review-date {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.review-attrs {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.review-body {
  font-family: var(--font-hindi);
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: 14px;
}

/* Review photos */
.review-photos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.review-photos img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform .15s;
}

.review-photos img:hover { transform: scale(1.04); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--bg-footer);
  color: var(--green-200);
  padding: 36px 20px 28px;
  text-align: center;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.footer-links a {
  color: var(--green-200);
  text-decoration: none;
  transition: color .15s;
}

.footer-links a:hover { color: #ffffff; text-decoration: underline; }

.footer-sep {
  color: var(--green-700);
  font-weight: 700;
}

.footer-copy {
  font-size: 12px;
  color: #6aac83;
}

/* =============================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================= */
@media (max-width: 900px) {
  .product-card {
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
  }

  .gallery-block {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 20px 16px;
  }

  .product-info {
    padding: 24px 20px;
  }

  .details-table td { padding: 6px 8px; }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================= */
@media (max-width: 600px) {
  .product-section { padding: 0 12px; margin-top: 24px; }

  .slide-thumbs label { width: 48px; height: 48px; }

  .product-info { padding: 18px 16px; }

  .product-title { font-size: 16px; }

  .cta-button {
    padding: 17px 32px;
    font-size: 17px;
    border-radius: 40px;
  }

  .reviews-section { padding: 36px 14px 48px; }

  .review-photos img { width: 76px; height: 76px; }

  .footer-links { font-size: 12px; }

  .header-inner { padding: 12px 14px 10px; }
}