/* =========================================
   CSS Variables & Tokens
   ========================================= */
:root {
  /* Colors */
  --primary: #2e7d32;     /* Green */
  --primary-light: #4caf50;
  --primary-dark: #1b5e20;
  --secondary: #d4af37;   /* Gold/Light Gold */
  --secondary-light: #f3e5ab;
  --bg-color: #ffffff;
  --bg-light: #f7fcf8;    /* Very light green */
  --text-dark: #222222;
  --text-gray: #555555;
  --text-light: #f5f5f5;
  --border-color: #e0e0e0;
  
  /* Fonts */
  --font-main: 'Kanit', sans-serif;
  
  /* Utilities */
  --transition: all 0.3s ease;
  --border-radius: 12px;
  --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --box-shadow-hover: 0 15px 40px rgba(46, 125, 50, 0.15);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* Visually hidden (accessible hidden text for screen readers / SEO) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-dark);
}

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

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-md { max-width: 900px; }
.container-sm { max-width: 700px; }

.section-padding { padding: 80px 0; }
.section-bg { background-color: var(--bg-light); }

.section-title {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}
.section-desc {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 40px;
}
.badge {
  display: inline-block;
  padding: 5px 15px;
  background-color: var(--secondary-light);
  color: var(--primary-dark);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 10px;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-family: var(--font-main);
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary:hover {
  background-color: #c59b27;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

/* =========================================
   Navbar
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  z-index: 1000;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.nav-logo img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

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

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  font-weight: 600;
}

.btn-nav-contact {
  background-color: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
}
.btn-nav-contact:hover {
  background-color: var(--primary-dark);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-dark);
  cursor: pointer;
}

/* =========================================
   Navbar Dropdown
   ========================================= */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: transparent;
  border: none;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: var(--transition);
}

.nav-dropdown-toggle:hover,
.nav-dropdown.active .nav-dropdown-toggle {
  color: var(--primary);
  font-weight: 600;
}

.nav-caret {
  font-size: 0.85rem;
  transition: transform 0.25s ease;
}

.nav-dropdown.active .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  min-width: 200px;
  list-style: none;
  padding: 8px 0;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  border: 1px solid var(--border-color);
}

.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: white;
  border-left: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.nav-dropdown-item i {
  color: var(--primary);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.nav-dropdown-item:hover {
  background: var(--bg-light);
  color: var(--primary);
}

body.dark-mode .nav-dropdown-menu {
  background: #1e1e1e;
  border-color: #333;
}

body.dark-mode .nav-dropdown-menu::before {
  background: #1e1e1e;
  border-color: #333;
}

body.dark-mode .nav-dropdown-item:hover {
  background: #2a2a2a;
}

/* Mobile: dropdown เป็น list แบบ flat */
@media (max-width: 768px) {
  .nav-dropdown {
    width: 100%;
    text-align: center;
  }
  .nav-dropdown-toggle {
    justify-content: center;
    font-size: 1.25rem;
    padding: 10px;
    width: 100%;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--border-color);
    border-radius: 0;
    opacity: 1;
    visibility: visible;
    min-width: 100%;
    display: none;
    padding: 0;
    background: var(--bg-light);
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown.active .nav-dropdown-menu {
    display: block;
    transform: none;
  }
  .nav-dropdown-item {
    justify-content: center;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
  }
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  position: relative;
  background: #fff;
  padding-top: 70px;
  display: block;
  min-height: auto;
}

/* Desktop Banner */
.desktop-hero {
  display: block;
}

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

/* Mobile Hero */
.mobile-hero {
  display: none;
  position: relative;
  min-height: 80vh;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('../รูป/ChatGPT Image Apr 10, 2026, 01_04_56 PM.png');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27, 94, 32, 0.8) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  color: white;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: fadeUp 1s ease both;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--secondary-light);
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeUp 1s ease 0.2s both;
}

.hero-desc {
  color: white;
  margin-bottom: 30px;
  animation: fadeUp 1s ease 0.3s both;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: fadeUp 1s ease 0.4s both;
}

.btn-full {
  width: 100%;
}

/* =========================================
   About Section
   ========================================= */
.about {
  background-color: var(--bg-color);
}
.about-icon {
  font-size: 40px;
  color: var(--secondary);
  margin-bottom: 30px;
}

