:root {
  --lime: #B8D134;
  --navy: #2A3288;
  --black: #0D0D12;
  --white: #ffffff;
  --gray50: #F5F5F5;
  --gray100: #E8E8E8;

  /* Legacy mapping */
  --g: var(--lime);
  --g2: #9EBA15;
  /* slightly darker lime */
  --ink: var(--black);
  /* Default text color */
  --ink2: var(--navy);
  /* Accent dark */
  --w: var(--white);
  --off: var(--gray50);
  --dim: rgba(255, 255, 255, .65);
  --r: 6px;
  /* Slightly rounder for the new modern look */
  --font: 'Noto Sans Thai', system-ui, sans-serif;
  --max: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font);
  background: var(--w);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: clip
}

a {
  text-decoration: none;
  color: inherit
}

img {
  max-width: 100%;
  display: block
}

/* WRAP */
.w {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px
}

@media(min-width:768px) {
  .w {
    padding: 0 40px
  }
}

/* ��� NAVBAR �������������������������������� */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(42, 50, 136, .95);
  border-bottom: 1px solid rgba(184, 209, 52, .18);
  backdrop-filter: blur(20px);
}

.nav-i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

@media(min-width:768px) {
  .nav-i {
    height: 64px;
    padding: 0 40px
  }
}

.nav-logo {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--w);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .custom-logo-link {
  display: flex;
  align-items: center;
}

.nav-logo .custom-logo {
  max-height: 40px;
  width: auto;
  display: block;
}

.nav-logo-d {
  width: 28px;
  height: 28px;
  border: 1px solid var(--g);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--g);
  flex-shrink: 0;
}

.nav-links {
  display: none;
  gap: 2px;
  align-items: center
}

@media(min-width:1024px) {
  .nav-links {
    display: flex
  }
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .65);
  padding: 7px 12px;
  border-radius: var(--r);
  transition: color .15s;
}

.nav-links a:hover {
  color: var(--g)
}

.nav-cta {
  display: none;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 18px;
  border: 1px solid var(--g);
  border-radius: var(--r);
  color: var(--g);
  background: transparent;
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--g);
  color: var(--ink)
}

@media(min-width:1024px) {
  .nav-cta {
    display: block
  }
}

.nav-ham {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  color: inherit;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

@media(min-width:1024px) {
  .nav-ham {
    display: none
  }
  /* Override Plant3's ._desktop { display:none !important } — Plant3 shows at 1024px */
  ._desktop {
    display: flex !important
  }
}

.nav-ham span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--w);
  border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
  transform-origin: center;
}

.nav-ham[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-ham[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-ham[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── MOBILE MENU OVERLAY ────────────────────────────────── */
.nm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 198;
  background: rgba(10, 11, 16, .6);
  opacity: 0;
  transition: opacity .25s ease;
}

.nm-overlay.on {
  display: block;
  opacity: 1;
}

/* ─── MOBILE MENU DRAWER ─────────────────────────────────── */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 199;
  width: min(420px, 92vw);
  background: var(--navy);
  border-left: 1px solid rgba(184, 209, 52, .15);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  display: flex;
  flex-direction: column;
  padding: 24px 28px 32px;
  overflow-y: auto;
}

.nav-mobile.on {
  transform: translateX(0);
}

@media(min-width:1024px) {
  .nav-mobile {
    display: none !important;
  }

  .nm-overlay {
    display: none !important;
  }
}

.nm-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-shrink: 0;
}

.nm-logo .custom-logo-link {
  display: flex;
  align-items: center;
}

.nm-logo .custom-logo {
  max-height: 36px;
  width: auto;
}

.nm-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  cursor: pointer;
  color: var(--w);
  flex-shrink: 0;
  transition: border-color .15s;
}

.nm-close:hover {
  border-color: var(--g);
  color: var(--g);
}

.nm-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.nm-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  text-decoration: none;
  color: var(--w);
  transition: color .15s;
}

.nm-item:hover {
  color: var(--g);
}

.nm-en {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  display: block;
}

.nm-th {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  margin-top: 2px;
}

.nm-num {
  font-family: monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, .35);
  letter-spacing: .06em;
  flex-shrink: 0;
}

.nm-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.btn-line-mob {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 700;
  background: #06C755;
  color: #fff;
  text-decoration: none;
  transition: opacity .15s;
}

.btn-line-mob:hover {
  opacity: .88;
}

.btn-ghost-mob {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  color: var(--w);
  border: 1px solid rgba(255, 255, 255, .25);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}

.btn-ghost-mob:hover {
  border-color: var(--g);
  color: var(--g);
}

/* ��� HERO ���������������������������������� */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}

@media(min-width:768px) {
  .hero {
    padding: 120px 0 80px;
  }
}

/* ─── HERO BACKGROUND LAYERS ─────────────────────────────── */
/* Layer order (bottom→top): hero-bg → hero-ov → ::before(pattern) → hero-body */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-ov {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: var(--ov-a, .92)
}


.hero-body {
  position: relative;
  width: 100%;
  padding: 48px 24px 56px;
  max-width: var(--max);
  margin: 0 auto;
}

@media(min-width:768px) {
  .hero-body {
    padding: 72px 40px 80px
  }
}

/* Display text � weight 300, very large */
.hero-sup {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--g);
  margin-bottom: 24px;
}

.hero-h {
  font-size: clamp(52px, 13vw, 120px);
  font-weight: 900;
  line-height: 1.0;
  color: var(--w);
  letter-spacing: -2px;
  margin-bottom: 0;
}

.hero-h strong {
  font-weight: 800;
  color: var(--g);
  display: block;
}

.hero-bottom {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 32px;
}

@media(min-width:768px) {
  .hero-bottom {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 48px
  }
}

.hero-desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--dim);
  line-height: 1.8;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* hero stats */
.hero-stats {
  display: flex;
  gap: 0;
  border: 1px solid rgba(184, 209, 52, .2);
  border-radius: var(--r);
  overflow: hidden;
  flex-shrink: 0;
  justify-self: center;
}

@media(min-width:768px) {
  .hero-stats {
    justify-self: end;
  }
}

.h-stat {
  padding: 16px 20px;
  text-align: center;
  border-right: 1px solid rgba(184, 209, 52, .2);
}

.h-stat:last-child {
  border-right: none
}

.h-stat-n {
  font-size: 22px;
  font-weight: 800;
  color: var(--g);
  line-height: 1;
  margin-bottom: 4px;
}

.h-stat-l {
  font-size: 10px;
  font-weight: 500;
  color: var(--dim);
  letter-spacing: .5px
}

/* ��� BUTTONS ������������������������������� */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--r);
  border: 1px solid var(--g);
  background: transparent;
  color: var(--g);
  cursor: pointer;
  transition: all .15s;
  line-height: 1;
  white-space: nowrap;
}

.btn:hover {
  background: var(--g);
  color: var(--ink)
}

.btn-solid {
  background: var(--g);
  color: var(--ink);
  border-color: var(--g)
}

.btn-solid:hover {
  background: var(--g2);
  border-color: var(--g2);
  color: var(--ink)
}

.btn-dim {
  border-color: rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .7)
}

.btn-dim:hover {
  border-color: var(--w);
  color: var(--w);
  background: transparent
}

/* ��� PRODUCTS ������������������������������ */
.products {
  background: var(--w);
  padding: 80px 0
}

@media(min-width:768px) {
  .products {
    padding: 100px 0
  }
}

.sec-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

@media(min-width:600px) {
  .sec-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px
  }
}

.sec-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--g);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.sec-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--g);
  flex-shrink: 0;
}

.sec-h {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--navy);
}

.sec-h em {
  color: var(--lime);
  font-style: italic;
}

.sec-view {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  border-bottom: 1px solid var(--ink2);
  padding-bottom: 1px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .15s, border-color .15s;
}

.sec-view:hover {
  color: var(--g);
  border-color: var(--g)
}

/* Product grid — display:flex + scroll owned by override ~L2038 */
.pg {
  gap: 1px;
  background: var(--off);
  border: 1px solid #e0e4ee;
  border-radius: var(--r);
}

