/* ==========================================================================
   SHRI FOODS — B2B Organic Snacks & Extruded Food Production Portal
   Modern, Clean, Trustworthy Corporate Manufacturing Aesthetic
   ========================================================================== */

:root {
  --brand-forest: #04760a;
  --brand-green: #04760a;
  --brand-green-dark: #035a08;
  --brand-green-light: #05960e;
  --brand-cream: #feeed4;
  --brand-cream-light: #fff7eb;
  --brand-cream-dark: #f6deba;
  --brand-sun: #ffd600;
  --brand-accent: #04760a;
  --brand-leaf: #2e9334;
  --brand-sand: #feeed4;
  --brand-earth: #78350f;
  --brand-gold: #ffd600;
  --slate-dark: #0f172a;
  --slate-body: #1e293b;
  --slate-muted: #64748b;
  --border-light: #f0d8b4;
}

/* Base Smooth Scrolling & Typography & Responsive Reset */
html {
  scroll-behavior: smooth;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--brand-cream);
  color: var(--slate-body);
  overflow-x: hidden;
  width: 100%;
  min-width: 0;
  -webkit-text-size-adjust: 100%;
}

img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   TOP UTILITY / TRUST BAR (100% BALANCED & ALIGNED ON ALL VIEWPORTS)
   ========================================================================== */
.top-utility-bar {
  background-color: #04760a;
  color: #ffffff;
  border-bottom: 1px solid #035a08;
  font-size: 0.6875rem; /* 11px */
  font-weight: 700;
  user-select: none;
  width: 100%;
}

.top-utility-inner {
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
  padding: 0.35rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .top-utility-bar {
    font-size: 0.75rem; /* 12px */
  }
  .top-utility-inner {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.45rem 1.5rem;
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .top-utility-inner {
    padding: 0.45rem 2.5rem;
  }
}

.top-utility-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(4, 47, 26, 0.65);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 9999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.625rem; /* 10px */
  font-weight: 800;
  letter-spacing: 0.025em;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
  .top-utility-trust-pill {
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: normal;
    box-shadow: none;
  }
}

.top-utility-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.6875rem; /* 11px */
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .top-utility-contacts {
    gap: 1rem;
    font-size: 0.75rem;
  }
}

.top-utility-link {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s ease;
}

.top-utility-link:hover {
  color: #ffd600;
}

.top-utility-link svg,
.top-utility-link i {
  width: 0.8125rem;
  height: 0.8125rem;
  color: #ffd600;
  flex-shrink: 0;
}

.top-utility-trust-pill svg,
.top-utility-trust-pill i {
  width: 0.8125rem;
  height: 0.8125rem;
  color: #ffd600;
  flex-shrink: 0;
}

.top-utility-divider {
  color: rgba(110, 231, 183, 0.4);
  font-weight: 400;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.corporate-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1.5px solid rgba(4, 118, 10, 0.15);
  transition: all 0.3s ease;
}

.corporate-header.scrolled {
  box-shadow: 0 4px 20px -2px rgba(4, 118, 10, 0.12);
  border-bottom-color: rgba(4, 118, 10, 0.25);
}

.nav-link {
  position: relative;
  font-size: 0.825rem;
  font-weight: 600;
  color: #1e293b;
  padding: 0.5rem 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

@media (min-width: 1280px) {
  .nav-link {
    font-size: 0.875rem;
    padding: 0.5rem 0.7rem;
  }
}

.nav-link:hover {
  color: #04760a;
}

/* Active Indicator Line (Exact Match to User's Uploaded Menu Screenshot) */
.nav-link.active {
  color: #04760a;
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.5rem;
  right: 0.5rem;
  height: 3px;
  background-color: #04760a;
  border-radius: 2px;
  transition: width 0.25s ease;
}

/* ==========================================================================
   NAVBAR DROPDOWN (PRODUCTS -> POPPED, EXTRUDE, FRIED)
   ========================================================================== */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 175px;
  background: #ffffff;
  border: 1.5px solid #f0d8b4;
  border-radius: 1rem;
  box-shadow: 0 12px 30px -5px rgba(4, 118, 10, 0.18), 0 4px 10px -2px rgba(0, 0, 0, 0.08);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
}

/* Invisible hover bridge */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e293b;
  border-radius: 0.65rem;
  transition: all 0.15s ease;
  text-decoration: none;
}

.dropdown-item:hover {
  background-color: #feeed4;
  color: #04760a;
  transform: translateX(2px);
}

