/* =========================================================
   Thai North Cannabis — Colour-block theme
   ชุดสี: เขียวสดสีเดียว + สีเข้มเกือบดำ + ขาว/เทาอ่อน · ไม่ไล่เฉด ไม่ใช้สีอื่น
   (ชื่อตัวแปรเดิม --olive / --clay / --rose / --cyan / --pink ฯลฯ คงไว้ แต่ค่าสีเป็นโทนเขียว/กลางทั้งหมดแล้ว)
   ========================================================= */
:root {
  /* palette */
  --clay: var(--olive);             /* สีเน้นแบบตัวหนังสือ: ใช้สีเข้มหลัก */
  --grey: #9E9E9E;
  --olive: #14261A;               /* สีเข้มหลัก (เส้น/ตัวหนังสือ/พื้นเข้ม): เขียวเกือบดำ */
  --lime: #A6F54A;                /* เขียวสด: แกนหลักของธีม (ไลม์นีออน) */
  --lime-d: var(--olive);         /* เงาตอน hover: ใช้สีเข้มหลัก ให้ไม่กลืนกับพื้นเขียว */
  --sand: #F2F3F0;                /* เทาอ่อนกลาง: ตัวหนังสือบนพื้นเข้ม + พื้นป้าย */
  /* สีเน้น: ตัวสดใช้กับพื้นป้าย/เส้น/เงา · ตัว -d (เข้ม) ใช้กับตัวหนังสือบนพื้นขาว */
  --rose: var(--lime);    --rose-d: var(--olive);
  --cyan: #FFFFFF;        --cyan-d: var(--olive);
  --slate: var(--olive);                      /* พื้นบล็อกเข้ม */
  /* สีพื้นบล็อกแบบอ่อน */
  --pink: #FFFFFF;                            /* พื้นการ์ดขาว */
  --sky: #F4F5F2;
  --slate-soft: #F4F5F2;
  --cream: #FFFFFF;               /* พื้นหลัง: ขาว */
  --danger: #B3261E;              /* แดง: ใช้เฉพาะข้อความ error / ปุ่มลบ */

  /* theme tokens */
  --bg: var(--cream);
  --bg-2: #F6F7F4;
  --card: rgba(255, 255, 255, 0.6);
  --card-solid: #FFFFFF;
  --card-border: rgba(20, 38, 26, 0.14);
  --text: var(--olive);
  --muted: #55645A;               /* เทาอมเขียว อ่านง่ายบนพื้นขาว */
  --accent: var(--clay);
  --accent-soft: rgba(20, 38, 26, 0.06);
  --accent-line: rgba(20, 38, 26, 0.3);
  --on-dark: var(--cream);

  /* type colors */
  --t-indica: var(--slate);
  --t-hybrid: var(--olive);
  --t-sativa: var(--olive);
  --t-cbd: var(--olive);

  --ink: #0F2416;                 /* สีหัวเรื่อง: เขียวเกือบดำ */
  /* หัวเรื่อง: Bebas Neue (อังกฤษ/ตัวเลข) + Noto Sans Thai แบบบีบแคบ (ไทย) ให้ทรงสูงแคบเข้ากัน
     เนื้อหา: Inter Tight (อังกฤษ) + Prompt (ไทย) อ่านง่ายกว่าสำหรับย่อหน้า */
  --font-head: "Bebas Neue", "Noto Sans Thai", sans-serif;
  --font-body: "Inter Tight", "Prompt", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 22px;
  --shadow: 0 20px 50px rgba(20, 38, 26, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  overflow-x: hidden;             /* กันหน้าเว็บกว้างเกินจอบนมือถือ (ไม่งั้นแถบปุ่มด้านล่างจะล้นขอบขวา) */
  scroll-behavior: smooth; scroll-padding-top: 90px;
  /* บีบ Noto Sans Thai ให้แคบ (ฟอนต์อื่นไม่มีแกนความกว้าง จึงไม่ได้รับผล)
     และห้ามเบราว์เซอร์ทำตัวหนาปลอมให้ Bebas Neue ที่มีน้ำหนักเดียว */
  font-stretch: 75%;
  font-synthesis-weight: none;
}
body {
  font-variant-emoji: text;   /* ลูกศร/สัญลักษณ์แสดงเป็นตัวอักษรตามฟอนต์ ไม่เปลี่ยนเป็น emoji บน iPhone */
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden; overflow-x: clip;
}
/* pixel grid: จุดเล็กๆ ทั้งหน้า */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(rgba(20, 38, 26, 0.13) 1px, transparent 1.2px);
  background-size: 22px 22px;
}
body.locked { overflow: hidden; }
h1, h2, h3, .logo, .btn { font-family: var(--font-head); }
h1, h2, h3 { color: var(--ink); letter-spacing: 0.01em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.section { padding: 110px 0; position: relative; }
.section-tight { padding: 80px 0 40px; }
.section.alt { background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent); }

/* คำเน้นในหัวข้อ (.gradient-text)
   - พื้นสว่าง: ตัวหนังสือสีเข้มเหมือนทั้งบรรทัด + แถบไฮไลต์เขียวสดลอยอยู่หลังส่วนล่างของตัวอักษร
   - พื้นเข้ม (วิดีโอ / สรรพคุณ): คำเน้นเป็นตัวหนังสือเขียวสด ไม่มีแถบ */
.section h2 { color: var(--ink); }
#benefits h2 { color: var(--lime); }
.gradient-text {
  color: inherit; width: fit-content;
  background: linear-gradient(var(--lime), var(--lime)) 0 82% / 100% 0.26em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
#videos .gradient-text, #benefits .gradient-text { color: var(--lime); background: none; }

/* eyebrow tag: ตัวอักษรเล็ก + สี่เหลี่ยม lime */
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem; font-weight: 500;
  color: var(--olive);
  background: var(--card-solid);
  border: 1px solid var(--card-border);
  letter-spacing: 0.5px;
}
.tag::before { content: ""; width: 9px; height: 9px; background: var(--lime); border: 1px solid var(--olive); flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 500;
  font-size: 1rem;
  border: 1.5px solid var(--olive);
}
.btn-sm { padding: 9px 18px; font-size: 0.92rem; border-radius: 12px; }
.btn-primary { background: var(--olive); color: var(--on-dark); }
.btn-lime { background: var(--lime); color: var(--olive); }
.btn-ghost { background: transparent; color: var(--olive); }
.btn-ghost:hover { background: var(--card-solid); }

/* ---------- Age gate ---------- */
.age-gate {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 20px;
  background: rgba(20, 38, 26, 0.75);
  backdrop-filter: blur(14px);
  transition: opacity 0.5s, visibility 0.5s;
}
.age-gate.hidden { opacity: 0; visibility: hidden; }
html.age-ok .age-gate { display: none; }   /* ยืนยันอายุไว้แล้ว: ไม่ต้องแสดงเลย */
.age-box {
  position: relative;
  max-width: 460px; text-align: center;
  background: var(--cream);
  border: 1.5px solid var(--olive);
  border-radius: var(--radius);
  padding: 40px 32px 30px;
  box-shadow: 12px 12px 0 var(--lime);
  animation: pop 0.6s var(--ease);
}
.age-logo svg { width: 60px; height: 60px; margin: 0 auto 14px; color: var(--clay); }
.age-badge {
  display: inline-block; padding: 4px 12px; margin-bottom: 12px; border-radius: 6px;
  background: var(--olive); color: var(--lime); font-size: 0.8rem; font-family: var(--mono); letter-spacing: 1px;
}
.age-box h2 { font-size: 1.7rem; margin-bottom: 8px; line-height: 1.3; }
.age-box p { color: var(--muted); margin-bottom: 24px; }
.age-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.age-note { display: block; margin-top: 20px; color: var(--muted); font-size: 0.8rem; }
@keyframes pop { from { opacity: 0; transform: scale(0.9) translateY(20px); } }

/* =========================================================
   Top bar (ลอยด้านบน)
   ========================================================= */
