﻿/* ============================================
   CK FOCUS - Premium Corporate Website
   Animal Health Solutions
   ============================================ */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@200;300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --primary: #11213A;
  --primary-light: #1a3258;
  --primary-dark: #0a1528;
  --primary-rgb: 17, 33, 58;
  --accent: #B4DB36;
  --accent-dark: #96b82e;
  --accent-light: #c8e85c;
  --accent-rgb: 180, 219, 54;
  --white: #FFFFFF;
  --white-rgb: 255, 255, 255;

  /* Neutral Colors */
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  /* Typography */
  --font: 'Kanit', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3rem;
  --fs-5xl: 3.5rem;

  /* Spacing */
  --section-py: 80px;
  --container-px: 20px;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.2);
  --shadow-accent: 0 4px 20px rgba(180,219,54,0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --navbar-h: 80px;
  --max-w: 1280px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-h);
}

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  outline: none;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.section-padding {
  padding: var(--section-py) 0;
}

.text-accent {
  color: var(--accent);
}

.text-white {
  color: var(--white);
}

.text-center {
  text-align: center;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-header .section-label svg {
  width: 16px;
  height: 16px;
}

.section-header h2 {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-header p {
  font-size: var(--fs-md);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Dark section header */
.dark-section .section-header h2 {
  color: var(--white);
}

.dark-section .section-header p {
  color: rgba(var(--white-rgb), 0.7);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 500;
  font-size: var(--fs-sm);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 0.3px;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(var(--white-rgb), 0.3);
}

.btn-outline:hover {
  background: rgba(var(--white-rgb), 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-line {
  background: #06C755;
  color: var(--white);
  border-color: #06C755;
  font-weight: 600;
}

.btn-line:hover {
  background: #05a847;
  border-color: #05a847;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(6,199,85,0.3);
}

.btn-lg {
  padding: 16px 36px;
  font-size: var(--fs-base);
}

.btn-sm {
  padding: 8px 20px;
  font-size: var(--fs-xs);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-h);
  z-index: 1000;
  transition: var(--transition);
  background: var(--primary);
}

.navbar.scrolled {
  background: rgba(var(--primary-rgb), 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 50px;
  width: auto;
}

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

.nav-logo-text .brand-name {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
}

.nav-logo-text .brand-name span {
  color: var(--accent);
}

.nav-logo-text .brand-tagline {
  font-size: var(--fs-xs);
  color: rgba(var(--white-rgb), 0.6);
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  color: rgba(var(--white-rgb), 0.75);
  font-weight: 400;
  font-size: var(--fs-sm);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  position: relative;
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--white);
  background: rgba(var(--white-rgb), 0.08);
}

.nav-menu a.active {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  font-weight: 500;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #06C755;
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: var(--transition);
}

.nav-line-btn:hover {
  background: #05a847;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(6,199,85,0.3);
}

.nav-line-btn svg {
  width: 20px;
  height: 20px;
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION (HOME)
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary);
  padding-top: var(--navbar-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mask-image: linear-gradient(to right, transparent 0%, black 30%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(var(--primary-rgb), 1) 0%, 
    rgba(var(--primary-rgb), 0.95) 30%, 
    rgba(var(--primary-rgb), 0.7) 60%, 
    rgba(var(--primary-rgb), 0.4) 100%);
}

/* Animated DNA/Molecule Pattern */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  /* Decoration only — must never swallow clicks on the hero buttons */
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.15);
  animation: floatParticle 15s infinite ease-in-out;
}

.particle:nth-child(1) {
  width: 300px; height: 300px;
  top: 10%; right: -5%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 200px; height: 200px;
  top: 60%; right: 20%;
  animation-delay: -5s;
}

.particle:nth-child(3) {
  width: 150px; height: 150px;
  bottom: 10%; left: 30%;
  animation-delay: -10s;
  background: rgba(var(--accent-rgb), 0.08);
}

.particle:nth-child(4) {
  width: 80px; height: 80px;
  top: 30%; right: 35%;
  animation-delay: -3s;
  background: rgba(var(--white-rgb), 0.05);
}

.particle:nth-child(5) {
  width: 120px; height: 120px;
  bottom: 30%; left: 10%;
  animation-delay: -7s;
  background: rgba(var(--accent-rgb), 0.06);
}

@keyframes floatParticle {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 15px) scale(1.02); }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 400;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-title .highlight {
  color: var(--accent);
  display: block;
}

.hero-subtitle {
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.hero-desc {
  font-size: var(--fs-md);
  color: rgba(var(--white-rgb), 0.7);
  margin-bottom: 36px;
  line-height: 1.8;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Visual (right side) */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-img {
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.hero-visual-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Product floating cards on hero */
.hero-product-float {
  position: absolute;
  background: rgba(var(--white-rgb), 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(var(--white-rgb), 0.15);
  border-radius: var(--radius-md);
  padding: 12px;
  animation: floatCard 6s infinite ease-in-out;
  z-index: 3;
}

.hero-product-float img {
  height: 60px;
  width: auto;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============================================
   HERO FEATURES (Icon Row below hero text)
   ============================================ */
.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.hero-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.hero-feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
}

.hero-feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.hero-feature-item span {
  font-size: var(--fs-xs);
  color: rgba(var(--white-rgb), 0.7);
  font-weight: 300;
  line-height: 1.4;
}

/* ============================================
   CERTIFICATIONS BAR
   ============================================ */
.cert-bar {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border-top: 1px solid rgba(var(--white-rgb), 0.06);
  border-bottom: 1px solid rgba(var(--white-rgb), 0.06);
  padding: 28px 0;
  overflow: hidden;
}

.cert-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(var(--white-rgb), 0.04);
  border: 1px solid rgba(var(--white-rgb), 0.08);
  border-radius: var(--radius-md);
  transition: var(--transition);
  flex: 1;
  min-width: 180px;
}

.cert-item:hover {
  background: rgba(var(--white-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.3);
  transform: translateY(-2px);
}

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.cert-info h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.cert-info p {
  font-size: var(--fs-xs);
  color: rgba(var(--white-rgb), 0.5);
  font-weight: 300;
}

.cert-cta {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  cursor: pointer;
  min-width: 200px;
}

.cert-cta:hover {
  background: var(--accent-dark) !important;
  border-color: var(--accent-dark) !important;
}

.cert-cta .cert-icon {
  background: rgba(var(--primary-rgb), 0.2);
}

.cert-cta .cert-icon svg {
  color: var(--primary);
}

.cert-cta .cert-info h4 {
  color: var(--primary);
}

.cert-cta .cert-info p {
  color: rgba(var(--primary-rgb), 0.7);
}

/* ============================================
   ANIMAL CATEGORIES
   ============================================ */
.categories {
  background: var(--gray-50);
  position: relative;
  overflow: hidden;
}

.categories::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 0% 0%, rgba(var(--accent-rgb), 0.05) 0%, transparent 50%);
}

.cat-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.cat-header-row h2 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.cat-header-row h2 span {
  color: var(--accent);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--primary);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: var(--transition);
  group: true;
}

.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.cat-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  opacity: 0.15;
  transition: var(--transition-slow);
}







.cat-card:hover .cat-card-bg {
  opacity: 0.25;
  transform: scale(1.1);
}

.cat-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(var(--primary-rgb), 0.95) 0%, transparent 100%);
  z-index: 2;
}

.cat-card-content h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.cat-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: var(--transition);
}

