:root {
  --bg: #f0f2f1;
  --sf: #fff;
  --sf2: #f6f8f7;
  --cd: #fff;
  --gl: rgba(255, 255, 255, .85);
  --gls: rgba(255, 255, 255, .97);
  --bd: #dfe3e0;
  --bds: #eaede9;
  --g: #16a34a;
  --gd: #15803d;
  --gdd: #0f5c2c;
  --gl2: #f0fdf4;
  --gg: rgba(22, 163, 74, .15);
  --ggm: rgba(22, 163, 74, .25);
  --hbg: linear-gradient(135deg, #15803d, #16a34a);
  --t1: #1a1e1b;
  --t2: #4a524d;
  --t3: #8a938d;
  --tw: #fff;
  --s1: 0 1px 3px rgba(0, 0, 0, .05);
  --s2: 0 4px 16px rgba(0, 0, 0, .06);
  --s3: 0 8px 32px rgba(0, 0, 0, .08);
  --r: 14px;
  --rs: 8px;
  --rl: 20px;
  --glow-c: rgba(22, 163, 74, .5);
}

[data-theme="dark"] {
  --bg: #0f1210;
  --sf: #181c19;
  --sf2: #1f2421;
  --cd: #1c201d;
  --gl: rgba(24, 28, 25, .88);
  --gls: rgba(24, 28, 25, .97);
  --bd: #2a302c;
  --bds: #232824;
  --g: #22c55e;
  --gd: #16a34a;
  --gdd: #15803d;
  --gl2: rgba(34, 197, 94, .08);
  --gg: rgba(34, 197, 94, .15);
  --ggm: rgba(34, 197, 94, .25);
  --hbg: linear-gradient(135deg, #0f5c2c, #15803d);
  --t1: #e5ebe7;
  --t2: #9aa39d;
  --t3: #5f6b63;
  --s1: 0 1px 3px rgba(0, 0, 0, .2);
  --s2: 0 4px 16px rgba(0, 0, 0, .25);
  --s3: 0 8px 32px rgba(0, 0, 0, .3);
  --glow-c: rgba(34, 197, 94, .6);
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: 'IBM Plex Sans Thai', 'Mitr', sans-serif;
  background: var(--bg);
  color: var(--t1);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background .4s, color .4s
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none
}

::-webkit-scrollbar {
  width: 5px
}

::-webkit-scrollbar-thumb {
  background: var(--gd);
  border-radius: 3px
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-12px);
    opacity: 0
  }

  to {
    transform: translateY(0);
    opacity: 1
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

@keyframes cardPop {
  0% {
    transform: scale(1)
  }

  50% {
    transform: scale(1.07)
  }

  100% {
    transform: scale(1)
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-6px)
  }
}

@keyframes glow {

  0%,
  100% {
    text-shadow: 0 0 8px rgba(22, 163, 74, .3)
  }

  50% {
    text-shadow: 0 0 24px rgba(22, 163, 74, .6)
  }
}

/* Glow border animation */
@keyframes glowBorder {

  0%,
  100% {
    box-shadow: 0 0 6px 1px rgba(22, 163, 74, .2), var(--s1)
  }

  50% {
    box-shadow: 0 0 18px 4px rgba(22, 163, 74, .55), var(--s2)
  }
}

@keyframes glowBorderStrong {

  0%,
  100% {
    box-shadow: 0 0 10px 2px rgba(22, 163, 74, .3), 0 0 24px 6px rgba(22, 163, 74, .1)
  }

  50% {
    box-shadow: 0 0 28px 8px rgba(22, 163, 74, .65), 0 0 60px 16px rgba(22, 163, 74, .2)
  }
}

/* Star twinkle */
@keyframes twinkle {

  0%,
  100% {
    opacity: .15;
    transform: scale(.7)
  }

  50% {
    opacity: 1;
    transform: scale(1.15)
  }
}

@keyframes twinkle2 {

  0%,
  100% {
    opacity: .08;
    transform: scale(.5)
  }

  60% {
    opacity: .9;
    transform: scale(1.2)
  }
}

/* JS จะเพิ่ม .js-ready ที่ <html> — ถ้า JS พัง content ยังแสดงปกติ */
.anim {
  transition: all .65s cubic-bezier(.16, 1, .3, 1)
}

html.js-ready .anim {
  opacity: 0;
  transform: translateY(28px)
}

html.js-ready .anim.vis {
  opacity: 1;
  transform: translateY(0)
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--hbg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  transition: all .3s;
  border-bottom: 1px solid rgba(134, 239, 172, .15);
  animation: glowBorder 3s ease-in-out infinite
}

.header-in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between
}

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

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #085a21;
  object-fit: contain;
  border: 2px solid rgba(255, 255, 255, .3)
}