.pc {
  background: var(--w);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background .15s;
  cursor: pointer;
  position: relative;
}

.pc::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--g);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}

.pc:hover {
  background: #fbfcfe
}

.pc:hover::after {
  transform: scaleX(1)
}

.pc-num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #aab4c8;
}

.pc-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}

.pc-desc {
  font-size: 13px;
  color: #5a6a88;
  line-height: 1.7;
  flex: 1
}

.pc-link {
  font-size: 14px;
  font-weight: 800;
  color: var(--g2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 10px 0;
}

.pc-link::after {
  content: '\2192';
  display: inline-block;
  transition: transform .2s
}

.pc:hover .pc-link::after {
  transform: translateX(4px)
}

/* ��� WHY ����������������������������������� */
.why {
  background: var(--navy);
  padding: 80px 0
}

@media(min-width:768px) {
  .why {
    padding: 100px 0
  }
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media(min-width:900px) {
  .why-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start
  }
}

/* Left: big number as visual */
.why-left {
  position: relative
}

.why-num {
  font-size: clamp(80px, 18vw, 160px);
  font-weight: 800;
  color: rgba(184, 209, 52, .1);
  line-height: 1;
  letter-spacing: -4px;
  position: absolute;
  top: -20px;
  left: -10px;
  pointer-events: none;
  user-select: none;
}

.why-card {
  position: relative;
  border: 1px solid rgba(184, 209, 52, .2);
  border-radius: var(--r);
  padding: 28px;
  background: rgba(255, 255, 255, .03);
}

.why-card-big {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  color: var(--g);
  line-height: 1;
  margin-bottom: 8px;
}

.why-card-label {
  font-size: 13px;
  color: var(--dim);
  font-weight: 500;
}

.why-card-note {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
  line-height: 1.7;
}

/* Right: list */
.why-right .sec-label {
  margin-bottom: 12px
}

.why-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: var(--w);
  line-height: 1.2;
  margin-bottom: 14px;
}

.why-sub {
  font-size: 15px;
  color: var(--dim);
  line-height: 1.8;
  margin-bottom: 36px
}

.wl {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.wi {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: var(--r);
  background: rgba(255, 255, 255, .02);
  transition: border-color .2s, background .2s;
}

.wi:hover {
  border-color: rgba(184, 209, 52, .25);
  background: rgba(184, 209, 52, .04);
}

.wi-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--g);
  margin-top: 8px;
  flex-shrink: 0;
}

.wi-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--w);
  margin-bottom: 4px;
}

.wi-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  line-height: 1.65
}

/* ��� COLORS �������������������������������� */
.colors {
  background: var(--off);
  padding: 80px 0
}

@media(min-width:768px) {
  .colors {
    padding: 100px 0
  }
}

/* Colors grid — display:flex + scroll owned by override ~L2086 */
.colors-grid {
  gap: 2px;
  background: #dde3ee;
  border: 1px solid #dde3ee;
  border-radius: var(--r);
  margin-bottom: 20px;
}

.csc {
  background: var(--w);
  padding: 0 0 14px;
  text-align: center;
  transition: background .15s;
  cursor: pointer;
  overflow: hidden;
}

.csc:hover {
  background: #f0f2f6
}

.csd {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0;
  margin: 0 0 10px;
  border: none;
}

.csn {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  padding: 0 8px;
}

.csc2 {
  font-size: 12px;
  color: #8899bb;
  margin-top: 2px;
  padding: 0 8px;
}

/* cert */
.certs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media(min-width:600px) {
  .certs {
    grid-template-columns: repeat(4, 1fr)
  }
}

.cert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--w);
  border: 1px solid #dde3ee;
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 600;
  color: #5a6a88;
}

.cert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--g);
  flex-shrink: 0;
}

/* ��� ARTICLES ������������������������������ */
.articles {
  background: var(--w);
  padding: 80px 0
}

@media(min-width:768px) {
  .articles {
    padding: 100px 0
  }
}

.ag {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: #e8edf5;
  border: 1px solid #e8edf5;
  border-radius: var(--r);
  overflow: hidden;
}

@media(min-width:600px) {
  .ag {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(min-width:900px) {
  .ag {
    grid-template-columns: repeat(3, 1fr)
  }
}

.ac {
  background: var(--w);
  display: flex;
  flex-direction: column;
  transition: background .15s;
  cursor: pointer;
}

.ac:hover {
  background: #f8fafc
}

.ac-img {
  height: 180px;
  background: linear-gradient(150deg, var(--ink), var(--ink2));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.ac-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42, 50, 136, .6), transparent);
}

.ac-img-txt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .2);
  position: relative;
  z-index: 1;
}

.ac-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.ac-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--g2);
}

.ac-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.45;
  flex: 1;
}

.ac-meta {
  font-size: 12px;
  color: #8899bb
}

/* ��� ABOUT ��������������������������������� */
.about {
  background: var(--navy);
  padding: 80px 0
}

@media(min-width:768px) {
  .about {
    padding: 100px 0
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media(min-width:900px) {
  .about-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: center
  }
}

.about-mark {
  font-size: clamp(48px, 10vw, 88px);
  font-weight: 300;
  letter-spacing: -2px;
  color: rgba(255, 255, 255, .07);
  line-height: 1;
  margin-bottom: 6px;
}

.about-mark strong {
  font-weight: 800;
  color: rgba(184, 209, 52, .25);
}

.about-co {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(184, 209, 52, .5);
  margin-bottom: 24px;
}

.about-divider {
  width: 40px;
  height: 1px;
  background: var(--g);
  margin-bottom: 24px
}

.about-addr {
  font-size: 12px;
  color: rgba(255, 255, 255, .3);
  line-height: 1.9
}

.about-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: var(--w);
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-body {
  font-size: 15px;
  color: var(--dim);
  line-height: 1.85;
  margin-bottom: 36px
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(184, 209, 52, .15);
  border: 1px solid rgba(184, 209, 52, .2);
  border-radius: var(--r);
  overflow: hidden;
}

.a-stat {
  background: rgba(255, 255, 255, .02);
  padding: 20px 16px;
  text-align: center;
}

.a-stat-n {
  font-size: 26px;
  font-weight: 800;
  color: var(--g);
  line-height: 1
}

.a-stat-l {
  font-size: 11px;
  color: rgba(255, 255, 255, .35);
  margin-top: 5px
}

/* ��� CTA ����������������������������������� */
.cta {
  background: var(--navy);
  padding: 40px 0 80px
}

@media(min-width:768px) {
  .cta {
    padding: 40px 0 100px
  }
}

.cta-box {
  border: 1px solid rgba(184, 209, 52, .2);
  border-radius: var(--r);
  padding: 40px 28px;
  background: rgba(184, 209, 52, .02);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media(min-width:768px) {
  .cta-box {
    padding: 56px 48px;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 60px
  }
}

.cta-h {
  font-size: clamp(24px, 5vw, 40px);
  font-weight: 800;
  color: var(--w);
  line-height: 1.2;
  margin-bottom: 12px;
}

.cta-h em {
  font-style: normal;
  color: var(--g)
}

.cta-sub {
  font-size: 15px;
  color: var(--dim);
  margin-bottom: 28px
}

.cta-acts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.cta-contacts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

.cc {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
}

a.cc:hover {
  color: var(--g);
}

.cc-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid rgba(184, 209, 52, .3);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--g);
}

/* ��� SOCIAL �������������������������������� */
.social {
  background: var(--off);
  padding: 48px 0
}

.social-in {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media(min-width:600px) {
  .social-in {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 24px
  }
}

.social-txt h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.social-txt p {
  font-size: 13px;
  color: #7a8aa8
}

.social-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.sl {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid #dde3ee;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--w);
  transition: all .15s;
}

.sl:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--w)
}

/* ��� IMAGE PLACEHOLDERS (Mockup ��ҹ��) ��� */
.img-ph {
  background: repeating-linear-gradient(45deg, rgba(0, 0, 0, .035) 0, rgba(0, 0, 0, .035) 3px,
      transparent 3px, transparent 18px);
  border: 1.5px dashed #bbc6d8;
  border-radius: var(--r);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #8899bb;
  gap: 5px;
}