.cat-card-link svg {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

.cat-card:hover .cat-card-link svg {
  transform: translateX(4px);
}

/* Category card image placeholders with gradients */
.cat-card.poultry { background: linear-gradient(135deg, #1a3258 0%, #0f1d30 100%); }
.cat-card.bird { background: linear-gradient(135deg, #1d3660 0%, #11213A 100%); }
.cat-card.swine { background: linear-gradient(135deg, #1a3055 0%, #0e1a2e 100%); }
.cat-card.aqua { background: linear-gradient(135deg, #152a48 0%, #0a1528 100%); }

/* Category card SVG icons */
.cat-card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 100px;
  height: 100px;
  opacity: 0.2;
  transition: var(--transition-slow);
}

.cat-card:hover .cat-card-icon {
  opacity: 0.35;
  transform: translate(-50%, -60%) scale(1.1);
}

.cat-card-icon svg {
  width: 100%;
  height: 100%;
  color: var(--accent);
}

/* ============================================
   WHY CHOOSE US
   ============================================ */
.why-choose {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.why-choose::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.06) 0%, transparent 70%);
}

.why-header {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
}

.why-header h2 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

.why-header h2 span {
  color: var(--accent);
}

.why-divider {
  height: 2px;
  background: linear-gradient(to right, var(--accent), transparent);
  flex: 1;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.why-card {
  background: rgba(var(--white-rgb), 0.04);
  border: 1px solid rgba(var(--white-rgb), 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
}

.why-card:hover {
  background: rgba(var(--white-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.3);
  transform: translateY(-4px);
}

.why-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.why-card h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.why-card p {
  font-size: var(--fs-xs);
  color: rgba(var(--white-rgb), 0.6);
  font-weight: 300;
  line-height: 1.6;
}

/* ============================================
   STATS / COUNTER SECTION
   ============================================ */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(var(--white-rgb), 0.04);
  border: 1px solid rgba(var(--white-rgb), 0.08);
  transition: var(--transition);
}

.stat-item:hover {
  background: rgba(var(--white-rgb), 0.08);
  transform: translateY(-4px);
}

.stat-number {
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label,
.stat-text {
  font-size: var(--fs-sm);
  color: var(--white);
  font-weight: 300;
}

/* ============================================
   PAGE HERO (Sub-pages)
   ============================================ */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background: var(--primary);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle at 70% 50%, rgba(var(--accent-rgb), 0.08) 0%, transparent 60%);
}

.page-hero-hex {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23B4DB36' fill-opacity='1'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* The breadcrumb is a flex row, so text-align alone can't centre it */
.page-hero .breadcrumb {
  justify-content: center;
}

.page-hero h1 {
  font-size: var(--fs-4xl);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero h1 span {
  color: var(--accent);
}

.page-hero p {
  font-size: var(--fs-md);
  color: rgba(var(--white-rgb), 0.7);
  max-width: 600px;
  /* Without auto margins the 600px block stays pinned to the left */
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: var(--fs-sm);
}

.breadcrumb a {
  color: rgba(var(--white-rgb), 0.5);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .separator {
  color: rgba(var(--white-rgb), 0.3);
}

.breadcrumb .current {
  color: var(--accent);
  font-weight: 500;
}

/* ============================================
   PRODUCTS PAGE
   ============================================ */
.product-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: var(--fs-sm);
  font-weight: 400;
  font-family: var(--font);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.filter-btn:hover {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-dark);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--accent);
  border-color: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.product-card-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card-img .product-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--gray-400);
}

.product-card-img .product-placeholder svg {
  width: 48px;
  height: 48px;
}

.product-card-img .product-placeholder span {
  font-size: var(--fs-sm);
  font-weight: 400;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.product-card-body {
  padding: 24px;
}

.product-card-body .product-category {
  font-size: var(--fs-xs);
  color: var(--accent-dark);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.product-card-body h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.product-card-body p {
  font-size: var(--fs-sm);
  color: var(--gray-600);
  margin-bottom: 20px;
  line-height: 1.7;
  font-weight: 300;
}

.product-card-body .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-intro {
  background: var(--white);
}

.about-intro .container { }

.about-text h3 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-text h3 span {
  color: var(--accent);
}

.about-text p {
  font-size: var(--fs-base);
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.8;
  font-weight: 300;
}

.about-img-box {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img-box .about-logo-display {
  padding: 40px;
}

.about-img-box .about-logo-display img {
  max-width: 250px;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,0.3));
}

.about-img-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
}

/* Vision Mission */
.vision-mission {
  background: var(--gray-50);
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.vm-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.vm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
}

.vm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.vm-card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.vm-card-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent-dark);
}

.vm-card h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}

.vm-card p {
  font-size: var(--fs-base);
  color: var(--gray-600);
  line-height: 1.8;
  font-weight: 300;
}

/* Values */
.values-section {
  background: var(--white);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.value-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.value-card-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.value-card h4 {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.value-card p {
  font-size: var(--fs-sm);
  color: var(--gray-600);
  font-weight: 300;
  line-height: 1.7;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
  background: var(--gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* contact.html marks these up as .info-card / .info-icon / .info-content,
   so both naming schemes are kept on every selector below. */
.contact-info-card,
.info-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.contact-info-card:hover,
.info-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.contact-info-icon,
.info-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg,
.info-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-dark);
}

.contact-info-text h4,
.info-content h4 {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-info-text p,
.info-content p {
  font-size: var(--fs-sm);
  color: var(--gray-600);
  font-weight: 300;
  line-height: 1.6;
}

.contact-info-text a,
.info-content a {
  color: var(--accent-dark);
  font-weight: 400;
}

.contact-info-text a:hover,
.info-content a:hover {
  color: var(--accent);
}

/* ---------- QR panel (contact page, right column) ---------- */
.qr-box {
  align-self: start;
  position: sticky;
  top: calc(var(--navbar-h) + 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 32px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.qr-box h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.qr-box > p {
  max-width: 340px;
  font-size: var(--fs-sm);
  color: var(--gray-600);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 28px;
}

.qr-frame {
  position: relative;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 110% at 50% 0%, rgba(var(--accent-rgb), 0.12) 0%, transparent 65%),
    var(--gray-50);
  border: 1px solid var(--gray-200);
}

/* The QR is a real <img> in contact.html now (it carries alt text, which a
   CSS background cannot). This layer used to hold it as a background image
   and would otherwise draw it a second time. */

/* Scanner-style corner brackets */
.qr-corner {
  position: absolute;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 3px solid var(--accent-dark);
}

.qr-corner--tl {
  top: 12px;
  left: 12px;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 10px;
}

.qr-corner--tr {
  top: 12px;
  right: 12px;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 10px;
}

.qr-corner--bl {
  bottom: 12px;
  left: 12px;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 10px;
}

.qr-corner--br {
  bottom: 12px;
  right: 12px;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 10px;
}

.qr-cta {
  margin-top: 28px;
  width: 100%;
  max-width: 300px;
  justify-content: center;
}

.qr-hint {
  margin-top: 12px;
  font-size: var(--fs-xs);
  color: var(--gray-500);
  font-weight: 300;
}

/* Single-column layout — nothing left to stick to */
@media (max-width: 1024px) {
  .qr-box {
    position: static;
    padding: 32px 24px;
  }
}

/* Contact Form */
.contact-form-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.contact-form-box h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-form-box > p {
  font-size: var(--fs-sm);
  color: var(--gray-600);
  margin-bottom: 28px;
  font-weight: 300;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 300;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Map */
.map-section {
  background: var(--white);
}

.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  height: 400px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder {
  text-align: center;
  color: var(--gray-500);
}

.map-placeholder svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

/* Social Links */
.social-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.social-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.social-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.social-link-card.line {
  border-color: #06C755;
  background: rgba(6, 199, 85, 0.03);
}

.social-link-card.facebook {
  border-color: #1877f2;
  background: rgba(24, 119, 242, 0.03);
}

.social-link-card.web {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.03);
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-link-card.line .social-icon {
  background: #06C755;
}

.social-link-card.facebook .social-icon {
  background: #1877f2;
}


.social-link-card.tiktok .social-icon {

  background: #010101;

}


.social-link-card.youtube .social-icon {

  background: #FF0000;

}

.social-link-card.web .social-icon {
  background: var(--primary);
}

.social-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.social-link-text h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gray-800);
}

.social-link-text p {
  font-size: var(--fs-xs);
  color: var(--gray-500);
  font-weight: 300;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary-dark);
  color: rgba(var(--white-rgb), 0.7);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.04) 0%, transparent 70%);
}

.footer-main {
  padding: 60px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.footer-brand .nav-logo {
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: rgba(var(--white-rgb), 0.5);
  font-weight: 300;
  margin-bottom: 20px;
}

.footer h4 {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: var(--fs-sm);
  color: rgba(var(--white-rgb), 0.5);
  font-weight: 300;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item span {
  font-size: var(--fs-sm);
  color: rgba(var(--white-rgb), 0.5);
  font-weight: 300;
  line-height: 1.6;
}

.footer-contact-item a {
  color: rgba(var(--white-rgb), 0.7);
}

.footer-contact-item a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(var(--white-rgb), 0.06);
  border: 1px solid rgba(var(--white-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  color: var(--white);
}

.footer-social a:hover svg {
  color: var(--primary);
}

/* LINE CTA in footer */
.footer-line-cta {
  background: rgba(6, 199, 85, 0.1);
  border: 1px solid rgba(6, 199, 85, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-top: 24px;
}

.footer-line-cta p {
  font-size: var(--fs-sm);
  color: var(--white);
  margin-bottom: 12px;
}

.footer-line-cta .highlight {
  color: #06C755;
  font-weight: 500;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(var(--white-rgb), 0.06);
  padding: 24px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: var(--fs-xs);
  color: rgba(var(--white-rgb), 0.35);
  font-weight: 300;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Staggered delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ============================================
   BACK TO TOP
   ============================================ */


.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}



.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(var(--white-rgb), 0.08);
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.08);
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: var(--fs-md);
  color: rgba(var(--primary-rgb), 0.7);
  max-width: 500px;
  margin: 0 auto 32px;
  font-weight: 400;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  :root {
    --fs-4xl: 2.5rem;
    --fs-3xl: 2rem;
    --fs-2xl: 1.75rem;
    --section-py: 60px;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-features {
    grid-template-columns: repeat(4, 1fr);
  }

  .cert-bar .container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .social-links-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-4xl: 2rem;
    --fs-3xl: 1.75rem;
    --fs-2xl: 1.5rem;
    --navbar-h: 70px;
    --section-py: 48px;
  }

  /* Mobile Nav */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--primary-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 100px 30px 40px;
    gap: 8px;
    transition: var(--transition);
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu a {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: var(--fs-base);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-right .nav-line-btn {
    display: none;
  }

  .hero-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .why-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .why-header h2 {
    white-space: normal;
  }

  .why-divider {
    width: 100%;
  }

  .vm-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .social-links-grid {
    grid-template-columns: 1fr;
  }

  .cat-header-row {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  :root {
    --fs-4xl: 1.75rem;
    --fs-3xl: 1.5rem;
    --container-px: 16px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--navbar-h) + 20px);
    padding-bottom: 40px;
  }

  .hero-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-item {
    min-width: 100%;
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-box {
    padding: 24px;
  }
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  transition: var(--transition);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ============================================
   LOADING ANIMATION
   ============================================ */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(var(--white-rgb), 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-inner {
  width: 30%;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: loading 1.5s infinite ease-in-out;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* ============================================
   ADDITIONAL PREMIUM EFFECTS
   ============================================ */

/* Glow effect */
.glow-accent {
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.15);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass card */
.glass-card {
  background: rgba(var(--white-rgb), 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--white-rgb), 0.1);
  border-radius: var(--radius-lg);
}

/* Shimmer effect */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(var(--white-rgb), 0.05) 50%, 
    transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* DNA Helix decorative */
.dna-decoration {
  position: absolute;
  width: 60px;
  opacity: 0.06;
}

/* Product card image display */
.product-display-icon {
  width: 80px;
  height: 80px;
  color: var(--primary);
  opacity: 0.4;
}

/* ============================================
   CROSS-PAGE COMPATIBILITY LAYER
   Normalizes different class names from subagents
   ============================================ */

/* ---------- Navbar Compat ---------- */
.navbar .container,
.navbar .navbar-container,
.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-px);
  width: 100%;
}

/* Logo variants */
.navbar .logo,
.navbar .nav-logo,
.navbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar .logo img,
.navbar .nav-logo img,
.navbar .brand img,
.navbar .logo-img,
.navbar .brand-logo {
  height: 50px;
  width: auto;
  border-radius: 6px;
}

.navbar .logo-text,
.navbar .brand-text,
.navbar .nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar .brand-name,
.navbar .brand-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
}

.navbar .brand-ck,
.navbar .text-green,
.brand-name span[style*="B4DB36"] {
  color: var(--accent) !important;
}

.navbar .brand-focus,
.navbar .text-white {
  color: var(--white);
}

.navbar .brand-tagline {
  font-size: var(--fs-xs);
  color: rgba(var(--white-rgb), 0.6);
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Nav menu variants */
.navbar .nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar .nav-menu .nav-links,
.navbar .nav-menu .nav-list,
.navbar .nav-menu ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar .nav-menu a,
.navbar .nav-menu .nav-link,
.navbar .nav-links a,
.navbar .nav-list a,
.navbar .nav-menu li a {
  color: rgba(var(--white-rgb), 0.75);
  font-weight: 400;
  font-size: var(--fs-sm);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  position: relative;
  transition: var(--transition);
  text-decoration: none;
}

.navbar .nav-menu a:hover,
.navbar .nav-menu li a:hover {
  color: var(--white);
  background: rgba(var(--white-rgb), 0.08);
}

.navbar .nav-menu a.active,
.navbar .nav-menu li a.active {
  background: rgba(180, 219, 54, 0.15); /* Slightly transparent accent color for dark background */
  color: var(--accent);
  font-weight: 500;
}

/* Nav actions / right side */
.navbar .nav-actions,
.navbar .nav-right,
.navbar .nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar .btn-line-oa,
.navbar .nav-cta,
.navbar .line-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #06C755 !important;
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  border: none;
}

.navbar .btn-line-oa:hover,
.navbar .nav-cta:hover,
.navbar .line-btn:hover {
  background: #05a847 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(6,199,85,0.3);
}

/* Hamburger / Mobile Toggle variants */
.mobile-toggle,
.hamburger,
.menu-toggle,
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  background: none;
  border: none;
}

.mobile-toggle span,
.hamburger .bar,
.hamburger span,
.menu-toggle .hamburger,
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}

.menu-toggle .hamburger {
  width: 24px;
  height: 14px;
  position: relative;
}

.menu-toggle .hamburger::before,
.menu-toggle .hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

.menu-toggle .hamburger::before { top: 0; }
.menu-toggle .hamburger::after { bottom: 0; }

/* Mobile overlay */
.mobile-overlay,
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  transition: var(--transition);
}

.mobile-overlay.active,
.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ---------- Loader Compat ---------- */
.page-loader,
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  gap: 20px;
}

.page-loader.hidden,
.loader-wrapper.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-spinner,
.loader {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(var(--white-rgb), 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: 3px;
}

.loader-ck,
.loader-text .brand-ck {
  color: var(--accent);
}

.loader-focus,
.loader-text .brand-focus {
  color: var(--white);
}

/* ---------- Hero Compat ---------- */
.hero .container,
.hero .hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  /* Stack above the decorative particle layer so links stay clickable */
  position: relative;
  z-index: 2;
}

.hero .hero-container.grid-2-col {
  grid-template-columns: 1fr 1fr;
}

.hero-buttons,
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-features-grid,
.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.hero-feature,
.hero-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 16px 8px;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.1);
}