.logo-t h1 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  font-family: 'Mitr', sans-serif
}

.logo-t span {
  font-size: 9px;
  color: rgba(255, 255, 255, .7);
  letter-spacing: 1.5px;
  text-transform: uppercase
}

.nav {
  display: flex;
  gap: 2px
}

.nav a {
  padding: 7px 14px;
  border-radius: var(--rs);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .75);
  transition: all .25s
}

.nav a:hover,
.nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, .15)
}

.hact {
  display: flex;
  align-items: center;
  gap: 6px
}

.ttgl {
  width: 36px;
  height: 36px;
  border-radius: var(--rs);
  background: rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  transition: all .3s;
  border: 1px solid rgba(255, 255, 255, .15)
}

.ttgl:hover {
  background: rgba(255, 255, 255, .25)
}

.btn-line {
  background: #06C755;
  color: #fff;
  border-radius: var(--rs);
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(6, 199, 85, .3);
  transition: all .3s
}

.btn-line:hover {
  transform: translateY(-1px)
}

.btn-line .lb {
  display: inline
}

.hamburger {
  display: none;
  background: 0 0;
  color: #fff;
  font-size: 22px;
  padding: 6px
}

@media(max-width:768px) {
  .nav {
    display: none
  }

  .hamburger {
    display: block
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--gdd);
    padding: 16px;
    gap: 4px;
    animation: slideDown .3s ease
  }

  .btn-line .lb {
    display: none
  }
}

/* ===== HERO SLIDER (FADE) ===== */
.hero {
  padding-top: 8px;
  position: relative;
  z-index: 2
}

.swrap {
  position: relative;
  overflow: hidden
}

.strack {
  position: relative;
  height: 50vh;
  min-height: 380px;
  max-height: 500px
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
  background-position: center 35%;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1
}

.slide.noimg {
  background: var(--hbg)
}

.slide.noimg .slide-ov {
  background: linear-gradient(135deg, rgba(15, 92, 44, .8), rgba(21, 128, 61, .6))
}

/* Stars in hero */
.slide-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden
}

/* ธีมสว่าง — ลด overlay ให้บางลง */
.slide-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .05));
  z-index: 2
}

/* ธีมมืด — คืนค่าเดิม */
[data-theme="dark"] .slide-ov {
  background: linear-gradient(135deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .25));
}

.slide-ct {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 700px;
  padding: 40px 24px;
  padding-bottom: 60px;
  margin-top: auto
}

.slide-lb {
  display: inline-block;
  font-size: 11px;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: rgba(22, 163, 74, .7);
  backdrop-filter: blur(6px);
  padding: 5px 16px;
  border-radius: 20px;
  font-weight: 700
}

.slide-ct h3 {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 14px;
  font-family: 'Mitr', sans-serif;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3)
}

.slide-ct h3 .hl {
  color: #86efac
}

.slide-ct p {
  font-size: 14px;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 20px
}

.sspecs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 18px
}

.sbadge {
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  padding: 6px 14px;
  text-align: center
}

.sbadge .v {
  font-size: 15px;
  font-weight: 800;
  color: #86efac
}

.sbadge .l {
  font-size: 9px;
  color: rgba(255, 255, 255, .7)
}

.sbtns {
  display: flex;
  gap: 10px;
  justify-content: center
}

.bp {
  background: #fff;
  color: var(--gd);
  border-radius: 12px;
  padding: 11px 26px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
  transition: all .3s
}

.bp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2)
}

.bo {
  background: 0 0;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 12px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  transition: all .3s
}

.bo:hover {
  background: rgba(255, 255, 255, .12)
}

