/* ============================================
   John Deere Kanchanaburi CLM Technology
   Brand Colors & CSS Variables
   ============================================ */

:root {
  /* Brand Colors from Logo */
  --jd-green-dark: #1a5e1a;
  --jd-green: #367c2b;
  --jd-green-light: #4a9e3f;
  --jd-green-pale: #e8f5e3;
  --jd-yellow: #ffde00;
  --jd-yellow-dark: #d4b800;
  --jd-yellow-light: #fff176;
  --jd-black: #0a0a0a;
  --jd-dark: #1a1a1a;
  --jd-gray-900: #212121;
  --jd-gray-800: #2d2d2d;
  --jd-gray-700: #3a3a3a;
  --jd-gray-600: #555;
  --jd-gray-400: #999;
  --jd-gray-200: #e0e0e0;
  --jd-white: #ffffff;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Kanit', sans-serif;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-power: cubic-bezier(0.16, 1, 0.3, 1);

  /* Spacing */
  --section-padding: clamp(3rem, 8vw, 7rem);
  --container-max: 1400px;
}

/* ============================================
   Reset & Base
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--jd-black);
  color: var(--jd-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul { list-style: none; }

.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* ============================================
   Preloader
   ============================================ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, #103512 0%, #0a1f0b 45%, #050605 100%);
  transition: opacity 0.6s var(--ease-smooth), visibility 0.6s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Faint rotating aura behind the logo */
.preloader-glow-bg {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(54, 124, 43, 0.28) 0%, transparent 62%);
  filter: blur(10px);
  animation: preloader-aura 5s ease-in-out infinite;
}

@keyframes preloader-aura {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.18); opacity: 1; }
}

.preloader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding: 2rem;
}

.preloader-logo-wrap {
  position: relative;
}

.preloader-logo {
  width: clamp(160px, 30vw, 240px);
  border-radius: 12px;
  animation:
    preloader-pop 0.8s var(--ease-power) both,
    preloader-glow 2.4s ease-in-out 0.8s infinite;
}

@keyframes preloader-pop {
  from { opacity: 0; transform: scale(0.82) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes preloader-glow {
  0%, 100% {
    filter:
      drop-shadow(0 0 14px rgba(54, 124, 43, 0.4))
      drop-shadow(0 0 26px rgba(255, 222, 0, 0.12));
  }
  50% {
    filter:
      drop-shadow(0 0 26px rgba(54, 124, 43, 0.65))
      drop-shadow(0 0 50px rgba(255, 222, 0, 0.3));
  }
}

.preloader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  opacity: 0;
  animation: preloader-fade 0.7s var(--ease-power) 0.4s forwards;
}

.preloader-brand-name {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #ffde00;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.preloader-brand-sub {
  font-family: var(--font-body);
  font-size: clamp(0.62rem, 1.4vw, 0.78rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  color: #b7c4ad;
  text-transform: uppercase;
}

.preloader-progress {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.6rem;
  opacity: 0;
  animation: preloader-fade 0.7s var(--ease-power) 0.6s forwards;
}

.preloader-track {
  position: relative;
  width: clamp(210px, 62vw, 300px);
  height: 4px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 4px;
  overflow: hidden;
}

.preloader-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--jd-green), var(--jd-green-light), var(--jd-yellow));
  border-radius: 4px;
  box-shadow: 0 0 14px rgba(255, 222, 0, 0.45);
  transition: width 0.25s linear;
}

.preloader-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preloader-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #9aa791;
}

.preloader-percent {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffde00;
}

@keyframes preloader-fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s var(--ease-smooth);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.6rem 0;
  box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nav-logo {
  width: clamp(96px, 6.2vw, 116px);
  height: auto;
  max-height: 54px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.35));
  transition: width 0.4s var(--ease-smooth), transform 0.3s var(--ease-bounce);
}

.navbar.scrolled .nav-logo {
  width: clamp(88px, 5.5vw, 104px);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(0.75rem, 1.5vw, 1rem);
  color: var(--jd-yellow);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-brand-sub {
  font-size: clamp(0.55rem, 1vw, 0.7rem);
  color: var(--jd-gray-400);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.5rem);
}

.nav-links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}

