/* ================================================
   THONG THAI SEEDS — Custom Styles
   Theme: Grass Green #3E9E12 | Lime #A5D93A | Deep Green
   Font: Prompt (Google Fonts)
   ================================================ */

:root {
  --primary:        #3E9E12;
  --primary-dark:   #2A6E0C;
  --primary-light:  #eef7e4;
  --primary-mid:    #66B22B;
  --accent:         #A5D93A;
  --accent-dark:    #8CC63F;
  --dark:           #12210a;
  --dark-nav:       #1b3d0d;
  --dark-footer:    #0b1706;
  --dark-card:      #1b3d0d;
  --gray-100:       #f5faf0;
  --gray-200:       #e2eed6;
  --text-dark:      #12210a;
  --text-muted:     #63755a;
  --border:         #d5e6c4;
  --gold:           #A5D93A;
  --white:          #ffffff;
  --grad-nav:       linear-gradient(180deg, #8CC63F 0%, #5FB021 45%, #3E8914 100%);
  --shadow-sm:      0 2px 12px rgba(42,110,12,.10);
  --shadow-md:      0 6px 24px rgba(42,110,12,.18);
  --shadow-lg:      0 10px 40px rgba(42,110,12,.24);
  --shadow-red:     0 4px 20px rgba(165,217,58,.40);
  --radius:         14px;
  --radius-sm:      8px;
  --transition:     all 0.25s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Prompt', sans-serif;
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   ฟอนต์ตามภาษา
   ไทย  → Prompt
   EN/VN → Times New Roman (ฟอนต์อื่นทำให้อักขระเวียดนามเพี้ยน)
   ============================================================ */
body.lang-en,
body.lang-vi,
body.lang-en h1, body.lang-en h2, body.lang-en h3,
body.lang-en h4, body.lang-en h5, body.lang-en h6,
body.lang-vi h1, body.lang-vi h2, body.lang-vi h3,
body.lang-vi h4, body.lang-vi h5, body.lang-vi h6,
body.lang-en .btn, body.lang-vi .btn,
body.lang-en input, body.lang-en textarea, body.lang-en select,
body.lang-vi input, body.lang-vi textarea, body.lang-vi select {
  font-family: "Times New Roman", Times, Georgia, serif;
}
/* Times New Roman อ่านยากกว่าตอนตัวเล็ก — ชดเชยด้วยขนาด/ระยะบรรทัด */
body.lang-en, body.lang-vi {
  font-size: 1.05rem;
  line-height: 1.75;
  -webkit-font-smoothing: auto;
}

/* ============================================================
   COMPANY CARD (หน้าติดต่อเรา)
   ============================================================ */
.company-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.company-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 26px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}
.company-card-head i { font-size: 1.5rem; color: var(--primary); }
.company-card-head h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 800;
  color: var(--primary-dark);
}
.company-card-list { margin: 0; padding: 8px 26px 22px; }
.company-card-list > div {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 10px 18px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
}
.company-card-list > div:last-child { border-bottom: 0; }
.company-card-list dt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 700;
  color: var(--text-muted);
  font-size: .9rem;
}
.company-card-list dt i { color: var(--primary); font-size: .95rem; }
.company-card-list dd {
  margin: 0;
  color: var(--text-dark);
  font-weight: 600;
  word-break: break-word;
}
.company-card-list dd a { color: var(--primary-dark); text-decoration: none; }
.company-card-list dd a:hover { color: var(--primary); text-decoration: underline; }
@media (max-width: 575.98px) {
  .company-card-list > div { grid-template-columns: 1fr; gap: 4px; }
  .company-card-list { padding: 6px 18px 18px; }
  .company-card-head { padding: 16px 18px; }
}

/* ============================================================
   IMAGE PLACEHOLDER (สินค้า/หมวดที่ยังไม่ได้อัพโหลดรูป)
   ============================================================ */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 160px;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  color: var(--primary);
  opacity: .45;
}
.img-placeholder i { font-size: 2.4rem; }
.product-img-wrap .img-placeholder { min-height: 0; }

/* ============================================================
   PRODUCT DETAIL BOX
   ============================================================ */
.product-detail-box {
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.product-detail-body { color: var(--text-dark); line-height: 1.9; }
.product-detail-lead {
  font-weight: 500;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}

/* แท็บเลือกภาษาในกล่องรายละเอียด */
.lang-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 2px solid var(--border);
  padding: 0 0 8px;
  margin: 0 0 16px;
  list-style: none;
}
.lang-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text-muted);
  font-family: 'Prompt', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}
.lang-tab-btn .lang-tab-flag { font-size: 1rem; line-height: 1; }
.lang-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.lang-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(42,110,12,.28);
}

/* แต่ละบล็อกภาษาใช้ฟอนต์ของตัวเอง ไม่ว่าผู้ชมจะเปิดเว็บด้วยภาษาไหน
   — EN/VN ต้องเป็น Times New Roman เสมอ กันอักขระเวียดนามเพี้ยน */