.img-ph-lbl {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  padding: 0 10px
}

.img-ph-sz {
  font-size: 10px;
  opacity: .55
}

/* Hero full-bleed placeholder */
.hero-bg-ph {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .018) 0, rgba(255, 255, 255, .018) 3px,
      transparent 3px, transparent 24px);
}

.hero-bg-ph-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(184, 209, 52, .3);
  padding: 14px 28px;
  border-radius: var(--r);
  text-align: center;
  color: rgba(255, 255, 255, .2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  line-height: 2.2;
  white-space: nowrap;
  pointer-events: none;
}

/* Product card image */
.pc-img-ph {
  margin: -28px -24px 16px;
  height: 140px;
  border-radius: 0;
}

/* Article card � override gradient */
.ac-img.img-ph {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0, rgba(255, 255, 255, .025) 3px,
      rgba(42, 50, 136, .97) 3px, rgba(42, 50, 136, .97) 18px) !important;
  border: none;
  border-bottom: 1.5px dashed rgba(184, 209, 52, .25);
}

.ac-img.img-ph::after {
  display: none
}

/* About photo */
.about-img-ph {
  height: 220px;
  margin-top: 28px
}

@media(min-width:900px) {
  .about-img-ph {
    height: 260px
  }
}

/* ��� FOOTER �������������������������������� */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .85);
  padding: 48px 0 24px
}

.fg {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

@media(min-width:600px) {
  .fg {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(min-width:900px) {
  .fg {
    grid-template-columns: 1.6fr 1fr 1fr
  }
}

.footer .custom-logo-link {
  display: inline-flex;
}

.footer .custom-logo {
  max-height: 48px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

.fb-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--w);
  margin-bottom: 4px;
}

.fb-name em {
  font-style: normal;
  color: var(--g)
}

.fb-sub {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(184, 209, 52, .4);
  margin-bottom: 18px
}

.fb-addr {
  font-size: 12px;
  line-height: 1.9
}

.fc h4 {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(184, 209, 52, .15);
}

.fc ul {
  list-style: none
}

.fc li {
  margin-bottom: 9px
}

.fc a {
  font-size: 12px;
  color: rgba(255, 255, 255, .3);
  transition: color .15s
}

.fc a:hover {
  color: var(--g)
}

.fb-line {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 11px;
}

@media(min-width:600px) {
  .fb-line {
    flex-direction: row;
    justify-content: space-between;
    align-items: center
  }
}

.fsocs {
  display: flex;
  gap: 6px
}

.fsoc {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all .15s;
}

.fsoc:hover {
  border-color: var(--g);
  color: var(--g)
}

/* ─── BG COLORS ───────────────────────────────────────── */
.bg-navy {
  background: var(--navy) !important;
  color: var(--w)
}

.bg-white {
  background: var(--w) !important;
  color: var(--ink)
}

.bg-gray {
  background: var(--off) !important;
  color: var(--ink)
}

.bg-lime {
  background: var(--g) !important;
  color: var(--ink)
}

.bg-black {
  background: var(--black) !important;
  color: var(--w)
}

.bg-navy .sec-h,
.bg-black .sec-h {
  color: var(--w)
}

.bg-white .sec-h,
.bg-gray .sec-h {
  color: var(--navy)
}

.bg-lime .sec-h {
  color: var(--navy)
}

.bg-navy .sec-label,
.bg-black .sec-label {
  color: var(--g)
}

.bg-lime .sec-label {
  color: var(--navy)
}

/* ─── BG PATTERNS ─────────────────────────────────────── */
[class*="pat-"] {
  position: relative;
  overflow: hidden
}

[class*="pat-"]::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--pt-a, 1);
  z-index: var(--pt-z, 0);
  color: var(--pt-c, rgba(255, 255, 255, 0.12))
}

[class*="pat-"]>.s-container {
  position: relative;
  z-index: 2
}

[class*="pat-"] .w {
  position: relative;
  z-index: 1
}

.hero[class*="pat-"]::before {
  z-index: 2
}

/* ── Refactored (now use currentColor) ── */
.pat-diagonal::before {
  background: repeating-linear-gradient(45deg, currentColor 0, currentColor 1px, transparent 1px, transparent 14px)
}

.pat-dots::before {
  background: radial-gradient(currentColor 1px, transparent 1px);
  background-size: 18px 18px
}

.pat-grid::before {
  background:
    linear-gradient(currentColor 1px, transparent 1px),
    linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 28px 28px
}

.pat-mesh::before {
  background:
    linear-gradient(currentColor 1px, transparent 1px),
    linear-gradient(90deg, currentColor 1px, transparent 1px),
    linear-gradient(currentColor 1px, transparent 1px) 14px 14px,
    linear-gradient(90deg, currentColor 1px, transparent 1px) 14px 14px;
  background-size: 28px 28px
}

/* ── New patterns ── */
.pat-checks::before {
  background-image:
    repeating-linear-gradient(45deg, currentColor 25%, transparent 25%, transparent 75%, currentColor 75%, currentColor),
    repeating-linear-gradient(45deg, currentColor 25%, transparent 25%, transparent 75%, currentColor 75%, currentColor);
  background-position: 0 0, 10px 10px;
  background-size: 20px 20px
}

.pat-crossdots::before {
  background-image:
    radial-gradient(currentColor 1px, transparent 1px),
    radial-gradient(currentColor 1px, transparent 1px);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px
}

.pat-vlines::before {
  background-image: repeating-linear-gradient(to right, currentColor, currentColor 1px, transparent 1px, transparent);
  background-size: 20px 20px
}

.pat-hlines::before {
  background-image: repeating-linear-gradient(0deg, currentColor, currentColor 1px, transparent 1px, transparent);
  background-size: 20px 20px
}

.pat-dlines::before {
  background-image: repeating-linear-gradient(45deg, currentColor 0, currentColor 1px, transparent 0, transparent 50%);
  background-size: 14px 14px
}

.pat-vstripes::before {
  background-image: linear-gradient(90deg, transparent 50%, currentColor 50%);
  background-size: 20px 20px
}

.pat-hstripes::before {
  background-image: linear-gradient(0deg, transparent 50%, currentColor 50%);
  background-size: 20px 20px
}

.pat-dstripes::before {
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, currentColor 10px, currentColor 20px)
}

.pat-zigzag::before {
  background:
    linear-gradient(135deg, currentColor 25%, transparent 25%) -10px 0,
    linear-gradient(225deg, currentColor 25%, transparent 25%) -10px 0,
    linear-gradient(315deg, currentColor 25%, transparent 25%),
    linear-gradient(45deg, currentColor 25%, transparent 25%);
  background-size: 20px 20px
}

.pat-triangles::before {
  background-image: linear-gradient(45deg, currentColor 50%, transparent 50%);
  background-size: 20px 20px
}

/* ─── TEXT ALIGN ──────────────────────────────────────── */
.hero-body {
  text-align: left
}

.align-center {
  text-align: center
}

.align-right {
  text-align: right
}

.align-center .sec-label {
  justify-content: center
}

.align-right .sec-label {
  justify-content: flex-end
}

.align-center .sec-row {
  justify-content: center;
  flex-direction: column;
  align-items: center
}

.align-center .hero-actions,
.align-center .cta-acts {
  justify-content: center
}

.align-right .hero-actions,
.align-right .cta-acts {
  justify-content: flex-end
}

/* light-bg overrides for dark-text sections */
.hero.bg-white .hero-h,
.hero.bg-gray .hero-h {
  color: var(--navy)
}

.hero.bg-white .hero-desc,
.hero.bg-gray .hero-desc {
  color: var(--ink)
}

.hero.bg-white .hero-stats,
.hero.bg-gray .hero-stats {
  border-color: rgba(42, 50, 136, .2)
}

.hero.bg-white .h-stat,
.hero.bg-gray .h-stat {
  border-color: rgba(42, 50, 136, .15)
}