.hero-feature svg,
.hero-feature-item svg {
  color: var(--accent);
}

.hero-feature span,
.hero-feature-item span {
  font-size: var(--fs-xs);
  color: rgba(var(--white-rgb), 0.7);
  font-weight: 300;
  line-height: 1.4;
}

/* ---------- Cert Bar Compat ---------- */
.cert-bar .container,
.cert-bar .cert-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cert-bar .cert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(var(--white-rgb), 0.04);
  border: 1px solid rgba(var(--white-rgb), 0.08);
  border-radius: var(--radius-md);
  transition: var(--transition);
  flex: 1;
  min-width: 180px;
  color: rgba(var(--white-rgb), 0.8);
  font-size: var(--fs-sm);
}

.cert-bar .cert-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.cert-bar .cert-cta {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.cert-bar .cert-cta:hover {
  background: var(--accent-dark);
}

.cert-bar .cert-cta svg {
  color: var(--primary);
}

/* ---------- Categories Compat ---------- */
.section-title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 40px;
  line-height: 1.3;
}

.dark-section .section-title {
  color: var(--white);
}

.section-title .text-green,
.section-title span {
  color: var(--accent);
}

/* Cat card adjustments */
.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
}

.cat-card .cat-card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  opacity: 0.2;
  transition: var(--transition-slow);
}

.cat-card:hover .cat-card-icon {
  opacity: 0.35;
  transform: translate(-50%, -60%) scale(1.1);
}

.cat-card .cat-card-icon svg {
  color: var(--accent);
}

.cat-card .cat-card-content {
  position: relative;
  z-index: 2;
  padding: 24px;
  background: linear-gradient(to top, rgba(var(--primary-rgb), 0.95) 0%, transparent 100%);
}

.cat-card .cat-card-content h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--white);
}

.cat-card .cat-card-link {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 3;
}

.cat-card .cat-card-link svg {
  color: var(--accent);
  transition: var(--transition);
}

.cat-card:hover .cat-card-link svg {
  transform: translateX(4px);
}

/* ---------- Why Choose Compat ---------- */
.why-choose .why-header {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 50px;
}

.why-choose .divider-line {
  height: 2px;
  background: linear-gradient(to right, var(--accent), transparent);
  flex: 1;
}

