/* devanagari */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/3e643ad9.woff2") format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/18e38df4.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/c0bd132b.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/09108a5c.woff2") format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/5e2a47eb.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/457cc63c.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/4f336f96.woff2") format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/845621e6.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/d9b045b7.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/d4bbcfae.woff2") format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/27b6cb85.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/8367760a.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* devanagari */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/861753f0.woff2") format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}
/* latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/68ae12e9.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/dc90dfca.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* thai */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/040a4e32.woff2") format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/3eea2529.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/e26723b9.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/964e04ef.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* thai */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/317032d9.woff2") format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/b7687c1b.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/37a99bf2.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/80cdddb7.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* thai */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/62d3acfc.woff2") format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/60eb970c.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/a320b95c.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/5368e727.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* thai */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/2cd46fc4.woff2") format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
/* vietnamese */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/6f5cc90d.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/71778156.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Prompt';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/d22e4645.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Mera Catalog — หน้าตาตาม Prototype v2 (Figma 2nd Prototype) */
:root{--wine:#841132;--pink:#FEBFC7;--blush:#FCE4E8;--cream:#FFFBED;--ink:#2a0a14;--ink2:#5e2a37;--mut:#8a6a72;--line:#efe2d8;--card:#fff;--ok:#17652F;--okbg:#DDF2E2;--bad:#9b1c1c;--outer:#EFE6DC;--sh:0 2px 10px rgba(58,7,22,.10);color-scheme:light}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--outer);color:var(--ink);font-family:Poppins,Prompt,system-ui,sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
img{max-width:100%}
a{color:var(--wine)}
:focus-visible{outline:2px solid var(--wine);outline-offset:2px}
#app{max-width:520px;margin:0 auto;min-height:100vh;min-height:100dvh;background:var(--cream);position:relative;display:flex;flex-direction:column}
.main{flex:1;padding-bottom:8px}

/* ชิ้นส่วนซ้ำ */
.hdr{position:sticky;top:0;z-index:30;background:var(--cream);display:grid;grid-template-columns:44px 1fr 44px;align-items:center;padding:8px 14px;padding-top:calc(8px + env(safe-area-inset-top,0px));border-bottom:1px solid var(--line)}
.hdr h1{margin:0;text-align:center;font-size:18px;font-weight:600}
.back{width:34px;height:34px;border-radius:50%;background:var(--wine);border:0;display:flex;align-items:center;justify-content:center;color:#fff;padding:0}
.icbtn{width:38px;height:38px;border-radius:50%;border:0;background:#fff;display:flex;align-items:center;justify-content:center;position:relative;padding:0;color:var(--ink);flex:none}
.dot{position:absolute;top:-3px;right:-3px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--pink);color:var(--wine);font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center}
.pad{padding:16px}
.sec{display:flex;flex-direction:column;gap:12px}
.sec-h{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:0 16px}
.sec-h h2{margin:0;font-size:20px;font-weight:700}
.sec-h small{color:var(--mut);font-size:12px}
.link{border:0;background:none;color:var(--ink2);font-size:12px;text-decoration:underline;padding:6px 0}
.hscroll{display:flex;gap:12px;overflow-x:auto;padding:4px 16px 10px;scroll-padding:0 16px;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.hscroll::-webkit-scrollbar{display:none}
.hscroll>*{scroll-snap-align:start;flex:none}

.pcard{background:var(--card);border-radius:12px;box-shadow:var(--sh);border:0;padding:0;text-align:left;display:flex;flex-direction:column;overflow:hidden;position:relative;color:var(--ink);width:100%}
.pcard .pim{position:relative;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center}
.pcard .pim img.ph{width:100%;height:100%;object-fit:cover}
.pcard .pim.out img.ph{opacity:.45}
.mb{position:absolute;top:8px;right:8px;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.92);display:flex;align-items:center;justify-content:center;border:0;padding:0}
.mb img{width:24px;height:24px}
.tag{position:absolute;top:8px;left:8px;font-size:10px;font-weight:700;padding:3px 8px;border-radius:999px;background:var(--wine);color:#fff}
.tag.dark{background:#2a0a14}.tag.soon{background:var(--pink);color:var(--wine)}
.pcard .pb{padding:8px 10px 10px;display:flex;flex-direction:column;gap:2px}
.pr{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}
.pr b{font-size:15px;font-weight:700}
.pr s{font-size:11px;color:var(--wine);opacity:.85}
.pn{font-size:13px;font-weight:600;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ps{font-size:11px;color:var(--mut)}
.cdots{display:flex;gap:3px;margin-top:3px}.cdots i{width:10px;height:10px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 16px}
.w150{width:150px}

.tabs{display:flex;gap:18px;overflow-x:auto;padding:0 16px;border-bottom:1px solid var(--line);scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tabs button{border:0;background:none;padding:10px 0;font-size:15px;color:var(--mut);white-space:nowrap;border-bottom:2px solid transparent;margin-bottom:-1px}
.tabs button.on{color:var(--wine);font-weight:600;border-color:var(--wine)}
.chips{display:flex;gap:8px;overflow-x:auto;padding:2px 16px 6px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{border:0;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.14);border-radius:999px;padding:7px 16px;font-size:13px;font-weight:500;white-space:nowrap;color:var(--ink)}
.chip.on{background:var(--wine);color:#fff}

.btn{display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;background:var(--wine);color:#fff;font-weight:600;font-size:15px;min-height:46px;padding:10px 18px;width:100%;text-decoration:none}
.btn[disabled],.btn.dis{background:#d9c3c9;color:#8a6a72;cursor:default;pointer-events:none}
.btn-o{display:flex;align-items:center;justify-content:center;gap:8px;border:1.5px solid var(--ink);border-radius:999px;background:#fff;color:var(--ink);font-weight:600;font-size:15px;min-height:46px;padding:10px 18px;width:100%;text-decoration:none}
.btn-line{display:flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:999px;background:#06C755;color:#fff;font-weight:700;font-size:15px;min-height:50px;width:100%;text-decoration:none}
.btn-line.dis{opacity:.45;pointer-events:none}
.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}

.card{background:#fff;border-radius:12px;box-shadow:var(--sh);padding:14px}
.muted{color:var(--mut)}
.small{font-size:12px}
.row{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.pill{display:inline-flex;align-items:center;font-size:11px;font-weight:600;padding:3px 9px;border-radius:999px;background:var(--blush);color:var(--wine);white-space:nowrap}
.pill.off{background:#eee5e0;color:var(--ink2)}

.bnav{position:sticky;bottom:0;z-index:40;background:#fff;box-shadow:0 -1px 8px rgba(0,0,0,.08);display:flex;padding:6px 8px calc(8px + env(safe-area-inset-bottom,0px))}
.bnav button{flex:1;border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:500;color:var(--ink);min-height:50px;justify-content:center}
.bnav button.on{color:var(--wine);font-weight:700}

/* hero */
.hero{position:relative;background:var(--wine);color:var(--cream);padding:calc(18px + env(safe-area-inset-top,0px)) 18px 22px;overflow:hidden}
.hero .ht{display:flex;align-items:center;gap:10px;position:relative;z-index:2}
.hero .burger{border:0;background:none;color:var(--cream);padding:4px;display:flex}
.hero .hbtn{border:1px solid rgba(255,251,237,.6);background:none;color:var(--cream);border-radius:999px;font-size:12px;font-weight:600;padding:6px 12px;min-height:34px;white-space:nowrap}
.hero h1{margin:26px 0 0;font-size:32px;font-weight:700;line-height:1.05;letter-spacing:-.01em;position:relative;z-index:2;max-width:250px;text-wrap:balance}
.hero p{margin:6px 0 46px;font-size:15px;position:relative;z-index:2;color:var(--pink);max-width:230px}
.hero .wm{position:absolute;right:-50px;top:30px;width:230px;opacity:.16;z-index:1}
.hero .collage{position:absolute;right:14px;bottom:-30px;display:flex;gap:6px;z-index:1;transform:rotate(-6deg)}
.hero .collage img{width:64px;height:84px;object-fit:cover;border-radius:10px;box-shadow:0 6px 16px rgba(0,0,0,.25);border:2px solid var(--cream);background:#fff}

/* banner */
.bnr{position:relative;border-radius:14px;overflow:hidden;background:repeating-linear-gradient(135deg,#f6ece4 0 10px,#fbf4ee 10px 20px);border:1.5px dashed #c9a7ae;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--ink2);gap:4px;padding:12px;text-decoration:none}
.bnr b{font-size:13px;color:var(--wine)}
.bnr small{font-size:11px}
.bnr img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.bnr.has{border:0;padding:0}
.bnr.top{width:min(340px,calc(100vw - 48px));aspect-ratio:1200/625}
.bnr.mid{width:100%;aspect-ratio:1200/580}
.dots{display:flex;justify-content:center;gap:5px}
.dots span{width:6px;height:6px;border-radius:999px;background:#e4c5cb;transition:width .2s}
.dots span.on{background:var(--wine);width:16px}

.zone{position:sticky;top:0;z-index:25;background:var(--cream);padding:10px 16px;display:flex;gap:8px;border-bottom:1px solid var(--line)}
.zone button{flex:1;border:1.5px solid var(--wine);background:#fff;color:var(--wine);border-radius:999px;min-height:40px;font-weight:600;font-size:14px;display:flex;align-items:center;justify-content:center;gap:6px}
.zone button.on{background:var(--wine);color:#fff}

/* deal card */
.dcard{width:290px;background:#fff;border-radius:14px;box-shadow:var(--sh);overflow:hidden;display:flex;flex-direction:column;border:0;padding:0;text-align:left;color:var(--ink)}
.dcard.full{width:100%}
.dcard .dim{position:relative;aspect-ratio:16/10;background:#f4ece6}
.dcard .dim img.ph{width:100%;height:100%;object-fit:cover}
.cd{position:absolute;left:8px;bottom:8px;background:rgba(42,10,20,.8);color:#fff;font-size:11px;font-weight:600;padding:4px 9px;border-radius:999px;display:flex;gap:5px;align-items:center}
.dcard .db{padding:10px 12px 12px;display:flex;flex-direction:column;gap:6px}
.bar{height:6px;border-radius:999px;background:#f0dfe2;overflow:hidden}
.bar i{display:block;height:100%;background:var(--wine);border-radius:999px}
.tiers{display:flex;gap:6px;flex-wrap:wrap}
.tiers span{font-size:11px;border:1px solid var(--line);border-radius:8px;padding:3px 7px;background:#fffdf8}
.tiers span.on{border-color:var(--wine);color:var(--wine);font-weight:600;background:var(--blush)}

/* product page */
.pgal{position:relative;background:#e9e7e5;aspect-ratio:1/1}
.pgal .gtrack{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;height:100%;scrollbar-width:none;overscroll-behavior-x:contain}
.pgal .gtrack::-webkit-scrollbar{display:none}
.pgal .gtrack img{flex:none;width:100%;height:100%;object-fit:cover;scroll-snap-align:start;background:#fff}
.pgal .back{position:absolute;left:14px;top:calc(14px + env(safe-area-inset-top,0px));z-index:3}
.pgal .blogo{position:absolute;right:14px;top:calc(12px + env(safe-area-inset-top,0px));width:40px;height:40px;border-radius:50%;background:#fff;overflow:hidden;z-index:3;border:2px solid #fff;padding:0}
.pgal .blogo img{width:100%;height:100%;object-fit:cover}
.pgal .mb{top:auto;bottom:12px;right:12px;width:36px;height:36px}.pgal .mb img{width:32px;height:32px}
.pgal .cnt{position:absolute;left:12px;bottom:12px;background:rgba(42,10,20,.7);color:#fff;font-size:11px;font-weight:600;padding:3px 9px;border-radius:999px}
.gdots{display:flex;justify-content:center;gap:5px;padding:8px 0;border-bottom:1px solid var(--wine)}
.gdots span{width:6px;height:6px;border-radius:50%;background:#cfc5c0}.gdots span.on{background:var(--ink)}
.bigp{font-size:28px;font-weight:700}
.acc{border-bottom:1px solid #d9cfc8}
.acc>button{width:100%;border:0;background:none;display:flex;justify-content:space-between;align-items:center;padding:10px 0;font-size:15px;font-weight:500;color:var(--ink)}
.acc .ab{padding:0 0 12px;font-size:13px;line-height:1.6;color:var(--ink2)}
.acc .ab ul{margin:0;padding-left:18px}
.stickybuy{position:sticky;bottom:0;background:var(--cream);padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border-top:1px solid var(--line);z-index:20}
.stickybuy.one{grid-template-columns:1fr}
.opt{border:0;background:#e9e4e1;border-radius:999px;min-width:42px;height:42px;padding:0 14px;font-weight:600;font-size:13px;color:var(--ink)}
.opt.on{background:var(--wine);color:#fff}
.opt[disabled]{opacity:.35;text-decoration:line-through}
.sw{display:inline-flex;align-items:center;gap:8px;border:1.5px solid var(--line);border-radius:999px;background:#fff;padding:5px 12px 5px 5px;font-size:13px;font-weight:600;color:var(--ink)}
.sw i{width:24px;height:24px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}
.sw.on{border-color:var(--wine);background:var(--blush);color:var(--wine)}
.sw[disabled]{opacity:.4}
.qty{display:flex;align-items:center;gap:12px}
.qty button{width:30px;height:30px;border-radius:50%;border:0;background:var(--wine);color:#fff;font-size:18px;line-height:1;display:flex;align-items:center;justify-content:center;padding:0}
.qty button.m{background:none;color:var(--ink);font-size:22px}
.qty b{min-width:18px;text-align:center;font-size:17px}

/* sheet */
.dim-bg{position:fixed;inset:0;background:rgba(42,10,20,.45);z-index:80}
.sheet{position:fixed;left:50%;transform:translateX(-50%);width:100%;max-width:520px;bottom:0;z-index:81;background:var(--cream);border-radius:24px 24px 0 0;padding:10px 18px calc(18px + env(safe-area-inset-bottom,0px));max-height:88vh;max-height:88dvh;overflow-y:auto;display:flex;flex-direction:column;gap:14px}
.grab{align-self:center;width:44px;height:5px;border-radius:999px;background:#d8c9c3;flex:none}
.sheet h3{margin:0;font-size:18px;font-weight:600}
.howimg{width:100%;border-radius:14px;display:block;background:#fff}

/* gate (สมัครสมาชิก) */
.gate{position:fixed;inset:0;z-index:9995;background:rgba(255,251,237,.95);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);display:flex;align-items:flex-end;justify-content:center}
.gate .gc{width:100%;max-width:520px;max-height:100dvh;overflow-y:auto;background:var(--cream);border-radius:24px 24px 0 0;box-shadow:0 -10px 40px rgba(42,16,23,.2);padding:0 0 calc(18px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column}
@media(min-width:600px){.gate{align-items:center}.gate .gc{border-radius:24px;max-width:440px}}
.gate .gh{background:var(--wine);color:var(--cream);padding:18px 20px 16px;display:flex;flex-direction:column;gap:12px}
.gate .gh .row{align-items:center}
.gate .gbars{display:grid;gap:4px}
.gate .gbars i{height:6px;border-radius:999px;background:rgba(255,255,255,.3)}
.gate .gbars i.on{background:var(--pink)}
.gate .gb{padding:20px;display:flex;flex-direction:column;gap:12px}
.gate h3{margin:0;font-size:22px;line-height:1.3;color:var(--ink);text-wrap:balance}
.gate .gsub{margin:-4px 0 4px;font-size:14px;line-height:1.5;color:var(--mut)}
.gate .gopts{display:grid;gap:10px}
.gate .gopt{min-height:54px;border-radius:14px;border:1.5px solid var(--wine);background:#fff;color:var(--wine);font-weight:700;font-size:16px;padding:8px}
.gate .gopt.on{background:var(--wine);color:#fff}
.gate select{font-size:17px;min-height:54px;padding:0 14px;border-radius:14px;border:1.5px solid var(--wine);background:#fff;width:100%}
.gate .gfoot{display:flex;justify-content:center;gap:18px}
.gate .gqr{display:flex;gap:16px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px}
.gate .gqr img{width:140px;height:140px;flex:none;image-rendering:pixelated}
@media(max-width:420px){.gate .gqr{flex-direction:column;text-align:center}}
.spin{width:30px;height:30px;border-radius:50%;border:3px solid var(--pink);border-top-color:var(--wine);animation:spin .8s linear infinite;display:block;margin:6px auto}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spin{animation-duration:2s}}

/* menu */
.menu{position:fixed;inset:0;z-index:90;display:flex;justify-content:center}
.menu .mi{width:100%;max-width:520px;background:#fff;display:flex;flex-direction:column;padding:calc(16px + env(safe-area-inset-top,0px)) 24px calc(30px + env(safe-area-inset-bottom,0px))}
.menu nav{display:flex;flex-direction:column;align-items:center;gap:4px;margin-top:30px}
.menu nav button,.menu nav a{border:0;background:none;font-size:21px;font-weight:500;padding:8px 14px;color:var(--ink);text-decoration:none}
.lang{display:flex;background:var(--blush);border-radius:999px;padding:3px;gap:2px;align-self:center;margin-top:18px}
.lang button{border:0;background:none;color:var(--wine);font-size:13px;font-weight:600;padding:6px 16px;border-radius:999px}
.lang button.on{background:var(--wine);color:#fff}

.prow{display:flex;align-items:center;gap:10px;width:100%;border:0;border-bottom:1px solid var(--line);background:none;padding:13px 4px;font-size:15px;text-align:left;color:var(--ink);text-decoration:none}
.prow:last-child{border-bottom:0}
.prow span{flex:1}

#toast{position:fixed;left:50%;bottom:90px;transform:translateX(-50%);background:#2a0a14;color:#fff;padding:11px 18px;border-radius:999px;font-size:13px;z-index:9999;max-width:calc(100% - 32px);text-align:center;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.skel{background:linear-gradient(90deg,#f3ebe4,#faf4ee,#f3ebe4);background-size:200% 100%}

/* โหมดแก้ข้อความ (หน้าแอดมิน) */
body.tk-edit .tk{outline:1.5px dashed rgba(132,17,50,.55);outline-offset:2px;border-radius:3px;cursor:text}
body.tk-edit .hero .tk,body.tk-edit .btn .tk,body.tk-edit .bnav button.on .tk,body.tk-edit .zone button.on .tk,body.tk-edit .chip.on .tk{outline-color:rgba(255,191,199,.9)}
body.tk-edit .tk:hover{background:rgba(254,191,199,.35)}
body.tk-edit .tk.tk-on{box-shadow:0 0 0 3px rgba(254,191,199,.55)}
.tk.tk-act{outline:2px solid #841132!important;background:#fff!important;color:#2a0a14!important;padding:0 3px}
.tkbar{position:fixed;z-index:10000;width:min(340px,calc(100vw - 16px));background:#fff;border:1px solid #efe2d8;border-radius:14px;box-shadow:0 12px 32px rgba(42,10,20,.25);padding:10px;display:flex;flex-direction:column;gap:8px;font-size:13px;color:#2a0a14}
.tkbar small{color:#8a6a72;font-size:11px;line-height:1.4}
.tkr{display:flex;flex-direction:column;gap:4px}
.tkin{border:1px solid #e3d6ce;border-radius:8px;padding:8px 10px;font-size:14px;width:100%}
.tkb{display:flex;gap:6px}
.tkb button{flex:1;border:0;border-radius:8px;min-height:36px;font-weight:600;font-size:13px;background:#FCE4E8;color:#841132}
.tkb button[data-x=save]{background:#841132;color:#fff}
.tkb button[disabled]{opacity:.45}

.gate .gsearch{font-size:16px;min-height:48px;padding:0 14px;border-radius:14px;border:1.5px solid var(--line);background:#fff;width:100%}
.gate .glist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:min(42vh,320px);overflow-y:auto;padding:2px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.gate .gprov{min-height:46px;border-radius:12px;border:1.5px solid var(--line);background:#fff;color:var(--ink);font-size:15px;font-weight:600;padding:6px 8px}
.gate .gprov.on{background:var(--wine);border-color:var(--wine);color:#fff}

/* ตารางไซซ์ + รายละเอียดสินค้า */
.link2{border:0;background:none;color:var(--wine);font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:3px;padding:4px 0;display:inline-flex;align-items:center;gap:5px;align-self:flex-start}
.szwrap{display:flex;flex-direction:column;gap:10px}
.szhead{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.seg{display:inline-flex;background:var(--blush,#FCE4E8);border-radius:999px;padding:3px;gap:2px}
.seg button{border:0;background:none;color:var(--wine);font-size:12px;font-weight:600;padding:4px 12px;border-radius:999px;min-height:28px}
.seg button.on{background:var(--wine);color:#fff}
.sztbl{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid #e3d6ce;border-radius:12px;background:#fff}
.sztbl table{border-collapse:collapse;width:100%;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.sztbl th,.sztbl td{padding:9px 7px;text-align:center;border-bottom:1px solid #f1e7e0}
.sztbl thead th{background:#faf3ee;color:var(--ink2);font-weight:600;font-size:12px}
.sztbl tbody th{text-align:left;font-weight:700;color:var(--ink);position:sticky;left:0;background:#fff}
.sztbl tbody th small{display:block;font-size:10px;font-weight:600;color:var(--wine)}
.sztbl tbody tr:last-child th,.sztbl tbody tr:last-child td{border-bottom:0}
.sztbl tr.on th,.sztbl tr.on td{background:#fdecef}
.sztbl td{color:var(--ink)}
.sznote{background:#fff8e6;border:1px solid #f1dfae;color:#6b4e00;border-radius:10px;padding:8px 11px;font-size:12px;line-height:1.6}
.szhow{display:flex;flex-direction:column;gap:3px;font-size:12px;line-height:1.55}
.szhow i{font-style:normal;font-weight:600;color:var(--ink);margin-right:6px}
.szraw{font-size:12px;color:var(--mut)}
.szraw summary{cursor:pointer;color:var(--ink2);padding:2px 0}
.pdesc{margin:0 0 10px;font-size:13.5px;line-height:1.7;color:var(--ink)}
.spec{border-collapse:collapse;width:100%;font-size:13px;margin-bottom:10px}
.spec th{text-align:left;font-weight:500;color:var(--mut);padding:7px 10px 7px 0;width:38%;vertical-align:top}
.spec td{padding:7px 0;color:var(--ink);vertical-align:top;line-height:1.55;word-break:break-word}
.spec tr+tr th,.spec tr+tr td{border-top:1px solid #efe5de}
.spec .pill{margin:0 4px 4px 0;display:inline-flex}

/* นับถอยหลังปิดรอบ */
.cd span[data-cd]{font-variant-numeric:tabular-nums}
.cdbig{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;background:var(--blush);color:var(--wine);border-radius:999px;padding:6px 12px;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.cdbig b{font-weight:700}
.cdbig small{color:var(--ink2);font-weight:500;font-size:11px;margin-left:4px}
.heartbtn{width:38px;height:38px;border-radius:50%;border:1.5px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:center;padding:0;flex:none}

/* ---- v3: ปุ่มภาษา มุมบนขวา ---- */
.langbtn{display:inline-flex;align-items:center;gap:5px;border:1px solid rgba(255,251,237,.55);background:rgba(255,255,255,.1);color:var(--cream);border-radius:999px;min-height:36px;padding:0 11px;font:600 12px Poppins,Prompt,sans-serif;flex:none;cursor:pointer}
.langbtn b{font-weight:700;letter-spacing:.04em}
.gate .gh .langbtn{min-height:32px}
/* ---- v3: กล่องดีลราคาส่ง ---- */
.promo{margin:0 16px;padding:14px 16px;border-radius:16px;background:linear-gradient(120deg,var(--blush),#fff4f6);border:1px solid #f4cdd5;display:flex;flex-direction:column;gap:6px}
.promo>b{color:var(--wine);font-size:20px;line-height:1.25}
.promo>span{font-size:13px;color:var(--ink2);line-height:1.6;display:flex;flex-wrap:wrap;gap:6px;align-items:center}
/* ---- v3: ทำไมต้อง Mera (หัวข้ออย่างเดียว) ---- */
.why{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.why .card{padding:14px 12px;display:flex;align-items:center;gap:10px;min-height:64px}
.why .card b{color:var(--wine);font-size:13.5px;line-height:1.35}
.why-i{width:30px;height:30px;border-radius:50%;background:var(--wine);color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;flex:none}
/* ---- v3: รูปโปรไฟล์สมาชิก ---- */
.avatar{position:relative;width:104px;height:104px;border-radius:50%;cursor:pointer;display:block}
.avatar>img,.avatar>span{width:100%;height:100%;border-radius:50%;display:flex;align-items:center;justify-content:center;object-fit:cover;background:var(--pink);color:var(--wine);font-size:40px;font-weight:700;border:3px solid #fff;box-shadow:0 2px 10px rgba(58,7,22,.15)}
.avatar>i{position:absolute;right:2px;bottom:2px;width:32px;height:32px;border-radius:50%;background:var(--wine);border:2px solid #fff;display:flex;align-items:center;justify-content:center}
/* ---- v3: หน้าโปรไฟล์แบรนด์ (ชื่อไม่ชิดขอบ / ไม่ทับรูปปก) ---- */
.bhead{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:0 16px 6px;margin-top:-52px;position:relative}
.blogo2{width:104px;height:104px;border-radius:50%;overflow:hidden;background:#fff;border:4px solid var(--cream);box-shadow:0 4px 14px rgba(42,10,20,.18);flex:none}
.blogo2 img{width:100%;height:100%;object-fit:cover;display:block}
.bname{margin:4px 0 0;font-size:22px;line-height:1.3;font-weight:700;color:var(--ink);overflow-wrap:anywhere;max-width:100%}
.bmeta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:center}
.vpill{background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.15);color:var(--ink);gap:5px}
.vpill img{width:16px;height:16px}
/* ---- v3: หน้าสมัครสมาชิก — แสดงปุ่มครบทุกจอ (รวมเบราว์เซอร์ใน LINE) ---- */
.gate{overflow-y:auto;-webkit-overflow-scrolling:touch}
.gate .gc{max-height:100vh;max-height:100dvh;margin-top:auto}
.gate .gopt,.gate .gprov,.gate .btn,.gate .btn-o,.gate .btn-line,.gate .link{touch-action:manipulation;-webkit-tap-highlight-color:transparent;cursor:pointer}
.gate .gopt{color:var(--wine)}
.hero h1{font-size:28px;line-height:1.15;max-width:270px}
.hero p{max-width:250px;line-height:1.5}
.hero p b{color:var(--cream);font-size:16px}
