/* G-Pork ธีมร้านค้าแนว Broccoli Home Style 03 */
:root {
  --ink: #071C1F; --ink-2: #33474A; --muted: #55625F; --line: #E7E9E1; --line-2: #C9CEC2;
  --lime: #80B500; --lime-dark: #4F7000; --lime-bright: #A2DA1C; --lime-soft: #EEF5D8;
  --cream: #F7F5EB; --tile: #F4F5F0; --danger: #A5281B; --warn-bg: #FFF4CC; --warn-ink: #4F3D00;
  --head: 'Kanit', 'Sarabun', sans-serif; --body: 'Sarabun', 'Noto Sans Thai', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
#site-header { display: contents; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: #fff; font-size: 16px; line-height: 1.6; }
body.has-bar { padding-bottom: 72px; }
img { max-width: 100%; display: block; }
a { color: var(--lime-dark); }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, .h { font-family: var(--head); font-weight: 600; line-height: 1.3; margin: 0; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--lime-dark); outline-offset: 2px; }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: clamp(16px, 3vw, 32px); }
.section { padding-top: clamp(44px, 5vw, 72px); }
.section-last { padding-bottom: clamp(44px, 5vw, 72px); }
.title { font-size: clamp(30px, 3.2vw, 42px); text-align: center; }
.sub { text-align: center; color: var(--muted); margin-top: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { top: 8px; color: #fff; }

/* ปุ่ม */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--lime); color: var(--ink); border: 0; border-radius: 4px; font-weight: 700; padding: 10px 24px; min-height: 46px; text-decoration: none; text-align: center; transition: background-color .15s, color .15s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 13px 32px; min-height: 52px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-line { background: #fff; border: 1px solid var(--line-2); font-weight: 600; }
.btn-line:hover { background: #fff; color: var(--lime-dark); border-color: var(--lime-dark); }
.btn[disabled] { background: #D5D9CF; color: #3D4A42; cursor: not-allowed; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; padding: 0; color: inherit; }

/* ส่วนหัว */
.topbar { border-bottom: 1px solid var(--line); font-size: 14px; padding: 6px 0; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: var(--ink); text-decoration: none; }
.site-head { position: sticky; top: 0; z-index: 30; background: #fff; }
.head-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 54px; width: auto; }
.brand span { font-family: var(--head); font-weight: 600; font-size: 21px; }
.head-phone { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); line-height: 1.25; }
.head-phone small { display: block; font-size: 13px; color: var(--muted); }
.head-phone b { display: block; }
.search { position: relative; flex: 1 1 300px; max-width: 560px; }
.search input { width: 100%; min-height: 48px; padding: 10px 52px 10px 20px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; }
.search button { position: absolute; right: 2px; top: 2px; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line-2); box-shadow: 0 16px 32px rgba(7,28,31,.12); z-index: 40; list-style: none; }
.suggest a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; text-decoration: none; color: var(--ink); }
.suggest a:hover { background: var(--cream); }
.suggest img { width: 40px; height: 40px; object-fit: cover; }
.suggest b { margin-left: auto; color: var(--lime-dark); }
.head-tools { display: flex; align-items: center; gap: 4px; }
.tool { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--ink); text-decoration: none; background: none; border: 0; padding: 0; }
.badge { position: absolute; top: 0; right: -2px; background: var(--lime); color: var(--ink); border-radius: 999px; min-width: 20px; padding: 0 5px; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.cart-tool { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0 4px; min-height: 44px; text-align: left; color: var(--ink); line-height: 1.25; }
.cart-tool .ico { position: relative; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.cart-tool small { display: block; font-size: 13px; color: var(--muted); }
.cart-tool b { display: block; white-space: nowrap; }
.navbar { background: var(--cream); }
.nav { display: flex; justify-content: center; gap: 2px; list-style: none; }
.nav > li { position: relative; }
.nav a { display: block; padding: 11px 18px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--lime-dark); }
.nav .drop { display: none; position: absolute; left: 0; top: 100%; min-width: 240px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 32px rgba(7,28,31,.12); list-style: none; z-index: 35; }
.nav li:hover > .drop, .nav li:focus-within > .drop { display: block; }
.nav .drop a { font-weight: 500; padding: 9px 16px; border-top: 1px solid var(--line); }
.menu-btn { display: none; }

/* เมนูมือถือ */
dialog { border: 0; padding: 0; color: inherit; }
dialog::backdrop { background: rgba(7,28,31,.6); }
.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100%); max-width: 100%; }
.drawer-left { margin: 0 auto 0 0; width: min(330px, 88%); }
.drawer-in { height: 100%; display: flex; flex-direction: column; background: #fff; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 12px 20px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 20px; display: flex; flex-direction: column; gap: 12px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 20px; display: flex; flex-direction: column; gap: 10px; }
.mobile-nav { list-style: none; }
.mobile-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.mobile-nav .child a { padding-left: 18px; font-weight: 500; }

/* การ์ดสินค้า */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; min-width: 0; transition: box-shadow .18s, border-color .18s; }
.card:hover { box-shadow: 0 16px 32px rgba(7,28,31,.1); border-color: var(--lime); }
.card-img { position: relative; display: block; background: var(--cream); }
.illus { position: absolute; left: 8px; bottom: 8px; background: rgba(7,28,31,.78); color: #fff; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 3px; }
.card-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card-img img.fit { object-fit: contain; }
.flag { position: absolute; top: 10px; left: 10px; background: var(--lime); color: var(--ink); font-size: 13px; font-weight: 700; padding: 2px 10px; border-radius: 3px; }
.card-tools { position: absolute; top: 6px; right: 6px; display: flex; flex-direction: column; gap: 4px; }
.round { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 1px 6px rgba(54,56,61,.15); }
.round:hover { color: var(--lime-dark); }
.round[aria-pressed="true"] { color: var(--danger); }
.round[aria-pressed="true"] svg { fill: currentColor; }
.card-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; text-align: center; }
.card-body h3 { font-family: var(--body); font-size: 16px; font-weight: 600; line-height: 1.35; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--lime-dark); }
.weight { font-size: 14px; color: var(--muted); min-height: 21px; }
.price { font-family: var(--head); font-weight: 600; font-size: 21px; color: var(--lime-dark); }
.card-body .price { margin-top: auto; }
.card-action { margin-top: 8px; }
.stepper { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--lime-dark); border-radius: 4px; background: #fff; }
.stepper button { width: 44px; height: 42px; border: 0; background: none; font-size: 20px; color: var(--lime-dark); padding: 0; }
.stepper span { min-width: 28px; text-align: center; font-weight: 700; }
.stepper.inline { display: inline-flex; border-color: var(--line-2); }