.about-photo {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.about-name {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.about-description {
  font-size: 1.2rem;
  color: var(--text-gray);
  font-family: var(--font-main);
  font-style: italic;
  position: relative;
  padding: 0 20px;
}

/* =========================================
   Products Section
   ========================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
}

.product-img {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: #f9f9f9;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.product-info {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.product-info p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* =========================================
   Highlights
   ========================================= */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.highlight-item {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.highlight-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--box-shadow);
}

.highlight-item i {
  font-size: 45px;
  color: var(--primary);
  margin-bottom: 20px;
}

.highlight-item h4 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.highlight-item p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* =========================================
   Usage Section
   ========================================= */
.usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.usage-card {
  background: white;
  padding: 30px 20px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.usage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.usage-icon {
  width: 60px;
  height: 60px;
  background-color: var(--bg-light);
  color: var(--primary);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 15px;
}

.usage-card h3 {
  font-size: 1.1rem;
}

/* =========================================
   Gallery
   ========================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
}

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 250px;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item {
  cursor: pointer;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 94, 32, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  color: white;
  font-size: 2.5rem;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus .gallery-overlay {
  opacity: 1;
}

/* =========================================
   Lightbox
   ========================================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: lightboxFade 0.3s ease;
}

@keyframes lightboxFade {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10000;
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10000;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.3); }

/* =========================================
   Testimonials Section
   ========================================= */
.testimonials {
  background-color: var(--bg-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--box-shadow-hover);
}

.testimonial-stars {
  color: var(--secondary);
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--text-gray);
  font-size: 0.98rem;
  line-height: 1.75;
  font-style: italic;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.testimonial-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.testimonial-author span {
  font-size: 0.82rem;
  color: var(--text-gray);
}

/* =========================================
   Contact Section
   ========================================= */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-info {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.contact-info .section-title { margin-bottom: 10px; }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-radius: var(--border-radius);
  background-color: #f5f5f5;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid transparent;
}

.contact-btn i { font-size: 24px; }

.contact-btn.facebook:hover { background-color: #e7f0fa; color: #1877F2; border-color: #1877F2; }
.contact-btn.tiktok:hover { background-color: #ececec; color: #000000; border-color: #000000; }
.contact-btn.instagram:hover { background-color: #fdf2f7; color: #E4405F; border-color: #E4405F; }
.contact-btn.phone:hover { background-color: #ebf5eb; color: var(--primary); border-color: var(--primary); }

.contact-qr {
  flex: 0 0 250px;
  display: flex;
  justify-content: center;
}

.qr-box {
  background: #f9f9f9;
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px dashed var(--border-color);
}

.qr-box img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 8px;
}

.qr-box p {
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  background-color: var(--primary-dark);
  color: white;
  padding: 40px 0;
}

.footer-logo img {
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 8px;
  background-color: white;
  padding: 5px;
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.footer-copyright {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

/* =========================================
   Animations
   ========================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, visibility;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 991px) {
  .hero-title { font-size: 3rem; }
  .contact-wrapper { flex-direction: column; text-align: center; }
  .contact-info { text-align: center; }
}

@media (max-width: 768px) {
  .section-padding { padding: 60px 0; }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.2rem; }

  .desktop-hero { display: none !important; }
  .mobile-hero { display: flex !important; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .menu-toggle { display: block; }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    transition: left 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }
  
  .nav-menu.active { left: 0; }
  
  .nav-link {
    font-size: 1.25rem;
    padding: 10px;
  }
  .btn-nav-contact { margin-top: 20px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.8rem; }
  .qr-box img { width: 160px; height: 160px; }
}

/* =========================================
   Promo Banner
   ========================================= */
.promo-banner {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  color: white;
  text-align: center;
  padding: 10px 16px;
  position: relative;
  z-index: 1100;
}

.promo-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

.promo-text {
  font-size: 0.92rem;
}

.promo-close {
  position: absolute;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.promo-close:hover { opacity: 1; }

/* =========================================
   Skip to Content (Accessibility)
   ========================================= */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: white;
  padding: 10px 18px;
  border-radius: 0 0 8px 8px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* =========================================
   Dark Mode Toggle Button
   ========================================= */
.dark-mode-toggle {
  background: transparent;
  border: 1.5px solid var(--border-color);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-dark);
  transition: var(--transition);
  flex-shrink: 0;
}

.dark-mode-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-light);
}

/* =========================================
   Dark Mode
   ========================================= */
body.dark-mode {
  --bg-color: #121212;
  --bg-light: #1e1e1e;
  --text-dark: #e8e8e8;
  --text-gray: #aaaaaa;
  --border-color: #333333;
  --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  --box-shadow-hover: 0 15px 40px rgba(46, 125, 50, 0.3);
}

body.dark-mode .navbar {
  background: rgba(18, 18, 18, 0.97);
}

body.dark-mode .product-card,
body.dark-mode .highlight-item,
body.dark-mode .usage-card,
body.dark-mode .testimonial-card,
body.dark-mode .blog-card,
body.dark-mode .cert-item,
body.dark-mode .faq-item,
body.dark-mode .ba-card {
  background: #1e1e1e;
  border-color: #333;
}

body.dark-mode .contact-wrapper,
body.dark-mode .contact-form-section {
  background: #1e1e1e;
}

body.dark-mode .form-input,
body.dark-mode .form-textarea {
  background: #2a2a2a;
  border-color: #444;
  color: #e8e8e8;
}

body.dark-mode .contact-btn {
  background-color: #2a2a2a;
  color: #e0e0e0;
}

body.dark-mode .qr-box {
  background: #1e1e1e;
}

body.dark-mode .nav-menu {
  background-color: #121212;
}

body.dark-mode .footer {
  background-color: #0a0a0a;
}

body.dark-mode .comparison-table th {
  background: var(--primary-dark);
}

body.dark-mode .comparison-table tr:nth-child(even) td {
  background: #1a1a1a;
}

body.dark-mode .timeline-content {
  background: #1e1e1e;
}

body.dark-mode .ba-col.before {
  background: #2a1a1a;
}

body.dark-mode .ba-col.after {
  background: #1a2a1a;
}

/* =========================================
   Focus Rings (Accessibility)
   ========================================= */
*:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================
   Reduced Motion (Accessibility)
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================
   Stats Section
   ========================================= */
.stats-section {
  background: var(--primary-dark);
  padding: 50px 0;
}

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

.stat-item {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
  display: inline;
}

.stat-suffix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  display: inline;
  margin-left: 2px;
}

.stat-label {
  margin-top: 8px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

/* =========================================
   Comparison Table
   ========================================= */
.comparison-section {
  background: var(--bg-color);
}

.comparison-wrapper {
  overflow-x: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 500px;
}

.comparison-table th {
  background: var(--primary);
  color: white;
  padding: 14px 20px;
  text-align: center;
  font-weight: 600;
}

.comparison-table th:first-child {
  text-align: left;
  background: var(--primary-dark);
}

.comparison-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--text-dark);
}

.comparison-table tr:nth-child(even) td {
  background: var(--bg-light);
}

.comparison-table tr:hover td {
  background: rgba(46, 125, 50, 0.05);
}

.comparison-table i.check {
  color: var(--primary);
  font-size: 1.3rem;
}

.comparison-table i.minus {
  color: #ccc;
  font-size: 1.3rem;
}

/* =========================================
   Timeline
   ========================================= */
.timeline-section {
  background: var(--bg-light);
}

.timeline-list {
  position: relative;
  margin-top: 40px;
  padding-left: 30px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
  padding-left: 30px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -30px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--primary-light);
  transition: var(--transition);
  z-index: 1;
}

.timeline-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.2);
}

