@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&family=Lora:ital,wght@0,500;0,600;0,700;1,500&family=Manrope:wght@300;400;500;600;700;800&family=Playfair+Display:wght@700;800;900&family=Tiro+Devanagari+Hindi:ital@0;1&family=Work+Sans:wght@400;500;600;700&display=swap");

:root {
  --cream: #f8f1e1;
  --cream-2: #f1e7cf;
  --ink: #1b2316;
  --forest: #1f4d2c;
  --forest-2: #2d6a3e;
  --gold: #c9871f;
  --gold-2: #e3a73f;
  --terracotta: #b34a25;
  --brick: #8a2a1a;
  --line: rgba(27, 35, 22, 0.14);
}

@layer base {
  :root {
    --background: 42 53% 93%;
    --foreground: 90 18% 12%;
    --card: 40 40% 97%;
    --card-foreground: 90 18% 12%;
    --popover: 40 40% 97%;
    --popover-foreground: 90 18% 12%;
    --primary: 138 42% 22%;
    --primary-foreground: 42 53% 96%;
    --secondary: 38 60% 90%;
    --secondary-foreground: 90 18% 12%;
    --muted: 40 30% 88%;
    --muted-foreground: 90 10% 32%;
    --accent: 38 76% 45%;
    --accent-foreground: 0 0% 100%;
    --destructive: 8 65% 42%;
    --destructive-foreground: 0 0% 100%;
    --border: 90 12% 80%;
    --input: 90 12% 80%;
    --ring: 138 42% 30%;
    --radius: 0.75rem;
  }
}

* {
  border-color: hsl(var(--border));
}

html,
body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

.font-display {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}

.font-hindi {
  font-family: "Tiro Devanagari Hindi", "Noto Sans Devanagari", serif;
}

/* Grain overlay */
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.45 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.18;
  mix-blend-mode: multiply;
}

.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(27, 35, 22, 0.25),
    transparent
  );
}

.ticker {
  animation: ticker 40s linear infinite;
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.cow-pattern {
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(201, 135, 31, 0.08),
      transparent 40%
    ),
    radial-gradient(circle at 80% 70%, rgba(31, 77, 44, 0.08), transparent 40%);
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}
.btn-primary {
  background: var(--forest);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--forest-2);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px rgba(31, 77, 44, 0.6);
}
.btn-ghost {
  background: transparent;
  color: var(--forest);
  border: 1px solid rgba(31, 77, 44, 0.3);
}
.btn-ghost:hover {
  background: rgba(31, 77, 44, 0.06);
}
.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover {
  background: var(--gold-2);
  transform: translateY(-2px);
}

.card-soft {
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.product-card {
  position: relative;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -28px rgba(27, 35, 22, 0.4);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--forest);
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(27, 35, 22, 0.2);
}

input,
textarea,
select {
  font-family: inherit;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 0.8s ease forwards;
}
@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.float-slow {
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* Hide scrollbar for marquee */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
/* Navbar offset — compensate for fixed 72px navbar */
main {
  padding-top: 62px;
}

/* ── Global Responsive Utilities ─────────────────────────────────────────── */

/* Prevent horizontal scroll on all screen sizes */
html,
body {
  overflow-x: hidden;
}

/* Responsive section padding for inline-styled sections */
@media (max-width: 600px) {
  /* Reduce padding for sections using 32px horizontal padding */
  /* section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  } */
  /* Keep vertical padding intact but reduce on very small screens */
  main > section:first-child {
    padding-top: 5px !important;
  }
}

/* Ensure images never overflow their container */
img {
  max-width: 100%;
  height: auto;
}

/* Responsive font sizes for headings using inline styles with clamp already applied */

/* ── About page specific ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .about-image-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Products page ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .products-header-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* ── Benefits page ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .benefits-hero-grid,
  .benefits-cta-grid {
    grid-template-columns: 1fr !important;
  }
  .benefits-cta-grid {
    padding: 32px !important;
  }
}

/* ── Home page ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .value-header-grid,
  .science-grid,
  .testimonial-grid,
  .cta-band-grid {
    grid-template-columns: 1fr !important;
  }
  .value-cards-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .featured-products-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .cta-band-grid {
    padding: 32px !important;
  }
  .hero-cta-wrap {
    right: 16px !important;
    bottom: 16px !important;
  }
}
@media (max-width: 480px) {
  .value-cards-grid,
  .science-specs-grid {
    grid-template-columns: 1fr !important;
  }
}

.App {
  min-height: 100vh;
  background: var(--cream);
}

/* ── Navbar ─────────────────────────────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 241, 225, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 35, 22, 0.08);
  transition:
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.navbar-scrolled {
  box-shadow: 0 4px 24px -8px rgba(27, 35, 22, 0.15);
  background: rgba(248, 241, 225, 0.98);
}

/* ── Container ───────────────────────────────────────────────────────────────── */

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 0 16px;
  }
}