.why-choose .why-card {
  background: rgba(var(--white-rgb), 0.04);
  border: 1px solid rgba(var(--white-rgb), 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  transition: var(--transition);
}

.why-choose .why-card svg {
  margin-bottom: 16px;
}

.why-choose .why-card h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.why-choose .why-card p {
  font-size: var(--fs-xs);
  color: rgba(var(--white-rgb), 0.6);
  font-weight: 300;
  line-height: 1.6;
}

/* ---------- Footer Compat ---------- */
.footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.footer .footer-col {
  display: flex;
  flex-direction: column;
}

.footer .footer-logo {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: block;
  text-decoration: none;
}

.footer .footer-logo .text-green { color: var(--accent); }
.footer .footer-logo .text-white { color: var(--white); }

.footer .footer-col > p {
  font-size: var(--fs-sm);
  color: rgba(var(--white-rgb), 0.5);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 20px;
}

.footer .footer-col h4 {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links li {
  margin-bottom: 4px;
}

.footer .footer-links a {
  display: block;
  padding: 6px 0;
  font-size: var(--fs-sm);
  color: rgba(var(--white-rgb), 0.5);
  font-weight: 300;
  transition: var(--transition);
  text-decoration: none;
}

.footer .footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer .footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: var(--fs-sm);
  color: rgba(var(--white-rgb), 0.5);
  font-weight: 300;
  line-height: 1.6;
}

.footer .footer-contact li svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer .social-links,
.footer .footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer .social-links a,
.footer .footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(var(--white-rgb), 0.06);
  border: 1px solid rgba(var(--white-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
}

.footer .social-links a:hover,
.footer .footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.footer .social-links a svg,
.footer .footer-social a svg {
  width: 18px;
  height: 18px;
  color: var(--white);
}

.footer .social-links a:hover svg,
.footer .footer-social a:hover svg {
  color: var(--primary);
}

.footer .footer-bottom {
  border-top: 1px solid rgba(var(--white-rgb), 0.06);
  padding-top: 24px;
  margin-top: 40px;
  text-align: center;
}

.footer .footer-bottom p {
  font-size: var(--fs-xs);
  color: rgba(var(--white-rgb), 0.35);
  font-weight: 300;
}

/* ---------- Text Utility Compat ---------- */
.text-green {
  color: var(--accent) !important;
}

.text-white {
  color: var(--white) !important;
}

/* ---------- Product Card Compat ---------- */
.product-card .product-img,
.product-card .product-image,
.product-card .product-card-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card .product-img svg,
.product-card .product-image svg,
.product-card .product-card-img svg {
  width: 64px;
  height: 64px;
  color: var(--gray-400);
}

.d-none-mobile {
  display: inline-flex;
}

/* ---------- Responsive Overrides ---------- */
@media (max-width: 1024px) {
  .hero .container,
  .hero .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons,
  .hero-btns {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .why-choose .why-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  /* Mobile nav */
  .mobile-toggle,
  .hamburger,
  .menu-toggle,
  .nav-toggle {
    display: flex;
  }

  .navbar .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--primary-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 100px 30px 40px;
    gap: 8px;
    transition: var(--transition);
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
    z-index: 1000;
  }

  .navbar .nav-menu.open,
  .navbar .nav-menu.active {
    right: 0;
  }

  .navbar .nav-menu .nav-links,
  .navbar .nav-menu .nav-list,
  .navbar .nav-menu ul {
    flex-direction: column;
    gap: 8px;
  }

  .navbar .nav-menu a,
  .navbar .nav-menu li a {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: var(--fs-base);
  }

  .navbar .nav-actions {
    display: none;
  }

  .d-none-mobile {
    display: none !important;
  }

  .hero-features-grid,
  .hero-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-features-grid,
  .hero-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.back-to-top.active {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-5px);
}

/* ---------- About Grid ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Category Image Updates */
.cat-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}
.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.cat-card:hover .cat-card-img img {
  transform: scale(1.1);
}
.cat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(17,33,58,0.9) 0%, rgba(17,33,58,0.3) 60%, rgba(17,33,58,0.1) 100%);
  z-index: 1;
}

/* Mobile Hero Fix */
@media (max-width: 991px) {
  .hero .hero-container.grid-2-col {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile Category Grid Fix */
@media (max-width: 768px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* Mobile Why-Grid Fix */
@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* ============================================
   HERO BANNER COLLAGE
   Lab / Research / DNA / Product / Aerial Farm
   ============================================ */
.hero-collage {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1.02;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1.15fr 0.85fr 1fr;
  gap: 14px;
}

/* --- Photo / graphic tiles --- */
.hero-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  background:
    radial-gradient(120% 100% at 30% 0%, rgba(var(--accent-rgb), 0.14) 0%, transparent 60%),
    linear-gradient(150deg, rgba(var(--white-rgb), 0.09) 0%, rgba(var(--white-rgb), 0.03) 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transition: var(--transition);
}

.hero-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-rgb), 0.45);
}

/* The image layer. Swap a tile's artwork by changing its url() below —
   paths are relative to this stylesheet, so they start with ../ .
   If a file is missing the layer stays empty and the tile falls back
   to its gradient + icon state. */
.hero-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
}

.hero-tile--farm::before {
  background-image: url("../imges/hero_farm.webp");
}

.hero-tile--lab::before {
  background-image: url("../imges/hero_lab.webp");
}

.hero-tile--product::before {
  background-image: url("../imges/hero_product.webp");
}

.hero-tile--dna::before {
  background-image: url("../imges/hero_molecular.webp");
}

.hero-tile:hover::before {
  transform: scale(1.06);
}

/* Scrim so captions stay readable on top of any photo */
.hero-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(var(--primary-rgb), 0.92) 0%,
    rgba(var(--primary-rgb), 0.35) 45%,
    rgba(var(--primary-rgb), 0.05) 100%
  );
}

.hero-tile-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  color: rgba(var(--accent-rgb), 0.5);
  z-index: 0;
}

.hero-tile figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 3;
  font-size: var(--fs-xs);
  font-weight: 400;
  line-height: 1.35;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.hero-tile figcaption small {
  display: block;
  margin-top: 2px;
  font-size: 0.72em;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Tile placement --- */
.hero-tile--farm    { grid-area: 1 / 1 / 2 / 3; }
.hero-tile--lab     { grid-area: 2 / 1 / 4 / 2; }
.hero-tile--product { grid-area: 2 / 2 / 3 / 3; }
.hero-tile--dna     { grid-area: 3 / 2 / 4 / 3; }

/* --- Molecule network drifting over the whole collage --- */
.hero-molecules {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.32;
  animation: heroMoleculeDrift 18s ease-in-out infinite;
}

/* The overlay is stretched with preserveAspectRatio="none", so strokes are
   pinned to device pixels instead of being scaled up with the viewBox. */
.hero-molecules line {
  stroke: var(--accent);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0.5;
}

.hero-molecules circle {
  fill: var(--accent);
}

@keyframes heroMoleculeDrift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-10px, 12px); }
}

/* --- Floating credibility chips --- */
.hero-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--white);
  white-space: nowrap;
  animation: heroChipFloat 6s ease-in-out infinite;
}

.hero-chip svg { color: var(--accent); flex-shrink: 0; }

.hero-chip--research { top: 12%; left: -26px; }
.hero-chip--gmp      { bottom: 16%; right: -22px; animation-delay: -3s; }

@keyframes heroChipFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

/* --- Responsive: keep the banner visible on tablet & phone --- */
@media (max-width: 1024px) {
  .hero .hero-visual {
    display: flex;
  }

  .hero-collage {
    max-width: 520px;
    margin: 8px auto 0;
    aspect-ratio: 1 / 0.8;
  }

  .hero-chip--research { left: -8px; }
  .hero-chip--gmp      { right: -8px; }
}

@media (max-width: 600px) {
  .hero-collage {
    aspect-ratio: 1 / 0.92;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.1fr 1fr;
    gap: 10px;
  }

  .hero-tile--farm    { grid-area: 1 / 1 / 2 / 3; }
  .hero-tile--lab     { grid-area: 2 / 1 / 3 / 2; }
  .hero-tile--product { grid-area: 2 / 2 / 3 / 3; }
  .hero-tile--dna     { display: none; }

  .hero-chip--research { top: 8px; left: 8px; }
  .hero-chip--gmp      { bottom: 8px; right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-molecules,
  .hero-chip {
    animation: none;
  }
}


/* ============================================
   HOMEPAGE ADDED SECTIONS
   Stats / Pain-Point / Featured / Process / FAQ
   ============================================ */

.delay-6 { transition-delay: 0.6s; }

/* ---------- Stats strip ---------- */
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(var(--accent-rgb), 0.10) 0%, transparent 55%);
  pointer-events: none;
}

.stats-section .container {
  position: relative;
  z-index: 2;
}

.stat-item .stat-icon {
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0.85;
}

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}