.hero.bg-white .h-stat-n,
.hero.bg-gray .h-stat-n {
  color: var(--navy)
}

.hero.bg-white .h-stat-l,
.hero.bg-gray .h-stat-l {
  color: var(--ink)
}

.hero.bg-white .hero-bottom,
.hero.bg-gray .hero-bottom {
  border-top-color: rgba(0, 0, 0, .1)
}

.hero.bg-white .btn-dim,
.hero.bg-gray .btn-dim {
  border-color: rgba(0, 0, 0, .25);
  color: rgba(0, 0, 0, .6)
}

.why.bg-white .why-title,
.why.bg-gray .why-title {
  color: var(--navy)
}

.why.bg-white .why-sub,
.why.bg-gray .why-sub {
  color: var(--ink)
}

.why.bg-white .why-card,
.why.bg-gray .why-card {
  border-color: rgba(42, 50, 136, .2);
  background: rgba(42, 50, 136, .03)
}

.why.bg-white .why-card-big,
.why.bg-gray .why-card-big {
  color: var(--navy)
}

.why.bg-white .why-card-label,
.why.bg-gray .why-card-label {
  color: var(--ink)
}

.why.bg-white .why-card-note,
.why.bg-gray .why-card-note {
  color: rgba(0, 0, 0, .5);
  border-top-color: rgba(0, 0, 0, .08)
}

.why.bg-white .wi-title,
.why.bg-gray .wi-title {
  color: var(--navy)
}

.why.bg-white .wi-desc,
.why.bg-gray .wi-desc {
  color: rgba(0, 0, 0, .5)
}

.why.bg-white .wi,
.why.bg-gray .wi {
  border-color: rgba(0, 0, 0, .07);
  background: rgba(0, 0, 0, .01)
}

.why.bg-white .wi:hover,
.why.bg-gray .wi:hover {
  border-color: rgba(42, 50, 136, .2)
}

.cta.bg-white .cta-h,
.cta.bg-gray .cta-h {
  color: var(--navy)
}

.cta.bg-white .cta-sub,
.cta.bg-gray .cta-sub {
  color: var(--ink)
}

.cta.bg-white .cta-box,
.cta.bg-gray .cta-box {
  border-color: rgba(42, 50, 136, .15);
  background: rgba(42, 50, 136, .02)
}

.cta.bg-white .cc,
.cta.bg-gray .cc {
  color: var(--ink)
}

.cta.bg-white .cc-icon,
.cta.bg-gray .cc-icon {
  border-color: rgba(42, 50, 136, .25);
  color: var(--navy)
}

.cta.bg-white .btn-dim,
.cta.bg-gray .btn-dim {
  border-color: rgba(0, 0, 0, .25);
  color: rgba(0, 0, 0, .6)
}

/* ─── ABOUT — light variant ───────────────────────────── */
.about.bg-white,
.about.bg-gray {
  --dim: rgba(0, 0, 0, .55)
}

.about.bg-white .about-mark,
.about.bg-gray .about-mark {
  color: rgba(0, 0, 0, .06)
}

.about.bg-white .about-mark strong,
.about.bg-gray .about-mark strong {
  color: rgba(42, 50, 136, .18)
}

.about.bg-white .about-co,
.about.bg-gray .about-co {
  color: rgba(42, 50, 136, .5)
}

.about.bg-white .about-title,
.about.bg-gray .about-title {
  color: var(--navy)
}

.about.bg-white .about-body,
.about.bg-gray .about-body {
  color: var(--ink)
}

.about.bg-white .about-stats,
.about.bg-gray .about-stats {
  background: rgba(42, 50, 136, .06);
  border-color: rgba(42, 50, 136, .15)
}

.about.bg-white .a-stat-n,
.about.bg-gray .a-stat-n {
  color: var(--navy)
}

.about.bg-white .a-stat-l,
.about.bg-gray .a-stat-l {
  color: rgba(0, 0, 0, .4)
}

.about.bg-white .about-divider,
.about.bg-gray .about-divider {
  background: var(--g)
}

.about.bg-white .about-addr,
.about.bg-gray .about-addr {
  color: rgba(0, 0, 0, .4)
}

.about.bg-white .sec-label,
.about.bg-gray .sec-label {
  color: var(--navy)
}

.about-logo {
  max-height: 80px;
  width: auto;
  max-width: 200px;
  margin-bottom: 12px;
  display: block;
  overflow: hidden;
  contain: layout style;
}

.about-logo svg,
.about-logo-img {
  max-height: 80px;
  max-width: 200px;
  width: auto;
  height: auto;
  display: block;
}

/* ─── ARTICLES SLIDER (mobile) ────────────────────────── */
@media(max-width:767px) {
  .ag {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 20px;
    background: transparent;
    border: none;
    border-radius: 0
  }

  .ag::-webkit-scrollbar {
    display: none
  }

  .ag {
    scrollbar-width: none
  }

  .ag .ac {
    flex: 0 0 min(82vw, 300px);
    scroll-snap-align: start;
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid #e8edf5;
    background: var(--w)
  }
}

.ag-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 16px
}

.ag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccd4e0;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .2s, width .2s
}

.ag-dot.active {
  background: var(--navy);
  width: 18px;
  border-radius: 3px
}

@media(min-width:768px) {
  .ag-dots {
    display: none
  }
}

/* --- SWB Utility Classes --- */
.bg-navy {
  background-color: var(--navy) !important;
  color: var(--w);
}

.bg-white {
  background-color: var(--w) !important;
  color: var(--ink);
}

.bg-gray {
  background-color: var(--bg-2) !important;
  color: var(--ink);
}

.bg-lime {
  background-color: var(--lime) !important;
  color: var(--navy);
}

.bg-black {
  background-color: #000000 !important;
  color: var(--w);
}

.align-left {
  text-align: left !important;
}

.align-center {
  text-align: center !important;
}

.align-right {
  text-align: right !important;
}


/* ─── FULL-WIDTH BLOCK WRAPPERS ─────────────────────────── */
/* Override Plant3 content_width + Gutenberg alignment constraints */
.wp-block-acf-hero,
.wp-block-acf-products,
.wp-block-acf-why-dragon,
.wp-block-acf-colors,
.wp-block-acf-articles,
.wp-block-acf-about,
.wp-block-acf-cta,
.wp-block-acf-social,
.wp-block-acf-footer {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ─── S-CONTAINER ───────────────────────────────────────── */
/* Inner content wrapper — matches .w from mockup */
.s-container {
  max-width: var(--max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

@media(min-width:768px) {
  .s-container {
    padding-left: 40px !important;
    padding-right: 40px !important
  }
}

/* hero-h always left-aligned regardless of parent theme */
.hero-h {
  text-align: left !important;
}

/* ─── PRODUCTS MOBILE SLIDER ────────────────────────────── */
@media(max-width:599px) {
  .pg {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    background: transparent;
    border: none;
    border-radius: 0;
    gap: 10px;
    padding-bottom: 4px;
  }

  .pg::-webkit-scrollbar {
    display: none
  }

  .pc {
    flex: 0 0 min(78vw, 280px);
    scroll-snap-align: start;
    border: 1px solid #e0e4ee;
    border-radius: var(--r)
  }
}

.pg-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 16px
}

.pg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccd4e0;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all .25s;
}

.pg-dot.active {
  background: var(--navy);
  width: 18px;
  border-radius: 3px
}

@media(min-width:600px) {
  .pg-dots {
    display: none
  }
}

/* ─── COLORS MOBILE SLIDER ──────────────────────────────── */
@media(max-width:599px) {
  .colors-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    background: transparent;
    border: none;
    border-radius: 0;
    gap: 8px;
    padding-bottom: 4px;
  }

  .colors-grid::-webkit-scrollbar {
    display: none
  }

  .csc {
    flex: 0 0 min(27vw, 100px);
    scroll-snap-align: start;
    border-radius: var(--r);
    border: 1px solid #dde3ee
  }
}

.csc-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap
}

.csc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccd4e0;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all .25s;
}