/* Theme toggle button */
.theme-toggle {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--jd-yellow);
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.theme-toggle:hover {
  background: rgba(255, 222, 0, 0.15);
  border-color: rgba(255, 222, 0, 0.4);
  transform: translateY(-2px);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-icon-moon {
  display: none;
}

html[data-theme="light"] .theme-icon-sun {
  display: none;
}

html[data-theme="light"] .theme-icon-moon {
  display: block;
}

.nav-link {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  font-weight: 400;
  color: var(--jd-gray-200);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--jd-yellow);
  transition: width 0.3s var(--ease-smooth);
}

.nav-link:hover {
  color: var(--jd-yellow);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 5px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--jd-white);
  transition: all 0.3s var(--ease-smooth);
  transform-origin: center;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(30px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-smooth);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--jd-white);
  transition: color 0.3s;
  transform: translateY(20px);
  opacity: 0;
}

.mobile-menu.active a {
  animation: fadeSlideUp 0.4s var(--ease-power) forwards;
}

.mobile-menu.active a:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu.active a:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu.active a:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu.active a:nth-child(5) { animation-delay: 0.3s; }
.mobile-menu.active a:nth-child(6) { animation-delay: 0.35s; }

/* ============================================
   Hero Video Background
   ============================================ */

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  /* gradient: เข้มซ้าย-ล่าง (ที่ข้อความอยู่) → โปร่งขวา */
  background: linear-gradient(
    135deg,
    rgba(5, 20, 5, 0.82) 0%,
    rgba(10, 30, 10, 0.60) 45%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--jd-black) 0%, #0d2b0d 50%, var(--jd-black) 100%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(54,124,43,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,222,0,0.05) 0%, transparent 40%);
  z-index: 1;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,222,0,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,222,0,0.5) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--jd-yellow);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 8s infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; top: 60%; animation-delay: 1.5s; }
.particle:nth-child(3) { left: 45%; top: 30%; animation-delay: 3s; }
.particle:nth-child(4) { left: 65%; top: 70%; animation-delay: 0.8s; }
.particle:nth-child(5) { left: 80%; top: 40%; animation-delay: 2.2s; }
.particle:nth-child(6) { left: 90%; top: 15%; animation-delay: 4s; }
.particle:nth-child(7) { left: 15%; top: 80%; animation-delay: 1s; }
.particle:nth-child(8) { left: 55%; top: 85%; animation-delay: 2.8s; }

@keyframes float-particle {
  0% { opacity: 0; transform: translateY(0) scale(1); }
  20% { opacity: 0.8; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-200px) scale(0); }
}

.hero-content {
  position: relative;
  z-index: 5;
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: block;
  padding-top: 5rem;
}

.hero-text {
  max-width: 680px;
  opacity: 0;
  animation: heroFadeIn 1s var(--ease-power) 0.5s forwards;
}

/* Hero highlight chips */
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  opacity: 0;
  animation: heroFadeIn 1s var(--ease-power) 0.8s forwards;
}

.hero-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  padding: 1rem 1.6rem;
  background: rgba(10, 20, 10, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 222, 0, 0.18);
  border-radius: 10px;
}

.hero-highlight-num {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--jd-yellow);
  line-height: 1;
}

.hero-highlight-label {
  font-size: clamp(0.65rem, 0.9vw, 0.78rem);
  color: #d6dccf;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.35rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255,222,0,0.1);
  border: 1px solid rgba(255,222,0,0.2);
  border-radius: 50px;
  font-size: clamp(0.65rem, 1vw, 0.8rem);
  color: var(--jd-yellow);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jd-green-light);
  animation: blink 2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .highlight {
  color: var(--jd-yellow);
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--jd-green);
  opacity: 0.6;
}

.hero-desc {
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: var(--jd-gray-400);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 520px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 500;
  padding: 1rem 2.2rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.35s var(--ease-smooth);
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--jd-yellow);
  color: var(--jd-black);
}

.btn-primary:hover {
  background: var(--jd-yellow-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255,222,0,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--jd-white);
  border: 1.5px solid var(--jd-gray-600);
}

.btn-outline:hover {
  border-color: var(--jd-green-light);
  color: var(--jd-green-light);
  transform: translateY(-3px);
}

.btn-line {
  background: #06c755;
  color: var(--jd-white);
  border: 1.5px solid #06c755;
}

.btn-line:hover {
  background: #07d65e;
  border-color: #07d65e;
  color: var(--jd-white);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(6,199,85,0.28);
}

.btn-icon {
  font-size: 1.2em;
  transition: transform 0.3s;
}

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

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: heroVisualIn 1.2s var(--ease-power) 0.8s forwards;
}