.topbar {
  position: fixed; top: 14px; left: 50%; z-index: 100;
  width: min(1200px, 100% - 28px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 10px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(14px);
  border: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.topbar.scrolled { background: rgba(255, 255, 255, 0.9); border-color: var(--card-border); box-shadow: 0 10px 30px rgba(20, 38, 26, 0.1); }
.brand-chip {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px;
  border-radius: 12px; background: var(--olive); color: var(--sand);
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 600;
}
.brand-chip svg { width: 28px; height: 28px; color: var(--lime); }
.brand-chip b { color: var(--lime); }
/* เมนูไปยังแต่ละหน้า: อยู่กลางแถบ หน้าที่กำลังดูอยู่เป็นพื้น olive */
.top-nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.top-nav a {
  padding: 7px 13px; border-radius: 10px; white-space: nowrap;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; color: var(--muted);
  transition: background-color 0.3s, color 0.3s;
}
.top-nav a:hover { color: var(--olive); background: rgba(20, 38, 26, 0.08); }
.top-nav a.active { background: var(--olive); color: var(--cream); }
.quick-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.top-nav + .quick-actions { margin-left: 0; }
.time-chip {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px;
  background: var(--card-solid); border: 1px solid var(--card-border);
  font-family: var(--mono); font-size: 0.85rem;
}
.time-chip span { color: var(--muted); }
.time-chip strong { color: var(--olive); font-variant-numeric: tabular-nums; min-width: 8ch; }
.time-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(166, 245, 74, 0.3); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.qa {
  padding: 8px 16px; border-radius: 10px; font-family: var(--font-head); font-weight: 500; font-size: 0.95rem;
  border: 1.5px solid var(--olive); background: var(--card-solid);
}

/* ล็อกอินแอดมินหน้า Blog: ปุ่มมุมขวาบน + แผงเล็กที่เปิดใต้ปุ่ม (ไม่เปลี่ยนหน้า) */
.blog-auth { position: relative; }
.blog-auth .qa { cursor: pointer; white-space: nowrap; }
.blog-auth .qa.is-admin { background: var(--lime); }
.blog-auth .qa.is-admin { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.blog-auth .qa.is-admin svg { width: 22px; height: 22px; fill: var(--olive); }
.auth-panel {
  position: absolute; top: calc(100% + 14px); right: 0; z-index: 110; width: min(280px, calc(100vw - 28px));
  padding: 18px; border-radius: 18px;
  background: var(--cream); border: 1.5px solid var(--olive); box-shadow: 8px 8px 0 var(--lime);
}
.auth-panel[hidden], .auth-panel [hidden] { display: none; }
.auth-panel form, .auth-menu { display: grid; gap: 10px; }
.auth-panel strong { font-family: var(--font-head); font-size: 1.15rem; }
.auth-panel label { font-size: 0.9rem; font-weight: 500; }
.auth-panel input {
  width: 100%; padding: 10px 12px; border-radius: 10px; font: inherit;
  border: 1.5px solid var(--card-border); background: #fff; color: var(--olive);
}
.auth-panel input:focus { outline: 2px solid var(--lime); outline-offset: 1px; border-color: var(--olive); }
.auth-error { color: var(--danger); font-size: 0.88rem; }
.auth-notice { font-size: 0.9rem; }
.auth-link { justify-self: start; color: var(--muted); font-size: 0.85rem; text-decoration: underline; text-underline-offset: 2px; }
.auth-link:hover { color: var(--olive); }
.blog-auth .qa.is-member { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; background: var(--lime); }
.blog-auth .qa.is-member svg { width: 22px; height: 22px; fill: var(--olive); }
.auth-panel { max-height: calc(100vh - 110px); overflow-y: auto; text-align: left; }
.auth-panel small { color: var(--muted); font-size: 0.8rem; margin-top: -6px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; margin-bottom: 14px; border-radius: 12px; border: 1.5px solid var(--olive); }
.auth-tabs button { padding: 6px 8px; border-radius: 9px; font-family: var(--font-head); font-size: 1rem; color: var(--muted); cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: var(--olive); color: var(--cream); }
.auth-consent { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 0.82rem; color: var(--muted); cursor: pointer; }
.auth-panel .auth-consent input { width: auto; margin-top: 3px; flex-shrink: 0; }
.auth-panel button:disabled { opacity: 0.6; cursor: progress; }
.auth-google { display: grid; justify-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 0.82rem; }

/* รีวิวของบทความและสายพันธุ์ (js/reviews.js) */
.reviews { margin: 44px 0; display: grid; gap: 18px; text-align: left; }
.reviews[hidden] { display: none; }
.review-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; }
.review-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.review-avg { color: var(--muted); }
.review-avg b { color: var(--ink); font-size: 1.1rem; }
.review-star-text { color: var(--rose-d); letter-spacing: 2px; }
.review-form, .review-login { display: grid; gap: 10px; padding: 20px; border-radius: 18px; background: var(--card-solid); border: 1.5px solid var(--olive); box-shadow: 5px 5px 0 var(--lime); }
.review-form h3 { font-size: 1.2rem; }
.review-form label { font-size: 0.9rem; font-weight: 500; }
.review-form textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px; font: inherit; line-height: 1.6; resize: vertical;
  border: 1.5px solid var(--card-border); background: #fff; color: var(--olive);
}
.review-form textarea:focus { outline: 2px solid var(--lime); outline-offset: 1px; border-color: var(--olive); }
.review-stars { display: flex; gap: 2px; }
.review-stars button { font-size: 1.9rem; line-height: 1; padding: 2px 3px; color: var(--slate-soft); cursor: pointer; transition: color 0.2s, scale 0.2s; }
.review-stars button.on { color: var(--olive); }
.review-stars button:hover { scale: 1.15; }
.review-stars button:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; border-radius: 6px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.review-status { padding: 8px 12px; border-radius: 10px; font-size: 0.9rem; background: var(--sky); }
.review-status.s-approved { background: color-mix(in srgb, var(--lime) 45%, #fff); }
.review-status.s-hidden { background: var(--sand); }
.review-list { list-style: none; display: grid; gap: 12px; }
.review-list li { display: grid; gap: 6px; padding: 16px 18px; border-radius: 16px; background: var(--card-solid); border: 1px solid var(--card-border); }
.review-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.review-meta small { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.review-list p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.review-none { color: var(--muted); }

/* ปุ่มเปลี่ยนภาษา: สวิตช์ทรงแคปซูลสีเข้ม เล็กกว่าปุ่มอื่น มีตัวเลื่อนสีเขียวบอกภาษาปัจจุบัน */
.lang-switch {
  position: relative; flex-shrink: 0;
  display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 3px; border: 0; border-radius: 999px;
  background: var(--olive); cursor: pointer;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; line-height: 1;
  box-shadow: 0 0 0 3px rgba(166, 245, 74, 0.35);
  transition: box-shadow 0.3s;
}
.lang-switch::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--lime);
  transition: transform 0.35s var(--ease);
}
html[lang="en"] .lang-switch::before { transform: translateX(100%); }
.ls-opt { position: relative; padding: 6px 9px; color: var(--sand); transition: color 0.3s; }
html[lang="th"] .ls-opt[data-lang="th"],
html[lang="en"] .ls-opt[data-lang="en"] { color: var(--olive); }
.lang-switch:hover { box-shadow: 0 0 0 5px rgba(166, 245, 74, 0.55); }
.lang-switch:focus-visible { outline: 2px solid var(--clay); outline-offset: 4px; }
.age-box .lang-switch { position: absolute; top: 14px; right: 14px; }

/* =========================================================
   Section rail (เมนูตัวเลขด้านซ้าย)
   ========================================================= */
.section-rail {
  position: fixed; left: 18px; top: 50%; transform: translateY(-50%); z-index: 90;
  display: none; flex-direction: column; gap: 6px;
}
.section-rail a {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px;
  color: var(--muted); font-size: 0.85rem; transition: background 0.3s, color 0.3s;
}
.section-rail span { font-family: var(--mono); font-size: 0.75rem; width: 22px; }
.section-rail b {
  font-weight: 500; max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  transition: max-width 0.4s var(--ease), opacity 0.3s;
}
.section-rail a::before { content: ""; width: 14px; height: 2px; background: currentColor; transition: width 0.3s var(--ease); }
.section-rail a:hover b, .section-rail a.active b { max-width: 90px; opacity: 1; }
/* ตัวเลข + ขีด: บนพื้นสว่างเป็นเทาอมเขียว (--muted) · เมื่ออยู่ในส่วนพื้นเข้ม (สรรพคุณ) เปลี่ยนเป็นเขียวอ่อน
   ไม่ใช้ขาวล้วน/สีเดียวกับพื้น จะได้มองเห็นทุกส่วนและสบายตา */
.section-rail:has(a.active[href="#benefits"]) a:not(.active),
.section-rail:has(a.active[href="#videos"]) a:not(.active) { color: var(--slate-soft); }
.section-rail a.active { color: var(--olive); background: var(--card-solid); }
.section-rail a.active::before { width: 24px; background: var(--lime); height: 3px; }

/* ---------- Status rail (ขวา) ---------- */
.status-rail {
  position: fixed; right: 16px; top: 50%; z-index: 80; display: none;
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
  gap: 18px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 2px; color: var(--muted);
}
.status-rail span + span::before { content: "·"; margin-bottom: 18px; display: inline-block; }

/* =========================================================
   Hero
   ========================================================= */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 130px 0 90px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; animation: float 14s ease-in-out infinite; }
.b1 { width: 520px; height: 520px; background: var(--sand); top: -120px; left: -120px; }
.b2 { width: 420px; height: 420px; background: var(--lime); bottom: -160px; right: 12%; opacity: 0.22; animation-delay: -5s; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(20, 38, 26,0.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(20, 38, 26,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, #000 30%, transparent 75%);
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 30px) scale(0.95); }
}
.floating-leaves { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.floating-leaves svg { position: absolute; bottom: -60px; color: var(--clay); opacity: 0.16; animation: rise linear infinite; }
@keyframes rise { to { transform: translateY(-120vh) rotate(360deg); } }

.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--muted); }
.kicker-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); border: 1.5px solid var(--olive); }
.kicker-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--lime); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.hero-title { margin: 18px 0 22px; line-height: 1.08; font-weight: 700; }
.hero-title span { display: block; font-size: clamp(2.8rem, 6.4vw, 5.2rem); }
.hero-title .thin { font-size: clamp(1.1rem, 2.2vw, 1.6rem); font-weight: 300; color: var(--muted); margin-top: 14px; line-height: 1.4; }