.stat-number-wrap .stat-number {
  margin-bottom: 0;
}

.stat-number-wrap .stat-plus {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

/* ---------- Pain point -> Solution ---------- */
.pain-section {
  background: var(--gray-50);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pain-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.pain-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(var(--accent-rgb), 0.35);
}

.pain-card .pain-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(var(--primary-rgb), 0.06);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.pain-card h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.pain-card > p {
  font-size: var(--fs-sm);
  color: var(--gray-600);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 20px;
}

.pain-solution {
  margin-top: auto;
  border-top: 1px dashed var(--gray-300);
  padding-top: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.pain-solution svg {
  flex-shrink: 0;
  color: var(--accent-dark);
  margin-top: 2px;
}

.pain-solution span {
  font-size: var(--fs-sm);
  color: var(--gray-800);
  font-weight: 500;
  line-height: 1.6;
}

/* ---------- Featured products ---------- */
.featured-section {
  background: var(--white);
}

.featured-foot {
  text-align: center;
  margin-top: 48px;
}

/* ---------- Process steps ---------- */
.process-section {
  background: var(--gray-50);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

/* Connector line behind the numbered badges */
.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    var(--gray-300) 0 8px,
    transparent 8px 16px
  );
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}

.process-step .step-num {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--accent);
  border: 3px solid var(--gray-50);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  font-weight: 700;
  transition: var(--transition);
}

.process-step:hover .step-num {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-4px);
}

.process-step h4 {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.process-step p {
  font-size: var(--fs-sm);
  color: var(--gray-600);
  font-weight: 300;
  line-height: 1.7;
}

/* ---------- FAQ accordion ---------- */
.faq-section {
  background: var(--white);
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  background: var(--white);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.open {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: var(--shadow-sm);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--primary);
  text-align: left;
  line-height: 1.6;
}

.faq-q:hover {
  color: var(--accent-dark);
}

.faq-q .faq-chevron {
  flex-shrink: 0;
  color: var(--accent-dark);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-q .faq-chevron {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-a p {
  padding: 0 24px 22px;
  font-size: var(--fs-sm);
  color: var(--gray-600);
  font-weight: 300;
  line-height: 1.8;
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pain-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin: 0 auto;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }

  .process-steps::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .pain-card {
    padding: 26px 22px;
  }

  .faq-q {
    padding: 18px 18px;
    font-size: var(--fs-sm);
  }

  .faq-a p {
    padding: 0 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-a,
  .faq-q .faq-chevron {
    transition: none;
  }
}

/* --------------------------------------------
   Hover-lift restore
   `.reveal.active` / `.reveal-scale.active` set a transform and sit later
   in this file than the card hover rules, so at equal specificity they won
   and no card on the homepage actually lifted on hover. Re-declare the
   lifts here (after them) with the reveal transform composed back in.
   -------------------------------------------- */
.reveal-scale.active.cat-card:hover     { transform: scale(1) translateY(-8px); }
.reveal-scale.active.why-card:hover     { transform: scale(1) translateY(-4px); }
.reveal-scale.active.stat-item:hover    { transform: scale(1) translateY(-4px); }
.reveal-scale.active.product-card:hover { transform: scale(1) translateY(-6px); }
.reveal-scale.active.pain-card:hover    { transform: scale(1) translateY(-6px); }
.reveal-scale.active.hero-feature:hover { transform: scale(1) translateY(-3px); }
.reveal.active .cert-item:hover         { transform: translateY(-2px); }


/* ============================================
   PRODUCT CARDS v2 + DATASHEET MODAL
   ============================================ */

/* Real product photography replaces the old placeholder tiles */
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: var(--transition-slow);
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-species {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.species-chip {
  font-size: var(--fs-xs);
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(var(--primary-rgb), 0.07);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.12);
  white-space: nowrap;
}

.product-card-body .product-th-name {
  font-size: var(--fs-sm);
  color: var(--gray-500);
  font-weight: 300;
  margin: -4px 0 10px;
}

.product-note {
  text-align: center;
  margin-top: 48px;
  font-size: var(--fs-sm);
  color: var(--gray-600);
  font-weight: 300;
}

.product-note a {
  color: var(--accent-dark);
  font-weight: 500;
  text-decoration: underline;
}

/* ---------- Modal shell ---------- */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.product-modal[hidden] {
  display: none;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(var(--primary-rgb), 0.75);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.25s ease;
}

.product-modal-panel {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 840px;
  max-height: 88vh;
  overflow-y: auto;
  animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.product-modal-close {
  position: sticky;
  top: 12px;
  float: right;
  right: 12px;
  margin: 12px 12px 0 0;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.product-modal-close:hover {
  background: var(--primary);
  color: var(--accent);
  border-color: var(--primary);
}

.product-modal-body {
  padding: 8px 36px 36px;
}

/* ---------- Datasheet content ---------- */
.detail-head {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: center;
  padding-bottom: 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.detail-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  border-radius: var(--radius-md);
  padding: 12px;
}

.detail-head h3 {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.detail-th {
  font-size: var(--fs-md);
  color: var(--gray-600);
  font-weight: 300;
  margin-bottom: 12px;
}

.detail-reg {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: var(--fs-sm);
  color: var(--gray-600);
  font-weight: 300;
}

.detail-reg svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent-dark);
}

.detail-reg strong {
  color: var(--primary);
  font-weight: 500;
}

.spec-block {
  padding: 22px 0;
  border-bottom: 1px solid var(--gray-100);
}

.spec-block h4 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.spec-block h4 svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: var(--accent-dark);
}

.spec-block p {
  font-size: var(--fs-sm);
  color: var(--gray-700);
  font-weight: 300;
  line-height: 1.8;
  margin: 0;
}

.spec-subhead {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary);
  margin: 14px 0 8px;
}

.spec-subhead:first-of-type {
  margin-top: 0;
}

.spec-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 6px 20px;
  margin: 0;
  padding: 0;
}

.spec-list li {
  position: relative;
  padding-left: 15px;
  font-size: var(--fs-sm);
  color: var(--gray-700);
  font-weight: 300;
  line-height: 1.7;
}

.spec-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.dose-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.dose-list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: start;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.dose-list dt {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary);
}

.dose-list dd {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--gray-700);
  font-weight: 300;
  line-height: 1.7;
}

.spec-warn h4 svg {
  color: #d97706;
}

.spec-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px 24px;
  margin: 24px 0 0;
  padding-top: 4px;
}

.spec-facts > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-facts dt {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gray-500);
  font-weight: 500;
}

.spec-facts dd {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--primary);
  font-weight: 400;
  line-height: 1.6;
}

.spec-facts dd small {
  display: block;
  color: var(--gray-600);
  font-weight: 300;
  font-size: var(--fs-xs);
  margin-top: 3px;
}

@media (max-width: 640px) {
  .product-modal {
    padding: 0;
  }

  .product-modal-panel {
    max-width: none;
    max-height: 100vh;
    height: 100%;
    border-radius: 0;
  }

  .product-modal-body {
    padding: 8px 20px 32px;
  }

  .detail-head {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .detail-img {
    max-width: 190px;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
  }

  .detail-head .product-species,
  .detail-reg {
    justify-content: center;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }

  .dose-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-modal-backdrop,
  .product-modal-panel {
    animation: none;
  }

  .product-card:hover .product-card-img img {
    transform: none;
  }
}


/* ---------- Filter pills: counts, result line, empty state ---------- */

.filter-result {
  text-align: center;
  margin: 20px 0 40px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-200);
  font-size: var(--fs-sm);
  color: var(--gray-600);
  font-weight: 300;
}

.filter-empty {
  text-align: center;
  margin: 40px 0;
  padding: 40px 20px;
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  color: var(--gray-600);
  font-weight: 300;
}

.filter-empty[hidden] {
  display: none;
}


/* ---------- Two-axis filter bar ---------- */
/* Label sits centred above its pills. Keeping it inline would leave the two
   rows' labels at different x positions, because the purpose row is far wider
   than the species row and wraps. */
.filter-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.filter-group .filter-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.3px;
}

.filter-group .product-filter {
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* A combination that would show nothing is dimmed rather than hidden, so the
   catalogue's shape stays legible. */
.filter-btn.is-zero {
  opacity: 0.4;
}

.filter-btn.is-zero:not(.active) {
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .filter-group {
    gap: 8px;
    margin-bottom: 20px;
  }

  .filter-group .product-filter {
    gap: 8px;
  }
}


/* ---------- Datasheet footer action ---------- */
.detail-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--gray-200);
}

.detail-actions .detail-cta {
  gap: 9px;
}

