/* Senior-friendly pass: large type (body 17, names 18/600, prices 26/700, headings 22/700), high-contrast ink #071C33 / #4B5563, 48px+ touch targets; gold is decoration only. */
/* Layout: white site header, deep-navy campaign hero, 3x2 category cards + navy member-benefit bar, navy section bars over 2-up white product cards. Single light theme; navy carries the brand, gold and red are small accents only. */
:root{
  /* colour */
  --navy:#082A4A; --navy-dark:#061C33; --navy-2:#123D67;
  --paper:#FAF9F6; --white:#FFFFFF; --warm:#F2F0EC; --photo:#F7F7F5;
  --ink:#071C33; --muted:#4B5563; --bg:#F1F4F6;
  --gold:#C9A35B; --gold-soft:#D6B56D; --gold-ink:#5C4315; --cream:#F7F1E3;
  --red:#C8102E;
  --line:#E7E3DC; --line-card:#ECE9E3;
  /* type */
  --f-body:"Kanit","Noto Sans Thai",system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;
  --f-display:"Playfair Display",Georgia,"Times New Roman",serif;
  --t-xs:15px; --t-sm:16px; --t-base:17px; --t-md:18px; --t-lg:20px; --t-xl:22px; --t-price:24px;
  /* spacing */
  --s1:8px; --s2:12px; --s3:16px; --s4:24px; --s5:32px; --s6:48px; --s7:64px;
  /* surfaces */
  --r-card:16px; --r-btn:12px;
  --sh-soft:0 4px 16px rgba(6,28,51,.06); --sh-card:0 4px 18px rgba(0,0,0,.05);
  color-scheme:light;
}
*{box-sizing:border-box}
body{background:var(--bg);color:var(--ink);font-family:var(--f-body);font-weight:400;font-size:var(--t-base);line-height:1.55;margin:0;-webkit-font-smoothing:antialiased}
.wrap{max-width:1080px;margin:0 auto;padding-inline:12px;padding-block:var(--s4) 96px}
button{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--navy);outline-offset:3px}
h1,h2,h3,p{margin:0}

/* ---------- reusable buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--s1);min-height:48px;border-radius:var(--r-btn);padding:10px 20px;font-size:var(--t-md);font-weight:600;cursor:pointer;border:1px solid transparent;transition:background .15s,border-color .15s}
.btn-primary{background:var(--navy);color:var(--white)}
.btn-primary:hover{background:var(--navy-dark)}
.btn-primary:disabled{opacity:.45;cursor:default}
.btn-secondary{background:var(--white);color:var(--navy);border-color:var(--navy)}
.btn-ghost{background:transparent;color:var(--white);border:2px solid var(--white)}
.chev{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}

/* ---------- header ---------- */
.site-head{background:var(--white);border-bottom:1px solid var(--line)}
.site-head-in{max-width:1080px;margin:0 auto;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:var(--s1)}
.brandmark{display:flex;align-items:center;gap:var(--s1);min-width:0}
.site-head img{width:38px;height:auto;flex:0 0 auto}
.brandmark span{font-size:var(--t-sm);font-weight:600;letter-spacing:.08em;color:var(--navy);white-space:nowrap}
.branchbtn{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 14px 6px 10px;border-radius:999px;border:1.5px solid var(--gold);background:var(--navy);color:var(--white);font-size:15px;font-weight:600;cursor:pointer;white-space:nowrap}
.branchbtn:hover{background:var(--navy-dark)}
.pin-ico{width:20px;height:20px;flex:0 0 auto;fill:none;stroke:var(--gold-soft);stroke-width:2;stroke-linejoin:round}
@media (max-width:400px){.brandmark span{font-size:13px;letter-spacing:.04em}.branchbtn{padding-inline:8px 12px;font-size:14.5px}}
@media (max-width:360px){.brandmark span{display:none}}