/* ข้อความสลับ 2 ชุด */
.copy-flip { position: relative; display: grid; max-width: 540px; font-size: 1.08rem; color: var(--muted); }
.copy-flip span { grid-area: 1 / 1; transition: opacity 0.7s, transform 0.7s var(--ease); }
.copy-flip .copy-alt { opacity: 0; transform: translateY(12px); }
.copy-flip.flipped .copy-main { opacity: 0; transform: translateY(-12px); }
.copy-flip.flipped .copy-alt { opacity: 1; transform: none; }

.meta-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; }
.meta-pill {
  padding: 6px 14px; border-radius: 99px; font-size: 0.9rem;
  border: 1px solid var(--card-border); background: var(--card-solid);
}
.meta-pill.hot { background: var(--lime); border-color: var(--olive); font-weight: 500; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* กรอบภาพ hero + สแตมป์ */
.hero-object { position: relative; padding: 24px; }
.hero-frame {
  position: relative; aspect-ratio: 4 / 4.4; border-radius: 30px; overflow: hidden;
  background: var(--olive);
  border: 1.5px solid var(--olive);
  box-shadow: 14px 14px 0 var(--lime);
  display: grid; place-items: center;
}
.frame-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.2px);
  background-size: 18px 18px;
}
.orbit { position: relative; width: 78%; aspect-ratio: 1; display: grid; place-items: center; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.5); animation: spin 40s linear infinite; }
.r1 { inset: 0; }
.r2 { inset: 15%; animation-direction: reverse; animation-duration: 28s; border-style: solid; border-color: rgba(166, 245, 74, 0.35); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-leaf { width: 66%; aspect-ratio: 1; display: grid; place-items: center; transition: transform 0.2s ease-out; }
/* ลากเมาส์บนกรอบเพื่อหมุนใบ (มุมหมุนตั้งจาก script.js ผ่าน --rx / --ry) */
.hero-frame { cursor: grab; touch-action: pan-y; user-select: none; }
.hero-frame.dragging { cursor: grabbing; }
.leaf-spin {
  width: 100%; height: 100%;
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}
/* โลโก้ 3D แบบเหรียญ: script.js ซ้อนแผ่นกลมหลายชั้นตามแกน Z (--z) ให้มีความหนา — ชั้นหน้า/หลังเป็นรูปโลโก้ ชั้นกลางเป็นขอบเหรียญ */
.leaf-body { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: sway 6s ease-in-out infinite; }
.hero-leaf img, .hero-leaf .edge { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; transform: translateZ(var(--z, 0px)); pointer-events: none; }
.hero-leaf img { object-fit: contain; backface-visibility: hidden; }
.hero-leaf img.back { transform: translateZ(var(--z, 0px)) rotateY(180deg); }
.hero-leaf .edge { background: #3f8a3a; }
.hero-leaf .edge:nth-child(2) { box-shadow: 0 0 44px rgba(166, 245, 74, 0.45); }
.hero-frame.dragging .leaf-body { animation-play-state: paused; }
@keyframes sway { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.chip {
  position: absolute; padding: 8px 14px; border-radius: 10px;
  background: var(--cream); border: 1.5px solid var(--olive);
  font-family: var(--mono); font-size: 0.85rem;
  animation: bob 5s ease-in-out infinite;
}
.chip b { color: var(--clay); }
.c1 { top: 14%; right: 8%; }
.c2 { bottom: 22%; left: 8%; animation-delay: -2s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.smoke { position: absolute; bottom: -20px; left: 50%; width: 120px; height: 100%; pointer-events: none; }
.smoke i {
  position: absolute; bottom: 0; left: 30%; width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18); filter: blur(12px);
  animation: smoke 7s ease-out infinite;
}
.smoke i:nth-child(2) { left: 50%; animation-delay: -2.3s; }
.smoke i:nth-child(3) { left: 10%; animation-delay: -4.6s; }
@keyframes smoke { from { transform: translateY(0) scale(0.6); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(-420px) scale(2.4); opacity: 0; } }
.place-stamp {
  position: absolute; top: 0; left: 0; z-index: 2; padding: 10px 16px; border-radius: 12px;
  background: var(--lime); border: 1.5px solid var(--olive); transform: rotate(-6deg);
  display: grid; line-height: 1.2;
}
.place-stamp span { font-family: var(--mono); font-size: 0.75rem; }
.place-stamp b { font-family: var(--font-head); font-size: 1.1rem; }
.age-stamp {
  position: absolute; right: 0; bottom: 30px; z-index: 2; width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; line-height: 1;
  background: var(--clay); color: var(--cream); border: 1.5px solid var(--olive);
  outline: 2px dashed var(--clay); outline-offset: 5px; transform: rotate(8deg);
}
.age-stamp strong { font-family: var(--font-head); font-size: 2rem; }
.age-stamp span { font-size: 0.85rem; margin-top: 4px; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; padding: 20px 0;
  background: var(--olive); color: var(--sand);
  transform: rotate(-2deg); margin: 10px -20px;
  border-block: 1.5px solid var(--olive);
}
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 30s linear infinite; }
.marquee span { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; letter-spacing: 2px; }
.marquee i { font-style: normal; font-size: 1.3rem; color: var(--sand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 28px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border); }
.feature h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 16px 0 10px; line-height: 1.2; }
.section-head p { color: var(--muted); }
.split-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.big-title { margin-top: 16px; line-height: 1.05; }
.big-title span { display: block; font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
.split-side p { color: var(--muted); font-size: 1.05rem; }
.note-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.note-pills span { padding: 5px 12px; border-radius: 8px; font-size: 0.85rem; background: var(--card-solid); border: 1px dashed var(--accent-line); }

/* =========================================================
   Branches
   ========================================================= */
.branch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.branch-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--card-solid); border: 1.5px solid var(--olive);
}
.branch-card { --media-h: 270px; }
/* ช่องบนของการ์ด: รูปหน้าร้าน (ค่าเริ่มต้น) สลับกับแผนที่ด้วยปุ่ม .media-switch */
.branch-media {
  position: relative; height: var(--media-h); overflow: hidden;
  background: var(--bg-2); border-bottom: 1.5px solid var(--olive);
}
.branch-photos, .branch-map { position: absolute; inset: 0; transition: opacity 0.4s var(--ease), visibility 0.4s; }
.branch-media[data-view="map"] .branch-photos,
.branch-media:not([data-view="map"]) .branch-map { opacity: 0; visibility: hidden; }
.branch-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(0.55) sepia(0.2); transition: filter 0.4s; }
.branch-card:hover .branch-map iframe { filter: none; }

/* รูปหลัก */
.bp-main { position: absolute; inset: 0; width: 100%; height: 100%; cursor: zoom-in; }
.bp-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), opacity 0.3s; }
.bp-main img.swap { opacity: 0; }
.branch-card:hover .bp-main img { transform: scale(1.04); }
/* ไล่เงาด้านล่าง ให้รูปย่อและเลขสาขาอ่านง่าย */
.branch-photos.has-photos::after {
  content: ""; position: absolute; inset: auto 0 0; height: 50%; pointer-events: none;
  background: linear-gradient(transparent, rgba(10, 22, 14, 0.55));
}

/* ยังไม่มีรูป */
.bp-empty {
  position: absolute; inset: 14px; display: grid; place-content: center; justify-items: center; gap: 10px;
  border: 1.5px dashed var(--accent-line); border-radius: 14px; color: var(--muted); font-size: 0.9rem;
  background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(20, 38, 26, 0.04) 12px 24px);
}
.bp-empty svg { width: 54px; height: 54px; color: var(--clay); opacity: 0.55; }
.has-photos .bp-empty { display: none; }

/* รูปย่อ (แสดงเมื่อมีมากกว่า 1 รูป) */
.bp-thumbs { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: flex; gap: 6px; }
.bp-thumbs button {
  width: 46px; height: 46px; border-radius: 9px; overflow: hidden; opacity: 0.7;
  border: 2px solid rgba(255, 255, 255, 0.75);
  transition: opacity 0.2s, transform 0.2s var(--ease), border-color 0.2s;
}
.bp-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.bp-thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.bp-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--lime); }

/* ปุ่มสลับ รูปร้าน / แผนที่ */
.media-switch {
  position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; padding: 3px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.92); border: 1.5px solid var(--olive); backdrop-filter: blur(6px);
}
.media-switch button {
  padding: 3px 11px; border-radius: 7px; font-family: var(--font-head); font-size: 0.82rem; font-weight: 500; color: var(--muted);
  transition: background-color 0.25s, color 0.25s;
}
.media-switch button:hover { color: var(--olive); }
.media-switch button[aria-pressed="true"] { background: var(--olive); color: var(--cream); }