.lang-block-th { font-family: 'Prompt', sans-serif; }
.lang-block-en,
.lang-block-vi {
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 1.05rem;
}
.product-detail-body ul,
.product-detail-body ol { padding-left: 1.25rem; margin-bottom: 0; }
.product-detail-body li { margin-bottom: 6px; }
.product-detail-body p:last-child { margin-bottom: 0; }
.product-detail-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.product-detail-body table { width: 100%; overflow-x: auto; display: block; }

/* ============================================================
   LANGUAGE SWITCHER — segmented control
   ============================================================ */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 3px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lang-switch .lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .2px;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.lang-switch .lang-btn .lang-flag { font-size: .95rem; line-height: 1; }
.lang-switch .lang-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.lang-switch .lang-btn.active {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}
/* จอแคบ: ซ่อนตัวอักษร เหลือแต่ธง ประหยัดที่ไม่ให้เมนูตกบรรทัด */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .lang-switch .lang-btn .lang-label { display: none; }
  .lang-switch .lang-btn { padding: 5px 9px; }
}
@media (max-width: 991.98px) {
  .lang-switch { margin-top: 12px; background: rgba(0,0,0,.22); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== SELECTION ===== */
::selection { background: var(--primary); color: #fff; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--text-dark); }

/* ===== LINKS ===== */
a { color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
  /* พื้นเขียวเรียบ + ไล่เฉดบางๆ แทนเกรเดียนต์เงาวาวแบบเดิม */
  background: linear-gradient(180deg, #46a916 0%, #3B900F 100%);
  border-bottom: 1px solid rgba(255,255,255,.14);
  padding: 10px 0;
  z-index: 1050;
  transition: padding .28s ease, background .28s ease, box-shadow .28s ease;
}
/* เลื่อนลงแล้วหดตัว + เข้มขึ้น + มีเงา */
#mainNav.scrolled {
  padding: 5px 0;
  background: rgba(43,110,12,.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 6px 26px rgba(12,40,4,.28);
}

/* ---------- แบรนด์ ---------- */
#mainNav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin-right: 8px;
}
#mainNav .navbar-brand img {
  height: 46px; width: auto; object-fit: contain;
  transition: height .28s ease;
}
#mainNav.scrolled .navbar-brand img { height: 38px; }
#mainNav .navbar-brand .brand-text {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .2px;
  line-height: 1.15;
}

/* ---------- ลิงก์เมนู ---------- */
#mainNav .navbar-nav { align-items: center; }
#mainNav .nav-link {
  position: relative;
  color: rgba(255,255,255,.92) !important;
  font-weight: 500;
  font-size: .875rem;
  padding: 8px 2px !important;
  margin: 0 10px;
  border-radius: 0;
  letter-spacing: .2px;
  white-space: nowrap;
  transition: color .2s ease;
}
/* ขีดใต้ที่ค่อยๆ ยืดออกจากกลาง */
#mainNav .nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .26s cubic-bezier(.4,0,.2,1);
}
#mainNav .nav-link:hover { color: #fff !important; }
#mainNav .nav-link:hover::after { transform: scaleX(1); }
#mainNav .nav-link.active {
  color: #fff !important;
  font-weight: 700;
}
#mainNav .nav-link.active::after { transform: scaleX(1); }

/* ---------- ปุ่มแฮมเบอร์เกอร์ ---------- */
#mainNav .navbar-toggler {
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 10px;
  padding: 6px 10px;
}
#mainNav .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255,255,255,.22); }
#mainNav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.92%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- จอมือถือ: เมนูเป็นแผงทึบ อ่านง่าย ---------- */
@media (max-width: 991.98px) {
  #mainNav .navbar-collapse {
    background: rgba(28,78,8,.97);
    border-radius: 14px;
    margin-top: 12px;
    padding: 10px 14px 16px;
    box-shadow: 0 12px 34px rgba(12,40,4,.34);
  }
  #mainNav .navbar-nav { align-items: stretch; }
  #mainNav .nav-link {
    margin: 0;
    padding: 11px 4px !important;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }
  #mainNav .nav-link::after { display: none; }
  #mainNav .nav-link.active { color: var(--accent) !important; }
}

/* ===== NAVBAR PHONE BUTTON ===== */
/* ต้องใช้ #mainNav นำหน้า ไม่งั้นโดน #mainNav .nav-link (specificity สูงกว่า) ทับสีข้อความ */
#mainNav .btn-nav-phone,
.btn-nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.14);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  font-weight: 600;
  padding: 7px 16px !important;
  margin-left: 8px;
  font-size: .82rem;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
#mainNav .btn-nav-phone::after { display: none; }
#mainNav .btn-nav-phone:hover,
.btn-nav-phone:hover {
  background: #fff;
  border-color: #fff;
  color: var(--primary-dark) !important;
}
/* จอกลาง: เหลือแต่ไอคอนโทรศัพท์ กันเมนูตกบรรทัด */
@media (min-width: 992px) and (max-width: 1199.98px) {
  #mainNav .btn-nav-phone .phone-text { display: none; }
  #mainNav .btn-nav-phone { padding: 7px 11px !important; }
}
@media (max-width: 991.98px) {
  #mainNav .btn-nav-phone { margin: 12px 0 0; justify-content: center; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary-custom {
  background: var(--primary);
  border: 2px solid var(--primary);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-primary-custom:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}