/* Primary Green Pill Button */
.btn-pill-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #04760a;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.625rem 1.35rem;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(4, 118, 10, 0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  cursor: pointer;
}

.btn-pill-primary:hover {
  background-color: #035a08;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(4, 118, 10, 0.4);
}

.btn-pill-primary:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

@media (max-width: 639px) {
  .btn-pill-primary, .btn-pill-outline {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }
}

.btn-pill-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  color: #04760a;
  border: 1.5px solid #04760a;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.6rem 1.35rem;
  border-radius: 9999px;
  transition: all 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-pill-outline:hover {
  background-color: #f0fdf4;
  border-color: #035a08;
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO SLIDER (MATCHING USER'S SHARED SCREENSHOT WITH INTERACTIVE CAROUSEL)
   ========================================================================== */
.hero-wrapper {
  position: relative;
  width: 100%;
  background-color: #fbfaf6;
  overflow: hidden;
}

/* Slider Track */
.hero-slider-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

/* Individual Slide */
.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  position: relative;
  overflow: hidden;
  display: block;
  background-color: #feeed4;
}

.hero-slide-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 652;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  transform: translateZ(0);
  backface-visibility: hidden;
  image-rendering: -webkit-optimize-contrast;
}

@media (max-width: 767px) {
  .hero-slide-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1920 / 652 !important;
    object-fit: contain !important;
    object-position: center !important;
    min-height: auto !important;
    max-height: none !important;
  }
}

.hero-slide:hover .hero-slide-img {
  transform: scale(1.015);
}

/* Dedicated Inner Page Hero Banners */
.page-hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 652;
  object-fit: cover;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

@media (max-width: 767px) {
  .page-hero-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1920 / 652 !important;
    object-fit: contain !important;
    object-position: center !important;
    min-height: auto !important;
    max-height: none !important;
  }
}

/* Global High-Definition Image Rendering */
img, video {
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

picture {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Slider Navigation Arrows */
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--brand-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 61, 30, 0.12);
  transition: all 0.25s ease;
  cursor: pointer;
}

@media (max-width: 767px) {
  .hero-slider-arrow {
    display: none !important;
  }
}

.hero-slider-arrow:hover {
  background: var(--brand-forest);
  color: #ffffff;
  border-color: var(--brand-forest);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(15, 61, 30, 0.25);
}

.hero-slider-arrow.prev {
  left: 0.75rem;
}

.hero-slider-arrow.next {
  right: 0.75rem;
}

@media (min-width: 1024px) {
  .hero-slider-arrow.prev {
    left: 1.5rem;
  }
  .hero-slider-arrow.next {
    right: 1.5rem;
  }
}

/* Pagination Dots */
.hero-slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 30;
  background: rgba(255, 255, 255, 0.75);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

@media (max-width: 767px) {
  .hero-slider-dots {
    bottom: 0.35rem;
    padding: 0.15rem 0.4rem;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  }
}

.hero-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: rgba(15, 61, 30, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}

@media (max-width: 767px) {
  .hero-slider-dot {
    width: 5px;
    height: 5px;
  }
}

.hero-slider-dot.active {
  width: 28px;
  background: var(--brand-forest);
  border-radius: 9999px;
}

@media (max-width: 767px) {
  .hero-slider-dot.active {
    width: 15px;
  }
}

/* Soft gradient on the left so text has 100% crisp contrast */
.hero-content-gradient {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.90) 35%,
    rgba(255, 255, 255, 0.65) 55%,
    rgba(255, 255, 255, 0.0) 75%
  );
}

@media (max-width: 768px) {
  .hero-content-gradient {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.94) 70%,
      rgba(255, 255, 255, 0.85) 100%
    );
  }
}

/* Kicker Badge: 🌿 WHO WE ARE */
.kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-forest);
  margin-bottom: 0.75rem;
}

/* Hero Headline & Subtitle */
.hero-main-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--brand-forest);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

@media (min-width: 640px) {
  .hero-main-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-main-title {
    font-size: 4rem;
  }
}

.hero-sub-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-forest);
  line-height: 1.25;
  margin-top: 0.35rem;
}

@media (min-width: 640px) {
  .hero-sub-title {
    font-size: 1.65rem;
  }
}

@media (min-width: 1024px) {
  .hero-sub-title {
    font-size: 1.85rem;
  }
}

.hero-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  margin-top: 0.65rem;
  letter-spacing: -0.01em;
}