.csc-dot.active {
  background: var(--navy);
  width: 18px;
  border-radius: 3px
}

@media(min-width:600px) {
  .csc-dots {
    display: none
  }
}

/* ═══════════════════════════════════════════════════════════
   PRODUCTS — horizontal scroll ALL viewports
   ═══════════════════════════════════════════════════════════ */
.pg {
  display: flex !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch;
  background: var(--off) !important;
  border: 1px solid #e0e4ee !important;
  border-radius: var(--r) !important;
  gap: 1px !important;
  padding-bottom: 0 !important;
}

.pg::-webkit-scrollbar {
  display: none;
}

/* Mobile: 1 card per view */
.pc {
  flex: 0 0 min(80vw, 280px) !important;
  scroll-snap-align: start;
  border-radius: 0;
}

/* Tablet: 2 per view */
@media(min-width:600px) {
  .pc {
    flex: 0 0 calc(50% - 1px) !important;
  }
}

/* Desktop: 3 per view */
@media(min-width:900px) {
  .pc {
    flex: 0 0 calc(33.333% - 1px) !important;
  }
}

/* Show pg-dots on mobile only */
@media(min-width:600px) {
  .pg-dots {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   COLORS — horizontal scroll ALL viewports
   ═══════════════════════════════════════════════════════════ */
.colors-grid {
  display: flex !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r) !important;
  background: #dde3ee !important;
  border: 1px solid #dde3ee !important;
  gap: 2px !important;
  padding-bottom: 0 !important;
}

.colors-grid::-webkit-scrollbar {
  display: none;
}

/* Mobile: 3 per view */
.csc {
  flex: 0 0 calc(33.333% - 2px) !important;
  scroll-snap-align: start;
}

/* Desktop: 6 per view */
@media(min-width:600px) {
  .csc {
    flex: 0 0 calc(16.666% - 2px) !important;
  }
}

/* Show csc-dots on mobile only */
@media(min-width:600px) {
  .csc-dots {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER — legacy 2-section variant (kept for compatibility)
   ═══════════════════════════════════════════════════════════ */
.footer-main {
  background: var(--navy);
  color: rgba(255, 255, 255, .35);
  padding: 48px 0 40px;
}

.footer-bar {
  padding: 18px 0;
  color: rgba(255, 255, 255, .3);
  font-size: 11px;
}

.footer-bar .fb-line {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: none;
  padding-top: 0;
}

@media(min-width:600px) {
  .footer-bar .fb-line {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Bigger social icons in footer-bar */
.footer-bar .fsoc {
  width: 38px !important;
  height: 38px !important;
  font-size: 15px !important;
}

/* ─── COLORS — image mode ────────────────────────────────── */
.csd-img {
  width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  display: block;
  margin: 0 0 10px;
  border: none;
}

.csd-ph {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: rgba(0, 0, 0, .35);
  text-align: center;
  padding: 4px;
}

/* ─── ABOUT — gallery image ──────────────────────────────── */
.about-img {
  width: 100%;
  border-radius: var(--r);
  object-fit: cover;
  aspect-ratio: 4/3;
  display: block;
  margin-top: 16px;
}

/* ─── REMOVE PLANT3 HEADER SPACE ────────────────────────── */
/* Plant3 adds .site-header-space for its own fixed header.
   SWB uses its own .nav with padding-top on .hero — suppress it. */
.site-header-space {
  display: none !important;
}

/* Also zero out any margin-top Plant3 may inject on the first block */
.page-content>*:first-child,
.entry-content>*:first-child {
  margin-top: 0 !important;
}

/* ─── PRODUCT CARD IMAGE ─────────────────────────────────── */
.pc-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: var(--r) var(--r) 0 0;
}

/* ─── WOOCOMMERCE CONFLICT FIX ───────────────────────────── */
/* WooCommerce woo-m.scss sets .products{display:grid} which
   collides with our ACF Products section. Reset it. */
section.products {
  display: block !important;
}

/* Override WooCommerce woo-m.scss which sets .products h2 { color: var(--s-text-1) } */
section.products h2,
section.products .sec-h {
  color: var(--navy) !important;
}

/* ─── SLIDER ARROWS (desktop only) ──────────────────────── */
.sl-wrap {
  position: relative;
}

.sl-arr {
  display: none;
  /* hidden on mobile — swipe works */
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--w);
  border: 1px solid #e0e4ee;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
  cursor: pointer;
  color: var(--navy);
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, opacity .15s;
  padding: 0;
  flex-shrink: 0;
}

.sl-arr:hover {
  background: var(--navy);
  color: var(--w);
  border-color: var(--navy);
}

.sl-arr:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}

.sl-arr-prev {
  left: -20px;
}

.sl-arr-next {
  right: -20px;
}

@media(min-width:600px) {
  .sl-arr {
    display: flex;
  }
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero: staggered entrance on load */
.hero-sup,
.hero-h,
.hero-desc,
.hero-actions,
.hero-stats {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.hero-sup {
  animation-delay: 0.05s;
}

.hero-h {
  animation-delay: 0.15s;
}

.hero-desc {
  animation-delay: 0.28s;
}

.hero-actions {
  animation-delay: 0.38s;
}

.hero-stats {
  animation-delay: 0.50s;
}

/* Scroll reveal — sections below hero */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   ANATOMY SECTION
═══════════════════════════════════════════════════════════ */
.anatomy {
  background: var(--navy);
  color: #fff;
  padding: 72px 0 0;
  position: relative;
  overflow: hidden;
}

/* stats bar */
.anat-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.anat-stat {
  padding: 0 20px;
}

.anat-stat-border {
  border-right: 1px solid rgba(255, 255, 255, .12);
}

.anat-stat:first-child {
  padding-left: 0;
}

.anat-stat:last-child {
  padding-right: 0;
}

.anat-stat-num {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(24px, 4vw, 44px);
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--lime);
}

.anat-stat-unit {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, .45);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.anat-stat-en {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--w);
}

.anat-stat-th {
  font-size: 10px;
  color: rgba(255, 255, 255, .45);
  margin-top: 2px;
}

/* stage */
.anat-stage {
  position: relative;
  min-height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0 40px;
}

.anat-stage::before {
  content: "";
  position: absolute;
  width: 50%;
  height: 70%;
  background: var(--lime);
  filter: blur(100px);
  opacity: .15;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@media(min-width:768px) {
  .anat-stage {
    min-height: 560px;
    padding: 80px 0 60px;
  }
}

.anat-img {
  max-height: 480px;
  width: auto;
  max-width: 80%;
  position: relative;
  z-index: 2;
  display: block;
}

@media(min-width:768px) {
  .anat-img {
    max-height: 560px;
  }
}

.anat-img-ph {
  width: 200px;
  height: 440px;
  background: rgba(184, 209, 52, .08);
  border: 1px dashed rgba(184, 209, 52, .25);
  border-radius: var(--r);
  position: relative;
  z-index: 2;
}

/* annotation callouts */
.anno {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--w);
  z-index: 3;
}

.anno-line {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, .45);
  position: relative;
  flex-shrink: 0;
}

.anno-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}

.anno[data-side="right"] .anno-line::before {
  left: auto;
  right: 0;
}