.hero-tractor-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-tractor-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(54,124,43,0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

.hero-tractor-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
  transition: transform 0.6s var(--ease-smooth);
}

.hero-tractor-img:hover {
  transform: scale(1.03);
}

.hero-stats {
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
  z-index: 3;
}

.hero-stat {
  text-align: center;
  background: rgba(26,26,26,0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255,222,0,0.1);
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--jd-yellow);
}

.hero-stat-label {
  font-size: clamp(0.6rem, 0.9vw, 0.75rem);
  color: var(--jd-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.2rem;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroVisualIn {
  from { opacity: 0; transform: translateX(60px) scale(0.9); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.6s var(--ease-power) 1.5s forwards;
}

.scroll-indicator span {
  font-size: 0.65rem;
  color: var(--jd-gray-400);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--jd-yellow), transparent);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.4; }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Section Common Styles
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  color: var(--jd-yellow);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--jd-yellow);
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--jd-gray-400);
  margin-top: 1rem;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s var(--ease-power);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s var(--ease-power);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s var(--ease-power);
}

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

/* ============================================
   Products Section
   ============================================ */

.products {
  padding: var(--section-padding) 0;
  background: var(--jd-dark);
  position: relative;
}

.products::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--jd-green), transparent);
}

/* Filter tabs */
.product-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  font-weight: 500;
  padding: 0.55rem 1.4rem;
  background: transparent;
  color: var(--jd-gray-400);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
}

.filter-btn:hover {
  color: var(--jd-white);
  border-color: var(--jd-green-light);
}

.filter-btn.active {
  background: var(--jd-yellow);
  color: var(--jd-black);
  border-color: var(--jd-yellow);
  font-weight: 600;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
}

.product-card.is-hidden {
  display: none;
}

.product-card.anim {
  animation: cardIn 0.45s var(--ease-power) both;
}

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

.products-more {
  display: flex;
  justify-content: center;
  margin-top: 2.75rem;
}

.products-more.is-hidden {
  display: none;
}

.products-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 600;
  padding: 0.85rem 2rem;
  color: var(--jd-white);
  background: linear-gradient(135deg, rgba(54,124,43,0.18), rgba(54,124,43,0.05));
  border: 1px solid rgba(74,158,63,0.35);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.35s var(--ease-smooth);
}

.products-more-btn:hover {
  background: linear-gradient(135deg, var(--jd-green), var(--jd-green-light));
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(54,124,43,0.3);
}

.products-more-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease-smooth);
}

.products-more-btn[aria-expanded="true"] .products-more-icon {
  transform: rotate(180deg);
}

.products-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: var(--jd-gray-600);
  font-weight: 300;
}

.product-card {
  position: relative;
  background: var(--jd-gray-900);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,222,0,0.2);
  box-shadow: 0 25px 60px rgba(0,0,0,0.5), 0 0 40px rgba(54,124,43,0.1);
}

.product-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--jd-gray-800), var(--jd-gray-900));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.2rem;
  transition: transform 0.6s var(--ease-smooth);
}

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

.product-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.8rem;
  background: var(--jd-green);
  color: var(--jd-white);
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-card-badge.hot {
  background: #e53935;
}

.product-card-badge.new {
  background: var(--jd-yellow);
  color: var(--jd-black);
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-series {
  font-size: 0.7rem;
  color: var(--jd-green-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.product-card-name {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-card-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.product-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  text-align: center;
  padding: 0.65rem 0.35rem;
  background: rgba(74,158,63,0.08);
  border: 1px solid rgba(74,158,63,0.15);
  border-radius: 10px;
}

.product-spec-val {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--jd-yellow);
}

.product-spec-label {
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--jd-gray-400);
}

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

.product-price {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  font-weight: 800;
  color: var(--jd-yellow);
}

.product-price-label {
  font-size: 0.65rem;
  color: var(--jd-gray-400);
  font-weight: 400;
}

.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--jd-green-light);
  transition: all 0.3s;
}

.product-card-link:hover {
  color: var(--jd-yellow);
  gap: 0.8rem;
}

/* ============================================
   Product Detail Page
   ============================================ */

.product-detail-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(54, 124, 43, 0.18), transparent 34%),
    linear-gradient(135deg, #0a0a0a 0%, #141814 55%, #0a0a0a 100%);
}

.product-detail-main {
  padding-top: 86px;
}

.product-detail-hero {
  min-height: auto;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}

.product-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  pointer-events: none;
}