.timeline-item:hover .timeline-dot {
  background: var(--primary);
  border-color: var(--primary);
}

.timeline-content {
  background: white;
  padding: 20px 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.timeline-item:hover .timeline-content {
  box-shadow: var(--box-shadow-hover);
}

.timeline-year {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.timeline-content h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 0.92rem;
  color: var(--text-gray);
  line-height: 1.6;
}

/* =========================================
   Video Section
   ========================================= */
.video-section {
  background: var(--bg-color);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-gray);
  background: var(--secondary-light);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
}

/* =========================================
   Blog Section
   ========================================= */
.blog-section {
  background: var(--bg-light);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.blog-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.blog-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-img img {
  transform: scale(1.07);
}

.blog-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.blog-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 10px;
}

.blog-date {
  font-size: 0.82rem;
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-info h3 {
  font-size: 1.05rem;
  line-height: 1.4;
}

.blog-info p {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.6;
  flex-grow: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: gap 0.2s;
  margin-top: auto;
}

.blog-read-more:hover {
  gap: 10px;
}

/* =========================================
   Before / After Section
   ========================================= */
.ba-section {
  background: var(--bg-color);
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.ba-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  background: white;
}

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

.ba-col {
  padding: 24px;
}

.ba-col.before {
  background: #fff5f5;
  border-right: 1px solid var(--border-color);
}

.ba-col.after {
  background: #f0f9f0;
}

.ba-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.before-label {
  background: #ffcccc;
  color: #c62828;
}

.after-label {
  background: #c8e6c9;
  color: #2e7d32;
}

.ba-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ba-col.before ul li::before {
  content: '✗ ';
  color: #e53935;
  font-weight: 700;
}

.ba-col.after ul li::before {
  content: '✓ ';
  color: var(--primary);
  font-weight: 700;
}

.ba-col ul li {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.5;
}

.ba-product {
  padding: 12px 24px;
  background: var(--bg-light);
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

/* =========================================
   Certificates Section
   ========================================= */
.certs-section {
  background: var(--bg-light);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.cert-item {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border-top: 4px solid var(--secondary);
}

.cert-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--box-shadow-hover);
}

.cert-icon {
  font-size: 2.8rem;
  color: var(--secondary);
  margin-bottom: 14px;
}

.cert-item h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.cert-item p {
  font-size: 0.88rem;
  color: var(--text-gray);
  line-height: 1.6;
}

/* =========================================
   FAQ Accordion
   ========================================= */
.faq-section {
  background: var(--bg-color);
}

.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  background: white;
  transition: border-color 0.2s;
}