.anno-text {
  background: rgba(255, 255, 255, .06);
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.anno-text.right {
  text-align: right;
}

.anno-fig {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 2px;
}

.anno-en {
  font-size: 13px;
  font-weight: 700;
}

.anno-th {
  font-size: 11px;
  color: rgba(255, 255, 255, .55);
  margin-top: 2px;
}

/* annotation positions */
.anno-top-left {
  top: 14%;
  left: -10px;
}

.anno-top-right {
  top: 14%;
  right: -10px;
  flex-direction: row-reverse;
}

.anno-mid-left {
  top: 38%;
  left: -10px;
}

.anno-mid-right {
  top: 38%;
  right: -10px;
  flex-direction: row-reverse;
}

.anno-bottom-left {
  bottom: 22%;
  left: -10px;
}

.anno-bottom-right {
  bottom: 22%;
  right: -10px;
  flex-direction: row-reverse;
}

@media(max-width:720px) {
  .anno {
    display: none;
  }
}

/* marquee */
.anat-marquee {
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0;
  overflow: hidden;
}

.anat-marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  width: max-content;
  animation: anat-marquee 42s linear infinite;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.anat-marquee-track span {
  padding: 0 28px;
}

.m-sep {
  color: var(--lime) !important;
  padding: 0 !important;
}

@keyframes anat-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media(min-width:768px) {
  .anat-marquee-track {
    font-size: 18px;
  }
}

/* ═══════════════════════════════════════════════════════════
   COLORS V2 (PICKER STYLE)
═══════════════════════════════════════════════════════════ */
.colors-v2 {
  background: var(--navy);
  color: #fff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.colors-v2 .sec-h { color: #fff; }
.colors-v2 .sec-h em { color: var(--lime); font-style: italic; }

/* Top row */
.cv-toprow {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.cv-toprow-text { flex: 1; min-width: 260px; }
.cv-toprow-text .sec-th { margin: 8px 0 0; font-size: 16px; font-weight: 600; color: rgba(255,255,255,.65); }

/* Search */
.cv-search {
  position: relative;
  min-width: 240px;
}
.cv-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .5;
  pointer-events: none;
}
.cv-search-input {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  padding: 13px 42px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: 0;
}
.cv-search-input::placeholder { color: rgba(255,255,255,.4); }
.cv-search-input:focus { border-color: var(--lime); }
.cv-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}
.cv-search-clear:hover { background: rgba(255,255,255,.2); }
.cv-search.has-value .cv-search-clear { display: flex; }

/* Main 2-col grid */
.cv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media(min-width:900px) {
  .cv-grid { grid-template-columns: 1.2fr 1fr; gap: 56px; }
}

/* Groups (left) */
.cv-group { margin-bottom: 28px; }
.cv-group:last-child { margin-bottom: 0; }
.cv-group.empty { display: none; }
.cv-group-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cv-group-h::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.12); }

/* Swatches grid */
.cv-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
  gap: 10px;
}

/* Swatch button */
.cv-sw {
  appearance: none;
  border: 2px solid rgba(255,255,255,.2);
  padding: 0;
  cursor: pointer;
  background: var(--sw);
  border-radius: 10px;
  aspect-ratio: 1;
  transition: transform .2s, border-color .2s, box-shadow .2s, opacity .2s;
  outline: 0;
}
.cv-sw:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.cv-sw.active {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(184,209,52,.25), 0 8px 20px rgba(0,0,0,.4);
}
.cv-sw.dim { opacity: .18; pointer-events: none; transform: none !important; }
.cv-sw-color { display: none; }

/* Stage panel (right, sticky on desktop) */
.cv-stage-panel {
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
}
@media(min-width:900px) { .cv-stage-panel { position: sticky; top: 24px; } }

/* Cap visual */
.cv-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}
.cv-vis-bg { display: none; }
.cv-head {
  max-width: 180px;
  width: 100%;
  height: auto;
  transition: opacity .25s ease;
}
.cv-head.swap { opacity: 0; }
.cv-head-svg { max-width: 180px; width: 100%; transition: opacity .25s ease; }

/* Name block */
.cv-name-block { margin-bottom: 16px; }
.cv-name-en {
  display: block;
  font-weight: 900;
  font-size: clamp(24px, 3.5vw, 36px);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 4px;
  transition: opacity .2s ease;
}
.cv-name-en.swap { opacity: 0; }
.cv-name-meta {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  transition: opacity .2s ease;
}
.cv-name-meta.swap { opacity: 0; }

/* Meta pill */
.cv-meta-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.1);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 24px;
  font-family: monospace;
  flex-wrap: wrap;
  justify-content: center;
}
.cv-meta-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  transition: background .3s ease;
  flex-shrink: 0;
}
.cv-meta-sep { opacity: .35; }
.cv-meta-cls { color: var(--lime); font-weight: 700; letter-spacing: 1px; }

/* CTAs */
.cv-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════
   FOOTER (NEW LAYOUT)
═══════════════════════════════════════════════════════════ */
.footer-inner {
  padding: 80px 0 36px;
}

.footer-top {
  margin-bottom: 56px;
}

.footer-display {
  margin: 0;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .9;
  color: var(--w);
}

.footer-display em {
  font-style: italic;
  color: var(--lime);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  margin-bottom: 28px;
}

@media(min-width:720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer .custom-logo-link {
  display: inline-flex;
}

.footer .custom-logo {
  max-height: 48px;
  width: auto;
  display: block;
  margin-bottom: 16px;
}

.footer-brand-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, .7);
  line-height: 1.6;
  margin: 16px 0 0;
  max-width: 300px;
}

.footer-brand-sub .th {
  color: rgba(255, 255, 255, .45);
  display: block;
  margin-top: 4px;
}

.footer-addr {
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  line-height: 1.8;
}

.footer-col-title {
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  transition: color .15s;
}

.footer-col a:hover {
  color: var(--lime);
}

.footer-col a .th {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
  margin-top: 2px;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: monospace;
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .4);
}

/* ═══════════════════════════════════════════════════════════
   CTA (NEW 2-COL LAYOUT)
═══════════════════════════════════════════════════════════ */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
}

@media(min-width:900px) {
  .cta-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
  }

  .cta {
    padding: 120px 0;
  }
}

.cta-display {
  margin: 20px 0 0;
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .9;
  color: var(--w);
}

.cta-display em {
  font-style: italic;
  color: var(--lime);
}

.cta-th {
  font-size: 18px;
  font-weight: 700;
  color: var(--w);
  margin: 0 0 12px;
}

.cta-desc {
  color: rgba(255, 255, 255, .78);
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
}

.cta-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-line-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 28px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 700;
  background: #06C755;
  color: #fff;
  text-decoration: none;
  transition: opacity .15s;
}

.btn-line-cta:hover {
  opacity: .88;
}

.btn-ghost-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 54px;
  padding: 0 28px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  color: var(--w);
  border: 1px solid rgba(255, 255, 255, .35);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}

.btn-ghost-cta:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* sec-label on navy bg */
.colors-v2 .sec-label,
.cta .sec-label {
  color: rgba(255, 255, 255, .55);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER — light bg text overrides
═══════════════════════════════════════════════════════════ */
.footer.bg-white,
.footer.bg-gray,
.footer.bg-lime {
  color: var(--ink);
}
.footer.bg-white .footer-display,
.footer.bg-gray .footer-display {
  color: var(--navy);
}
.footer.bg-lime .footer-display { color: var(--navy); }
.footer.bg-white .footer-display em,
.footer.bg-gray .footer-display em,
.footer.bg-lime .footer-display em { color: var(--navy); }

.footer.bg-white .footer-col-title,
.footer.bg-gray  .footer-col-title { color: var(--navy); }
.footer.bg-lime  .footer-col-title { color: var(--navy); }

.footer.bg-white .footer-col a,
.footer.bg-gray  .footer-col a,
.footer.bg-lime  .footer-col a { color: rgba(0,0,0,.7); }
.footer.bg-white .footer-col a:hover,
.footer.bg-gray  .footer-col a:hover,
.footer.bg-lime  .footer-col a:hover { color: var(--navy); }
.footer.bg-lime  .footer-brand-sub,
.footer.bg-lime  .footer-addr,
.footer.bg-lime  .footer-meta { color: rgba(0,0,0,.7); }

.footer.bg-white .footer-brand-sub,
.footer.bg-gray  .footer-brand-sub { color: rgba(0,0,0,.7); }
.footer.bg-white .footer-brand-sub .th,
.footer.bg-gray  .footer-brand-sub .th { color: rgba(0,0,0,.5); }

.footer.bg-white .footer-addr,
.footer.bg-gray  .footer-addr { color: rgba(0,0,0,.5); }

.footer.bg-white .footer-meta,
.footer.bg-gray  .footer-meta { color: rgba(0,0,0,.4); }

.footer.bg-white .footer-grid,
.footer.bg-gray  .footer-grid {
  border-color: rgba(0,0,0,.1);
}

/* ═══════════════════════════════════════════════════════════
   MOBILE MENU — wp_nav_menu() generated items
═══════════════════════════════════════════════════════════ */
/* nav container from wp_nav_menu */
.nm-list nav,
nav.nm-list { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.nm-list-ul,
.nm-list ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }

/* style each menu item link like .nm-item */
.nm-list li a,
.nm-list-ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  text-decoration: none;
  color: var(--w);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: color .15s;
}
.nm-list li a:hover,
.nm-list-ul li a:hover { color: var(--g); }