.btn-outline-primary-custom {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-outline-primary-custom:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   COVER BANNER
   ============================================================ */
.cover-banner-wrap {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: #111;
}
.cover-banner-img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-section {
  position: relative;
  height: calc(100vh - 80px);
  min-height: 560px;
  max-height: 800px;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.12);
  transition: transform 8s ease-out;
  /* เบลอ+หรี่ให้ภาพพื้นหลังกลายเป็นพื้นผิว ไม่แย่งสายตากับหัวข้อ
     สำคัญมากตอนใช้ภาพซองสินค้าเป็นพื้นหลัง เพราะบนซองมีตัวหนังสือใหญ่อยู่แล้ว
     ถ้าอัพโหลดภาพถ่ายแนวนอนกว้างๆ มาแทน จะลดค่า blur ลงได้ */
  filter: brightness(0.42) saturate(1.15) blur(4px);
}
.carousel-item.active .hero-bg { transform: scale(1.0); }

.hero-overlay {
  position: absolute;
  inset: 0;
  /* ไล่เฉดเข้มจากซ้าย เพื่อให้ข้อความฝั่งซ้ายอ่านง่ายเสมอ ไม่ว่าภาพพื้นหลังจะสว่างแค่ไหน */
  background:
    linear-gradient(90deg, rgba(8,26,4,.88) 0%, rgba(8,26,4,.55) 45%, rgba(8,26,4,.30) 100%),
    linear-gradient(180deg, rgba(8,26,4,.30) 0%, transparent 40%, rgba(8,26,4,.55) 100%);
}

/* Decorative shapes */
.hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  animation: floatShape 6s ease-in-out infinite;
}
.hero-shape.s1 {
  width: 400px; height: 400px;
  background: var(--primary);
  top: -150px; right: -80px;
  animation-delay: 0s;
}
.hero-shape.s2 {
  width: 200px; height: 200px;
  background: #fff;
  bottom: 80px; left: 5%;
  animation-delay: 2s;
}
.hero-shape.s3 {
  width: 120px; height: 120px;
  background: var(--primary);
  top: 40%; right: 15%;
  animation-delay: 4s;
}
@keyframes floatShape {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-20px) rotate(180deg); }
}

/* Hero Body */
.hero-body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}
.hero-row-height { min-height: inherit; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(62,158,18,0.85);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 30px;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}
.hero-title span { color: var(--accent); }

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  font-weight: 300;
  line-height: 1.6;
}

/* Hero Action Buttons */
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 12px 28px; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: var(--transition);
  border: 2px solid var(--primary);
}
.btn-hero-primary:hover {
  background: var(--primary-dark); border-color: var(--primary-dark);
  color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-red);
}
.btn-hero-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: #fff;
  padding: 12px 28px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: var(--transition);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.15); border-color: #fff;
  color: #fff; transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.stat-num {
  display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary);
  line-height: 1;
}
.stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.7); margin-top: 2px; }
.hero-stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

/* Hero Controls (arrows, dots) */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(62,158,18,0.7); border: none;
  color: #fff; width: 44px; height: 44px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: var(--transition); backdrop-filter: blur(4px);
}
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-arrow:hover { background: var(--primary); transform: translateY(-50%) scale(1.1); }

/* Hero Controls Bar */
.hero-controls {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; align-items: center; gap: 16px;
}
.hero-counter { color: rgba(255,255,255,0.7); font-size: 0.8rem; min-width: 40px; }
.hero-counter .cur-slide { color: var(--primary); font-weight: 700; font-size: 1.1rem; }
.hero-counter .sep { color: rgba(255,255,255,0.4); margin: 0 2px; }

.hero-progress-track {
  width: 80px; height: 3px; background: rgba(255,255,255,0.2); border-radius: 3px; overflow: hidden;
}
.hero-progress-bar {
  height: 100%; background: var(--primary); border-radius: 3px;
  width: 0; transition: width 5.5s linear;
}

.hero-dots { display: flex; gap: 6px; }
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer;
  transition: var(--transition); padding: 0;
}
.hero-dot.active { background: var(--primary); transform: scale(1.3); }

/* Scroll Down Indicator */
.hero-scroll-down {
  position: absolute; bottom: 20px; right: 24px; z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.7rem;
  transition: var(--transition);
}
.hero-scroll-down:hover { color: var(--primary); }
.scroll-mouse {
  width: 22px; height: 36px; border: 2px solid rgba(255,255,255,0.4);
  border-radius: 11px; position: relative;
}
.scroll-wheel {
  width: 4px; height: 8px; background: var(--primary);
  border-radius: 2px; position: absolute;
  top: 5px; left: 50%; transform: translateX(-50%);
  animation: scrollDown 1.5s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { top: 5px; opacity: 1; }
  100% { top: 18px; opacity: 0; }
}