.faq-item.active {
  border-color: var(--primary-light);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* =========================================
   Contact Form
   ========================================= */
.contact-form-section {
  background: white;
  margin-top: 40px;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.contact-form-title {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.contact-form-desc {
  color: var(--text-gray);
  margin-bottom: 28px;
  font-size: 0.95rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
}

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

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  justify-content: center;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 16px;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form-section { padding: 24px; }
}

/* =========================================
   LINE Contact Button
   ========================================= */
.contact-btn.line:hover {
  background-color: #e6f7e6;
  color: #06c755;
  border-color: #06c755;
}

/* =========================================
   Share Section
   ========================================= */
.share-section {
  background: var(--bg-light);
}

.share-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.share-subtitle {
  color: var(--text-gray);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.share-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.share-facebook {
  background: #1877F2;
  color: white;
}

.share-facebook:hover {
  background: #1461c0;
  transform: translateY(-2px);
}

.share-line {
  background: #06c755;
  color: white;
}

.share-line:hover {
  background: #05a847;
  transform: translateY(-2px);
}

.share-copy {
  background: var(--bg-color);
  color: var(--text-dark);
  border: 1.5px solid var(--border-color);
}

.share-copy:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* =========================================
   Back to Top Button
   ========================================= */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 900;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

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

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.5);
}

/* =========================================
   Floating Contact Bar
   ========================================= */
.floating-contact {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 900;
}

.float-label {
  background: var(--primary-dark);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0.85;
}

.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.float-phone {
  background: var(--primary);
}

.float-line {
  background: #06c755;
}

.float-facebook {
  background: #1877F2;
}

/* =========================================
   Responsive additions
   ========================================= */
@media (max-width: 768px) {
  .ba-row { grid-template-columns: 1fr; }
  .ba-col.before { border-right: none; border-bottom: 1px solid var(--border-color); }
  .timeline-list { padding-left: 20px; }
  .floating-contact { right: 12px; bottom: 16px; }
  .back-to-top { right: 12px; bottom: 90px; }
  .dark-mode-toggle { display: none; }
}

@media (max-width: 480px) {
  .promo-text { font-size: 0.8rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================
   Video Coming Soon Placeholder
   ========================================= */
.video-coming-soon {
  display: flex;
  justify-content: center;
  padding: 16px 0 8px;
}

.video-placeholder-card {
  background: var(--bg-light);
  border: 2px dashed var(--border-color);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  max-width: 560px;
  width: 100%;
  transition: var(--transition);
}

.video-placeholder-card:hover {
  border-color: var(--primary);
  background: #f1f8e9;
}

.video-placeholder-icon {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 16px;
  opacity: 0.7;
}

.video-placeholder-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.video-placeholder-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 6px;
  line-height: 1.6;
}

.video-placeholder-sub {
  font-weight: 600;
  color: var(--text-dark) !important;
  margin-top: 20px !important;
  margin-bottom: 14px !important;
}

.video-social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.video-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.video-social-fb {
  background: #1877F2;
  color: white;
}

.video-social-fb:hover { background: #1461c0; transform: translateY(-2px); }

.video-social-tt {
  background: #010101;
  color: white;
}

.video-social-tt:hover { background: #333; transform: translateY(-2px); }

.video-social-ln {
  background: #06c755;
  color: white;
}

.video-social-ln:hover { background: #05a847; transform: translateY(-2px); }

body.dark-mode .video-placeholder-card {
  background: #1a2a1a;
  border-color: #2e4a2e;
}

body.dark-mode .video-placeholder-card:hover {
  background: #1e331e;
  border-color: var(--primary);
}

/* =========================================
   Footer — Full Redesign
   ========================================= */
.footer {
  background: #1a2e1a;
  color: rgba(255,255,255,0.8);
  padding-top: 60px;
  padding-bottom: 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Brand column */
.footer-brand {}

.footer-logo img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.15);
  margin-bottom: 14px;
}

.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.footer-brand-tagline {
  font-size: 0.82rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.footer-brand-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-social-line:hover { background: #06c755; }
.footer-social-tiktok:hover { background: #010101; }
.footer-social-phone:hover { background: var(--primary-dark); }

/* Link columns */
.footer-col {}

.footer-col-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-link i {
  font-size: 0.7rem;
  opacity: 0.6;
  transition: var(--transition);
}

.footer-link:hover i {
  opacity: 1;
  color: var(--primary-light);
}

/* Contact column */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact-icon {
  font-size: 1rem;
  color: var(--primary-light);
  flex-shrink: 0;
}

.footer-link-text {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  font-family: var(--font-main);
}

.footer-cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(46,125,50,0.4);
}

/* Footer Bottom */
.footer-bottom {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom-link {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-bottom-link:hover { color: var(--primary-light); }

.footer-bottom-sep {
  color: rgba(255,255,255,0.25);
  font-size: 0.82rem;
}

/* Footer Responsive */
@media (max-width: 960px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 32px;
  }
  .footer-brand { grid-column: auto; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .video-placeholder-card { padding: 36px 24px; }
}

/* =========================================
   About Section — Redesigned
   ========================================= */
.about-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 40px;
}

.about-portrait {
  display: flex;
  justify-content: center;
}

.about-portrait-img {
  width: 100%;
  max-width: 300px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  display: block;
}

.about-subtitle {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.about-tags {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-tags li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.5;
}

.about-tags li i {
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.about-research-banner {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.about-research-banner img {
  width: 100%;
  display: block;
  height: auto;
}

@media (max-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .about-portrait-img { max-width: 220px; margin: 0 auto; }
  .about-tags li { justify-content: center; text-align: left; }
  .about-text .btn { display: inline-flex; }
}

/* =========================================
   Product Card Enhancements
   ========================================= */
.product-type {
  display: inline-block;
  font-size: 0.72rem;
  background: var(--primary-light);
  color: white;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
  vertical-align: middle;
  margin-left: 4px;
}

.product-price {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin: 8px 0 12px;
}

.product-price strong {
  color: #e53935;
  font-size: 1.05rem;
}

.product-price-old {
  text-decoration: line-through;
  font-size: 0.82rem;
  color: #bbb;
  margin-left: 6px;
}

.product-price-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.product-price-link:hover { text-decoration: underline; }

.products-catalog-banner {
  margin-top: 40px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.products-catalog-banner img {
  width: 100%;
  display: block;
  height: auto;
}

/* =========================================
   Usage Infographic
   ========================================= */
.usage-infographic {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}

.usage-infographic img {
  max-width: 480px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  display: block;
}

@media (max-width: 600px) {
  .usage-infographic img { max-width: 100%; }
}

/* =========================================
   Cart Button in Navbar
   ========================================= */
.cart-toggle {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary-dark);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.cart-toggle:hover {
  background: var(--bg-light);
  transform: scale(1.1);
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: #e53935;
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  pointer-events: none;
}

/* =========================================
   Cart Overlay
   ========================================= */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(2px);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* =========================================
   Cart Drawer
   ========================================= */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 95vw;
  height: 100vh;
  background: var(--bg-color);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.2);
}

.cart-drawer.open {
  right: 0;
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--primary-dark);
  color: white;
}

.cart-drawer-header h3 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  margin: 0;
}

.cart-close-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s;
}

.cart-close-btn:hover { background: rgba(255,255,255,0.3); }

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 260px;
  color: var(--text-gray);
  gap: 12px;
  text-align: center;
}

.cart-empty i { font-size: 3.5rem; opacity: 0.3; }
.cart-empty p { font-size: 0.95rem; }

/* Cart Item */
.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

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

.cart-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.cart-item-size {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-bottom: 3px;
}

.cart-item-price {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-color);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-dark);
}

.qty-btn:hover { border-color: var(--primary); color: var(--primary); }

.qty-num {
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  color: var(--text-dark);
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.cart-item-subtotal {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.cart-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #bbb;
  font-size: 1rem;
  padding: 2px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.cart-remove-btn:hover { color: #e53935; }

/* Cart Footer */
.cart-drawer-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-light);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.cart-total-price {
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.cart-shipping-note {
  font-size: 0.78rem;
  color: var(--text-gray);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cart-checkout-btn {
  padding: 13px !important;
  font-size: 1rem !important;
}

/* =========================================
   Product Button Row
   ========================================= */
.product-btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem !important;
  padding: 9px 16px !important;
}

/* =========================================
   Modal Base
   ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(3px);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-color);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { transform: translateY(30px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0) scale(1);       opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: var(--bg-color);
  z-index: 1;
}

.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
}

.modal-close-btn {
  background: var(--bg-light);
  border: none;
  cursor: pointer;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-gray);
  transition: var(--transition);
}

.modal-close-btn:hover { background: #fee; color: #e53935; }

.modal-body {
  padding: 20px 22px 24px;
}

/* =========================================
   Checkout Modal
   ========================================= */
.co-summary-wrap {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.co-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  margin-bottom: 10px;
}

.co-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.co-summary-table th {
  text-align: left;
  color: var(--text-gray);
  font-weight: 600;
  padding: 4px 0;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border-color);
}

.co-summary-table td { padding: 6px 0; color: var(--text-dark); }

.co-td-center { text-align: center; }
.co-td-right  { text-align: right; }

.co-total-row td {
  padding-top: 10px;
  border-top: 1.5px solid var(--border-color);
  font-size: 0.9rem;
}

.co-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.co-field {
  margin-bottom: 12px;
}

.co-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.req { color: #e53935; }

.co-field input,
.co-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border-color);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 0.88rem;
  background: var(--bg-color);
  color: var(--text-dark);
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.co-field input:focus,
.co-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
}

.co-field input.co-error,
.co-field textarea.co-error {
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
}

.co-payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.co-payment-label {
  cursor: pointer;
}

.co-payment-label input[type="radio"] {
  display: none;
}

.co-payment-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 10px;
  transition: var(--transition);
}

.co-payment-box i {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.co-payment-box strong { font-size: 0.85rem; color: var(--text-dark); }
.co-payment-box small  { font-size: 0.75rem; color: var(--text-gray); }

.co-payment-label input:checked + .co-payment-box {
  border-color: var(--primary);
  background: #f1f8e9;
}

@media (max-width: 500px) {
  .co-form-grid { grid-template-columns: 1fr; }
  .co-payment-options { grid-template-columns: 1fr; }
}

/* =========================================
   Confirmation Modal
   ========================================= */
.modal-confirm {
  max-width: 420px;
  text-align: center;
  padding: 36px 28px;
}

.confirm-success-icon {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.modal-confirm h3 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.modal-confirm > p {
  color: var(--text-gray);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.confirm-info-box {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: left;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.88rem;
}

.confirm-row:last-child { border-bottom: none; }
.confirm-row span { color: var(--text-gray); }

.confirm-note {
  font-size: 0.82rem;
  color: var(--text-gray);
  margin-bottom: 20px;
  line-height: 1.6;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   Toast Notification
   ========================================= */
.cart-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary-dark);
  color: white;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2000;
  opacity: 0;
  transition: all 0.35s ease;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  pointer-events: none;
}

.cart-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================
   Science Section
   ========================================= */
.science-section { background: var(--bg-light); }

.science-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.science-card {
  background: var(--bg-color);
  border-radius: 14px;
  padding: 22px 18px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.science-card:hover {
  border-color: var(--primary);
  box-shadow: 0 6px 20px rgba(46,125,50,0.1);
  transform: translateY(-3px);
}

.science-icon {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.science-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.science-card p {
  font-size: 0.83rem;
  color: var(--text-gray);
  line-height: 1.65;
}

.science-imgrow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.science-img-item {
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
}

.science-img-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.science-img-item p {
  font-size: 0.8rem;
  color: var(--text-gray);
  padding: 8px 4px;
  font-style: italic;
}

.science-source {
  font-size: 0.75rem;
  color: #aaa;
  text-align: center;
  font-style: italic;
}

@media (max-width: 900px) {
  .science-grid { grid-template-columns: 1fr 1fr; }
  .science-imgrow { grid-template-columns: 1fr 1fr; }
  .science-imgrow .science-img-item:last-child { display: none; }
}

@media (max-width: 600px) {
  .science-grid { grid-template-columns: 1fr; }
  .science-imgrow { grid-template-columns: 1fr; }
  .science-imgrow .science-img-item:not(:first-child) { display: none; }
}

/* =========================================
   Map Section
   ========================================= */
.map-section { background: var(--bg-color); }

.map-info-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.map-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-light);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid var(--border-color);
}

.map-info-item > i {
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.map-info-item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.map-info-item p {
  font-size: 0.8rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin: 0;
}

.map-info-item a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.map-embed {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border: 2px solid var(--border-color);
}

.map-embed iframe { display: block; }

@media (max-width: 900px) {
  .map-info-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .map-info-bar { grid-template-columns: 1fr; }
}

/* Dark mode for cart & modals */
body.dark-mode .cart-drawer { background: #1a1a1a; }
body.dark-mode .cart-drawer-header { background: #1e3d1e; }
body.dark-mode .cart-drawer-footer { background: #1a2a1a; }
body.dark-mode .modal-box { background: #1a1a1a; }
body.dark-mode .modal-header { background: #1a1a1a; }
body.dark-mode .co-payment-label input:checked + .co-payment-box { background: #1e331e; }
body.dark-mode .co-field input,
body.dark-mode .co-field textarea { background: #252525; border-color: #333; color: #eee; }
body.dark-mode .science-card { background: #1e1e1e; }
body.dark-mode .map-info-item { background: #1a2a1a; }

/* =========================================
   Radio Music Player (Floating Bottom Bar)
   ========================================= */
.radio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 60%, #1a3a1a 100%);
  color: #fff;
  box-shadow: 0 -4px 24px rgba(0,0,0,.35);
  transition: transform .35s cubic-bezier(.4,0,.2,1), height .3s ease;
  font-family: 'Kanit', sans-serif;
}

.radio-player.minimized {
  transform: translateY(calc(100% - 46px));
}

.radio-player-bar {
  display: flex;
  align-items: center;
  padding: 0 18px;
  height: 46px;
  gap: 14px;
  cursor: default;
  user-select: none;
}

/* Station Brand */
.radio-station {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 160px;
  flex-shrink: 0;
}

.radio-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4444;
  flex-shrink: 0;
  animation: radioBlink 1.5s infinite;
}

.radio-live-dot.paused { animation: none; background: #888; }

@keyframes radioBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.radio-station-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #a5d6a7;
  letter-spacing: .5px;
  line-height: 1;
}

.radio-station-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,.5);
  font-weight: 300;
}

/* Equalizer */
.radio-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
  flex-shrink: 0;
}

.radio-eq span {
  width: 3px;
  border-radius: 2px 2px 0 0;
  background: #69f0ae;
  animation: eqBounce 0.8s ease-in-out infinite;
  transform-origin: bottom;
}

.radio-eq span:nth-child(1) { height: 60%; animation-delay: 0s;   animation-duration: 0.9s; }
.radio-eq span:nth-child(2) { height: 100%; animation-delay: .15s; animation-duration: 0.7s; }
.radio-eq span:nth-child(3) { height: 70%; animation-delay: .3s;  animation-duration: 1.1s; }
.radio-eq span:nth-child(4) { height: 85%; animation-delay: .1s;  animation-duration: 0.6s; }
.radio-eq span:nth-child(5) { height: 50%; animation-delay: .25s; animation-duration: 0.8s; }

.radio-player.paused .radio-eq span {
  animation: none;
  height: 3px !important;
  background: #555;
}

@keyframes eqBounce {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(.3); }
}

/* Track Info */
.radio-track-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.radio-track-scroll {
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.radio-track-inner {
  display: inline-block;
  animation: radioScroll 14s linear infinite;
}

.radio-track-inner.short { animation: none; }

@keyframes radioScroll {
  0%   { transform: translateX(0); }
  30%  { transform: translateX(0); }
  80%  { transform: translateX(-60%); }
  100% { transform: translateX(0); }
}

.radio-track-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
}

.radio-track-artist {
  font-size: 0.72rem;
  color: rgba(255,255,255,.6);
  margin-left: 10px;
}

/* Progress */
.radio-progress-wrap {
  width: 120px;
  flex-shrink: 0;
}

.radio-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.62rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 3px;
}

.radio-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,.2);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: visible;
}

.radio-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #69f0ae, #a5d6a7);
  border-radius: 3px;
  width: 0%;
  transition: width .5s linear;
  position: relative;
}

.radio-progress-fill::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -3px;
  width: 9px;
  height: 9px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0,0,0,.4);
}

/* Controls */
.radio-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.radio-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background .2s, color .2s, transform .15s;
}

.radio-btn:hover { background: rgba(255,255,255,.15); color: #fff; }
.radio-btn:active { transform: scale(.9); }

.radio-btn.play-btn {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.15);
  font-size: 1.15rem;
}

.radio-btn.play-btn:hover { background: rgba(255,255,255,.28); }

/* Volume */
.radio-volume-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.radio-volume-wrap i { font-size: 0.9rem; color: rgba(255,255,255,.6); }

.radio-volume {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,.25);
  outline: none;
  cursor: pointer;
}

.radio-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #a5d6a7;
  cursor: pointer;
}