/* counter using CSS — shows item number on right side */
.nm-list ul { counter-reset: nm-counter; }
.nm-list-ul { counter-reset: nm-counter; }
.nm-list li,
.nm-list-ul li { counter-increment: nm-counter; }
.nm-list li a::after,
.nm-list-ul li a::after {
  content: counter(nm-counter, decimal-leading-zero);
  font-family: monospace;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, .35);
  letter-spacing: .06em;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   HERO — remove stats spacing leftover
═══════════════════════════════════════════════════════════ */
.hero-bottom {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ═══════════════════════════════════════════════════════════
   CATALOG (WooCommerce shop archive)
═══════════════════════════════════════════════════════════ */

/* Page hero */
.page-hero {
  background: var(--navy, #2A3288);
  color: #fff;
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.page-hero.pat-diagonal::after {
  background: repeating-linear-gradient(-45deg,
    transparent, transparent 80px,
    rgba(184,209,52,.03) 80px, rgba(184,209,52,.03) 81px);
}
.page-hero.pat-dots::after {
  background-image: radial-gradient(rgba(184,209,52,.18) 1px, transparent 1px);
  background-size: 18px 18px;
}
.page-hero .s-container { position: relative; z-index: 1; }
.page-hero-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--lime, #B8D134);
  margin-bottom: 10px;
}
.page-hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 14px;
  letter-spacing: -.01em;
}
.page-hero-title em {
  color: var(--lime, #B8D134);
  font-style: normal;
}
.page-hero-sub {
  color: rgba(255,255,255,.65);
  font-size: 16px;
  max-width: 560px;
  margin: 0;
}

/* Toolbar */
.catalog-main { background: #fff; }
.toolbar {
  background: #fff;
  border-bottom: 1px solid #e0e4ee;
  z-index: 90;
  padding: 14px 0;
}
.toolbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #e0e4ee;
  border-radius: 8px;
  padding: 8px 14px;
  background: #f5f5f5;
  flex: 0 1 280px;
  min-width: 180px;
  transition: border-color .2s;
}
.search-box:focus-within { border-color: var(--navy, #2A3288); }
.search-box svg { color: #5a6a88; flex-shrink: 0; }
.search-box input {
  border: 0;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  color: #0D0D12;
  width: 100%;
  outline: 0;
}
.search-box input::placeholder { color: #5a6a88; }
.search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: #5a6a88;
  border-radius: 50%;
  transition: color .15s, background .15s;
  line-height: 1;
}
.search-clear:hover { color: #0D0D12; background: #e0e4ee; }

/* Cat tabs */
.cat-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}
.cat-tab {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: 1.5px solid #e0e4ee;
  background: transparent;
  color: #5a6a88;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}
.cat-tab.active {
  background: var(--navy, #2A3288);
  border-color: var(--navy, #2A3288);
  color: #fff;
}
.cat-tab:hover:not(.active) {
  border-color: var(--navy, #2A3288);
  color: var(--navy, #2A3288);
}

/* View buttons */
.view-btns { display: flex; gap: 4px; margin-left: auto; }
.view-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid #e0e4ee;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a6a88;
  transition: all .18s;
}
.view-btn.active {
  background: var(--navy, #2A3288);
  border-color: var(--navy, #2A3288);
  color: #fff;
}
.view-btn:hover:not(.active) {
  border-color: var(--navy, #2A3288);
  color: var(--navy, #2A3288);
}


/* Fix double-arrow: homepage .pc-link::after adds '→', catalog uses SVG instead */
.catalog-main .pc-link::after { content: none; }

/* Count bar */
.catalog-main > .s-container { padding-bottom: 80px; }
.count-bar {
  padding: 20px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.count-bar-txt { font-size: 14px; color: #5a6a88; }
.count-bar-txt strong { color: #0D0D12; }

/* Grid view (default) */
.view-grid .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Product card */
.product-card {
  border: 1.5px solid #e0e4ee;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  position: relative;
  list-style: none;
}
.product-card:hover {
  box-shadow: 0 8px 32px rgba(42,50,136,.1);
  transform: translateY(-2px);
}
.product-card.hidden { display: none; }

.pc-img-wrap {
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}
.pc-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 16px; display: block; box-sizing: border-box; }
.pc-img-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: repeating-linear-gradient(45deg,
    #f0f0f8 0, #f0f0f8 10px,
    #e8e8f2 10px, #e8e8f2 20px);
}
.pc-img-ph svg { color: #c0c8e0; }
.pc-img-ph span {
  font-size: 11px;
  color: #a0a8c0;
  text-align: center;
  line-height: 1.3;
}

.pc-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--navy, #2A3288);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pc-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--lime-d, #9EBA15);
}
.pc-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.pc-name a { color: #0D0D12; text-decoration: none; }
.pc-name a:hover { color: var(--navy, #2A3288); }
.pc-desc {
  font-size: 12px;
  color: #9aaabb;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-specs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.pc-spec {
  font-size: 11px;
  background: #f5f5f5;
  border-radius: 4px;
  padding: 3px 8px;
  color: #5a6a88;
  font-weight: 500;
}
.pc-spec.hi {
  background: rgba(42,50,136,.08);
  color: var(--navy, #2A3288);
}

.pc-footer {
  padding: 10px 12px;
  border-top: 1px solid #e0e4ee;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pc-link {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--navy, #2A3288);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background .15s;
}
.pc-link:hover { background: #1b2165; color: #fff; }
.pc-link svg { flex-shrink: 0; transition: transform .15s; }
.pc-link:hover svg { transform: translateX(3px); }
/* LINE button */
.pc-line-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: #06C755;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  transition: background .15s;
}
.pc-line-btn:hover { background: #05a848; }
.pc-price { font-size: 12px; font-weight: 700; color: #0D0D12; white-space: nowrap; }

/* Table view (compact rows) */
.view-table .products-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid #e0e4ee;
  border-radius: 10px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  list-style: none;
}
.view-table .product-card {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 10px 16px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #e0e4ee;
}
.view-table .product-card:last-child { border-bottom: 0; }
.view-table .product-card:hover {
  transform: none;
  box-shadow: none;
  background: #f5f5f5;
}
.view-table .pc-img-wrap {
  width: 56px;
  height: 56px;
  aspect-ratio: 1;
  border-radius: 6px;
  flex-shrink: 0;
}
.view-table .pc-badge { display: none; }
.view-table .pc-body { padding: 0; gap: 2px; }
.view-table .pc-cat { font-size: 10px; }
.view-table .pc-desc, .view-table .pc-specs { display: none; }
.view-table .pc-name { font-size: 14px; }
.view-table .pc-footer {
  padding: 0;
  border: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* Empty state */
.catalog-empty {
  text-align: center;
  padding: 60px 20px;
  color: #5a6a88;
  font-size: 15px;
}

/* WooCommerce pagination */
.woocommerce-pagination {
  margin-top: 32px;
  text-align: center;
}
.woocommerce-pagination ul.page-numbers {
  display: inline-flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1.5px solid #e0e4ee;
  border-radius: 8px;
  color: #5a6a88;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all .18s;
}
.woocommerce-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers:hover {
  background: var(--navy, #2A3288);
  border-color: var(--navy, #2A3288);
  color: #fff;
}

/* Tablet / mid-desktop — keep toolbar in single row, cat-tabs scrolls horizontally */
@media (min-width: 601px) and (max-width: 1199px) {
  .toolbar-inner { flex-wrap: nowrap; gap: 10px; }
  .cat-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-width: 0;
  }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-tab { white-space: nowrap; flex-shrink: 0; }
  .view-btns { flex-shrink: 0; }
}

/* Mobile */
@media (max-width: 600px) {
  .toolbar { padding: 8px 0; }
  .toolbar-inner { gap: 6px; flex-wrap: wrap; }
  .search-box { max-width: 100%; min-width: 0; flex-basis: 100%; flex: 1 1 100%; }

  /* Cat tabs: single scrollable row, no wrap */
  .cat-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-basis: 100%;
    padding-bottom: 2px;
  }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-tab { padding: 5px 12px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }

  .view-btns { display: none; }
  .view-grid .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pc-body { padding: 12px; }
  .pc-name { font-size: 14px; }
  .pc-desc { font-size: 12px; }
  .page-hero { padding: 40px 0 32px; }
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT DETAIL  (single-product page)
═══════════════════════════════════════════════════════════ */

/* Breadcrumb */
.breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid #e0e4ee;
  background: #fff;
}
.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5a6a88;
  flex-wrap: wrap;
}
.breadcrumb-inner a {
  color: #5a6a88;
  text-decoration: none;
  transition: color .15s;
}
.breadcrumb-inner a:hover { color: var(--navy, #2A3288); }
.breadcrumb-sep { color: #c8d0e0; }
.breadcrumb-current { color: #0D0D12; font-weight: 600; }

/* Product Hero */
.single-product-main { background: #fff; }
.product-hero { padding: 40px 0 60px; }
.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
/* Critical: grid items default to min-width:auto which lets contents force the
   column wider than 1fr — gallery's image was squeezing .product-info to ~150px */
.product-hero-grid > * { min-width: 0; }

/* Gallery — outer wrapper only. WC gallery internals styled below under .product-hero */
.gallery { position: relative; }
.gallery-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--navy, #2A3288);
  color: var(--lime, #B8D134);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 2;
}

/* Info column */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.product-tag {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lime-d, #9EBA15);
  font-weight: 700;
}
.product-name {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: #0D0D12;
  margin: 0;
}
.product-name em {
  color: var(--lime-d, #9EBA15);
  font-style: normal;
}
.product-en {
  font-size: 14px;
  color: #5a6a88;
  font-weight: 500;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
}
.badge-navy { background: var(--navy, #2A3288); color: #fff; }
.badge-lime { background: var(--lime, #B8D134); color: var(--navy-d, #1b2165); }
.badge-rust { background: #b95a3c; color: #fff; }

.product-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #0D0D12;
}
.product-desc p { margin: 0 0 12px; }
.product-desc p:last-child { margin-bottom: 0; }

/* Selectors (size / color) */
.pd-selector { margin-top: 4px; }
.selector-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0D0D12;
}
.size-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.size-btn {
  border: 1.5px solid #e0e4ee;
  background: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #0D0D12;
}
.color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.color-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px #e0e4ee;
  display: inline-block;
}

/* LINE order CTA */
.pd-line-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #06C755;
  color: #fff;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 12px;
  transition: background .15s, transform .15s;
}
.pd-line-btn:hover { background: #05a848; color: #fff; transform: translateY(-1px); }
.pd-line-btn svg { width: 22px; height: 22px; flex-shrink: 0; }

/* Related Products section */
.related-section {
  padding: 60px 0;
  background: #F5F5F5;
}
.sec-label-sm {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lime-d, #9EBA15);
  font-weight: 700;
}
.sec-title {
  font-size: 28px;
  font-weight: 800;
  margin: 6px 0 32px;
  color: #0D0D12;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Mobile */
@media (max-width: 899px) {
  .product-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-hero { padding: 24px 0 40px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sec-title { font-size: 22px; }
}
@media (max-width: 600px) {
  .related-grid { grid-template-columns: 1fr; }
  .product-hero .flex-control-thumbs li { width: 56px; height: 56px; }
}

/* ───────────────────────────────────────────────────────────
   PRODUCT DETAIL — Plant3 wrapper overrides + hard fixes
─────────────────────────────────────────────────────────── */

/* Reset Plant3's .shop-content padding/max-width on single product
   so our layout fills width consistently */
body.single-product #primary.shop-content {
  max-width: none;
  padding: 0;
  margin: 0;
}
body.single-product .shop-main { padding: 0 !important; margin: 0 !important; }

/* ─── WC Gallery — robust against flexslider JS quirks ───
   Two cases handled:
   (a) flexslider DID run → DOM = .woocommerce-product-gallery > .flex-viewport > .__wrapper
       → flex-viewport gets inline height (e.g. 25592px) — we MUST override.
   (b) flexslider didn't run → DOM = .woocommerce-product-gallery > .__wrapper (all images stacked)
       → hide all but first image. */
.product-hero .woocommerce-product-gallery {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  opacity: 1 !important;
  display: block;
  position: relative;
}

/* Case A — flexslider IS running: .flex-viewport is the styled image-viewport box. */
.product-hero .flex-viewport {
  position: relative;
  width: 100% !important;
  aspect-ratio: 1 / 1;
  height: auto !important;       /* defeats inline height set by flexslider */
  max-height: none !important;
  background: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
  display: block;
}

/* Wrapper nested INSIDE flex-viewport — DO NOT touch width.
   flexslider sets inline `style="width: 2800%"` so slides flow horizontally
   for translateX-based sliding. Any width override here breaks the slider. */
.product-hero .flex-viewport > .woocommerce-product-gallery__wrapper {
  height: 100% !important;
  position: relative;
}

/* Case B — flexslider NOT running (single image / JS not yet loaded):
   the bare wrapper (direct child of gallery) becomes the styled box. */
.product-hero .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
  position: relative;
  width: 100% !important;
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
  display: block;
}

/* Without flexslider (JS hasn't run yet), hide every non-first image so they don't stack */
.product-hero .woocommerce-product-gallery:not(.flexslider) .woocommerce-product-gallery__image:not(:first-child) {
  display: none;
}

/* Defensive: if WC zoom is ever re-enabled, prevent its overlay from blocking clicks/touches */
.product-hero .zoomImg {
  pointer-events: none !important;
}

/* Image cell — flexslider sets {width, marginRight, float:left, display:block} via JS inline.
   We MUST NOT use !important on width/margin or flexslider's slide math breaks. */
.product-hero .woocommerce-product-gallery__image {
  height: 100%;
  box-sizing: border-box;
}
.product-hero .woocommerce-product-gallery__image a {
  display: block;
  width: 100%;
  height: 100%;
}
.product-hero .woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 24px;
  box-sizing: border-box;
}

/* Thumbnails — wrap to multiple rows when many images, contained inside gallery column */
.product-hero .flex-control-thumbs {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0 !important;
  padding: 0 !important;
  list-style: none;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}
.product-hero .flex-control-thumbs li {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  margin: 0 !important;
}
.product-hero .flex-control-thumbs img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  padding: 6px;
  background: #f5f5f5;
  border: 1.5px solid #e0e4ee;
  border-radius: 8px;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color .15s;
}
.product-hero .flex-control-thumbs img.flex-active,
.product-hero .flex-control-thumbs img:hover {
  border-color: var(--navy, #2A3288);
}

/* Constrain content within Plant3's wrapper */
.product-hero .s-container,
.related-section .s-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Related section — break out of Plant3's .shop-content to full viewport width */
.related-section {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 60px 0;
  background: #F5F5F5;
}

/* Mobile gallery — ensure container is bounded + thumbnails scroll horizontally */
@media (max-width: 899px) {
  .product-hero .woocommerce-product-gallery__image img { padding: 16px; }
  .product-hero .flex-control-thumbs {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    /* Declare horizontal-pan intent so browser owns the gesture and ignores
       flexslider's touchstart preventDefault() on thumbnails. Tap (no drag)
       still bubbles up as click → flexslider selects that slide normally. */
    touch-action: pan-x;
    overscroll-behavior-x: contain;
  }
  .product-hero .flex-control-thumbs::-webkit-scrollbar { display: none; }
  .product-hero .flex-control-thumbs li {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;            /* lock width; don't shrink under flex pressure */
  }
}