@media (max-width: 640px) {
  .detail-actions {
    margin-top: 24px;
  }

  /* Full-width tap target once the modal goes edge to edge */
  .detail-actions .detail-cta {
    width: 100%;
    justify-content: center;
  }
}


/* ============================================
   ORDER / QUOTE REQUEST FORM
   ============================================ */

.order-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.order-product {
  font-size: var(--fs-sm);
  color: var(--accent-dark);
  font-weight: 500;
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gray-200);
}

.order-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.order-field {
  margin-bottom: 14px;
}

.order-field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 5px;
}

.order-field label span {
  color: #dc3545;
}

.order-field input,
.order-field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 300;
  padding: 11px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-800);
  transition: var(--transition);
}

.order-field input:focus,
.order-field textarea:focus {
  outline: none;
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}

.order-field textarea {
  resize: vertical;
  line-height: 1.7;
}

/* Honeypot: off-screen rather than display:none, which some bots skip */
.order-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.order-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.order-note {
  font-size: var(--fs-xs);
  color: var(--gray-600);
  text-align: center;
  margin: 14px 0 0;
  font-weight: 300;
  line-height: 1.7;
}

.order-alert {
  display: none;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-bottom: 18px;
}

.order-alert.is-visible {
  display: block;
}

.order-alert--error {
  background: #fdf2f3;
  border: 1px solid #f5c2c7;
  color: #b02a37;
}

.order-alert--ok {
  background: #f0f9f4;
  border: 1px solid #badbcc;
  color: #146c43;
  font-weight: 500;
}

@media (max-width: 560px) {
  .order-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}


/* ============================================
   CONTACT — real QR + extra social channels
   ============================================ */

/* The QR is a real image now, not the dashed placeholder tile. */
.qr-frame .qr-img {
  display: block;
  width: 100%;
  max-width: 230px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

.social-link-card.tiktok:hover  { border-color: rgba(0, 0, 0, 0.3); }
.social-link-card.youtube:hover { border-color: rgba(255, 0, 0, 0.4); }

.map-cta {
  text-align: center;
  margin: 28px 0 0;
}


/* ============================================
   SHOPPING CART
   ============================================ */

/* ---------- price + quantity on the card ---------- */

.product-price {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

.product-price .per {
  font-size: var(--fs-sm);
  font-weight: 300;
  color: var(--gray-600);
}

.product-price--ask {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--accent-dark);
}

.qty-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.qty-row .btn {
  flex: 1;
  justify-content: center;
  padding-left: 14px;
  padding-right: 14px;
  white-space: nowrap;
}

.qty-stepper {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--white);
}

.qty-btn {
  width: 34px;
  border: none;
  background: var(--gray-50);
  color: var(--primary);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--accent);
}

.qty-input {
  width: 42px;
  border: none;
  border-left: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
  text-align: center;
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--primary);
  background: var(--white);
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-input:focus {
  outline: 2px solid rgba(var(--accent-rgb), 0.5);
  outline-offset: -2px;
}

.qty-stepper--sm .qty-btn { width: 28px; font-size: var(--fs-sm); }
.qty-stepper--sm .qty-input { width: 36px; font-size: var(--fs-xs); }

/* The datasheet footer stacks price above the controls */
.detail-actions {
  display: block;
}

.detail-actions .product-price {
  margin-bottom: 12px;
}

/* ---------- floating button ---------- */

.cart-fab {
  position: fixed;
  right: 26px;
  bottom: 96px;
  z-index: 1500;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: var(--accent);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 26px rgba(var(--primary-rgb), 0.4);
  transition: var(--transition);
}

.cart-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(var(--primary-rgb), 0.5);
}

.cart-fab.is-empty {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.cart-fab-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--primary);
  font-size: var(--fs-xs);
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--white);
}

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 2100;
  transform: translate(-50%, 20px);
  padding: 13px 24px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 400;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.cart-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- cart panel ---------- */

.cart-panel {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
}

.cart-head {
  display: flex;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.cart-head h3 {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.cart-close {
  position: static;
  margin-left: auto;
  float: none;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 28px;
}

.cart-foot {
  flex-shrink: 0;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-100);
}

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

.cart-item-img {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  object-fit: contain;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 5px;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-name {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--primary);
}

.cart-item-sub {
  font-size: var(--fs-xs);
  color: var(--gray-600);
  font-weight: 300;
}

.cart-item-unit {
  font-size: var(--fs-sm);
  color: var(--gray-700);
  margin-top: 3px;
}

.cart-item-unit .ask { color: var(--accent-dark); font-weight: 500; }

.cart-item-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.cart-item-total {
  min-width: 86px;
  text-align: right;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--primary);
}

.cart-remove {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
}

.cart-remove:hover {
  background: #fdf2f3;
  border-color: #f5c2c7;
  color: #dc3545;
}

.cart-empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--gray-500);
}

.cart-empty p {
  margin: 14px 0 22px;
  font-weight: 300;
}

/* ---------- summary ---------- */

.cart-summary { padding: 20px 28px 4px; }

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--gray-700);
  margin-bottom: 8px;
  font-weight: 300;
}

.cart-summary-total {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--gray-300);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--primary);
}

.cart-note {
  font-size: var(--fs-xs);
  color: var(--gray-600);
  font-weight: 300;
  margin: 4px 0 0;
  line-height: 1.7;
}

.cart-actions {
  display: flex;
  gap: 12px;
  padding: 18px 28px 24px;
}

.cart-actions .btn-ghost-dark {
  background: transparent;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  white-space: nowrap;
}

.cart-actions .btn-ghost-dark:hover {
  background: var(--white);
  border-color: var(--gray-500);
}

.cart-actions .btn-primary { flex: 1; justify-content: center; }

/* ---------- checkout ---------- */

.checkout-summary {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 22px;
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: var(--fs-sm);
  font-weight: 300;
  color: var(--gray-700);
  padding: 5px 0;
}

.checkout-line em {
  font-style: normal;
  color: var(--gray-600);
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-300);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--primary);
}

.checkout-done {
  text-align: center;
  padding: 30px 10px 12px;
  color: var(--gray-700);
}

.checkout-done svg { color: #198754; }

.checkout-done h4 {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--primary);
  margin: 16px 0 10px;
}

.checkout-done p {
  font-weight: 300;
  line-height: 1.8;
  margin: 0 0 8px;
}

.checkout-done strong { color: var(--primary); font-weight: 600; }

.checkout-done .muted-note {
  font-size: var(--fs-sm);
  color: var(--gray-600);
  margin-bottom: 22px;
}

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .cart-fab { right: 16px; bottom: 84px; width: 54px; height: 54px; }

  .cart-panel { max-height: 100vh; height: 100%; border-radius: 0; }
  .cart-head, .cart-body { padding-left: 18px; padding-right: 18px; }
  .cart-summary, .cart-actions { padding-left: 18px; padding-right: 18px; }

  .cart-item { flex-wrap: wrap; gap: 12px; }
  .cart-item-info { flex: 1 1 calc(100% - 78px); }
  .cart-item-right { width: 100%; justify-content: space-between; }
  .cart-item-total { min-width: 0; }

  .cart-actions { flex-direction: column-reverse; }
  .cart-actions .btn { width: 100%; justify-content: center; }

  .qty-row { flex-wrap: wrap; }
  .qty-row .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cart-fab, .cart-toast { transition: none; }
}

/* ============================================================
   HOME · HERO v2 + TRUST PANEL
   โครงตามม็อกอัพหน้าแรก (2026-09)
   สลับภาพในคอลลาจได้ที่ index.html → .hero-collage2 img[src]
   ============================================================ */

/* สีเขียวชุดนี้ต้องประกาศที่ :root ไม่ใช่แค่ใน .hero-v2
   เพราะ .btn-leaf ถูกใช้นอก hero ด้วย (เช่นท้ายแผงหมวดสัตว์)
   ถ้าประกาศเฉพาะใน hero ปุ่มนอก hero จะได้ค่าว่าง → พื้นหลังโปร่งใส */
:root {
  --leaf: #3ea34a;
  --leaf-dark: #33883d;
  --leaf-bright: #8cc63f;
}

.hero-v2 {
  --ink: 10, 22, 40;
  min-height: auto;
  background: rgb(var(--ink));
  padding-top: var(--navbar-h);
}

/* ---------- ฉากหลัง: ภาพฟาร์มพาโนรามาไล่จางเข้ามุมขวาบน ---------- */
.hero-v2 .hero-bg { z-index: 0; }