.radio-volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #a5d6a7;
  border: none;
  cursor: pointer;
}

/* Playlist Panel */
.radio-playlist {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
  background: rgba(0,0,0,.35);
}

.radio-player:not(.minimized) .radio-playlist.open {
  max-height: 280px;
  overflow-y: auto;
}

.radio-playlist::-webkit-scrollbar { width: 4px; }
.radio-playlist::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 4px; }

.radio-playlist-inner {
  padding: 8px 0;
}

.radio-pl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  cursor: pointer;
  transition: background .15s;
}

.radio-pl-item:hover { background: rgba(255,255,255,.08); }
.radio-pl-item.active { background: rgba(105,240,174,.1); }

.radio-pl-num {
  font-size: 0.72rem;
  color: rgba(255,255,255,.4);
  width: 18px;
  text-align: right;
  flex-shrink: 0;
}

.radio-pl-item.active .radio-pl-num { color: #69f0ae; }

.radio-pl-info { flex: 1; min-width: 0; }

.radio-pl-title {
  font-size: 0.82rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radio-pl-item.active .radio-pl-title { color: #69f0ae; }

.radio-pl-artist {
  font-size: 0.7rem;
  color: rgba(255,255,255,.5);
}

.radio-pl-dur {
  font-size: 0.7rem;
  color: rgba(255,255,255,.4);
  flex-shrink: 0;
}

.radio-pl-empty {
  text-align: center;
  padding: 20px;
  color: rgba(255,255,255,.5);
  font-size: 0.82rem;
}

/* Min/Playlist toggle buttons */
.radio-top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.radio-handle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: background .2s;
}

.radio-handle:hover { background: rgba(255,255,255,.15); }

/* Adjust footer so player doesn't cover it */
footer { padding-bottom: 60px; }

/* Dark mode overrides (already dark so minimal) */
body.dark-mode .radio-player {
  box-shadow: 0 -4px 30px rgba(0,0,0,.6);
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .radio-station { min-width: 110px; }
  .radio-progress-wrap { display: none; }
  .radio-volume-wrap { display: none; }
  .radio-track-title { font-size: 0.8rem; }
  .radio-player-bar { padding: 0 10px; gap: 8px; }
}

/* ============================================================
   📱 MOBILE RESPONSIVE — ปรับปรุงสำหรับมือถือ
   ============================================================ */

/* ── Container padding on mobile ── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section-padding { padding: 48px 0; }
}

/* ── Product Grid ── */
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
  }
  .product-img { height: 220px; }
  .product-info { padding: 18px; }
  .product-info h3 { font-size: 1.1rem; }
  .product-info p  { font-size: 0.9rem; margin-bottom: 14px; }
  .product-price   { font-size: 1rem; }
}
@media (max-width: 480px) {
  .product-btn-row {
    flex-direction: column;
    gap: 10px;
  }
  .product-btn-row .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.95rem;
  }
}