/* ── Desktop nav links ───────────────────────────────────────────────────────── */

.desktop-menu {
  display: flex;
  align-items: center;
  margin: 0 auto;
  gap: 2px;
  /* margin-left: 40px; */
}

.nav-link {
  padding: 8px 16px;
  border-radius: 999px; /* pill shape */
  font-size: 0.875rem;
  font-weight: 500;
  color: #3a3a3a;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background: rgba(31, 77, 44, 0.07);
  color: #1f4d2c;
}

/* Active link — solid dark green pill (matches screenshot) */
.nav-link.active {
  background: #1f4d2c;
  color: #f8f1e1;
  font-weight: 600;
}

.nav-link.active:hover {
  background: #2d6a3e;
  color: #f8f1e1;
}

/* ── Desktop right-side actions ──────────────────────────────────────────────── */

.desktop-actions {
  display: flex;
  align-items: center;
  /* gap: 16px; */
  /* margin-left: auto; */
}

/* Phone link — icon + number, subtle style */
.phone-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #3a3a3a;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.phone-link:hover {
  color: #1f4d2c;
}

/* "Become a Dealer" — gold/amber pill (matches screenshot) */
.dealer-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #c9871f; /* gold — matches screenshot */
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
  white-space: nowrap;
}

.dealer-btn:hover {
  background: #b3751a;
  transform: translateY(-1px);
}

/* ── Mobile hamburger ────────────────────────────────────────────────────────── */

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: #1b2316;
  margin-left: auto;
  transition: background 0.2s ease;
}

.mobile-toggle:hover {
  background: rgba(27, 35, 22, 0.07);
}

/* ── Mobile dropdown menu ────────────────────────────────────────────────────── */

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 20px 20px;
  gap: 2px;
  border-top: 1px solid rgba(27, 35, 22, 0.08);
  background: rgba(248, 241, 225, 0.99);
}

.mobile-menu.mobile-menu-open {
  display: flex;
}

.mobile-link {
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #3a3a3a;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.mobile-link:hover {
  background: rgba(31, 77, 44, 0.07);
  color: #1f4d2c;
}

.mobile-link.active {
  background: #1f4d2c;
  color: #f8f1e1;
  font-weight: 600;
}

.mobile-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #3a3a3a;
  text-decoration: none;
  transition: background 0.2s ease;
  margin-top: 4px;
}

.mobile-phone:hover {
  background: rgba(31, 77, 44, 0.07);
  color: #1f4d2c;
}

/* Mobile dealer btn — full width */
.mobile-menu .dealer-btn {
  margin-top: 8px;
  justify-content: center;
}

/* ── Responsive breakpoint ───────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .desktop-menu,
  .desktop-actions {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }
}

/* Logo styles */
/* 
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1f4d2c;
  letter-spacing: -0.01em;
  font-family: Georgia, serif;
}

.logo-text span {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9871f;
  margin-top: 2px;
} */

.logo-container {
  display: flex;
  align-items: center;
  gap: 6px; /* logo aur text ke beech ka space */
}