.sdots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: -30px;
  position: relative;
  z-index: 10;
  padding-bottom: 16px
}

.sdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  border: none;
  cursor: pointer;
  transition: all .3s
}

.sdot.on {
  background: #fff;
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(255, 255, 255, .4)
}

.sarr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all .3s
}

.sarr:hover {
  background: rgba(255, 255, 255, .3)
}

.sarr.p {
  left: 14px
}

.sarr.n {
  right: 14px
}

@media(max-width:768px) {
  .strack {
    height: auto;
    min-height: 300px;
    max-height: none
  }

  .slide-ct h3 {
    font-size: 20px
  }

  .slide-ct {
    padding-bottom: 50px
  }
}

/* ===== MAIN / LAYOUT ===== */
.main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 16px;
  position: relative;
  z-index: 2
}

@media(max-width:600px) {
  .main {
    padding: 20px 8px
  }
}

.stitle {
  font-size: 20px;
  font-weight: 800;
  color: var(--t1);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-family: 'Mitr', sans-serif
}

.stitle .bar {
  width: 4px;
  height: 24px;
  background: var(--g);
  border-radius: 2px;
  animation: glowBorderStrong 2.5s ease-in-out infinite;
  box-shadow: 0 0 8px var(--glow-c)
}

.stitle .ico {
  font-size: 22px;
  animation: float 3s ease-in-out infinite
}

/* ===== PRODUCTS ===== */
.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

@media(max-width:500px) {
  .pgrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px
  }
}

.pcard {
  background: var(--cd);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  overflow: hidden;
  transition: all .35s cubic-bezier(.16, 1, .3, 1);
  position: relative;
  box-shadow: var(--s1);
  animation: glowBorder 4s ease-in-out infinite;
}

.pcard:hover {
  border-color: var(--g);
  box-shadow: 0 0 22px 5px rgba(22, 163, 74, .45), var(--s3);
  transform: translateY(-4px);
  animation: none;
}

.pcard .tag {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px
}

.tag-hot {
  background: var(--g);
  color: #fff
}

.tag-popular {
  background: #2563eb;
  color: #fff
}

.tag-pro {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff
}

.tag-new {
  background: var(--gl2);
  color: var(--g);
  border: 1px solid rgba(22, 163, 74, .2)
}

.pimg {
  aspect-ratio: 1 / 1;   /* ← สี่เหลี่ยมจัตุรัสเสมอ */
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sf2);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.pimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s
}

.pcard:hover .pimg img {
  transform: scale(1.07)
}

.pimg .ph {
  width: 80px;
  height: 64px;
  border-radius: 12px;
  background: var(--bg);
  border: 2px dashed var(--bd);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--t3);
  font-size: 10px;
  gap: 4px
}

.pimg .ph span {
  font-size: 22px
}

.pimg.clicked {
  animation: cardPop .35s ease
}

.pinfo {
  padding: 10px 10px 12px;
  text-align: center
}

.pname {
  font-size: 14px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 8px;
  line-height: 1.4
}

.pcard-btns {
  display: flex;
  gap: 5px;
  justify-content: center
}

.btn-more {
  display: inline-block;
  background: var(--gg);   /* เขียวเข้มขึ้นกว่า gl2 */
  color: var(--g);
  border: 1px solid rgba(22, 163, 74, .2);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  transition: all .3s;
  flex: 1
}

.btn-more:hover {
  background: var(--g);
  color: #fff
}

.btn-addorder {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--g);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  transition: all .3s;
  cursor: pointer;
  flex: 0 0 auto
}

.btn-addorder:hover {
  background: var(--gd);
  transform: scale(1.05)
}

.btn-addorder:active {
  transform: scale(.96)
}

/* ===== MARQUEE ===== */
.mqsec {
  background: var(--sf2);
  border-top: 1px solid var(--bds);
  border-bottom: 1px solid var(--bds);
  padding: 14px 0;
  overflow: hidden;
  position: relative;
  z-index: 2
}

.mqsec .lb2 {
  max-width: 1240px;
  margin: 0 auto 8px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--g);
  display: flex;
  align-items: center;
  gap: 6px
}