/* ---------- hero ---------- */
.hero{position:relative;overflow:hidden;text-align:center;color:var(--white);border-radius:20px;padding:var(--s6) var(--s4) var(--s5);
  background:radial-gradient(90% 70% at 50% 30%,var(--navy-2) 0%,var(--navy) 45%,#071C33 100%)}
.hero::after{content:"";position:absolute;inset:10px;border:1px solid rgba(201,163,91,.35);border-radius:14px;pointer-events:none}
.hero-glass{position:absolute;right:-6px;bottom:-14px;width:96px;height:auto;fill:none;stroke:var(--gold-soft);stroke-width:1.1;opacity:.28;pointer-events:none}
.hero-eyebrow{font-size:14px;font-weight:600;letter-spacing:.28em;color:var(--gold-soft)}
.hero-title{margin-top:var(--s2);font-family:var(--f-display);font-weight:700;font-size:clamp(32px,9vw,50px);line-height:1.05;letter-spacing:.01em;color:var(--white)}
.hero-upto{margin-top:var(--s3);font-size:var(--t-lg);font-weight:500;color:var(--white)}
.hero-pct{font-family:var(--f-display);font-weight:700;font-size:clamp(104px,34vw,180px);line-height:.9;color:var(--gold-soft);letter-spacing:-.02em;font-variant-numeric:lining-nums}
.hero-dates{display:inline-flex;align-items:center;gap:var(--s2);margin-top:var(--s3);font-size:clamp(18px,5.2vw,22px);font-weight:500;color:var(--white)}
.hero-dates::before,.hero-dates::after{content:"";width:24px;height:1px;background:var(--gold)}
@media (max-width:480px){.hero-dates::before,.hero-dates::after{display:none}.hero-glass{width:72px;opacity:.18}}
.hero-hint{margin-top:var(--s3);font-size:var(--t-sm);font-weight:400;color:var(--white)}

.bannerimg{border-radius:20px;overflow:hidden;line-height:0;box-shadow:var(--sh-soft)}
.bannerimg img{display:block;width:100%;height:auto}

/* ---------- categories ---------- */
.cats-wrap{margin-top:var(--s5);scroll-margin-top:var(--s3)}
.cats-title{font-size:var(--t-xl);font-weight:700;color:var(--ink);text-align:center;margin-bottom:var(--s3)}
.cats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s2)}
@media (min-width:760px){.cats{grid-template-columns:repeat(6,minmax(0,1fr))}}
.cat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--s1);min-height:112px;padding:var(--s3) 6px;background:var(--white);border:1px solid var(--line);border-radius:var(--r-card);box-shadow:var(--sh-soft);cursor:pointer;font-size:var(--t-md);font-weight:600;line-height:1.3;color:var(--ink);text-align:center;transition:border-color .15s,transform .15s}
.cat svg{width:36px;height:36px;stroke:var(--navy);fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.cat.has-img{padding:0;overflow:hidden;justify-content:flex-start;gap:0}
.cat-img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;background:var(--navy)}
.cat.has-img .cat-name{display:flex;align-items:center;justify-content:center;flex:1;width:100%;min-height:52px;padding:8px 4px}
.cat.catrow{grid-column:1/-1;flex-direction:row;justify-content:flex-start;gap:12px;min-height:64px;padding:10px 14px;text-align:left}
.cat.catrow > svg:first-child{width:32px;height:32px;flex:0 0 auto}
.catrow .cat-name{flex:1;min-width:0}
.catrow-n{font-size:var(--t-sm);font-weight:500;color:var(--muted);white-space:nowrap}
.cat.catrow svg.chev{width:20px;height:20px;flex:0 0 auto;stroke:var(--navy);stroke-width:2.4}
.cat:hover{border-color:var(--navy-2)}
.cat:active{transform:scale(.98)}

