/* =========================================================================
   TriplebLab Shop — ร้านไม้หายากจากการเพาะเลี้ยงเนื้อเยื่อ (mobile-first)

   โทนขาวสะอาดแบบห้องแล็บ ตัดด้วยเขียวใบไม้เข้ม ให้รูปต้นไม้เป็นพระเอก
   ใบด่างครีม (--variegate) เป็นสีรองที่ใช้ในภาพประกอบและป้ายเล็ก ๆ
   ========================================================================= */

:root {
  --bg: #ffffff;
  --surface: #f4f6f2;
  --surface-2: #eaeee6;
  --card: #ffffff;
  --ink: #14211b;
  --muted: #5d6b63;
  --line: #e2e7df;
  --deep: #16352a;
  --deep-2: #1f4636;
  --deep-ink: #f2f6ef;
  --leaf: #2f6b4a;
  --leaf-ink: #ffffff;
  --leaf-soft: #e3efe6;
  --variegate: #efe8cf;
  --sale: #c2412d;
  --warn: #9a6a12;
  --warn-soft: #fbf0d6;
  --shadow: 0 1px 2px rgba(20, 33, 27, 0.06), 0 12px 32px -20px rgba(20, 33, 27, 0.35);
  --radius: 14px;
  --display: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    --bg: #0e1512;
    --surface: #141d19;
    --surface-2: #1b2621;
    --card: #141d19;
    --ink: #e7eee9;
    --muted: #9aaba1;
    --line: #26332d;
    --deep: #0b201a;
    --deep-2: #12302a;
    --deep-ink: #e7eee9;
    --leaf: #8fd1a4;
    --leaf-ink: #0b1f15;
    --leaf-soft: #1b2d24;
    --variegate: #3a3a2c;
    --sale: #f08a73;
    --warn: #f0c066;
    --warn-soft: #2e2716;
    --shadow: 0 12px 32px -20px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root:where([data-theme="dark"]) {
    --bg: #0e1512;
    --surface: #141d19;
    --surface-2: #1b2621;
    --card: #141d19;
    --ink: #e7eee9;
    --muted: #9aaba1;
    --line: #26332d;
    --deep: #0b201a;
    --deep-2: #12302a;
    --deep-ink: #e7eee9;
    --leaf: #8fd1a4;
    --leaf-ink: #0b1f15;
    --leaf-soft: #1b2d24;
    --variegate: #3a3a2c;
    --sale: #f08a73;
    --warn: #f0c066;
    --warn-soft: #2e2716;
    --shadow: 0 12px 32px -20px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
em { font-style: italic; }

.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.2em;
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* --- แถบประกาศ + แถบบน ------------------------------------------------------- */

.announce {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 16px;
  background: var(--deep);
  color: var(--deep-ink);
  font-size: 0.85rem;
  text-align: center;
}
.announce a { font-weight: 600; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
.announce a:hover { text-decoration: underline; }
@media (max-width: 560px) { .hide-sm { display: none; } }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 860px) { .top { grid-template-columns: 1fr auto 1fr; padding: 12px 32px; } }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--deep);
  color: #b9e3c4;
}
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.05; display: grid; }
.brand-name small { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

.main-nav { display: none; gap: 28px; }
.main-nav a { text-decoration: none; font-weight: 500; }
.main-nav a:hover { color: var(--leaf); }
@media (min-width: 860px) { .main-nav { display: flex; } }

.top-tools { display: flex; justify-content: flex-end; gap: 4px; }
.tool {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  text-decoration: none;
}
.tool:hover { background: var(--surface); }
.tool .ico { width: 1.35em; height: 1.35em; }

.badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 1.4em;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--leaf);
  color: var(--leaf-ink);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4em;
  text-align: center;
}

/* --- hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 28px;
  padding: 44px 16px 36px;
  background:
    radial-gradient(70% 60% at 85% 20%, rgba(185, 227, 196, 0.18), transparent 70%),
    linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 100%);
  color: var(--deep-ink);
}
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.1fr 1fr; align-items: center; padding: 72px max(32px, calc((100vw - var(--page-w)) / 2)); }
}
.hero .eyebrow { color: #b9e3c4; }
.hero h1 { margin: 10px 0 14px; font-size: clamp(2.1rem, 7.5vw, 3.8rem); max-width: 12em; }
.hero h1 em { color: #b9e3c4; }
.hero .lead { margin: 0 0 24px; max-width: 34em; color: color-mix(in srgb, var(--deep-ink) 78%, transparent); font-size: 1.05rem; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ขวดเพาะเลี้ยงสามใบ มีใบด่างอยู่ข้างใน */
.hero-art { display: flex; justify-content: center; align-items: flex-end; gap: 14px; min-height: 220px; }
.jar {
  position: relative;
  width: 34%;
  max-width: 170px;
  aspect-ratio: 3 / 4;
  border-radius: 26px 26px 18px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 -26px 0 rgba(239, 232, 207, 0.22);
  display: grid;
  place-items: center;
  padding: 12px;
}
.jar::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 18%;
  right: 18%;
  height: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.28);
}
.jar-2 { width: 40%; max-width: 200px; transform: translateY(-14px); }
.jar-3 { width: 30%; max-width: 150px; }
.jar .leaf-art { width: 100%; height: auto; }

/* --- ตัวหน้า --------------------------------------------------------------- */