.product-detail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.product-detail-media {
  min-height: clamp(280px, 40vw, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 55%, rgba(54, 124, 43, 0.32), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-detail-img {
  width: min(100%, 720px);
  max-height: clamp(260px, 36vw, 520px);
  object-fit: contain;
  filter: drop-shadow(0 28px 42px rgba(0, 0, 0, 0.42));
}

.product-detail-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.35rem;
  color: var(--jd-gray-400);
  font-size: 0.92rem;
  transition: color 0.25s var(--ease-smooth);
}

.product-detail-back:hover {
  color: var(--jd-yellow);
}

.product-detail-title {
  margin-top: 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 5.2vw, 5rem);
  line-height: 0.95;
  color: var(--jd-white);
}

.product-detail-desc {
  margin-top: 1.2rem;
  max-width: 620px;
  color: var(--jd-gray-400);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.8;
}

.product-detail-specs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.product-detail-spec {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 222, 0, 0.18);
}

.product-detail-spec span {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 800;
  color: var(--jd-yellow);
}

.product-detail-spec small {
  margin-top: 0.3rem;
  color: var(--jd-gray-400);
  font-size: 0.82rem;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.product-detail-section {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.product-detail-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-detail-panel {
  min-height: 280px;
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-detail-panel h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  color: var(--jd-white);
}

.product-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.product-detail-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--jd-gray-400);
  line-height: 1.65;
}

.product-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.66rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jd-yellow);
  box-shadow: 0 0 14px rgba(255, 222, 0, 0.45);
}

.product-detail-panel--cta {
  background: linear-gradient(135deg, rgba(54, 124, 43, 0.22), rgba(255, 222, 0, 0.07));
  border-color: rgba(255, 222, 0, 0.22);
}

.product-detail-panel--cta p {
  margin-top: 1rem;
  color: var(--jd-gray-400);
  line-height: 1.7;
}

.product-detail-mini-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.product-detail-mini-actions a {
  color: var(--jd-yellow);
  font-weight: 700;
}

.product-detail-related-section {
  padding-top: 1rem;
}

.product-detail-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.product-related-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 126px;
  padding: 0.8rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s var(--ease-smooth), border-color 0.25s var(--ease-smooth);
}

.product-related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 222, 0, 0.35);
}

.product-related-card img {
  width: 110px;
  height: 92px;
  object-fit: contain;
}

.product-related-card span {
  display: block;
  color: var(--jd-green-light);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-related-card strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--jd-white);
  font-size: 1rem;
}

/* ============================================
   Features / Why Choose Us
   ============================================ */

.features {
  padding: var(--section-padding) 0;
  background: var(--jd-black);
  position: relative;
  overflow: hidden;
}

.features-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(54,124,43,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 50%, rgba(255,222,0,0.04) 0%, transparent 50%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  position: relative;
  counter-reset: feature;
}

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

@media (max-width: 560px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.feature-card {
  counter-increment: feature;
  padding: 2.75rem 2.25rem 2.5rem;
  background: linear-gradient(160deg, rgba(45,45,45,0.55), rgba(20,20,20,0.75));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  transition: transform 0.5s var(--ease-smooth), border-color 0.5s var(--ease-smooth), box-shadow 0.5s var(--ease-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Animated gradient glow border on hover */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--jd-green-light), var(--jd-yellow) 60%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
  pointer-events: none;
}

.feature-card:hover::before {
  opacity: 1;
}

/* Large faint number watermark */
.feature-card::after {
  content: counter(feature, decimal-leading-zero);
  position: absolute;
  top: 1.1rem;
  right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(255,255,255,0.04);
  transition: color 0.5s var(--ease-smooth);
  pointer-events: none;
}

.feature-card:hover::after {
  color: rgba(255,222,0,0.12);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 40px rgba(54,124,43,0.12);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(54,124,43,0.28), rgba(74,158,63,0.12));
  border: 1px solid rgba(74,158,63,0.25);
  border-radius: 18px;
  margin-bottom: 1.75rem;
  color: var(--jd-green-light);
  position: relative;
  box-shadow: 0 8px 24px rgba(54,124,43,0.18);
  transition: transform 0.45s var(--ease-smooth), background 0.45s var(--ease-smooth), color 0.45s var(--ease-smooth), box-shadow 0.45s var(--ease-smooth);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(145deg, var(--jd-green), var(--jd-green-light));
  color: #fff;
  transform: translateY(-4px) rotate(-6deg);
  box-shadow: 0 14px 30px rgba(54,124,43,0.4);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
  transition: color 0.4s var(--ease-smooth);
}