.perk{grid-column:1/-1;display:flex;align-items:center;gap:8px;padding:12px 10px 12px 12px;background:var(--navy-dark);color:var(--white);border:1px solid rgba(214,181,109,.45);border-radius:12px;box-shadow:var(--sh-soft);cursor:pointer}
.perk-main{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
.perk-main > svg{width:26px;height:26px;flex:0 0 auto;stroke:var(--gold-soft);fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.perk-txt{min-width:0;font-size:clamp(13px,3.75vw,19px);font-weight:600;color:var(--white);line-height:1.4;white-space:nowrap;text-align:left}
.perk-txt b{font-weight:600;color:var(--gold-soft)}
.perk-btn{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:2px;width:34px;height:34px;padding:0;border:0;border-radius:50%;background:var(--gold-soft);color:var(--navy-dark);font-size:15px;font-weight:700;white-space:nowrap;cursor:pointer;transition:background .15s}
.perk-btn .pb-lbl{display:none}
.perk-btn:hover,.perk:hover .perk-btn{background:#E2C483}
.perk-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
@media (max-width:340px){.perk-main > svg{display:none}}
@media (min-width:480px){.perk-btn{width:auto;height:auto;min-height:40px;padding:6px 10px 6px 14px;border-radius:10px}.perk-btn .pb-lbl{display:inline}}
@media (min-width:640px){.perk{padding:14px 24px}.perk-btn{padding-inline:18px 14px}}

/* ---------- sections ---------- */
.section{margin-top:var(--s6);scroll-margin-top:var(--s3)}
.sec-head{display:flex;align-items:center;gap:var(--s2);margin-bottom:var(--s3);padding:14px var(--s3);background:#071C33;color:var(--white);border-radius:14px}
.sec-head > svg{width:30px;height:30px;stroke:var(--gold-soft);fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.sec-head h2{font-size:var(--t-xl);font-weight:700;line-height:1.3;min-width:0}
.sec-head .count{margin-left:auto;display:inline-flex;align-items:center;gap:2px;font-size:var(--t-sm);font-weight:500;color:var(--white);white-space:nowrap}

/* member-benefit (แลกซื้อ) block: framed apart from regular sale items */
.swapbox{padding:10px;background:var(--white);border:1px solid var(--gold);border-radius:20px}
.sec-head.alt{background:var(--navy-dark)}
.swapnote{margin-bottom:var(--s3);padding:var(--s2) var(--s3);background:var(--cream);border-radius:12px;font-size:var(--t-md);font-weight:600;color:var(--ink);text-align:center;line-height:1.5}

/* ---------- product cards ---------- */
#list{margin-top:var(--s5)}
#list .section:first-child{margin-top:var(--s2)}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media (min-width:640px){.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--s3)}}
@media (min-width:960px){.grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--s4)}}
.card{position:relative;background:var(--white);border:0;border-radius:var(--r-card);box-shadow:var(--sh-card);overflow:hidden;display:flex;flex-direction:column;min-width:0}
.pic{position:relative;display:block;aspect-ratio:1/1;max-width:100%;width:100%;overflow:hidden;background:var(--white);border:0;padding:0;cursor:zoom-in}
@supports not (aspect-ratio:1/1){.pic{height:0;padding-bottom:100%}}
.pic img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain;padding:6px;background:var(--white)}
.pic.empty{display:grid;place-items:center}
.pic.empty svg{position:absolute;top:50%;left:50%;transform:translate(-50%,-60%)}
.pic.empty{cursor:default;color:var(--navy)}
.pic.empty svg{width:48px;height:48px;stroke:currentColor;fill:none;stroke-width:1.3;opacity:.3}
.pic.empty .soon{position:absolute;bottom:var(--s2);left:0;right:0;text-align:center;font-size:14px;color:var(--muted)}
.off{position:absolute;top:0;left:0;z-index:2;width:76px;height:76px;background:#A50D24;color:#fff;clip-path:polygon(0 0,100% 0,0 100%);pointer-events:none}
.off .off-t{position:absolute;left:31%;top:31%;transform:translate(-50%,-50%) rotate(-45deg);display:flex;flex-direction:column;align-items:center;line-height:1;white-space:nowrap;text-shadow:0 1px 1px rgba(0,0,0,.18)}
.off small{font-size:12px;font-weight:600;margin:0 0 1px}
.off b{font-size:19px;font-weight:700;letter-spacing:-.3px}
@media (min-width:640px){.off{width:88px;height:88px}.off small{font-size:13px}.off b{font-size:22px}}
.swaptag{position:absolute;top:var(--s2);left:var(--s2);z-index:2;background:var(--navy-dark);color:var(--white);border-radius:8px;padding:3px 10px;font-size:var(--t-sm);font-weight:600;line-height:1.5}
.swapcard{box-shadow:0 0 0 1px var(--gold),var(--sh-card)}
.body{padding:var(--s3) 12px;display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}
.name{font-size:var(--t-md);font-weight:600;line-height:1.35;color:var(--ink);overflow-wrap:anywhere}
.meta{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap}
.meta .size{margin-left:auto}
.size{font-size:var(--t-sm);font-weight:600;color:var(--navy);background:#EAEFF5;border-radius:6px;padding:1px 8px;line-height:1.5;white-space:nowrap}
.brand{font-size:14px;color:var(--muted);overflow-wrap:anywhere}
.sku{margin-top:2px;font-size:10px;line-height:1.3;color:#A8AEB8;letter-spacing:.02em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.flag{align-self:flex-start;margin-top:4px;font-size:var(--t-sm);font-weight:600;background:var(--cream);color:var(--gold-ink);padding:2px 10px;border-radius:6px}
.priceblock{margin-top:auto;padding-top:var(--s2);display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.swaplbl{font-size:var(--t-sm);font-weight:600;color:var(--ink)}
.sale{font-size:var(--t-price);font-weight:700;color:var(--red);line-height:1.1;font-variant-numeric:tabular-nums}
.pack{font-size:var(--t-sm);font-weight:600;background:var(--cream);color:var(--gold-ink);border-radius:8px;padding:2px 10px}
.pricerow{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:2px 4px;width:100%}
.normal{display:flex;flex-direction:column;align-items:flex-end;flex:0 0 auto;margin-left:auto;font-size:var(--t-xs);font-weight:500;color:var(--muted);line-height:1.2;font-variant-numeric:tabular-nums;text-align:right}
.normal span{font-size:13px}
.normal s{text-decoration-thickness:1px}
.ask{font-size:var(--t-md);font-weight:700;color:var(--navy);line-height:1.4}

/* ---------- footer & floating button ---------- */
.foot{margin-top:var(--s5);padding-top:var(--s4);border-top:1px solid var(--line);font-size:var(--t-base);color:var(--muted);text-align:center}
.bottombar{position:fixed;left:0;right:0;bottom:0;z-index:15;display:flex;gap:var(--s1);padding:6px 12px calc(6px + env(safe-area-inset-bottom,0px));background:var(--white);border-top:1px solid var(--line);box-shadow:0 -4px 16px rgba(6,28,51,.06)}
.bottombar > *{min-height:44px;border-radius:var(--r-btn);display:flex;align-items:center;justify-content:center;gap:var(--s1);font-size:var(--t-base);font-weight:600;line-height:1.2;text-decoration:none;cursor:pointer}
.bb-cats{flex:1 1 0;min-width:0;white-space:nowrap;background:var(--white);color:var(--navy);border:1.5px solid var(--navy);padding:4px 10px}
.bb-cats svg{width:18px;height:18px;stroke:var(--navy);fill:none;stroke-width:2;stroke-linecap:round;flex:0 0 auto}
.bb-line{flex:1.2 1 0;min-width:0;background:var(--navy);color:var(--white);border:0;padding:4px 12px}
.bb-line:hover{background:var(--navy-dark)}
.bb-off{opacity:.55;cursor:default}
.chat-ico{width:22px;height:22px;flex:0 0 auto;color:var(--white)}
.bb-label{font-size:var(--t-base);font-weight:700;white-space:nowrap}
.bb-txt{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.bb-txt span{white-space:nowrap}
.bb-txt span:last-child{font-size:var(--t-sm);font-weight:500}
@media (min-width:760px){.bottombar{justify-content:center}.bottombar > *{flex:0 0 auto;padding-inline:24px}}
.linetools .lbl{width:100%;font-weight:600;color:var(--ink);border:0;padding:0;min-height:0;background:none}
.linetools input[type=url]{position:static;width:auto;height:44px;opacity:1;flex:1 1 220px;min-width:0;font:inherit;font-size:var(--t-sm);padding:0 12px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--white)}
/* ---------- favourites ---------- */
.favbtn{position:absolute;top:6px;right:6px;z-index:3;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.92);box-shadow:0 2px 8px rgba(6,28,51,.15);display:grid;place-items:center;cursor:pointer;padding:0}
.favbtn .heart-ico{width:24px;height:24px;fill:none;stroke:var(--navy);stroke-width:1.9;stroke-linejoin:round}
.favbtn.on .heart-ico{fill:var(--red);stroke:var(--red)}
.favbtn.pop{animation:favpop .35s ease}
@keyframes favpop{40%{transform:scale(1.25)}}
.card.flash{animation:cardflash 1.6s ease}
@keyframes cardflash{0%,60%{box-shadow:0 0 0 3px var(--gold),var(--sh-card)}100%{box-shadow:var(--sh-card)}}
.bb-fav{flex:0 0 auto;background:var(--white);color:var(--navy);border:1.5px solid var(--navy);padding:4px 10px;white-space:nowrap}
.bb-fav .heart-ico{width:20px;height:20px;fill:var(--red);stroke:var(--red);stroke-width:1.5}
.favcount{min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:var(--red);color:var(--white);font-size:14px;font-weight:700;line-height:22px;text-align:center}
.wide-only{display:inline}
@media (max-width:420px){.wide-only{display:none}}
.favsheet{position:fixed;inset:0;z-index:55;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:var(--paper);color:var(--ink);padding-top:env(safe-area-inset-top,0px)}
.fs-head{display:flex;align-items:center;justify-content:space-between;gap:var(--s2);padding:var(--s2) var(--s3);background:var(--navy-dark);color:var(--white)}
.fs-head h2{font-size:var(--t-lg);font-weight:700}
.fs-head h2 span{font-size:var(--t-sm);font-weight:500}
.fs-list{overflow-y:auto;padding:var(--s3);display:flex;flex-direction:column;gap:10px}
.fs-row{display:flex;align-items:center;gap:var(--s2);padding:10px;background:var(--white);border-radius:14px;box-shadow:var(--sh-card)}
.fs-thumb{flex:0 0 auto;width:72px;height:72px;border-radius:10px;overflow:hidden;border:0;padding:0;background:var(--photo);display:grid;place-items:center;cursor:pointer}
.fs-thumb img{width:100%;height:100%;object-fit:contain;background:var(--white)}
.fs-thumb svg{width:32px;height:32px;stroke:var(--navy);fill:none;stroke-width:1.3;opacity:.3}
.fs-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.fs-name{font-size:var(--t-md);font-weight:600;line-height:1.35;color:var(--ink)}
.fs-name .size{display:inline-block;margin-left:4px;vertical-align:middle}
.fs-price{font-size:var(--t-lg);font-weight:700;color:var(--red)}
.fs-ask{font-size:var(--t-sm);font-weight:600;color:var(--navy)}
.fs-del{flex:0 0 auto;min-width:56px;min-height:44px;border-radius:10px;border:1.5px solid var(--line);background:var(--white);color:var(--muted);font-size:var(--t-sm);font-weight:600;cursor:pointer}
.fs-empty{text-align:center;padding:var(--s6) var(--s3);color:var(--muted)}
.fs-empty .heart-ico{width:48px;height:48px;fill:none;stroke:var(--red);stroke-width:1.5}
.fs-empty p{font-size:var(--t-md);font-weight:600;color:var(--ink);margin-top:var(--s2)}
.fs-empty .sub{font-size:var(--t-sm);font-weight:400;color:var(--muted);margin-top:4px}
.fs-foot{display:grid;gap:var(--s1);padding:var(--s2) var(--s3) calc(var(--s3) + env(safe-area-inset-bottom,0px));background:var(--white);border-top:1px solid var(--line)}
.fs-send{display:flex;align-items:center;justify-content:center;gap:10px;min-height:56px;border-radius:var(--r-btn);background:var(--navy);color:var(--white);font-size:var(--t-md);font-weight:700;text-decoration:none;text-align:center;padding:8px 14px}
.fs-send .chat-ico{width:26px;height:26px}
.fs-note{font-size:var(--t-sm);color:var(--muted);text-align:center;line-height:1.45}
.fs-close{min-height:48px;border-radius:var(--r-btn);border:1.5px solid var(--navy);background:var(--white);color:var(--navy);font-size:var(--t-md);font-weight:700;cursor:pointer}

.brsheet .fs-head h2{display:flex;align-items:center;gap:8px}
.brsheet .fs-head .pin-ico{width:24px;height:24px}
.br-row{display:flex;flex-direction:column;gap:10px;padding:var(--s3);background:var(--white);border-radius:14px;box-shadow:var(--sh-card)}
.br-name{font-size:var(--t-md);font-weight:700;color:var(--ink);line-height:1.4}
.br-empty{color:var(--muted);font-weight:500}
.br-map{display:flex;align-items:center;justify-content:center;gap:8px;min-height:52px;border-radius:var(--r-btn);background:var(--navy);color:var(--white);font-size:var(--t-md);font-weight:700;text-decoration:none}
.br-nomap{font-size:var(--t-sm);color:var(--muted)}
.branchtools .lbl{width:100%;font-weight:600;color:var(--ink)}
.brow{display:flex;flex-wrap:wrap;align-items:center;gap:6px;width:100%}
.bno{flex:0 0 52px;font-weight:600;color:var(--ink)}
.branchtools input{position:static!important;width:auto!important;height:44px!important;opacity:1!important;flex:1 1 160px;min-width:0;font:inherit;font-size:var(--t-sm);padding:0 12px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:var(--white)}

/* ---------- lightbox (stays on the same page; scroll position restored on close) ---------- */
html.lb-open,html.lb-open body{overflow:hidden}
.lb{position:fixed;inset:0;z-index:50;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto auto;gap:var(--s2);background:rgba(6,28,51,.985);color:var(--white);padding:calc(var(--s2) + env(safe-area-inset-top,0px)) var(--s3) calc(var(--s3) + env(safe-area-inset-bottom,0px))}
.lb-top{display:flex;align-items:center;justify-content:space-between;min-height:48px}
.lb-count{font-size:var(--t-md);font-weight:500}
.lb-x{width:48px;height:48px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:var(--white);font-size:30px;line-height:1;cursor:pointer}
.lb-stage{position:relative;display:grid;place-items:center;min-height:0}
.lb-stage img{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px;background:var(--white)}
.lb-arrow{position:absolute;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;border:0;background:rgba(255,255,255,.92);display:grid;place-items:center;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.25)}
.lb-arrow svg{width:26px;height:26px;fill:none;stroke:var(--navy);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.lb-arrow.prev{left:4px}.lb-arrow.next{right:4px}
.lb-thumbs{display:flex;gap:var(--s1);justify-content:center;overflow-x:auto;padding:2px}
.lb-thumbs button{flex:0 0 auto;width:56px;height:56px;padding:0;border:2px solid transparent;border-radius:10px;overflow:hidden;background:var(--white);cursor:pointer;opacity:.6}
.lb-thumbs button.on{border-color:var(--gold-soft);opacity:1}
.lb-thumbs img{width:100%;height:100%;object-fit:cover}
.lb-cap{text-align:center;font-size:var(--t-md);font-weight:500;line-height:1.4}
.lb-cap b{font-weight:700;color:var(--white)}
.lb-close{justify-self:center;min-width:180px;min-height:52px;border:0;border-radius:var(--r-btn);background:var(--white);color:var(--navy);font-size:var(--t-md);font-weight:700;cursor:pointer}
.morepics{position:absolute;right:6px;bottom:6px;width:28px;height:28px;border-radius:50%;background:rgba(6,28,51,.72);display:grid;place-items:center}
.morepics svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.thumbs{display:flex;flex-wrap:wrap;gap:6px;width:100%}
.th{position:relative;width:48px;height:48px;border-radius:8px;overflow:hidden;border:1px solid var(--line)}
.th img{width:100%;height:100%;object-fit:cover;display:block}
.thpick{display:block;width:100%;height:100%;padding:0!important;min-height:0!important;border:0!important;border-radius:0!important;background:var(--white)!important;cursor:pointer}
.th.cover{outline:3px solid var(--gold-soft);outline-offset:-1px}
.thcov{position:absolute;left:0;bottom:0;padding:0 6px;border-radius:0 8px 0 0;background:var(--navy-dark);color:var(--gold-soft);font-size:12px;font-weight:700;line-height:18px;pointer-events:none}
.thhint{width:100%;font-size:13px;color:var(--muted)}
.cropbtn{display:inline-flex;align-items:center;gap:6px}
.cropbtn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* cover crop editor */
.cropsheet{position:fixed;inset:0;z-index:60;background:rgba(6,28,51,.86);display:grid;place-items:center;padding:16px;overscroll-behavior:contain}
.cs-box{width:min(100%,440px);background:var(--white);border-radius:16px;padding:16px;display:grid;gap:10px;max-height:100%;overflow:auto}
.cs-title{font-size:20px;font-weight:700;color:var(--navy)}
.cs-sub{font-size:15px;color:var(--muted);margin-top:-6px}
.cs-frame{position:relative;width:100%;aspect-ratio:1/1;overflow:hidden;background:var(--white);border:1px solid var(--line);border-radius:10px;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.cs-frame:active{cursor:grabbing}
.cs-frame img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:contain;padding:6px;background:var(--white);pointer-events:none;transform-origin:50% 50%}
.cs-grid{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 0 2px var(--gold-soft)}
.cs-grid i{position:absolute;background:rgba(255,255,255,.9);box-shadow:0 0 0 1px rgba(6,28,51,.35)}
.cs-grid i:nth-child(1){left:33.333%;top:0;bottom:0;width:1px}
.cs-grid i:nth-child(2){left:66.666%;top:0;bottom:0;width:1px}
.cs-grid i:nth-child(3){top:33.333%;left:0;right:0;height:1px}
.cs-grid i:nth-child(4){top:66.666%;left:0;right:0;height:1px}
.cs-help{font-size:14px;color:var(--muted);text-align:center}
.cs-zoom{display:flex;align-items:center;gap:10px}
.cs-zoom input{flex:1;accent-color:var(--navy);height:32px}
.cs-zoom button{width:44px;height:44px;flex:0 0 auto;border:1px solid var(--navy);border-radius:50%;background:var(--white);color:var(--navy);font-size:24px;font-weight:600;line-height:1;cursor:pointer}
.cs-acts{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:8px}
.cs-acts button{min-height:48px;border:1px solid var(--navy);border-radius:10px;background:var(--white);color:var(--navy);font-size:16px;font-weight:600;cursor:pointer}
.cs-acts .primary{background:var(--navy);color:var(--white)}
.thdel{position:absolute;top:0;right:0;width:22px;height:22px;padding:0!important;min-height:0!important;border:0!important;border-radius:0 0 0 8px!important;background:var(--red)!important;color:var(--white)!important;font-size:16px;line-height:1;cursor:pointer}

/* ---------- staff tools (only visible to people who can edit this page) ---------- */
.admin{position:sticky;top:env(safe-area-inset-top,0px);z-index:20;background:var(--navy-dark);color:var(--white);padding:10px var(--s3);display:flex;flex-wrap:wrap;align-items:center;gap:var(--s1);font-size:var(--t-sm)}
.admin .msg{flex:1 1 200px;min-width:0}
.admin .btn-primary{background:var(--white);color:var(--navy)}
.admin .btn-primary:hover{background:var(--warm)}
.tools,.bannertools{display:flex;gap:6px;flex-wrap:wrap}
.tools{padding:0 var(--s3) var(--s3)}
.bannertools{align-items:center;margin-top:var(--s2);padding:var(--s2);border:1px dashed var(--navy-2);border-radius:var(--r-btn);background:var(--white);font-size:var(--t-sm)}
.tools label,.tools button,.bannertools label,.bannertools button{display:inline-flex;align-items:center;min-height:44px;font-size:var(--t-sm);font-weight:600;border-radius:10px;padding:6px 14px;cursor:pointer;border:1px solid var(--navy);background:var(--white);color:var(--navy)}
.tools button.del,.bannertools button.del{border-color:var(--line);color:var(--muted)}
.tools input,.bannertools input{position:absolute;width:1px;height:1px;opacity:0}
.bannertools span{color:var(--muted)}
.changed{outline:2px solid var(--gold);outline-offset:-2px}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* filled part of two-tone icons (decanter liquid) follows the stroke colour of its context */
svg .fl{fill:var(--navy)}
.sec-head svg .fl{fill:var(--gold-soft)}
.pic.empty svg .fl{fill:currentColor}

/* staff: add / delete products */
.tools .edititem{display:inline-flex;align-items:center;gap:6px}
.tools .edititem svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tools .delitem{display:inline-flex;align-items:center;gap:6px;border-color:#E5B4BC;color:var(--red)}
.tools .delitem svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.addcard{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:220px;border:2px dashed var(--navy);border-radius:var(--r-card);background:transparent;color:var(--navy);font:inherit;font-size:var(--t-sm);font-weight:600;cursor:pointer;padding:16px;text-align:center}
.addcard .plus{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:var(--navy);color:var(--white);font-size:30px;line-height:1}
.addcard:hover{background:rgba(8,42,74,.04)}
.dlg{position:fixed;inset:0;z-index:60;background:rgba(6,28,51,.78);display:grid;place-items:center;padding:16px;overscroll-behavior:contain}
.dlg-box{width:min(100%,460px);max-height:100%;overflow:auto;background:var(--white);border-radius:16px;padding:18px;display:grid;gap:12px;color:var(--ink)}
.dlg-title{font-size:20px;font-weight:700;color:var(--navy)}
.dlg-note,.addform .hint{font-size:14px;color:var(--muted);line-height:1.5;margin:0}
.dlg-acts{display:grid;grid-template-columns:1fr 1.4fr;gap:8px;margin-top:4px}
.dlg-acts button{min-height:50px;border:1px solid var(--navy);border-radius:10px;background:var(--white);color:var(--navy);font:inherit;font-size:16px;font-weight:600;cursor:pointer}
.dlg-acts .primary{background:var(--navy);color:var(--white)}
.dlg-acts .danger{background:var(--red);border-color:var(--red);color:var(--white)}
.del-item{display:flex;gap:12px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:12px;font-size:16px;line-height:1.4}
.del-item img,.del-ph{width:64px;height:64px;flex:0 0 auto;object-fit:contain;border-radius:8px;background:#fff;display:grid;place-items:center}
.del-ph svg{width:36px;height:36px;stroke:var(--navy);fill:none;stroke-width:1.5;opacity:.4}
.del-item small{color:var(--muted);font-size:14px}
.addform{display:grid;gap:12px}
.addform label{display:grid;gap:4px;font-size:15px;font-weight:600;color:var(--ink);min-width:0}
.addform .req{color:var(--red)}
.addform input[type=text],.addform select{width:100%;min-height:46px;padding:8px 12px;border:1px solid #B8C2CC;border-radius:10px;font:inherit;font-size:16px;font-weight:400;color:var(--ink);background:#fff;box-sizing:border-box}
.addform input:focus,.addform select:focus{outline:2px solid var(--gold-soft);outline-offset:1px;border-color:var(--navy)}
.addform .two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.addform .imgpick{position:relative}
.addform .imgpick input{position:absolute;width:1px;height:1px;opacity:0}
.addform .imgbtn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;border:1px dashed var(--navy);border-radius:10px;color:var(--navy);cursor:pointer}
.addthumbs{display:flex;flex-wrap:wrap;gap:6px}
.addthumbs:empty{display:none}
.addthumbs .thdel{position:absolute;top:0;right:0;width:22px;height:22px;padding:0;border:0;border-radius:0 0 0 8px;background:var(--red);color:#fff;font-size:16px;line-height:1;cursor:pointer}
.formerr{margin:0;color:var(--red);font-size:15px;font-weight:600}
.formerr:empty{display:none}

/* cover photos fill the square (no white edges) */
.pic img.cv,.cs-frame img.cv{inset:auto;left:calc(50% + var(--x,0) * 1%);top:calc(50% + var(--y,0) * 1%);width:100%;height:100%;max-width:none;max-height:none;padding:0;object-fit:cover;transform:translate(-50%,-50%) scale(var(--z,1));transform-origin:50% 50%;background:#fff}
.pic img.cv.tall,.cs-frame img.cv.tall{height:auto;object-fit:fill}
.pic img.cv.wide,.cs-frame img.cv.wide{width:auto;object-fit:fill}

.admin .meter{position:relative;display:inline-flex;align-items:center;min-height:32px;padding:0 10px;border:1px solid rgba(255,255,255,.35);border-radius:8px;font-size:14px;font-weight:600;overflow:hidden;white-space:nowrap}
.admin .meter i{position:absolute;left:0;bottom:0;height:4px;background:var(--gold-soft)}
.admin .meter.full{border-color:#F3A3AE;color:#FFD6DC}.admin .meter.full i{background:#F3A3AE}

/* cart */
.cart-ico{width:24px;height:24px;fill:none;stroke:var(--navy);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cart-ico .mk{stroke-width:2.2}
.favbtn .cart-ico{width:26px;height:26px}
.favbtn .cart-ico .mk{stroke:var(--red)}
.favbtn.on{background:var(--navy)}
.favbtn.on .cart-ico,.favbtn.on .cart-ico .mk{stroke:#fff}
.bb-fav .cart-ico{width:22px;height:22px;stroke:var(--navy)}
.fs-empty .cart-ico{width:52px;height:52px;stroke:var(--muted);stroke-width:1.5}
.qty{display:inline-flex;align-self:flex-start;width:max-content;align-items:center;gap:0;margin-top:8px;border:1.5px solid var(--navy);border-radius:10px;overflow:hidden}
.qty button{width:40px;height:38px;border:0;background:#fff;color:var(--navy);font:inherit;font-size:22px;font-weight:700;line-height:1;cursor:pointer}
.qty button:disabled{color:#B8C2CC;cursor:default}
.qty span{min-width:36px;text-align:center;font-size:18px;font-weight:700;color:var(--ink);border-left:1px solid #D5DCE3;border-right:1px solid #D5DCE3;line-height:38px}
.fs-total{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 10px;padding:10px 16px;border-top:1px solid #E4E7EB;background:#fff;font-size:16px;font-weight:600;color:var(--ink)}
.fs-total b{font-size:22px;color:var(--red)}
.fs-total small{width:100%;font-size:13px;font-weight:400;color:var(--muted)}
.toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));z-index:70;transform:translate(-50%,20px);display:flex;align-items:center;gap:10px;max-width:calc(100% - 32px);padding:10px 12px 10px 14px;border-radius:12px;background:var(--navy-dark);color:#fff;font-size:16px;font-weight:600;box-shadow:0 8px 24px rgba(6,28,51,.3);opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;white-space:nowrap}
.toast.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.toast .cart-ico,.toast .cart-ico .mk{width:22px;height:22px;stroke:var(--gold-soft)}
.toast button{border:0;border-radius:8px;background:var(--gold-soft);color:var(--navy-dark);font:inherit;font-size:15px;font-weight:700;padding:6px 12px;cursor:pointer}

/* sold out */
.soldmark{position:absolute;left:0;right:0;top:0;aspect-ratio:1/1;z-index:2;display:grid;place-items:center;background:rgba(255,255,255,.35);pointer-events:none}
.soldmark span{display:flex;flex-direction:column;align-items:center;transform:rotate(-14deg);padding:4px 12px 3px;border:3px solid #B3122E;border-radius:8px;background:rgba(255,255,255,.92);color:#B3122E;box-shadow:0 4px 14px rgba(6,28,51,.18);line-height:1.05}
.soldmark b{font-size:clamp(18px,5.2vw,26px);font-weight:700;letter-spacing:1px;white-space:nowrap}
.soldmark small{font-size:clamp(12px,3.4vw,15px);font-weight:600;white-space:nowrap}
.card.soldout .pic img{filter:grayscale(1);opacity:.55}
.card.soldout .body{opacity:.6}
.addform .chk{display:flex;align-items:center;gap:10px;font-weight:600;min-height:44px}
.addform .chk input{width:22px;height:22px;accent-color:#B3122E}