.hero-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
  margin-top: 0.65rem;
  max-width: 520px;
}

/* 4 Feature Badges (Icons) */
.hero-highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.65rem;
  max-width: 540px;
}

@media (max-width: 639px) {
  .hero-highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.hero-highlight-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 0.75rem;
  backdrop-filter: blur(4px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-highlight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 61, 30, 0.08);
  border-color: rgba(45, 106, 79, 0.3);
}

.hero-highlight-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background-color: #e8f5e9;
  color: var(--brand-forest);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
}

.hero-highlight-label {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--brand-forest);
  line-height: 1.25;
}

/* ==========================================================================
   PRODUCT CAPABILITIES & MANUFACTURING CARDS
   ========================================================================== */
.snack-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.snack-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -4px rgba(15, 61, 30, 0.12);
  border-color: #bbf7d0;
}

.snack-img-container {
  position: relative;
  height: 230px;
  background: radial-gradient(circle at center, #ffffff 15%, #fff6e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  overflow: hidden;
  border-bottom: 1px solid #f0d8b4;
}

.snack-img {
  max-height: 190px;
  max-width: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.12));
}

.snack-card:hover .snack-img {
  transform: scale(1.08) translateY(-4px);
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.18));
}

/* Quick View / Inspect Button on Tablet & Desktop Hover */
.quick-view-btn {
  transition: all 0.2s ease;
}

@media (min-width: 640px) and (max-width: 768px) {
  .quick-view-btn {
    opacity: 1 !important;
    background-color: #04760a !important;
    color: #ffffff !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    border-radius: 9999px !important;
    box-shadow: 0 2px 8px rgba(4, 118, 10, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
  }
}

/* ==========================================================================
   3-COLUMN MOBILE PRODUCT CATALOG OPTIMIZATIONS (< 640px)
   ========================================================================== */
@media (max-width: 639px) {
  #snackCapabilitiesGrid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.5rem !important; /* 8px */
    width: 100% !important;
  }

  .snack-card {
    border-radius: 0.65rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    border-color: #f3e5cb !important;
    overflow: hidden !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .snack-img-container {
    height: 96px !important;
    padding: 0.25rem !important;
    width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .snack-img {
    max-height: 75px !important;
    max-width: 86% !important;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08)) !important;
  }

  /* Compact line badge on image */
  .snack-img-container > span {
    top: 4px !important;
    left: 4px !important;
    font-size: 7px !important;
    padding: 1px 4px !important;
    line-height: 1.15 !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) !important;
    letter-spacing: -0.01em;
    max-width: calc(100% - 8px) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  /* Hide bulky inspect pill on 3-col mobile view so image is crisp and uncluttered */
  .snack-card .quick-view-btn {
    display: none !important;
  }

  /* Content body of card */
  .snack-card > div:last-child {
    padding: 0.35rem 0.25rem 0.4rem 0.25rem !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-width: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  /* Hide verbose category subtitle row */
  .snack-card > div:last-child > div:first-child {
    display: none !important;
  }

  /* Card title in 3-col mobile view */
  .snack-card h3 {
    font-size: 0.68rem !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #0f172a !important;
    margin: 0 !important;
    min-height: 2.3em !important;
    max-height: 2.3em !important;
    min-width: 0 !important;
    width: 100% !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    word-break: break-word !important;
    white-space: normal !important;
  }

  /* Hide long paragraph description on 3-col mobile */
  .snack-card p {
    display: none !important;
  }

  /* Hide multi-pill specifications (tapping card opens full inspection modal) */
  .snack-card .spec-pill,
  .snack-card > div:last-child > .flex.flex-wrap {
    display: none !important;
  }

  /* Compact bottom footer row with MOQ & Details */
  .snack-card > div:last-child > div:last-child {
    margin-top: 0.25rem !important;
    padding-top: 0.25rem !important;
    border-top: 1px solid #f8fafc !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .snack-card > div:last-child > div:last-child > span:first-child {
    font-size: 7.5px !important;
    color: #64748b !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .snack-card > div:last-child > div:last-child > span:first-child strong {
    color: #04760a !important;
  }

  .snack-card > div:last-child > div:last-child > span:last-child {
    font-size: 7.5px !important;
    font-weight: 700 !important;
    color: #04760a !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 1px !important;
    white-space: nowrap !important;
  }

  .snack-card > div:last-child > div:last-child > span:last-child svg,
  .snack-card > div:last-child > div:last-child > span:last-child i {
    width: 8px !important;
    height: 8px !important;
  }
}

/* Base Snack Matrix Miniature Card */
.base-matrix-card {
  background: #ffffff;
  border: 1px solid #f0d8b4;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.base-matrix-card:hover {
  transform: translateY(-4px);
  border-color: #04760a;
  box-shadow: 0 10px 24px -4px rgba(4, 118, 10, 0.15);
}

.base-matrix-img {
  height: 110px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.base-matrix-card:hover .base-matrix-img {
  transform: scale(1.1);
}

/* Product Detail Lightbox Modal (Transforms to Native Bottom Sheet on Mobile) */
.product-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.product-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.product-modal-content {
  background: #ffffff;
  border-radius: 1.5rem;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid #f0d8b4;
  -webkit-overflow-scrolling: touch;
}

.product-modal-backdrop.active .product-modal-content {
  transform: scale(1);
}

@media (max-width: 639px) {
  .product-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }
  .product-modal-content {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    max-height: 88vh;
    padding: 1.25rem 1rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .product-modal-backdrop.active .product-modal-content {
    transform: translateY(0);
  }
}

/* Spec Pill */
.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  background-color: #f1f5f9;
  color: #475569;
}

/* ==========================================================================
   PRODUCTION FLOWCHART & QUALITY SECTION
   ========================================================================== */
.step-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  padding: 1.5rem;
  transition: all 0.25s ease;
}

