/* R82: Blog สมาชิก — สไตล์ร่วมของหน้า blog / ร้าน / บทความ (ธีมเขียว-ทองของแบรนด์ ถั่วงอก) */
:root { --bg:#f4f8f4; --brand:#1B7A4B; --brand-dark:#0b4a2d; --gold:#C9A227; --gold-light:#f3cf52; --ink:#1b2b1f; --muted:#6b7a70; --card:#ffffff; --line:#e3ebe5; --radius:18px; }
* { box-sizing:border-box; }
body { margin:0; font-family:'Prompt',system-ui,sans-serif; background:var(--bg); color:var(--ink); -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
img { max-width:100%; display:block; }
.wrap { max-width:1140px; margin:0 auto; padding:0 16px; }
/* header */
.bh { position:sticky; top:0; z-index:50; background:rgba(255,255,255,.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.bh .wrap { display:flex; align-items:center; gap:14px; height:64px; }
.bh .logo { display:flex; align-items:center; gap:10px; font-weight:700; color:var(--brand-dark); white-space:nowrap; }
.bh .logo img { width:38px; height:38px; border-radius:50%; background:#fff; padding:3px; box-shadow:0 2px 8px rgba(0,0,0,.12); }
.bh .logo small { display:block; font-size:.68rem; font-weight:500; color:var(--muted); line-height:1; }
.bh .search { flex:1; display:flex; align-items:center; background:#f0f5f1; border:1.5px solid var(--line); border-radius:50px; padding:4px 6px 4px 14px; max-width:520px; }
.bh .search input { border:none; background:transparent; flex:1; font:inherit; font-size:.92rem; outline:none; min-width:0; }
.bh .search button { border:none; background:var(--brand); color:#fff; width:36px; height:36px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.bh .links { display:flex; gap:8px; margin-left:auto; }
.bh .links a { font-size:.85rem; font-weight:600; padding:8px 14px; border-radius:50px; white-space:nowrap; }
.bh .links .ghost { color:var(--brand); border:1.5px solid var(--brand); }
.bh .links .solid { background:var(--gold-light); color:var(--ink); }
@media (max-width:640px) { .bh .search { display:none; } .bh .links .ghost { display:none; } }
/* hero */
.hero { background:radial-gradient(600px 300px at 90% 0%, rgba(255,255,255,.12), transparent 60%), linear-gradient(110deg, var(--brand-dark), var(--brand) 60%, #22995a); color:#fff; padding:44px 0 36px; position:relative; overflow:hidden; }
.hero h1 { margin:0 0 8px; font-size:clamp(1.5rem, 4vw, 2.3rem); font-weight:700; line-height:1.2; }
.hero p { margin:0 0 18px; color:#ffe9a8; font-weight:500; }
.hero .big-search { display:flex; background:#fff; border-radius:50px; padding:6px 6px 6px 18px; max-width:620px; box-shadow:0 12px 30px rgba(0,0,0,.25); }
.hero .big-search input { flex:1; border:none; font:inherit; font-size:1rem; outline:none; min-width:0; color:var(--ink); }
.hero .big-search button { border:none; background:var(--gold-light); color:var(--ink); font-weight:700; padding:10px 22px; border-radius:50px; cursor:pointer; white-space:nowrap; }
.hero .stats { display:flex; gap:22px; margin-top:16px; font-size:.85rem; opacity:.9; }
.hero .stats b { font-size:1.15rem; display:block; }
.chips { display:flex; gap:8px; overflow-x:auto; padding:14px 0 4px; scrollbar-width:none; }
.chips::-webkit-scrollbar { display:none; }
.chip { flex:0 0 auto; padding:7px 14px; border-radius:50px; background:#fff; border:1.5px solid var(--line); font-size:.85rem; font-weight:600; color:var(--brand-dark); cursor:pointer; }
.chip.on { background:var(--brand); color:#fff; border-color:var(--brand); }
.chip small { color:var(--muted); font-weight:500; margin-left:4px; }
.chip.on small { color:#dff5e7; }
/* sections */
.sec { padding:26px 0 6px; }
.sec-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; flex-wrap:wrap; }
.tabs button { white-space:nowrap; }
.sec-head h2 { margin:0; font-size:1.2rem; font-weight:700; color:var(--brand-dark); }
.sec-head .more { font-size:.85rem; color:var(--brand); font-weight:600; }
.tabs { display:flex; gap:6px; background:#e8f1ea; padding:4px; border-radius:50px; width:max-content; }
.tabs button { border:none; background:transparent; padding:7px 16px; border-radius:50px; font:inherit; font-weight:600; font-size:.88rem; color:var(--brand-dark); cursor:pointer; }
.tabs button.on { background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.08); }
/* shop cards */
.shops { display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:14px; }
.shop-card { background:var(--card); border-radius:var(--radius); overflow:hidden; box-shadow:0 2px 10px rgba(0,0,0,.05); border:1px solid var(--line); display:flex; flex-direction:column; transition:.15s; }
.shop-card:hover { transform:translateY(-2px); box-shadow:0 10px 24px rgba(27,122,75,.14); }
.shop-card .shop-link { display:block; }
.shop-card .cover { display:block; height:92px; background:linear-gradient(120deg,#cfe9d8,#eaf5ee); background-size:cover; background-position:center; }
.shop-card .body { padding:0 14px 14px; margin-top:-28px; }
.shop-card .avatar { width:56px; height:56px; border-radius:16px; background:#fff; border:3px solid #fff; box-shadow:0 4px 10px rgba(0,0,0,.15); object-fit:cover; display:flex; align-items:center; justify-content:center; font-size:1.5rem; }
.shop-card h3 { margin:8px 0 2px; font-size:1rem; font-weight:700; line-height:1.25; }
.shop-card .meta { font-size:.8rem; color:var(--muted); display:flex; flex-wrap:wrap; gap:6px 10px; }
.shop-card .price { margin-top:8px; font-weight:700; color:var(--brand); font-size:.95rem; }
.shop-card .price small { color:var(--muted); font-weight:500; }
.tier { display:inline-block; font-size:.68rem; font-weight:700; padding:2px 8px; border-radius:50px; background:#fff3cd; color:#7a5a00; vertical-align:middle; }
.boost { display:inline-block; font-size:.68rem; font-weight:700; padding:2px 8px; border-radius:50px; background:var(--gold-light); color:var(--ink); }
.contact-row { display:flex; gap:6px; margin-top:10px; flex-wrap:wrap; }
.cbtn { display:inline-flex; align-items:center; gap:5px; font-size:.8rem; font-weight:700; padding:7px 12px; border-radius:50px; border:1.5px solid var(--line); background:#fff; color:var(--ink); }
.cbtn.call { background:var(--brand); color:#fff; border-color:var(--brand); }
.cbtn.line { background:#06c755; color:#fff; border-color:#06c755; }
.cbtn.fb { background:#1877f2; color:#fff; border-color:#1877f2; }
.cbtn.map { background:#fff; color:var(--brand-dark); }
/* post cards */
.posts { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:16px; }
.post-card { background:var(--card); border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); box-shadow:0 2px 10px rgba(0,0,0,.05); display:flex; flex-direction:column; transition:.15s; position:relative; }
.post-card:hover { transform:translateY(-2px); box-shadow:0 10px 24px rgba(27,122,75,.14); }
.post-card .img { aspect-ratio:16/10; background:#e6efe9 center/cover no-repeat; display:block; }
.post-card .pin { position:absolute; left:10px; top:10px; background:var(--gold-light); color:var(--ink); font-size:.7rem; font-weight:700; padding:3px 9px; border-radius:50px; }
.post-card .pb { padding:12px 14px 14px; display:flex; flex-direction:column; flex:1; }
.post-card h3 { margin:0 0 6px; font-size:1rem; font-weight:700; line-height:1.3; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.post-card p { margin:0 0 10px; font-size:.85rem; color:var(--muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.post-card .by { margin-top:auto; display:flex; align-items:center; gap:8px; font-size:.78rem; color:var(--muted); }
.post-card .by img, .post-card .by .ava { width:26px; height:26px; border-radius:50%; object-fit:cover; background:#dfeee4; display:flex; align-items:center; justify-content:center; font-size:.8rem; }
.post-card .by b { color:var(--ink); font-weight:600; }
.empty { text-align:center; padding:40px 10px; color:var(--muted); background:#fff; border-radius:var(--radius); border:1px dashed var(--line); }
.loadmore { display:block; margin:18px auto 0; padding:10px 26px; border-radius:50px; border:1.5px solid var(--brand); background:#fff; color:var(--brand); font:inherit; font-weight:700; cursor:pointer; }
/* shop page */
.shop-hero { background:#fff; border-bottom:1px solid var(--line); }
.shop-hero .cover { height:200px; background:linear-gradient(120deg,#0b4a2d,#1B7A4B); background-size:cover; background-position:center; }
@media (min-width:768px) { .shop-hero .cover { height:280px; } }
.shop-hero .head { display:flex; gap:16px; align-items:flex-end; margin-top:-44px; padding-bottom:16px; flex-wrap:wrap; }
.shop-hero .avatar { width:96px; height:96px; border-radius:24px; background:#fff; border:4px solid #fff; box-shadow:0 6px 18px rgba(0,0,0,.18); object-fit:cover; display:flex; align-items:center; justify-content:center; font-size:2.2rem; }
.shop-hero h1 { margin:0; font-size:1.5rem; font-weight:700; }
.shop-hero .tag { color:var(--muted); margin:2px 0 6px; }
.grid2 { display:grid; grid-template-columns:1fr; gap:18px; }
@media (min-width:900px) { .grid2 { grid-template-columns:1fr 340px; } }
.grid2 > * { min-width:0; }   /* R84: กันแถวรูปย่อ/ลิงก์ยาวดันหน้ากว้างเกินจอมือถือ */
.panel { background:#fff; border-radius:var(--radius); border:1px solid var(--line); padding:18px; }
.panel h4 { margin:0 0 10px; font-size:.95rem; color:var(--brand-dark); font-weight:700; }
.price-box { background:linear-gradient(135deg,#0b4a2d,#1B7A4B); color:#fff; border-radius:var(--radius); padding:18px; }
.price-box .amt { font-size:2rem; font-weight:800; line-height:1; }
.price-box .amt small { font-size:.9rem; font-weight:500; opacity:.85; }
.price-box .note { color:#ffe9a8; font-size:.85rem; margin-top:6px; }
.info-row { display:flex; gap:10px; font-size:.9rem; padding:8px 0; border-bottom:1px dashed var(--line); }
.info-row:last-child { border-bottom:none; }
.info-row .ic { width:22px; text-align:center; flex:0 0 22px; }
.cbtn.big { padding:12px 16px; font-size:.95rem; justify-content:center; flex:1; }
.desc { white-space:pre-line; line-height:1.7; font-size:.95rem; }
/* post page */
.post-hero h1 { font-size:clamp(1.4rem, 3.5vw, 2rem); font-weight:800; margin:0 0 10px; line-height:1.25; }
.post-meta { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:.85rem; flex-wrap:wrap; }
.post-meta img, .post-meta .ava { width:38px; height:38px; border-radius:50%; object-fit:cover; background:#dfeee4; display:flex; align-items:center; justify-content:center; }
.gallery { margin:18px 0; }
.gallery .main { border-radius:var(--radius); overflow:hidden; background:#e6efe9; }
.gallery .main img { width:100%; max-height:560px; object-fit:cover; }
.gallery .thumbs { max-width:100%; display:flex; gap:8px; margin-top:8px; overflow-x:auto; }
.gallery .thumbs img { width:84px; height:64px; object-fit:cover; border-radius:10px; cursor:pointer; border:2px solid transparent; flex:0 0 auto; }
.gallery .thumbs img.on { border-color:var(--gold); }
.content { font-size:1.02rem; line-height:1.85; white-space:pre-line; }
.share { display:flex; gap:8px; flex-wrap:wrap; margin:18px 0; }
footer.bf { margin-top:40px; padding:26px 0; background:var(--brand-dark); color:#cfe9d8; font-size:.85rem; }
footer.bf a { color:#ffe9a8; font-weight:600; }
.skeleton { background:linear-gradient(90deg,#eef3ef 25%,#f7faf8 50%,#eef3ef 75%); background-size:200% 100%; animation:sk 1.2s infinite; border-radius:12px; min-height:120px; }
@keyframes sk { from { background-position:200% 0; } to { background-position:-200% 0; } }

/* R84: ป้ายร้านทางการ */
.official { display:inline-block; font-size:.68rem; font-weight:700; padding:2px 8px; border-radius:50px; background:#1B7A4B; color:#fff; vertical-align:middle; white-space:nowrap; }