.hero-v2 .hero-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 74%;
  height: 76%;
  object-fit: cover;
  opacity: 0.85;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 34%),
    linear-gradient(to bottom, #000 52%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 34%),
    linear-gradient(to bottom, #000 52%, transparent 100%);
  mask-composite: intersect;
}

.hero-v2 .hero-gradient {
  background:
    linear-gradient(100deg,
      rgba(var(--ink), 0.98) 0%,
      rgba(var(--ink), 0.93) 30%,
      rgba(var(--ink), 0.58) 60%,
      rgba(var(--ink), 0.34) 100%),
    linear-gradient(to bottom,
      rgba(var(--ink), 0) 38%,
      rgba(var(--ink), 0.88) 100%);
}

.hero-v2 .hero-particles { opacity: 0.55; }

/* ---------- ผัง 2 คอลัมน์ ---------- */
.hero-v2 .hero-container,
.hero-v2 .hero-container.grid-2-col {
  grid-template-columns: 1fr 1.05fr;
  gap: 44px;
  align-items: center;
  padding-top: 46px;
  padding-bottom: 56px;
}

.hero-v2 .hero-text { max-width: 620px; }

/* ---------- ชุดตัวอักษร ---------- */
.hero-v2 .hero-title {
  font-size: clamp(2rem, 3.3vw, 3rem);
  font-weight: 700;
  line-height: 1.26;
  color: var(--white);
  margin: 0 0 16px;
}

.hero-v2 .hero-title .hl {
  color: var(--leaf-bright);
  display: inline;
}

.hero-v2 .hero-lead-accent {
  font-size: clamp(1.2rem, 1.75vw, 1.7rem);
  font-weight: 600;
  color: var(--leaf-bright);
  line-height: 1.35;
  margin: 0 0 4px;
}

.hero-v2 .hero-lead {
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.45;
  margin: 0 0 20px;
}

.hero-v2 .hero-tagline {
  font-size: var(--fs-base);
  font-weight: 400;
  color: var(--leaf-bright);
  letter-spacing: 0.01em;
  margin: 0 0 22px;
}

.hero-v2 .hero-tagline span {
  opacity: 0.65;
  margin: 0 6px;
}

.hero-v2 .hero-desc {
  font-size: var(--fs-sm);
  font-weight: 300;
  color: rgba(var(--white-rgb), 0.72);
  line-height: 2;
  margin: 0 0 34px;
}

/* ---------- ปุ่ม ---------- */
.btn-leaf {
  background: var(--leaf, #3ea34a);
  border-color: var(--leaf, #3ea34a);
  color: var(--white);
  font-weight: 500;
}

.btn-leaf:hover {
  background: var(--leaf-dark, #33883d);
  border-color: var(--leaf-dark, #33883d);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(62, 163, 74, 0.38);
}

.hero-v2 .hero-buttons { gap: 18px; }

.hero-v2 .btn-outline {
  border-color: rgba(var(--white-rgb), 0.45);
  color: var(--white);
}

/* ============================================================
   คอลลาจ 2×2 ฝั่งขวา
   ============================================================ */
.hero-collage2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 640px;
  margin-left: auto;
}

.hcard {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 11;
  background: #0c1c30;
  border: 1px solid rgba(var(--white-rgb), 0.1);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
  transition: var(--transition);
}

.hcard:hover {
  transform: translateY(-4px);
  border-color: rgba(140, 198, 63, 0.4);
}

.hcard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hcard:hover img { transform: scale(1.05); }

/* ม่านไล่สีให้ตัวหนังสืออ่านออกบนภาพทุกแบบ */
.hcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top,
    rgba(6, 17, 30, 0.95) 0%,
    rgba(6, 17, 30, 0.74) 34%,
    rgba(6, 17, 30, 0.2) 68%,
    rgba(6, 17, 30, 0.04) 100%);
}

.hcard figcaption {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 11px;
  color: var(--white);
}

.hcard-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--leaf, #3ea34a);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.38);
}

.hcard-icon svg { width: 19px; height: 19px; }

.hcard-copy { display: block; line-height: 1.36; min-width: 0; }

.hcard-copy strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white);
}

.hcard-copy small {
  display: block;
  font-size: 0.735rem;
  font-weight: 300;
  color: rgba(var(--white-rgb), 0.74);
  line-height: 1.45;
}

/* ตราประทับ GMP+ มุมขวาล่างของการ์ดธรรมชาติ */
.gmp-seal {
  position: absolute;
  right: 13px;
  bottom: 15px;
  z-index: 3;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--leaf, #3ea34a);
  border: 2px solid rgba(var(--white-rgb), 0.55);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hcard--nature figcaption { right: 78px; }

/* ============================================================
   TRUST PANEL · จุดยืน / หลักฐาน / ตัวเลข
   ============================================================ */
.trust-panel {
  background: var(--white);
  padding: 36px 0 48px;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1.95fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* ---------- การ์ดขาวฝั่งซ้าย ---------- */
.trust-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 30px 32px 32px;
  box-shadow: 0 10px 34px rgba(17, 33, 58, 0.07);
}

.trust-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pillar + .pillar {
  border-left: 1px solid var(--gray-200);
  padding-left: 20px;
  margin-left: -6px;
}

.pillar-icon {
  flex: 0 0 auto;
  width: 40px;
  color: var(--leaf, #3ea34a);
}

.pillar-icon svg { width: 36px; height: 36px; display: block; }

.pillar h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
  margin: 0 0 5px;
}

.pillar p {
  font-size: 0.76rem;
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

/* เบรกกิ้งภาษาไทย: ห้าม Chrome ฉีกกลางคำในกล่องแคบ */
.pillar h3,
.pillar p,
.proof span,
.hcard-copy {
  overflow-wrap: normal;
  word-break: normal;
  line-break: normal;
}

.trust-sep {
  border: 0;
  border-top: 1px solid var(--gray-200);
  margin: 28px 0 22px;
}

.trust-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 20px;
}

.trust-proofs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.proof {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--gray-700);
  line-height: 1.6;
}

.proof + .proof {
  border-left: 1px solid var(--gray-200);
  padding-left: 16px;
}

.proof svg {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  color: var(--primary);
  opacity: 0.8;
}

/* ---------- การ์ดตัวเลขฝั่งขวา ---------- */
.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 28px 30px 26px;
  background: linear-gradient(160deg, #12253f 0%, #0b1a2d 100%);
  box-shadow: 0 18px 44px rgba(10, 21, 40, 0.3);
  display: flex;
  flex-direction: column;
}

/* แผนที่ประเทศไทยจาง ๆ เป็นพื้นหลัง */
.stat-card .stat-map {
  position: absolute;
  right: -6px;
  top: 8%;
  height: 86%;
  width: auto;
  opacity: 0.08;
  pointer-events: none;
}

.stat-card .stat-map path { fill: var(--leaf-bright, #8cc63f); }

.stat-card-title {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 24px;
}

.stat-grid2 {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  flex: 1;
}

.stat2 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px 16px 0;
}

.stat2:nth-child(2n) {
  border-left: 1px solid rgba(var(--white-rgb), 0.1);
  padding-left: 20px;
  padding-right: 0;
}

.stat2:nth-child(-n + 2) { border-bottom: 1px solid rgba(var(--white-rgb), 0.1); }

.stat2 > svg {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: var(--leaf-bright, #8cc63f);
  opacity: 0.9;
}

.stat2-value {
  display: flex;
  align-items: baseline;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--leaf-bright, #8cc63f);
  line-height: 1.15;
}

.stat2-value--text { font-size: 1.28rem; }

.stat2-label {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(var(--white-rgb), 0.7);
  margin-top: 2px;
}

.stat-card-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--leaf-bright, #8cc63f);
  transition: var(--transition);
}

.stat-card-cta svg { width: 17px; height: 17px; flex: 0 0 auto; }
.stat-card-cta:hover { color: var(--white); }

/* ---------- ปุ่ม LINE บนแถบเมนู (สองบรรทัด) ---------- */
.btn-line-oa-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
  text-align: left;
}

.btn-line-oa-label em {
  font-style: normal;
  font-weight: 400;
  opacity: 0.95;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .trust-grid { grid-template-columns: 1.35fr 1fr; }
  .trust-card { padding: 26px 24px 28px; }
  .pillar + .pillar { padding-left: 18px; margin-left: -4px; }
}

@media (max-width: 991px) {
  .hero-v2 .hero-container,
  .hero-v2 .hero-container.grid-2-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-v2 .hero-text { max-width: none; }
  .hero-v2 .hero-title br,
  .hero-v2 .hero-desc br { display: none; }

  .hero-collage2 { max-width: 100%; margin: 0; }

  .hero-v2 .hero-bg-image {
    width: 100%;
    height: 62%;
    opacity: 0.35;
    -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
  }

  .trust-grid { grid-template-columns: 1fr; }
  .trust-panel { padding: 28px 0 40px; }
}