/* Navbar padding offset */
/* ระยะเว้นใต้ navbar — main.js วัดความสูงจริงแล้วเซ็ต --nav-h ให้
   ค่า 68px ที่เขียนไว้เป็นค่าสำรองกรณี JS ยังไม่ทำงาน (กันหน้ากระตุกตอนโหลด) */
.navbar-offset { padding-top: var(--nav-h, 68px); }

/* ============================================================
   INFO BAR
   ============================================================ */
.info-bar {
  background: linear-gradient(135deg, var(--dark) 0%, #0b1706 100%);
  border-bottom: 1px solid rgba(62,158,18,0.3);
  color: #fff;
}
.info-bar .info-icon { color: var(--primary); font-size: 1.3rem; flex-shrink: 0; }
.info-bar strong { color: #fff; }
.info-bar .small { color: rgba(255,255,255,0.55); }

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section-pad { padding: 80px 0; }
@media (max-width: 767px) { .section-pad { padding: 52px 0; } }

.section-header { margin-bottom: 48px; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.section-subtitle { color: var(--text-muted); font-size: 1rem; }

/* Divider */
.divider-line {
  width: 60px; height: 4px;
  background: var(--primary); border-radius: 2px;
  margin: 12px auto;
}
.divider-line.left { margin-left: 0; }

.divider-dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0; }
.divider-dots span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary);
}
.divider-dots span:nth-child(2) {
  width: 24px; border-radius: 4px;
}
.divider-dots.light span { background: rgba(255,255,255,0.6); }
.divider-dots.light span:nth-child(2) { background: #fff; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light); color: var(--primary);
  font-size: 0.82rem; font-weight: 600;
  padding: 5px 14px; border-radius: 30px; margin-bottom: 14px;
  border: 1px solid rgba(62,158,18,0.2);
}
.about-list { list-style: none; padding: 0; margin: 0; }
.about-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--gray-200);
  font-size: 0.95rem;
}
.about-list li:last-child { border-bottom: none; }
.about-list li i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.about-img { height: 620px; object-fit: cover; }
@media (max-width: 991.98px) {
  .about-img {
    height: auto;
    aspect-ratio: 1 / 1;
    width: 100%;
  }
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 991px) { .social-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px)  { .social-grid { grid-template-columns: repeat(2, 1fr); } }
.social-pill {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 12px; border-radius: 10px;
  font-size: .83rem; font-weight: 600; text-decoration: none;
  color: #fff; background: var(--sc, #333);
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.social-pill:hover { opacity: .85; transform: translateY(-2px); color: #fff; }

/* ============================================================
   PRODUCT CARDS (Modern · Minimal · Luxe)
   ============================================================ */
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(42,110,12,.06);
  transition: all .35s cubic-bezier(.2,.8,.2,1);
  border: 1px solid rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.product-card::after {
  content:'';
  position:absolute; inset:0;
  border-radius:inherit;
  pointer-events:none;
  box-shadow: inset 0 0 0 1px rgba(165,217,58,0);
  transition: box-shadow .35s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(42,110,12,.16);
  border-color: transparent;
}
.product-card:hover::after { box-shadow: inset 0 0 0 1.5px rgba(165,217,58,.55); }

.product-img-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f5faf0 0%, #e2eed6 100%);
  aspect-ratio: 1/1;
}
.product-img-wrap::before {
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 60%, rgba(18,33,10,.18) 100%);
  opacity:0;
  transition: opacity .35s ease;
  z-index: 1;
  pointer-events: none;
}
.product-card:hover .product-img-wrap::before { opacity: 1; }
.product-img-wrap img {
  width: 100%; height: 100%;
  /* ภาพซองเมล็ดพันธุ์เป็นแนวตั้ง (600x870) — ใช้ contain ไม่ให้หัวซอง "ทองไทย" ถูกตัด */
  object-fit: contain;
  object-position: center;
  padding: 6px;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

/* Floating "view" hint on image hover */
.product-img-wrap .product-quick-view {
  position: absolute;
  bottom: 12px; right: 12px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 1rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: all .35s cubic-bezier(.2,.8,.2,1);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.product-card:hover .product-quick-view {
  opacity: 1; transform: translateY(0);
  background: var(--accent); color: #12210a;
}

.badge-promo,
.badge-popular {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.68rem; font-weight: 700;
  padding: 4px 11px; border-radius: 30px;
  letter-spacing: 0.6px; text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
}
.badge-promo {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(42,110,12,.25);
}
.badge-popular {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #12210a;
  box-shadow: 0 4px 12px rgba(165,217,58,.35);
}

.product-body {
  padding: 18px 18px 20px;
  display: flex; flex-direction: column; flex: 1;
}
.cat-badge {
  display: inline-block;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0;
  border-radius: 0;
  margin-bottom: 8px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  position: relative;
  padding-left: 14px;
}
.cat-badge::before {
  content:'';
  position:absolute; left:0; top:50%;
  transform: translateY(-50%);
  width:8px; height:1.5px;
  background: var(--accent);
}
.product-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  letter-spacing: 0.1px;
  transition: color .25s ease;
}
.product-card:hover .product-title { color: var(--primary-dark); }
.product-brand {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.product-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 14px;
}

/* Refined CTA inside card */
.product-card .btn-primary-custom {
  background: transparent;
  color: var(--primary-dark);
  border: 1.5px solid var(--border);
  padding: 8px 14px;
  font-size: .82rem;
  letter-spacing: .3px;
  border-radius: 10px;
  font-weight: 600;
}
.product-card:hover .btn-primary-custom {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

/* ============================================================
   CATEGORY CARDS (Homepage)
   ============================================================ */
.category-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  color: inherit;
}
.category-icon {
  width: 64px; height: 64px;
  background: var(--primary-light); color: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 14px; transition: var(--transition);
}
.category-card:hover .category-icon {
  background: var(--primary); color: #fff;
}
.category-img-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #f5faf0 0%, #e2eed6 100%);
}
.category-img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  padding: 6px;
  transition: var(--transition);
}
.category-card:hover .category-img {
  transform: scale(1.05);
}
.category-name {
  font-weight: 700; font-size: 0.88rem; color: var(--text-dark);
  margin: 0;
}

