/* site.css - Plukplearn เว็บใหม่ · โทนตามดีไซน์ Claude */
:root{
  --green-deep:#2C5E43; --green:#3E8E63; --green-lt:#4E9A6B; --green-soft:#E8F0E9;
  --cream:#F1F1EC; --cream2:#F8F6F0; --ink:#22302A; --muted:#4C5A50;
  --red:#E5533D; --gold:#C2913C; --line:#E4E7E0;
  --r-pill:99px; --r-card:16px; --wrap:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:'Anuphan',system-ui,-apple-system,sans-serif;background:var(--cream);color:var(--ink);line-height:1.55;font-size:16px}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
h1,h2,h3,h4{margin:0;letter-spacing:-.3px;line-height:1.25}
.muted{color:var(--muted)} .small{font-size:12.5px}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}

/* ปุ่ม */
.btn{display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 24px;border-radius:14px;
  background:linear-gradient(135deg,var(--green-deep),var(--green));color:#fff;font-weight:700;font-size:15.5px;
  border:none;cursor:pointer;transition:transform .12s,box-shadow .12s;box-shadow:0 8px 20px rgba(44,94,67,.22)}
.btn:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(44,94,67,.3)}
.btn.ghost{background:#fff;color:var(--green-deep);border:1.5px solid var(--line);box-shadow:none}
.btn.light{background:#fff;color:var(--green-deep);box-shadow:none}

/* ===== NAV ===== */
.nav{position:sticky;top:0;z-index:50;background:rgba(248,246,240,.9);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.nav-in{max-width:var(--wrap);margin:0 auto;padding:12px 24px;display:flex;align-items:center;gap:22px}
.brand{flex-shrink:0;display:flex;align-items:center}
.brand img{height:38px;width:auto;display:block}
.nav-links{display:flex;gap:6px;flex-shrink:0}
.nav-links a{padding:8px 14px;border-radius:var(--r-pill);font-weight:600;font-size:14.5px;color:var(--muted)}
.nav-links a:hover{background:var(--green-soft);color:var(--green-deep)}
.nav-links a.on{background:var(--green-soft);color:var(--green-deep)}
.nav-right{margin-left:auto;display:flex;align-items:center;gap:12px}
.nav-search{display:flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--line);border-radius:var(--r-pill);padding:8px 15px;min-width:200px}
.nav-search span{opacity:.6;font-size:14px}
.nav-search input{border:none;outline:none;background:none;font-family:inherit;font-size:14px;width:100%;color:var(--ink)}
.lang-switch{display:flex;background:#fff;border:1px solid var(--line);border-radius:var(--r-pill);overflow:hidden}
.lang-switch a{padding:7px 12px;font-size:13px;font-weight:700;color:var(--muted)}
.lang-switch a.on{background:var(--green-deep);color:#fff}
.nav-acct{width:40px;height:40px;border-radius:50%;background:#fff;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0}
.nav-acct-on{background:linear-gradient(135deg,var(--green-deep),var(--green));color:#fff;border:none;font-size:16px;font-weight:700}
.nav-burger{display:none;width:40px;height:40px;border-radius:12px;border:none;background:none;cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:4px;flex-shrink:0;padding:0}
.nav-burger i{display:block;width:18px;height:2px;border-radius:2px;background:var(--ink)}

/* ===== เมนูมือถือ (drawer เลื่อนจากขวา — ดีไซน์ 1g) ===== */
.scrim{position:fixed;inset:0;background:rgba(34,48,42,.45);backdrop-filter:blur(2px);z-index:98;opacity:0;pointer-events:none;transition:opacity .2s}
.scrim.open{opacity:1;pointer-events:auto}
.drawer{position:fixed;top:0;right:0;bottom:0;width:290px;max-width:86vw;background:var(--cream);z-index:99;box-shadow:-16px 0 40px rgba(34,48,42,.25);display:flex;flex-direction:column;overflow-y:auto;transform:translateX(105%);transition:transform .22s ease;padding-bottom:14px}
.drawer.open{transform:none}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 12px}
.drawer-head img{height:28px;width:auto;display:block}
.drawer-x{width:34px;height:34px;border-radius:11px;background:#fff;border:none;box-shadow:0 4px 12px rgba(34,48,42,.05);font-size:14px;color:var(--muted);cursor:pointer}
.drawer-user{display:flex;align-items:center;gap:10px;background:#fff;border-radius:15px;padding:11px 12px;margin:2px 14px 12px;box-shadow:0 4px 12px rgba(34,48,42,.05)}
.drawer-ava{width:40px;height:40px;border-radius:50%;background:linear-gradient(140deg,var(--green-lt),var(--green-deep));color:#fff;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:700;flex-shrink:0;overflow:hidden}
.drawer-ava img{width:100%;height:100%;object-fit:cover}
.drawer-user-t{flex:1;min-width:0;display:flex;flex-direction:column}
.drawer-user-t b{font-size:13.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drawer-user-t i{font-style:normal;font-size:10.5px;color:var(--muted);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.drawer-go{color:#9AA69C;font-size:17px}
.drawer-menu{background:#fff;border-radius:15px;box-shadow:0 4px 12px rgba(34,48,42,.05);overflow:hidden;margin:0 14px}
.drawer-row{display:flex;align-items:center;gap:11px;padding:13px;border-top:1px solid var(--cream)}
.drawer-row:first-child{border-top:none}
.drawer-row span{font-size:16px}
.drawer-row b{flex:1;font-size:13.5px;font-weight:700}
.drawer-row.on{background:var(--green-soft)}
.drawer-row.on b{color:var(--green-deep);font-weight:800}
.drawer-row em{font-style:normal;color:#9AA69C;font-size:17px}
.drawer-badge{font-style:normal;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:var(--red);color:#fff;font-size:10.5px;font-weight:700;display:flex;align-items:center;justify-content:center}
.drawer-cats{padding:2px 13px 11px 42px;display:flex;flex-direction:column;gap:2px;border-top:1px dashed var(--cream)}
.drawer-cats a{font-size:12.5px;color:var(--muted);padding:5px 0}
.drawer-pc{display:block;border-radius:15px;padding:13px;background:linear-gradient(135deg,var(--green-deep),var(--green));color:#fff;box-shadow:0 8px 20px rgba(44,94,67,.22);position:relative;overflow:hidden;margin:12px 14px 0}
.drawer-pc-ghost{position:absolute;right:-8px;top:-12px;font-size:60px;opacity:.15;line-height:1}
.drawer-pc b{display:block;font-size:13.5px;font-weight:800;position:relative}
.drawer-pc i{display:block;font-style:normal;font-size:10.5px;opacity:.9;line-height:1.5;margin-top:3px;position:relative}
.drawer-pc-btn{display:inline-flex;background:#fff;color:var(--green-deep);font-size:11.5px;font-weight:800;padding:7px 12px;border-radius:9px;margin-top:9px;position:relative}
.drawer-foot{display:flex;align-items:center;gap:8px;padding:14px 18px 6px;font-size:12px;color:var(--muted)}
.drawer-foot span{color:#D8DCD4}
.drawer-foot a.on{font-weight:700;color:var(--green-deep)}
.drawer-out{margin-left:auto;color:#C0584A;font-weight:700}

/* ===== HERO (ดีไซน์ 2a — ซ้ายข้อความ + ขวาแบนเนอร์รูปจริง) ===== */
.hero{background:linear-gradient(180deg,var(--cream2),var(--cream))}
.hero-in{max-width:var(--wrap);margin:0 auto;padding:44px 24px 8px;display:flex;gap:40px;align-items:center}
.hero-text{flex:0 0 380px}
.eyebrow{display:inline-flex;font-size:11px;font-weight:700;letter-spacing:1.5px;color:var(--green);background:var(--green-soft);padding:6px 14px;border-radius:99px}
.hero-text h1{font-size:40px;font-weight:800;letter-spacing:-.8px;line-height:1.2;margin-top:16px}
.hero-text h1 em{font-style:normal;color:var(--green);position:relative}
.lead{font-size:15px;color:var(--muted);line-height:1.65;margin:12px 0 20px;max-width:460px}
.hero-cta{display:flex;gap:10px;flex-wrap:wrap}
.hero-cta2{box-shadow:0 4px 12px rgba(34,48,42,.05)!important}
.hero-img{flex:1;min-width:0;border-radius:22px;overflow:hidden;box-shadow:0 4px 12px rgba(34,48,42,.05);display:block;transition:transform .12s,box-shadow .12s}
.hero-img:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(44,94,67,.18)}
.hero-img img{width:100%;display:block}

/* ===== จุดขาย 3 ข้อ ===== */
.perks{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:22px}
.perk{background:#fff;border-radius:15px;padding:14px 16px;display:flex;align-items:center;gap:12px;box-shadow:0 4px 12px rgba(34,48,42,.05)}
.perk span{font-size:24px;flex-shrink:0}
.perk p{margin:0;font-size:13px;font-weight:700;color:var(--ink);line-height:1.4}

/* ===== SECTION HEAD ===== */
.sec-head{display:flex;align-items:baseline;justify-content:space-between;margin:48px 0 18px}
.sec-head h2{font-size:24px;font-weight:700}
.sec-head a{font-size:14px;font-weight:600;color:var(--green)}

/* ===== หมวดหมู่ (ดีไซน์ 2a: การ์ด gradient + อิโมจิโกสต์ · 1b มือถือ: การ์ดขาวแถบสี) ===== */
/* การ์ดหมวดหมู่ (เรฟใหม่ 2026-07-17): 3 คอลัมน์ · ชื่อใหญ่โทนสีหมวดซ้ายบน + แท็กไลน์ + ปุ่ม "ดูสินค้า →"
   มีรูปอัปโหลด (.catx-img) = รูปเป็นพื้นหลังเต็มการ์ด (ทำรูปเว้นซ้ายไว้) · ไม่มีรูป = gradient สี+อิโมจิแบบเดิม */
.catx-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.catx{position:relative;border-radius:22px;overflow:hidden;aspect-ratio:1.5;display:block;
  background:linear-gradient(135deg,var(--cx1),var(--cx2));box-shadow:0 4px 12px rgba(34,48,42,.05);transition:transform .12s,box-shadow .12s}
.catx:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(34,48,42,.16)}
.catx:nth-child(4n+1){--cx1:#2C5E43;--cx2:#4E9A6B;--cxsoft:#E8F0E9}
.catx:nth-child(4n+2){--cx1:#7D5233;--cx2:#B07A52;--cxsoft:#F0E7DF}
.catx:nth-child(4n+3){--cx1:#9A6F24;--cx2:#C2913C;--cxsoft:#F4ECD9}
.catx:nth-child(4n+4){--cx1:#2E637F;--cx2:#3E7FA8;--cxsoft:#E4EEF4}
.catx-ghost{position:absolute;right:-12px;bottom:-18px;font-size:92px;opacity:.2;line-height:1}
.catx-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.catx-txt{position:absolute;inset:16px 14px 15px 18px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;color:#fff;z-index:2}
.catx-txt b{font-size:19px;line-height:1.16;font-weight:800;letter-spacing:-.3px;max-width:64%}
.catx-sub{font-size:11.5px;line-height:1.5;opacity:.92;max-width:62%;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.catx-btn{margin-top:auto;display:inline-block;background:#fff;color:var(--cx1);
  font-size:12px;font-weight:700;padding:7px 14px;border-radius:9px;box-shadow:0 2px 6px rgba(20,32,24,.14)}
/* มีรูป: พื้นสว่าง → ชื่อสีโทนหมวด ตัวหนังสือเข้ม ปุ่มทึบสีหมวด */
.catx-img .catx-txt{color:#3A4A40}
.catx-img .catx-txt b{color:var(--cx1)}
.catx-img .catx-sub{opacity:1;color:#54604F}
.catx-img .catx-btn{background:var(--cx1);color:#fff}

/* ===== PRODUCTS ===== */
.prod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px}
.pcard{background:#fff;border-radius:var(--r-card);overflow:hidden;border:1px solid var(--line);transition:transform .12s,box-shadow .12s;display:flex;flex-direction:column}
.pcard:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(34,48,42,.1)}
.pcard-img{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;overflow:hidden}
.pcard-img img{width:100%;height:100%;object-fit:cover}
.pcard-emoji{font-size:86px;filter:drop-shadow(0 8px 14px rgba(34,48,42,.14));transition:transform .18s}
.pcard:hover .pcard-emoji{transform:scale(1.06) rotate(-2deg)}
.pcard-body{padding:13px 15px 16px}
.pcard-name{font-weight:600;font-size:14.5px;line-height:1.4;min-height:40px;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pcard-meta{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:11.5px;margin:6px 0 0}
.star{color:var(--gold);font-weight:700}
.pcard-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px}
.pcard-price{color:var(--green-deep);font-weight:800;font-size:18px;letter-spacing:-.2px}
.pcard-cart{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,var(--green-deep),var(--green));display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:0 8px 20px rgba(44,94,67,.3);transition:transform .12s}
.pcard:hover .pcard-cart{transform:scale(1.08)}

/* ===== BLOG ===== */
.blog-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.bcard{background:#fff;border-radius:var(--r-card);overflow:hidden;border:1px solid var(--line);transition:transform .12s,box-shadow .12s}
.bcard:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(34,48,42,.1)}
.bcard-img{aspect-ratio:16/10;background:var(--green-soft);display:flex;align-items:center;justify-content:center;font-size:44px}
.bcard-img img{width:100%;height:100%;object-fit:cover}
.bcard-body{padding:14px 16px 18px}
.bcard-title{font-weight:700;font-size:15px;line-height:1.4;margin-top:5px}

/* ===== CTA สมัครสมาชิก (2a: แถบนอน · มือถือ: การ์ดตั้ง) ===== */
.cta{background:linear-gradient(135deg,var(--green-deep),var(--green));border-radius:22px;padding:28px 34px;color:#fff;margin-top:20px;position:relative;overflow:hidden;box-shadow:0 14px 30px rgba(44,94,67,.28);display:flex;align-items:center;gap:30px;text-align:left}
.cta-ghost{position:absolute;right:-14px;top:-20px;font-size:110px;opacity:.14;line-height:1}
.cta-body{flex:1;position:relative}
.cta-badge{display:inline-flex;background:rgba(255,255,255,.2);padding:5px 13px;border-radius:var(--r-pill);font-size:11.5px;font-weight:700;letter-spacing:.4px}
.cta h2{font-size:26px;font-weight:800;margin:10px 0 6px}
.cta p{font-size:14px;margin:0;opacity:.92;line-height:1.55;max-width:640px}
.cta-btn{flex-shrink:0;position:relative;font-weight:800}

/* ===== FOOTER (โทนเขียวเข้มตามดีไซน์) ===== */
.foot{background:var(--green-deep);color:#fff;margin-top:64px;padding:40px 0 0}
.foot-in{max-width:var(--wrap);margin:0 auto;padding:0 24px 30px;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px}
.foot-logo{display:flex;align-items:center;gap:9px;font-size:16px;color:#fff}
.foot-logo b{font-weight:800}
.foot-logo-ic{width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0}
.foot-tag{font-size:12.5px;opacity:.75;line-height:1.6;margin:10px 0 0;max-width:300px}
.foot-col h4{font-size:12.5px;color:#fff;margin-bottom:10px;letter-spacing:.5px}
.foot-col a{display:block;padding:4px 0;font-size:13px;color:rgba(255,255,255,.82)}
.foot-col a:hover{color:#fff}
.foot-copy{border-top:1px solid rgba(255,255,255,.14);padding:16px 24px;text-align:center;font-size:11.5px;color:rgba(255,255,255,.5)}

/* ===== BREADCRUMB ===== */
.crumb{padding:22px 0 4px;font-size:13.5px;color:var(--muted)}
.crumb a{color:var(--green)}
.crumb span{color:var(--ink);font-weight:600}

/* ===== SHOP LIST ===== */
.shop-membernote{background:var(--green-soft);color:var(--green-deep);border-radius:12px;padding:11px 16px;font-size:14px;font-weight:600;margin:10px 0 16px}
.shop-topbar{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:18px}
.shop-h1{font-size:26px;font-weight:700}
.sort-box{font-size:13.5px;color:var(--muted);display:flex;align-items:center;gap:8px}
.sort-box select{border:1px solid var(--line);border-radius:10px;padding:9px 12px;font-family:inherit;font-size:14px;background:#fff;color:var(--ink)}
.shop-layout{display:grid;grid-template-columns:250px 1fr;gap:26px;align-items:start;padding-bottom:20px}
.shop-side{background:#fff;border:1px solid var(--line);border-radius:var(--r-card);padding:18px 18px 20px;position:sticky;top:80px}
.side-block{margin-bottom:20px}
.side-block h4{font-size:14px;font-weight:700;margin-bottom:10px}
.side-cat{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:10px;font-size:14px;color:var(--muted);font-weight:500}
.side-cat:hover{background:var(--cream)}
.side-cat.on{background:var(--green-soft);color:var(--green-deep);font-weight:700}
.side-count{font-size:12px;color:var(--muted)}
.price-row{display:flex;align-items:center;gap:8px}
.price-row input{width:100%;border:1px solid var(--line);border-radius:10px;padding:9px 10px;font-family:inherit;font-size:14px}
.side-radio{display:flex;align-items:center;gap:8px;padding:6px 0;font-size:14px;cursor:pointer}
.side-clear{display:block;text-align:center;margin-top:10px;font-size:13px;color:var(--muted)}
.shop-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
.shop-empty{background:#fff;border:1px dashed var(--line);border-radius:var(--r-card);padding:60px 20px;text-align:center;color:var(--muted)}
.pcard-img{position:relative}
.pcard-out{position:absolute;top:10px;left:10px;background:rgba(192,88,74,.92);color:#fff;font-size:11.5px;font-weight:700;padding:4px 9px;border-radius:8px}

/* ===== PRODUCT DETAIL (ดีไซน์ 2c — แกลเลอรี 460px + ข้อมูลซื้อ) ===== */
.prod-detail{display:grid;grid-template-columns:minmax(0,460px) 1fr;gap:36px;padding:6px 0 0;align-items:start}
.pd-main{aspect-ratio:1/1;border-radius:22px;display:flex;align-items:center;justify-content:center;overflow:hidden;position:sticky;top:0px;box-shadow:0 4px 12px rgba(34,48,42,.05)}
.pd-main img{width:100%;height:100%;object-fit:cover}
.pd-emoji{font-size:150px;filter:drop-shadow(0 14px 22px rgba(34,48,42,.16))}
.pd-name{font-size:26px;font-weight:800;letter-spacing:-.4px;line-height:1.3}
.pd-sub{font-size:13.5px;color:var(--muted);margin-top:5px;line-height:1.55}
.pd-meta{display:flex;align-items:center;gap:9px;margin:10px 0;font-size:13.5px}
.pd-meta b{font-weight:700;color:var(--muted)}
.pd-price{color:var(--green-deep);font-weight:800;font-size:32px;letter-spacing:-.4px;margin:6px 0 14px}
.pd-price s{color:#A4AFA6;font-weight:500;font-size:.55em;margin-left:8px}
.pd-member{display:flex;gap:13px;background:var(--green-soft);border-radius:16px;padding:14px 16px;margin-bottom:18px}
.pd-member-ic{width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,var(--green-deep),var(--green));display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.pd-member-title{font-weight:800;color:var(--green-deep);font-size:14px}
.pd-member-sub{font-size:12.5px;color:#3D5A48;margin-top:2px;line-height:1.55}
.pd-qtyrow{display:flex;align-items:center;gap:14px;margin-top:16px}
.pd-qty{display:inline-flex;align-items:center;border:1.5px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.pd-qty button{width:38px;height:40px;border:none;background:none;font-size:19px;color:var(--green-deep);font-weight:500;cursor:pointer;font-family:inherit;line-height:1}
.pd-qty input{width:44px;border:none;outline:none;font-family:inherit;font-size:14.5px;font-weight:700;text-align:center;padding:0;-moz-appearance:textfield;appearance:textfield}
.pd-qty input::-webkit-outer-spin-button,.pd-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.pd-actions{display:flex;gap:11px;margin-top:18px;max-width:460px}
.pd-buybtn{flex:1;height:52px;justify-content:center;font-size:15px;border-radius:15px}
.pd-nowbtn{flex:1;height:52px;border-radius:15px;border:2px solid var(--green);color:var(--green-deep);background:#fff;font-size:15px;font-weight:800;font-family:inherit;cursor:pointer;transition:background .12s}
.pd-nowbtn:hover{background:var(--green-soft)}
.pd-outbox{background:#F3EAE6;color:var(--red);border-radius:14px;padding:14px;text-align:center;font-weight:700;margin-top:16px}
.pd-perks{display:flex;flex-wrap:wrap;gap:20px;margin-top:20px;font-size:12.5px;color:var(--muted)}

/* การ์ดรายละเอียดเต็มความกว้าง (แท็บ + ตารางข้อมูลสินค้า) */
.pd-card{margin-top:34px;background:#fff;border-radius:22px;border:1px solid var(--line);box-shadow:0 4px 12px rgba(34,48,42,.05);overflow:hidden}
.pd-tabs{display:flex;gap:4px;padding:0 26px;border-bottom:1px solid var(--cream)}
.pd-tab{padding:16px 18px;font-size:14px;font-weight:600;color:#8A968C;border:none;background:none;cursor:pointer;font-family:inherit;border-bottom:2.5px solid transparent;margin-bottom:-1px}
.pd-tab.on{font-weight:800;color:var(--green-deep);border-bottom-color:var(--green)}
.pd-card-in{display:flex;gap:40px;padding:26px;align-items:flex-start}
.pd-detail-main{flex:1;min-width:0}
.pd-pane{font-size:14.5px;line-height:1.9;color:#33413A}
.pd-pane p{margin:0 0 12px}
.pd-pane p:last-child{margin-bottom:0}
.pd-aside{flex:0 0 360px;min-width:0}
.pd-spec{border-radius:16px;border:1px solid var(--cream);overflow:hidden}
.pd-spec-h{padding:12px 16px;background:var(--green-soft);font-size:13px;font-weight:800;color:var(--green-deep)}
.pd-spec-r{display:flex;padding:11px 16px;font-size:13px;border-top:1px solid var(--cream)}
.pd-spec-r span{flex:0 0 130px;color:var(--muted)}
.pd-spec-r b{font-weight:600;min-width:0;overflow-wrap:anywhere}
.pd-spec-r b a{color:var(--green);font-weight:700}
.pd-spec-mono{font-family:'IBM Plex Mono',monospace;font-size:12px}
.pd-ok{color:var(--green)} .pd-no{color:var(--red)}
/* สินค้าที่คุณอาจสนใจ (กล่องใต้ตารางข้อมูลสินค้า — แอดมินติ๊กเลือก) */
.pd-youmay{margin-top:14px;border-radius:16px;border:1px solid var(--cream);overflow:hidden}
.ym-row{display:flex;align-items:center;gap:11px;padding:10px 14px;border-top:1px solid var(--cream);transition:background .12s}
.ym-row:hover{background:var(--cream2)}
.ym-img{width:46px;height:46px;border-radius:11px;overflow:hidden;background:var(--green-soft);display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0}
.ym-img img{width:100%;height:100%;object-fit:cover}
.ym-t{flex:1;min-width:0}
.ym-n{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;font-weight:600;line-height:1.35}
.ym-p{display:block;font-size:13px;font-weight:800;color:var(--green-deep);margin-top:2px}
.pd-related-head{margin-top:38px}
.pd-related{padding-bottom:20px}

/* ===== ตัวเลือกสินค้า (ขนาด/สี — pill มีรูป+ราคา) ===== */
.pd-vars{margin:16px 0 4px}
.pd-vars-t{font-size:13.5px;font-weight:700;color:var(--muted);margin-bottom:9px}
.pd-vars-list{display:flex;flex-wrap:wrap;gap:9px}
.pd-var{display:flex;align-items:center;gap:8px;border:1.5px solid var(--line);border-radius:13px;
  padding:8px 13px;background:#fff;cursor:pointer;transition:border-color .12s,background .12s}
.pd-var input{position:absolute;opacity:0;pointer-events:none}
.pd-var img{width:34px;height:34px;border-radius:8px;object-fit:cover}
.pd-var-n{font-size:13.5px;font-weight:700}
.pd-var-p{font-size:12.5px;font-weight:700;color:var(--green-deep);font-family:'IBM Plex Mono',monospace}
.pd-var:has(input:checked){border-color:var(--green);background:var(--green-soft)}
.pd-var:has(input:checked) .pd-var-n{color:var(--green-deep)}
.pd-var.out{opacity:.45;cursor:not-allowed;text-decoration:line-through}

/* คำอธิบายหมวด (SEO landing text ใต้ชื่อหมวดหน้าร้าน) */
.cat-intro{max-width:700px;font-size:14px;color:var(--muted);line-height:1.75;margin:10px 0 0}

/* ===== BLOG LIST + ARTICLE (ดีไซน์ 3a-3b) ===== */
.blog-head{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin:6px 0 18px}
.blog-page-grid{grid-template-columns:repeat(3,1fr);padding-bottom:20px}
.bcard{display:flex;flex-direction:column}
.bcard-body{display:flex;flex-direction:column;flex:1}
.bcard-excerpt{font-size:13px;color:var(--muted);margin-top:6px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.bcard-meta{margin-top:auto;padding-top:12px;font-size:11.5px;color:var(--muted)}

/* การ์ดบทความหน้าแรก (compact — ป้ายยอดอ่านทับรูป + หัวเขียว · มือถือเป็นแถวนอน) */
.bcard-img{position:relative}
.bcard-views{position:absolute;left:8px;bottom:8px;background:var(--gold);color:#fff;font-size:9.5px;font-weight:700;padding:3px 9px;border-radius:99px;z-index:1}
.bcard-c .bcard-title{color:var(--green-deep);font-weight:800;font-size:13.5px;margin-top:0}
.bcard-c .bcard-excerpt{display:none}

/* บทความเด่น (การ์ดใหญ่ 2 คอลัมน์ บนหน้ารวม) */
.bfeat{display:flex;background:#fff;border-radius:22px;overflow:hidden;border:1px solid var(--line);
  box-shadow:0 4px 12px rgba(34,48,42,.05);margin-bottom:22px;transition:transform .12s,box-shadow .12s}
.bfeat:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(34,48,42,.12)}
.bfeat-img{flex:0 0 56%;position:relative;min-height:300px;background:var(--green-soft);display:flex;align-items:center;justify-content:center;font-size:80px}
.bfeat-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.bfeat-badge{position:absolute;left:16px;top:16px;background:var(--green-deep);color:#fff;font-size:11px;font-weight:700;padding:6px 14px;border-radius:99px;z-index:1}
.bfeat-body{flex:1;padding:34px 34px 30px;display:flex;flex-direction:column;align-items:flex-start}
.bfeat-title{font-size:24px;font-weight:700;line-height:1.4;letter-spacing:-.3px}
.bfeat-excerpt{font-size:14px;color:var(--muted);line-height:1.7;margin:10px 0 0}
.bfeat-meta{margin-top:auto;padding-top:18px}
.bfeat .btn.bfeat-btn{height:42px;font-size:13.5px;margin-top:14px}

/* เลขหน้า */
.pgn{display:flex;justify-content:center;align-items:center;gap:8px;margin:6px 0 30px}
.pgn a,.pgn .cur{width:36px;height:36px;border-radius:11px;display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:700;background:#fff;border:1px solid var(--line);color:var(--muted)}
.pgn a:hover{border-color:var(--green);color:var(--green-deep)}
.pgn .cur{background:linear-gradient(135deg,var(--green-deep),var(--green));color:#fff;border:none;box-shadow:0 8px 20px rgba(44,94,67,.22)}

/* หน้าอ่าน: คอลัมน์อ่าน + sidebar */
.bp-layout{display:flex;gap:32px;align-items:flex-start;margin-top:4px}
.bp-main{flex:1;min-width:0;max-width:760px}
.bp-meta{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:12px;font-size:12.5px;color:var(--muted)}
.bp-meta b{color:var(--ink)}
.bp-ava{width:30px;height:30px;border-radius:50%;background:linear-gradient(140deg,var(--green-lt),var(--green-deep));
  color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex-shrink:0}
.bp-side{flex:0 0 300px;position:sticky;top:84px;display:flex;flex-direction:column;gap:16px}
.side-box{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px}
.side-box-t{font-size:12px;font-weight:700;color:var(--muted);letter-spacing:.4px;margin-bottom:12px}
.toc{display:flex;flex-direction:column;border-left:2px solid var(--line)}
.toc a{display:block;padding:5px 0 5px 12px;font-size:13px;font-weight:600;color:var(--muted);
  border-left:2px solid transparent;margin-left:-2px;line-height:1.45}
.toc a:hover{color:var(--green-deep);border-left-color:var(--green)}
.sprod{display:flex;gap:11px;align-items:center;padding:6px 0}
.sprod:hover .sprod-n{color:var(--green-deep)}
.sprod-img{width:48px;height:48px;border-radius:11px;overflow:hidden;background:var(--green-soft);
  display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0}
.sprod-img img{width:100%;height:100%;object-fit:cover}
.sprod-n{display:block;font-size:12.5px;font-weight:700;line-height:1.35}
.sprod-p{display:block;font-size:12px;font-weight:700;color:var(--green-deep);margin-top:2px;font-family:'IBM Plex Mono',monospace}
.sprod-plus{width:30px;height:30px;border-radius:50%;background:var(--green-soft);color:var(--green-deep);
  display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;flex-shrink:0;margin-left:auto}
.side-cta{background:linear-gradient(135deg,var(--green-deep),var(--green));border-radius:18px;padding:18px;
  color:#fff;position:relative;overflow:hidden;box-shadow:0 14px 30px rgba(44,94,67,.28)}
.side-cta .ghost{position:absolute;right:-14px;top:-20px;font-size:110px;opacity:.14;line-height:1}
.side-cta-t{font-size:15px;font-weight:700;position:relative}
.side-cta-s{font-size:12px;opacity:.92;line-height:1.6;margin-top:5px;position:relative}
.side-cta .hb{display:inline-flex;background:#fff;color:var(--green-deep);font-size:12px;font-weight:700;
  padding:9px 15px;border-radius:12px;margin-top:11px;position:relative}
.post{max-width:760px;margin:0 auto;padding-bottom:10px}
.post-head{margin:10px 0 18px}
.post-title{font-size:34px;font-weight:700;line-height:1.3}
.post-meta{margin-top:12px;font-size:13.5px}
.post-cover{border-radius:22px;overflow:hidden;margin-bottom:24px;box-shadow:0 14px 34px rgba(34,48,42,.12)}
.post-body{background:#fff;border:1px solid var(--line);border-radius:20px;padding:30px 34px;font-size:16.5px;line-height:1.85}
.post-body h2{font-size:22px;margin:26px 0 10px}
.post-body h3{font-size:18px;margin:22px 0 8px}
.post-body p{margin:0 0 16px}
.post-body img{border-radius:14px;margin:10px 0;height:auto}   /* height:auto — รูปจาก WP ติด width/height attribute มา ไม่งั้นโดนดึงยืด */
.post-body a{color:var(--green);font-weight:600;text-decoration:underline}
.post-cta{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;background:var(--green-soft);border-radius:18px;padding:20px 24px;margin-top:22px}
.post-cta-title{font-weight:700;font-size:16.5px;color:var(--green-deep)}
.post-others{padding-bottom:24px;grid-template-columns:repeat(3,1fr)}

/* ===== FLASH ===== */
.flash{border-radius:12px;padding:12px 16px;font-size:14px;font-weight:600;margin:10px 0 16px}
.flash-ok{background:var(--green-soft);color:var(--green-deep)}
.flash-err{background:#F6E8E4;color:#C0584A}

/* ===== AUTH (login/register) ===== */
.auth-card{max-width:420px;margin:48px auto 60px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:34px 32px;box-shadow:0 14px 40px rgba(34,48,42,.08)}
.auth-logo{font-size:40px;text-align:center}
.auth-title{font-size:24px;font-weight:700;text-align:center;margin-top:8px}
.auth-sub{text-align:center;font-size:14px;margin:8px 0 20px}
.auth-card label{display:block;font-size:13.5px;font-weight:600;color:var(--muted);margin:14px 2px 6px}
.auth-card input{width:100%;border:1.5px solid var(--line);border-radius:12px;padding:12px 14px;font-size:15px;font-family:inherit;outline:none;background:#fff}
.auth-card input:focus{border-color:var(--green)}
.auth-btn{width:100%;justify-content:center;margin-top:22px}
.auth-perk{background:var(--green-soft);color:var(--green-deep);border-radius:12px;padding:11px 14px;font-size:13px;font-weight:600;margin-top:16px;line-height:1.5}
.auth-alt{text-align:center;font-size:14px;color:var(--muted);margin-top:18px}
.auth-alt a{color:var(--green);font-weight:700}
.auth-or{display:flex;align-items:center;gap:12px;margin:20px 0 12px;color:var(--muted);font-size:12.5px}
.auth-or::before,.auth-or::after{content:'';flex:1;height:1px;background:var(--line)}
.auth-social{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;height:46px;border-radius:12px;font-size:14.5px;font-weight:700;margin-top:9px;border:1.5px solid var(--line);background:#fff;color:var(--ink)}
.auth-social:hover{background:var(--cream)}
.auth-line{background:#06C755;border-color:#06C755;color:#fff}
.auth-line:hover{background:#05b64e}

/* ===== ACCOUNT ===== */
.acct-layout{display:grid;grid-template-columns:290px 1fr;gap:24px;align-items:start;margin:10px 0 30px}
.acct-side{background:#fff;border:1px solid var(--line);border-radius:var(--r-card);padding:20px;position:sticky;top:80px}
.acct-profile{display:flex;gap:13px;align-items:center;padding-bottom:16px;border-bottom:1px solid var(--line);min-width:0}
.acct-avatar{width:52px;height:52px;border-radius:50%;background:linear-gradient(135deg,var(--green-deep),var(--green));color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700;flex-shrink:0}
.acct-avatar-img{object-fit:cover;background:none}
.acct-name{font-weight:700;font-size:15.5px}
.acct-badge{display:inline-flex;background:var(--green-soft);color:var(--green-deep);font-size:11px;font-weight:700;padding:3px 9px;border-radius:99px;margin-top:5px}
.acct-menu{display:flex;flex-direction:column;gap:2px;margin-top:12px}
.acct-menu a{padding:10px 12px;border-radius:11px;font-size:14.5px;font-weight:600;color:var(--muted);display:flex;align-items:center;gap:4px}
.acct-menu a:hover{background:var(--cream)}
.acct-menu a.on{background:var(--green-soft);color:var(--green-deep)}
.acct-menu a.soon{opacity:.55;cursor:default}
.soon-tag{margin-left:auto;font-size:10.5px;font-weight:700;background:var(--cream);color:var(--muted);padding:2px 8px;border-radius:99px}
.acct-logout{width:100%;text-align:left;border:none;background:none;font-family:inherit;padding:10px 12px;border-radius:11px;font-size:14.5px;font-weight:600;color:#C0584A;cursor:pointer;margin-top:6px}
.acct-logout:hover{background:#F6E8E4}
.acct-main{display:flex;flex-direction:column;gap:18px;min-width:0}
.acct-pc{display:flex;gap:20px;background:linear-gradient(135deg,var(--green-deep),var(--green));border-radius:22px;padding:26px 28px;color:#fff;position:relative;overflow:hidden;box-shadow:0 16px 40px rgba(44,94,67,.25)}
.acct-pc-emoji{position:absolute;right:-6px;top:-14px;font-size:120px;opacity:.15}
.acct-pc-body{position:relative}
.acct-pc-badge{display:inline-flex;background:rgba(255,255,255,.2);padding:5px 13px;border-radius:99px;font-size:12px;font-weight:700}
.acct-pc-title{font-size:19px;font-weight:700;margin-top:11px}
.acct-pc-sub{font-size:13.5px;opacity:.93;margin-top:6px;line-height:1.55;max-width:480px}
.acct-pc-btn{margin-top:16px;height:42px}
.acct-card{background:#fff;border:1px solid var(--line);border-radius:var(--r-card);padding:22px}
.acct-card-head h3{font-size:17px;font-weight:700}
.acct-empty{text-align:center;color:var(--muted);font-size:14.5px;padding:34px 10px 26px}

/* ===== CART / CHECKOUT / ORDERS ===== */
.nav-cart{position:relative;width:40px;height:40px;border-radius:50%;background:#fff;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0}
.nav-cart-badge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:var(--red);color:#fff;font-size:10.5px;font-weight:700;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px var(--cream2)}
.cart-layout{display:grid;grid-template-columns:1fr 340px;gap:24px;align-items:start;margin-bottom:30px}
.cart-list{display:flex;flex-direction:column;gap:12px}
.cart-item{display:flex;gap:14px;background:#fff;border:1px solid var(--line);border-radius:var(--r-card);padding:14px;align-items:center}
.cart-thumb{width:76px;height:76px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:36px;flex-shrink:0;overflow:hidden}
.cart-thumb img{width:100%;height:100%;object-fit:cover}
.cart-thumb.sm{width:52px;height:52px;font-size:26px;border-radius:11px;background:var(--green-soft)}
.cart-info{flex:1;min-width:0}
.cart-name{font-weight:600;font-size:14.5px;display:block}
.cart-oos{color:var(--red);font-size:12px;font-weight:700;margin-top:2px}
.cart-actions{display:flex;align-items:center;gap:14px;margin-top:8px}
.cart-qty input{width:66px;border:1.5px solid var(--line);border-radius:10px;padding:7px 8px;font-size:14px;font-weight:700;text-align:center;font-family:inherit}
.cart-del{border:none;background:none;color:#C0584A;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;padding:0}
.cart-line{font-weight:700;font-size:16px;color:var(--red);font-family:'IBM Plex Mono',monospace;flex-shrink:0}
.cart-sum{background:#fff;border:1px solid var(--line);border-radius:var(--r-card);padding:20px;position:sticky;top:80px}
.cart-sum h3{font-size:16.5px;font-weight:700;margin-bottom:12px}
.sum-row{display:flex;justify-content:space-between;gap:10px;padding:6px 0;font-size:14.5px}
.sum-row.small{font-size:13px;color:var(--muted)}
.sum-total{border-top:1px solid var(--line);margin-top:8px;padding-top:12px;font-size:17px}
.sum-total b{color:var(--red);font-family:'IBM Plex Mono',monospace}
.co-card{background:#fff;border:1px solid var(--line);border-radius:var(--r-card);padding:20px 22px;margin-bottom:16px}
.co-card h3{font-size:16px;font-weight:700}
.co-card label{display:block;font-size:13.5px;font-weight:600;color:var(--muted);margin:14px 2px 6px}
.co-card input,.co-card textarea,.co-card select{width:100%;border:1.5px solid var(--line);border-radius:12px;padding:11px 14px;font-size:15px;font-family:inherit;outline:none;background:#fff;color:var(--ink)}
.co-card input:focus,.co-card textarea:focus,.co-card select:focus{border-color:var(--green)}
.co-card input[readonly]{background:var(--cream);color:var(--muted)}
.co-card select:disabled{background:var(--cream);color:var(--muted)}
/* ที่อยู่: รหัสไปรษณีย์ → เติมตำบล/อำเภอ/จังหวัดอัตโนมัติ */
.co-geo{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
.co-geo-hint{font-size:12.5px;color:var(--muted);margin-top:8px}
.co-geo-hint.warn{color:#C0584A}
@media(max-width:560px){.co-geo{grid-template-columns:1fr}}
.co-pay{display:flex;gap:12px;align-items:flex-start;border:1.5px solid var(--line);border-radius:14px;padding:14px 16px;margin-top:12px;cursor:pointer;font-weight:400}
.co-pay:has(input:checked){border-color:var(--green);background:var(--green-soft)}
.co-pay input{width:auto;margin-top:3px}
.ord-list{display:flex;flex-direction:column;gap:10px}
.ord-row{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid var(--line);border-radius:var(--r-card);padding:15px 18px;transition:transform .12s,box-shadow .12s}
.ord-row:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(34,48,42,.08)}
.ord-no{font-weight:700;font-family:'IBM Plex Mono',monospace;font-size:14px}
.ord-right{display:flex;align-items:center;gap:12px;flex-shrink:0}
.ord-status{font-size:12px;font-weight:700;padding:4px 11px;border-radius:99px;white-space:nowrap}
.ord-total{font-family:'IBM Plex Mono',monospace;color:var(--red)}
.ord-item{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #EEF0EA}
.ord-item:last-child{border-bottom:none}
.ord-done{text-align:center;padding:26px 0 18px}
.ord-done-ic{font-size:52px}
.ord-done h1{font-size:26px;margin-top:8px}
.pay-box{border:1.5px solid var(--green);background:#FBFDF9}
.pay-bank{background:var(--green-soft);border-radius:14px;padding:16px 18px;margin-top:12px;text-align:center}
.pay-acct{font-family:'IBM Plex Mono',monospace;font-size:24px;font-weight:700;color:var(--green-deep);letter-spacing:1px;margin:4px 0}
.pay-amt{margin-top:10px;font-size:14.5px}
.pay-amt b{color:var(--red);font-family:'IBM Plex Mono',monospace;font-size:18px}

/* ===== RESPONSIVE ===== */
@media(max-width:900px){
  .cart-layout{grid-template-columns:1fr}
  .cart-sum{position:static}
  .acct-layout{grid-template-columns:1fr}
  .acct-side{position:static}
  .blog-page-grid,.post-others{grid-template-columns:1fr 1fr}
  .post-title{font-size:26px}
  .post-body{padding:22px 20px;font-size:15.5px}
  .bp-layout{flex-direction:column;gap:20px}
  .bp-side{position:static;flex:none;width:100%}
  .bfeat{flex-direction:column}
  .bfeat-img{flex:none;width:100%;min-height:220px}
  .bfeat-body{padding:22px 20px 24px}
  .bfeat-title{font-size:19px}
  .shop-layout{grid-template-columns:1fr}
  .shop-side{position:static}
  .prod-detail{grid-template-columns:1fr;gap:24px}
  .pd-main{position:static;max-width:420px}
  .pd-card-in{flex-direction:column;gap:22px}
  .pd-aside{flex:none;width:100%}
  .pd-actions{max-width:none}
}
@media(max-width:900px){
  /* nav: เหลือโลโก้ + ตะกร้า + โปรไฟล์ + ☰ (เมนูอยู่ใน drawer — ดีไซน์ 1b/1g) */
  .nav-links{display:none}
  .nav-search{display:none}
  .lang-switch{display:none}
  .nav-burger{display:flex}
  .brand img{height:30px}
  /* hero: ข้อความกลาง + แบนเนอร์เต็มกว้างด้านล่าง */
  .hero-in{flex-direction:column;align-items:stretch;padding:30px 20px 8px;gap:20px;text-align:center}
  .hero-text{flex:none}
  .hero-text h1{font-size:28px;letter-spacing:-.6px;margin-top:13px}
  .lead{font-size:13px;margin:9px auto 16px}
  .hero-cta{justify-content:center}
  /* จุดขาย: 3 การ์ดเรียงแถวแบบแอป */
  .perks{gap:9px;margin-top:16px}
  .perk{flex-direction:column;text-align:center;gap:5px;padding:12px 8px;border-radius:15px}
  .perk span{font-size:21px}
  .perk p{font-size:10.5px;line-height:1.3}
  /* หมวดหมู่: การ์ดขาว 2 คอลัมน์ แถบสี+อิโมจิด้านบน (ดีไซน์ 1b) */
  .catx-grid{grid-template-columns:1fr 1fr;gap:11px}
  .catx{aspect-ratio:auto;height:auto;border-radius:16px;background:#fff}
  .catx-ghost{position:static;display:flex;align-items:center;justify-content:center;height:64px;font-size:28px;opacity:1;
    background:repeating-linear-gradient(135deg,var(--cxsoft) 0 16px,#fff 16px 32px)}
  /* มือถือ: รูปหมวด = แถบบน 84px · ตัวหนังสือสีเข้มบนการ์ดขาว + ปุ่มเล็ก */
  .catx-photo{position:static;display:block;width:100%;height:84px;object-fit:cover}
  .catx-txt{position:static;padding:9px 12px 12px;gap:3px;color:var(--ink)}
  .catx-txt b{font-size:13.5px;max-width:100%;color:var(--cx1)}
  .catx-sub{font-size:10.5px;line-height:1.45;max-width:100%;color:var(--muted);opacity:1}
  .catx-btn{margin-top:7px;font-size:11px;padding:5px 11px;border-radius:8px;background:var(--cx1);color:#fff;box-shadow:none}
  .catx-img .catx-txt{color:var(--ink)}
  .catx-img .catx-sub{color:var(--muted)}
  /* บทความ: แถวนอน รูปซ้าย + คำโปรย 2 บรรทัด (ดีไซน์ 1b) */
  .blog-grid{grid-template-columns:1fr;gap:11px}
  .bcard-c{flex-direction:row;gap:11px;padding:10px;border-radius:16px}
  .bcard-c .bcard-img{width:108px;height:82px;flex:none;aspect-ratio:auto;border-radius:11px;overflow:hidden;font-size:30px}
  .bcard-c .bcard-body{padding:0;flex:1;min-width:0}
  .bcard-c .bcard-title{font-size:12.5px;line-height:1.35}
  .bcard-c .bcard-excerpt{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10.5px;margin-top:4px}
  .bcard-c .bcard-views{left:5px;bottom:5px;font-size:8.5px;padding:2px 7px}
  /* CTA: การ์ดตั้ง */
  .cta{flex-direction:column;align-items:flex-start;gap:0;padding:22px 18px;border-radius:22px}
  .cta h2{font-size:21px}
  .cta p{font-size:12.5px}
  .cta-btn{margin-top:15px}
  .foot-in{grid-template-columns:1fr 1fr;gap:22px}
  .foot-brand{grid-column:1/-1}
}
@media(max-width:560px){
  .prod-grid{grid-template-columns:1fr 1fr;gap:12px}
  .hero-text h1{font-size:26px}
  .sec-head{margin:34px 0 14px}
  .sec-head h2{font-size:19px}
}

/* ===== แนบสลิปโอนเงิน (หน้า order detail) ===== */
.slip-box{margin-top:14px;padding:14px 16px;background:#fff;border:1.5px dashed #C9D7CC;border-radius:14px}
.slip-box h4{font-size:14.5px;color:var(--ink)}
.slip-ok{display:inline-block;background:#E8F0E9;color:#2C5E43;font-size:13px;font-weight:700;padding:5px 12px;border-radius:99px;margin-bottom:10px}
.slip-img{display:block;max-width:200px;border-radius:12px;border:1px solid #E4E7E0;margin-bottom:10px}
.slip-form{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.slip-form input[type=file]{flex:1;min-width:180px;font-size:13.5px;padding:9px;border:1px solid #E4E7E0;border-radius:10px;background:#FAFAF7}
.slip-form .btn{height:42px}
@media(max-width:560px){.slip-form{flex-direction:column;align-items:stretch}}

/* ===== ราคาลด (การ์ด + หน้าสินค้า + ตะกร้า) ===== */
.price-sale{color:var(--red)}
.price-was{color:#A4AFA6;font-weight:500;font-size:.72em;margin-left:6px}
.pcard-off{position:absolute;top:10px;left:10px;background:var(--red);color:#fff;font-size:12px;font-weight:800;
  padding:4px 9px;border-radius:99px;box-shadow:0 3px 10px rgba(229,83,61,.35)}
.pd-off{position:absolute;top:14px;left:14px;background:var(--red);color:#fff;font-size:14px;font-weight:800;
  padding:6px 13px;border-radius:99px;box-shadow:0 4px 14px rgba(229,83,61,.35);z-index:2}

/* ===== แกลเลอรีอัลบั้มรูป (หน้าสินค้า) ===== */
.pd-main{position:relative}
.pd-thumbs{display:flex;gap:11px;margin-top:12px;flex-wrap:wrap}
.pd-thumb{width:84px;height:84px;border-radius:14px;overflow:hidden;border:2.5px solid transparent;
  padding:0;background:#fff;cursor:pointer;flex-shrink:0}
.pd-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.pd-thumb.on{border-color:var(--green)}
.pd-thumb:hover{border-color:#BFD5C4}

/* ===== รายละเอียดสินค้าแบบ rich HTML (จาก editor หลังบ้าน) ===== */
.pd-body{font-size:15px;line-height:1.8;color:var(--ink)}
.pd-body h2{font-size:20px;margin:20px 0 8px}
.pd-body h3{font-size:17px;margin:16px 0 6px}
.pd-body p{margin:0 0 12px}
.pd-body ul,.pd-body ol{margin:0 0 12px;padding-left:24px}
.pd-body img{max-width:100%;border-radius:14px;margin:8px 0;height:auto}
.pd-body a{color:var(--green);font-weight:600}
.pd-body pre{background:#22302A;color:#D9F2E2;border-radius:12px;padding:14px 16px;font-family:'IBM Plex Mono',monospace;
  font-size:13.5px;overflow-x:auto;white-space:pre-wrap;margin:0 0 12px}

/* ============ ข่าวสาร (ดีไซน์ 4b/4c/4d) ============ */
/* สีตามประเภทข่าว: promo ทอง · new เขียวเข้ม · announce ฟ้า · tip เขียว */
.nt-promo{--nt:#C2913C;--ntsoft:#F4ECD9}
.nt-new{--nt:#2C5E43;--ntsoft:#E8F0E9}
.nt-announce{--nt:#2E637F;--ntsoft:#E4EEF4}
.nt-tip{--nt:#3E8E63;--ntsoft:#EDF3E1}

.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{font-size:12.5px;font-weight:600;color:var(--muted);background:#fff;padding:8px 15px;border-radius:99px;border:1px solid var(--line);white-space:nowrap}
.chip.on{background:var(--green);color:#fff;border-color:var(--green);font-weight:700}

.nw-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-top:10px;flex-wrap:wrap}
.nw-h1{font-size:30px;font-weight:800;letter-spacing:-.5px}

.nw-tag{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;padding:5px 13px;border-radius:99px;background:var(--ntsoft);color:var(--nt)}
.nw-tag-glass{background:rgba(255,255,255,.18);color:#fff}
.nw-tag-white{background:rgba(255,255,255,.93);color:var(--nt)}

/* ข่าวเด่น: แบนเนอร์กว้าง */
.nw-hero{display:block;position:relative;margin-top:18px;border-radius:22px;overflow:hidden;min-height:230px;
  background:linear-gradient(135deg,var(--green-deep),var(--green-lt));color:#fff;box-shadow:0 14px 30px rgba(34,48,42,.14)}
.nw-hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.nw-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(20,32,24,.72),rgba(20,32,24,.22))}
.nw-hero-ghost{position:absolute;right:30px;bottom:-40px;font-size:190px;opacity:.13;line-height:1}
.nw-hero-body{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;padding:32px 36px;max-width:660px}
.nw-hero-tags{display:flex;gap:8px}
.nw-hero .nw-tag{background:var(--nt);color:#fff}
.nw-hero .nw-tag-glass{background:rgba(255,255,255,.18)}
.nw-hero-title{font-size:27px;font-weight:800;letter-spacing:-.4px;line-height:1.35;margin-top:13px}
.nw-hero-sub{font-size:14px;opacity:.92;line-height:1.7;margin-top:8px}
.nw-hero-foot{display:flex;align-items:center;gap:14px;margin-top:18px}
.nw-hero-btn{background:#fff;color:var(--green-deep);font-size:13.5px;font-weight:800;padding:12px 20px;border-radius:12px}
.nw-hero-meta{font-size:12px;opacity:.8}

/* กริดข่าว 3 คอลัมน์ */
.nw-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:22px}
.nw-card{background:#fff;border-radius:18px;box-shadow:0 4px 12px rgba(34,48,42,.05);overflow:hidden;display:flex;flex-direction:column;
  transition:transform .12s,box-shadow .12s}
.nw-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(34,48,42,.14)}
.nw-card-img{position:relative;height:130px;background:var(--ntsoft);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.nw-card-img img{width:100%;height:100%;object-fit:cover}
.nw-card-emoji{font-size:52px;line-height:1}
.nw-card-img .nw-tag{position:absolute;left:12px;top:12px;font-size:10px;padding:4px 11px}
.nw-card-body{padding:14px 16px 16px;display:flex;flex-direction:column;flex:1;min-width:0}
.nw-tag-m{display:none}   /* ป้ายในตัวการ์ด — โชว์เฉพาะมือถือ (แถวนอน) */
.nw-card-title{font-size:15px;font-weight:800;line-height:1.45}
.nw-card-sub{font-size:12.5px;color:var(--muted);line-height:1.6;margin-top:6px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nw-card-date{font-size:11.5px;color:var(--muted);margin-top:auto;padding-top:12px}
.nw-empty{background:#fff;border-radius:18px;padding:40px;text-align:center;color:var(--muted);margin-top:22px}

/* กล่องชวนโหลดแอป */
.nw-cta{display:flex;align-items:center;gap:22px;margin:26px 0 44px;background:#fff;border-radius:20px;padding:22px 26px;box-shadow:0 4px 12px rgba(34,48,42,.05)}
.nw-cta-ic{width:52px;height:52px;border-radius:16px;background:var(--green-soft);display:flex;align-items:center;justify-content:center;font-size:26px;flex-shrink:0}
.nw-cta-txt{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.nw-cta-txt>b{font-size:16px;font-weight:800}
.nw-cta-btn{background:linear-gradient(135deg,var(--green-deep),var(--green-lt));color:#fff;font-size:13.5px;font-weight:800;padding:12px 20px;border-radius:12px;flex-shrink:0}

/* หน้าอ่านข่าว */
.nw-read{background:#fff;border-radius:22px;padding:30px 34px;margin-top:14px}
.nw-read-title{font-size:28px;font-weight:800;letter-spacing:-.4px;margin-top:10px}
.nw-read-cover{border-radius:16px;overflow:hidden;margin-top:18px}
.nw-read-cover img{width:100%;display:block}
.nw-read .post-body{margin-top:16px}
.nw-read-btn{margin-top:20px}

/* popup ข่าวเด่นหน้าแรก (4d) */
.npop-scrim{position:fixed;inset:0;background:rgba(34,48,42,.45);z-index:200;display:flex;align-items:center;justify-content:center;padding:24px}
.npop-scrim[hidden]{display:none}
.npop{width:100%;max-width:400px;background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 30px 70px rgba(0,0,0,.35);position:relative}
.npop-x{position:absolute;right:12px;top:12px;width:30px;height:30px;border-radius:50%;background:rgba(34,48,42,.35);color:#fff;border:none;cursor:pointer;font-size:14px;z-index:2;display:flex;align-items:center;justify-content:center}
.npop-head{height:150px;background:linear-gradient(135deg,var(--green-deep),var(--green-lt));position:relative}
.npop-head img{width:100%;height:100%;object-fit:cover}
.npop-ghost{position:absolute;right:-8px;bottom:-26px;font-size:120px;opacity:.16;line-height:1}
.npop-head .nw-tag{position:absolute;left:18px;bottom:16px;background:var(--nt);color:#fff}
.npop-body{padding:16px 18px 18px}
.npop-title{font-size:15.5px;font-weight:800;line-height:1.4}
.npop-sub{font-size:12px;color:var(--muted);line-height:1.6;margin-top:5px}
.npop-btn{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--green-deep),var(--green-lt));color:#fff;font-size:13.5px;font-weight:800;padding:13px;border-radius:13px;margin-top:13px;box-shadow:0 6px 14px rgba(44,94,67,.28)}
.npop-never{display:block;width:100%;text-align:center;font-size:11px;color:var(--muted);margin-top:11px;text-decoration:underline;background:none;border:none;cursor:pointer;font-family:inherit}

@media(max-width:900px){
  .nw-head{flex-direction:column;align-items:flex-start;gap:12px}
  .nw-h1{font-size:24px}
  .chips{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:4px;-webkit-overflow-scrolling:touch}
  .nw-hero{min-height:0}
  .nw-hero-body{padding:20px 18px;max-width:100%}
  .nw-hero-title{font-size:18px;margin-top:10px}
  .nw-hero-sub{font-size:12px;margin-top:6px}
  .nw-hero-foot{margin-top:13px;gap:10px}
  .nw-hero-btn{font-size:12px;padding:9px 15px;border-radius:10px}
  .nw-hero-ghost{font-size:110px;right:-10px;bottom:-24px}
  /* มือถือ: การ์ดข่าว = แถวนอน รูป 64px ซ้าย (ดีไซน์ 4b) */
  .nw-grid{grid-template-columns:1fr;gap:10px;margin-top:14px}
  .nw-card{flex-direction:row;gap:11px;padding:11px;border-radius:16px}
  .nw-card-img{width:64px;height:64px;border-radius:13px;overflow:hidden}
  .nw-card-emoji{font-size:28px}
  .nw-card-img .nw-tag{display:none}
  .nw-card-body{padding:0}
  .nw-tag-m{display:inline-flex;align-self:flex-start;font-size:9px;padding:2px 8px;margin-bottom:4px}
  .nw-card-title{font-size:12.5px;line-height:1.35}
  .nw-card-sub{display:none}
  .nw-card-date{font-size:10px;padding-top:4px;margin-top:0}
  .nw-cta{flex-direction:column;text-align:center;gap:10px;padding:22px 18px}
  .nw-read{padding:20px 16px}
  .nw-read-title{font-size:20px}
}
