/* ============================================================
   SHIVRAJ AGRO TECH — PRODUCTS PAGE STYLES
   Scoped to .shb-product-page / shb- prefixed classes only.
   Does NOT modify global style.css rules.
   ============================================================ */

/* ---------- Scoped Variables ---------- */
.shb-product-page {
  --shb-p-deep: #075B3A;
  --shb-p-green: #138A4B;
  --shb-p-fresh: #43A047;
  --shb-p-light: #E8F5E9;
  --shb-p-orange: #F28C28;
  --shb-p-orange-dark: #B8680E;
  --shb-p-orange-soft: #FFF7ED;
  --shb-p-orange-chip: #FFF3E4;
  --shb-p-dark: #17211B;
  --shb-p-white: #FFFFFF;
  --shb-p-bg: #FAFCF8;
  --shb-p-green-soft: #F4FAF5;
  --shb-p-text-muted: #55605A;
  --shb-p-transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ---------- Reveal Animation System ---------- */
.shb-product-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.shb-product-reveal.shb-reveal-visible {
  opacity: 1;
  transform: translateY(0);
}
.shb-reveal-d1.shb-product-reveal { transition-delay: 0.08s; }
.shb-reveal-d2.shb-product-reveal { transition-delay: 0.16s; }
.shb-reveal-d3.shb-product-reveal { transition-delay: 0.24s; }
.shb-reveal-d4.shb-product-reveal { transition-delay: 0.32s; }

/* Fallback if JS is disabled: show content */
.shb-product-reveal.shb-nojs-visible { opacity: 1; transform: none; }


/* ============================================================
   PRODUCT HERO
   ============================================================ */
.shb-product-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 140px 0 96px;
  background: linear-gradient(135deg, #075B3A 0%, #0d7548 52%, #138A4B 100%);
  overflow: hidden;
}

/* subtle technical grid pattern */
.shb-product-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 90% at 30% 40%, rgba(0,0,0,0.9), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 30% 40%, rgba(0,0,0,0.9), transparent 75%);
  pointer-events: none;
}

.shb-hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.shb-hb-1 {
  width: 520px;
  height: 520px;
  top: -220px;
  right: -140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 70%);
}
.shb-hb-2 {
  width: 380px;
  height: 380px;
  bottom: -190px;
  left: -120px;
  background: radial-gradient(circle, rgba(67, 160, 71, 0.35) 0%, rgba(67, 160, 71, 0) 70%);
}

.shb-hero-leaf {
  position: absolute;
  color: rgba(255, 255, 255, 0.08);
  animation: shbLeafFloat 7s ease-in-out infinite;
  pointer-events: none;
}
.shb-hl-1 { top: 18%; right: 12%; font-size: 110px; animation-delay: 0s; }
.shb-hl-2 { bottom: 16%; left: 6%; font-size: 76px; animation-delay: 2s; }
.shb-hl-3 { top: 50%; right: 30%; font-size: 54px; animation-delay: 3.5s; }

@keyframes shbLeafFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(6deg); }
}

.shb-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
}
.shb-hero-eyebrow-line {
  display: inline-block;
  width: 36px;
  height: 2px;
  background: #43A047;
  border-radius: 2px;
}

.shb-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.14;
  color: #FFFFFF;
  margin: 0 0 20px;
}
.shb-hero-hl { color: #43A047; }

.shb-hero-desc {
  font-size: 1.04rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin: 0;
}

@media (max-width: 767.98px) {
  .shb-product-hero {
    min-height: auto;
    padding: 120px 0 84px;
  }
  .shb-hl-3 { display: none; }
  .shb-hero-leaf { font-size: 60px; }
}


/* ============================================================
   CATEGORY FILTER
   ============================================================ */
.shb-product-filter {
  position: relative;
  z-index: 5;
  margin-top: -34px;
}

.shb-product-filter-bar {
  background: #FFFFFF;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(7, 91, 58, 0.12);
  border: 1px solid rgba(7, 91, 58, 0.07);
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.shb-filter-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #075B3A;
  background: #FAFCF8;
  border: 1.5px solid rgba(19, 138, 75, 0.18);
  border-radius: 8px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.25s ease;
}
.shb-filter-btn:hover {
  border-color: #138A4B;
  background: #E8F5E9;
  transform: translateY(-1px);
}
.shb-filter-btn.shb-active {
  background: #075B3A;
  border-color: #075B3A;
  color: #FFFFFF;
}
.shb-filter-btn:focus-visible {
  outline: 3px solid rgba(19, 138, 75, 0.35);
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  .shb-product-filter-bar { padding: 10px; gap: 6px; }
  .shb-filter-btn { font-size: 0.7rem; padding: 9px 14px; letter-spacing: 0.8px; }
}


/* ============================================================
   PRODUCT GRID
   ============================================================ */
.shb-product-grid-section {
  padding: 76px 0 90px;
  background: #FAFCF8;
}

.shb-product-item {
  transition: opacity 0.28s ease, transform 0.28s ease;
}
.shb-item-hidden {
  opacity: 0 !important;
  transform: scale(0.95) !important;
  pointer-events: none;
}

/* ---------- Card ---------- */
.shb-product-card {
  background: #FFFFFF;
  border: 1px solid rgba(7, 91, 58, 0.08);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--shb-p-transition);
}
.shb-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 42px rgba(7, 91, 58, 0.13);
  border-color: rgba(19, 138, 75, 0.2);
}