.feature-card:hover .feature-title {
  color: var(--jd-yellow);
}

.feature-desc {
  font-size: clamp(0.85rem, 1vw, 0.92rem);
  color: var(--jd-gray-400);
  line-height: 1.75;
  font-weight: 300;
}

/* ============================================
   About / Story Section
   ============================================ */

.about {
  padding: var(--section-padding) 0;
  background: var(--jd-dark);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--jd-green-dark), var(--jd-gray-900));
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.6s var(--ease-smooth);
}

.about-image-box:hover .about-img {
  transform: scale(1.03);
}

.about-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 2px solid var(--jd-yellow);
  border-radius: 12px;
  opacity: 0.2;
  z-index: -1;
}

.about-float-card {
  position: absolute;
  bottom: 2rem;
  left: -1rem;
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(10px);
  padding: 1.2rem 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255,222,0,0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: float 4s ease-in-out infinite;
}

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

.about-float-icon {
  width: 45px;
  height: 45px;
  background: var(--jd-green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jd-white);
  padding: 10px;
}

.about-float-icon svg {
  width: 100%;
  height: 100%;
}

.about-float-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.about-float-text span {
  font-size: 0.75rem;
  color: var(--jd-gray-400);
}

.about-content .section-label {
  justify-content: flex-start;
}

.about-content .section-label::before {
  display: none;
}

.about-content .section-title {
  text-align: left;
}

.about-text {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--jd-gray-400);
  line-height: 1.8;
  margin: 1.5rem 0;
  font-weight: 300;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.about-highlight {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 400;
}

.about-highlight-check {
  width: 22px;
  height: 22px;
  background: rgba(54,124,43,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jd-green-light);
  flex-shrink: 0;
  padding: 4px;
}

.about-highlight-check svg {
  width: 100%;
  height: 100%;
}

.about-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* ============================================
   Testimonials
   ============================================ */

.testimonials {
  padding: var(--section-padding) 0;
  background: var(--jd-black);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(54,124,43,0.08) 0%, transparent 60%);
}

.facebook-posts-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 2rem;
  position: relative;
}

/* ============================================
   TikTok latest clip
   ============================================ */

.tiktok-section {
  padding: var(--section-padding) 0;
  background: var(--jd-dark);
  position: relative;
  overflow: hidden;
}

.tiktok-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(37,244,238,0.06) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(254,44,85,0.06) 0%, transparent 45%);
  pointer-events: none;
}

.tiktok-embed-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

.tiktok-embed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px));
  gap: 1.75rem;
  justify-content: center;
  width: 100%;
}

.tiktok-embed-grid:has(.tiktok-embed-status) {
  grid-template-columns: minmax(0, 400px);
}

.tiktok-embed-frame {
  width: 100%;
  max-width: 400px;
  min-height: 560px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--jd-gray-900);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
  display: flex;
}

@media (max-width: 860px) {
  .tiktok-embed-grid {
    grid-template-columns: minmax(0, 400px);
  }
}

.tiktok-embed-iframe {
  width: 100%;
  height: 760px;
  border: 0;
  display: block;
}

.tiktok-embed-status {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 560px;
  padding: 2rem;
  color: var(--jd-gray-400);
  font-weight: 300;
}

.tiktok-embed-status a {
  color: var(--jd-green-light);
  text-decoration: underline;
}

.tiktok-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 600;
  padding: 0.8rem 1.9rem;
  color: var(--jd-white);
  background: linear-gradient(135deg, #fe2c55, #25f4ee);
  border-radius: 50px;
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s var(--ease-smooth);
}

.tiktok-follow-btn svg {
  width: 18px;
  height: 18px;
}

.tiktok-follow-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(254,44,85,0.35);
}

@media (max-width: 480px) {
  .tiktok-embed-iframe {
    height: 720px;
  }
}

.facebook-post-card {
  background: var(--jd-gray-900);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s var(--ease-smooth);
}

.facebook-post-card:hover {
  border-color: rgba(255,222,0,0.15);
  transform: translateY(-3px);
}

.facebook-post-card--status {
  padding: 2rem;
  color: var(--jd-gray-400);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.facebook-post-media {
  display: block;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--jd-gray-800), var(--jd-gray-900));
  overflow: hidden;
}

.facebook-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-smooth);
}

.facebook-post-card:hover .facebook-post-media img {
  transform: scale(1.04);
}