/* ── Cart Drawer ── */
@media (max-width: 480px) {
  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
    right: -100vw;
    border-radius: 0;
  }
  .cart-drawer.open { right: 0; }
  .cart-footer { padding: 12px 14px; }
  .cart-checkout-btn { font-size: 0.95rem; padding: 13px; }
}

/* ── Checkout Modal — bottom sheet on mobile ── */
@media (max-width: 600px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal-box {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    width: 100vw;
    max-width: 100vw;
    animation: modalSlideUp 0.3s ease;
  }
  @keyframes modalSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
  .modal-header { padding: 14px 16px; }
  .modal-body   { padding: 14px 16px; }
  .co-form-grid { grid-template-columns: 1fr; gap: 10px; }
  .co-payment-options { grid-template-columns: 1fr; gap: 10px; }
  .co-form-group label { font-size: 0.85rem; }
  .co-form-group input,
  .co-form-group textarea,
  .co-form-group select {
    font-size: 16px; /* ป้องกัน iOS zoom */
    padding: 10px 12px;
  }
}

/* ── Checkout summary table ── */
@media (max-width: 500px) {
  .checkout-table,
  #checkout-summary table {
    font-size: 0.82rem;
  }
  .checkout-table td,
  .checkout-table th,
  #checkout-summary td,
  #checkout-summary th {
    padding: 7px 8px;
  }
}