main { max-width: var(--page-w); margin: 0 auto; padding: 24px 16px 56px; }
@media (min-width: 860px) { main { padding: 32px 32px 72px; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--leaf);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h1, .section-head h2 { margin: 6px 0 16px; font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
.section-head.row { display: grid; gap: 4px; align-items: end; }
@media (min-width: 760px) { .section-head.row { grid-template-columns: 1fr minmax(260px, 340px); gap: 24px; } }

.flash {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.flash.ok { border-left: 4px solid var(--leaf); }
.flash.ok .ico { color: var(--leaf); }
.flash.err { border-left: 4px solid var(--sale); color: var(--sale); }
.flash.err ul { margin: 0; padding-left: 1.2em; }

/* ทางลัดหมวดสินค้า */
.collections { display: grid; gap: 12px; margin: 8px 0 44px; }
@media (min-width: 720px) { .collections { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.collection {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  min-height: 150px;
  padding: 18px;
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--leaf-soft);
  isolation: isolate;
  transition: transform 0.2s ease;
}
.collection:hover { transform: translateY(-3px); }
.collection.c-1 { background: var(--variegate); }
.collection.c-2 { background: var(--surface-2); }
.collection-art { position: absolute; right: -24px; top: -18px; width: 170px; z-index: -1; opacity: 0.95; }
.collection-name { font-family: var(--display); font-size: 1.35rem; font-weight: 600; grid-column: 1 / -1; }
.collection-go { font-size: 0.88rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; color: var(--leaf); }

/* ค้นหา + หมวด */
.shop { scroll-margin-top: 80px; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 16px;
}
.search .ico { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; font: inherit; color: inherit; outline: none; }
.search:focus-within { border-color: var(--leaf); box-shadow: 0 0 0 3px color-mix(in srgb, var(--leaf) 20%, transparent); }

input[type="number"] {
  font: inherit;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px;
  width: 5.5em;
}
.btn:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--leaf) 50%, transparent);
  outline-offset: 2px;
}

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 20px; scrollbar-width: none; }
.chips a {
  flex: none;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.chips a:hover { border-color: var(--leaf); }
.chips a.on { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* --- การ์ดสินค้า ------------------------------------------------------------ */

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 14px;
}
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card-media { position: relative; border-radius: var(--radius); overflow: hidden; }
.card.is-out .thumb { filter: grayscale(0.7); opacity: 0.7; }
.card-body { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-cat { margin: 0; font-size: 0.72rem; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.card h3 { margin: 0; font-family: var(--sans); font-size: 0.98rem; font-weight: 600; line-height: 1.35; }
.card a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.card-foot { margin: 4px 0 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }

.corner {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.corner-out { background: var(--ink); color: var(--bg); }
.corner-sale { background: var(--sale); color: #fff; }
.corner-low { background: var(--warn-soft); color: var(--warn); }

.sci { margin: 0; font-family: var(--display); font-style: italic; color: var(--muted); font-size: 0.9rem; }

.thumb {
  aspect-ratio: 1;
  background:
    radial-gradient(70% 70% at 50% 40%, var(--leaf-soft), transparent 75%),
    var(--surface);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card a:hover .thumb img { transform: scale(1.04); }
.thumb .leaf-art { width: 78%; height: 78%; transition: transform 0.5s ease; }
.card a:hover .thumb .leaf-art { transform: rotate(-4deg) scale(1.03); }

/* ใบมอนสเตอร่า (แทนรูปที่ยังไม่มี) */
.leaf-art { --slit: var(--surface); }
.leaf-art .blade { fill: #2f6b4a; }
.leaf-art .splash { fill: #efe8cf; }
.leaf-art .vein { fill: none; stroke: rgba(255, 255, 255, 0.35); stroke-width: 3; stroke-linecap: round; }
.leaf-art .slit { fill: none; stroke: var(--slit); stroke-width: 7; stroke-linecap: round; }
.leaf-art .stem { fill: none; stroke: #4f7f5c; stroke-width: 5; stroke-linecap: round; }
.leaf-art.tone-1 .blade { fill: #3d7a52; }
.leaf-art.tone-1 .splash { fill: #f6f1de; }
.leaf-art.tone-2 .blade { fill: #24533c; }
.leaf-art.tone-3 .blade { fill: #4c8a5c; }
.leaf-art.tone-3 .splash { fill: #dfe9c9; }
/* รอยแหว่งของใบต้องเป็นสีเดียวกับพื้นหลังที่ใบวางอยู่ */
.empty .leaf-art { --slit: var(--bg); }
.collection .leaf-art { --slit: var(--leaf-soft); }
.collection.c-1 .leaf-art { --slit: var(--variegate); }
.collection.c-2 .leaf-art { --slit: var(--surface-2); }
.jar .leaf-art { --slit: #234a3a; }
.jar-2 .leaf-art { --slit: #26503f; }

.price { font-weight: 700; font-size: 1rem; }
.price.on-sale { color: var(--sale); }
.was { color: var(--muted); font-size: 0.88em; }

.empty { text-align: center; padding: 28px 0 44px; color: var(--muted); }
.empty .leaf-art { width: 130px; height: 130px; margin: 0 auto; }
.empty h1 { color: var(--ink); margin: 10px 0; }

/* --- Inside the lab --------------------------------------------------------- */

.lab {
  scroll-margin-top: 80px;
  margin-top: 64px;
  display: grid;
  gap: 24px;
  padding: 28px 20px;
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
}
@media (min-width: 860px) { .lab { grid-template-columns: 1fr 1.2fr; padding: 44px; gap: 44px; align-items: center; } }
.lab h2 { margin: 8px 0 12px; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.lab-copy p:last-child { color: var(--muted); margin: 0; }
.lab-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 560px) { .lab-steps { grid-template-columns: 1fr 1fr; } }
.lab-steps li {
  display: grid;
  gap: 2px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
.lab-steps span { font-family: var(--display); color: var(--leaf); font-size: 1.3rem; font-weight: 600; }
.lab-steps em { font-style: normal; color: var(--muted); font-size: 0.9rem; }

/* --- จุดเด่นของร้าน ---------------------------------------------------------- */

.promise {
  scroll-margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 28px;
}
@media (min-width: 860px) { .promise { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.promise div { display: grid; gap: 4px; padding: 16px; border-top: 2px solid var(--leaf); }
.promise .ico { width: 28px; height: 28px; color: var(--leaf); margin-bottom: 4px; }
.promise strong { font-size: 0.98rem; }
.promise span { color: var(--muted); font-size: 0.86rem; }

/* --- ปุ่ม ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--leaf);
  background: var(--leaf);
  color: var(--leaf-ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-light { background: #f2f6ef; border-color: #f2f6ef; color: #16352a; }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: #f2f6ef; }
/* ปุ่มสั่งซื้อ (เดิมชื่อ btn-sun) ใช้สีหลักของร้าน */
.btn-sun { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-block { width: 100%; padding: 15px 22px; font-size: 1.02rem; }
.btn-google { gap: 10px; }
.btn-google .ico.g { width: 1.25em; height: 1.25em; stroke: none; }

/* ปุ่มล็อกอินสีตามแบรนด์ — ซ้อนเป็นแถว กว้างเท่ากัน โลโก้ชิดซ้าย ข้อความกลาง */
.social-buttons { display: grid; gap: 10px; width: 100%; max-width: 360px; margin: 0 auto; }
.signin-box .social-buttons { margin: 0; }
.btn-social { position: relative; width: 100%; padding: 13px 22px 13px 52px; font-weight: 600; }
.btn-social .ico { position: absolute; left: 20px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; stroke: none; }
.btn-social.btn-google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.btn-social.btn-apple { background: #000; color: #fff; border-color: #000; }
.btn-social.btn-facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.btn-social.btn-line { background: #06c755; color: #fff; border-color: #06c755; }
.signed-in .ico { width: 18px; height: 18px; stroke: none; }

/* --- หน้าสินค้า ------------------------------------------------------------ */

.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--leaf); }
.crumbs span { margin: 0 4px; }

.product { display: grid; gap: 22px; }
@media (min-width: 820px) { .product { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; } }
.gallery { display: grid; gap: 10px; }
.gallery img, .big-thumb { border-radius: calc(var(--radius) + 4px); }
.info h1 { margin: 8px 0 4px; font-size: clamp(1.7rem, 5vw, 2.5rem); }
.info .big { margin: 14px 0 4px; font-size: 1.4rem; display: flex; gap: 10px; align-items: baseline; }
.info .big .price { font-size: 1.6rem; }
.stock { font-size: 0.88rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-in { color: var(--leaf); }
.stock-low { color: var(--warn); }
.stock-out { color: var(--muted); }
.buy { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin: 18px 0; }
.buy label { display: grid; gap: 4px; font-size: 0.85rem; color: var(--muted); }
.buy .btn { flex: 1; min-width: 180px; }
.perks { list-style: none; padding: 14px 0; margin: 0 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; font-size: 0.92rem; color: var(--muted); }
.perks .ico { color: var(--leaf); margin-right: 6px; }
.field-notes h2 { margin: 0 0 6px; font-size: 1.15rem; }

/* --- ตะกร้า ---------------------------------------------------------------- */

.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lines li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  grid-template-areas: "thumb info info" "thumb qty total";
  gap: 6px 12px;
  align-items: center;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (min-width: 640px) {
  .lines li { grid-template-columns: 72px 1fr auto auto; grid-template-areas: "thumb info qty total"; }
}
.line-thumb { grid-area: thumb; }
.line-thumb .thumb { border-radius: 10px; }
.line-info { grid-area: info; display: grid; }
.line-info a { text-decoration: none; font-weight: 600; }
.lines input { grid-area: qty; }
.line-total { grid-area: total; text-align: right; }

.summary { margin-top: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); }
.sum { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 1.15rem; }
.sum strong { font-size: 1.45rem; }
.actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }

/* --- สั่งซื้อ ---------------------------------------------------------------- */

.checkout { display: grid; gap: 20px; }
@media (min-width: 860px) { .checkout { grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; } }
.checkout-form { display: grid; gap: 16px; }
.checkout-form fieldset {
  margin: 0;
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
}
.checkout-form legend { font-family: var(--display); font-weight: 600; font-size: 1.1rem; padding: 0 6px; }

.fld { display: grid; gap: 4px; font-size: 0.9rem; font-weight: 500; }
.fld em { font-weight: 400; font-style: normal; }
.fld input, .fld textarea {
  font: inherit;
  font-weight: 400;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  width: 100%;
}
.fld textarea { resize: vertical; }
.fld input:focus-visible, .fld textarea:focus-visible { border-color: var(--leaf); outline: 3px solid color-mix(in srgb, var(--leaf) 25%, transparent); outline-offset: 0; }

.signin-box, .signed-in, .how-it-works { padding: 14px 16px; border-radius: var(--radius); background: var(--surface); margin: 0; }
.signin-box p { margin: 0 0 10px; font-size: 0.92rem; }
.signed-in { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 0.92rem; }
.signed-in .ico, .how-it-works h2 .ico { color: var(--leaf); }
.how-it-works h2 { font-size: 1rem; margin: 0 0 6px; display: flex; gap: 8px; align-items: center; font-family: var(--sans); font-weight: 700; }
.how-it-works ol { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: 0.92rem; }

.order-summary { padding: 18px; border-radius: var(--radius); background: var(--surface); }
@media (min-width: 860px) { .order-summary { position: sticky; top: 90px; } }
.order-summary h2 { margin: 0 0 8px; font-size: 1.15rem; }
.order-summary ul, .order-lines { list-style: none; margin: 0 0 10px; padding: 0; }
.order-summary li, .order-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.order-summary em, .order-lines em { font-style: normal; }
.order-lines .grand { border-bottom: 0; font-size: 1.1rem; }

/* --- ติดตามออเดอร์ / ออเดอร์ของฉัน ---------------------------------------------- */

.order-card { padding: 18px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 20px; max-width: 640px; }
.ship-to h2 { font-size: 1rem; margin: 14px 0 4px; }
.ship-to p { margin: 0; color: var(--muted); }

.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 600; background: var(--warn-soft); color: var(--warn); }
.pill-paid, .pill-shipped { background: var(--leaf-soft); color: var(--leaf); }
.pill-cancelled { background: var(--surface-2); color: var(--muted); }

.my-orders { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.my-orders a { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; }
.my-orders a > span:first-child { display: grid; }
@media (min-width: 640px) { .my-orders a { grid-template-columns: 1fr auto auto; } }

.signin { max-width: 440px; margin: 0 auto; }

/* --- ท้ายเว็บ --------------------------------------------------------------- */

.foot { background: var(--deep); color: var(--deep-ink); padding: 40px 16px 24px; }
.foot-grid { max-width: var(--page-w); margin: 0 auto; display: grid; gap: 24px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; padding: 0 16px; } }
.foot h3 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; color: #b9e3c4; }
.foot a { display: block; text-decoration: none; padding: 3px 0; color: color-mix(in srgb, var(--deep-ink) 85%, transparent); }
.foot a:hover { color: #fff; }
.foot .muted { color: color-mix(in srgb, var(--deep-ink) 65%, transparent); max-width: 30em; }
.foot-brand { font-family: var(--display); font-size: 1.3rem; font-weight: 600; margin: 0 0 6px; }
.foot-bar { max-width: var(--page-w); margin: 28px auto 0; padding: 16px 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.foot-legal { margin: 0; font-size: 0.82rem; color: color-mix(in srgb, var(--deep-ink) 60%, transparent); }
.foot .foot-region { display: inline-flex; align-items: center; gap: 6px; padding: 0; font-size: 0.82rem; }
.foot-region .ico { width: 16px; height: 16px; }
.pay-icons { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pay-icons li { display: flex; line-height: 0; }
.pay-icons svg { display: block; width: 38px; height: 24px; border-radius: 3.5px; }
@media (max-width: 719px) {
  .foot-bar { flex-direction: column; align-items: flex-start; padding: 16px 0 0; }
  .pay-icons { margin: 4px 0 0; gap: 6px; }
}

/* มือถือ: หมวดสินค้าเลื่อนข้างแทนการเรียงลงยาว ๆ */
@media (max-width: 719px) {
  .collections { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-bottom: 32px; }
  .collection { flex: 0 0 72%; min-height: 116px; scroll-snap-align: start; }
  .collection-art { width: 130px; }
  .hero-art { min-height: 160px; }
}

/* --- คูปองส่วนลด ------------------------------------------------------------- */

.coupon-box { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.coupon-box .fld { flex: 1 1 180px; }
.coupon-box .fld input { text-transform: uppercase; }
.coupon-on { margin: 0; flex: 1; display: flex; align-items: center; gap: 6px; }
.coupon-err { color: #b3261e; margin: -6px 0 12px; }
.link-btn { background: none; border: 0; padding: 4px 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; }
.sum + .sum { margin-top: 6px; }
.sum-discount { color: var(--leaf); font-size: 1rem; }
.sum-discount strong { font-size: 1.1rem; }
.order-summary .sum { font-size: 1rem; }
.order-summary .sum strong { font-size: 1.15rem; }

/* --- หน้าแรกแบบ A: hero รูปเต็มจอ + ปุ่มหมวดชนิดต้นไม้ (2026-11-05) ------------ */

/* แถบประกาศบรรทัดเดียวเสมอ ยาวเกินก็ตัดด้วย … แทนการขึ้นบรรทัดใหม่ */
.announce { flex-wrap: nowrap; white-space: nowrap; }
.announce > span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.hero.hero-photo {
  display: flex;
  align-items: flex-end;
  min-height: min(440px, 62vh);
  padding: 0;
  background: var(--surface-2);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  background: radial-gradient(70% 60% at 50% 30%, #eef1ea, #cdd6c7);
}
.hero-fallback .leaf-art { --slit: #dfe5da; width: min(58%, 340px); height: auto; transform: translateY(-22%) rotate(-8deg); }
.hero-photo .hero-copy {
  position: relative;
  width: 100%;
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 110px 20px 24px;
  background: linear-gradient(180deg, transparent, rgba(16, 40, 30, 0.86) 48%);
  color: #fff;
}
.hero-photo h1 { margin: 0; font-size: clamp(2.2rem, 9vw, 4rem); line-height: 1.04; }
@media (min-width: 860px) {
  .hero.hero-photo { min-height: 560px; grid-template-columns: none; }
  .hero-photo .hero-copy { padding: 160px max(32px, calc((100vw - var(--page-w)) / 2)) 48px; }
}

/* ปุ่มหมวดชนิดต้นไม้เป็นรูปวงกลม เลื่อนซ้าย-ขวาได้บนมือถือ */
.kinds {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -16px 28px;
  padding: 2px 16px 6px;
  scroll-snap-type: x proximity;
}
.kinds::-webkit-scrollbar { display: none; }
.kind {
  flex: none;
  width: 82px;
  display: grid;
  justify-items: center;
  gap: 7px;
  text-decoration: none;
  scroll-snap-align: start;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}
.kind-pic {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(70% 70% at 50% 40%, var(--leaf-soft), var(--surface));
  border: 2px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.kind-pic img { width: 100%; height: 100%; object-fit: cover; }
.kind-pic .leaf-art { width: 72%; height: 72%; --slit: var(--leaf-soft); }
.kind:hover .kind-pic { border-color: var(--leaf); transform: translateY(-2px); }
.kind-name { line-height: 1.2; overflow-wrap: anywhere; }
@media (min-width: 860px) { .kinds { margin: 0 0 40px; padding: 2px 0 6px; gap: 18px; } .kind { width: 104px; } .kind-pic { width: 92px; height: 92px; } }
@media (max-width: 560px) { .announce a { display: none; } }
.section-head.compact { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-head.compact h2 { margin: 0; }
.see-all { display: inline-flex; gap: 6px; align-items: center; font-size: 0.9rem; font-weight: 600; color: var(--leaf); text-decoration: none; }
.see-all .ico { width: 16px; height: 16px; }

/* --- ประเทศที่ส่งได้ (แถบธงท้ายเว็บ + หน้า /shipping) ------------------------- */

.ship-strip { border-top: 1px solid var(--line); background: var(--bg); padding: 28px 0 32px; }
.ship-strip-head { max-width: var(--page-w); margin: 0 auto 14px; padding: 0 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ship-strip-head h2 { margin: 0; font-size: clamp(1.3rem, 4vw, 1.8rem); }
.ship-rail { position: relative; max-width: var(--page-w); margin: 0 auto; }
.ship-flags {
  list-style: none; margin: 0; padding: 4px 16px 8px;
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: none; overscroll-behavior-x: contain; scroll-padding-inline: 16px;
  /* เลื่อนได้แค่ซ้าย-ขวา (KB 2026-11-12): กันแถบดิ้นขึ้นลงบน iPhone */
  overflow-y: hidden; touch-action: pan-x pan-y;
}
.ship-flags::-webkit-scrollbar { display: none; }
.ship-flags li { flex: 0 0 auto; scroll-snap-align: start; }
.ship-flags a { display: grid; justify-items: center; gap: 8px; width: 84px; text-decoration: none; color: var(--ink); font-size: 0.82rem; font-weight: 500; text-align: center; }
.flag { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px rgba(20, 33, 27, 0.1), 0 4px 10px -6px rgba(20, 33, 27, 0.5); background: var(--surface); }
.ship-flags a:hover .flag { transform: translateY(-2px); }
.flag { transition: transform 0.15s ease; }
@media (min-width: 860px) {
  .ship-flags { gap: 20px; padding: 4px 56px 8px; scroll-padding-inline: 56px; }
  .ship-flags a { width: 104px; }
  .ship-flags .flag { width: 96px; height: 72px; }
}
.ship-nav {
  position: absolute; top: 22px; z-index: 1; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: var(--shadow);
  font-size: 1.4rem; line-height: 1; cursor: pointer; display: none;
}
.ship-nav.prev { left: 8px; }
.ship-nav.next { right: 8px; }
.ship-nav:disabled { visibility: hidden; }
@media (min-width: 860px) { .ship-nav:not([hidden]) { display: grid; place-items: center; } }

.ship-page { max-width: 820px; margin: 0 auto; }
.ship-page h1 { margin: 6px 0 16px; font-size: clamp(1.7rem, 5vw, 2.5rem); }
.ship-page .back { display: inline-block; margin-bottom: 16px; color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.ship-basics { margin: 0 0 24px; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink); line-height: 1.55; }
.ship-grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ship-grid a { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; color: var(--ink); height: 100%; }
.ship-grid a:hover { border-color: var(--leaf); }
.ship-grid .flag { margin-bottom: 6px; }
.ship-grid span { font-size: 0.85rem; color: var(--muted); }
.ship-title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.ship-title h1 { margin: 2px 0 0; }
.flag-lg { width: 64px; height: 48px; }
.ship-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.ship-card h2 { margin: 0 0 6px; font-size: 1.15rem; }
.ship-price { margin: 0 0 12px; }
.ship-price strong { font-size: 1.5rem; font-family: var(--display); }
.ship-price span { color: var(--muted); }
.ship-facts { margin: 0; display: grid; gap: 10px; }
.ship-facts div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.ship-facts dt { color: var(--muted); font-size: 0.88rem; }
.ship-facts dd { margin: 0; }
.ship-note { padding: 14px 16px; border-radius: var(--radius); background: var(--warn-soft); color: var(--ink); line-height: 1.5; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =========================================================================
   ธีม "Lab Green" (KB ขอ 2026-11-10 โดยอ้างอิงสไตล์ seed.com จาก Mobbin)

   ยืมแนวทาง ไม่ได้ยกของเขามา: พื้นครีมอมเขียว เขียวป่าเข้ม จุดเน้นสีเขียวมะนาว
   การ์ดมุมมนใหญ่ ปุ่มแคปซูล เมนูลอยแบบกระจก ตัวหนังสือ grotesk น้ำหนักบาง
   และแอนิเมชันค่อย ๆ ลอยขึ้นตอนเลื่อนถึง — โลโก้ รูป และข้อความเป็นของเราเอง
   ชั้นนี้วางทับสไตล์เดิมทั้งหมด จะถอยกลับก็ลบตั้งแต่บรรทัดนี้ลงไป
   ========================================================================= */

:root {
  --bg: #f6f7ee;
  --surface: #eceee2;
  --surface-2: #e3e7d6;
  --card: #eef0e5;
  --ink: #17251a;
  --muted: #5b6858;
  --line: #dde2d0;
  --deep: #1d3a1f;
  --deep-2: #24462a;
  --deep-ink: #f1f4e8;
  --leaf: #1d3a1f;
  --leaf-ink: #f6f7ee;
  --leaf-soft: #e1ecd2;
  --lime: #d6f39c;
  --lime-ink: #1d3a1f;
  --variegate: #e9ead8;
  --radius: 20px;
  --display: "Inter Tight", "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(23, 37, 26, 0.05), 0 18px 40px -28px rgba(23, 37, 26, 0.45);
}
@media (prefers-color-scheme: dark) {
  :root:where(:not([data-theme="light"])) {
    --bg: #0f1711;
    --surface: #162119;
    --surface-2: #1c2a20;
    --card: #17221a;
    --ink: #e8eee3;
    --muted: #9eac9b;
    --line: #26342a;
    --deep: #0b150d;
    --deep-2: #132317;
    --leaf: #d6f39c;
    --leaf-ink: #142616;
    --leaf-soft: #1f2e1f;
    --lime-ink: #142616;
    --variegate: #222c20;
  }
}
:root:where([data-theme="dark"]) {
    --bg: #0f1711;
    --surface: #162119;
    --surface-2: #1c2a20;
    --card: #17221a;
    --ink: #e8eee3;
    --muted: #9eac9b;
    --line: #26342a;
    --deep: #0b150d;
    --deep-2: #132317;
    --leaf: #d6f39c;
    --leaf-ink: #142616;
    --leaf-soft: #1f2e1f;
    --lime-ink: #142616;
    --variegate: #222c20;
  }

body { background: var(--bg); }
h1, h2, h3, .brand-name, .foot-brand, .collection-name {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.025em;
}
h1 { line-height: 1.04; }
.sci { font-family: var(--sans); font-style: italic; }

/* --- เมนูลอยแบบแคปซูลกระจก ---------------------------------------------------- */

.announce { background: var(--lime); color: var(--lime-ink); }
.announce .ico { color: var(--lime-ink); }

.top {
  margin: 10px 10px 0;
  padding: 6px 8px 6px 14px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 10px 30px -22px rgba(23, 37, 26, 0.5);
  top: 10px;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), margin 0.35s var(--ease);
}
.top.is-scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); box-shadow: 0 14px 34px -20px rgba(23, 37, 26, 0.55); }
@media (min-width: 860px) { .top { margin: 12px auto 0; max-width: calc(var(--page-w) + 20px); padding: 8px 10px 8px 22px; } }
.brand-mark { border-radius: 50%; background: var(--deep); color: var(--lime); }
.brand-name { font-size: 1.25rem; }
.main-nav a { position: relative; font-weight: 500; font-size: 0.95rem; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.main-nav a:hover { color: inherit; }
.main-nav a:hover::after { transform: scaleX(1); }
.tool { border-radius: 999px; transition: background 0.2s ease, transform 0.2s var(--ease); }
.tool:hover { transform: translateY(-1px); }
.badge { background: var(--lime); color: var(--lime-ink); }

/* --- hero: การ์ดมุมมนใหญ่ลอยอยู่บนพื้นครีม ------------------------------------- */

.hero.hero-photo {
  margin: 10px 10px 0;
  border-radius: 28px;
  overflow: hidden;
}
@media (min-width: 860px) { .hero.hero-photo { margin: 14px auto 0; max-width: calc(var(--page-w) + 20px); } }
.hero-media img { transform: scale(1.06); animation: heroZoom 1.6s var(--ease) forwards; }
.hero-photo h1 { font-weight: 300; letter-spacing: -0.035em; }
.hero-photo h1 em { font-style: normal; font-weight: 400; color: var(--lime); }
.hero .eyebrow { color: var(--lime); }
.hero-copy > * { opacity: 0; transform: translateY(18px); animation: riseIn 0.9s var(--ease) forwards; }
.hero-copy > :nth-child(2) { animation-delay: 0.12s; }
.hero-copy > :nth-child(3) { animation-delay: 0.24s; }
@keyframes riseIn { to { opacity: 1; transform: none; } }
@keyframes heroZoom { to { transform: scale(1); } }

/* --- ปุ่มแคปซูล ------------------------------------------------------------ */

.btn {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--deep-ink);
  font-weight: 500;
  padding: 13px 24px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:hover { filter: none; transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(23, 37, 26, 0.8); }
.btn .ico { transition: transform 0.3s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-light { background: var(--bg); border-color: var(--bg); color: var(--deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-sun { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-theme="light"])) .btn { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
  :where(:root:not([data-theme="light"])) .btn-light { background: var(--bg); border-color: var(--bg); color: var(--ink); }
}
:where(:root[data-theme="dark"]) .btn { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
:where(:root[data-theme="dark"]) .btn-light { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.see-all {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}
.see-all .ico { transition: transform 0.3s var(--ease); }
.see-all:hover .ico { transform: translateX(3px); }

/* --- หมวดต้นไม้ (วงกลม) ------------------------------------------------------- */

.kind-pic { transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); background: var(--card); }
.kind:hover .kind-pic { transform: translateY(-4px) scale(1.03); box-shadow: 0 16px 28px -20px rgba(23, 37, 26, 0.6); }

/* --- การ์ดสินค้า: กล่องพื้นเขียวอ่อนมุมมน ---------------------------------------- */

.section-head h2 { font-size: clamp(1.8rem, 5.5vw, 2.8rem); }
.grid { gap: 12px; }
.card a {
  background: var(--card);
  border-radius: var(--radius);
  padding: 8px 8px 14px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.3s ease;
}
.card a:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: color-mix(in srgb, var(--card) 70%, var(--bg)); }
.card a:hover h3 { text-decoration: none; }
.card-media { border-radius: calc(var(--radius) - 6px); }
.card-body { padding: 12px 6px 0; }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 1.02rem; letter-spacing: -0.01em; }
.thumb { background: color-mix(in srgb, var(--surface-2) 70%, var(--bg)); }
.thumb img, .thumb .leaf-art { transition: transform 0.8s var(--ease); }
.card a:hover .thumb img { transform: scale(1.06); }
.corner { border-radius: 999px; font-weight: 600; }
.corner-sale { background: var(--lime); color: var(--lime-ink); }
.price.on-sale { color: var(--ink); }
.chips a { border-radius: 999px; }
.chips a.on { background: var(--deep); border-color: var(--deep); color: var(--deep-ink); }

/* --- ส่วน "Inside the lab" กลายเป็นแผงเขียวเข้มเต็มกว้าง ------------------------- */

.lab {
  background: var(--deep);
  color: var(--deep-ink);
  border-radius: 28px;
  padding: 32px 20px;
  border: 0;
}
@media (min-width: 860px) { .lab { padding: 56px 48px; } }
.lab .eyebrow { color: var(--lime); }
.lab-copy p:last-child { color: color-mix(in srgb, var(--deep-ink) 72%, transparent); }
.lab-steps li {
  background: color-mix(in srgb, #fff 7%, transparent);
  border: 1px solid color-mix(in srgb, #fff 10%, transparent);
  border-radius: 18px;
  transition: transform 0.45s var(--ease), background 0.3s ease;
}
.lab-steps li:hover { transform: translateY(-3px); background: color-mix(in srgb, #fff 11%, transparent); }
.lab-steps span { font-family: var(--display); color: var(--lime); font-weight: 400; }
.lab-steps em { color: color-mix(in srgb, var(--deep-ink) 65%, transparent); }

.promise div { border-top: 0; background: var(--card); border-radius: 18px; }
.promise .ico { color: var(--deep); }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) .promise .ico { color: var(--lime); } }
:where(:root[data-theme="dark"]) .promise .ico { color: var(--lime); }

/* --- หน้าอื่น ๆ ---------------------------------------------------------------- */

.summary, .order-summary, .signin-box, .signed-in, .how-it-works { border-radius: var(--radius); background: var(--card); }
.checkout-form fieldset, .order-card, .ship-card, .ship-grid a { border-radius: var(--radius); }
.fld input, .fld textarea, .search { border-radius: 14px; }
.gallery img, .big-thumb { border-radius: 24px; }
.stock-in { color: #3f7d2e; }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) .stock-in { color: var(--lime); } }
:where(:root[data-theme="dark"]) .stock-in { color: var(--lime); }
.pill-paid, .pill-shipped { background: var(--lime); color: var(--lime-ink); }
.ship-note { border-radius: var(--radius); }

/* --- footer: แผงเขียวเข้มมุมมนด้านบน ----------------------------------------------- */

.ship-strip { border-top: 0; }
.foot { border-radius: 28px 28px 0 0; padding-top: 48px; }
.foot-brand { font-size: 1.6rem; }
.foot h3 { color: var(--lime); font-weight: 500; }
.foot a { position: relative; width: fit-content; }
.foot a:hover { color: var(--lime); }

/* --- แอนิเมชันตอนเลื่อนถึง (app script ใส่ .reveal / .in) --------------------------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-copy > *, .reveal { opacity: 1 !important; transform: none !important; }
  .hero-media img { transform: none; }
}

/* --- สกุลเงิน (แปลงจากบาทด้วยเรทแบงค์ชาติ) --- */
.cur-menu { position: relative; display: inline-block; }
.cur-menu > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; line-height: 1;
  padding: 7px 10px 7px 8px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cur-menu > summary::-webkit-details-marker { display: none; }
.cur-menu > summary:hover, .cur-menu[open] > summary { border-color: color-mix(in srgb, currentColor 40%, transparent); background: color-mix(in srgb, currentColor 6%, transparent); }
.cur-menu > summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.cur-flag { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.cur-caret { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; opacity: 0.6; transition: transform 0.2s ease; }
.cur-menu[open] .cur-caret { transform: rotate(180deg); }
.cur-sym { opacity: 0.7; font-weight: 500; }
.cur-lead { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; color: color-mix(in srgb, var(--deep-ink) 80%, transparent); }
.cur-lead .ico { width: 16px; height: 16px; }

.cur-panel {
  position: absolute; z-index: 60; right: 0; top: calc(100% + 10px);
  width: min(300px, calc(100vw - 32px)); max-height: min(440px, 70vh); overflow: auto; overscroll-behavior: contain;
  padding: 8px; border-radius: 20px; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(20, 33, 27, 0.06), 0 24px 48px -18px rgba(20, 33, 27, 0.35);
  transform-origin: top right; animation: cur-pop 0.18s var(--ease, ease-out);
}
@keyframes cur-pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.cur-head { margin: 6px 10px 6px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cur-panel ul { list-style: none; margin: 0; padding: 0; }
.cur-panel a {
  display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 12px; text-decoration: none; color: inherit; font-size: 0.9rem;
}
.cur-panel .cur-flag { width: 24px; height: 18px; }
.cur-panel a:hover, .cur-panel a:focus-visible { background: var(--surface); outline: none; }
.cur-panel a[aria-current] { background: var(--lime); color: var(--lime-ink); }
.cur-country { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cur-tag { font-size: 0.8rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cur-tag b { color: var(--ink); font-weight: 600; margin-right: 2px; }
.cur-panel a[aria-current] .cur-tag, .cur-panel a[aria-current] .cur-tag b { color: var(--lime-ink); }
.cur-foot-note { margin: 6px 10px 4px; font-size: 0.72rem; color: var(--muted); }
.cur-foot { font-size: 0.82rem; color: var(--deep-ink); }
.cur-foot > summary { border-color: rgba(255, 255, 255, 0.18); }
.foot .cur-panel a { display: grid; width: 100%; box-sizing: border-box; padding: 9px 10px; color: inherit; }
.foot .cur-panel a:hover { color: inherit; }
.foot .cur-panel a[aria-current] { color: var(--lime-ink); }
.cur-foot .cur-panel { max-height: min(380px, 48vh); top: auto; bottom: calc(100% + 10px); left: 0; right: auto; transform-origin: bottom left; }
.fx-note { max-width: var(--page-w); margin: 20px auto 0; padding: 0 16px; font-size: 0.78rem; line-height: 1.5; color: color-mix(in srgb, var(--deep-ink) 60%, transparent); }
.fx-charge { margin-top: 10px; line-height: 1.5; }
.fx-base { margin: -4px 0 12px; }
@media (max-width: 719px) { .fx-note { padding: 0; } }

/* =========================================================================
   ธีมรอบ 2 (KB ขอ 2026-11-10): ลูกเล่นและ transition เพิ่มตามแนว Seed
   สร้างใหม่ทั้งหมด: การ์ดมีปุ่ม Learn more / Add to cart, แถบข้อความวิ่ง,
   แผงเขียวเข้มเลื่อนแนวนอน, ข้อความใหญ่สว่างทีละคำ, FAQ, ตัวหนังสือใหญ่ท้ายเว็บ,
   แถบสั่งซื้อติดล่างจอ, toast, และ view transition ระหว่างหน้า
   ========================================================================= */

/* --- transition ระหว่างหน้า (Chrome/Edge 126+, Safari 18.2+; เบราว์เซอร์อื่นแค่ fade เข้า) --- */
@view-transition { navigation: auto; }
.top { view-transition-name: site-top; }
::view-transition-old(root) { animation: vtOut 0.26s var(--ease) both; }
::view-transition-new(root) { animation: vtIn 0.5s var(--ease) both; }
::view-transition-group(*) { animation-duration: 0.55s; animation-timing-function: var(--ease); }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px); } }
@supports not (view-transition-name: none) { main { animation: vtIn 0.5s var(--ease) both; } }

/* --- ภาพวาดต้นไม้ของสินค้าตัวอย่าง --- */
.thumb[style*="--thumb-bg"], .kind-pic[style*="--thumb-bg"] { background: var(--thumb-bg); }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) .thumb[style*="--thumb-bg"], :where(:root:not([data-theme="light"])) .kind-pic[style*="--thumb-bg"] { background: color-mix(in srgb, var(--thumb-bg) 18%, var(--surface)); } }
:where(:root[data-theme="dark"]) .thumb[style*="--thumb-bg"], :where(:root[data-theme="dark"]) .kind-pic[style*="--thumb-bg"] { background: color-mix(in srgb, var(--thumb-bg) 18%, var(--surface)); }
.plant-art { display: block; width: 86%; height: 86%; transition: transform 0.8s var(--ease); }
.kind-pic .plant-art { width: 92%; height: 92%; margin-top: 6%; }
.big-thumb .plant-art { width: 78%; height: 78%; }
.plant-art .pa-leaf > g { transform-origin: 0 0; }
.card:hover .plant-art .pa-leaf > g, .featured-rail a:hover .plant-art .pa-leaf > g, .hero-plants .pa-leaf > g, .big-thumb .pa-leaf > g {
  animation: sway 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.9s);
}
@keyframes sway { 0%, 100% { rotate: -2.5deg; } 50% { rotate: 2.5deg; } }
.hero-plants { display: flex; align-items: flex-end; justify-content: center; gap: 0; padding: 0 4% 33%; background: radial-gradient(80% 70% at 50% 25%, #f1f4e4, #cfdcc0); }
.hero-plants .plant-art { width: 34%; height: auto; max-width: 260px; }
.hero-plants .plant-art:nth-child(2) { width: 42%; max-width: 320px; margin: 0 -4%; position: relative; z-index: 1; }
@media (min-width: 860px) { .hero-plants { padding-bottom: 16%; } }

/* --- การ์ดสินค้า: พื้นอยู่ที่การ์ดทั้งใบ มีปุ่มคู่ด้านล่าง --- */
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); padding: 8px 8px 12px; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card a:not(.card-shop), .card a:not(.card-shop):hover { background: none; padding: 0; border-radius: 0; transform: none; box-shadow: none; }
.card .card-link { flex: 1; color: inherit; }
.card:hover .thumb img { transform: scale(1.06); }
.card:hover .thumb .plant-art { transform: scale(1.04); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 4px 0; }
.card .card-more { color: var(--ink); font-size: 0.84rem; font-weight: 500; padding-bottom: 1px; border-bottom: 1.5px solid currentColor; text-decoration: none; }
.card .card-more:hover { color: var(--deep); border-bottom-color: var(--lime); }
.quick-add { margin: 0; }
.card-add {
  position: relative; overflow: hidden; border: 0; cursor: pointer;
  padding: 8px 13px; border-radius: 999px; background: var(--deep); color: var(--deep-ink);
  font: 500 0.8rem/1 var(--sans);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.card-add:hover { transform: translateY(-1px); }
.card-add:active { transform: scale(0.96); }
.card-add.busy { opacity: 0.7; }
.card-add.done { background: var(--lime); color: var(--lime-ink); }
.card-add.done span { animation: vtIn 0.4s var(--ease); }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) .card-add { background: var(--lime); color: var(--lime-ink); } :where(:root:not([data-theme="light"])) .card-add.done { background: #fff; } }
:where(:root[data-theme="dark"]) .card-add { background: var(--lime); color: var(--lime-ink); }
:where(:root[data-theme="dark"]) .card-add.done { background: #fff; }
.card-soon { font-size: 0.8rem; color: var(--muted); }
.corner-preview { left: auto; right: 10px; background: color-mix(in srgb, #fff 82%, transparent); color: var(--deep); }
.preview-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--lime) 45%, var(--bg)); color: var(--ink); font-size: 0.9rem; }
.preview-note .ico { flex: none; margin-top: 2px; }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) .preview-note { background: color-mix(in srgb, var(--lime) 14%, var(--bg)); } }
:where(:root[data-theme="dark"]) .preview-note { background: color-mix(in srgb, var(--lime) 14%, var(--bg)); }

/* --- แถบข้อความวิ่ง --- */
.marquee { overflow: hidden; margin: 0 -16px 36px; padding: 13px 0; background: var(--lime); color: var(--lime-ink); }
@media (min-width: 860px) { .marquee { margin: 0 0 44px; border-radius: 999px; } }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 34px; margin: 0; padding: 0 17px; list-style: none; }
.marquee li { display: flex; gap: 8px; align-items: center; white-space: nowrap; font: 500 0.95rem var(--display); letter-spacing: -0.01em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- แผงเขียวเข้ม Collector's picks --- */
.featured { margin: 56px -6px; padding: 30px 0 30px 22px; border-radius: 28px; background: var(--deep); color: var(--deep-ink); overflow: hidden; }
@media (min-width: 860px) { .featured { margin: 72px 0; padding: 52px 0 52px 48px; } }
.featured-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-right: 22px; }
@media (min-width: 860px) { .featured-head { padding-right: 48px; } }
.featured .eyebrow { color: var(--lime); }
.featured h2 { margin: 8px 0 0; color: inherit; font-size: clamp(1.8rem, 5.5vw, 2.8rem); max-width: 12em; }
.featured-nav { display: none; gap: 8px; }
@media (min-width: 720px) { .featured-nav { display: flex; } }
.round-btn {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid color-mix(in srgb, #fff 28%, transparent); background: transparent; color: inherit;
  font-size: 1.5rem; line-height: 1; transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.round-btn:hover { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); transform: scale(1.05); }
.featured-rail {
  display: flex; gap: 14px; margin: 24px 0 0; padding: 0 22px 4px 0; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.featured-rail::-webkit-scrollbar { display: none; }
.featured-rail li { flex: 0 0 76%; max-width: 330px; scroll-snap-align: start; }
@media (min-width: 720px) { .featured-rail li { flex-basis: 300px; } }
.featured-rail a { display: block; color: inherit; text-decoration: none; }
.featured-rail .thumb { aspect-ratio: 4 / 5; border-radius: 22px; }
.featured-rail .thumb img, .featured-rail .thumb .plant-art { transition: transform 0.8s var(--ease); }
.featured-rail a:hover .thumb img, .featured-rail a:hover .thumb .plant-art { transform: scale(1.05); }
.featured-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 4px 0; }
.featured-meta strong { display: block; font: 500 1.05rem/1.25 var(--display); }
.featured-meta em { display: block; margin-top: 2px; font-size: 0.84rem; color: color-mix(in srgb, var(--deep-ink) 62%, transparent); }
.featured-price { flex: none; padding: 5px 11px; border-radius: 999px; background: color-mix(in srgb, #fff 12%, transparent); font-size: 0.85rem; }

/* --- ข้อความใหญ่สว่างทีละคำตามการเลื่อน --- */
.statement { max-width: 980px; padding: 40px 2px 64px; }
.statement p { margin: 0 0 26px; font: 400 clamp(1.75rem, 6.6vw, 3.5rem)/1.1 var(--display); letter-spacing: -0.035em; }
.statement p span { opacity: 0.16; transition: opacity 0.45s ease; }
.statement p span.on { opacity: 1; }

/* --- FAQ --- */
.faq { max-width: 820px; margin: 56px auto 8px; }
.faq h2 { margin: 0 0 18px; font-size: clamp(1.8rem, 5.5vw, 2.8rem); }
.faq details { border-top: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; cursor: pointer; list-style: none; font: 500 1.08rem/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--card); transition: transform 0.45s var(--ease), background 0.3s ease; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.45s var(--ease); }
.faq details[open] .faq-plus { background: var(--lime); color: var(--lime-ink); transform: rotate(180deg); }
.faq details[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq details::details-content { height: 0; overflow: clip; transition: height 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq-a p { margin: 0 0 22px; max-width: 40em; color: var(--muted); }
.faq details[open] .faq-a { animation: vtIn 0.5s var(--ease); }

/* --- ท้ายเว็บ: ชื่อร้านตัวใหญ่ไหลขึ้นทีละตัว --- */
.foot-word { display: flex; max-width: var(--page-w); margin: 36px auto -6px; padding: 0 12px; overflow: hidden; color: var(--lime); font: 500 clamp(3.2rem, 15.5vw, 12rem)/0.9 var(--display); letter-spacing: -0.065em; user-select: none; }
.foot-word span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--c) * 0.045s); }
.foot-word.in span { transform: none; }

/* --- hero ขยับช้ากว่าการเลื่อน (parallax) --- */
.hero-media { inset: -14% 0 0; will-change: transform; }

/* --- toast + ป้ายตะกร้าเด้ง --- */
.toast {
  position: fixed; left: 50%; bottom: 18px; z-index: 60; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 999px; background: var(--deep); color: var(--deep-ink); font-size: 0.9rem;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.6); transform: translate(-50%, 160%); transition: transform 0.5s var(--ease);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); }
.cart-link.bump .badge { animation: bump 0.55s var(--ease); }
@keyframes bump { 40% { transform: scale(1.55); } }

/* --- แถบ Add to cart ติดล่างจอในหน้าสินค้า --- */
.buy-bar {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px -22px rgba(23, 37, 26, 0.6);
  transform: translateY(160%); transition: transform 0.5s var(--ease);
}
.buy-bar.show { transform: none; }
.buy-bar > span { display: flex; flex-direction: column; min-width: 0; font-size: 0.85rem; }
.buy-bar strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.buy-bar .btn { flex: none; padding: 11px 18px; }
@media (min-width: 860px) { .buy-bar { left: 24px; right: auto; bottom: 24px; width: 440px; } }

/* --- ปุ่มกดแล้วยุบนิดหนึ่ง --- */
.btn:active, .tool:active, .round-btn:active { transform: scale(0.96); }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .foot-word span { transform: none; }
  .statement p span { opacity: 1; }
  .hero-media { inset: 0; }
}

/* แก้หลังดูภาพรอบแรก */
.card .card-link, .card .card-more { height: auto; }
.card .card-more { display: inline-block; }
.toast:not(.show) { visibility: hidden; transition: transform 0.5s var(--ease), visibility 0s 0.5s; }
.buy-bar:not(.show) { visibility: hidden; transition: transform 0.5s var(--ease), visibility 0s 0.5s; }
.kind { width: 90px; }
.kind-name { overflow-wrap: normal; }
.hero-plants { align-items: flex-start; padding: 7% 4% 0; }
@media (min-width: 860px) { .hero-plants { padding: 3% 4% 0; } .hero-plants .plant-art { max-width: 230px; } .hero-plants .plant-art:nth-child(2) { max-width: 290px; } }
@media (max-width: 559px) {
  .card-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .card-actions .card-more { align-self: flex-start; }
  .card-add { width: 100%; padding: 10px 12px; }
  .card-soon { padding: 2px 0; }
}

/* วงกลมหมวดยกตัวตอน hover/กดค้าง — เผื่อที่ว่างบนล่างในแถวที่เลื่อนได้ ไม่ให้ขอบโดนตัด (KB แจ้ง 2026-11-11) */
.kinds { padding-top: 10px; padding-bottom: 22px; margin-top: -8px; margin-bottom: 14px; }
@media (min-width: 860px) { .kinds { padding: 10px 6px 22px; margin: -8px -6px 26px; } }
.kind:active .kind-pic { transform: translateY(-2px) scale(0.98); }

/* =========================================================================
   รอบ 3 (KB ขอ 2026-11-11 ให้ใกล้ seed.com): เมนูแผงกระจก, ตะกร้าลิ้นชัก,
   การ์ดสินค้าตรงกลางมีปุ่ม Shop Now, แผงกระจกบนรูป, ท้ายเว็บมีพื้นผิว + ตัวอักษรกลมมน
   ทุกอย่างวาด/เขียนขึ้นใหม่ ไม่ได้ใช้โลโก้ รูป หรือข้อความของ Seed
   ========================================================================= */

/* --- เมนูลอย: กระจกเข้มเมื่ออยู่บน hero, กดแล้วกางแผงกระจกลงมา --- */
.top { position: sticky; z-index: 40; transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.top.over-hero:not(.menu-open), .top.menu-open {
  background: color-mix(in srgb, #3a4a34 55%, transparent);
  border-color: color-mix(in srgb, #fff 14%, transparent);
  color: #f4f6ec;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.5);
}
.top.over-hero .brand-name small, .top.menu-open .brand-name small { color: color-mix(in srgb, #fff 70%, transparent); }
.top.over-hero .brand-mark, .top.menu-open .brand-mark { background: #f4f6ec; color: var(--deep); }
.top.over-hero .tool:hover, .top.menu-open .tool:hover { background: color-mix(in srgb, #fff 14%, transparent); }
.nav-shop { border-radius: 999px; padding: 6px 14px; margin: -6px -2px; transition: background 0.25s ease; }
.nav-shop::after { display: none; }
.menu-open .nav-shop, .nav-shop:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.menu-btn { border: 0; background: transparent; color: inherit; cursor: pointer; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 24px; }
.menu-open .menu-btn span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 20px; transform: rotate(-45deg); }
@media (min-width: 860px) { .menu-btn { display: none; } }
@media (max-width: 859px) { .top-tools a[href="/signin"], .top-tools a[href="/account"] { display: none; } }

.shop-menu {
  position: fixed; z-index: 39; left: 10px; right: 10px; top: 80px;
  max-height: min(74vh, 640px); overflow: auto; overscroll-behavior: contain;
  padding: 14px; border-radius: 28px;
  background: color-mix(in srgb, #4a5c43 70%, transparent);
  -webkit-backdrop-filter: blur(26px) saturate(1.3); backdrop-filter: blur(26px) saturate(1.3);
  border: 1px solid color-mix(in srgb, #fff 14%, transparent);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
  color: #f4f6ec;
  opacity: 0; transform: translateY(-10px) scale(0.98); transform-origin: top center;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
}
@media (min-width: 860px) { .shop-menu { width: 460px; right: auto; left: 50%; margin-left: -230px; } }
.shop-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.menu-links { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 2px 12px; }
.menu-links a { padding: 9px 14px; border-radius: 999px; background: color-mix(in srgb, #fff 12%, transparent); color: inherit; text-decoration: none; font-weight: 500; }
@media (min-width: 860px) { .menu-links { display: none; } }
.menu-products { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.menu-products li { opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); transition-delay: calc(var(--m) * 0.04s + 0.05s); }
.shop-menu.open .menu-products li { opacity: 1; transform: none; }
.menu-products a { display: flex; align-items: center; gap: 16px; padding: 6px; border-radius: 22px; color: inherit; text-decoration: none; transition: background 0.25s ease; }
.menu-products a:hover { background: color-mix(in srgb, #fff 10%, transparent); }
.menu-thumb { flex: none; width: 84px; height: 84px; border-radius: 20px; overflow: hidden; background: color-mix(in srgb, #fff 12%, transparent); }
.menu-thumb .thumb { width: 100%; height: 100%; aspect-ratio: auto; background: transparent !important; }
.menu-thumb .plant-art { width: 84%; height: 84%; }
.menu-text { display: grid; gap: 4px; justify-items: start; }
.menu-text strong { font: 500 1.12rem/1.2 var(--display); letter-spacing: -0.01em; }
.menu-cat { font-size: 0.82rem; color: color-mix(in srgb, #fff 62%, transparent); }
.menu-badge { padding: 3px 10px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-size: 0.78rem; font-weight: 600; }
.menu-all { display: flex; width: fit-content; margin: 14px 8px 4px auto; color: inherit; }

/* --- การ์ดสินค้าแบบ Seed: ไม่มีกล่อง จัดกลาง ป้ายเส้นขอบ ปุ่ม Shop Now --- */
.grid { gap: 36px 14px; }
.card { background: none; padding: 0; text-align: center; align-items: center; }
.card:hover { transform: none; box-shadow: none; }
.card .card-link { width: 100%; display: flex; flex-direction: column; align-items: center; }
.card-media { width: 100%; border-radius: 24px; }
.card .thumb { border-radius: 24px; }
.card-body { align-items: center; padding: 14px 4px 0; gap: 4px; }
.card-pill { margin: 0 0 4px; padding: 3px 11px; border: 1.3px solid currentColor; border-radius: 999px; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.01em; color: var(--ink); }
.card h3 { font-size: clamp(1.05rem, 3.6vw, 1.3rem); font-weight: 400; letter-spacing: -0.02em; }
.card .sci { font-style: normal; font-weight: 500; font-size: 0.84rem; color: var(--ink); font-family: var(--sans); }
.card-foot { justify-content: center; margin-top: 2px; }
.card .price { font-weight: 500; color: var(--muted); }
.card .card-shop {
  margin-top: 14px; padding: 11px 24px; border-radius: 999px; background: var(--deep); color: var(--deep-ink);
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.card:hover .card-shop, .card .card-shop:hover { background: #4b6a45; transform: translateY(-2px); box-shadow: none; }
.card-shop:active { transform: scale(0.96); }
.card:hover .thumb .plant-art { transform: scale(1.05) translateY(-2%); }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) .card .card-shop { background: var(--lime); color: var(--lime-ink); } :where(:root:not([data-theme="light"])) .card-pill, :where(:root:not([data-theme="light"])) .card .sci { color: var(--ink); } }
:where(:root[data-theme="dark"]) .card .card-shop { background: var(--lime); color: var(--lime-ink); }
:where(:root[data-theme="dark"]) .card-pill, :where(:root[data-theme="dark"]) .card .sci { color: var(--ink); }
/* กลางคืน: ชี้ที่การ์ดหรือปุ่ม ปุ่มยังเป็นแคปซูลสีเขียวมะนาว แค่สว่างขึ้นนิดและลอยขึ้น (เดิมกลายเป็นสี่เหลี่ยมสีเขียวเข้ม) */
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) .card:hover .card-shop, :where(:root:not([data-theme="light"])) .card .card-shop:hover { background: #e6fab8; color: var(--lime-ink); } }
:where(:root[data-theme="dark"]) .card:hover .card-shop, :where(:root[data-theme="dark"]) .card .card-shop:hover { background: #e6fab8; color: var(--lime-ink); }

/* --- Inside the lab: แผงกระจกบนพื้นหลังต้นไม้เบลอ --- */
.lab-glass { position: relative; overflow: hidden; padding: 14px; background: #6f8664; isolation: isolate; }
@media (min-width: 860px) { .lab-glass { padding: 40px; } }
.lab-bg { position: absolute; inset: -10%; z-index: -1; display: grid; place-items: center; background: radial-gradient(60% 60% at 70% 40%, #c9d8b4, #6f8664 70%); }
.lab-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(6px) saturate(1.1); }
.lab-bg .plant-art, .lab-bg .leaf-art { width: 120%; height: 120%; filter: blur(14px) saturate(1.2); opacity: 0.85; transform: translateX(18%); }
.lab-panel {
  display: grid; gap: 22px; padding: 28px 22px; border-radius: 26px;
  background: color-mix(in srgb, #56694d 48%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
  border: 1px solid color-mix(in srgb, #fff 16%, transparent);
  color: #f4f6ec;
}
@media (min-width: 860px) { .lab-panel { grid-template-columns: 1.1fr 1fr; padding: 48px; gap: 32px 56px; } .lab-steps { grid-column: 1 / -1; } }
.lab-panel h2 { color: inherit; font-weight: 400; font-size: clamp(1.9rem, 6vw, 3rem); }
.lab-panel .lab-copy p { color: color-mix(in srgb, #fff 80%, transparent) !important; margin-bottom: 20px; }
.lab-stat {
  align-self: start; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; border-radius: 22px; border: 1px solid color-mix(in srgb, #fff 30%, transparent);
}
.lab-stat p { margin: 0; font: 400 1.15rem/1.5 var(--display); }
.lab-stat strong { font: 300 clamp(2.4rem, 9vw, 3.4rem)/1 var(--display); letter-spacing: -0.04em; }
.pill-o { display: inline-block; padding: 1px 10px; margin-right: 4px; border: 1.4px solid currentColor; border-radius: 999px; font-size: 0.85em; }
.lab-panel .lab-steps { display: grid; gap: 26px; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 720px) { .lab-panel .lab-steps { grid-template-columns: repeat(4, 1fr); } }
.lab-panel .lab-steps li { background: none; border: 0; border-radius: 0; padding: 18px 0 0; position: relative; display: grid; gap: 10px; }
.lab-panel .lab-steps li:hover { transform: none; background: none; }
.lab-panel .lab-steps li::before { content: ""; position: absolute; left: 0; right: 10px; top: 0; height: 2px; border-radius: 2px; background: color-mix(in srgb, #fff 75%, transparent); }
.lab-panel .lab-steps li::after { content: ""; position: absolute; right: 6px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.lab-panel .lab-steps strong { font: 600 0.88rem/1.3 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; }
.lab-panel .lab-steps em { color: color-mix(in srgb, #fff 82%, transparent); font-size: 0.95rem; line-height: 1.5; }

/* --- ตะกร้าแบบลิ้นชักจากขวา --- */
.drawer-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(15, 25, 17, 0.35); opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease); }
.drawer {
  position: fixed; z-index: 71; top: 8px; right: 8px; bottom: 8px; width: min(440px, calc(100vw - 16px));
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 26px; background: var(--bg); color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  transform: translateX(calc(100% + 24px)); transition: transform 0.55s var(--ease);
}
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-scrim { opacity: 1; pointer-events: auto; }
.drawer-open body { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 10px; }
.drawer-head h2 { margin: 0; font-size: 1.7rem; font-weight: 400; }
.drawer-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--card); color: inherit; font-size: 1.4rem; cursor: pointer; transition: transform 0.3s var(--ease); }
.drawer-x:hover { transform: rotate(90deg); }
.drawer-content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.drawer-loading { padding: 22px; color: var(--muted); }
.drawer-scroll { flex: 1; min-height: 0; overflow: auto; padding: 6px 22px 22px; overscroll-behavior: contain; }
.drawer-promo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 8px; padding: 14px 16px; border-radius: 14px; background: var(--card); font-size: 0.88rem; font-weight: 600; }
.drawer-promo > span { font-weight: 400; font-size: 1.3rem; }
.drawer-promo .ico { margin-right: 6px; vertical-align: -3px; }
.drawer-lines { list-style: none; margin: 0; padding: 0; }
.drawer-lines li { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); animation: vtIn 0.4s var(--ease); }
.drawer-thumb { display: block; width: 84px; height: 84px; border-radius: 16px; overflow: hidden; background: var(--card); }
.drawer-thumb .thumb { width: 100%; height: 100%; aspect-ratio: auto; }
.drawer-thumb .plant-art { width: 86%; height: 86%; }
.drawer-info { display: grid; gap: 2px; min-width: 0; }
.drawer-info a { color: inherit; text-decoration: none; }
.drawer-info strong { font: 500 1rem/1.25 var(--display); }
.drawer-price { margin-top: 8px; font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; transition: opacity 0.2s; }
.stepper.busy { opacity: 0.5; pointer-events: none; }
.stepper button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 1.1rem; cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--card); }
.stepper button:disabled { opacity: 0.3; cursor: default; }
.stepper span { min-width: 18px; text-align: center; font-weight: 600; font-size: 0.92rem; }
.drawer-upsell { padding: 18px 0 6px; border-bottom: 1px solid var(--line); }
.drawer-upsell h3 { margin: 0 0 12px; font: 600 0.95rem var(--sans); }
.drawer-upsell ul { list-style: none; margin: 0 -22px; padding: 0 22px 6px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.drawer-upsell ul::-webkit-scrollbar { display: none; }
.drawer-upsell li { flex: 0 0 82%; scroll-snap-align: start; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--card); }
.drawer-upsell .drawer-thumb { width: 64px; height: 64px; background: transparent; }
.upsell-info { display: grid; gap: 4px; min-width: 0; font-size: 0.9rem; }
.upsell-info strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-upsell form { margin: 0; }
.pill-btn { padding: 8px 16px; border: 1.3px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 500 0.88rem var(--sans); cursor: pointer; transition: background 0.25s, color 0.25s; }
.pill-btn:hover { background: var(--ink); color: var(--bg); }
.drawer-link { display: inline-block; margin: 18px 0 0; color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--bg); box-shadow: 0 -18px 30px -24px rgba(0, 0, 0, 0.25); }
.drawer-row { display: flex; justify-content: space-between; margin: 0 0 6px; }
.drawer-total { font: 500 1.35rem var(--display); }
.drawer-total strong { font-weight: 600; }
.drawer-foot .muted { margin: 0 0 14px; }
.drawer-checkout { display: flex; justify-content: center; width: 100%; padding: 16px; font-size: 1.02rem; }
.drawer-empty { text-align: center; padding: 30px 0; color: var(--muted); }
.drawer-empty .leaf-art { width: 110px; height: 110px; margin: 0 auto; --slit: var(--bg); }

/* --- ท้ายเว็บแบบ Seed --- */
.foot { padding-bottom: 0; overflow: hidden; }
.foot-seed { display: grid; gap: 36px; }
@media (min-width: 860px) { .foot-seed { grid-template-columns: 1.3fr 1fr; gap: 64px; } }
.foot-statement { margin: 0 0 22px; font: 400 clamp(1.6rem, 5.4vw, 2.5rem)/1.2 var(--display); letter-spacing: -0.025em; color: var(--deep-ink); }
.foot-statement .ico { width: 0.9em; height: 0.9em; vertical-align: -0.08em; padding: 0.06em; border: 1.5px solid currentColor; border-radius: 0.25em; }
.foot-seed .foot-brand { display: none; }
.foot-box { margin: 0; max-width: 36em; padding: 14px 16px; border: 1px solid color-mix(in srgb, #fff 30%, transparent); border-radius: 16px; font-size: 0.85rem; line-height: 1.5; color: color-mix(in srgb, var(--deep-ink) 85%, transparent); }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
@media (min-width: 560px) { .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.foot-cols h3 { color: color-mix(in srgb, #fff 55%, transparent) !important; font: 500 0.8rem var(--sans) !important; letter-spacing: 0.08em; margin-bottom: 14px !important; }
.foot-cols a { font-size: 1.02rem; padding: 6px 0; }
.foot-ground { position: relative; margin: 40px -16px 0; height: clamp(220px, 40vw, 420px); display: grid; place-items: center; overflow: hidden; }
.ground-tex { position: absolute; inset: 0; width: 100%; height: 100%; }
.ground-word { position: relative; width: min(96%, 1100px); height: auto; overflow: visible; }
.ground-word text { font: 900 178px/1 "Arial Rounded MT Bold", "Inter Tight", system-ui, sans-serif; letter-spacing: -4px; fill: #f2f2ea; }
.ground-legal { position: absolute; bottom: 18px; left: 0; right: 0; margin: 0; text-align: center; font-size: 0.85rem; color: color-mix(in srgb, #fff 70%, transparent); }
.foot-bar .foot-legal { display: none; }

@media (prefers-reduced-motion: reduce) {
  .drawer, .shop-menu, .menu-products li { transition: none; }
}

/* =========================================================================
   แชทกับทีมงาน (1:1 ลูกค้ากับร้าน) — ออกแบบตามห้องแชทของ umaker portal (KB 2026-11-11)
   พื้นลายเส้นต้นไม้ หัวห้องเป็นแคปซูลกระจกลอย ฟองข้อความมีหาง เวลาอยู่ในฟอง
   ช่องพิมพ์ลอย มีปุ่มสติกเกอร์ในช่อง ปุ่มส่งโผล่เมื่อพิมพ์ — สีตามธีม Lab Green (กลางวัน/กลางคืน)
   ========================================================================= */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.chat {
  --chat-me: #1d3a1f;          /* ปุ่มหลัก (ส่ง, ปุ่ม Chat) */
  --chat-me-ink: #f1f4e8;
  --chat-wall: #ece9da;
  --chat-in: #ffffff;          /* ฟองของร้าน */
  --chat-out: #dcf2b4;         /* ฟองของลูกค้า (เขียวมะนาวอ่อน) */
  --chat-out-ink: #17251a;
  --chat-ink: #17251a;
  --chat-meta: rgba(23, 37, 26, .5);
  --chat-glass: rgba(255, 255, 255, .74);
  --chat-card: #ffffff;
  --chat-line: rgba(23, 37, 26, .1);
  --chat-tick: #3f8f3a;
  --chat-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%232f5a2f' stroke-opacity='.13' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E %3Cpath d='M22 46c4-16 18-24 32-22-2 15-14 26-32 22zM22 46l18-14'/%3E %3Cpath d='M118 22v18M118 32c-8-8-18-6-20-2 6 6 14 6 20 2zM118 28c7-9 17-8 20-4-6 7-14 7-20 4'/%3E %3Cpath d='M132 92h20M135 92v10l-8 18a5 5 0 0 0 4.5 7h21a5 5 0 0 0 4.5-7l-8-18V92M131 112h22'/%3E %3Cpath d='M60 100q8 11 0 17q-8-6 0-17z'/%3E %3Cpath d='M26 128h26l-3 18a4 4 0 0 1-4 3H33a4 4 0 0 1-4-3zM24 124h30v4H24zM39 124v-8M39 118c-5-5-11-3-12 0 4 3 9 3 12 0'/%3E %3Cpath d='M96 150l2 6 6 2-6 2-2 6-2-6-6-2 6-2z'/%3E %3Cpath d='M80 58c10-2 18 6 16 16-10 2-18-6-16-16z'/%3E %3Cpath d='M160 160c-6-12 0-24 12-26 4 12-2 24-12 26zM160 160l8-18'/%3E %3Cpath d='M170 50l1.5 4 4 1.5-4 1.5-1.5 4-1.5-4-4-1.5 4-1.5z'/%3E %3C/g%3E%3C/svg%3E");
  --chat-wall-grad: linear-gradient(165deg, #f3f1e4, #e6e6d2);
  position: fixed; right: 16px; bottom: 16px; z-index: 60; font-family: var(--sans);
}
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-theme="light"])) .chat {
    --chat-me: #d6f39c; --chat-me-ink: #142616;
    --chat-wall: #111a13; --chat-in: #1f2b22; --chat-out: #3b5a27; --chat-out-ink: #eef5e4; --chat-ink: #e8eee3;
    --chat-meta: rgba(232, 238, 227, .5); --chat-glass: rgba(26, 36, 29, .76); --chat-card: #19241c;
    --chat-line: rgba(232, 238, 227, .1); --chat-tick: #b9e57a;
    --chat-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23d6f39c' stroke-opacity='.06' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E %3Cpath d='M22 46c4-16 18-24 32-22-2 15-14 26-32 22zM22 46l18-14'/%3E %3Cpath d='M118 22v18M118 32c-8-8-18-6-20-2 6 6 14 6 20 2zM118 28c7-9 17-8 20-4-6 7-14 7-20 4'/%3E %3Cpath d='M132 92h20M135 92v10l-8 18a5 5 0 0 0 4.5 7h21a5 5 0 0 0 4.5-7l-8-18V92M131 112h22'/%3E %3Cpath d='M60 100q8 11 0 17q-8-6 0-17z'/%3E %3Cpath d='M26 128h26l-3 18a4 4 0 0 1-4 3H33a4 4 0 0 1-4-3zM24 124h30v4H24zM39 124v-8M39 118c-5-5-11-3-12 0 4 3 9 3 12 0'/%3E %3Cpath d='M96 150l2 6 6 2-6 2-2 6-2-6-6-2 6-2z'/%3E %3Cpath d='M80 58c10-2 18 6 16 16-10 2-18-6-16-16z'/%3E %3Cpath d='M160 160c-6-12 0-24 12-26 4 12-2 24-12 26zM160 160l8-18'/%3E %3Cpath d='M170 50l1.5 4 4 1.5-4 1.5-1.5 4-1.5-4-4-1.5 4-1.5z'/%3E %3C/g%3E%3C/svg%3E"); --chat-wall-grad: linear-gradient(165deg, #142017, #0d150f);
  }
}
:where(:root[data-theme="dark"]) .chat {
  --chat-me: #d6f39c; --chat-me-ink: #142616;
  --chat-wall: #111a13; --chat-in: #1f2b22; --chat-out: #3b5a27; --chat-out-ink: #eef5e4; --chat-ink: #e8eee3;
  --chat-meta: rgba(232, 238, 227, .5); --chat-glass: rgba(26, 36, 29, .76); --chat-card: #19241c;
  --chat-line: rgba(232, 238, 227, .1); --chat-tick: #b9e57a;
  --chat-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23d6f39c' stroke-opacity='.06' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E %3Cpath d='M22 46c4-16 18-24 32-22-2 15-14 26-32 22zM22 46l18-14'/%3E %3Cpath d='M118 22v18M118 32c-8-8-18-6-20-2 6 6 14 6 20 2zM118 28c7-9 17-8 20-4-6 7-14 7-20 4'/%3E %3Cpath d='M132 92h20M135 92v10l-8 18a5 5 0 0 0 4.5 7h21a5 5 0 0 0 4.5-7l-8-18V92M131 112h22'/%3E %3Cpath d='M60 100q8 11 0 17q-8-6 0-17z'/%3E %3Cpath d='M26 128h26l-3 18a4 4 0 0 1-4 3H33a4 4 0 0 1-4-3zM24 124h30v4H24zM39 124v-8M39 118c-5-5-11-3-12 0 4 3 9 3 12 0'/%3E %3Cpath d='M96 150l2 6 6 2-6 2-2 6-2-6-6-2 6-2z'/%3E %3Cpath d='M80 58c10-2 18 6 16 16-10 2-18-6-16-16z'/%3E %3Cpath d='M160 160c-6-12 0-24 12-26 4 12-2 24-12 26zM160 160l8-18'/%3E %3Cpath d='M170 50l1.5 4 4 1.5-4 1.5-1.5 4-1.5-4-4-1.5 4-1.5z'/%3E %3C/g%3E%3C/svg%3E"); --chat-wall-grad: linear-gradient(165deg, #142017, #0d150f);
}
.chat[hidden] { display: none; }

/* ปุ่ม Chat ลอยมุมขวาล่าง */
.chat-launch {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.2rem; border: 0; border-radius: 999px;
  background: var(--chat-me); color: var(--chat-me-ink);
  font: 600 1rem/1 var(--sans); cursor: pointer; position: relative;
  box-shadow: 0 10px 28px -10px rgba(11, 32, 26, .55), 0 2px 6px rgba(11, 32, 26, .18);
  transition: transform .15s ease;
}
.chat-launch:hover { transform: translateY(-1px); }
.chat-launch .ico { width: 1.3em; height: 1.3em; }
.chat-launch:focus-visible, .chat-glass-btn:focus-visible, .chat-chip:focus-visible, .chat-stk-btn:focus-visible, .chat-send-btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--chat-tick) 55%, transparent); outline-offset: 2px;
}
.chat-dot {
  position: absolute; top: -4px; right: -4px; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem;
  border-radius: 999px; background: #e5484d; color: #fff; border: 2px solid var(--bg);
  font: 700 .72rem/1.15rem var(--sans); text-align: center;
}
.chat-dot[hidden] { display: none; }
.chat.is-open .chat-launch { display: none; }

/* หน้าต่าง */
.chat-panel {
  position: fixed; right: 16px; bottom: 16px;
  width: min(420px, calc(100vw - 32px)); height: min(680px, calc(100dvh - 32px));
  border-radius: 28px; overflow: hidden; color: var(--chat-ink);
  box-shadow: 0 30px 70px -24px rgba(11, 32, 26, .5), 0 0 0 1px var(--chat-line);
  animation: chat-in .2s var(--ease, ease-out);
}
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .chat-panel { animation: none; } }

.chat-room {
  position: relative; height: 100%; display: flex; flex-direction: column;
  background-color: var(--chat-wall);
  background-image: var(--chat-pattern), var(--chat-wall-grad);
  background-size: 180px 180px, cover;
}

/* หัวห้อง: ปุ่มกระจกซ้าย แคปซูลชื่อกลาง รูปร้านขวา */
.chat-room-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; gap: 8px; padding: 10px 12px 18px;
  background: linear-gradient(var(--chat-wall) 35%, transparent);
}
.chat-glass-btn, .chat-room-av {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: var(--chat-glass); color: var(--chat-ink); cursor: pointer;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}
.chat-glass-btn[hidden] { display: none; }
.chat-glass-btn .ico { width: 1.25em; height: 1.25em; }
.chat-room-av { overflow: hidden; cursor: default; background: #fff; }
.chat-room-av img { width: 30px; height: 30px; }
.chat-room-title {
  flex: 0 1 auto; min-width: 0; margin: 0 auto; padding: 5px 18px; border-radius: 999px; text-align: center;
  background: var(--chat-glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 6px rgba(0, 0, 0, .08);
}
.chat-room-title h2 { margin: 0; font: 650 15px/1.3 var(--sans); letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-room-title small { display: block; color: var(--chat-meta); font-size: 11.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-room-title small.is-online::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3fb950; margin-right: 5px; vertical-align: 1px; }

/* พื้นที่ข้อความ */
.chat-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 68px 10px 8px; display: flex; flex-direction: column; overscroll-behavior: contain; }
.chat-msgs > :not([hidden]):first-child, .chat-msgs > [hidden] + :not([hidden]) { margin-top: auto; }

.chat-thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.chat-thread[hidden], .chat-welcome[hidden], .chat-contact[hidden] { display: none; }
.chat-day {
  position: relative; z-index: 1; align-self: center; margin: 10px auto 6px; padding: 3px 10px;
  border-radius: 999px; background: rgba(40, 52, 36, .3); color: #fff; font-size: 12px; font-weight: 500;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.chat-msg { display: flex; gap: 6px; align-items: flex-end; margin: 1px 0; max-width: 84%; }
.chat-msg.last { margin-bottom: 6px; }
.chat-msg.me { margin-left: auto; flex-direction: row-reverse; }
.chat-av, .chat-av-gap { width: 30px; height: 30px; flex: none; }
.chat-av { border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.chat-av img { width: 22px; height: 22px; }
.chat-bw { display: flex; flex-direction: column; min-width: 0; }
.chat-msg.me .chat-bw { align-items: flex-end; }
.chat-bubble {
  position: relative; margin: 0; padding: 6px 10px; border-radius: 16px;
  background: var(--chat-in); color: var(--chat-ink); font-size: 15px; line-height: 1.38;
  white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(0, 0, 0, .07);
}
.chat-msg.me .chat-bubble { background: var(--chat-out); color: var(--chat-out-ink); }
.chat-msg:not(.me):not(.first) .chat-bubble { border-top-left-radius: 6px; }
.chat-msg:not(.me):not(.last) .chat-bubble { border-bottom-left-radius: 6px; }
.chat-msg.me:not(.first) .chat-bubble { border-top-right-radius: 6px; }
.chat-msg.me:not(.last) .chat-bubble { border-bottom-right-radius: 6px; }
/* หางของฟองสุดท้ายในชุด */
.chat-msg.last .chat-bubble:not(.sticker)::after { content: ""; position: absolute; bottom: 0; width: 12px; height: 16px; background: inherit; }
.chat-msg.last:not(.me) .chat-bubble:not(.sticker) { border-bottom-left-radius: 4px; }
.chat-msg.last.me .chat-bubble:not(.sticker) { border-bottom-right-radius: 4px; }
.chat-msg.last:not(.me) .chat-bubble:not(.sticker)::after { left: -6px; clip-path: path("M12 0 V16 H0 C5 15 8 11 12 0 Z"); }
.chat-msg.last.me .chat-bubble:not(.sticker)::after { right: -6px; clip-path: path("M0 0 V16 H12 C7 15 4 11 0 0 Z"); }
.chat-msg.bot .chat-bubble { background: color-mix(in srgb, #d6f39c 22%, var(--chat-in)); }
.chat-bubble a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.chat-nm { display: block; font-size: 12.5px; font-weight: 600; color: var(--chat-tick); margin-bottom: 1px; white-space: normal; }
/* เวลา (และเครื่องหมายอ่านแล้ว) ซุกอยู่มุมขวาล่างในฟอง */
.chat-meta { float: right; position: relative; top: 7px; margin: -6px -2px 0 10px; font-size: 11px; line-height: 1.6; color: var(--chat-meta); white-space: nowrap; }
.chat-msg.me .chat-meta { color: color-mix(in srgb, var(--chat-out-ink) 55%, transparent); }
.chat-tick { display: inline-block; width: 15px; height: 10px; margin-left: 2px; vertical-align: -1px; color: var(--chat-meta); }
.chat-tick.seen { color: var(--chat-tick); }

/* สติกเกอร์: ไม่มีฟอง เวลาเป็นแคปซูลเล็กมุมล่าง */
.chat-bubble.sticker { background: transparent !important; padding: 0; border-radius: 0; box-shadow: none; }
.chat-bubble.sticker > img { display: block; width: 140px; height: 140px; object-fit: contain; animation: chat-pop .22s var(--ease, ease-out); }
.chat-bubble.sticker .chat-meta { float: none; display: block; width: fit-content; position: static; margin: 2px 0 0 auto; padding: 0 7px; border-radius: 999px; background: rgba(30, 40, 28, .42); color: #fff; }
.chat-msg:not(.me) .chat-bubble.sticker .chat-meta { margin: 2px auto 0 0; }
.chat-bubble.sticker .chat-meta .chat-tick { color: #fff; }
.chat-bubble.sticker .chat-meta .chat-tick.seen { color: #d6f39c; }
@keyframes chat-pop { from { opacity: 0; transform: scale(.85); } }

/* การ์ดกระจกบนพื้นลาย (หน้าต้อนรับ / ขออีเมล) */
.chat-glass-card {
  margin: 0 4px 6px; padding: 18px; border-radius: 22px;
  background: var(--chat-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 8px 26px -14px rgba(20, 33, 27, .35);
}
.chat-glass-card h3 { margin: 0 0 .35rem; font: 650 1.35rem/1.2 var(--display); letter-spacing: -.02em; }
.chat-glass-card p { margin: 0; font-size: .93rem; line-height: 1.5; }
.chat-welcome-av { float: right; width: 52px; height: 52px; margin: 0 0 6px 10px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.chat-welcome-av img { width: 38px; height: 38px; }
.chat-polaroids { display: flex; gap: 10px; margin: 14px 0 2px; }
.chat-polaroids:empty { display: none; }
.chat-polaroid {
  flex: 1; max-width: 140px; padding: 6px 6px 8px; text-decoration: none;
  background: #fff; color: #14211b; border-radius: 14px; box-shadow: 0 8px 20px -12px rgba(20, 33, 27, .45);
}
.chat-polaroid.tilt-0 { transform: rotate(-2.5deg); }
.chat-polaroid.tilt-1 { transform: rotate(2.5deg); }
.chat-polaroid-pic { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #e3efe6, #cfe1d4); }
.chat-polaroid-pic img { width: 100%; height: 100%; object-fit: cover; }
.chat-polaroid-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 5px; font-size: .72rem; line-height: 1.25; text-align: center; }
.chat-say-hi { margin-top: 14px; }
.chat-say-hi[hidden] { display: none; }
.chat-say-hi > span { display: block; font-size: .78rem; font-weight: 600; color: var(--chat-meta); text-transform: uppercase; letter-spacing: .05em; }
.chat-say-hi > div { display: flex; gap: 4px; margin-top: 4px; }
.chat-say-hi button { flex: 1; max-width: 86px; aspect-ratio: 1; padding: 4px; border: 0; border-radius: 14px; background: transparent; cursor: pointer; transition: transform .15s ease, background .15s; }
.chat-say-hi button:hover { background: color-mix(in srgb, var(--chat-ink) 7%, transparent); transform: scale(1.06); }
.chat-say-hi img { width: 100%; height: 100%; object-fit: contain; }
.chat-who { display: flex; align-items: center; gap: .35rem; margin-top: 14px !important; font-size: .82rem !important; color: var(--chat-meta); }
.chat-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-link { border: 0; padding: 0; background: none; color: var(--chat-ink); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.chat-apps { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 12px; font-size: .82rem; color: var(--chat-meta); }
.chat-apps[hidden], .chat-app[hidden] { display: none; }
.chat-app { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; background: var(--chat-card); color: var(--chat-ink); text-decoration: none; font-weight: 500; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.chat-app.is-wa .ico { color: #1f9d55; }
.chat-app.is-ms .ico { color: #2f6fe0; }

/* ขออีเมลก่อนเริ่มแชท */
.chat-contact .chat-glass-card p.muted { color: var(--chat-meta); margin-bottom: 14px; }
.chat-google {
  display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .85rem 1rem; border-radius: 999px;
  text-decoration: none; background: var(--chat-me); color: var(--chat-me-ink); font-weight: 600;
}
.chat-providers { margin: .45rem 0 0 !important; text-align: center; font-size: .78rem !important; color: var(--chat-meta); }
.chat-or { display: flex; align-items: center; gap: .8rem; margin: .9rem 0 !important; color: var(--chat-meta); font-size: .75rem !important; text-transform: uppercase; letter-spacing: .06em; }
.chat-or::before, .chat-or::after { content: ""; flex: 1; height: 1px; background: var(--chat-line); }
.chat-email { display: flex; align-items: center; border-radius: 999px; background: var(--chat-card); box-shadow: 0 1px 6px rgba(0, 0, 0, .08); }
.chat-email input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--chat-ink); font: inherit; font-size: 16px; padding: .8rem 1.1rem; outline: none; }
.chat-email button { border: 0; background: transparent; color: var(--chat-ink); padding: 0 1rem; height: 46px; cursor: pointer; }
.chat-check { display: flex; gap: .55rem; align-items: center; margin-top: .9rem; font-size: .86rem; cursor: pointer; }
.chat-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--chat-tick); }
.chat-fine { margin-top: .8rem !important; color: var(--chat-meta); font-size: .76rem !important; text-align: center; }
.chat-error { margin: 6px 12px 0; padding: 6px 12px; border-radius: 12px; background: color-mix(in srgb, #e5484d 14%, var(--chat-card)); color: #c42f35; font-size: .85rem; }
.chat-contact .chat-error { margin: .6rem 0 0; }
.chat-error[hidden] { display: none; }

/* ช่องพิมพ์ลอย + ปุ่มลัด + ถาดสติกเกอร์ */
.chat-foot { position: relative; z-index: 3; }
.chat-foot[hidden] { display: none; }
.chat-chips { display: flex; gap: 6px; padding: 6px 10px 0; overflow-x: auto; scrollbar-width: none; }
.chat-chips[hidden], .chat-foot.tray-open .chat-chips { display: none; }
.chat-chip {
  flex: none; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer;
  background: var(--chat-card); color: var(--chat-ink); font: 600 13px/1.2 var(--sans); box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}
.chat-chip:hover { background: color-mix(in srgb, var(--chat-tick) 12%, var(--chat-card)); }
.chat-send { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px 10px; margin: 0; }
.chat-field { flex: 1; min-width: 0; display: flex; align-items: flex-end; border-radius: 22px; background: var(--chat-card); box-shadow: 0 1px 6px rgba(0, 0, 0, .1); }
.chat-field textarea {
  flex: 1; min-width: 0; resize: none; min-height: 42px; max-height: 140px; padding: 10px 4px 10px 16px;
  border: 0; background: transparent; color: var(--chat-ink); font: 400 16px/1.35 var(--sans); outline: none;
}
.chat-field textarea::placeholder { color: var(--chat-meta); }
.chat-stk-btn { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--chat-meta); display: grid; place-items: center; cursor: pointer; }
.chat-stk-btn .ico { width: 1.45em; height: 1.45em; }
.chat-stk-btn:hover, .chat-stk-btn.on { color: var(--chat-tick); }
.chat-send-btn {
  width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: var(--chat-me); color: var(--chat-me-ink); box-shadow: 0 2px 8px color-mix(in srgb, var(--chat-me) 35%, transparent);
  animation: chat-pop .15s ease-out;
}
.chat-send-btn .ico { width: 1.25em; height: 1.25em; }
.chat-send:not(.has-text) .chat-send-btn { display: none; }
.chat.is-sending .chat-send-btn { opacity: .5; }

.sticker-tray {
  display: flex; flex-direction: column; max-height: min(42vh, 300px); margin: 6px 10px 0;
  border-radius: 18px; overflow: hidden; background: var(--chat-card); box-shadow: 0 4px 18px rgba(0, 0, 0, .14);
  animation: chat-pop .16s ease-out; transform-origin: bottom right;
}
.sticker-tray[hidden] { display: none; }
.sticker-tabs { display: flex; gap: 4px; padding: 6px 8px; overflow-x: auto; border-bottom: 1px solid var(--chat-line); scrollbar-width: none; flex: none; }
.sticker-tabs button {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--chat-meta);
  display: grid; place-items: center; cursor: pointer;
}
.sticker-tabs button.on { background: color-mix(in srgb, var(--chat-ink) 8%, transparent); color: var(--chat-ink); }
.sticker-tabs img { width: 30px; height: 30px; object-fit: contain; }
.sticker-tabs .ico { width: 1.3em; height: 1.3em; }
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 4px; padding: 8px; overflow-y: auto; }
.sticker-grid button { aspect-ratio: 1; border: 0; background: transparent; border-radius: 12px; padding: 4px; cursor: pointer; transition: background .12s, transform .12s; }
.sticker-grid button:hover { background: color-mix(in srgb, var(--chat-ink) 7%, transparent); transform: scale(1.05); }
.sticker-grid img { width: 100%; height: 100%; object-fit: contain; }
.sticker-grid-title { grid-column: 1 / -1; margin: 2px 4px 0; font-size: 11px; font-weight: 600; color: var(--chat-meta); text-transform: uppercase; letter-spacing: .05em; }
.sticker-empty { grid-column: 1 / -1; padding: 16px; text-align: center; color: var(--chat-meta); font-size: 13px; }

/* มือถือ: เต็มจอเหมือนแอปแชท */
@media (max-width: 560px) {
  .chat { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
  .chat-panel { inset: 0; width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
  .chat-room-head { padding-top: calc(10px + env(safe-area-inset-top)); }
  .chat-msgs { padding-top: calc(68px + env(safe-area-inset-top)); }
  .chat-send { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .chat-msg { max-width: 86%; }
}

/* --- หน้า Privacy ---------------------------------------------------------- */
.privacy { max-width: 720px; margin: 0 auto; line-height: 1.65; }
.privacy h2 { margin: 28px 0 8px; font-size: 1.2rem; }
.privacy ul { padding-left: 1.2em; display: grid; gap: 8px; }

/* --- โลโก้ Triple B (KB ส่งมา 2026-11-11) ---------------------------------------- */
.logo { display: block; overflow: visible;
  --lg-main: #8fa925; --lg-sub: #6b7a45; --lg-line: #7a9324; --lg-hi: #bccb8c; --lg-leaf: #b4c67f; --lg-leaf2: #9fb65a; }
.logo .lg-word { font: 600 150px/1 var(--display); fill: var(--lg-main); }
.logo .lg-sub { font: 500 44px/1 var(--sans); fill: var(--lg-sub); }
.logo .lg-line { stroke: var(--lg-line); }
.logo .lg-dot { fill: var(--lg-main); }
.logo .lg-hi { fill: var(--lg-hi); }
.logo .lg-leaf { fill: var(--lg-leaf); }
.logo .lg-rib { stroke: var(--lg-line); }
.logo .lg-leaf2 { fill: var(--lg-leaf2); }
.brand-logo { height: 34px; width: auto; }
@media (min-width: 860px) { .brand-logo { height: 38px; } }
/* บนกระจกเข้ม / ท้ายเว็บสีเขียวเข้ม: ใช้สีสว่างขึ้นให้อ่านออก */
.top.over-hero .logo, .top.menu-open .logo, .foot .logo, .lab .logo {
  --lg-main: #c3dc52; --lg-sub: #e6ecd2; --lg-line: #c3dc52; --lg-hi: #e3ecc4; --lg-leaf: #dbe6b8; --lg-leaf2: #b5cc63;
}
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-theme="light"])) .logo { --lg-main: #c3dc52; --lg-sub: #d8e0c2; --lg-line: #b2cb45; --lg-hi: #dfe8bf; --lg-leaf: #cfdca6; --lg-leaf2: #a9c159; }
}
:where(:root[data-theme="dark"]) .logo { --lg-main: #c3dc52; --lg-sub: #d8e0c2; --lg-line: #b2cb45; --lg-hi: #dfe8bf; --lg-leaf: #cfdca6; --lg-leaf2: #a9c159; }
.foot-seed .foot-brand { display: block; margin: 0 0 24px; }
.foot-logo { height: 54px; width: auto; }

/* --- ปุ่ม Shop Now เท่ากันทุกใบ ชิดล่างการ์ด ตัวหนังสืออยู่กลาง (KB 2026-11-11) --- */
.card .card-link { flex: 1 1 auto; height: auto; }
.card .card-shop {
  flex: none; height: 46px; min-width: 140px; padding: 0 24px; margin-top: 14px;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1; white-space: nowrap;
}

/* --- รูปต้นไม้ไดคัทจริง (public/plants/<สกุล>.webp) แทนภาพวาด --- */
.hero-plants .plant-photo { width: 34%; height: auto; max-width: 260px; object-fit: contain; filter: drop-shadow(0 14px 16px rgba(23, 37, 26, 0.22)); animation: plantFloat 5s ease-in-out infinite; }
.hero-plants .plant-photo:nth-child(2) { width: 42%; max-width: 320px; margin: 0 -4%; position: relative; z-index: 1; }
.hero-plants .plant-photo:nth-child(3) { animation-delay: -2.5s; }
@media (min-width: 860px) { .hero-plants .plant-photo { max-width: 230px; } .hero-plants .plant-photo:nth-child(2) { max-width: 290px; } }
@keyframes plantFloat { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .hero-plants .plant-photo { animation: none; } }
.kind-pic .plant-photo { width: 86%; height: 86%; margin-top: 8%; object-fit: contain; }

/* --- ต้นไม้ในรูปด้านบนเลื่อนลงมา (KB 2026-11-11): .hero-media ยืดขึ้นไปเหนือกรอบ 14% ไว้ทำ parallax
   ทำให้ใบชนขอบบน เลยเว้นที่ด้านบนชดเชยส่วนนั้น --- */
.hero-plants { padding-top: 26%; }
@media (min-width: 860px) { .hero-plants { padding-top: 6.5%; } }
@media (prefers-reduced-motion: reduce) { .hero-plants { padding-top: 12%; } }
@media (prefers-reduced-motion: reduce) and (min-width: 860px) { .hero-plants { padding-top: 4%; } }
/* รูปแยกชั้น: กระถางนิ่ง ใบแกว่งรอบโคนต้นเหมือนภาพวาด */
.hero-plants .plant-layered { position: relative; display: block; aspect-ratio: 4 / 5; animation: none; }
.plant-layered img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.plant-layered .plant-leaves { transform-origin: 44% 70%; animation: leafSway 3.6s ease-in-out infinite; }
@keyframes leafSway { 0%, 100% { rotate: -2deg; } 50% { rotate: 2deg; } }
@media (prefers-reduced-motion: reduce) { .plant-layered .plant-leaves { animation: none; } }
/* ต้นขวา (Alocasia) เล็กลง 30% ตามที่ KB ขอ 2026-11-11 ฐานกระถางอยู่ที่เดิม */
.hero-plants .plant-photo:nth-child(3) { scale: 0.77; transform-origin: 50% 100%; }

/* แถบประกาศบนมือถือ: ข้อความยาวขึ้นบรรทัดใหม่ได้ ไม่ตัดด้วย … (KB 2026-11-11 เพิ่มมุก Mars/Moon) */
@media (max-width: 560px) {
  .announce { white-space: normal; text-align: center; line-height: 1.35; }
  .announce > span { overflow: visible; text-overflow: clip; text-wrap: balance; }
}
@media (max-width: 560px) { .announce .ann-part { white-space: nowrap; } }

/* ขวดเนื้อเยื่อมุมขวาล่างของรูปด้านบน เอียงขวานิดหน่อย (KB 2026-11-11) */
.hero-photo .hero-jar {
  position: absolute; right: 6%; bottom: 5%; z-index: 2; width: clamp(63px, 17.1vw, 126px); height: auto;
  rotate: 8deg; transform-origin: 50% 100%; pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35));
}
@media (min-width: 860px) { .hero-photo .hero-jar { width: 135px; right: 7%; bottom: 8%; } }
@media (max-width: 359px) { .hero-photo .hero-jar { display: none; } }

/* --- กระถางไม่ชนข้อความ LAB-PROPAGATED (KB 2026-11-11): วางต้นไม้ชิดล่าง เหนือข้อความ ~5px ทุกขนาดจอ
   --hero-eb = ระยะจากขอบล่างการ์ดถึงหัวข้อความ (JS วัดให้) ขนาดต้นไม้จำกัดด้วยความสูงที่เหลือ --- */
.hero-plants { container-type: size; align-items: flex-end; padding-top: 0; padding-bottom: calc(var(--hero-eb, 170px) + 4px); }
/* ต้นซ้าย-ขวาลอยสูงกว่าต้นกลางนิดหนึ่งเหมือนเดิม */
.hero-plants .plant-photo { width: min(34%, 50cqh); margin-bottom: 9cqh; }
.hero-plants .plant-photo:nth-child(2) { width: min(42%, 62cqh); margin-bottom: 0; }

/* --- ธีมกลางวัน / กลางคืน (KB 2026-11-11): ปุ่มบนเมนูสลับเอง ไม่งั้นตามเครื่องลูกค้า
   data-theme="light" | "dark" บน <html> จำไว้ใน localStorage("tb-theme") --- */
.theme-btn { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; font: inherit; }
.theme-btn .i-sun { display: none; }
.theme-btn .ico { transition: transform 0.5s var(--ease); }
.theme-btn:hover .ico { transform: rotate(-20deg); }
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-theme="light"])) .theme-btn .i-sun { display: block; }
  :where(:root:not([data-theme="light"])) .theme-btn .i-moon { display: none; }
}
:where(:root[data-theme="dark"]) .theme-btn .i-sun { display: block; }
:where(:root[data-theme="dark"]) .theme-btn .i-moon { display: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; }
/* ในเมนู: ปุ่มบอกว่ากดแล้วจะไปธีมไหน */
.menu-theme { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 999px; background: color-mix(in srgb, #fff 12%, transparent); color: inherit; font: inherit; font-weight: 500; cursor: pointer; }
.menu-theme .theme-btn { display: inline-flex; }
.menu-theme .ico { width: 1.1em; height: 1.1em; }
.menu-theme .t-day { display: none; }
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-theme="light"])) .menu-theme .t-day { display: inline; }
  :where(:root:not([data-theme="light"])) .menu-theme .t-night { display: none; }
}
:where(:root[data-theme="dark"]) .menu-theme .t-day { display: inline; }
:where(:root[data-theme="dark"]) .menu-theme .t-night { display: none; }
/* จอแคบมาก ปุ่มบนแถบไม่พอที่ ใช้ปุ่มในเมนูแทน */
@media (max-width: 374px) { .top-tools .theme-btn { display: none; } }

/* --- ปุ่ม Sign in + Cart บนคอม (KB 2026-11-11 แบบ seed.com): แคปซูลเข้ม ข้อความ Sign in
   + ปุ่มขาว "Cart¹" — มือถือยังเป็นไอคอนเหมือนเดิม --- */
.acct-pill { display: contents; }
.top-tools .t-label { display: none; }
@media (min-width: 860px) {
  .top-tools { align-items: center; }
  .acct-pill {
    display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; padding: 4px;
    border-radius: 999px; background: #1a2a1d; color: #f1f4e8;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 8%, transparent);
  }
  .acct-pill .tool { width: auto; height: 40px; padding: 0 18px; display: inline-flex; align-items: center; gap: 2px; font-weight: 500; font-size: 0.95rem; color: inherit; }
  .acct-pill .tool > .ico { display: none; }
  .acct-pill .t-label { display: inline; }
  .acct-pill .acct-link:hover { background: color-mix(in srgb, #fff 12%, transparent); transform: none; }
  .acct-pill .cart-link { background: #f6f7ee; color: #17251a; padding: 0 20px; }
  .acct-pill .cart-link:hover { background: #fff; color: #17251a; transform: none; }
  .acct-pill .badge {
    position: static; align-self: flex-start; margin-top: 7px; min-width: 0; padding: 0;
    background: none; color: inherit; font-size: 0.68rem; font-weight: 600; line-height: 1;
  }
  .top.over-hero .acct-pill .cart-link:hover, .top.menu-open .acct-pill .cart-link:hover { background: #fff; }
}
@media (prefers-color-scheme: dark) and (min-width: 860px) {
  :where(:root:not([data-theme="light"])) .acct-pill { background: color-mix(in srgb, #fff 9%, #0b150d); }
}
@media (min-width: 860px) { :where(:root[data-theme="dark"]) .acct-pill { background: color-mix(in srgb, #fff 9%, #0b150d); } }

/* --- เมนูบนคอมแยกเป็น 2 แคปซูลแบบ seed.com (KB 2026-11-12): ซ้าย = โลโก้ + เมนู, ขวา = ธีม/ค้นหา/Sign in/Cart
   มือถือยังเป็นแคปซูลเดียวเหมือนเดิม --- */
.top-left { display: contents; }
@media (min-width: 860px) {
  .top, .top.is-scrolled, .top.over-hero:not(.menu-open), .top.menu-open {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    width: min(calc(var(--page-w) + 20px), calc(100% - 28px)); margin: 12px auto 0;
    padding: 0; background: transparent; border-color: transparent; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .top-left, .top-tools {
    display: flex; align-items: center; border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    box-shadow: 0 10px 30px -22px rgba(23, 37, 26, 0.5);
    transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  }
  .top-left { gap: 34px; padding: 8px 30px 8px 22px; }
  .top-tools { gap: 2px; padding: 5px 5px 5px 8px; }
  .top.is-scrolled .top-left, .top.is-scrolled .top-tools { background: color-mix(in srgb, var(--bg) 88%, transparent); box-shadow: 0 14px 34px -20px rgba(23, 37, 26, 0.55); }
  .top.over-hero:not(.menu-open) .top-left, .top.over-hero:not(.menu-open) .top-tools, .top.menu-open .top-left, .top.menu-open .top-tools {
    background: color-mix(in srgb, #3a4a34 55%, transparent);
    border-color: color-mix(in srgb, #fff 14%, transparent);
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.5);
  }
  .top .acct-pill { margin-left: 4px; }
}

/* --- จอคอมกว้าง: ขยายหน้าให้ขอบซ้าย-ขวาแคบลง การ์ดต้นไม้ 5 ใบต่อแถว (KB 2026-11-12) --- */
:root { --page-w: 1160px; }
@media (min-width: 1280px) {
  :root { --page-w: min(1440px, calc(100vw - 64px)); }
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 18px; }
}

/* --- หน้า Account settings (KB 2026-11-12, แนวเดียวกับหน้า Settings ของ Seed) -------------- */
:root { --acct-card: #fbfcf6; --danger: #b3261e; }
@media (prefers-color-scheme: dark) { :root:where(:not([data-theme="light"])) { --acct-card: var(--card); --danger: #f2a49b; } }
:root:where([data-theme="dark"]) { --acct-card: var(--card); --danger: #f2a49b; }

.acct { max-width: 1040px; margin: 0 auto; }
.acct-hero { text-align: center; padding: 18px 0 30px; }
.acct-avatar {
  position: relative; display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
  background: var(--lime); color: var(--lime-ink); font: 500 2.6rem/1 var(--display); letter-spacing: -0.03em;
  box-shadow: 0 18px 36px -22px rgba(23, 37, 26, 0.6);
}
.acct-via {
  position: absolute; right: -4px; bottom: -2px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.5);
}
.acct-via .ico { width: 16px; height: 16px; }
.acct-hero h1 { margin: 16px 0 2px; font-size: clamp(1.7rem, 5vw, 2.4rem); }
.acct-email { margin: 0; color: var(--muted); font-size: 1.02rem; word-break: break-all; }
.acct-meta { margin: 6px 0 0; color: var(--muted); font-size: 0.86rem; }

.acct-layout { display: grid; gap: 18px; }
.acct-main { display: grid; gap: 18px; min-width: 0; }
.acct-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.acct-nav::-webkit-scrollbar { display: none; }
.acct-nav a {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; font-size: 0.9rem; white-space: nowrap; background: var(--acct-card);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.acct-nav a:hover { border-color: var(--ink); }
.acct-nav .ico { width: 17px; height: 17px; color: var(--muted); }
@media (min-width: 900px) {
  .acct-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
  .acct-nav { position: sticky; top: 104px; display: grid; gap: 4px; margin: 0; padding: 0; overflow: visible; }
  .acct-nav a { border-color: transparent; background: transparent; padding: 10px 14px; font-size: 0.95rem; }
  .acct-nav a:hover { background: var(--surface); border-color: transparent; }
}

.acct-card {
  scroll-margin-top: 100px; padding: 22px 18px; border-radius: var(--radius);
  background: var(--acct-card); border: 1px solid var(--line);
}
@media (min-width: 640px) { .acct-card { padding: 28px 32px; } }
.acct-card h2 { margin: 0 0 20px; font-family: var(--sans); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.acct-card > .flash { margin: -6px 0 18px; }
.acct-lead { margin: -12px 0 18px; color: var(--muted); }
.acct-note { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; font-size: 0.9rem; color: var(--muted); }
.acct-note .ico { flex: none; width: 18px; height: 18px; margin-top: 2px; stroke: none; }
.acct-note .ico:not(.g) { stroke: currentColor; }
.acct-note strong { color: var(--ink); font-weight: 600; }

/* ช่องกรอกแบบป้ายลอยบนเส้นขอบ */
.ff-grid { display: grid; gap: 22px 18px; }
.ff-grid + .ff-grid { margin-top: 22px; }
@media (min-width: 640px) { .ff-grid { grid-template-columns: 1fr 1fr; } .ff-grid.one { grid-template-columns: 1fr; } }
.ff { position: relative; display: block; }
.ff-label {
  position: absolute; left: 12px; top: 0; translate: 0 -50%; padding: 0 6px; background: var(--acct-card);
  font-size: 0.8rem; font-weight: 500; color: var(--ink); pointer-events: none; line-height: 1.2;
}
.ff input, .ff textarea {
  display: block; width: 100%; font: inherit; color: var(--ink); background: transparent;
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: 6px; padding: 16px 16px 14px; min-height: 56px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.ff textarea { resize: vertical; min-height: 0; }
.ff input::placeholder, .ff textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.ff input:focus-visible, .ff textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ff.is-ro input { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--muted); cursor: default; }
.ff.is-ro input:focus-visible { box-shadow: none; border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.ff input[type="date"] { color-scheme: inherit; }

.acct-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.acct-actions .btn { min-width: 150px; justify-content: center; }
.acct-actions .btn:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: none; filter: grayscale(0.4); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
:where(:root[data-theme="dark"]) .btn-danger { background: var(--danger); border-color: var(--danger); color: #2a0e0b; }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) .btn-danger { background: var(--danger); border-color: var(--danger); color: #2a0e0b; } }
.check { display: flex; gap: 10px; align-items: center; margin-top: 16px; font-size: 0.92rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--deep); }

/* ที่อยู่จัดส่ง */
.addr-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .addr-list { grid-template-columns: 1fr 1fr; } }
.addr { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.addr.is-default { border-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.addr-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.addr-head strong { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.addr-head .ico { width: 17px; height: 17px; color: var(--muted); }
.addr-badge { padding: 2px 10px; border-radius: 999px; background: var(--lime); color: var(--lime-ink); font-size: 0.75rem; font-weight: 600; }
.addr p { margin: 8px 0 10px; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.addr-tools { display: flex; gap: 16px; font-size: 0.88rem; }
.addr-tools form { margin: 0; }
.link-btn.danger, .acct-rows .danger { color: var(--danger); }
.addr-edit { margin-top: 6px; }
.addr-edit > summary, .addr-add > summary {
  cursor: pointer; list-style: none; display: inline-flex; gap: 8px; align-items: center; font-size: 0.88rem; text-decoration: underline;
}
.addr-edit > summary::-webkit-details-marker, .addr-add > summary::-webkit-details-marker { display: none; }
.addr-edit[open] > summary { margin-bottom: 18px; }
.addr-edit .ff-label { background: var(--bg); }
.addr-add > summary {
  text-decoration: none; padding: 11px 20px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--ink) 35%, transparent); font-size: 0.95rem;
}
.addr-add > summary:hover { border-style: solid; }
.addr-add > summary .ico { width: 17px; height: 17px; }
.addr-add[open] > summary { margin-bottom: 22px; }
.acct-empty { display: flex; gap: 10px; align-items: center; margin: 0 0 18px; color: var(--muted); }
.acct-empty .ico { flex: none; width: 22px; height: 22px; }

/* การชำระเงิน */
.acct-soft { padding: 18px 20px; border-radius: 12px; background: var(--surface); }
.acct-soft p { margin: 0 0 10px; font-size: 0.95rem; }
.acct-soft .pay-icons { margin-top: 14px; justify-content: flex-start; }

/* ออเดอร์ */
.acct-orders { margin: 0; }
.acct-orders a { background: var(--bg); transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.acct-orders a:hover { border-color: var(--ink); transform: translateY(-1px); }
.acct-empty-orders { text-align: center; color: var(--muted); padding: 4px 0 8px; }
.acct-empty-orders .leaf-art { width: 96px; height: 96px; margin: 0 auto; --slit: var(--acct-card); }
.acct-empty-orders p { margin: 6px 0 16px; }

/* แถวลิงก์ (Get support, Terms, ... Log out, Delete account) */
.acct-rows-card { padding: 8px; background: var(--surface); border-color: transparent; }
@media (min-width: 640px) { .acct-rows-card { padding: 8px; } }
.acct-rows { list-style: none; margin: 0; padding: 0; }
.acct-rows a, .acct-rows button {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 14px; border-radius: 12px;
  background: none; border: 0; font: inherit; font-size: 1rem; color: inherit; text-decoration: none; cursor: pointer; text-align: left;
  transition: background 0.2s var(--ease);
}
.acct-rows a:hover, .acct-rows button:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.acct-rows .ico { flex: none; width: 21px; height: 21px; }
.acct-rows span:not(.row-end) { flex: 1; }
.acct-rows .row-end { color: var(--muted); display: inline-flex; }
.acct-rows .row-end .ico { width: 18px; height: 18px; }

/* กล่องยืนยันลบบัญชี */
.acct-dialog {
  width: min(460px, calc(100% - 32px)); padding: 26px 24px; border: 1px solid var(--line); border-radius: 22px;
  background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}
.acct-dialog::backdrop { background: rgba(10, 18, 12, 0.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.acct-dialog h2 { margin: 0 0 10px; font-size: 1.4rem; }
.acct-dialog p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.acct-dialog .acct-actions .btn { flex: 1; min-width: 0; }

/* หน้าสั่งซื้อ: ปุ่มเลือกที่อยู่ที่บันทึกไว้ */
.saved-addr { display: grid; gap: 8px; }
.saved-addr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.saved-addr .chip {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 0.88rem; cursor: pointer;
}
.saved-addr .chip.on { background: var(--deep); border-color: var(--deep); color: var(--deep-ink); }

/* หน้า Cookies */
.cookie-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.94rem; }
.cookie-table th, .cookie-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cookie-table th { font-weight: 600; }
.cookie-table code { font-size: 0.88rem; background: var(--surface); padding: 2px 6px; border-radius: 6px; }
.acct-note.plain { display: block; }
.acct-note.plain strong { white-space: nowrap; }
.acct-orders a > span:first-child strong { white-space: nowrap; }
@media (max-width: 639px) {
  .acct-orders a { grid-template-columns: 1fr auto; }
  .acct-orders a .pill { grid-row: 2; grid-column: 1; justify-self: start; }
  .acct-orders a > strong { grid-row: 1; grid-column: 2; }
  .acct-form .acct-actions { flex-wrap: nowrap; }
  .acct-form .acct-actions .btn { flex: 1; min-width: 0; padding-inline: 12px; }
  .acct-dialog .acct-actions { flex-direction: column; }
}
/* บัญชีที่ใช้ล็อกอิน: ป้ายสีตามแบรนด์ของแต่ละเจ้า */
.acct-provider { display: flex; gap: 14px; align-items: center; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--surface); }
.prov-badge { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 0.88rem; border: 1px solid transparent; }
.prov-badge .ico { width: 18px; height: 18px; stroke: none; }
.prov-google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.prov-apple { background: #000; color: #fff; }
.prov-facebook { background: #1877f2; color: #fff; }
.prov-line { background: #06c755; color: #fff; }
.prov-text { display: grid; font-size: 0.9rem; line-height: 1.4; }
.acct-note.plain a { color: inherit; }
.acct-via.prov-apple, .acct-via.prov-facebook, .acct-via.prov-line { border-color: transparent; }
/* ช่องทางล็อกอิน: Connect / Disconnect ทีละเจ้า */
.acct-sub { margin: 26px 0 4px; font: 600 1rem/1.3 var(--sans); letter-spacing: -0.01em; }
.prov-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.prov-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.prov-row.is-on { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.prov-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid transparent; }
.prov-icon .ico { width: 20px; height: 20px; stroke: none; }
.prov-row .prov-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.prov-row .prov-text strong { font-weight: 600; }
.prov-state { font-size: 0.84rem; color: var(--muted); }
.prov-state.on { color: var(--ink); }
.prov-state.on::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #3fae5a; vertical-align: 1px; }
.prov-email { font-size: 0.84rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prov-row form { margin: 0; }
.btn-sm { padding: 8px 16px; font-size: 0.86rem; min-width: 0; }
.btn-sm:disabled { opacity: 0.4; cursor: default; transform: none; box-shadow: none; }
:where(:root[data-theme="dark"]) .prov-row .btn-ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
:where(:root[data-theme="dark"]) .prov-icon.prov-apple { border-color: #3a3a3a; }
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-theme="light"])) .prov-row .btn-ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 40%, transparent); }
  :where(:root:not([data-theme="light"])) .prov-icon.prov-apple { border-color: #3a3a3a; }
}

/* =========================================================================
   รอบ 4 (KB 2026-11-12): แถบเมนูเป็นไอคอนมากขึ้น ตัวหนังสือน้อยลง
   KB เลือกแบบ A: มือถือเหลือ ค้นหา / ตะกร้า / เมนู ส่วนภาษา ธีม บัญชี อยู่ในแผงเมนู
   ========================================================================= */
.wide-only { display: none !important; }
.nav-shop { display: inline-flex; align-items: center; gap: 2px; }
.nav-shop .chev { width: 1em; height: 1em; transition: transform 0.35s var(--ease); }
.menu-open .nav-shop .chev { transform: rotate(180deg); }
.lang-code { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; }

/* ไอคอนตะกร้า: จุดตัวเลขเล็ก ๆ มุมขวาบน */
.cart-link .badge {
  top: 4px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; font: 600 0.66rem/1 var(--sans); font-style: normal;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--bg) 80%, transparent);
}

/* --- แผงเมนูมือถือ: ไทล์ไอคอน 3 ช่อง + แถวตั้งค่า (ภาษา / ธีม) --- */
.menu-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 2px 2px 8px; }
.menu-quick a {
  display: grid; justify-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: 20px;
  background: color-mix(in srgb, #fff 11%, transparent); color: inherit; text-decoration: none;
  font-size: 0.85rem; font-weight: 500; transition: background 0.25s ease;
}
.menu-quick a:hover { background: color-mix(in srgb, #fff 18%, transparent); }
.menu-quick .ico { width: 24px; height: 24px; }
.menu-prefs { display: flex; gap: 8px; padding: 0 2px 14px; margin-bottom: 4px; border-bottom: 1px solid color-mix(in srgb, #fff 12%, transparent); }
.pref-lang {
  flex: 1; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 12px 0 16px; border-radius: 999px;
  background: color-mix(in srgb, #fff 11%, transparent); color: inherit; text-decoration: none; font-weight: 500;
}
.pref-lang span { flex: 1; }
.pref-lang .ico { width: 20px; height: 20px; }
.pref-lang .ico:last-child { opacity: 0.6; }
.pref-theme {
  display: flex; gap: 2px; height: 46px; padding: 4px; border: 0; border-radius: 999px; cursor: pointer;
  background: color-mix(in srgb, #fff 11%, transparent); color: inherit;
}
.pref-theme i { display: grid; place-items: center; width: 44px; border-radius: 999px; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.pref-theme .ico { width: 20px; height: 20px; }
.pref-theme:only-child { flex: 1; }
.pref-theme:only-child i { flex: 1; }
.pref-theme .pt-sun { background: var(--lime); color: var(--lime-ink); }
@media (prefers-color-scheme: dark) {
  :where(:root:not([data-theme="light"])) .pref-theme .pt-sun { background: none; color: inherit; }
  :where(:root:not([data-theme="light"])) .pref-theme .pt-moon { background: var(--lime); color: var(--lime-ink); }
}
:where(:root[data-theme="dark"]) .pref-theme .pt-sun { background: none; color: inherit; }
:where(:root[data-theme="dark"]) .pref-theme .pt-moon { background: var(--lime); color: var(--lime-ink); }

/* --- คอม: ไอคอนล้วน ภาษา / ธีม / ค้นหา + แคปซูลเข้ม (บัญชี + ตะกร้าครีม) --- */
@media (min-width: 860px) {
  .wide-only { display: inline-flex !important; align-items: center; justify-content: center; }
  .menu-quick, .menu-prefs { display: none; }
  .top-left { gap: 30px; }
  .main-nav { gap: 26px; }
  .lang-btn { width: auto; gap: 5px; padding: 0 12px 0 10px; }
  .acct-pill .tool { width: 40px; padding: 0; justify-content: center; }
  .acct-pill .tool > .ico { display: block; width: 21px; height: 21px; }
  .acct-pill .cart-link { width: auto; gap: 6px; padding: 0 14px 0 13px; }
  .acct-pill .cart-link .badge {
    position: static; align-self: center; margin: 0; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: #17251a; color: #f1f4e8; font-size: 0.7rem; box-shadow: none;
  }
}

/* แถบ Add to cart ไม่ชนปุ่ม Chat (KB 2026-11-12): คอม = แถบอยู่ซ้ายล่าง (ใส่ไว้ที่ .buy-bar ด้านบน),
   มือถือ = แถบเต็มความกว้าง เลยยกปุ่ม Chat ขึ้นเหนือแถบตอนแถบโผล่ */
@media (max-width: 859px) {
  .chat { transition: bottom 0.4s var(--ease); }
  body:has(.buy-bar.show) .chat:not(.is-open) { bottom: calc(102px + env(safe-area-inset-bottom)); }
}