.facebook-post-body {
  padding: 1.5rem;
}

.facebook-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.facebook-post-page {
  color: var(--jd-yellow);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facebook-post-date {
  color: var(--jd-gray-600);
  font-size: 0.78rem;
  white-space: nowrap;
}

.facebook-post-text {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--jd-gray-200);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1rem;
  white-space: pre-line;
}

.facebook-post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.facebook-post-more {
  appearance: none;
  border: 1px solid rgba(255,222,0,0.28);
  border-radius: 999px;
  background: rgba(255,222,0,0.08);
  color: var(--jd-yellow);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  transition: background 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth);
}

.facebook-post-more:hover {
  background: var(--jd-yellow);
  border-color: var(--jd-yellow);
  color: var(--jd-black);
}

.facebook-post-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--jd-green-light);
  transition: color 0.3s var(--ease-smooth), gap 0.3s var(--ease-smooth);
}

.facebook-post-link:hover {
  color: var(--jd-yellow);
  gap: 0.65rem;
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
  padding: var(--section-padding) 0;
  background: var(--jd-dark);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(3rem, 5vw, 5rem);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-text {
  font-size: 1rem;
  color: var(--jd-gray-400);
  line-height: 1.8;
  font-weight: 300;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: rgba(54,124,43,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jd-green-light);
  flex-shrink: 0;
  transition: all 0.3s;
  padding: 12px;
}

.contact-item-icon svg {
  width: 100%;
  height: 100%;
}

.contact-item:hover .contact-item-icon {
  background: rgba(255,222,0,0.15);
}

.contact-item-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-item-text span {
  font-size: 0.85rem;
  color: var(--jd-gray-400);
  font-weight: 300;
  line-height: 1.5;
}

.contact-item-text a {
  color: inherit;
  transition: color 0.3s var(--ease-smooth);
}

.contact-item-text a:hover {
  color: var(--jd-yellow);
}

.contact-map-wrapper {
  background: var(--jd-gray-900);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
}

.contact-panel-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.contact-panel-sub {
  font-size: 0.85rem;
  color: var(--jd-gray-400);
  margin-bottom: 1.5rem;
}

.contact-map {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,222,0,0.1);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  display: block;
  border: 0;
  border-radius: 12px;
  transition: filter 0.3s;
}

.contact-map iframe:hover {
  filter: brightness(1.05);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--jd-black);
  padding: clamp(3rem, 5vw, 5rem) 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--jd-green), var(--jd-yellow), var(--jd-green), transparent);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo img {
  height: 42px;
  width: auto;
  border-radius: 6px;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--jd-yellow);
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--jd-gray-400);
  line-height: 1.7;
  font-weight: 300;
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.footer-social {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--jd-gray-800);
  border-radius: 8px;
  color: var(--jd-gray-400);
  transition: all 0.3s;
  padding: 8px;
}

.footer-social svg {
  width: 100%;
  height: 100%;
}

.footer-social:hover {
  background: var(--jd-green);
  color: var(--jd-white);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--jd-white);
  margin-bottom: 1.2rem;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--jd-gray-400);
  padding: 0.3rem 0;
  transition: all 0.3s;
  font-weight: 300;
}

.footer-col a:hover {
  color: var(--jd-yellow);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--jd-gray-600);
  font-weight: 300;
}

.footer-copy strong {
  color: var(--jd-yellow);
  font-weight: 600;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.75rem;
  color: var(--jd-gray-600);
  transition: color 0.3s;
}

.footer-legal a:hover {
  color: var(--jd-yellow);
}

/* ============================================
   Back to Top
   ============================================ */

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--jd-green);
  color: var(--jd-white);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s var(--ease-smooth);
  box-shadow: 0 4px 20px rgba(54,124,43,0.3);
  padding: 12px;
}

.back-to-top svg {
  width: 100%;
  height: 100%;
}

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

.back-to-top:hover {
  background: var(--jd-yellow);
  color: var(--jd-black);
  transform: translateY(-3px);
}

/* ============================================
   Counter Animation Style
   ============================================ */

.counter-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: linear-gradient(135deg, var(--jd-green-dark), #0d2b0d);
  position: relative;
  overflow: hidden;
}

.counter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.counter-item {
  text-align: center;
  padding: 1.5rem;
}

.counter-num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--jd-yellow);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.counter-label {
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  letter-spacing: 0.05em;
}

