@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ==============================
   RESET & BASE
   ============================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-dark:  #3b4805;
  --green-main:  #679700;
  --green-pale:  #e8f4d0;
  --green-bg:    #f0f7e8;
  --white:       #ffffff;
  --text-dark:   #212529;
  --text-muted:  #6c757d;
  --border:      rgba(103,151,0,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: #f5f5f5;
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

p { text-align: justify; }

/* ==============================
   HEADER
   ============================== */
.page-header {
  background: #fff;
  border-bottom: 3px solid var(--green-main);
  padding: 10px 0;
}
.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.logo-block { text-decoration: none; display: flex; align-items: center; }
.logo-block img { height: 68px; width: auto; display: block; }

.iisr-label {
  background: var(--green-main);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==============================
   BREADCRUMB
   ============================== */
.breadcrum {
  background: #6797006b;
  padding: 14px 0;
}
.breadcrum .bc-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.breadcrum h3 {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0 0 4px;
}
.breadcrum h3 em {
  font-style: italic;
  font-weight: 600;
}
.bc-trail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #555;
  justify-content: center;
  flex-wrap: wrap;
}
.bc-trail a { color: var(--green-dark); text-decoration: none; font-weight: 500; }
.bc-trail a:hover { text-decoration: underline; }
.bc-trail .sep { color: #999; }

/* ==============================
   MAIN WRAPPER
   ============================== */
.ct-page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 28px 20px 50px;
}

/* ==============================
   PRODUCT CARD
   ============================== */
.product-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow: hidden;
}

.product-card-header {
  background: var(--green-main);
  padding: 16px 22px;
  color: #fff;
}
.product-card-header .tag {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 6px;
}
.product-card-header .tag em {
  font-style: italic;
  text-transform: none;
  font-weight: 600;
  color: #fff;
}
.product-card-header h1 {
  font-size: clamp(1.1rem, 2.8vw, 1.65rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}
.product-card-header h1 em {
  font-style: italic;
  font-weight: 700;
}

/* ==============================
   IMAGE GALLERY
   ============================== */
.gallery-wrap {
  background: #f8f9fa;
  border-bottom: 1px solid #e4e4e4;
  padding: 24px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-grid {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.gallery-img-box {
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  cursor: zoom-in;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.gallery-img-box:hover {
  box-shadow: 0 6px 20px rgba(103,151,0,0.22);
  border-color: var(--green-main);
  transform: translateY(-2px);
}
.gallery-img-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-img-box:hover img { transform: scale(1.04); }

/* --- Standardized Dimensions across all pages --- */

/* Single or default landscape image */
.img-landscape {
  width: 100%;
  max-width: 520px;
  height: 310px;
  flex: 0 1 520px;
}

/* When 2 or more landscape images exist in the grid */
.gallery-grid:has(.gallery-img-box:nth-child(2)) .img-landscape {
  max-width: 440px;
  height: 270px;
  flex: 0 1 440px;
}

/* Fallback for browsers without :has() */
.gallery-grid .img-landscape + .img-landscape,
.gallery-grid:has(.img-landscape + .img-landscape) .img-landscape {
  max-width: 440px;
  height: 270px;
  flex: 0 1 440px;
}

/* --- Portrait images (tall) --- */
.img-portrait {
  width: 220px;
  height: 290px;
  flex: 0 0 220px;
}
.img-portrait img {
  object-fit: contain;
  background: #fff;
}

/* --- Near-square images --- */
.img-square {
  width: 280px;
  height: 270px;
  flex: 0 0 280px;
}

/* --- Wide single product shots --- */
.img-wide-single {
  width: 100%;
  max-width: 480px;
  height: 260px;
  flex: 0 1 480px;
}
.img-wide-single img {
  object-fit: contain;
  background: #fff;
}

/* ==============================
   CARD BODY
   ============================== */
.product-card-body {
  padding: 22px;
}

.product-desc {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-dark);
  margin-bottom: 16px;
  text-align: justify;
}

/* ==============================
   SECTION LABEL
   ============================== */
.sec-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-left: 4px solid var(--green-main);
  padding-left: 10px;
  margin: 22px 0 12px;
}

/* ==============================
   FEATURE LISTS
   ============================== */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.feature-list li {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-dark);
  padding: 5px 0 5px 22px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--green-main);
  border-radius: 50%;
}