.logo-img {
  width: 42px; /* apne hisab se adjust kar lo */
  height: auto;
  display: block;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.logo-text span {
  margin: 0;
  font-size: 11px;
  letter-spacing: 2px;
}

/* ── BarsanaAbout responsive parity with the original React component ─────── */
.barsana-about {
  box-sizing: border-box;
}
.barsana-about-inner {
  box-sizing: border-box;
}
.barsana-timeline {
  box-sizing: border-box;
}

@media (max-width: 760px) {
  .barsana-about {
    padding: 20px 32px !important;
  }
  .barsana-about-inner {
    padding: 0 18px !important;
  }

  .barsana-about > .barsana-about-inner > header {
    padding: 36px 0 30px !important;
  }
  .barsana-about > .barsana-about-inner > header > span {
    margin-bottom: 16px !important;
  }
  .barsana-about > .barsana-about-inner > header > div {
    gap: 22px !important;
    margin-top: 22px !important;
  }
  .barsana-about > .barsana-about-inner > header > div > div:first-child > p {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }
  .barsana-about > .barsana-about-inner > header > div > div:last-child {
    border-radius: 16px !important;
    padding: 22px 20px !important;
  }
  .barsana-about > .barsana-about-inner > header > div > div:last-child > p {
    font-size: 14.5px !important;
  }

  .barsana-timeline-heading {
    padding: 28px 0 4px !important;
  }
  .barsana-timeline-heading h2 {
    font-size: 23px !important;
  }
  .barsana-timeline-heading p {
    font-size: 13px !important;
    max-width: none !important;
    line-height: 1.55 !important;
    margin: 8px 0 0 !important;
  }

  /* Turn the desktop road into the original vertical path timeline. */
  .barsana-timeline {
    padding: 30px 0 10px !important;
  }
  .barsana-timeline > svg {
    display: none !important;
  }
  .barsana-milestones {
    display: block !important;
    margin-top: 0 !important;
    padding-left: 30px !important;
    position: relative;
  }
  .barsana-milestones::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 24px;
    bottom: 18px;
    width: 2px;
    background: repeating-linear-gradient(
      to bottom,
      #8b5e3c 0px,
      #8b5e3c 6px,
      transparent 6px,
      transparent 12px
    );
  }
  .barsana-milestones > div {
    position: relative !important;
    padding: 0 0 30px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
  .barsana-milestones > div:last-child {
    padding-bottom: 4px !important;
  }
  .barsana-milestones > div::before {
    content: "";
    position: absolute;
    left: -36px;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fffefb;
    border: 2.5px solid #c97a2b;
    box-sizing: border-box;
    box-shadow: 0 0 0 0 #faf3e6;
  }
  .barsana-milestones > div:nth-child(n + 3)::before {
    border-color: #1f4d2c;
  }
  .barsana-milestones > div::after {
    content: "";
    position: absolute;
    left: -29px;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c97a2b;
  }
  .barsana-milestones > div:nth-child(n + 3)::after {
    background: #1f4d2c;
  }
  .barsana-milestones > div > span {
    display: none !important;
  }
  .barsana-milestones > div > div:first-of-type {
    display: inline !important;
    font-size: 19px !important;
    line-height: 1.35 !important;
  }
  .barsana-milestones > div > div:nth-of-type(2) {
    display: inline !important;
    margin-top: 0 !important;
    margin-left: 10px !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }
  .barsana-milestones > div > div:nth-of-type(3) {
    margin-top: 8px !important;
    padding-right: 4px !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

  .barsana-closing {
    margin: 40px 0 0 !important;
    padding: 30px 0 50px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 24px !important;
  }
  .barsana-closing > p {
    font-size: 16px !important;
  }
  .barsana-closing > a {
    font-size: 13.5px !important;
    padding: 12px 22px !important;
  }
}

/* Homepage featured-products slider: preserve the original 2-card mobile behavior. */
@media (max-width: 760px) {
  section:has([data-testid="home-view-all-products"]) {
    padding: 40px 36px !important;
  }
  section:has([data-testid="home-view-all-products"])
    div[style*="overflow:hidden"] {
    padding: 10px 8px !important;
  }
  section:has([data-testid="home-view-all-products"])
    div[style*="min-width:calc"] {
    min-width: calc((min(1216px, 100vw - 32px) - 16px) / 2) !important;
    max-width: calc((min(1216px, 100vw - 32px) - 16px) / 2) !important;
  }
  section:has([data-testid="home-view-all-products"])
    div[style*="min-width:calc"]
    + div[style*="min-width:calc"] {
    margin-left: 0;
  }
}

/* Static conversion parity fixes ------------------------------------------------ */
.icon-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  line-height: 1;
  flex: 0 0 auto;
  vertical-align: middle;
}
.icon-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.brand-icon {
  font-family: Arial, sans-serif;
  font-size: 0.95em;
  font-weight: 700;
}

/* The original app uses these font families in individual sections. Keep the
   same families available after removing React/Tailwind's runtime. */
[style*="font-family:'Inter'"] {
  font-family: "Inter", sans-serif !important;
}
[style*="font-family:'Work Sans'"] {
  font-family: "Work Sans", sans-serif !important;
}
[style*="font-family:'Lora'"] {
  font-family: "Lora", Georgia, serif !important;
}
[style*="font-family:'JetBrains Mono'"] {
  font-family: "JetBrains Mono", "Courier New", monospace !important;
}
[style*="fontFamily: 'Inter'"] {
  font-family: "Inter", sans-serif !important;
}

/* Home product range: match the original responsive 2-card/3-card layout. */
.home-products-viewport {
  touch-action: pan-y;
  user-select: none;
}
.home-products-track {
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.home-product-slide {
  box-sizing: border-box;
}
.home-slider-dots {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 20px !important;
}
.home-slider-dot {
  width: 8px !important;
  height: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #ccc !important;
  cursor: pointer !important;
  transition:
    width 0.3s ease,
    background 0.3s ease !important;
}
.home-slider-dot.is-active {
  width: 20px !important;
  background: #1a1a2e !important;
}

@media (max-width: 900px) {
  section:has([data-testid="home-view-all-products"])
    div[style*="overflow:hidden"] {
    padding: 10px 8px !important;
  }
}

/* Mobile navigation active state must always be visible. */
.mobile-menu .mobile-link.active {
  background: #1f4d2c !important;
  color: #f8f1e1 !important;
  font-weight: 600 !important;
}
.mobile-menu .mobile-link.active:hover {
  background: #2d6a3e !important;
  color: #f8f1e1 !important;
}

/* ── Final mobile/navigation parity fixes ───────────────────────────────── */
/* The original React menu can be browsed independently when its contents are
   taller than the phone viewport. Keep the page itself scrollable as well. */
html,
body {
  overflow-x: hidden;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu {
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu .mobile-link.active {
  display: flex;
  align-items: center;
  min-height: 44px;
  background: #1f4d2c !important;
  color: #f8f1e1 !important;
  font-weight: 700 !important;
  box-shadow: inset 4px 0 0 #c9871f;
}

/* Match the source layout at tablet widths: the science copy sits above the
   two-column specification cards, rather than squeezing the cards into a
   narrow half-column. */
@media (max-width: 900px) {
  .science-grid {
    grid-template-columns: 1fr !important;
  }
  .science-specs-grid {
    grid-template-columns: 1fr 1fr !important;
    width: 100% !important;
  }
}

@media (max-width: 480px) {
  .science-specs-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Product-detail specs should use the full available width after the hero
   stacks on phones/tablets. */
@media (max-width: 768px) {
  .product-detail-hero-grid {
    grid-template-columns: 1fr !important;
  }
  .product-detail-specs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
  }
}

@media (max-width: 520px) {
  .product-detail-specs {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ================================================================
   FINAL SLIDER FIX - vanilla HTML/CSS/JS
   Native scrolling is used so mouse, touch and trackpad scrolling work.
   ================================================================ */
.hero-slider-viewport {
  position: relative !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  width: 100% !important;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}
.hero-slider-viewport::-webkit-scrollbar {
  display: none;
}
.hero-slider-track {
  display: flex !important;
  width: 500% !important;
  max-width: none !important;
  transform: none !important;
  transition: none !important;
  margin: 0 !important;
}
.hero-slide {
  flex: 0 0 20% !important;
  width: 20% !important;
  max-width: none !important;
  scroll-snap-align: start;
  user-select: none;
  -webkit-user-drag: none;
}

.home-products-viewport {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  touch-action: pan-x pan-y;
  cursor: grab;
}
.home-products-viewport:active {
  cursor: grabbing;
}
.home-products-track {
  display: flex !important;
  width: max-content !important;
  min-width: 100% !important;
  max-width: none !important;
  transform: none !important;
  transition: none !important;
}
.home-product-slide {
  flex: 0 0 auto !important;
  scroll-snap-align: start;
}

/* =========================================================
   SCIENCE SECTION — EXACT DESKTOP MATCH
   ========================================================= */

section:has(.science-grid) .science-grid {
  width: 100% !important;
  max-width: 1200px !important;

  margin-left: auto !important;
  margin-right: auto !important;

  padding: 80px 32px !important;

  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;

  align-items: center !important;
  box-sizing: border-box !important;
}

/* LEFT SIDE */

section:has(.science-grid) .science-grid > div:first-child {
  width: 100% !important;
  min-width: 0 !important;
}

section:has(.science-grid) .science-grid > div:first-child h2 {
  width: 100% !important;
  max-width: none !important;

  white-space: nowrap !important;

  font-size: clamp(2rem, 3vw, 2.5rem) !important;
  line-height: 1.2 !important;

  margin-top: 16px !important;
  margin-bottom: 0 !important;
}

section:has(.science-grid) .science-grid > div:first-child p {
  width: 100% !important;
  max-width: 650px !important;

  line-height: 1.65 !important;
}

/* RIGHT SIDE */

section:has(.science-grid) .science-specs-grid {
  width: 100% !important;
  max-width: none !important;

  display: grid !important;
  grid-template-columns: 1fr 1fr !important;

  gap: 20px !important;

  min-width: 0 !important;
}

section:has(.science-grid) .science-specs-grid > div {
  width: 100% !important;
  min-width: 0 !important;

  padding: 24px !important;

  box-sizing: border-box !important;
}

/* =========================================================
   DESKTOP — 1200px+
   ========================================================= */

@media (min-width: 1201px) {
  section:has(.science-grid) .science-grid {
    max-width: 1400px !important;
    padding-left: 82px !important;
    padding-right: 82px !important;
  }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {
  section:has(.science-grid) .science-grid {
    max-width: 100% !important;

    grid-template-columns: 1fr 1fr !important;

    gap: 28px !important;

    padding: 64px 32px !important;
  }

  section:has(.science-grid) .science-grid > div:first-child h2 {
    white-space: normal !important;
    max-width: 100% !important;
  }

  section:has(.science-grid) .science-specs-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {
  section:has(.science-grid) .science-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;

    padding: 56px 20px !important;
  }

  section:has(.science-grid) .science-grid > div:first-child h2 {
    white-space: normal !important;
  }

  section:has(.science-grid) .science-specs-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 14px !important;
  }
}

/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {
  section:has(.science-grid) .science-grid {
    padding: 48px 18px !important;
  }

  section:has(.science-grid) .science-specs-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   SCIENCE SECTION - MOBILE FINAL FIX
   ========================================================= */

@media (max-width: 700px) {
  section:has(.science-grid) .science-grid {
    width: 100% !important;
    max-width: 100% !important;

    display: grid !important;
    grid-template-columns: 1fr !important;

    padding: 56px 20px !important;
    gap: 40px !important;

    box-sizing: border-box !important;
  }

  /* LEFT CONTENT FULL WIDTH */
  section:has(.science-grid) .science-grid > div:first-child {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;

    grid-column: 1 / -1 !important;
  }

  /* MOBILE HEADING */
  section:has(.science-grid) .science-grid > div:first-child h2 {
    width: 100% !important;
    max-width: 100% !important;

    white-space: normal !important;

    font-size: 2rem !important;
    line-height: 1.2 !important;

    margin: 0 !important;
  }

  /* MOBILE PARAGRAPH */
  section:has(.science-grid) .science-grid > div:first-child p {
    width: 100% !important;
    max-width: 100% !important;

    font-size: 1rem !important;
    line-height: 1.65 !important;

    margin-top: 20px !important;
  }

  /* BUTTON */
  section:has(.science-grid) .science-grid > div:first-child a {
    margin-top: 24px !important;
  }

  /* SPECIFICATION BOXES */
  section:has(.science-grid) .science-specs-grid {
    width: 100% !important;
    max-width: 100% !important;

    grid-column: 1 / -1 !important;

    display: grid !important;
    grid-template-columns: 1fr 1fr !important;

    gap: 14px !important;
  }

  section:has(.science-grid) .science-specs-grid > div {
    width: 100% !important;
    min-width: 0 !important;

    padding: 18px !important;
    box-sizing: border-box !important;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {
  section:has(.science-grid) .science-grid {
    padding: 48px 18px !important;
  }

  section:has(.science-grid) .science-grid > div:first-child h2 {
    font-size: 1.9rem !important;
  }

  section:has(.science-grid) .science-specs-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* =========================================================
   SCIENCE CTA BUTTON — CLICK FIX
   ========================================================= */

section:has(.science-grid)
  .science-grid
  > div:first-child
  a[data-testid="science-cta"] {
  position: relative !important;
  z-index: 9999 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  cursor: pointer !important;
  pointer-events: auto !important;

  user-select: none !important;
  -webkit-user-select: none !important;

  text-decoration: none !important;
}

/* Make sure button children don't interfere with click */
section:has(.science-grid)
  .science-grid
  > div:first-child
  a[data-testid="science-cta"]
  span {
  pointer-events: none !important;
}

/* Prevent any pseudo element from sitting over CTA */
section:has(.science-grid)
  .science-grid
  > div:first-child
  a[data-testid="science-cta"]::before,
section:has(.science-grid)
  .science-grid
  > div:first-child
  a[data-testid="science-cta"]::after {
  pointer-events: none !important;
}