/* ============================================================
   FILTER TABS (modern pill bar)
   ============================================================ */
.filter-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(42,110,12,.05);
  width: fit-content;
  margin: 0 auto;
  max-width: 100%;
  overflow-x: auto;
}
.filter-btn {
  background: transparent; border: none;
  color: var(--text-muted); font-weight: 500; font-size: 0.82rem;
  padding: 8px 18px; border-radius: 999px;
  cursor: pointer; transition: all .25s ease;
  font-family: 'Prompt', sans-serif;
  white-space: nowrap;
  letter-spacing: .2px;
}
.filter-btn:hover { color: var(--primary-dark); background: var(--primary-light); }
.filter-btn.active {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(42,110,12,.25);
}

/* Modern search bar in product list */
.products-search {
  max-width: 520px; margin: 0 auto;
  position: relative;
}
.products-search .form-control {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 12px 56px 12px 22px;
  font-size: .92rem;
  box-shadow: 0 2px 14px rgba(42,110,12,.05);
  transition: all .25s ease;
}
.products-search .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(42,110,12,.12);
}
.products-search .btn-search {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--primary-dark);
  color: #fff;
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: all .25s ease;
}
.products-search .btn-search:hover {
  background: var(--accent); color: #12210a;
  transform: translateY(-50%) rotate(-8deg);
}

/* Result toolbar */
.result-toolbar {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.result-count {
  font-size: .85rem;
  color: var(--text-muted);
  letter-spacing: .2px;
}
.result-count strong { color: var(--text-dark); font-weight: 700; }

/* ============================================================
   ORDER / CHANNEL SECTION
   ============================================================ */
.order-section {
  background: linear-gradient(135deg, var(--dark) 0%, #0b1706 100%);
  position: relative;
  overflow: hidden;
}
.order-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(62,158,18,0.15) 0%, transparent 60%);
}
.channel-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px 20px;
  color: #fff;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.channel-card:hover {
  background: rgba(62,158,18,0.2);
  border-color: var(--primary);
  transform: translateY(-4px);
}
.channel-card i { color: var(--primary); }
.channel-card h5 { color: #fff; font-weight: 700; margin-bottom: 8px; }
.channel-card p { color: rgba(255,255,255,0.75); font-size: 0.88rem; margin: 0; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.contact-info-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 2px 14px rgba(42,110,12,.06);
  border: 1px solid rgba(0,0,0,.04);
  height: 100%;
  transition: all .35s cubic-bezier(.2,.8,.2,1);
  position: relative;
  overflow: hidden;
}
.contact-info-card::before {
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.contact-info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(42,110,12,.14);
  border-color: transparent;
}
.contact-info-card:hover::before { transform: scaleX(1); }
.contact-info-card i {
  font-size: 1.4rem;
  color: var(--primary);
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--primary-light);
  display: inline-flex !important;
  align-items: center; justify-content: center;
  margin-bottom: 14px;
  transition: all .35s ease;
}
.contact-info-card:hover i {
  background: var(--primary-dark);
  color: var(--accent);
  transform: rotate(-6deg) scale(1.05);
}
.contact-info-card h6 {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-dark);
  font-size: .8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.contact-info-card p {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
}
.contact-info-card p a { color: var(--text-dark); }
.contact-info-card p a:hover { color: var(--primary-dark); }