.mqt {
  overflow: hidden;
  white-space: nowrap
}

.mqi {
  display: inline-flex;
  gap: 10px;
  animation: marquee 25s linear infinite
}

.mqi:hover {
  animation-play-state: paused
}

.mchip {
  background: var(--cd);
  border: 1px solid var(--bd);
  border-radius: var(--rs);
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--t2);
  white-space: nowrap;
  cursor: pointer;
  transition: all .3s;
  box-shadow: var(--s1)
}

.mchip:hover {
  border-color: var(--g);
  color: var(--g)
}

/* ===== BANNERS / NEWS ===== */
.bgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.bcard.bcard-featured {
  grid-column: 1 / -1;
  aspect-ratio: 16/7
}

@media(max-width:600px) {
  .bgrid {
    grid-template-columns: 1fr 1fr;
    gap: 10px
  }
  .bcard.bcard-featured {
    grid-column: 1 / -1;
    aspect-ratio: 16/9
  }
  .bcard:not(.bcard-featured) {
    aspect-ratio: 3/4
  }
}

.bcard {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--bd);
  background: var(--cd);
  cursor: pointer;
  transition: all .35s;
  box-shadow: var(--s1);
  position: relative;
  animation: glowBorder 5s ease-in-out infinite;
  aspect-ratio: 4/3
}

.bcard:hover {
  border-color: var(--g);
  box-shadow: 0 0 22px 5px rgba(22, 163, 74, .35), var(--s3);
  animation: none
}

.bcard img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0
}

.bcard-cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 14px 12px;
  background: linear-gradient(transparent 0%, rgba(0,0,0,.35) 25%, rgba(0,0,0,.85) 100%);
  color: #fff;
  pointer-events: none
}

.bcard-cap-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0,0,0,.9), 0 0 3px rgba(0,0,0,.7)
}

.bcard-cap-desc {
  font-size: 12px;
  margin-top: 3px;
  opacity: .9;
  text-shadow: 0 1px 4px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.6)
}

.bcard .bph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--t3);
  font-size: 12px;
  gap: 6px;
  padding: 20px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  text-align: center
}

.bcard .bph span {
  font-size: 36px
}

.bph-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--t1);
  font-family: 'Mitr', sans-serif
}

.bph-desc {
  font-size: 12px;
  color: var(--t2)
}

.bph-badge {
  display: inline-block;
  background: var(--g);
  color: #fff;
  border-radius: 20px;
  padding: 3px 14px;
  font-size: 11px;
  font-weight: 700;
  margin-top: 6px
}

/* ===== CERT ===== */
.cert-sec {
  text-align: center;
  padding: 20px 0
}

.cert-img {
  max-width: 180px;
  margin: 0 auto;
  border-radius: var(--r);
  cursor: pointer;
  border: 1px solid var(--bd);
  transition: all .3s;
  box-shadow: var(--s1)
}

.cert-img:hover {
  transform: scale(1.03);
  box-shadow: var(--s3)
}

.cert-tx {
  font-size: 11px;
  color: var(--t3);
  margin-top: 8px
}

/* ===== LIGHTBOX ===== */
.lbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center
}

.lbox.open {
  display: flex
}

.lbox img {
  
  max-height: 90vh;
  border-radius: var(--r)
}

.lbox-x {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, .15);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background .2s
}

.lbox-x:hover {
  background: rgba(255, 255, 255, .3)
}

/* ===== PRODUCT ZOOM MODAL ===== */
.prod-lb {
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center
}

.prod-modal-box {
  background: var(--cd);
  border-radius: 24px;
  overflow: hidden;
  width: 88%;
  max-width: 380px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
  animation: scaleIn .3s cubic-bezier(.16, 1, .3, 1);
  border: 1px solid var(--bd);
  position: relative
}

.pm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, .25);
  cursor: pointer;
  transition: background .2s;
  line-height: 1
}

.pm-close:hover {
  background: rgba(0, 0, 0, .7)
}

.pm-img-area {
  position: relative;
  width: 100%;
  overflow: hidden
}

.pm-img-area img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block
}

.pm-name-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 18px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .62));
  text-align: center
}