.step-card:hover {
  border-color: var(--brand-leaf);
  box-shadow: 0 8px 24px -4px rgba(26, 77, 46, 0.1);
  transform: translateY(-2px);
}

.step-number-badge {
  position: absolute;
  top: -12px;
  left: 1.5rem;
  width: 28px;
  height: 28px;
  background-color: var(--brand-forest);
  color: #ffffff;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 61, 30, 0.3);
}

/* ==========================================================================
   B2B INQUIRY FORM & MODAL
   ========================================================================== */
.rfq-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  background-color: #ffffff;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rfq-form-input:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

/* Floating WhatsApp Button */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 45;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

@media (max-width: 767px) {
  .floating-whatsapp-btn {
    display: none !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   INNER PAGE HEADER BANNERS & COMPONENTS
   ========================================================================== */
.page-header-banner {
  background: linear-gradient(135deg, #feeed4 0%, #fff7eb 60%, #fae6c6 100%);
  border-bottom: 1.5px solid #f0d8b4;
  position: relative;
  overflow: hidden;
}

.page-header-banner::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4, 118, 10, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.breadcrumb-link {
  color: #04760a;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  text-decoration: underline;
  color: #035a08;
}

/* Feature & Metric Stat Box */
.stat-box {
  background: #ffffff;
  border: 1px solid #f0d8b4;
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -4px rgba(4, 118, 10, 0.1);
  border-color: #04760a;
}

/* Tab Filter Active Styles */
.product-tab.active {
  background-color: #04760a !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(4, 118, 10, 0.25);
}

/* Process Step Number */
.process-step-num {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: #04760a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(4, 118, 10, 0.25);
}

/* ==========================================================================
   MOBILE BOTTOM QUICK ACTION BAR (Thumb-Friendly Navigation & Conversion)
   ========================================================================== */
.mobile-bottom-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 48;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1.5px solid rgba(4, 118, 10, 0.15);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  justify-content: space-around;
  align-items: center;
}

@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none !important;
  }
}

.mobile-bottom-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  color: #64748b;
  font-size: 0.6875rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  min-width: 60px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-bottom-tab i,
.mobile-bottom-tab svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-bottom-tab:active,
.mobile-bottom-tab.active {
  color: #04760a;
}

.mobile-bottom-tab:active svg,
.mobile-bottom-tab.active svg {
  color: #04760a;
  transform: translateY(-1px);
}

.mobile-bottom-tab.primary-cta {
  color: #ffffff;
  background: #04760a;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(4, 118, 10, 0.35);
  min-width: 72px;
}

.mobile-bottom-tab.primary-cta svg {
  color: #ffffff;
}

.mobile-bottom-tab.primary-cta:active {
  background: #035a08;
  transform: scale(0.97);
}

/* Scrollable Category Filter Chips Touch Momentum */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 639px) {
  .product-tab {
    padding: 0.5rem 1.15rem !important;
    font-size: 0.8125rem !important;
    white-space: nowrap;
  }
}

/* Prevent iOS Safari Automatic Zoom on Input Focus */
@media (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }

  body {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0px));
  }
}