@media (max-width: 768px) {
  .trust-pillars { grid-template-columns: 1fr; gap: 18px; }
  .pillar + .pillar {
    border-left: 0;
    border-top: 1px solid var(--gray-200);
    padding-left: 0;
    padding-top: 18px;
    margin-left: 0;
  }

  .trust-proofs { grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
  .proof + .proof { border-left: 0; padding-left: 0; }
  .proof:nth-child(2n) {
    border-left: 1px solid var(--gray-200);
    padding-left: 14px;
  }

  .hcard figcaption { left: 11px; right: 11px; bottom: 11px; gap: 9px; }
  .hcard-icon { width: 32px; height: 32px; }
  .hcard-icon svg { width: 16px; height: 16px; }
  .hcard-copy strong { font-size: 0.78rem; }
  .hcard-copy small { font-size: 0.68rem; }
  .gmp-seal { width: 44px; height: 44px; font-size: 0.62rem; right: 10px; bottom: 11px; }
  .hcard--nature figcaption { right: 60px; }
}

@media (max-width: 560px) {
  .hero-collage2 { gap: 12px; }
  .hero-v2 .hero-buttons .btn { flex: 1 1 100%; justify-content: center; }
  .stat-grid2 { grid-template-columns: 1fr; }
  .stat2:nth-child(2n) { border-left: 0; padding-left: 0; }
  .stat2:nth-child(-n + 3) { border-bottom: 1px solid rgba(var(--white-rgb), 0.1); }
  .stat-card { padding: 24px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hcard, .hcard img { transition: none; }
}
/* ============================================================
   หน้าแรก · แท็บหมวดหมู่สัตว์ + รายการผลิตภัณฑ์รายหมวด
   (มาร์กอัปอยู่ใน index.html ส่วน "6. Animal Categories",
    เรนเดอร์รายการโดย js/species.js จาก /api/products)
   ============================================================ */

.categories .section-sub {
  max-width: 720px;
  margin: -8px auto 34px;
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 300;
  color: var(--gray-600);
  line-height: 1.8;
}

/* .cat-card เดิมเป็น <a> ตอนนี้เป็น <button> — ล้างสไตล์ปุ่มของเบราว์เซอร์ */
.cat-grid .cat-card {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  display: block;
}

.cat-grid .cat-card:focus-visible {
  outline: 3px solid var(--leaf-bright, #8cc63f);
  outline-offset: 3px;
}

/* แท็บที่กำลังเลือกอยู่ */
.cat-grid .cat-card.is-active {
  box-shadow: 0 0 0 3px var(--leaf, #3ea34a), var(--shadow-lg);
  transform: translateY(-4px);
}

.cat-grid .cat-card.is-active .cat-card-link {
  color: var(--white);
}

.cat-count {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 300;
  color: rgba(var(--white-rgb), 0.72);
  margin-bottom: 4px;
  min-height: 1em;
}

/* ---------- แผงรายการผลิตภัณฑ์ ---------- */
.species-panel {
  margin-top: 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 30px 32px 32px;
  box-shadow: 0 12px 40px rgba(17, 33, 58, 0.08);
}

.species-head {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.species-head h3 {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 6px;
}

.species-head .sp-title {
  color: var(--leaf, #3ea34a);
  margin-left: 8px;
}

.species-head .sp-note {
  font-size: var(--fs-xs);
  font-weight: 300;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.7;
}

.species-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  align-items: start;
}

.species-loading {
  grid-column: 1 / -1;
  padding: 28px 0;
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 300;
  color: var(--gray-600);
}

.species-loading a { color: var(--leaf, #3ea34a); text-decoration: underline; }

/* ---------- การ์ดผลิตภัณฑ์หนึ่งรายการ ---------- */
.sp-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: var(--gray-50);
  transition: var(--transition);
}

.sp-item:hover {
  border-color: rgba(62, 163, 74, 0.45);
  background: var(--white);
  box-shadow: 0 8px 26px rgba(17, 33, 58, 0.08);
}

.sp-thumb {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: grid;
  place-items: center;
}

.sp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.sp-thumb-empty {
  color: var(--gray-400);
}

.sp-thumb-empty svg { width: 34px; height: 34px; display: block; }

.sp-body { min-width: 0; flex: 1; }

.sp-name {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.35;
  margin: 0 0 3px;
}

.sp-name span {
  font-size: 0.82em;
  font-weight: 400;
  color: var(--gray-600);
}

.sp-reg {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--gray-500);
  letter-spacing: 0.02em;
  margin-bottom: 9px;
}

.sp-benefit {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--gray-700);
  line-height: 1.8;
  margin: 0 0 11px;
  overflow-wrap: normal;
  word-break: normal;
}

.sp-dose {
  border-left: 3px solid var(--leaf, #3ea34a);
  padding: 8px 0 8px 12px;
  background: rgba(62, 163, 74, 0.06);
  border-radius: 0 8px 8px 0;
}

.sp-dose strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--leaf-dark, #33883d);
  margin-bottom: 3px;
}

.sp-dose span {
  display: block;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--gray-700);
  line-height: 1.7;
}

.sp-pack {
  margin-top: 9px;
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--gray-500);
}

/* ---------- ท้ายแผง ---------- */
.species-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .species-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .species-panel { padding: 22px 18px 24px; border-radius: 16px; }
  .species-head h3 { font-size: var(--fs-lg); }
  .species-head .sp-title { display: block; margin-left: 0; }
  .sp-item { padding: 14px; gap: 12px; }
  .sp-thumb { flex-basis: 62px; width: 62px; height: 62px; }
  .species-foot .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .sp-item { flex-direction: column; }
  .sp-thumb { width: 72px; height: 72px; flex-basis: auto; }
}
/* ---------- การ์ดหมวดสัตว์: จัดกลาง + ฉากหลังเสมอกับการ์ด ----------
   เดิมมีไล่สี 2 ชั้นซ้อนกัน (.cat-card::after เต็มการ์ด และ .cat-card-content
   อีกชั้น) จึงเห็นเป็นรอยต่อกลางการ์ด ตอนนี้ให้ ::after ชั้นเดียวไล่จาก
   ขอบล่างขึ้นบน จึงกลืนไปกับการ์ดและโค้งตามมุมการ์ดพอดี */

.cat-grid .cat-card::after {
  background: linear-gradient(to top,
    rgba(var(--primary-rgb), 0.95) 0%,
    rgba(var(--primary-rgb), 0.80) 26%,
    rgba(var(--primary-rgb), 0.42) 58%,
    rgba(var(--primary-rgb), 0.14) 100%);
}

.cat-grid .cat-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 20px 16px 56px;      /* เว้นที่ด้านล่างให้ลูกศร */
  background: none;             /* ให้ ::after ทำหน้าที่ไล่สีชั้นเดียว */
  text-align: center;
}

.cat-grid .cat-card-content h3 {
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.cat-grid .cat-count {
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.cat-grid .cat-card-link {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 3;
  justify-content: center;
}

@media (max-width: 768px) {
  .cat-grid .cat-card-content { padding: 16px 12px 46px; }
  .cat-grid .cat-card-link { bottom: 14px; }
}
/* ---------- จัดเรียงคำบรรยายในการ์ด Hero ----------
   เดิมใช้ align-items:flex-end ไอคอนจึงถูกตรึงไว้บรรทัดล่างสุด
   พอข้อความตัดหลายบรรทัดบนจอแคบ ไอคอนเลยหลุดจากกลุ่มข้อความ */

.hcard figcaption {
  align-items: center;
  /* บนจอแคบ CSS เดิมของ hero จัดข้อความกึ่งกลาง คำบรรยายการ์ดต้องชิดซ้ายเสมอ */
  text-align: left;
}

.hcard-copy small {
  line-height: 1.5;
}

/* จอแคบ: วางไอคอนไว้เหนือข้อความ ให้ข้อความได้ความกว้างเต็มการ์ด
   และย้ายตรา GMP+ ขึ้นมุมขวาบน จะได้ไม่บีบคำบรรยาย */
@media (max-width: 640px) {
  .hcard figcaption {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .hcard--nature figcaption {
    right: 12px;
  }

  .gmp-seal {
    top: 11px;
    bottom: auto;
    right: 11px;
    width: 40px;
    height: 40px;
    font-size: 0.56rem;
    border-width: 1.5px;
  }

  .hcard-copy strong { font-size: 0.74rem; }
  .hcard-copy small { font-size: 0.64rem; }
}