.pm-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .7);
  font-family: 'Mitr', sans-serif;
  line-height: 1.35
}

.pm-ph {
  min-height: 220px;
  background: var(--sf2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--t3);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 20px
}

.pm-ph span {
  font-size: 60px
}

.pm-name-ph {
  color: var(--t1);
  font-size: 15px;
  margin-top: 4px
}

.pm-btns {
  display: flex;
  gap: 10px;
  padding: 14px 16px 18px;
  justify-content: center
}

.pm-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 10px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all .25s;
  text-align: center;
  font-family: 'IBM Plex Sans Thai', sans-serif
}

.pm-btn-detail {
  background: var(--gl2);
  color: var(--g);
  border: 1.5px solid rgba(22, 163, 74, .3);
  text-decoration: none
}

.pm-btn-detail:hover {
  background: var(--g);
  color: #fff;
  border-color: var(--g)
}

.pm-btn-order {
  background: var(--g);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(22, 163, 74, .45);
  animation: glowBorder 2.5s ease-in-out infinite
}

.pm-btn-order:hover {
  background: var(--gd);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(22, 163, 74, .55)
}

.pm-btn-order:active {
  transform: scale(.97)
}

/* ===== FAQ ===== */
.flist {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.fitem {
  background: var(--cd);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--s1);
  transition: border-color .3s
}

.fitem.open {
  border-color: var(--g);
  animation: glowBorder 2s ease-in-out infinite
}

.fq {
  width: 100%;
  background: 0 0;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--t1);
  text-align: left;
  transition: color .3s
}

.fq:hover {
  color: var(--g)
}

.fq .arr {
  font-size: 16px;
  color: var(--t3);
  transition: transform .3s, color .3s;
  flex-shrink: 0;
  margin-left: 12px
}

.fitem.open .fq .arr {
  transform: rotate(180deg);
  color: var(--g)
}

.fa {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.16, 1, .3, 1)
}

.fa-in {
  padding: 0 20px 18px;
  font-size: 13px;
  color: var(--t2);
  line-height: 1.9;
  border-top: 1px solid var(--bds);
  padding-top: 14px;
  margin: 0 10px
}

/* ===== ABOUT ===== */
.acard {
  background: var(--cd);
  border: 1px solid var(--bd);
  border-radius: var(--rl);
  padding: 32px;
  box-shadow: var(--s2);
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  animation: glowBorder 4s ease-in-out infinite
}

.acard .at {
  flex: 1;
  min-width: 280px
}

.acard .at h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  font-family: 'Mitr', sans-serif
}

.acard .at h3 em {
  color: var(--g);
  font-style: normal
}

.acard .at p {
  font-size: 13px;
  color: var(--t2);
  line-height: 1.9;
  margin-bottom: 12px
}

.acard .ai2 {
  flex: 0 0 300px
}

.ai-i {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--t2)
}

.ai-i .ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gl2);
  color: var(--g);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0
}

.ai-i .lb3 {
  font-size: 10px;
  color: var(--t3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px
}

.ai-i .vl {
  font-weight: 600;
  color: var(--t1)
}

@media(max-width:700px) {
  .acard {
    flex-direction: column;
    padding: 24px
  }

  .acard .ai2 {
    flex: auto;
    width: 100%
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gdd);
  color: rgba(255, 255, 255, .8);
  padding: 40px 20px 20px;
  z-index: 2;
  position: relative;
  overflow: hidden
}

.footer-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0
}

.footer-in {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 1
}

.fgrid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 30px
}

.fcol {
  flex: 1;
  min-width: 220px
}

.fcol h3 {
  font-size: 14px;
  font-weight: 700;
  color: #86efac;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px
}

.fcr {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .65)
}

.flink {
  display: block;
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
  padding: 4px 0;
  transition: color .3s
}

.flink:hover {
  color: #86efac
}

.fcare p {
  font-size: 12px;
  color: rgba(255, 255, 255, .65);
  line-height: 1.7;
  margin-bottom: 16px
}

.bchat {
  background: #fff;
  color: var(--gd);
  border-radius: var(--r);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 800;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
  transition: all .3s;
  animation: glowBorder 3s ease-in-out infinite
}

.bchat:hover {
  transform: translateY(-2px)
}