/* ── Confirmation Modal ── */
@media (max-width: 480px) {
  .modal-confirm {
    padding: 28px 20px;
    max-width: 100vw;
  }
  .modal-confirm h3 { font-size: 1.2rem; }
  .confirm-order-id { font-size: 1rem; }
}

/* ── Hero Section ── */
@media (max-width: 480px) {
  .hero-title    { font-size: 1.8rem; line-height: 1.25; }
  .hero-subtitle { font-size: 1rem; }
  .hero-cta-group { flex-direction: column; gap: 12px; }
  .hero-cta-group .btn { width: 100%; text-align: center; }
}

/* ── Navbar ── */
@media (max-width: 480px) {
  .nav-logo-img { height: 36px; }
  .navbar { padding: 0 14px; }
  .cart-btn-nav { padding: 8px 14px; font-size: 0.85rem; }
}

/* ── Promo Banner ── */
@media (max-width: 480px) {
  .promo-inner { padding: 0 36px 0 12px; }
  .promo-text  { font-size: 0.78rem; line-height: 1.5; }
}

/* ── Stats Grid ── */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat-number { font-size: 2rem; }
}

/* ── Contact Section ── */
@media (max-width: 480px) {
  .contact-wrapper { padding: 24px 16px; gap: 24px; }
  .contact-btn { padding: 12px 14px; font-size: 0.9rem; }
  .qr-box img  { width: 140px; height: 140px; }
}

/* ── Orders Page (orders.html) ── */
@media (max-width: 600px) {
  .order-card { padding: 14px; }
  .order-meta { flex-direction: column; gap: 6px; }
  .order-actions { flex-direction: column; gap: 8px; }
  .order-actions .btn { width: 100%; text-align: center; }
  .orders-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── Radio Player ── */
@media (max-width: 480px) {
  .radio-player { bottom: 0; left: 0; right: 0; border-radius: 0; }
  .radio-player-bar { height: 56px; }
  footer { padding-bottom: 72px; }
  .radio-eq { gap: 2px; }
}

/* ── Touch Tap Highlight ── */
@media (hover: none) {
  .product-card:hover {
    transform: none;
    box-shadow: var(--box-shadow);
  }
  .btn:active {
    transform: scale(0.97);
    opacity: 0.88;
  }
}

/* ── Prevent horizontal overflow (global) ── */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  img { max-width: 100%; height: auto; }
  table { max-width: 100%; }
}

/* ── Gallery Grid ── */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* ── Comparison Table ── */
@media (max-width: 600px) {
  .comparison-section .table-wrapper,
  .comparison-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .comparison-table { min-width: 440px; }
}