/* Contact page header / intro */
.contact-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 36px;
}
.contact-intro .eyebrow {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  padding: 0 18px;
}
.contact-intro .eyebrow::before,
.contact-intro .eyebrow::after {
  content:'';
  position:absolute; top:50%;
  width:14px; height:1.5px;
  background: var(--accent);
}
.contact-intro .eyebrow::before { right: 100%; }
.contact-intro .eyebrow::after  { left:  100%; }
.contact-intro h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.contact-intro p { color: var(--text-muted); font-size: .95rem; }

/* Quick action big buttons */
.contact-cta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}
.contact-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-dark);
  transition: all .3s ease;
  box-shadow: 0 2px 10px rgba(42,110,12,.05);
}
.contact-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(42,110,12,.14);
  color: var(--text-dark);
}
.contact-cta-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: #fff;
}
.contact-cta-icon.call { background: var(--primary-dark); }
.contact-cta-icon.line { background: #06c755; }
.contact-cta-icon.fb   { background: #1877F2; }
.contact-cta-label {
  display: block;
  font-size: .72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-cta-value {
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .2px;
}

/* Form Styles */
.form-control, .form-select {
  border-color: var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Prompt', sans-serif;
  font-size: 0.9rem;
  padding: 10px 14px;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(62,158,18,0.12);
}
.form-label { font-weight: 600; font-size: 0.88rem; }

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.article-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex; flex-direction: column;
  height: 100%;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.article-img-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 16/9; background: var(--gray-100);
}
.article-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.5s ease;
}
.article-card:hover .article-img-wrap img { transform: scale(1.06); }
.article-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.article-cat-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--primary-light); color: var(--primary);
  font-size: 0.72rem; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.article-title {
  font-size: 1rem; font-weight: 700; color: var(--text-dark);
  line-height: 1.45; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.article-excerpt {
  font-size: 0.84rem; color: var(--text-muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 14px; flex: 1;
}
.article-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.75rem; color: var(--text-muted);
  margin-top: auto;
}
.article-read-more {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 0.85rem;
  text-decoration: none; transition: var(--transition);
}
.article-read-more:hover { color: var(--primary-dark); gap: 10px; }

/* Article Detail Page */
.article-content {
  font-size: 1rem; line-height: 1.9; color: var(--text-dark);
}
.article-content h2 {
  font-size: 1.4rem; font-weight: 800; color: var(--dark);
  margin: 2em 0 0.8em;
  padding-left: 14px; border-left: 4px solid var(--primary);
}
.article-content h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--dark);
  margin: 1.5em 0 0.6em;
}
.article-content p { margin-bottom: 1.2em; }
.article-content ul, .article-content ol {
  padding-left: 1.5em; margin-bottom: 1.2em;
}
.article-content li { margin-bottom: 0.4em; }
.article-content strong { color: var(--dark); }
.article-content table { margin-bottom: 1.5em; font-size: 0.9rem; }

/* ============================================================
   BRAND LOGOS SECTION
   ============================================================ */
.brand-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.brand-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-weight: 800; font-size: 1.05rem;
  color: var(--text-dark);
  transition: var(--transition);
  letter-spacing: 0.5px;
  min-width: 110px; text-align: center;
}
.brand-item:hover {
  border-color: var(--primary); color: var(--primary);
  box-shadow: var(--shadow-red); transform: translateY(-2px);
}

/* ============================================================
   TESTIMONIALS SLIDER
   ============================================================ */
.testimonial-slider-wrap { overflow: hidden; position: relative; padding: 8px 4px; }
.testimonial-track {
  display: flex; gap: 24px;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.testimonial-slide {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 0;
}
@media (max-width: 991px) { .testimonial-slide { flex: 0 0 calc(50% - 12px); } }
@media (max-width: 575px)  { .testimonial-slide { flex: 0 0 100%; } }

.testimonial-card {
  background: #fff; border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  height: 100%;
}
.testimonial-quote {
  font-size: 2rem; color: var(--primary); opacity: .25;
  line-height: 1; margin-bottom: 4px;
}
.testimonial-stars { color: var(--gold); font-size: 0.9rem; }
.testimonial-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; flex: 1; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; }
.testimonial-role { font-size: 0.75rem; color: var(--text-muted); }

/* Arrows */
.rev-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; transition: all .2s;
  font-size: 1rem; color: var(--dark);
}
.rev-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.rev-prev { left: -20px; }
.rev-next { right: -20px; }
@media (max-width: 575px) { .rev-prev { left: 0; } .rev-next { right: 0; } }

/* Dots */
.rev-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.rev-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer;
  transition: all .25s; padding: 0;
}
.rev-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* ============================================================
   STATS / COUNTER BAR
   ============================================================ */
