:root {
  --bg: #fbf5f2;
  --card: #fff;
  --blush: #f6e6e3;
  --line: #eddcd8;
  --ink: #3a2a2e;
  --muted: #7a666a;
  --rose: #c2506b;
  --rose-dark: #a63e58;
  --sage: #6f8467;
  --gold: #e0a84f;
  --green: #06c755;
  --green-dark: #05a748;
  --radius: 20px;
  --serif: 'Playfair Display', 'Noto Serif Thai', Georgia, serif;
  --sans: 'IBM Plex Sans Thai', system-ui, sans-serif;
  --shadow: 0 18px 40px -24px rgba(90, 40, 50, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }
html[lang="th"] h1, html[lang="th"] h2, html[lang="th"] h3 { font-family: 'Noto Serif Thai', var(--serif); line-height: 1.35; }
.ic { width: 20px; height: 20px; flex: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(194, 80, 107, .45); outline-offset: 2px; }

/* ปุ่ม */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 500; text-decoration: none; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--rose); color: #fff; box-shadow: 0 10px 24px -12px rgba(194, 80, 107, .8); }
.btn-primary:hover { background: var(--rose-dark); }
.btn-line { background: var(--green); color: #fff; }
.btn-line:hover { background: var(--green-dark); }
.btn-soft { background: var(--blush); color: var(--rose-dark); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn-ghost:hover { background: var(--blush); }
.btn-lg { padding: 14px 26px; font-size: 17px; }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--blush); color: var(--ink); }