.counter-divider {
  width: 40px;
  height: 2px;
  background: var(--jd-yellow);
  opacity: 0.3;
  margin: 0.8rem auto 0;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
  .product-detail-grid,
  .product-detail-info-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-media {
    min-height: 360px;
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

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

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .hero-stats {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    justify-content: center;
    margin-top: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-content .section-label {
    justify-content: center;
  }

  .about-content .section-title {
    text-align: center;
  }

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

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

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

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

@media (max-width: 768px) {
  .product-detail-main {
    padding-top: 78px;
  }

  .product-detail-hero {
    padding-top: 2rem;
  }

  .product-detail-media {
    min-height: 260px;
  }

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

  .product-detail-actions {
    width: 100%;
  }

  .product-detail-actions .btn {
    flex: 1 1 180px;
    justify-content: center;
  }

  .nav-inner {
    min-height: 48px;
  }

  .nav-brand {
    padding: 0;
  }

  .nav-logo {
    width: 92px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
  }

  .hero-stat {
    padding: 0.8rem 1rem;
  }

  .hero-stat-num {
    font-size: 1.3rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .about-float-card {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 1rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .counter-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .btn {
    padding: 0.9rem 1.5rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .product-detail-title {
    font-size: clamp(2rem, 13vw, 3rem);
  }

  .product-related-card {
    grid-template-columns: 88px 1fr;
  }

  .product-related-card img {
    width: 88px;
    height: 76px;
  }

  .nav-logo {
    width: 82px;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-stat {
    width: 100%;
    max-width: 200px;
  }

  .hero-badge {
    font-size: 0.6rem;
  }

  .counter-item {
    padding: 1rem 0.5rem;
  }
}

/* ============================================
   Tractor Banner Image Section
   ============================================ */

.tractor-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  border-top: 3px solid var(--jd-yellow);
  border-bottom: 3px solid var(--jd-green-dark);
}

.tractor-banner-img {
  width: 100%;
  height: clamp(220px, 35vw, 500px);
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition: transform 0.8s var(--ease-smooth);
}

.tractor-banner:hover .tractor-banner-img {
  transform: scale(1.03);
}

.tractor-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0.65) 0%,
    rgba(10, 10, 10, 0.15) 50%,
    transparent 100%
  );
  display: flex;
  align-items: center;
}

.tractor-banner-text {
  padding: 2.5rem clamp(1.5rem, 6vw, 5rem);
  line-height: 1;
}

.tractor-banner-label {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(0.65rem, 1.2vw, 0.85rem);
  color: var(--jd-yellow);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 0.8rem;
}

.tractor-banner-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--jd-white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

@media (max-width: 600px) {
  .tractor-banner-text h2 {
    font-size: 1.4rem;
  }

  .tractor-banner-img {
    height: 200px;
    object-position: 55% center;
  }
}

/* ============================================
   Reduced Motion (Accessibility)
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  /* Make sure entrance/looping states resolve to their visible/resting form */
  .hero-text,
  .hero-visual,
  .scroll-indicator { opacity: 1 !important; transform: none !important; }

  .reveal,
  .reveal-left,
  .reveal-right { opacity: 1 !important; transform: none !important; }

  .particle { display: none; }

  .hero-tractor-glow,
  .about-float-card,
  .hero-badge-dot,
  .scroll-line { animation: none !important; }
}

/* ============================================
   Light Theme
   ============================================ */

html[data-theme="light"] {
  --jd-black: #eef1ec;      /* page background */
  --jd-dark: #ffffff;       /* alternate section bg */
  --jd-gray-900: #ffffff;   /* cards */
  --jd-gray-800: #e7ebe6;
  --jd-gray-700: #d8ddd6;
  --jd-gray-600: #8a908a;
  --jd-gray-400: #5b615b;
  --jd-gray-200: #262b25;
  --jd-white: #16210f;      /* primary text on light surfaces */
  color-scheme: light;
}

/* Surfaces that were hard-coded dark */
html[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .mobile-menu {
  background: rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] .feature-card {
  background: linear-gradient(160deg, #ffffff, #eef4ea);
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .feature-card::after {
  color: rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .feature-card:hover::after {
  color: rgba(54, 124, 43, 0.14);
}

html[data-theme="light"] .feature-card:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12), 0 0 40px rgba(54, 124, 43, 0.1);
}

html[data-theme="light"] .about-float-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(54, 124, 43, 0.25);
}

html[data-theme="light"] .product-card,
html[data-theme="light"] .facebook-post-card,
html[data-theme="light"] .contact-map-wrapper,
html[data-theme="light"] .product-detail-media,
html[data-theme="light"] .product-detail-panel,
html[data-theme="light"] .product-related-card {
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .product-card-image {
  background: linear-gradient(135deg, #f0f3ef, #e4e9e2);
}

html[data-theme="light"] .product-detail-page {
  background:
    radial-gradient(circle at 20% 0%, rgba(54, 124, 43, 0.14), transparent 34%),
    linear-gradient(135deg, #f6f8f5 0%, #ffffff 55%, #eef3ec 100%);
}

html[data-theme="light"] .product-detail-media,
html[data-theme="light"] .product-detail-panel,
html[data-theme="light"] .product-related-card {
  background: rgba(255, 255, 255, 0.78);
}

html[data-theme="light"] .product-detail-spec {
  background: rgba(54, 124, 43, 0.08);
  border-color: rgba(54, 124, 43, 0.18);
}

html[data-theme="light"] .product-detail-panel--cta {
  background: linear-gradient(135deg, rgba(54, 124, 43, 0.12), rgba(255, 222, 0, 0.15));
}

html[data-theme="light"] .filter-btn {
  border-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .facebook-post-card,
html[data-theme="light"] .product-card {
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .product-spec {
  background: rgba(54, 124, 43, 0.07);
  border-color: rgba(54, 124, 43, 0.18);
}

html[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--jd-green-dark);
}

html[data-theme="light"] .theme-toggle:hover {
  background: rgba(54, 124, 43, 0.12);
  border-color: rgba(54, 124, 43, 0.4);
}

/* Keep the hero dark (it sits over a video / dark gradient) */
html[data-theme="light"] .hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #0d2b0d 50%, #0a0a0a 100%);
  color: #ffffff;
  --jd-white: #ffffff;
  --jd-gray-400: #d6dccf;
  --jd-gray-200: #f0f3ee;
  --jd-gray-600: #9aa39a;
}

/* Keep the tractor banner text light (dark image overlay) */
html[data-theme="light"] .tractor-banner-text {
  --jd-white: #ffffff;
}

/* Navbar over the (dark) hero, before it gets its solid background */
html[data-theme="light"] .navbar:not(.scrolled) .nav-link {
  color: #e7ebe6;
}
html[data-theme="light"] .navbar:not(.scrolled) .nav-brand-sub {
  color: #cdd4c8;
}
html[data-theme="light"] .navbar:not(.scrolled) .hamburger span {
  background: #ffffff;
}
html[data-theme="light"] .navbar:not(.scrolled) .theme-toggle {
  color: var(--jd-yellow);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

/* --- Fix low-contrast YELLOW text on light surfaces --- */
/* Yellow reads well on dark, but is unreadable on white; swap to deep green. */
html[data-theme="light"] .section-label {
  color: var(--jd-green-dark);
}
html[data-theme="light"] .section-label::before,
html[data-theme="light"] .section-label::after {
  background: var(--jd-green);
}
html[data-theme="light"] .product-card-series,
html[data-theme="light"] .product-spec-val,
html[data-theme="light"] .product-price,
html[data-theme="light"] .footer-logo-text,
html[data-theme="light"] .footer-copy strong {
  color: var(--jd-green-dark);
}
html[data-theme="light"] .navbar.scrolled .nav-brand-name {
  color: var(--jd-green-dark);
}
html[data-theme="light"] .facebook-post-page,
html[data-theme="light"] .facebook-post-link {
  color: var(--jd-green-dark);
}
html[data-theme="light"] .footer-col a:hover,
html[data-theme="light"] .footer-legal a:hover,
html[data-theme="light"] .nav-link:hover {
  color: var(--jd-green-dark);
}
html[data-theme="light"] .nav-link::after {
  background: var(--jd-green);
}
html[data-theme="light"] .product-card-link {
  color: var(--jd-green-dark);
}
html[data-theme="light"] .product-card-link:hover {
  color: var(--jd-green);
}

/* --- Keep text DARK on yellow backgrounds in light mode --- */
/* --jd-black flips to the near-white page bg in light mode, so buttons
   that set color:var(--jd-black) on a yellow fill become unreadable. */
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .btn-primary:hover,
html[data-theme="light"] .filter-btn.active,
html[data-theme="light"] .product-card-badge.new,
html[data-theme="light"] .facebook-post-more:hover,
html[data-theme="light"] .back-to-top:hover {
  color: #16210f;
}