/* หน้าแรก */
.home-top { padding-top: 24px; }
.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.catbox { border: 1px solid var(--line); display: flex; flex-direction: column; }
.catbox-title { background: var(--cream); padding: 12px 18px; font-size: 16px; font-family: var(--head); font-weight: 600; }
.catbox a, .catbox button.row { display: flex; align-items: center; gap: 12px; background: #fff; border: 0; border-top: 1px solid var(--line); padding: 8px 18px; min-height: 48px; color: var(--ink); text-decoration: none; text-align: left; font-weight: 500; width: 100%; }
.catbox a:hover, .catbox button.row:hover { background: var(--cream); color: var(--lime-dark); }
.catbox .on { background: var(--lime-soft); font-weight: 700; }
.catbox img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.catbox .label { flex: 1; min-width: 0; }
.catbox .n { font-size: 13px; color: var(--muted); }
.chips { display: none; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; }
.chip { flex-shrink: 0; background: #fff; border: 1px solid var(--line-2); border-radius: 4px; font-weight: 600; padding: 8px 14px; min-height: 44px; white-space: nowrap; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; }
.chip.on { background: var(--lime-soft); border-color: var(--lime-dark); }
.hero { position: relative; min-height: 490px; height: 100%; display: flex; background: var(--ink); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-scrim { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(7,28,31,.94) 0%, rgba(7,28,31,.8) 38%, rgba(7,28,31,0) 66%); }
.hero-text { position: relative; width: 54%; min-width: 0; padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 14px; align-items: flex-start; }
.hero-kicker { color: var(--lime-bright); font-weight: 700; }
.hero h1 { color: #fff; font-size: clamp(32px, 3.6vw, 48px); white-space: pre-line; }
.hero p { color: #E3EAE6; font-size: 17px; }
.hero .btn:hover { background: #fff; color: var(--ink); }
.dots { display: flex; margin: 6px 0 0 -14px; }
.dots button { width: 44px; height: 44px; background: none; border: 0; padding: 0; display: flex; align-items: center; justify-content: center; }
.dots span { display: block; width: 12px; height: 12px; border-radius: 50%; background: #8FA09C; }
.dots [aria-pressed="true"] span { background: var(--lime-bright); }
.features { list-style: none; margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px 24px; }
.features li { display: flex; gap: 12px; align-items: center; line-height: 1.35; }
.features small { display: block; font-size: 14px; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin: 14px 0 26px; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 16px; min-height: 46px; font-weight: 700; color: var(--ink); }
.tabs [aria-pressed="true"] { border-color: var(--lime); color: var(--lime-dark); }
.center { display: flex; justify-content: center; margin-top: 26px; }
.cat-tile { border: 1px solid var(--line); background: #fff; padding: 20px 10px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; text-align: center; transition: box-shadow .18s, border-color .18s; }
.cat-tile:hover { box-shadow: 0 16px 32px rgba(7,28,31,.1); border-color: var(--lime); color: var(--ink); }
.cat-tile img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; }
.cat-tile b { line-height: 1.3; }
.cat-tile small { font-size: 14px; color: var(--muted); }
.promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.promo { position: relative; min-height: 260px; overflow: hidden; display: flex; align-items: center; background: var(--ink); color: #fff; text-decoration: none; }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.promo-scrim { position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(7,28,31,.92) 0%, rgba(7,28,31,.7) 45%, rgba(7,28,31,0) 78%); }
.promo-in { position: relative; padding: 28px; max-width: 62%; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.promo h3 { color: #fff; font-size: 26px; }
.promo:hover { color: #fff; }
.promo span.more { color: var(--lime-bright); font-weight: 700; }
.minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.mini-title { font-size: 23px; border-bottom: 2px solid var(--lime); padding-bottom: 8px; margin-bottom: 12px; }
.mini { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.mini a.pic { background: var(--tile); flex-shrink: 0; }
.mini img { width: 76px; height: 76px; object-fit: cover; }
.mini img.fit { object-fit: contain; }
.mini-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.mini-info a { color: var(--ink); font-weight: 600; text-decoration: none; }
.mini-info small { font-size: 14px; color: var(--muted); }
.mini .price { font-size: 18px; }
.square { width: 44px; height: 44px; padding: 0; min-height: 44px; flex-shrink: 0; }
.steps-3 { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; margin-top: 26px; counter-reset: s; }
.steps-3 li { background: var(--cream); padding: 24px; display: flex; flex-direction: column; gap: 6px; counter-increment: s; }
.steps-3 li::before { content: counter(s); font-family: var(--head); font-weight: 600; font-size: 36px; color: var(--lime-dark); line-height: 1.1; }
.steps-3 b { font-size: 19px; }
.steps-3 span { color: var(--ink-2); }
.story { background: var(--ink); color: #fff; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.story-in { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; justify-content: center; }
.story h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); }
.story p { color: #D9E2DF; }
.story img { width: 100%; height: 100%; min-height: 280px; max-height: 420px; object-fit: cover; }
.story .btn:hover { background: #fff; color: var(--ink); }
.kicker { color: var(--lime-bright); font-weight: 700; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 32px 24px; }
.post-card { display: flex; flex-direction: column; gap: 8px; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card time { font-size: 14px; color: var(--muted); }
.post-card h3 { font-family: var(--body); font-size: 18px; font-weight: 700; line-height: 1.35; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--lime-dark); }
.post-card p { color: var(--ink-2); }
.partners { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 26px; }
.partners li { border: 1px solid var(--line); padding: 18px; }
.partners small { display: block; color: var(--muted); }

/* หัวหน้าเพจ */
.page-head { background: var(--cream); padding: 22px 0; }
.page-head h1 { font-size: clamp(30px, 3.4vw, 44px); }
.crumb { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; margin-bottom: 4px; color: var(--ink-2); }
.crumb li + li::before { content: '/'; margin-right: 8px; color: var(--muted); }
.crumb a { color: var(--ink-2); }

/* Shop */
.shop-side { display: flex; flex-direction: column; gap: 24px; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; background: var(--cream); padding: 10px 14px; margin-bottom: 18px; }
.toolbar-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label, .label { font-size: 14px; font-weight: 600; }
.input { padding: 10px 14px; min-height: 46px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; width: 100%; }
textarea.input { resize: vertical; }
.input.bad { border-color: var(--danger); }
.err { color: var(--danger); font-size: 14px; font-weight: 600; }
.view-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.view-toggle button { width: 44px; height: 44px; border: 0; background: #fff; display: flex; align-items: center; justify-content: center; padding: 0; }
.view-toggle [aria-pressed="true"] { background: var(--lime-soft); color: var(--lime-dark); }
.grid.list { grid-template-columns: minmax(0, 1fr); }
.grid.list .card { flex-direction: row; }
.grid.list .card-img { flex: 0 0 180px; }
.grid.list .card-body { text-align: left; }
.grid.list .card-action { max-width: 240px; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 26px; }
.pager button { min-width: 44px; height: 44px; border: 1px solid var(--line-2); background: #fff; font-weight: 700; border-radius: 4px; padding: 0 10px; }
.pager [aria-current="page"] { background: var(--lime); border-color: var(--lime); }
.empty { border: 1px solid var(--line); padding: 48px 24px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* หน้าสินค้า */
.pd { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(24px, 4vw, 48px); align-items: start; }
.pd-img { position: relative; background: var(--cream); border: 1px solid var(--line); }
.pd-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pd-img img.fit { object-fit: contain; }
.pd-info { display: flex; flex-direction: column; gap: 12px; }
.pd-info h1 { font-size: clamp(30px, 3.2vw, 42px); }
.pd-info .price { font-size: 38px; }
.pd-desc { border-top: 1px solid var(--line); padding-top: 14px; font-size: 17px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.checks { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex-shrink: 0; margin-top: 3px; color: var(--lime-dark); }
.box { border: 1px solid var(--line); padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 14px; }

/* ตะกร้าและชำระเงิน */
.steps { list-style: none; background: var(--cream); padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.steps li { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); }
.steps i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; background: var(--line); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.steps .on { color: var(--ink); }
.steps .on i { background: var(--lime); }
.steps .done { color: var(--ink); }
.steps .done i { background: #D6E8A6; }
.co { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-top: 24px; }
.co-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.co-side { flex: 1 1 340px; min-width: 0; background: var(--cream); padding: 22px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 180px; }
.line { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; }
.line img { width: 76px; height: 76px; object-fit: cover; background: var(--tile); flex-shrink: 0; }
.line img.fit { object-fit: contain; }
.line-info { flex: 1 1 170px; min-width: 0; line-height: 1.35; }
.line-info a { font-weight: 600; color: var(--ink); text-decoration: none; }
.line-info small { display: block; color: var(--muted); font-size: 14px; }
.line-total { min-width: 84px; text-align: right; font-weight: 700; }
.link-btn { background: none; border: 0; padding: 0; min-height: 32px; color: var(--muted); text-decoration: underline; font-size: 14px; }
.link-btn:hover { color: var(--danger); }
.sum { display: flex; justify-content: space-between; gap: 12px; }
.sum.top { border-top: 1px solid #DEDBCB; padding-top: 12px; }
.sum.total { border-top: 2px solid var(--ink); padding-top: 12px; align-items: baseline; }
.sum.total b { font-size: 18px; }
.sum.total .price { font-size: 30px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.method { background: #fff; border: 2px solid var(--line-2); border-radius: 4px; padding: 12px 16px; min-height: 64px; text-align: left; display: flex; flex-direction: column; }
.method b { font-size: 17px; }
.method span { font-size: 14px; }
.method[aria-pressed="true"] { background: var(--lime-soft); border-color: var(--lime-dark); }
.pay-qr { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; background: var(--cream); padding: clamp(16px, 3vw, 26px); }
.qr-card { background: #fff; padding: 18px; width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.qr-card svg { width: 100%; display: block; }
.qr-amount { font-family: var(--head); font-weight: 600; font-size: 30px; color: var(--lime-dark); line-height: 1.2; }
.pay-steps { flex: 1 1 240px; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.note { background: var(--warn-bg); color: var(--warn-ink); padding: 12px 14px; font-size: 15px; }
.bank { margin: 0; background: var(--cream); padding: clamp(16px, 3vw, 22px); display: flex; flex-direction: column; gap: 12px; }
.bank div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; }
.bank div.sep { border-top: 1px solid #DEDBCB; padding-top: 12px; }
.bank dd { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 700; }
.bank .big { font-family: var(--head); font-weight: 600; font-size: 22px; }
.drop-file { position: relative; border: 2px dashed var(--line-2); padding: 18px; display: flex; gap: 14px; align-items: center; background: #fff; }
.drop-file.has { border-color: var(--lime-dark); background: var(--lime-soft); }
.drop-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-file img { width: 64px; height: 64px; object-fit: cover; }
.drop-file span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ok-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--lime); display: flex; align-items: center; justify-content: center; }
.timeline { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.timeline li { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.timeline i { width: 16px; height: 16px; border-radius: 50%; background: var(--line); flex-shrink: 0; }
.timeline .on { color: var(--ink); font-weight: 700; }
.timeline .on i { background: var(--lime); }

/* เนื้อหา */
.prose { max-width: 780px; display: flex; flex-direction: column; gap: 14px; font-size: 17px; }
.prose h2 { font-size: 26px; margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.todo { background: var(--warn-bg); color: var(--warn-ink); padding: 0 5px; font-weight: 600; }
.faq { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid var(--line); }
.faq summary { padding: 14px 18px; font-weight: 700; cursor: pointer; min-height: 48px; }
.faq details[open] summary { background: var(--cream); }
.faq details > div { padding: 14px 18px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(24px, 4vw, 48px); align-items: center; }
.split img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.values > div { background: var(--cream); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.contact-card { display: block; border: 1px solid var(--line); padding: 18px; text-decoration: none; color: var(--ink); }
.contact-card:hover { border-color: var(--lime); color: var(--ink); }

.ship-note { font-size: 14px; color: var(--ink-2); background: var(--cream); padding: 8px 12px; }
.co-side .ship-note { background: #fff; }

/* ปุ่มแชร์ข่าว */
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 6px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s; }
.share-btn:hover { border-color: var(--lime-dark); color: var(--lime-dark); }
.share-ico { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.share-ico.fb { background: #1877F2; }
.share-ico.ln { background: #06C755; }
.share-ico.xx { background: #000; }
.share-ico.cp { background: var(--cream); color: var(--ink); }
.share-end { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 6px; }

/* แถบล่างและป๊อปอัป */
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--ink); color: #fff; padding: 10px 0; }
.cart-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; }
.cart-bar .btn-ghost { background: none; color: #fff; border: 1px solid #7E9296; font-weight: 600; }
.cart-bar .btn-ghost:hover { background: #fff; color: var(--ink); }
.cart-bar .acts { display: flex; gap: 8px; }
.cart-bar .btn { padding: 8px 16px; min-height: 44px; }
.cart-bar .btn:not(.btn-ghost):hover { background: #fff; color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 4px; max-width: calc(100% - 32px); text-align: center; }
.quick { width: min(820px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; overflow: hidden; }
.quick-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); position: relative; max-height: calc(100dvh - 32px); overflow-y: auto; }
.quick-in > img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--tile); }
.quick-in > img.fit { object-fit: contain; }
.quick-info { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.quick-close { position: absolute; top: 8px; right: 8px; }
.drawer-line { display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.drawer-line img { width: 68px; height: 68px; object-fit: cover; background: var(--tile); flex-shrink: 0; }
.drawer-line img.fit { object-fit: contain; }
.drawer-line > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.drawer-line .r { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* ส่วนท้าย */
.site-foot { background: var(--ink); color: #D9E2DF; padding: clamp(36px, 5vw, 56px) 0 22px; margin-top: clamp(44px, 5vw, 72px); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 28px; }
.site-foot h2 { font-family: var(--body); font-size: 16px; font-weight: 700; color: var(--lime-bright); margin-bottom: 8px; }
.site-foot ul { list-style: none; display: flex; flex-direction: column; }
.site-foot a { color: #D9E2DF; text-decoration: none; display: inline-block; padding: 3px 0; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-brand { font-family: var(--head); font-weight: 600; font-size: 22px; color: #fff; margin-bottom: 8px; }
.foot-low { border-top: 1px solid #2A4044; margin-top: 28px; padding-top: 14px; font-size: 14px; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .head-phone { display: none; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side-desk { display: none; }
  .chips { display: flex; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .site-head { position: static; }
  .navbar { display: none; }
  .menu-btn { display: inline-flex; }
  .search { order: 3; flex: 1 1 100%; max-width: none; }
  .topbar .addr { display: none; }
  .cart-tool small, .cart-tool b { display: none; }
  .head-main { gap: 8px 4px; }
  .brand { flex: 1 1 0; min-width: 0; gap: 6px; }
  .brand img { height: 46px; }
  .brand span { font-size: 18px; white-space: nowrap; }
  .head-tools .tool[href="account.html"] { display: none; }
  .chips { scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .round[data-act="quick"] { display: none; }
  .hero { flex-direction: column; min-height: 0; height: auto; }
  .hero-img { position: static; height: 220px; }
  .hero-scrim { display: none; }
  .hero-text { width: 100%; }
  .co-side { position: static; }
  .grid.list .card-img { flex-basis: 120px; }
  .promo-in { max-width: 80%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .cat-tile { transition: none; }
}
@media print {
  .site-head, .topbar, .site-foot, .cart-bar, .no-print { display: none !important; }
}