.branch-tag {
  position: absolute; top: 14px; left: 14px; z-index: 3; padding: 4px 12px; border-radius: 8px;
  background: var(--lime); border: 1.5px solid var(--olive); font-size: 0.85rem; font-weight: 500;
  pointer-events: none;
}
.branch-number {
  position: absolute; top: calc(var(--media-h) - 34px); right: 18px; z-index: 3;
  font-family: var(--font-head); font-weight: 800; font-size: 3.4rem; line-height: 1;
  color: var(--cream); -webkit-text-stroke: 1.5px var(--olive); pointer-events: none;
}
.branch-content { padding: 30px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.branch-content h3 { font-size: 1.3rem; line-height: 1.3; margin-bottom: 6px; }
.branch-content p { color: var(--muted); font-size: 0.95rem; }
/* margin-top:auto ดันเวลาทำการ + ปุ่ม ลงล่างสุด → ทุกการ์ดอยู่ระดับเดียวกัน */
.branch-time { margin: auto 0 18px; padding-top: 14px; border-top: 1px dashed var(--card-border); }
.branch-content > p:not(.branch-time) { margin-bottom: 14px; }
.branch-actions { display: flex; gap: 8px; }
.branch-actions a {
  flex: 1; text-align: center; padding: 9px 12px; border-radius: 10px; font-family: var(--font-head); font-weight: 500;
  border: 1.5px solid var(--olive);
}
.branch-actions a:first-child { background: var(--olive); color: var(--cream); }

/* ---------- Lightbox: ดูรูปหน้าร้านขนาดใหญ่ ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 64px 16px;
  background: rgba(10, 22, 14, 0.9); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-figure { display: grid; justify-items: center; gap: 12px; max-width: min(1100px, 100%); }
.lb-figure img {
  max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain;
  border-radius: 14px; border: 1.5px solid var(--olive); background: var(--bg-2);
}
.lb-figure figcaption { color: var(--cream); font-family: var(--font-head); font-size: 0.95rem; text-align: center; }
.lb-figure figcaption small { display: block; opacity: 0.6; font-family: var(--mono); font-size: 0.78rem; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--cream); color: var(--olive); border: 1.5px solid var(--olive); font-size: 1.5rem; line-height: 1;
  transition: background-color 0.2s, translate 0.2s var(--ease);
}
.lb-btn:hover { background: var(--lime); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lb-next { right: 14px; top: 50%; translate: 0 -50%; }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single small { display: none; }

/* ---------- Products ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter { padding: 9px 20px; border-radius: 10px; border: 1.5px solid var(--card-border); background: var(--card-solid); color: var(--muted); }
.filter:hover { color: var(--olive); }
.filter.active { background: var(--olive); color: var(--on-dark); border-color: var(--olive); font-weight: 500; }
.filter[data-filter="indica"].active { background: var(--t-indica); border-color: var(--t-indica); }
.filter[data-filter="sativa"].active { background: var(--t-sativa); border-color: var(--t-sativa); }
.filter[data-filter="hybrid"].active { background: var(--t-hybrid); border-color: var(--t-hybrid); }
.filter[data-filter="cbd"].active { background: var(--t-cbd); border-color: var(--t-cbd); }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--card-solid); border: 1.5px solid var(--card-border);
}
.product.hide { display: none; }

/* หน้าแรก (จอใหญ่กว่ามือถือ): เรียง 2 แถว แล้วต่อไปทางขวา สายพันธุ์ที่เพิ่มใหม่เลื่อนดูทางขวาแทนการต่อลงล่าง */
.scroll-nav { display: none; }
@media (min-width: 641px) {
  .products-scroll {
    --cols: 4;
    grid-template-columns: none; grid-auto-flow: column;
    grid-template-rows: repeat(var(--rows, 2), auto);
    grid-auto-columns: calc((100% - (var(--cols) - 1) * 24px) / var(--cols));
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scroll-padding-inline: 8px;
    /* เผื่อที่ให้เงา hover ไม่โดนตัด */
    margin: -8px -8px 0; padding: 8px 8px 18px;
    scrollbar-width: thin; scrollbar-color: var(--accent-line) transparent;
  }
  .products-scroll .product { scroll-snap-align: start; }
  .scroll-nav { display: flex; gap: 8px; margin-left: auto; }
  .scroll-nav[hidden] { display: none; }
  .scroll-btn {
    width: 42px; height: 42px; border-radius: 10px; font-size: 1.1rem;
    border: 1.5px solid var(--card-border); background: var(--card-solid); color: var(--olive);
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, opacity 0.3s;
  }
  .scroll-btn:hover:not(:disabled) { background: var(--olive); color: var(--on-dark); border-color: var(--olive); }
  .scroll-btn:disabled { opacity: 0.35; cursor: default; }
}
@media (min-width: 641px) and (max-width: 1024px) { .products-scroll { --cols: 3; } }
@media (min-width: 641px) and (max-width: 860px) { .products-scroll { --cols: 2; } }
.p-img {
  height: 220px; display: grid; place-items: center; position: relative; overflow: hidden;
  /* สีครีมเดียวกันทุกสินค้า (ครีมอ่อนตรงกลาง → ครีมเข้มขอบ) */
  background: radial-gradient(circle at 50% 60%, #ffffff, #e6ede1);
  border-bottom: 1px solid var(--card-border);
}
.p-img svg { width: 55%; height: 55%; color: rgba(20, 38, 26, 0.78); filter: drop-shadow(0 10px 20px rgba(20, 38, 26, 0.2)); transition: transform 0.7s var(--ease); }
.product:hover .p-img svg { transform: scale(1.15) rotate(10deg); }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.product:hover .p-img img { transform: scale(1.08); }
.p-type {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 12px; border-radius: 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--card-border);
}
.p-badge { position: absolute; top: 14px; right: 14px; padding: 4px 12px; border-radius: 8px; font-size: 0.75rem; background: var(--olive); color: var(--lime); font-weight: 600; }
.p-body { padding: 20px 22px 22px; }
.p-body h3 { font-size: 1.25rem; }
.p-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.p-reviews { flex-shrink: 0; font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.p-body .p-desc { color: var(--muted); font-size: 0.9rem; margin: 4px 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-meta { display: flex; gap: 8px; }
.p-meta span { font-size: 0.8rem; padding: 3px 10px; border-radius: 8px; background: var(--accent-soft); font-family: var(--mono); }
.p-meta b { color: var(--olive); }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.p-more { font-size: 0.9rem; color: var(--clay); font-weight: 500; transition: transform 0.3s var(--ease); }
.product:hover .p-more { transform: translateX(4px); }

.t-indica { color: var(--t-indica); }
.t-sativa { color: var(--t-sativa); }
.t-hybrid { color: var(--t-hybrid); }
.t-cbd { color: var(--t-cbd); }

/* ---------- Knowledge ---------- */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.type-card { padding: 34px 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border); }
.type-badge { display: inline-block; padding: 4px 14px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; margin-bottom: 14px; }
.type-badge.indica { background: var(--t-indica); color: #fff; }
.type-badge.hybrid { background: var(--t-hybrid); color: #fff; }
.type-badge.sativa { background: var(--t-sativa); color: #fff; }
.type-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.type-card p { color: var(--muted); margin-bottom: 16px; }
.type-card ul { list-style: none; display: grid; gap: 8px; }
.type-card li::before { content: "✓"; color: var(--clay); margin-right: 10px; font-weight: 700; }

.compounds { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compound {
  padding: 32px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.5));
  border: 1px solid var(--card-border);
}
.compound-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.molecule {
  width: 64px; height: 64px; border-radius: 18px; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700;
  background: var(--clay); color: #fff;
}
.molecule.cbd { background: var(--grey); }
.compound small { color: var(--muted); }
.compound p { color: var(--muted); margin-bottom: 20px; }
.bar { height: 8px; border-radius: 8px; background: rgba(20, 38, 26, 0.1); overflow: hidden; }
.bar span {
  display: block; height: 100%; width: 0; border-radius: 8px;
  background: linear-gradient(90deg, var(--clay), var(--olive));
  transition: width 1.6s var(--ease) 0.3s;
}
.bar.cbd span { background: linear-gradient(90deg, var(--sand), var(--grey)); }
.in-view .bar span, .bar.in-view span { width: var(--w); }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit {
  padding: 28px 24px; border-radius: var(--radius); position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--card-border);
}
.benefit::after {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent 70%);
  opacity: 0; transition: opacity 0.5s;
}
.benefit:hover::after { opacity: 1; }
.benefit h3 { font-size: 1.15rem; margin-bottom: 6px; position: relative; z-index: 1; }
.benefit p { color: var(--muted); font-size: 0.92rem; position: relative; z-index: 1; }
.disclaimer {
  margin-top: 40px; padding: 22px 26px; border-radius: 16px;
  background: rgba(20, 38, 26, 0.06); border: 1px solid rgba(20, 38, 26, 0.2);
  border-left: 4px solid var(--olive);
  color: var(--muted); font-size: 0.92rem;
}
.disclaimer strong { display: block; color: var(--olive); margin-bottom: 4px; }

/* =========================================================
   Care / Thai law
   ========================================================= */
.care-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.care-copy { position: sticky; top: 110px; }
.care-copy > p { color: var(--muted); font-size: 1.05rem; margin-top: 18px; max-width: 460px; }
.visitor-pass {
  position: relative; margin: 30px 0 20px; width: min(320px, 100%); padding: 22px 26px;
  border-radius: 18px; background: var(--olive); color: var(--sand);
  display: grid; gap: 2px; box-shadow: 10px 10px 0 var(--lime);
  /* รอยปรุข้างตั๋ว */
  -webkit-mask: radial-gradient(circle 10px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 10px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 10px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 10px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.visitor-pass span { font-size: 0.85rem; color: var(--sand); }
.visitor-pass strong { font-family: var(--font-head); font-size: 4rem; line-height: 1; color: var(--lime); }
.visitor-pass small { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 1px; color: var(--sand); border-top: 1px dashed rgba(255, 255, 255, 0.5); padding-top: 10px; margin-top: 8px; }
.care-note { color: var(--muted); font-size: 0.88rem; }
.care-panel { display: grid; gap: 16px; }
.care-card {
  position: relative; padding: 24px 26px 24px 92px; border-radius: 18px;
  background: var(--card-solid); border: 1.5px solid var(--card-border);
  border-left: 8px solid var(--care);
}
.care-card::before {
  content: attr(data-step); position: absolute; left: 24px; top: 22px;
  font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--olive);
}
.care-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.care-card p { color: var(--muted); font-size: 0.95rem; }

/* =========================================================
   Contact
   ========================================================= */
.contact-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.contact-copy > p { color: var(--muted); font-size: 1.05rem; margin-top: 18px; max-width: 520px; }
.contact-details { margin: 28px 0; border-top: 1.5px solid var(--olive); }
.contact-details div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 14px 4px; border-bottom: 1px dashed var(--card-border); }
.contact-details dt { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); letter-spacing: 1px; padding-top: 3px; }
.contact-details dd { font-family: var(--font-body); font-weight: 500; font-size: 1.1rem; word-break: break-word; }
.contact-details a { background: linear-gradient(var(--lime), var(--lime)) left bottom / 0 35% no-repeat; transition: background-size 0.35s var(--ease); }
.contact-details a:hover { background-size: 100% 35%; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-art {
  position: relative; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden;
  background: var(--olive); border: 1.5px solid var(--olive); box-shadow: 14px 14px 0 var(--clay);
  display: grid; place-items: center;
}
.contact-art::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.2px); background-size: 18px 18px;
}
.art-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(166, 245, 74, 0.45), transparent 65%); animation: glow 5s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.15); opacity: 0.7; } }
.art-leaf { position: relative; width: 60%; height: 60%; color: var(--lime); animation: sway 7s ease-in-out infinite; }
/* รูปหน้าร้านของสาขาที่กำลังแสดง: ค่อยๆ เฟดเข้า + ซูมออกช้าๆ */
.art-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity 0.9s var(--ease), transform 4.5s ease-out;
}
.art-photo.active { opacity: 1; transform: scale(1); }
/* ไล่เงาด้านล่างให้ป้ายสาขาเด่น */
.contact-art::after {
  content: ""; position: absolute; inset: auto 0 0; height: 40%; pointer-events: none;
  background: linear-gradient(transparent, rgba(10, 22, 14, 0.5));
}
.art-caption {
  position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; padding: 14px 18px; border-radius: 14px;
  background: var(--cream); border: 1.5px solid var(--olive); display: grid;
  transition: opacity 0.4s, transform 0.4s var(--ease);
}
.art-caption.swap { opacity: 0; transform: translateY(8px); }
.art-caption span { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.art-caption strong { font-family: var(--font-head); font-size: 1.2rem; }

/* ---------- Footer ---------- */
.footer { background: var(--olive); color: var(--sand); padding: 50px 0 40px; text-align: center; }
.footer-inner { display: grid; justify-items: center; gap: 14px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 600; }
.logo svg { width: 34px; height: 34px; }
.footer .logo svg, .footer .logo b { color: var(--lime); }
.footer p { color: var(--sand); font-size: 0.9rem; max-width: 680px; }
.footer small { color: rgba(255, 255, 255, 0.6); font-family: var(--mono); }

/* ---------- Product detail page ---------- */
.pd-hero { position: relative; overflow: hidden; padding: 130px 0 80px; }
.pd-empty { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.pd-empty h1 { font-size: 2.4rem; }
.pd-empty p { color: var(--muted); margin: 8px 0 28px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.9rem; color: var(--muted); margin-bottom: 36px; font-family: var(--mono); }
.breadcrumb a:hover { color: var(--clay); }
.breadcrumb b { color: var(--olive); font-weight: 500; }
.pd-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.pd-visual .pd-img {
  height: auto; aspect-ratio: 1; border-radius: 30px;
  border: 1.5px solid var(--olive); box-shadow: 14px 14px 0 var(--lime);
}
.pd-visual .pd-img svg { animation: sway 6s ease-in-out infinite; }
.pd-visual .pd-img .p-type, .pd-visual .pd-img .p-badge { top: 20px; font-size: 0.85rem; padding: 6px 16px; }
.pd-visual .pd-img .p-type { left: 20px; }
.pd-visual .pd-img .p-badge { right: 20px; }
.pd-info .tag.t-indica { color: var(--t-indica); }
.pd-info .tag.t-sativa { color: var(--t-sativa); }
.pd-info .tag.t-hybrid { color: var(--t-hybrid); }
.pd-info .tag.t-cbd { color: var(--t-cbd); }
.pd-info h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.1; margin: 16px 0 12px; }
.pd-desc { color: var(--muted); font-size: 1.08rem; margin-bottom: 28px; }
.pd-meter { display: grid; gap: 8px; margin-bottom: 28px; }
.pd-meter-row { display: flex; justify-content: space-between; font-family: var(--mono); }
.pd-meter-row b { color: var(--olive); }
.pd-meter .bar { height: 10px; margin-bottom: 8px; }
.pd-specs { display: grid; gap: 10px; }
.pd-specs div {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 18px; border-radius: 14px; background: var(--card-solid); border: 1px solid var(--card-border);
}
.pd-specs dt { color: var(--muted); }
.pd-specs dd { font-weight: 500; text-align: right; }
.pd-body { padding-top: 40px; }
.pd-about { max-width: 820px; margin: 0 auto 50px; text-align: center; }
.pd-about h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 14px; }
.pd-about p { color: var(--muted); font-size: 1.05rem; }
.pd-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pd-card { padding: 26px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--card-border); }
.pd-card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span { padding: 4px 12px; border-radius: 8px; font-size: 0.85rem; background: var(--accent-soft); color: var(--olive); }
.pills.flavor span { background: var(--sand); }
.pills.help span { background: rgba(158, 158, 158, 0.18); }
/* สาขาที่มีสายพันธุ์นี้ + ปุ่มติดต่อเจ้าของร้าน (ปุ่มใช้ .branch-actions ร่วมกับการ์ดสาขาหน้าแรก) */
.pd-branches { margin-top: 40px; }
.pd-branches > h3 { font-size: 1.4rem; margin-bottom: 6px; }
.pd-branches > p { color: var(--muted); margin-bottom: 18px; }
.pd-branch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.pd-branch { display: flex; flex-direction: column; padding: 22px 24px; border-radius: var(--radius); background: var(--card-solid); border: 1px solid var(--card-border); }
.pd-branch-tag { align-self: flex-start; padding: 4px 12px; margin-bottom: 12px; border-radius: 8px; background: var(--lime); border: 1.5px solid var(--olive); font-size: 0.85rem; font-weight: 500; }
.pd-branch h4 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 6px; }
.pd-branch p { color: var(--muted); font-size: 0.95rem; }
.pd-branch > p:not(.branch-time) { margin-bottom: 14px; }
.pd-branch .branch-actions { flex-wrap: wrap; }
.pd-branch .branch-actions a { white-space: nowrap; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.pager-link { display: grid; gap: 2px; padding: 22px 26px; border-radius: var(--radius); background: var(--card-solid); border: 1px solid var(--card-border); }
.pager-link.next { text-align: right; }
.pager-link small { color: var(--muted); font-family: var(--mono); }
.pager-link b { font-family: var(--font-head); font-size: 1.3rem; font-weight: 500; }
.pd-back { text-align: center; margin-top: 44px; }

/* =========================================================
   Floating UI: scroll joint, back to top, offer, mobile bar
   ========================================================= */
/* มวนที่ไหม้ลงตามการเลื่อนหน้า */
.scroll-joint {
  --burn: 0;                              /* 0 → 1 ตั้งค่าจาก script.js */
  position: fixed; right: 34px; bottom: 96px; z-index: 85;
  width: 18px; height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  pointer-events: none;
}
.joint-paper {
  width: 18px; height: calc(150px * (1 - var(--burn) * 0.82));
  background: #fffdf9;
  border: 1.5px solid var(--olive); border-bottom: 0; border-top: 0;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
}
.joint-filter { width: 15px; height: 30px; background: var(--clay); border: 1.5px solid var(--olive); border-radius: 0 0 4px 4px; }
.joint-ember {
  width: 18px; height: 8px; border-radius: 3px;
  background: linear-gradient(0deg, #3a3524, #ff8a3d 55%, #ffd36b);
  box-shadow: 0 0 12px 3px rgba(255, 138, 61, 0.55);
  animation: ember 1.4s ease-in-out infinite;
}
@keyframes ember { 50% { box-shadow: 0 0 18px 5px rgba(255, 138, 61, 0.75); } }
.joint-smoke { position: relative; width: 18px; height: 0; }
.joint-smoke i {
  position: absolute; bottom: 0; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: rgba(158, 158, 158, 0.45); filter: blur(4px); animation: jsmoke 3.2s ease-out infinite;
}
.joint-smoke i:nth-child(2) { animation-delay: -1.1s; }
.joint-smoke i:nth-child(3) { animation-delay: -2.2s; }
@keyframes jsmoke { from { transform: translate(0, 0) scale(0.5); opacity: 0.9; } to { transform: translate(-10px, -70px) scale(2.2); opacity: 0; } }

.back-to-top {
  position: fixed; right: 20px; bottom: 22px; z-index: 90;
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px;
  background: var(--card-solid); border: 1.5px solid var(--olive);
  opacity: 0; transform: translateY(20px); pointer-events: none;
}
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.bt-arrow { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--olive); color: var(--lime); font-weight: 700; }
.bt-copy { display: grid; line-height: 1.15; text-align: left; }
.bt-copy b { font-family: var(--font-head); font-weight: 500; font-size: 0.92rem; }
.bt-copy small { font-size: 0.72rem; color: var(--muted); }

.offer-pop {
  position: fixed; left: 20px; bottom: 22px; z-index: 95; width: min(330px, calc(100% - 40px));
  display: grid; gap: 6px; padding: 18px 20px; border-radius: 18px;
  background: var(--cream); border: 1.5px solid var(--olive); box-shadow: 8px 8px 0 var(--lime);
  transform: translateY(140%); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.4s;
}
.offer-pop.show { transform: none; opacity: 1; }
.offer-pop strong { font-family: var(--font-head); font-size: 1.15rem; }
.offer-pop span { color: var(--muted); font-size: 0.9rem; }
.offer-pop .btn { justify-self: start; margin-top: 6px; }
.offer-close { position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; border-radius: 8px; font-size: 1.2rem; line-height: 1; color: var(--muted); }
.offer-close:hover { background: var(--bg-2); color: var(--olive); }

.mobile-actions {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 95;
  display: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 6px; border-radius: 16px;
  background: rgba(20, 38, 26, 0.92); backdrop-filter: blur(10px);
}
.mobile-actions a { text-align: center; padding: 10px 2px; white-space: nowrap; font-size: clamp(0.8rem, 3.7vw, 1rem); border-radius: 11px; color: var(--cream); font-family: var(--font-head); font-weight: 500; }
/* ปุ่มเด่น (เขียวสด): หน้าที่กำลังเปิดอยู่ (aria-current) · ถ้าแถบนั้นไม่มีปุ่มของหน้าปัจจุบัน ใช้ปุ่มแรกแทน */
.mobile-actions a[aria-current="page"],
.mobile-actions:not(:has([aria-current="page"])) a:first-child { background: var(--lime); color: var(--olive); }

/* ---------- Overlays: grain / scanlines / vignette ---------- */
.fx-noise, .fx-scan, .fx-vignette { position: fixed; inset: 0; pointer-events: none; z-index: 300; }
.fx-noise {
  opacity: 0.07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fx-scan { opacity: 0.035; background: repeating-linear-gradient(0deg, #000 0 1px, transparent 1px 4px); }
.fx-vignette { background: radial-gradient(ellipse at center, transparent 60%, rgba(20, 38, 26, 0.16)); }

/* =========================================================
   Scroll reveal animations
   ========================================================= */
.reveal, .reveal-left, .reveal-right, .reveal-zoom {
  opacity: 0;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal { transform: translateY(50px); }
.reveal-left { transform: translateX(-70px); }
.reveal-right { transform: translateX(70px); }
.reveal-zoom { transform: scale(0.88); }
.in-view { opacity: 1; transform: none; }

/* =========================================================
   Blog (blog.html — วาดโดย js/blog.js)
   ========================================================= */
.blog-hero { position: relative; overflow: hidden; padding: 140px 0 36px; }
.blog-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; margin: 16px 0 12px; }
.blog-hero p { color: var(--muted); max-width: 560px; font-size: 1.05rem; }
.blog-body { padding: 20px 0 110px; }
.blog-preview-bar {
  position: sticky; top: 0; z-index: 120; padding: 8px 16px; text-align: center;
  background: var(--lime); color: var(--ink); font-size: 0.9rem; font-weight: 500; border-bottom: 1.5px solid var(--olive);
}
/* หน้าแรก/หน้าสินค้ามีแถบบนแบบ fixed อยู่แล้ว จึงวางแถบดูตัวอย่างไว้ขอบล่าง */
.strain-preview-bar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; border-bottom: 0; border-top: 1.5px solid var(--olive); }

/* การ์ดบทความ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card, .blog-featured {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--card-solid); border: 1.5px solid var(--card-border);
}
.blog-featured { display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: 28px; border-color: var(--olive); }
.blog-featured .blog-cover { aspect-ratio: auto; min-height: 320px; height: 100%; }
.blog-featured .blog-card-body { padding: 36px; justify-content: center; gap: 12px; }
.blog-featured h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); line-height: 1.15; }
.blog-cover {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 60%, #ffffff, #e6ede1); border-bottom: 1px solid var(--card-border);
}
.blog-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.blog-cover svg { width: 90px; height: 90px; color: rgba(20, 38, 26, 0.6); transition: transform 0.7s var(--ease); }
.blog-card:hover .blog-cover img, .blog-featured:hover .blog-cover img { transform: scale(1.05); }
.blog-card:hover .blog-cover svg, .blog-featured:hover .blog-cover svg { transform: scale(1.12) rotate(8deg); }
.blog-cat, .blog-draft {
  position: absolute; top: 14px; left: 14px; padding: 4px 12px; border-radius: 8px;
  background: var(--lime); border: 1.5px solid var(--olive); color: var(--ink); font-size: 0.82rem; font-weight: 500;
}
.blog-draft { left: auto; right: 14px; background: var(--olive); color: var(--lime); font-family: var(--mono); letter-spacing: 1px; }
.post-meta .blog-draft { position: static; }
.blog-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 22px 22px; }
.blog-card h3 { font-size: 1.5rem; line-height: 1.25; }
.blog-excerpt { color: var(--muted); font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-meta, .post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.blog-meta { margin-top: auto; padding-top: 10px; }
.blog-meta span + span::before, .post-meta span + span::before { content: "·"; margin-right: 14px; }
.blog-read { color: var(--clay); font-weight: 500; }
.blog-empty { display: grid; justify-items: center; gap: 10px; padding: 70px 20px; text-align: center; border: 1.5px dashed var(--accent-line); border-radius: var(--radius); }
.blog-empty svg { width: 70px; height: 70px; color: var(--clay); opacity: 0.6; }
.blog-empty p { color: var(--muted); }

/* หน้าอ่านบทความ */
.post { padding: 130px 0 80px; }
.post-wrap { width: min(820px, 100% - 40px); margin-inline: auto; }
.post-cover { aspect-ratio: 2 / 1; margin-bottom: 36px; border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--olive); box-shadow: 10px 10px 0 var(--lime); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-head { display: grid; justify-items: center; gap: 14px; text-align: center; }
.post-head h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); line-height: 1.1; }
.post-meta { justify-content: center; font-size: 0.85rem; }
.post-content { margin-top: 40px; font-size: 1.08rem; line-height: 1.9; }
.post-content > * + * { margin-top: 1.1em; }
.post-content h2 { font-size: 2.1rem; line-height: 1.2; margin-top: 1.7em; }
.post-content h3 { font-size: 1.6rem; line-height: 1.25; margin-top: 1.5em; }
.post-content ul, .post-content ol { padding-left: 1.5em; }
.post-content li + li { margin-top: 0.35em; }
.post-content li::marker { color: var(--clay); }
.post-content a { color: var(--clay); text-decoration: underline; text-underline-offset: 3px; }
.post-content img { max-width: 100%; height: auto; margin-inline: auto; border-radius: 16px; border: 1px solid var(--card-border); }
.post-content blockquote {
  padding: 16px 22px; border-left: 5px solid var(--lime); border-radius: 0 14px 14px 0;
  background: var(--card-solid); font-size: 1.15rem; color: var(--olive);
}
.post-share {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin: 48px 0 28px; padding: 18px 0; border-block: 1px dashed var(--accent-line);
}
.post-share strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); }
.post-share div { display: flex; flex-wrap: wrap; gap: 8px; }
.post-share a, .post-share button {
  padding: 7px 14px; border-radius: 10px; border: 1.5px solid var(--olive); background: var(--card-solid);
  font-family: var(--font-head); font-size: 0.95rem; transition: background-color 0.25s, color 0.25s;
}
.post-share a:hover, .post-share button:hover { background: var(--olive); color: var(--cream); }
.blog-related { padding: 70px 0 100px; background: linear-gradient(180deg, transparent, var(--bg-2) 14%, var(--bg-2) 100%); }
.blog-related .section-head { margin-bottom: 36px; }