/* Two-column */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.info-box {
  background: var(--green-pale);
  border-radius: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(103,151,0,0.20);
}
.info-box h4 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}

/* ==============================
   STATS ROW
   ============================== */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.stat-chip {
  background: var(--green-dark);
  color: #fff;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.stat-chip i { color: #a5d636; }

/* ==============================
   CALLOUT
   ============================== */
.callout {
  background: var(--green-bg);
  border-left: 4px solid var(--green-main);
  border-radius: 0 6px 6px 0;
  padding: 11px 14px;
  font-size: 13px;
  color: var(--text-dark);
  margin: 0 0 16px;
  line-height: 1.7;
}

/* ==============================
   META TAGS
   ============================== */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #e8e8e8;
}
.meta-item {
  flex: 1 1 200px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 11px 14px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.meta-icon {
  width: 34px;
  height: 34px;
  background: var(--green-main);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}
.meta-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--green-main);
  margin-bottom: 3px;
}
.meta-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.5;
}

/* Patent sub-list */
.patent-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}
.patent-list li {
  font-size: 12px;
  color: var(--text-dark);
  padding: 2px 0 2px 12px;
  position: relative;
  text-align: left;
  line-height: 1.55;
}
.patent-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--green-main);
  font-weight: 700;
}



/* ==============================
   BACK BUTTON
   ============================== */
.back-btn-wrap {
  margin-top: 22px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-pale);
  color: var(--green-dark);
  border: 1px solid rgba(103,151,0,0.28);
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.22s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.btn-back:hover {
  background: var(--green-main);
  color: #ffffff;
  border-color: var(--green-main);
  transform: translateX(-3px);
  box-shadow: 0 4px 12px rgba(103,151,0,0.22);
}

/* ==============================
   LIGHTBOX
   ============================== */
#lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#lb-overlay.open { display: flex; }
#lb-overlay img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  object-fit: contain;
  cursor: default;
}
#lb-close {
  position: absolute;
  top: 14px; right: 18px;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.3);
  transition: background 0.2s;
}
#lb-close:hover { background: rgba(255,255,255,0.28); }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {
  .header-inner { padding: 0 14px; }
  .logo-block img { height: 54px; }
  .iisr-label { font-size: 10.5px; padding: 5px 12px; }
  .product-card-body { padding: 16px; }
  .gallery-wrap { padding: 16px 12px; }
  .gallery-grid { gap: 12px; }
  .two-col { grid-template-columns: 1fr; }
  .ct-page { padding: 16px 12px 40px; }
  .meta-item { flex: 1 1 100%; }

  .img-landscape {
    max-width: 100%;
    height: 240px;
    flex: 1 1 100%;
  }
  .gallery-grid:has(.gallery-img-box:nth-child(2)) .img-landscape,
  .gallery-grid .img-landscape + .img-landscape {
    max-width: 100%;
    height: 220px;
    flex: 1 1 100%;
  }
  .img-portrait { 
    width: 150px; 
    height: 200px; 
    flex: 0 0 150px;
  }
  .img-square { 
    width: 100%; 
    max-width: 260px;
    height: 220px; 
    flex: 1 1 auto;
  }
  .img-wide-single { 
    max-width: 100%;
    height: 200px; 
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .product-card-header h1 { font-size: 1.15rem; }
  .breadcrum h3 { font-size: 1.05rem; }
  .img-landscape { height: 200px; }
  .gallery-grid:has(.gallery-img-box:nth-child(2)) .img-landscape { height: 180px; }
  .img-portrait { width: 130px; height: 175px; flex: 0 0 130px; }
  .img-square { height: 190px; }
  .stats-row { gap: 6px; }
  .stat-chip { font-size: 11.5px; padding: 5px 10px; }
}