.fbot {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px
}

.fcopy {
  font-size: 11px;
  color: rgba(255, 255, 255, .35)
}

.fsoc {
  display: flex;
  gap: 6px
}

.schip {
  font-size: 10px;
  color: rgba(255, 255, 255, .4);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .1);
  cursor: pointer;
  transition: all .3s
}

.schip:hover {
  color: #86efac;
  border-color: rgba(134, 239, 172, .3)
}

/* ===== FAB / CART BUTTON ===== */
.fabs {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #06C755;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(6, 199, 85, .4);
  transition: transform .3s;
  text-decoration: none
}

.fab:hover {
  transform: scale(1.1)
}

.fab-cart {
  background: var(--g);
  position: relative;
  animation: glowBorderStrong 2.5s ease-in-out infinite;
  border: 2px solid rgba(255, 255, 255, .2)
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff
}

/* ===== CART / ORDER MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(6px);
  align-items: flex-end;
  justify-content: center
}

.modal-overlay.open {
  display: flex
}

@media(min-width:600px) {
  .modal-overlay {
    align-items: center
  }
}

.modal-box {
  background: var(--sf);
  border-radius: var(--rl) var(--rl) 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .2);
  animation: slideUp .35s cubic-bezier(.16, 1, .3, 1);
  border: 1px solid var(--bd);
  border-bottom: none
}

@media(min-width:600px) {
  .modal-box {
    border-radius: var(--rl);
    border: 1px solid var(--bd);
    animation: scaleIn .35s cubic-bezier(.16, 1, .3, 1)
  }
}

@keyframes slideUp {
  from {
    transform: translateY(60px);
    opacity: 0
  }

  to {
    transform: translateY(0);
    opacity: 1
  }
}

@keyframes scaleIn {
  from {
    transform: scale(.92);
    opacity: 0
  }

  to {
    transform: scale(1);
    opacity: 1
  }
}

.modal-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--bds);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--hbg);
  animation: glowBorder 3s ease-in-out infinite
}

.modal-head h2 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  font-family: 'Mitr', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px
}

.modal-close {
  background: rgba(255, 255, 255, .15);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s
}

.modal-close:hover {
  background: rgba(255, 255, 255, .3)
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--bds);
  display: flex;
  gap: 10px;
  flex-direction: column
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px
}

.order-table th {
  font-size: 11px;
  font-weight: 700;
  color: var(--t2);        /* เพิ่ม contrast */
  text-align: left;
  padding: 6px 8px;
  background: var(--gg);   /* เปลี่ยนจาก --sf2 เป็นเขียวอ่อน */
  border-radius: 6px
}

.order-table td {
  padding: 8px;
  border-bottom: 1px solid var(--bd);
  font-size: 13px;         /* เพิ่มจาก 12px */
  vertical-align: middle;
  color: var(--t1)         /* เพิ่มบรรทัดนี้ — force สีเข้ม */
}

.order-table strong {
  color: var(--g);         /* ชื่อรุ่น เช่น SY-3 เป็นสีเขียว */
  font-size: 14px
}

.order-table tr:last-child td {
  border-bottom: none
}

.order-qty {
  width: 50px;
  padding: 4px 6px;
  border: 1px solid var(--bd);
  border-radius: 6px;
  font-size: 12px;
  text-align: center;
  background: var(--sf);
  color: var(--t1);
  font-family: 'IBM Plex Sans Thai', sans-serif
}

.order-unit {
  padding: 4px 6px;
  border: 1px solid var(--bd);
  border-radius: 6px;
  font-size: 11px;
  background: var(--sf);
  color: var(--t1);
  font-family: 'IBM Plex Sans Thai', sans-serif
}

.order-del {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  transition: transform .2s
}

.order-del:hover {
  transform: scale(1.2)
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px
}

.order-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--t2);
  margin-bottom: 3px
}

.order-input {
  padding: 8px 12px;
  border: 1px solid var(--bd);
  border-radius: 10px;
  font-size: 13px;
  background: var(--sf);
  color: var(--t1);
  font-family: 'IBM Plex Sans Thai', sans-serif;
  width: 100%;
  transition: border-color .2s
}