/* หัวเว็บ */
.top { position: sticky; top: 0; z-index: 40; background: rgba(251, 245, 242, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; max-width: 1180px; margin: 0 auto; padding: 12px 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 36px; height: 36px; }
.brand-text { font: 600 22px/1 'Noto Serif Thai', var(--serif); white-space: nowrap; }
.menu { display: flex; gap: 24px; }
.menu a { text-decoration: none; color: var(--muted); font-weight: 500; }
.menu a:hover { color: var(--rose); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-size: 13px; font-weight: 600; }
.lang span { padding: 4px 9px; border-radius: 999px; color: var(--muted); }
.lang span.on { background: var(--ink); color: #fff; }
.member-btn { display: flex; align-items: center; gap: 8px; max-width: 190px; padding: 6px 14px 6px 8px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font-weight: 500; font-size: 14px; cursor: pointer; }
.member-btn .ic { width: 22px; height: 22px; }
.member-btn.is-in { background: #fff; color: var(--ink); border: 1px solid var(--line); padding-left: 5px; }
.member-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--green), #3fdb8a); color: #fff; font-weight: 600; font-size: 14px; object-fit: cover; flex: none; }
.cart-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.cart-btn.bump { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.2); } }
.cart-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--rose); color: #fff; font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 56px 24px 72px; }
.eyebrow { margin: 0 0 10px; color: var(--rose); font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); }
.hero h1 em { color: var(--rose); font-style: italic; }
.lead { max-width: 30em; margin: 18px 0 28px; color: var(--muted); font-size: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.hero-points li::before { content: '✿'; color: var(--rose); margin-right: 7px; }
.hero-pic { position: relative; }
.hero-pic > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px var(--radius) var(--radius); box-shadow: var(--shadow); }
.hero-card { position: absolute; left: -28px; bottom: 36px; display: flex; align-items: center; gap: 12px; max-width: 290px; padding: 10px 16px 10px 10px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); animation: float 5s ease-in-out infinite; }
.hero-card img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.hero-card b { display: block; font-size: 13px; color: var(--rose); }
.hero-card span { font-size: 14px; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ส่วนต่างๆ */
.sec { padding: 72px 0; }
.sec h2 { font-size: clamp(28px, 3.6vw, 42px); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-weight: 500; cursor: pointer; transition: background .2s, color .2s; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-pic { position: relative; display: block; padding: 0; border: 0; background: var(--blush); cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.card-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-pic img { transform: scale(1.05); }
.tag { position: absolute; top: 12px; left: 12px; padding: 3px 11px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 12.5px; font-weight: 600; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.card h3 { font-size: 17px; font-family: var(--sans); font-weight: 600; line-height: 1.4; }
.card h3 button { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.card-cat { margin: 2px 0 12px; color: var(--muted); font-size: 13.5px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { font-size: 19px; color: var(--rose-dark); }
.price-lg { display: block; margin: 6px 0 0; font-size: 26px; }
.add-btn { display: flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border: 0; border-radius: 999px; background: var(--blush); color: var(--rose-dark); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, transform .15s; }
.add-btn:hover { background: var(--rose); color: #fff; }
.add-btn:active { transform: scale(.94); }
.add-btn.done { background: var(--sage); color: #fff; }
.empty { grid-column: 1 / -1; padding: 30px; text-align: center; color: var(--muted); }

.how { background: var(--blush); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 34px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 24px; border-radius: var(--radius); background: #fff; counter-increment: s; }
.steps li::after { content: counter(s); position: absolute; top: 14px; right: 18px; font: 600 38px/1 var(--serif); color: var(--blush); }
.step-ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 14px; background: var(--rose); color: #fff; }
.steps li:nth-child(2) .step-ic { background: var(--green); }
.steps b { display: block; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-pic { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }
.about h2 { margin-bottom: 14px; }
.about p { color: var(--muted); }

.foot { padding: 34px 0; background: var(--ink); color: rgba(255, 255, 255, .75); font-size: 14.5px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot b { color: #fff; font-size: 17px; }
.foot p { margin: 4px 0 0; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.foot-links a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.foot-links a:hover { color: #fff; }

/* แถบตะกร้ามือถือ */
.cart-bar { display: none; }

/* dialog */
dialog { padding: 0; border: 0; color: var(--ink); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(40, 20, 25, .45); backdrop-filter: blur(2px); }
.modal[open] { animation: pop .25s ease-out; }
.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); border-radius: 24px; background: #fff; overflow: auto; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.sheet { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(440px, 100vw); height: 100dvh; background: #fff; display: flex; flex-direction: column; }
.sheet:not([open]) { display: none; }
.sheet[open] { animation: slide .3s ease-out; }
@keyframes slide { from { transform: translateX(100%); } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 22px; border-bottom: 1px solid var(--line); }
.sheet-head h3 { font-size: 21px; }
.sheet-body { flex: 1; overflow: auto; padding: 8px 22px 20px; }
.sheet-foot { padding: 14px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet-foot:empty { display: none; }

/* สินค้า */
.product-modal { width: min(860px, calc(100vw - 32px)); }
.pm { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.pm-close { position: absolute; top: 10px; right: 10px; z-index: 1; background: rgba(255, 255, 255, .9); }
.pm-pic { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.pm-body { display: flex; flex-direction: column; padding: 32px 28px 26px; }
.pm-body h3 { font-size: 26px; }
.pm-desc { color: var(--muted); }
.pm-qty { display: flex; align-items: center; justify-content: space-between; margin: auto 0 18px; padding-top: 12px; }
.pm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.stepper button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.stepper button:hover { background: var(--blush); }
.stepper output { min-width: 28px; text-align: center; font-weight: 600; }
.stepper-sm button { width: 30px; height: 30px; }
.stepper-sm .ic { width: 16px; height: 16px; }

/* ตะกร้า */
.line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.line-main { flex: 1; min-width: 0; }
.line-main b { display: block; font-size: 15px; line-height: 1.35; }
.line-main span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13.5px; }
.line-main .stepper { display: inline-flex; }
.line-end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.empty-cart { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 60px 10px; text-align: center; color: var(--muted); }
.empty-cart .ic { width: 54px; height: 54px; margin-bottom: 10px; color: var(--rose); opacity: .5; }
.empty-cart b { color: var(--ink); font-size: 18px; }
.empty-cart .btn { margin-top: 14px; }
.free-hint { margin: 0 0 12px; font-size: 14px; color: var(--sage); }
.free-bar { display: block; height: 6px; margin-top: 6px; border-radius: 9px; background: var(--blush); overflow: hidden; }
.free-bar i { display: block; height: 100%; background: var(--sage); border-radius: 9px; }
.sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 0; margin: 0 0 16px; font-size: 15px; }
.sum dd { padding-left: 12px; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; text-align: right; }
.sum .sum-total { padding-top: 8px; border-top: 1px dashed var(--line); color: var(--ink); font-weight: 600; font-size: 18px; }
.sum dd.sum-total { color: var(--rose-dark); }

/* LINE */
.line-modal { width: min(380px, calc(100vw - 32px)); }
.line-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: var(--green); color: #fff; font-weight: 600; }
.line-body { padding: 24px 24px 20px; text-align: center; }
.line-apps { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 16px; }
.line-app { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35); }
.line-app svg { width: 40px; height: 40px; }
.line-app-green { background: var(--green); color: #fff; }
.line-app-green svg { width: 34px; height: 34px; }
.line-dots { color: var(--muted); letter-spacing: 2px; }
.line-body h3 { font-family: var(--sans); font-size: 18px; }
.line-perm { margin: 14px 0; padding: 12px 16px; list-style: none; border-radius: 12px; background: #f4f6f5; text-align: left; font-size: 14.5px; }
.line-perm li::before { content: '✓'; color: var(--green); font-weight: 700; margin-right: 8px; }
.line-name { display: block; margin-bottom: 14px; text-align: left; font-size: 13px; color: var(--muted); }
.line-name input { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; color: var(--ink); }
.line-body .btn + .btn { margin-top: 8px; }
.line-note { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }

/* ชำระเงิน */
.ck-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 16px 14px 12px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.ck-head h3 { font-size: 21px; }
.ck-form, .pay { padding: 18px 24px 24px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 500; }
.field i { color: var(--rose); font-style: normal; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(194, 80, 107, .15); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ck-error { min-height: 1.4em; margin: 0 0 8px; color: #c0392b; font-size: 14px; }
.ck-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.ck-total b { font-size: 22px; color: var(--rose-dark); }
.pay-qr { width: 240px; margin: 4px auto 0; padding: 0 0 12px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); text-align: center; }
.pp-logo { padding: 8px; background: #0e3a6e; color: #fff; font-weight: 700; letter-spacing: .04em; }
.pay-qr svg { display: block; width: 200px; height: 200px; margin: 10px auto 0; }
.pay-hint { margin: 12px 0 16px; text-align: center; color: var(--muted); font-size: 14px; }
.slip-drop { display: block; margin-bottom: 8px; border: 2px dashed var(--line); border-radius: 16px; cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.slip-drop:hover { border-color: var(--rose); background: var(--blush); }
.slip-drop > span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px; }
.slip-drop .ic { width: 28px; height: 28px; color: var(--rose); }
.slip-drop small { color: var(--muted); }
.slip-drop img { max-height: 220px; border-radius: 10px; }
.pay .btn + .btn { margin-top: 8px; }
.checking, .paid { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 10px; text-align: center; }
.spinner { width: 44px; height: 44px; border: 4px solid var(--blush); border-top-color: var(--rose); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.paid-ic { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--sage); color: #fff; animation: pop .4s; }
.paid-ic .ic { width: 38px; height: 38px; }
.paid h3 { font-size: 24px; }
.paid p { margin: 0 0 8px; color: var(--muted); }
.paid .btn { max-width: 320px; }

/* บัญชี */
.me { display: flex; align-items: center; gap: 14px; padding: 16px 0 18px; }
.me .avatar { width: 56px; height: 56px; font-size: 24px; }
.me b { display: block; font-size: 18px; }
.me span { display: flex; align-items: center; gap: 6px; color: var(--green-dark); font-size: 13.5px; }
.me span .ic { width: 16px; height: 16px; }
.sheet-body h4 { margin: 4px 0 10px; font-family: var(--sans); font-size: 16px; }
.order { margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.order-head, .order-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-pics { display: flex; gap: 6px; margin: 10px 0 6px; }
.order-pics img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; }
.order-meta { margin: 0 0 8px; color: var(--muted); font-size: 13.5px; }
.order-foot b { color: var(--rose-dark); }
.status { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: #f1eceb; color: var(--muted); }
.st-pending { background: #fff2dc; color: #a26a12; }
.st-checking { background: #e7effb; color: #2d5fa8; }
.st-paid { background: #e8f3e5; color: #48703f; }
.st-shipping { background: #efe7fb; color: #6941a8; }
.st-done { background: var(--sage); color: #fff; }
.st-cancelled { background: #f6e1e1; color: #a33; }
.sheet-body > .btn-ghost { margin-top: 12px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; box-shadow: var(--shadow); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: transform .3s, opacity .3s; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast.is-ok { background: var(--sage); }

@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body.has-cart { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  .top-in { padding: 10px 16px; gap: 8px; }
  .menu { display: none; }
  .brand-text { font-size: 19px; }
  .brand-mark { width: 32px; height: 32px; }
  .member-btn { padding: 0; width: 40px; height: 40px; justify-content: center; }
  .member-btn.is-in { padding: 0; }
  .member-btn span:not(.avatar) { display: none; }
  .cart-btn { width: 40px; height: 40px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 24px 16px 48px; }
  .hero-pic { order: -1; }
  .hero-pic > img { aspect-ratio: 4 / 3; border-radius: var(--radius); }
  .hero-card { left: 12px; bottom: 12px; }
  .lead { font-size: 16.5px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .sec { padding: 52px 0; }
  .sec-head { display: block; }
  .chips { margin: 18px -16px 0; padding: 0 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card h3 { font-size: 15px; }
  .card-foot { flex-wrap: wrap; }
  .price { font-size: 17px; }
  .add-btn { padding: 8px; }
  .add-btn span { display: none; }
  .steps, .about { grid-template-columns: minmax(0, 1fr); }
  .about { gap: 24px; }
  .cart-bar { position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border: 0; border-radius: 999px; background: var(--rose); color: #fff; font-weight: 600; box-shadow: 0 14px 30px -12px rgba(166, 62, 88, .8); cursor: pointer; }
  .cart-bar[hidden] { display: none; }
  .cart-bar b { margin-left: auto; }
  .cart-bar-count { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .25); }
  .toast { bottom: calc(90px + env(safe-area-inset-bottom)); }
  /* dialog = แผ่นจากด้านล่าง */
  .modal, .sheet { position: fixed; inset: auto 0 0 0; margin: 0; width: 100vw; max-height: 92dvh; height: auto; border-radius: 24px 24px 0 0; }
  .sheet { min-height: 60dvh; }
  .modal[open], .sheet[open] { animation: up .3s ease-out; }
  @keyframes up { from { transform: translateY(100%); } }
  .line-modal { width: 100vw; }
  .pm { grid-template-columns: minmax(0, 1fr); }
  .pm-pic { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
  .pm-body { padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); }
  .ck-form, .pay { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .brand-text { font-size: 17px; }
  .lang span { padding: 4px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