/* ---------- Card Media ---------- */
.shb-product-media {
  background: #F4FAF5;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.shb-product-media::before {
  content: '';
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 160, 71, 0.14) 0%, rgba(67, 160, 71, 0) 70%);
}

.shb-card-accent-orange .shb-product-media { background: #FFF7ED; }
.shb-card-accent-orange .shb-product-media::before {
  background: radial-gradient(circle, rgba(242, 140, 40, 0.13) 0%, rgba(242, 140, 40, 0) 70%);
}

.shb-product-img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  filter: drop-shadow(0 12px 22px rgba(7, 91, 58, 0.12));
}
.shb-product-card:hover .shb-product-img {
  transform: scale(1.05);
}

/* ---------- Card Body ---------- */
.shb-product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shb-product-category {
  font-family: 'Poppins', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: #138A4B;
  margin-bottom: 8px;
}
.shb-card-accent-orange .shb-product-category { color: #F28C28; }

.shb-product-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: #17211B;
  margin: 0 0 10px;
  line-height: 1.3;
}

.shb-product-desc {
  font-size: 0.88rem;
  line-height: 1.68;
  color: #55605A;
  margin: 0 0 16px;
}

/* ---------- Badges ---------- */
.shb-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
}
.shb-badge {
  background: #E8F5E9;
  color: #075B3A;
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
}
.shb-badge-orange {
  background: #FFF3E4;
  color: #B8680E;
}

/* ---------- Variant Selector (Aeroponic Tower) ---------- */
.shb-variant-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
}
.shb-variant-btn {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: #FFFFFF;
  color: #075B3A;
  border: 1.5px solid rgba(19, 138, 75, 0.25);
  border-radius: 6px;
  padding: 7px 13px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.shb-variant-btn:hover {
  border-color: #138A4B;
  background: #F4FAF5;
}
/* .shb-variant-btn.shb-variant-active {
  background: #075B3A;
  border-color: #075B3A;
  color: #FFFFFF;
} */
.shb-variant-btn:focus-visible {
  outline: 2px solid rgba(19, 138, 75, 0.4);
  outline-offset: 2px;
}

/* ---------- Spec Preview ---------- */
.shb-spec-preview {
  background: #FAFCF8;
  border: 1px dashed rgba(19, 138, 75, 0.28);
  border-radius: 10px;
  padding: 10px 16px;
  margin: 0 0 16px;
  transition: opacity 0.18s ease;
}
.shb-spec-preview.shb-spec-updating { opacity: 0; }

.shb-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}
.shb-spec-row + .shb-spec-row {
  border-top: 1px solid rgba(7, 91, 58, 0.06);
}
.shb-spec-k {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #7d8782;
}
.shb-spec-v {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #17211B;
  text-align: right;
}