.stats-bar {
  background: var(--primary);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.2) 0%, transparent 60%);
}
.stat-box { text-align: center; position: relative; z-index: 1; }
.stat-box .number {
  display: block; font-size: 2.5rem; font-weight: 800; color: #fff; line-height: 1;
}
.stat-box .label { font-size: 0.85rem; color: rgba(255,255,255,0.8); margin-top: 4px; }
.stat-sep { width: 1px; height: 60px; background: rgba(255,255,255,0.25); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-section {
  background: var(--dark-footer);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}
.footer-section h5, .footer-section h6 {
  color: #fff; font-weight: 700; margin-bottom: 20px;
}
.footer-logo-text { font-size: 1.3rem; font-weight: 800; color: #fff; }
.footer-logo-text span { color: var(--primary); }
.footer-desc { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.6); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.65); text-decoration: none;
  font-size: 0.88rem; transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.85rem; margin-bottom: 10px; color: rgba(255,255,255,0.7);
}
.footer-contact li i { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: var(--transition);
  text-decoration: none; border: 1px solid rgba(255,255,255,0.08);
}
.social-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.footer-tag-badge {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
  font-size: 0.75rem; padding: 3px 10px;
  border-radius: 20px; margin: 2px 2px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.footer-tag-badge:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Visitor Stats Bar */
.visitor-stats-bar {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  align-items: center; justify-content: center;
  padding: 12px 0; font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}
.vstat-item strong { color: var(--primary); }
.vstat-sep { color: rgba(255,255,255,0.2); }
.vstat-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: 4px; vertical-align: middle;
}
.online-dot { background: #22c55e; box-shadow: 0 0 6px #22c55e; animation: pulseDot 1.5s infinite; }
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* Footer Bottom */
.footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 14px 0;
  margin-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--primary); }

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
.floating-btns {
  position: fixed; bottom: 24px; right: 20px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 999;
}
.float-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; text-decoration: none; color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: var(--transition);
}
.float-btn:hover { transform: scale(1.12); color: #fff; }
.float-call  { background: var(--primary); }
.float-line  { background: #06c755; }
.float-call:hover  { background: var(--primary-dark); }
.float-line:hover  { background: #04a347; }

/* ============================================================
   PAGE HERO (subpages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #0b1706 100%);
  padding: 80px 0 50px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; right: -100px; top: -100px;
  width: 400px; height: 400px;
  border-radius: 50%; background: rgba(62,158,18,0.08);
}
.page-hero-title { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 800; color: #fff; }
.breadcrumb { background: transparent; padding: 0; margin: 0; }
.breadcrumb-item a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; }
.breadcrumb-item.active { color: var(--primary); font-size: 0.85rem; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }

/* ============================================================
   PDPA BANNER
   ============================================================ */
.pdpa-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(17,17,17,0.97);
  border-top: 3px solid var(--primary);
  padding: 16px 20px;
  backdrop-filter: blur(10px);
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: translateY(0);
}
.pdpa-banner.pdpa-hidden { transform: translateY(100%); opacity: 0; }
.pdpa-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.pdpa-icon { font-size: 1.6rem; color: var(--primary); flex-shrink: 0; }
.pdpa-content { flex: 1; min-width: 200px; }
.pdpa-title { font-weight: 700; color: #fff; font-size: 0.9rem; margin-bottom: 4px; }
.pdpa-text { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin: 0; }
.pdpa-link { color: var(--primary); }
.pdpa-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-pdpa-accept {
  background: var(--primary); color: #fff;
  border: none; border-radius: 8px;
  padding: 8px 20px; font-weight: 700; font-size: 0.85rem;
  cursor: pointer; font-family: 'Prompt', sans-serif;
  transition: var(--transition);
}
.btn-pdpa-accept:hover { background: var(--primary-dark); }
.btn-pdpa-reject {
  background: transparent; color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 8px;
  padding: 8px 16px; font-size: 0.82rem;
  cursor: pointer; font-family: 'Prompt', sans-serif;
  transition: var(--transition);
}
.btn-pdpa-reject:hover { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.4); }

/* ============================================================
   ADMIN STYLES
   ============================================================ */
.admin-sidebar {
  background: var(--dark); min-height: 100vh;
  width: 240px; position: fixed;
  top: 0; left: 0; z-index: 100;
  border-right: 1px solid rgba(255,255,255,0.05);
}
.admin-content { margin-left: 240px; }
.admin-nav-link {
  color: rgba(255,255,255,0.65) !important;
  font-size: 0.88rem; padding: 10px 20px !important;
  border-radius: 0; transition: var(--transition);
  display: flex; align-items: center; gap: 10px;
  border-left: 3px solid transparent;
}
.admin-nav-link:hover, .admin-nav-link.active {
  color: #fff !important;
  background: rgba(62,158,18,0.15);
  border-left-color: var(--primary);
}
.admin-nav-link i { font-size: 1.1rem; width: 20px; }
.admin-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  overflow: hidden;
}
.admin-stat-card {
  background: #fff; border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}
.admin-stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background: var(--primary) !important; }
.bg-dark-custom { background: var(--dark) !important; }
.border-primary-custom { border-color: var(--primary) !important; }

.rounded-custom { border-radius: var(--radius); }
.shadow-custom { box-shadow: var(--shadow-md); }

/* Back to top */
#backToTop {
  position: fixed; bottom: 90px; right: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--dark); color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  display: none; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; z-index: 998;
  transition: var(--transition);
}
#backToTop:hover { background: var(--primary); color: #fff; }
#backToTop.show { display: flex; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .hero-section { height: 70vh; min-height: 480px; }
  .hero-title { font-size: 1.8rem; }
  .hero-stats { gap: 12px; }
  .stat-num { font-size: 1.4rem; }
  .section-pad { padding: 52px 0; }
  .admin-sidebar { width: 60px; }
  .admin-sidebar .nav-label { display: none; }
  .admin-content { margin-left: 60px; }
}
@media (max-width: 767px) {
  .hero-section { height: 60vh; min-height: 400px; }
  .hero-title { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .btn-hero-primary, .btn-hero-outline { justify-content: center; padding: 11px 20px; }
  .hero-scroll-down { display: none; }
  .pdpa-inner { flex-direction: column; align-items: flex-start; }
  .stats-bar .stat-sep { display: none; }
  .contact-form-card { padding: 20px; }
  .admin-sidebar { display: none; }
  .admin-content { margin-left: 0; }
}

/* ============================================================
   PROMO BANNER (multi-card swiper)
   ============================================================ */
.promo-banner-section { background: var(--gray-100); }
.promo-swiper-wrap { padding: 8px 0 48px; }
.promoBannerSwiper { overflow: hidden; padding: 12px 4px 44px; }

.promoBannerSwiper .swiper-slide {
  height: auto;
  display: flex;
  transition: transform .35s ease, opacity .35s ease;
  opacity: 0.7;
  transform: scale(0.94);
}
.promoBannerSwiper .swiper-slide-active,
.promoBannerSwiper .swiper-slide-duplicate-active {
  opacity: 1;
  transform: scale(1);
}

.promo-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 6px 20px rgba(42,110,12,.08);
  transition: var(--transition);
  border: 1px solid var(--border);
}
.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(42,110,12,.18);
  color: var(--text-dark);
}
.promo-card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--gray-200);
}
.promo-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s ease;
}
.promo-card:hover .promo-card-img img { transform: scale(1.06); }