.order-input:focus {
  outline: none;
  border-color: var(--g);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .1)
}

.btn-save-img {
  background: var(--g);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .3s;
  box-shadow: 0 2px 12px rgba(22, 163, 74, .3);
  animation: glowBorder 2.5s ease-in-out infinite
}

.btn-save-img:hover {
  background: var(--gd);
  transform: translateY(-1px)
}

.empty-cart {
  text-align: center;
  padding: 40px 20px;
  color: var(--t3);
  font-size: 14px
}

.empty-cart span {
  font-size: 48px;
  display: block;
  margin-bottom: 12px
}

.add-toast {
  position: fixed;
  top: 70px;
  right: 16px;
  z-index: 600;
  background: var(--g);
  color: #fff;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(22, 163, 74, .4);
  transform: translateX(120%);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
  display: flex;
  align-items: center;
  gap: 6px
}

.add-toast.show {
  transform: translateX(0)
}

/* ===== ORDER SLIP (hidden, for screenshot) ===== */
#orderSlip {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 480px;
  background: #fff;
  padding: 28px;
  font-family: 'IBM Plex Sans Thai', 'Mitr', sans-serif;
  color: #1a1e1b;
  border-radius: 16px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, .15);
}

.slip-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid #16a34a
}

.slip-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0f5c2c;
  overflow: hidden; 
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0
}

.slip-company {
  flex: 1
}

.slip-company h2 {
  font-size: 17px;
  font-weight: 800;
  color: #0f5c2c;
  line-height: 1.3
}

.slip-company p {
  font-size: 11px;
  color: #4a524d
}

.slip-title {
  font-size: 20px;
  font-weight: 900;
  color: #15803d;
  margin-bottom: 4px;
  font-family: 'Mitr', sans-serif
}

.slip-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap
}

.slip-meta-item {
  font-size: 12px;
  color: #4a524d
}

.slip-meta-item span {
  font-weight: 700;
  color: #1a1e1b;
  display: block
}

.slip-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px
}

.slip-table th {
  background: #f0fdf4;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  text-align: left
}

.slip-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
  color: #1a1e1b
}

.slip-table tr:last-child td {
  border-bottom: none
}

.slip-footer {
  text-align: center;
  font-size: 11px;
  color: #8a938d;
  border-top: 1px solid #e5e7eb;
  padding-top: 12px;
  margin-top: 4px
}

.slip-footer strong {
  color: #16a34a
}

/* ===== BRAND BANNER ===== */
.mbrand {
  display: block;
  text-align: center;
  padding: 80px 20px 18px;
  animation: fadeUp .5s ease both;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 85%, rgba(34, 139, 34, .08) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(34, 139, 34, .06) 0%, transparent 50%),
    conic-gradient(from 180deg at 50% 50%, rgba(100, 160, 100, .03) 0deg, transparent 60deg, rgba(100, 160, 100, .05) 120deg, transparent 180deg, rgba(100, 160, 100, .03) 240deg, transparent 300deg, rgba(100, 160, 100, .04) 360deg),
    linear-gradient(160deg, #eef5ef 0%, #e4ede5 50%, #ecf3ed 100%);
  background-color: #ecf3ee;
  transition: background .4s, color .4s
}

[data-theme="dark"] .mbrand {
  background:
    radial-gradient(circle at 15% 85%, rgba(34, 197, 94, .08) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(34, 197, 94, .06) 0%, transparent 50%),
    linear-gradient(160deg, #0f1a12 0%, #111a13 50%, #0d1710 100%);
  background-color: #0f1a12
}

.mbrand-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0
}

.mbrand img {
  width: 100px;
  height: 100px;
  margin: 0 auto 8px;
  border-radius: 50%;
  border: 3px solid var(--g);
  box-shadow: 0 2px 12px var(--gg);
  background-color: #006400;
  object-fit: contain;
  position: relative;
  z-index: 1
}

.mbrand h2 {
  color: var(--t1);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .15);
  position: relative;
  z-index: 1
}

.mbrand p {
  color: var(--t2);
  position: relative;
  z-index: 1
}

@media(max-width:768px) {
  .mbrand {
    display: block
  }
}