@media (max-width: 860px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured .blog-cover { min-height: 0; aspect-ratio: 16 / 9; }
  .blog-featured .blog-card-body { padding: 24px; }
  .blog-hero, .post { padding-top: 110px; }
  .post-content h2 { font-size: 1.8rem; }
}

/* =========================================================
   Colour blocking: บล็อกสีตามส่วนต่างๆ ของหน้า
   พื้นขาวสลับพื้นเขียวเข้ม/เขียวอ่อน · การ์ดสีนุ่มลง ไม่ฉูดฉาด แต่ยังตัดกับเส้นขอบเข้ม
   เส้นขอบเข้ม 2px + เงาแข็ง
   ========================================================= */
/* การ์ดทุกแบบ: เส้นขอบเข้ม + เงาแข็งตั้งแต่ยังไม่ hover */
.feature, .product, .type-card, .benefit, .compound, .care-card, .branch-card, .pd-card, .pager-link, .blog-card, .blog-featured {
  border: 2px solid var(--olive);
}
.tag, .meta-pill, .filter, .time-chip, .scroll-btn { border: 1.5px solid var(--olive); }

/* hero */
.b1 { background: var(--lime); opacity: 0.3; }
.b2 { background: var(--rose); opacity: 0.22; }
/* ตราอายุ: พื้นขาว + วงแหวนขาวรองเส้นประ ให้เห็นชัดทั้งบนพื้นเข้ม พื้นเขียว และพื้นขาว */
.age-stamp { background: #fff; color: var(--olive); border-width: 2px; outline-color: var(--olive); box-shadow: 0 0 0 8px #fff; }
.chip { box-shadow: 4px 4px 0 var(--lime); }
.top-nav a.active { background: var(--lime); color: var(--olive); }
.age-gate { background: color-mix(in srgb, var(--olive) 88%, transparent); }
.age-box { box-shadow: 12px 12px 0 var(--lime); }
/* ปุ่มในหน้าต่างยืนยันอายุ: "ใช่" พื้นเขียวสด เงาแข็งสีเข้ม · "ไม่" พื้นขาว เงาแข็งเขียวสด (ปุ่มกับเงาคนละสีเสมอ) */
.age-actions .btn { min-width: 120px; border: 2px solid var(--olive); --pop: 8px; }
.age-actions .btn-primary { background: var(--lime); color: var(--olive); --pop-c: var(--olive); box-shadow: 4px 4px 0 var(--olive); }
.age-actions .btn-ghost { background: #fff; --pop-c: var(--lime); box-shadow: 4px 4px 0 var(--lime); }
.joint-filter { background: #b98a6a; }

/* marquee: แถบเขียวนีออน ดาวสีเข้ม */
.marquee { background: var(--lime); color: var(--olive); border-block: 2px solid var(--olive); }
.marquee i { color: var(--olive); }

/* การ์ดจุดเด่น 4 ใบ คนละสี */
.feature p { color: var(--olive); }
.feature:nth-child(4n + 1) { background: var(--lime); }
.feature:nth-child(4n + 2) { background: var(--pink); }
.feature:nth-child(4n + 3) { background: var(--cyan); }
.feature:nth-child(4n + 4) { background: var(--olive); }
.feature:nth-child(4n + 4) h3 { color: var(--lime); }
.feature:nth-child(4n + 4) p { color: #fff; }

/* วิดีโอ: บล็อกพื้นเข้มแบบโรงหนัง จอขอบเขียว เงาแข็งเขียวกลาง · ข้อความ quote + ปุ่มเลือกสาขาอยู่ด้านซ้าย จออยู่ด้านขวา */
#videos { background: var(--olive); }
#videos h2 { color: #fff; }
#videos .split-side p { color: rgba(255, 255, 255, 0.8); }
#videos .note-pills span { background: transparent; color: var(--sand); border-color: rgba(255, 255, 255, 0.4); }
.video-stage { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 40px; align-items: stretch; }
.video-side { display: grid; align-content: space-between; gap: 30px; min-width: 0; }
.video-quote { margin: 0; color: #fff; }
.video-quote::before {
  content: "\201C"; display: block; height: 0.5em; font-family: var(--font-head); font-size: 6rem; line-height: 1; color: var(--lime);
}
.video-quote p { font-family: var(--font-head); font-size: clamp(1.7rem, 2.3vw, 2.3rem); font-weight: 500; line-height: 1.3; }
.video-quote cite {
  display: flex; align-items: center; gap: 10px; margin-top: 18px;
  font-family: var(--mono); font-size: 0.8rem; font-style: normal; letter-spacing: 1px; text-transform: uppercase; color: var(--sand);
}
.video-quote cite::before { content: ""; width: 28px; height: 2px; background: var(--lime); }
.video-player {
  align-self: start; border-radius: var(--radius); overflow: hidden; background: #0c1a11;
  border: 2px solid var(--lime); box-shadow: 10px 10px 0 var(--rose);
}
.video-screen { --poster: none; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0c1a11; }
/* รูปปกของสาขา (จางๆ) อยู่หลังป้าย "เร็วๆ นี้" */
.video-screen::before {
  content: ""; position: absolute; inset: 0; background: var(--poster) center / cover no-repeat;
  opacity: 0.3; filter: grayscale(0.4);
}
.video-screen video, .video-screen iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.video-screen video { object-fit: contain; }
/* ตัวเล่นของทุกสาขาซ้อนกันอยู่ แสดงเฉพาะสาขาที่เลือก */
.video-screen .is-active { opacity: 1; visibility: visible; }
.video-empty {
  position: absolute; inset: 18px; display: grid; place-content: center; justify-items: center; gap: 12px;
  border: 1.5px dashed rgba(255, 255, 255, 0.4); border-radius: 14px; color: var(--sand); text-align: center;
}
.video-empty svg { width: 60px; height: 60px; color: var(--lime); opacity: 0.85; }
.has-video .video-empty { display: none; }
.video-caption {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  background: var(--card-solid); border-top: 2px solid var(--lime);
}
.vc-no { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; color: var(--clay); }
.vc-text { display: grid; min-width: 0; margin-right: auto; }
.vc-text strong { font-family: var(--font-head); font-size: 1.35rem; font-weight: 500; line-height: 1.2; color: var(--ink); }
.vc-text small { color: var(--muted); }

.video-tabs { display: grid; gap: 14px; }
.video-tab {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; text-align: left;
  background: rgba(255, 255, 255, 0.07); border: 2px solid rgba(255, 255, 255, 0.28); color: #fff;
  transition: translate 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.vt-no { font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--lime); }
.vt-text { display: grid; min-width: 0; margin-right: auto; }
.vt-text b { font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; line-height: 1.25; }
.vt-text small { opacity: 0.75; }
.vt-play {
  display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid currentColor; font-size: 0.7rem; padding-left: 2px;
}
/* สามเหลี่ยมปุ่มเล่นวาดด้วย CSS (ตัวอักษร ▶ บน iPhone/iPad จะกลายเป็น emoji) */
.vt-play::before { content: ""; border-left: 9px solid currentColor; border-block: 6px solid transparent; }
.video-tab[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); color: var(--olive); box-shadow: 5px 5px 0 #fff; }
.video-tab[aria-pressed="true"] .vt-no { color: var(--olive); }
.video-tab[aria-pressed="true"] .vt-play { background: var(--olive); border-color: var(--olive); color: var(--lime); }
.video-tab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (hover: hover) {
  .video-tab:not([aria-pressed="true"]):hover { translate: -3px -3px; border-color: var(--lime); box-shadow: 5px 5px 0 var(--lime-d); }
}

/* สินค้า: บล็อกพื้นเทาอมเขียวอ่อน การ์ดขาว รูปพื้นสีสดตามประเภท */
#products { background: var(--slate-soft); }
#products .filter[data-filter="hybrid"].active { background: var(--lime); color: var(--olive); border-color: var(--olive); }
#products .filter[data-filter="cbd"].active { background: var(--cyan); color: var(--olive); border-color: var(--olive); }
.product { box-shadow: 5px 5px 0 var(--lime); }
.p-img { border-bottom: 2px solid var(--olive); }
.p-type { border: 1.5px solid var(--olive); background: #fff; }
.product[data-type="indica"] .p-img { background: var(--olive); }
.product[data-type="indica"] .p-img svg { color: var(--lime); }
.product[data-type="sativa"] .p-img { background: #fff; }
.product[data-type="hybrid"] .p-img { background: var(--lime); }
.product[data-type="cbd"] .p-img { background: var(--sky); }
.product .p-img svg { color: var(--olive); }

/* ความรู้: การ์ดประเภทสายพันธุ์ + สารสำคัญ — ส่วนนี้ใช้เฉดเขียวเข้ม/สด/อ่อนของตัวเอง (ไม่ผูกกับตัวแปรสีกลาง) */
.type-card, .compound, .feature, .benefit, .care-card, .branch-card { box-shadow: 5px 5px 0 var(--olive); }
.type-badge { background: var(--olive); color: #fff; }
.type-card p, .type-card li::before { color: var(--olive); }
.type-card:has(.hybrid) { background: var(--lime); }
.type-card:has(.sativa) { background: #DFF7CB; }
.type-badge.hybrid { background: #217A0A; }
.type-badge.sativa { background: #5A7D00; }
.type-card:has(.indica) { background: #1E4A2B; color: #fff; }
.type-card:has(.indica) h3, .type-card:has(.indica) p { color: #fff; }
.type-card:has(.indica) li::before { color: var(--lime); }
.type-card:has(.indica) .type-badge { background: var(--lime); color: var(--olive); }
.compound { background: #DFF7CB; }
.compound:has(.molecule.cbd) { background: #F1F4EC; }
.compound p, .compound small { color: var(--olive); }
.molecule, .molecule.cbd { background: var(--olive); color: var(--lime); border: 0; }
.bar span { background: var(--lime); }
.bar.cbd span { background: var(--olive); }
.compound .bar { background: rgba(255, 255, 255, 0.6); }
.compound .bar span { background: var(--olive); }

/* สรรพคุณ: บล็อกพื้นเขียวป่า การ์ดสีสด */
#benefits { background: var(--slate); }
#benefits h2 { color: #fff; }
#benefits .section-head p { color: rgba(255, 255, 255, 0.8); }
.benefit { background: #fff; }
.benefit p { color: var(--olive); }
.benefit::after { background: radial-gradient(circle, rgba(255, 255, 255, 0.7), transparent 70%); }
#benefits .disclaimer {
  background: var(--olive); border: 2px solid var(--lime);
  color: rgba(255, 255, 255, 0.85);
}
#benefits .disclaimer strong { color: var(--lime); }

/* กฎหมาย: บล็อกพื้นฟ้าอ่อน การ์ดขาวแถบสี */
#care { background: var(--sky); }
#care .care-copy > p, #care .care-note { color: var(--olive); }
.visitor-pass { background: var(--olive); }
.care-card { background: #fff; border-left: 12px solid var(--care); }
.care-card::before { -webkit-text-stroke: 0; color: var(--olive); left: 22px; }

/* ติดต่อ + หน้ารายละเอียดสินค้า */
.contact-art { box-shadow: 14px 14px 0 var(--rose); }
.contact-details { border-top-width: 2px; }
.pills.help span { background: var(--sky); }
.pd-card:nth-child(4n + 1) { background: color-mix(in srgb, var(--cyan) 35%, #fff); }
.pd-card:nth-child(4n + 2) { background: color-mix(in srgb, var(--pink) 45%, #fff); }
.pd-card:nth-child(4n + 3) { background: color-mix(in srgb, var(--lime) 45%, #fff); }
.pd-card:nth-child(4n + 4) { background: var(--slate-soft); }


/* =========================================================
   Hover: บล็อกสี (--pop-c, ปกติเขียวเข้ม --lime-d) โผล่ออกมาจากด้านหลัง
   ใช้ box-shadow (อยู่หลังบล็อกเสมอ) + translate (แยกจาก transform ของ reveal)
   ========================================================= */
.feature, .product, .type-card, .benefit, .pd-card, .pager-link, .compound, .pd-specs div,
.blog-card, .blog-featured, .branch-card, .care-card, .btn, .filter, .qa, .meta-pill, .branch-actions a, .back-to-top {
  --pop: 10px;
  --pop-c: var(--lime-d);
  transition:
    opacity 0.9s var(--ease) var(--d, 0ms),
    transform 0.9s var(--ease) var(--d, 0ms),
    translate 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn, .filter, .qa, .meta-pill, .branch-actions a, .pd-specs div, .back-to-top { --pop: 5px; }
.btn, .filter, .qa, .meta-pill, .branch-actions a, .pd-specs div, .back-to-top, .pd-card, .pager-link, .blog-card, .blog-featured { box-shadow: 0 0 0 var(--pop-c); }
/* การ์ดสินค้า: เงาสีเขียวสด ทั้งตอนปกติและตอน hover (ไม่แยกสีตามประเภทสายพันธุ์) */
.product { --pop-c: var(--lime); }
/* ปุ่มพื้นเข้ม: เงาตอน hover เป็นเขียวสด ไม่ใช่สีเดียวกับตัวปุ่ม */
.btn-primary { --pop-c: var(--lime); }

@media (hover: hover) {
  .feature:hover, .product:hover, .type-card:hover, .benefit:hover, .pd-card:hover,
  .pager-link:hover, .compound:hover, .pd-specs div:hover, .branch-card:hover, .care-card:hover,
  .blog-card:hover, .blog-featured:hover,
  .btn:hover, .filter:hover, .qa:hover, .meta-pill:hover, .branch-actions a:hover, .back-to-top.show:hover {
    translate: calc(var(--pop) / -2) calc(var(--pop) / -2);
    box-shadow: var(--pop) var(--pop) 0 var(--pop-c);
    border-color: var(--olive);
  }
  .btn-lime:hover { box-shadow: var(--pop) var(--pop) 0 var(--olive); }
}
.btn:active, .filter:active, .qa:active { translate: 0 0; box-shadow: 0 0 0 var(--pop-c); }
.age-actions .btn:active { translate: 2px 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-left, .reveal-right, .reveal-zoom { opacity: 1; transform: none; }
  .bar span { width: var(--w); }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 1380px) {
  .section-rail { display: flex; }
  .status-rail { display: flex; }
}
@media (max-width: 1024px) {
  .features, .benefits, .pd-cards { grid-template-columns: repeat(2, 1fr); }
  .types { grid-template-columns: 1fr; }
  .branch-grid { grid-template-columns: 1fr 1fr; }
  /* จอแคบ: ข้อความ quote + ปุ่มเลือกสาขา (เรียงเป็นแถว) อยู่เหนือจอวิดีโอ */
  .video-stage { grid-template-columns: 1fr; gap: 22px; }
  .video-side { gap: 22px; }
  .video-tabs { grid-template-columns: repeat(3, 1fr); }
  .video-tab { padding: 12px 14px; }
  .vt-play { display: none; }
  .care-layout, .contact-layout { grid-template-columns: 1fr; }
  .care-copy { position: static; }
  .contact-art { max-width: 460px; width: 100%; margin-inline: auto; }
  /* จอแคบ: ซ่อนนาฬิกา ให้เมนูบนแถบมีที่พอ */
  .top-nav + .quick-actions .time-chip { display: none; }
  .top-nav a { padding: 7px 10px; font-size: 0.95rem; }
}
@media (max-width: 860px) {
  /* มือถือ: ซ่อนเมนูบนแถบ (ใช้แถบปุ่มด้านล่างแทน) แล้วแสดงนาฬิกากลับมา */
  .top-nav { display: none; }
  .top-nav + .quick-actions { margin-left: auto; }
  .top-nav + .quick-actions .time-chip { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-object { max-width: 440px; width: 100%; margin-inline: auto; }
  .split-head { grid-template-columns: 1fr; gap: 16px; }
  .compounds, .pd-grid, .branch-grid { grid-template-columns: 1fr; }
  .branch-card { --media-h: 300px; }
  .lb-prev, .lb-next { top: auto; bottom: 14px; translate: none; }
  .pd-grid { gap: 36px; }
  .pd-visual { max-width: 420px; width: 100%; margin-inline: auto; }
  .pd-hero { padding-top: 110px; }
  .section { padding: 80px 0; }
  .qa { display: none; }
  .blog-auth .qa { display: block; padding: 7px 12px; font-size: 0.9rem; }
  .blog-auth .qa.is-admin, .blog-auth .qa.is-member { display: grid; padding: 0; }
  .scroll-joint, .back-to-top { display: none; }
  .mobile-actions { display: grid; }
  .offer-pop { bottom: 84px; left: 12px; width: calc(100% - 24px); }
  body { padding-bottom: 76px; }
}
@media (max-width: 560px) {
  .features, .benefits, .pd-cards, .pager { grid-template-columns: 1fr; }
  .pager-link.next { text-align: left; }
  .branch-card { --media-h: 240px; }
  .video-tabs { grid-template-columns: 1fr; gap: 10px; }
  .vt-play { display: grid; }   /* มือถือ: ปุ่มเลือกสาขาเรียงแถวละปุ่ม มีที่พอให้แสดงไอคอนเล่น */
  /* มือถือ: จอวิดีโอเป็นแนวตั้ง 9:16 · ไฟล์วิดีโอเป็น 1920x1080 ที่มีภาพแนวตั้งอยู่ตรงกลางและแถบดำสองข้าง
     object-fit: cover จึงตัดแถบดำออกพอดี · จำกัดความกว้างให้ทั้งจอวิดีโอ + แถบชื่อสาขาอยู่ในหน้าจอเดียว */
  .video-player { box-shadow: 6px 6px 0 var(--rose); width: 100%; max-width: calc((100svh - 230px) * 9 / 16); margin-inline: auto; }
  /* มือถือ: เรียงเป็น ปุ่มเลือกสาขา → จอวิดีโอ → ข้อความ quote (ย้ายลงมาอยู่ใต้วิดีโอ) */
  .video-side { display: contents; }
  .video-quote { order: 1; margin-top: 14px; }
  .video-screen { aspect-ratio: 9 / 16; }
  .video-screen video { object-fit: cover; }
  .video-caption { flex-wrap: wrap; padding: 14px 16px; }
  .vc-no { font-size: 2rem; }
  .time-chip span { display: none; }
  /* จอแคบ: ซ่อนนาฬิกาในแถบที่มีปุ่มล็อกอิน ให้ปุ่มไม่ล้นขอบ */
  .quick-actions:has(.blog-auth) .time-chip { display: none; }
  .care-card { padding: 20px 20px 20px 76px; }
  .care-card::before { left: 18px; font-size: 1.8rem; }
  .age-stamp { width: 84px; height: 84px; }
  .age-stamp strong { font-size: 1.6rem; }
  .contact-details div { grid-template-columns: 70px 1fr; }
}

/* ---------- มือถือ: การ์ดสินค้าเลื่อนไปทางขวา (จอใหญ่กว่านี้เรียงเป็นตารางเลื่อนลงตามเดิม) ---------- */
@media (max-width: 640px) {
  .products {
    display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 20px; -webkit-overflow-scrolling: touch;
    /* ขยายออกจนชิดขอบจอ การ์ดถัดไปจึงโผล่ให้เห็นว่าเลื่อนต่อได้ */
    margin-inline: -20px; padding: 6px 20px 18px;
    scrollbar-width: none;
  }
  .products::-webkit-scrollbar { display: none; }
  .products .product { flex: 0 0 82%; max-width: 340px; scroll-snap-align: start; }
}