.promo-card-body {
  padding: 18px 18px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.promo-card-title {
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.promo-card-arrow {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--primary);
  transition: var(--transition);
  font-size: 1rem;
}
.promo-card:hover .promo-card-arrow {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Navigation arrows */
.promo-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(42,110,12,.15);
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition);
}
.promo-nav:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.promo-nav-prev { left: -8px; }
.promo-nav-next { right: -8px; }
.promo-nav.swiper-button-disabled { opacity: 0.4; cursor: default; }

/* Pagination dots */
.promoBannerSwiper .swiper-pagination {
  bottom: 0 !important;
}
.promoBannerSwiper .swiper-pagination-bullet {
  width: 8px; height: 8px;
  background: var(--border);
  opacity: 1;
  transition: var(--transition);
}
.promoBannerSwiper .swiper-pagination-bullet-active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .promo-nav-prev { left: 4px; }
  .promo-nav-next { right: 4px; }
  .promo-nav { width: 38px; height: 38px; font-size: 1rem; }
}

/* ============================================================
   CONTACT QR CODE CARD
   ============================================================ */
.qr-card {
  background: linear-gradient(180deg, #fff 0%, var(--gray-100) 100%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px 32px;
  max-width: 360px;
  box-shadow: 0 10px 30px rgba(42,110,12,.10);
  transition: var(--transition);
  position: relative;
}
.qr-card::before {
  content: '\F4D7';
  font-family: 'bootstrap-icons';
  position: absolute;
  top: 18px; right: 18px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #06c755;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(6,199,85,.35);
}
.qr-card:hover {
  box-shadow: 0 14px 40px rgba(42,110,12,.16);
  transform: translateY(-2px);
}
.qr-image {
  width: 100%;
  max-width: 240px;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 8px;
}

/* ============================================================
   POPULAR / BESTSELLERS — editorial header
   ============================================================ */
.popular-section {
  background: linear-gradient(180deg, #fff 0%, var(--gray-100) 100%);
  position: relative;
}
.popular-section::before {
  content:'';
  position:absolute;
  top: 60px; right: -120px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--primary-light) 0%, transparent 70%);
  pointer-events: none;
  opacity: .6;
  z-index: 0;
}
.popular-section .container { position: relative; z-index: 1; }

.popular-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.popular-header-left { max-width: 640px; }

.section-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.popular-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -.5px;
  color: var(--text-dark);
}
.popular-subtitle {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  max-width: 560px;
}

.popular-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--primary-dark);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  transition: all .3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.popular-view-all:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateX(2px);
}
.popular-view-all i {
  transition: transform .3s ease;
}
.popular-view-all:hover i {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .popular-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .popular-view-all { display: none; }
  .popular-section::before { display: none; }
}

/* ============================================================
   PRODUCT MATCH TAGS (search highlight)
   ============================================================ */
.product-match-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.match-tag {
  display: inline-block;
  font-size: .68rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  letter-spacing: .2px;
  font-weight: 500;
}
