/* Homepage / and /en/ (hand-written; keep TH index.html and EN en/index.html in step, เว็บ/docs/HOMEPAGE.md). */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
::selection { background: #C9B3E6; color: #2B2336; }
@keyframes floatUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
/* TH/EN switcher — mirror of เว็บ/lang-switch.mjs (keep in step when editing it) */
.lang{display:inline-flex;align-items:center;gap:2px;background:#fff;border:1.5px solid var(--line,#EAE0F4);border-radius:999px;padding:2px;flex:0 0 auto}
.lang a{display:flex;align-items:center;padding:7px 8px;border-radius:999px;line-height:0;opacity:.38;text-decoration:none}
.lang a:hover{opacity:.7}
.lang a[aria-current]{opacity:1;background:var(--lang-on,#F3ECFA)}
.lang svg{display:block;border-radius:2px;box-shadow:0 0 0 .5px rgba(0,0,0,.15)}
/* mobile header (owner 2026-10-10): brand + menu + call on one row; the links open as a tap dropdown */
.hmenu { display: none; }
@media (max-width: 720px) {
  .hnav { gap: 8px 10px !important; padding: 10px 16px !important; flex-wrap: nowrap !important; }
  .hright { display: contents !important; }
  .hnav > a:first-child { white-space: nowrap; }
  .hnav > a:first-child > span:first-child { font-size: 24px !important; }
  .hnav > a:first-child > span:last-child { display: none; } /* the town name pushed the buttons onto a second row */
  .hcall { margin-left: auto; padding: 8px 16px !important; font-size: 14px !important; white-space: nowrap; }
  .hmenu { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid #D9C9EE; border-radius: 12px; background: #fff; color: #4A3568; cursor: pointer; padding: 0; }
  .hmenu svg { width: 22px; height: 22px; }
  .hmenu .x, header.open .hmenu .bars { display: none; }
  header.open .hmenu .x { display: block; }
  .hlinks { display: none !important; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch !important; gap: 0 !important;
    background: #fff; border-bottom: 1px solid #EAE0F4; box-shadow: 0 18px 30px rgba(74,53,104,.16); padding: 6px 16px 16px; max-height: calc(100vh - 70px); overflow-y: auto; }
  header.open .hlinks { display: flex !important; }
  .hlinks > a { padding: 13px 4px; border-bottom: 1px solid #F1EAF8; font-size: 16px !important; }
  .hlinks > a[href="/member-login"] { border: 1px solid #C9B3E6; text-align: center; margin-top: 12px; padding: 11px !important; }
  .hlinks > .lang { align-self: flex-start; margin-top: 14px; }
}

/* Shop photos (storefront + interior, 18/11/2026) */
.shopsec { padding: clamp(48px,7vw,88px) clamp(18px,4vw,40px); background: linear-gradient(180deg, #FAF7FC 0%, #F3ECFA 100%); }
.shopin { max-width: 1180px; margin: 0 auto; }
.shophead { max-width: 720px; margin-bottom: 30px; }
.shopeye { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #856428; text-transform: uppercase; }
.shoph2 { font-family: 'Noto Serif Thai', serif; font-weight: 600; font-size: clamp(26px,4vw,40px); margin: 12px 0 14px; color: #2B2336; }
html[lang="en"] .shoph2 { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: clamp(28px,4vw,42px); }
.shopp { margin: 0; font-size: 15px; color: #5A5167; }
.shopgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.shopph { margin: 0; }
.shopph picture, .shopph img { display: block; width: 100%; }
.shopph img { height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; background: #F3ECFA; box-shadow: 0 10px 30px rgba(74,53,104,0.05); }
.shopph figcaption { margin-top: 8px; font-size: 13px; color: #6B6478; text-align: center; }
.shoplink { display: inline-block; margin-top: 26px; text-decoration: none; color: #4A3568; font-weight: 600; font-size: 15px; }
@media (max-width: 760px) {
  .shopgrid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .shopph:first-child { grid-column: 1 / -1; }
  .shopph:first-child img { aspect-ratio: 4 / 3; }
}

/* booking steps, FAQ, member rewards (2026-11-19 nail-salon study) */
.booksec { padding: clamp(48px,7vw,88px) clamp(18px,4vw,40px); background: #fff; }
.bookin, .faqin { max-width: 1180px; margin: 0 auto; }
.bookhead { max-width: 720px; margin-bottom: 26px; }
.booksteps { list-style: none; counter-reset: bs; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.booksteps li { counter-increment: bs; background: #FAF7FC; border: 1px solid #EFE6F8; border-radius: 18px; padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.booksteps li::before { content: counter(bs); width: 34px; height: 34px; border-radius: 50%; background: #6E4F94; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.booksteps b { font-size: 17px; color: #2B2336; }
.booksteps span { font-size: 15px; color: #5A5167; }
.bookrules { margin-top: 18px; background: #FFF8EC; border: 1px solid #F1E2C4; border-radius: 18px; padding: 18px 22px; }
.bookrules b { color: #856428; }
.bookrules ul { margin: 8px 0 0; padding-left: 20px; color: #5A5167; font-size: 15px; }
.booklink { display: inline-block; margin-top: 22px; text-decoration: none; color: #fff; font-weight: 600; padding: 13px 26px; background: #6E4F94; border-radius: 100px; box-shadow: 0 10px 24px rgba(110,79,148,0.28); }
.faqsec { padding: clamp(48px,7vw,88px) clamp(18px,4vw,40px); background: linear-gradient(180deg, #FAF7FC 0%, #F3ECFA 100%); }
.faqlist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.faqlist details { background: #fff; border: 1px solid #ECE2F6; border-radius: 16px; padding: 16px 20px; }
.faqlist summary { cursor: pointer; font-weight: 600; color: #2B2336; font-size: 16px; }
.faqlist p { margin: 10px 0 0; font-size: 15px; color: #5A5167; }
.memlead { font-size: 17px; color: #E7D4F6; margin: 0 auto 18px; max-width: 560px; }
.memrw { list-style: none; margin: 0 auto 18px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 820px; }
.memrw li { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); border-radius: 16px; padding: 16px 12px; }
.memrw b { display: block; font-size: 20px; color: #fff; }
.memrw span { font-size: 14px; color: #E7D4F6; }
.memmore { font-size: 15px; color: #E7D4F6; margin: 0 auto 26px; max-width: 640px; }
@media (max-width: 760px) {
  .booksteps, .faqlist { grid-template-columns: 1fr; }
  .memrw { grid-template-columns: repeat(2, 1fr); }
}

/* job times, review total, free-time popup (2026-11-19) */
.jobtimes { max-width: 640px; margin: 22px auto 0; background: #fff; border: 1px solid #ECE2F6; border-radius: 18px; padding: 18px 22px; }
.jobtimes b { color: #2B2336; font-size: 16px; }
.jobtimes ul { list-style: none; margin: 10px 0 0; padding: 0; }
.jobtimes li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed #ECE2F6; font-size: 15px; color: #5A5167; }
.jobtimes li:last-child { border-bottom: 0; }
.jobtimes .jtm { white-space: nowrap; font-weight: 600; color: #6E4F94; }
.jobtimes p { margin: 10px 0 0; font-size: 14px; color: #6B6478; }
.rvtotal { text-align: center; margin: 16px auto 0; font-size: 14px; color: #6B6478; max-width: 620px; }
.bookbtns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.bookbtns .booklink { margin-top: 0; }
.slotbtn { font: inherit; font-weight: 600; padding: 12px 24px; border-radius: 100px; border: 2px solid #6E4F94; background: #fff; color: #6E4F94; cursor: pointer; }
.slotdlg { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 32px); border: 0; border-radius: 22px; padding: 0; overflow: hidden; color: #2B2336; box-shadow: 0 24px 60px rgba(43,35,54,0.3); }
.slotdlg[open] { display: flex; flex-direction: column; }   /* header stays, only .slotbody scrolls: sticky inside a dialog failed on iPhone (Master 2026-11-19) */
.slotbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 0 22px 22px; }
.slotdlg::backdrop { background: rgba(43,35,54,0.45); }
.slothead { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 22px 10px; background: #fff; box-shadow: 0 1px 0 #F3ECFA; }
.slothead h3 { margin: 0; font-size: 20px; }
.slotx { font: inherit; font-size: 26px; line-height: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #F3ECFA; color: #4A3568; cursor: pointer; }
.slotq { margin: 14px 0 8px; font-size: 15px; color: #5A5167; }
.slotparts { display: grid; gap: 6px; }
.slotgrp { background: #FAF7FC; border: 1px solid #EFE6F8; border-radius: 12px; padding: 8px 12px; }
.slotgrp > label { display: flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer; }
.slotparts input { width: 18px; height: 18px; accent-color: #6E4F94; }
.slotsubs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px 26px; }
.slotsubs small { width: 100%; font-size: 13px; color: #7A7088; }
.slotsubs label { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; padding: 4px 12px; border: 1px solid #DCCDEE; border-radius: 100px; background: #fff; cursor: pointer; }
.slotsubs label.on { background: #EFE6F8; border-color: #6E4F94; color: #4A3568; font-weight: 600; }
.slotsubs input { width: 15px; height: 15px; }
.slotlen { margin: 12px 0 8px; font-weight: 600; color: #6E4F94; }
.slotlist { display: grid; gap: 4px; transition: opacity .15s; }
.slotlist.busy { opacity: .45; }
.slotrow .st { transition: color .2s; }
.slotrow { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; font-size: 15px; background: #FAF7FC; }
.slotrow .sd { white-space: nowrap; font-weight: 600; }
.slotrow .st { text-align: right; }
.slotrow.ok .st { color: #1B7F4B; font-weight: 600; }
.slotrow.full .st, .slotrow.na .st { color: #B3261E; }
.slotrow.off { opacity: 0.6; }
.slotwait { color: #6B6478; font-size: 14px; }
.slotnote { margin: 12px 0 14px; font-size: 13.5px; color: #6B6478; }
.slotdlg .booklink { margin-top: 0; }
/* gel steps + TikTok clip cards (2026-11-19) */
.gelsec { padding: clamp(48px,7vw,88px) clamp(18px,4vw,40px); background: #fff; }
.gelsteps { grid-template-columns: repeat(5, 1fr); }
.ttclips { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 18px; margin-top: 26px; }
.ttclip { display: flex; flex-direction: column; gap: 10px; margin: 0; color: #2B2336; font-weight: 600; font-size: 15px; }
.ttclip video { display: block; background: #000; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; box-shadow: 0 10px 24px rgba(74,53,104,0.16); }
.ttmore { margin: 18px 0 0; font-size: 15px; color: #5A5167; }
.ttmore a, .faqlist p a { color: #6E4F94; font-weight: 600; }
@media (max-width: 1000px) { .gelsteps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .gelsteps { grid-template-columns: 1fr; } .ttclips { grid-template-columns: 1fr 1fr; gap: 12px; } }
.svclinks { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.svclinks b { color: #4A3568; font-size: 15px; margin-right: 4px; }
.svclinks a { text-decoration: none; padding: 9px 16px; border: 1px solid #D9C9EE; border-radius: 100px; background: #fff; color: #4A3568; font-size: 14px; font-weight: 600; }
.svclinks a:hover { background: #F3ECFA; }
.nw { white-space: nowrap; }   /* keep a short phrase on one line (hero "3 ถึง 4 สัปดาห์") */

/* ── Homepage effects (Master 2026-11-19, picked from 21st.dev, rewritten as plain CSS/JS; doc เว็บ/docs/HOMEPAGE.md "Effects").
   Motion only starts when home.js adds .run / .go, and never under prefers-reduced-motion. */
/* 1 hero: two columns of work photos drifting (hero-04) */
.heroimgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: #F3ECFA; }
.hcol { display: flex; flex-direction: column; gap: 8px; }
.hcol img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.hcol.rev { margin-top: -40%; }
.hcol.run { animation: fxUp 40s linear infinite; }
.hcol.rev.run { animation-direction: reverse; }
.heroimgs:hover .hcol { animation-play-state: paused; }
@keyframes fxUp { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 4px)); } }
/* 3 gallery: hover a photo and it opens wide (elastic-gallery); phones keep the grid */
.elastic { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
@media (min-width: 761px) and (hover: hover) {
  .elastic { display: flex; height: 440px; gap: 10px; }
  .elastic > div { flex: 1 1 0; min-width: 0; aspect-ratio: auto !important; transition: flex .6s cubic-bezier(.2, .8, .2, 1); }
  .elastic:not(:hover) > div:first-child, .elastic > div:hover { flex-grow: 4.5; }
}
/* 5 job times as a bar chart with starting prices (peak-chart) */
#services .jobtimes { max-width: 760px; margin: 0 auto 34px; }
.jobtimes li { display: grid; grid-template-columns: minmax(0, 210px) 1fr auto; align-items: center; gap: 14px; }
.jobtimes .jtl { color: #2B2336; font-weight: 600; }
.jtbar { position: relative; height: 34px; background: #F3ECFA; border-radius: 10px; overflow: hidden; }
.jtbar i { position: absolute; inset: 0 auto 0 0; width: var(--w, 60%); background: #6E4F94; border-radius: 10px; transform-origin: left; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.jobtimes .jtbar .jtm { position: relative; display: block; padding: 7px 12px; color: #fff; font-size: 14px; }
.jobtimes.wait .jtbar i { transform: scaleX(0); }
.jobtimes.wait .jtbar .jtm { opacity: 0; }
.jobtimes .jtbar .jtm { transition: opacity .4s .7s; }
.jtp { white-space: nowrap; font-weight: 700; color: #856428; }
.jobtimes p a { color: #6E4F94; font-weight: 600; }
@media (max-width: 560px) { .jobtimes li { grid-template-columns: 1fr auto; } .jobtimes .jtl { grid-column: 1 / -1; } }
/* 6 steps: circles fill one by one along a line (order-tracking) */
.booksteps { position: relative; }
.booksteps.fx li::before { background: #fff; color: #B9A9CF; box-shadow: inset 0 0 0 2px #D9C9EE; transition: background .35s, color .35s, box-shadow .35s, transform .35s; position: relative; z-index: 2; }
.booksteps.fx.go li::before { background: #6E4F94; color: #fff; box-shadow: none; transform: scale(1.08); }
.booksteps.fx li:nth-child(2)::before { transition-delay: .45s; } .booksteps.fx li:nth-child(3)::before { transition-delay: .9s; }
.booksteps.fx li:nth-child(4)::before { transition-delay: 1.35s; } .booksteps.fx li:nth-child(5)::before { transition-delay: 1.8s; }
.booksteps.fx::before, .booksteps.fx::after { content: ""; position: absolute; z-index: 1; top: 38px; height: 3px; left: 39px; right: calc((100% - (var(--n) - 1) * 18px) / var(--n) - 39px); border-radius: 3px; background: #E7DCF2; }
.booksteps.fx::after { background: #6E4F94; transform: scaleX(0); transform-origin: left; transition: transform calc(var(--n) * .45s) linear; }
.booksteps.fx.go::after { transform: scaleX(1); }
@media (max-width: 1000px) { .gelsteps.fx::before, .gelsteps.fx::after { display: none; } }
@media (max-width: 760px) { .booksteps.fx::before, .booksteps.fx::after { display: none; } }
/* 8 + 9 reviews: score card with filling stars and one bar per site (rating-card), two rows of cards moving opposite ways (marquee-01) */
.rvscore { max-width: 760px; margin: 0 auto 34px; display: grid; grid-template-columns: 180px 1fr; gap: 26px; align-items: center; background: #fff; border-radius: 22px; padding: 24px 28px; box-shadow: 0 10px 30px rgba(74,53,104,0.06); }
.rvbig { text-align: center; }
.rvbig b { display: block; font-family: 'Noto Serif Thai', 'Cormorant Garamond', serif; font-size: 56px; line-height: 1; color: #4A3568; }
.rvbig small { display: block; font-size: 14px; color: #6B6478; }
.rvstars { display: inline-block; position: relative; font-size: 22px; letter-spacing: 3px; color: #E7DCF2; margin: 8px 0 4px; }
.rvstars::before, .rvstars i::before { content: "\2605\2605\2605\2605\2605"; }
.rvstars i { position: absolute; inset: 0 auto 0 0; width: 100%; overflow: hidden; white-space: nowrap; color: #856428; transition: width 1.4s ease-out; }
.rvscore.wait .rvstars i { width: 0; }
.rvbars { display: flex; flex-direction: column; gap: 14px; }
.rvbars a { display: grid; grid-template-columns: 82px 1fr 44px auto; align-items: center; gap: 12px; text-decoration: none; color: #4A3568; font-weight: 600; font-size: 15px; padding: 6px 8px; margin: -6px -8px; border-radius: 12px; }
.rvbars a:hover { background: #FAF7FC; }
.rbb { height: 14px; border-radius: 99px; background: #F3ECFA; overflow: hidden; }
.rbb i { display: block; height: 100%; width: var(--w, 100%); border-radius: 99px; background: #856428; transform-origin: left; transition: transform 1.1s .3s ease-out; }
.rvbars a + a .rbb i { background: #1877F2; }
.rvscore.wait .rbb i { transform: scaleX(0); }
.rbn { font-weight: 700; color: #2B2336; text-align: right; }
.rbgo { font-size: 13px; color: #6E4F94; }
@media (max-width: 560px) { .rvscore { grid-template-columns: 1fr; padding: 22px 18px; } .rvbars a { grid-template-columns: 70px 1fr 36px; } .rbgo { display: none; } }
.rvmarq { display: flex; flex-direction: column; gap: 18px; margin: 0 calc(-1 * clamp(18px, 4vw, 40px)); }
.rvrow { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px clamp(18px, 4vw, 40px) 14px; }
.rvmarq.run { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
/* rows are real scrollers: home.js nudges scrollLeft; swipe, wheel, mouse drag or the arrows take over and the drift
   resumes 2.5 s later (Master 2026-11-19: "ปัดย้อนดูไม่ได้", "PC กดเลื่อนได้ไหม") */
.rvmarq.run .rvrow { scroll-snap-type: none; scrollbar-width: none; cursor: grab; }
.rvmarq.run .rvrow::-webkit-scrollbar { display: none; }
.rvmarq.run .rvrow.drag { cursor: grabbing; user-select: none; }
.rvlane { position: relative; }
.rvarrow { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -29px; border-radius: 50%; border: 1px solid #E7DCF2; background: #fff; color: #4A3568; font: inherit; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 8px 20px rgba(74,53,104,0.14); display: none; }
.rvarrow:hover { background: #F3ECFA; }
.rvarrow.prev { left: clamp(10px, 3vw, 34px); } .rvarrow.next { right: clamp(10px, 3vw, 34px); }
@media (min-width: 761px) { .rvmarq.run .rvarrow { display: block; } }
.rvc { flex: 0 0 300px; margin: 0; scroll-snap-align: start; background: #fff; border-radius: 22px; padding: 24px; box-shadow: 0 10px 30px rgba(74,53,104,0.06); display: flex; flex-direction: column; gap: 12px; }
.rvs { color: #856428; font-size: 16px; letter-spacing: 2px; }
.rvc blockquote { margin: 0; flex: 1; font-size: 15px; line-height: 1.7; color: #3F3850; }
.rvc figcaption { display: flex; align-items: center; gap: 12px; }
.rvc figcaption b { display: block; color: #2B2336; font-weight: 600; }
.rvc figcaption small { font-size: 13px; color: #6B6478; }
.rva { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: #E7D4F6; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #6E4F94; }
/* 10 free days strip (steps-progress idea): one coloured box per day, tap opens the free-time popup */
.slotheat { margin-top: 24px; background: #fff; border: 1px solid #ECE2F6; border-radius: 18px; padding: 18px 20px; }
.slotheat > b { display: block; color: #2B2336; font-size: 16px; }
.slotheat > p { margin: 4px 0 12px; font-size: 14px; color: #6B6478; }
.shgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.shgrid button { font: inherit; border: 0; border-radius: 12px; padding: 8px 2px; cursor: pointer; line-height: 1.3; color: #2B2336; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s, box-shadow .2s; }
.shgrid button.in { opacity: 1; transform: none; }
.shgrid button:hover { box-shadow: 0 0 0 2px #856428; }
.shgrid button small, .shgrid button em { display: block; font-size: 12px; font-style: normal; }
.shgrid button b { display: block; font-size: 17px; }
.shgrid .h0 { background: #EEEAF2; color: #8A8296; }
.shgrid .h1 { background: #EBDDF7; }
.shgrid .h2 { background: #B79AD8; }
.shgrid .h3 { background: #6E4F94; color: #fff; }
.shkey { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; font-size: 13px; color: #6B6478; }
.shkey i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
@media (max-width: 560px) { .shgrid { gap: 5px; } .shgrid button { padding: 7px 0; } .shgrid button em { display: none; } .shgrid button small { font-size: 11px; } .shgrid button b { font-size: 15px; } }
/* 11 shop photos: big photo that changes by itself, thumbnails to tap (thumbnail-image-viewer) */
.shopview { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 22px; align-items: start; }
.shopstage { margin: 0; }
.shopstage .stg { position: relative; aspect-ratio: 3 / 4; max-height: 620px; width: 100%; border-radius: 22px; overflow: hidden; background: #F3ECFA; box-shadow: 0 16px 40px rgba(74,53,104,0.14); }
.shopstage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s; }
.shopstage img.on { opacity: 1; animation: fxZoom 7s ease-out both; }
@keyframes fxZoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.shopstage figcaption { margin-top: 10px; text-align: center; font-weight: 600; color: #4A3568; }
.shopview .shopgrid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shopview .shopph { cursor: pointer; border-radius: 16px; outline: 3px solid transparent; outline-offset: 3px; transition: outline-color .3s, opacity .3s; opacity: .7; }
.shopview .shopph.on { outline-color: #6E4F94; opacity: 1; }
.shopview .shopph img { aspect-ratio: 1; border-radius: 14px; }
.shopview .shopph:first-child { grid-column: auto; }
@media (max-width: 760px) {
  .shopview { grid-template-columns: 1fr; }
  .shopstage .stg { aspect-ratio: 4 / 5; }
  .shopview .shopgrid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .shopview .shopph:first-child img { aspect-ratio: 1; }
  .shopview .shopph figcaption { display: none; }
}
/* 12 map: square map, pin drops on the shop, ring pulses (expand-map) */
.mapbox { border-radius: 22px; overflow: hidden; background: #F3ECFA; border: 1px solid #ECE2F6; }
.mapbox a { position: relative; display: block; text-decoration: none; }
.mapbox img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); transform-origin: 37% 61%; }
.mapbox a:hover img { transform: scale(1.08); }
.mappin { position: absolute; left: 37.2%; top: 61%; width: 26px; height: 26px; margin: -46px 0 0 -13px; background: #C6356E; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 4px 10px rgba(0,0,0,.3); opacity: 0; }
.mappin::after { content: ""; position: absolute; inset: 8px; background: #fff; border-radius: 50%; }
.mappin::before { content: ""; position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; border: 3px solid #C6356E; transform: translate(14px, 14px) rotate(45deg) scale(.2); opacity: 0; }
.mapbox.go .mappin { animation: fxPin .8s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.mapbox.go .mappin::before { animation: fxRing 2s 1s ease-out infinite; }
@keyframes fxPin { from { opacity: 0; transform: translateY(-40px) rotate(-45deg); } to { opacity: 1; transform: rotate(-45deg); } }
@keyframes fxRing { from { opacity: .8; transform: translate(14px, 14px) rotate(45deg) scale(.2); } to { opacity: 0; transform: translate(14px, 14px) rotate(45deg) scale(1.3); } }
.mapgo { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap; background: #4A3568; color: #fff; font-weight: 600; font-size: 14px; padding: 9px 18px; border-radius: 99px; box-shadow: 0 8px 20px rgba(74,53,104,0.3); }
/* 13 FAQ: smooth open, + turns into − (accordion-plus-minus). Browsers without ::details-content just open at once. */
.faqlist details { interpolate-size: allow-keywords; }
.faqlist details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
.faqlist details[open]::details-content { block-size: auto; }
.faqlist summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faqlist summary::-webkit-details-marker { display: none; }
.faqlist summary::after { content: ""; flex: 0 0 16px; height: 16px; background: linear-gradient(#6E4F94, #6E4F94) center / 16px 2px no-repeat, linear-gradient(#6E4F94, #6E4F94) center / 2px 16px no-repeat; transition: transform .35s, background-size .35s; }
.faqlist details[open] summary::after { transform: rotate(180deg); background-size: 16px 2px, 2px 0; }
/* 14 member points: a points bar that fills to each reward (sliding-number + progress) */
.memtrack { max-width: 820px; margin: 4px auto 20px; }
.mtnum { font-size: 15px; color: #E7D4F6; margin-bottom: 10px; }
.mtnum b { font-family: 'Noto Serif Thai', 'Cormorant Garamond', serif; font-size: 34px; color: #fff; font-variant-numeric: tabular-nums; margin-right: 6px; }
.mtbar { position: relative; height: 10px; border-radius: 99px; background: rgba(255,255,255,0.18); }
.mtbar > i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: #E9C77B; }
.mtbar > span { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #6E4F94; border: 3px solid rgba(255,255,255,0.4); transition: background .3s, border-color .3s, transform .3s; }
.mtbar > span.on { background: #E9C77B; border-color: #fff; transform: scale(1.2); }
.memrw li { transition: background .35s, border-color .35s, transform .35s; }
.memrw li.on { background: rgba(233,199,123,0.22); border-color: #E9C77B; transform: translateY(-3px); }
/* 15 before/after drag slider (#before-after, Master 2026-11-28): the after photo sits underneath, the before photo is
   clipped to --p from the left. Without JS it stays split at 50%. */
.basec { padding: clamp(48px,7vw,88px) clamp(18px,4vw,40px); background: linear-gradient(180deg, #FAF7FC 0%, #F3ECFA 100%); }
.bagrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px,2vw,24px); }
.baitem { margin: 0; }
.baitem figcaption { margin-top: 10px; font-size: 14px; color: #5A5167; text-align: center; }
.ba { --p: 50%; position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: #F3ECFA; box-shadow: 0 10px 30px rgba(74,53,104,0.08); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.ba picture, .ba img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ba img { object-fit: cover; pointer-events: none; }
.babefore { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.batag { position: absolute; top: 12px; padding: 4px 11px; border-radius: 99px; background: rgba(43,35,54,0.62); color: #fff; font-size: 13px; font-weight: 600; pointer-events: none; }
.batag-b { left: 12px; }
.batag-a { right: 12px; }
.bahandle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 8px rgba(43,35,54,0.35); pointer-events: none; }
.bahandle::before { content: "\2039\00a0\203A"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; color: #4A3568; font-size: 20px; font-weight: 700; line-height: 42px; text-align: center; box-shadow: 0 4px 14px rgba(43,35,54,0.25); }
.barange { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.ba:focus-within .bahandle::before { outline: 3px solid #6E4F94; outline-offset: 2px; }
@media (max-width: 860px) {
  .bagrid { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hcol.run, .shopstage img.on, .mapbox.go .mappin::before { animation: none; }
  .mapbox.go .mappin { animation: none; opacity: 1; }
}
/* no lone word on the last line (Master 2026-11-19 "ระวังคำตกบรรทัด"): short blocks balance their lines, long paragraphs avoid an orphan */
main p, main li, main summary { text-wrap: pretty; }
main blockquote, main figcaption, main summary, .rvtotal, .memrw span, .memlead, .memmore, .bookrules li, .faqlist summary, .shopp, #services p, main h2, main h3 { text-wrap: balance; }