/* ---------- Spec List ---------- */
.shb-spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.shb-spec-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  color: #4c5651;
  line-height: 1.55;
  padding: 4px 0;
}
.shb-spec-list i {
  color: #43A047;
  font-size: 0.8rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.shb-card-accent-orange .shb-spec-list i { color: #F28C28; }

/* ---------- Spec Note ---------- */
.shb-spec-note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  color: #7d8782;
  background: #F4FAF5;
  border-radius: 8px;
  padding: 11px 14px;
  margin: 0 0 16px;
}
.shb-spec-note i { color: #138A4B; flex-shrink: 0; }

/* ---------- Card Buttons ---------- */
.shb-product-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.shb-btn-view,
.shb-btn-quote {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 11px 14px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}
.shb-btn-view {
  background: #075B3A;
  color: #FFFFFF;
  border: 2px solid #075B3A;
}
.shb-btn-view:hover {
  background: #138A4B;
  border-color: #138A4B;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(19, 138, 75, 0.28);
}
.shb-btn-quote {
  background: transparent;
  color: #075B3A;
  border: 2px solid rgba(7, 91, 58, 0.3);
}
.shb-btn-quote:hover {
  background: #075B3A;
  border-color: #075B3A;
  color: #FFFFFF;
  transform: translateY(-2px);
}
.shb-card-accent-orange .shb-btn-quote {
  color: #B8680E;
  border-color: rgba(242, 140, 40, 0.55);
}
.shb-card-accent-orange .shb-btn-quote:hover {
  background: #F28C28;
  border-color: #F28C28;
  color: #FFFFFF;
}

@media (max-width: 420px) {
  .shb-btn-view,
  .shb-btn-quote {
    font-size: 0.72rem;
    padding: 10px 10px;
    letter-spacing: 0.4px;
  }
}

/* ---------- Empty State ---------- */
.shb-product-empty {
  text-align: center;
  padding: 60px 20px;
  color: #7d8782;
}
.shb-product-empty i {
  font-size: 2.4rem;
  color: #43A047;
  display: block;
  margin-bottom: 12px;
}
.shb-product-empty p {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
}


/* ============================================================
   WHY CHOOSE SECTION
   ============================================================ */
.shb-product-why {
  padding: 90px 0;
  background: #FFFFFF;
}

.shb-why-eyebrow {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #138A4B;
  margin-bottom: 12px;
}
.shb-why-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  color: #17211B;
  margin: 0 0 10px;
}

.shb-why-card {
  background: #FAFCF8;
  border: 1px solid rgba(7, 91, 58, 0.07);
  border-radius: 14px;
  padding: 30px 26px;
  height: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--shb-p-transition);
}
.shb-why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 34px rgba(7, 91, 58, 0.11);
  background: #FFFFFF;
}

.shb-why-num {
  position: absolute;
  top: 10px;
  right: 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #E8F5E9;
  line-height: 1;
}

.shb-why-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: #E8F5E9;
  color: #075B3A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 16px;
  transition: background 0.3s ease, color 0.3s ease;
}
.shb-why-card:hover .shb-why-icon {
  background: #075B3A;
  color: #FFFFFF;
}

.shb-why-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: #17211B;
  margin: 0 0 10px;
}
.shb-why-card-text {
  font-size: 0.87rem;
  line-height: 1.65;
  color: #55605A;
  margin: 0;
}


/* ============================================================
   CTA SECTION
   ============================================================ */
.shb-product-cta {
  position: relative;
  background: linear-gradient(135deg, #075B3A 0%, #0d7548 60%, #138A4B 100%);
  padding: 96px 0;
  overflow: hidden;
}

.shb-cta-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.shb-cta-leaf {
  position: absolute;
  color: rgba(255, 255, 255, 0.07);
  animation: shbLeafFloat 7s ease-in-out infinite;
  pointer-events: none;
}
.shb-cl-1 { top: 14%; left: 7%; font-size: 96px; transform: rotate(-18deg); }
.shb-cl-2 { bottom: 12%; right: 6%; font-size: 120px; transform: rotate(24deg); animation-delay: 2.5s; }

.shb-cta-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.shb-cb-1 {
  width: 420px;
  height: 420px;
  top: -190px;
  right: -110px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
}
.shb-cb-2 {
  width: 340px;
  height: 340px;
  bottom: -170px;
  left: -100px;
  background: radial-gradient(circle, rgba(67, 160, 71, 0.3) 0%, rgba(67, 160, 71, 0) 70%);
}

.shb-cta-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  margin: 0 0 18px;
}

.shb-cta-desc {
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 34px;
}

.shb-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.shb-cta-btn-main,
.shb-cta-btn-alt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 15px 34px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
}
.shb-cta-btn-main {
  background: #FFFFFF;
  color: #075B3A;
  border: 2px solid #FFFFFF;
}
.shb-cta-btn-main:hover {
  background: #E8F5E9;
  border-color: #E8F5E9;
  color: #075B3A;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.shb-cta-btn-alt {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.shb-cta-btn-alt:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #075B3A;
  transform: translateY(-2px);
}

@media (max-width: 767.98px) {
  .shb-product-cta { padding: 72px 0; }
  .shb-cl-1, .shb-cl-2 { font-size: 62px; }
}
@media (max-width: 420px) {
  .shb-cta-btns { flex-direction: column; align-items: stretch; }
  .shb-cta-btn-main, .shb-cta-btn-alt { justify-content: center; }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .shb-product-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .shb-hero-leaf, .shb-cta-leaf { animation: none; }
  .shb-product-card:hover { transform: none; }
  .shb-product-card:hover .shb-product-img { transform: none; }
}
