/* DERMAPON homepage
   Layouts: desktop >= 1200px, tablet 768-1199px (desktop structure), mobile < 768px.
   Z-index convention from UI_REF: BG 0, decor rear 5, model/product 10, decor front 15, text/UI 20+. */

:root {
  --ink: #111111;
  --ink-2: #4a4a4f;
  --ink-3: #8a8a92;
  --white: #ffffff;
  --pink: #f72585;
  --pink-600: #e0176f;
  --blush: #fff0f5;
  --blush-2: #fde4ec;
  --line: #f0e6ea;
  --hero-bg: linear-gradient(100deg, #fdf0f3 0%, #fbe3ea 45%, #f8dbe3 100%);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 6px 18px rgba(247, 37, 133, .06);
  --shadow-lift: 0 14px 34px rgba(247, 37, 133, .16);
  --container: 1320px;
  --gutter: 24px;
  --section-gap: 56px;
  --topbar-h: 34px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --font-head: "Prompt", "IBM Plex Sans Thai", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Thai", "Prompt", system-ui, sans-serif;
  --font-latin: "Montserrat", var(--font-body);
  --font-hand: "Sriracha", cursive;
  --font-serif: "Cormorant Garamond", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 15px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { list-style: none; padding: 0; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--font-head); white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn svg { font-size: .9em; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--pink { background: var(--pink); color: #fff; box-shadow: 0 6px 16px rgba(247, 37, 133, .28); }
.btn--pink:hover { background: var(--pink-600); box-shadow: 0 10px 22px rgba(247, 37, 133, .34); }
.btn--pink:active { transform: scale(.97); }
.btn--lg { height: 52px; padding: 0 30px; font-size: 18px; }
.btn--sm { height: 34px; padding: 0 16px; font-size: 13px; }
.btn--outline { border: 1.5px solid var(--pink); color: var(--pink); background: #fff; }
.btn--outline:hover { background: var(--blush); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: transform .35s var(--ease), box-shadow .3s; }
.site-header.is-scrolled { transform: translateY(calc(var(--topbar-h) * -1)); box-shadow: 0 6px 20px rgba(17, 17, 17, .06); }

.topbar { background: var(--ink); color: #fff; font-size: 12.5px; height: var(--topbar-h); }
.topbar__inner { display: flex; align-items: center; justify-content: center; height: 100%; position: relative; }
.topbar__msg { letter-spacing: .02em; }
.topbar__links { position: absolute; right: var(--gutter); display: flex; align-items: center; gap: 10px; color: #d8d8dc; }
.topbar__links a:hover, .topbar__lang:hover { color: #fff; }
.topbar__lang { display: inline-flex; align-items: center; gap: 4px; color: #d8d8dc; }

.header-main__inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 40px; padding-top: 16px; padding-bottom: 10px; }
.logo img { width: 190px; }

.search { position: relative; display: flex; align-items: center; height: 48px; max-width: 720px; width: 100%; justify-self: center;
  border: 1.5px solid #ece4e8; border-radius: 999px; background: #fff; transition: box-shadow .25s var(--ease), border-color .25s, max-width .3s var(--ease); }
.search:focus-within { border-color: #f6b3cf; box-shadow: 0 6px 22px rgba(247, 37, 133, .14); max-width: 750px; }
.search__icon { position: absolute; left: 18px; font-size: 19px; color: var(--ink-2); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; padding: 0 12px 0 48px; font-size: 14.5px; }
.search input::placeholder { color: var(--ink-3); }
.search__btn { height: 38px; margin-right: 4px; padding: 0 30px; box-shadow: none; }

.header-icons { display: flex; gap: 26px; }
.icon-btn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12.5px; color: var(--ink); transition: color .2s; }
.icon-btn svg { font-size: 25px; }
.icon-btn:hover { color: var(--pink); }
.icon-btn--search { display: none; }
.badge { position: absolute; top: -6px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: #fff;
  font: 600 11px/18px var(--font-latin); text-align: center; box-shadow: 0 0 0 2px #fff; }
.badge.is-bump { animation: bump .45s var(--ease); }

.catnav { border-bottom: 1px solid var(--line); }
.catnav__list { display: flex; justify-content: center; gap: 44px; }
.catnav__list a { position: relative; display: block; padding: 8px 2px 11px; font: 500 15px/1.3 var(--font-head); color: var(--ink); transition: color .2s; }
.catnav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--pink);
  transform: scaleX(0); transition: transform .18s var(--ease); }
.catnav__list a:hover, .catnav__list a.is-active { color: var(--pink); }
.catnav__list a:hover::after, .catnav__list a.is-active::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); min-height: clamp(340px, 27vw, 430px); display: flex; align-items: center; }
.hero__visual { position: absolute; z-index: 10; right: 0; top: 0; height: 100%; }
.hero__visual img { height: 100%; width: auto; max-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%); mask-image: linear-gradient(90deg, transparent 0, #000 9%); }
.hero__inner { position: relative; z-index: 20; }
.hero__copy { max-width: 560px; padding: 40px 0; }
.hero__title { font-family: var(--font-head); line-height: 1.05; }
.hero__big { display: block; font-size: clamp(64px, 6.4vw, 104px); font-weight: 700; letter-spacing: -.01em; }
.hero__sub { display: block; font-size: clamp(34px, 3.4vw, 54px); font-weight: 700; margin-top: 4px; }
.tagline { margin: 18px 0 26px; font: 500 clamp(14px, 1.2vw, 18px)/1 var(--font-latin); letter-spacing: .42em; }

.note { position: absolute; z-index: 15; margin: 0; font: 400 clamp(20px, 1.9vw, 30px)/1.25 var(--font-hand); color: #c0396f;
  transform: rotate(-12deg); text-align: center; pointer-events: none; }
.note__heart { color: var(--pink); }
.note--hero { right: clamp(16px, 3vw, 60px); top: 22%; }
.note--mid { right: clamp(16px, 4.5vw, 80px); top: 12%; }

/* ---------- trust bar ---------- */
.trust { border-bottom: 1px solid var(--line); }
.trust__inner { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 18px; padding-bottom: 18px; }
.trust__item { display: flex; align-items: center; justify-content: center; gap: 14px; }
.trust__item + .trust__item { border-left: 1px solid var(--line); }
.trust__item svg { font-size: 36px; color: var(--ink); }
.trust__item b { display: block; font: 600 16px/1.3 var(--font-head); }
.trust__item small { font-size: 13px; color: var(--ink-3); }

/* ---------- sections ---------- */
.section { padding-top: var(--section-gap); }
.section--tight { padding-top: calc(var(--section-gap) * .75); }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section__head h2 { font: 700 clamp(22px, 2vw, 30px)/1.25 var(--font-head); }
.section__head h2.latin { font-family: var(--font-latin); font-weight: 600; }
.see-all { display: inline-flex; align-items: center; gap: 4px; font: 600 14px/1 var(--font-head); color: var(--pink); white-space: nowrap; }
.see-all svg { transition: transform .2s var(--ease); }
.see-all:hover svg { transform: translateX(4px); }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.cat-card { display: block; border-radius: var(--radius-sm); overflow: hidden; background: var(--blush); box-shadow: var(--shadow); }
.cat-card img { width: 100%; aspect-ratio: 120 / 68; object-fit: cover; transition: transform .45s var(--ease); }
.cat-card span { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; font: 600 15px/1.2 var(--font-head); background: linear-gradient(#fff6f9, var(--blush)); }
.cat-card span svg { transition: transform .2s var(--ease); }
.cat-card:hover img { transform: scale(1.05); }
.cat-card:hover span svg { transform: translateX(4px); color: var(--pink); }

/* cards */
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; background: #fff; border: 1px solid #f3eaee; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card__media { position: relative; overflow: hidden; background: var(--blush); }
.card__media img { width: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.deal .card__media img { aspect-ratio: 16 / 9; }
.product .card__media img { aspect-ratio: 179 / 92; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font: 600 16px/1.35 var(--font-head); }
.card h3 small { font: 500 14px/1.4 var(--font-body); color: var(--ink-2); }
.card__brand { margin-top: 8px; font: 500 12.5px/1.3 var(--font-latin); letter-spacing: .06em; color: var(--ink-3); }
.card__loc { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.card__loc svg { color: var(--ink); font-size: 14px; }
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.deal, .product { display: flex; flex-direction: column; }
.price { font: 700 24px/1 var(--font-head); color: var(--pink); }
.price s { margin-left: 6px; font: 400 14px/1 var(--font-body); color: var(--ink-3); }

.ribbon { position: absolute; z-index: 15; left: 12px; top: 10px; padding: 4px 12px 5px; background: var(--pink); color: #fff;
  font: 600 13px/1 var(--font-head); border-radius: 3px; transform: rotate(-6deg); box-shadow: 0 4px 10px rgba(247, 37, 133, .3); }
.wish { position: absolute; z-index: 15; right: 10px; top: 10px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 20px; box-shadow: 0 2px 8px rgba(17, 17, 17, .08); transition: color .2s, transform .2s; }
.wish:hover { color: var(--pink); }
.wish[aria-pressed="true"] { color: var(--pink); }
.wish[aria-pressed="true"] svg path { fill: currentColor; }
.wish.is-pulse { animation: pulse .5s var(--ease); }

.cart-btn { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; background: var(--pink); color: #fff; font-size: 24px;
  box-shadow: 0 6px 14px rgba(247, 37, 133, .3); transition: background-color .2s, transform .2s; }
.cart-btn:hover { background: var(--pink-600); }
.cart-btn:active { transform: scale(.94); }
.cart-btn.is-bounce svg { animation: bounce .55s var(--ease); }

/* promo banners */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.promo { position: relative; overflow: hidden; border-radius: 16px; min-height: 300px; background: var(--hero-bg); display: flex; align-items: center; isolation: isolate; }
.promo__visual { position: absolute; z-index: 10; top: 0; right: 0; height: 100%; }
.promo__visual img { height: 100%; width: auto; max-width: none; transition: transform .2s linear;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.promo--laser { background: linear-gradient(100deg, #fdf3f4, #f4e3e2); }
.promo--laser .promo__visual img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
.promo__copy { position: relative; z-index: 20; padding: 30px 32px; max-width: 62%; }
.promo__title { font: 700 clamp(36px, 3.6vw, 56px)/1.08 var(--font-head); }
.promo__title--one { font-size: clamp(30px, 2.8vw, 42px); white-space: nowrap; }
.promo__copy p { margin: 12px 0 22px; font-size: 16px; color: var(--ink-2); }
.promo__copy .promo__lead { margin: 6px 0 12px; font: 500 20px/1.3 var(--font-head); color: var(--ink); }
.checklist { margin-bottom: 20px; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 3px 0; font-size: 15px; }
.checklist svg { color: var(--pink); font-size: 18px; }

/* clinics */
.section__head--chips { flex-wrap: wrap; }
.section__head--chips h2 { margin-right: auto; }
.loc-chips { display: flex; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 16px; border: 1.5px solid #eee4e8; border-radius: 999px;
  background: #fff; font: 500 14px/1 var(--font-head); transition: background-color .2s, color .2s, border-color .2s; }
.chip svg { font-size: 15px; }
.chip:hover { border-color: #f6b3cf; }
.chip.is-active { background: var(--pink); border-color: var(--pink); color: #fff; }
.chip.is-active svg circle { fill: var(--pink); }
.clinic-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.clinic .card__media img { aspect-ratio: 179 / 72; }
.clinic__body { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 0 16px 16px; }
.clinic__body h3 { font-size: 15.5px; }
.clinic__body p { font-size: 12.5px; color: var(--ink-3); }
.clinic__body .btn { grid-column: 1 / -1; justify-self: center; margin-top: 12px; }
.monogram { width: 58px; height: 58px; margin-top: -22px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid #ece4e0;
  box-shadow: 0 4px 12px rgba(17, 17, 17, .08); font: 500 30px/1 var(--font-serif); color: #3a3330; }
.clinic.is-hidden { display: none; }

/* mid hero */
.midhero { position: relative; overflow: hidden; margin-top: var(--section-gap); background: var(--hero-bg); min-height: clamp(320px, 25vw, 410px); display: flex; align-items: center; }
.midhero__visual { position: absolute; z-index: 10; right: 0; top: 0; height: 100%; }
.midhero__visual img { height: 100%; width: auto; max-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%); mask-image: linear-gradient(90deg, transparent 0, #000 12%); }
.midhero__inner { position: relative; z-index: 20; }
.midhero__copy { max-width: 520px; padding: 36px 0; }
.midhero__title { font: 700 clamp(40px, 4vw, 62px)/1.1 var(--font-head); }
.midhero__title span { display: inline-block; padding-left: 1.6em; }
.midhero__copy p { margin: 12px 0 24px; font-size: clamp(16px, 1.4vw, 20px); color: var(--ink-2); }

/* brands */
.arrows { display: flex; gap: 8px; }
.arrow { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #f5f2f4; font-size: 15px; transition: background-color .2s, color .2s; }
.arrow:hover { background: var(--pink); color: #fff; }
.brand-row { overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.brand-row::-webkit-scrollbar { display: none; }
.brand-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 14px) / 6); gap: 14px; }
.brand { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 84px; border: 1px solid #eee8ea; border-radius: 6px;
  font: 600 20px/1 var(--font-serif); letter-spacing: .16em; color: #262222; transition: border-color .2s, box-shadow .2s; }
.brand small { margin-top: 6px; font: 600 8px/1 var(--font-latin); letter-spacing: .3em; color: var(--ink-3); }
.brand:hover { border-color: #f6b3cf; box-shadow: var(--shadow); }

/* reviews */
.review-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.review { display: flex; gap: 18px; padding: 20px 22px; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.review:hover { transform: translateY(-3px); }
.review > img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; }
.review figcaption b { display: block; font: 600 16px/1.3 var(--font-head); }
.stars { display: flex; gap: 2px; margin: 3px 0 6px; color: #ffb21d; font-size: 15px; }
.review blockquote { font-size: 14px; color: var(--ink-2); }
.review__name { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.dots { display: none; }

/* journal */
.journal-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.journal { display: grid; grid-template-columns: 42% 1fr; align-items: stretch; }
.journal img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; transition: transform .5s var(--ease); }
.journal:hover img { transform: scale(1.05); }
.journal > div { padding: 14px 16px; display: flex; flex-direction: column; }
.journal h3 { font-size: 15px; }
.journal p { margin-top: 6px; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.read-more { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 10px; font: 600 13px/1 var(--font-head); color: var(--pink); }
.read-more svg { transition: transform .2s var(--ease); }
.journal:hover .read-more svg { transform: translateX(4px); }

/* newsletter */
.newsletter { position: relative; margin-top: var(--section-gap); overflow: hidden; color: #fff;
  background: radial-gradient(60% 140% at 85% 50%, rgba(247, 37, 133, .38), transparent 60%), radial-gradient(40% 120% at 10% 120%, rgba(247, 37, 133, .2), transparent 60%), #111; }
.newsletter__inner { display: grid; grid-template-columns: auto 1fr minmax(320px, 420px) 140px; align-items: center; gap: 28px; padding-top: 26px; padding-bottom: 26px; }
.newsletter__icon { width: 64px; height: 48px; color: var(--pink); }
.newsletter__copy h2 { font: 700 26px/1.25 var(--font-head); }
.newsletter__copy p { font-size: 14.5px; color: #d9d2d6; }
.newsletter__form { display: flex; height: 50px; background: #fff; border-radius: 10px; overflow: hidden; transition: box-shadow .25s; }
.newsletter__form:focus-within { box-shadow: 0 0 0 4px rgba(247, 37, 133, .35); }
.newsletter__form input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0 16px; color: var(--ink); background: none; }
.newsletter__form .btn { height: auto; border-radius: 8px; margin: 4px; padding: 0 26px; box-shadow: none; }
.newsletter__form.is-invalid { box-shadow: 0 0 0 3px #ff9fc6; animation: shake .35s; }
.newsletter__deco { position: relative; height: 80px; }
.newsletter__deco .env { position: absolute; width: 92px; left: 0; top: 4px; transform: rotate(-12deg); filter: drop-shadow(0 8px 18px rgba(247, 37, 133, .5)); animation: float 4.5s ease-in-out infinite alternate; }
.newsletter__deco .spark { position: absolute; width: 26px; height: 26px; right: 8px; top: 20px; animation: twinkle 2.6s ease-in-out infinite; }

/* footer */
.footer { padding-top: 40px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr 1.2fr; gap: 32px; }
.footer__brand img { width: 170px; }
.footer__brand p { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.socials { display: flex; gap: 16px; margin-top: 18px; }
.socials a { display: grid; place-items: center; width: 32px; height: 32px; transition: transform .2s var(--ease); }
.socials a:hover { transform: translateY(-3px); }
.socials svg { width: 30px; height: 30px; }
.footer__col summary, .footer__pay h3 { display: flex; align-items: center; justify-content: space-between; list-style: none; font: 600 15px/1.3 var(--font-head); margin-bottom: 12px; }
.footer__col summary::-webkit-details-marker { display: none; }
.footer__col summary svg { display: none; }
.footer__col li a { display: inline-block; padding: 3px 0; font-size: 14px; color: var(--ink-2); transition: color .2s; }
.footer__col li a:hover { color: var(--pink); }
.pay-list { display: grid; grid-template-columns: repeat(3, 64px); gap: 8px; }
.pay { display: grid; place-items: center; height: 40px; border: 1px solid #ece6e8; border-radius: 6px; font: 800 13px/1 var(--font-latin); }
.pay--visa { color: #1a1f71; font-style: italic; font-size: 16px; }
.pay--jcb { color: #0b4ea2; }
.pay--qr { font-size: 10.5px; color: #113566; }
.pay--pp { grid-column: span 2; color: #113566; font-size: 13px; }
.pay--mc { display: flex; justify-content: center; }
.pay--mc i { width: 20px; height: 20px; border-radius: 50%; background: #eb001b; }
.pay--mc i + i { background: #f79e1b; margin-left: -8px; mix-blend-mode: multiply; }
.footer__legal { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 16px; padding-bottom: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }

.tabbar { display: none; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  transition: opacity .25s, transform .3s var(--ease); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- motion ---------- */
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes pulse { 0% { transform: scale(1); } 35% { transform: scale(1.28); } 100% { transform: scale(1); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-5px); } 65% { transform: translateY(1px); } }
@keyframes float { from { transform: rotate(-12deg) translateY(-6px); } to { transform: rotate(-8deg) translateY(6px); } }
@keyframes twinkle { 0%, 100% { transform: scale(.8) rotate(0); opacity: .6; } 50% { transform: scale(1.1) rotate(25deg); opacity: 1; } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* entrance animations: only applied once JS has marked the page ready */
.js [data-anim="model"] { opacity: 0; transform: translateX(24px); }
.js .hero__copy > * { opacity: 0; transform: translateY(16px); }
.js .note { clip-path: inset(0 100% 0 0); }
.is-loaded [data-anim="model"] { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.is-loaded .hero__copy > * { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }
.is-loaded .hero__copy > :nth-child(2) { transition-delay: .1s; }
.is-loaded .hero__copy > :nth-child(3) { transition-delay: .2s; }
.is-loaded .note--hero { clip-path: inset(0 0 0 0); transition: clip-path .7s .55s var(--ease); }
.js .note--mid.is-in { clip-path: inset(0 0 0 0); transition: clip-path .7s .2s var(--ease); }

.js [data-stagger] > * { opacity: 0; transform: translateY(18px); }
.js [data-stagger] > .is-in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease), box-shadow .28s var(--ease); }
.js [data-stagger] > .is-in:hover { transform: translateY(-6px); }
.js .checklist li { opacity: 0; transform: translateX(-10px); }
.js .checklist.is-in li { opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.js .checklist.is-in li:nth-child(2) { transition-delay: .09s; }
.js .checklist.is-in li:nth-child(3) { transition-delay: .18s; }

/* =========================================================
   TABLET (768-1199): desktop structure, tighter
   ========================================================= */
@media (max-width: 1199px) {
  :root { --gutter: 20px; --section-gap: 48px; }
  .header-main__inner { gap: 24px; }
  .logo img { width: 160px; }
  .header-icons { gap: 16px; }
  .catnav__list { gap: 28px; }
  .cat-grid { gap: 10px; }
  .card-grid, .clinic-row, .review-row, .journal-row { gap: 14px; }
  .promo__copy { padding: 24px; }
  .newsletter__inner { grid-template-columns: auto 1fr minmax(280px, 380px); }
  .newsletter__deco { display: none; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer__pay { grid-column: 1 / -1; }
  .journal { grid-template-columns: 1fr; }
  .journal img { min-height: 0; aspect-ratio: 16 / 9; }
  /* marquee on narrow desktop / tablet */
  .brand-row.is-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
  .brand-row.is-marquee .brand-track { width: max-content; grid-auto-columns: 180px; animation: marquee 26s linear infinite; }
  .brand-row.is-marquee:hover .brand-track { animation-play-state: paused; }
  .arrows { display: none; }
}
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

@media (max-width: 991px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clinic-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-icons .icon-btn span { display: none; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo { min-height: 280px; }
  .review-row { grid-template-columns: 1fr; }
}

/* =========================================================
   MOBILE (< 768): separate composition, 16px side padding
   ========================================================= */
@media (max-width: 767px) {
  :root { --gutter: 16px; --section-gap: 36px; --radius: 12px; }
  html { scroll-padding-top: 120px; }
  body { font-size: 14px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

  /* header: row 1 logo + icons, row 2 search, row 3 chips */
  .topbar { display: none; }
  .site-header.is-scrolled { transform: none; }
  .header-main__inner { grid-template-columns: 1fr auto; grid-template-areas: "logo icons" "search search"; gap: 10px 8px; padding-top: 10px; padding-bottom: 8px; }
  .logo { grid-area: logo; }
  .logo img { width: 136px; }
  .header-icons { grid-area: icons; gap: 4px; }
  .header-icons .icon-btn { width: 40px; height: 40px; justify-content: center; }
  .header-icons .icon-btn svg { font-size: 23px; }
  .header-icons .icon-btn--wish { display: none; }
  .icon-btn--search { display: flex; }
  .badge { top: 0; right: 0; }
  .search { grid-area: search; height: 42px; max-width: none; transition: max-height .3s var(--ease), opacity .25s, margin .3s; max-height: 42px; }
  .search:focus-within { max-width: none; }
  .search__btn { padding: 0 18px; height: 34px; font-size: 14px; }
  .search input { font-size: 16px; padding-left: 42px; }
  .search__icon { left: 15px; font-size: 17px; }
  .site-header.is-compact:not(.search-open) .search { max-height: 0; opacity: 0; overflow: hidden; border-width: 0; margin-top: -10px; }

  .catnav { border-bottom: 0; padding-bottom: 8px; }
  .catnav__list { justify-content: flex-start; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--gutter); margin: 0 calc(var(--gutter) * -1); position: relative; }
  .catnav__list::-webkit-scrollbar { display: none; }
  .catnav__list a { padding: 7px 14px; border-radius: 999px; background: #f7f2f4; font-size: 13.5px; white-space: nowrap; transition: background-color .22s, color .22s; }
  .catnav__list a::after { display: none; }
  .catnav__list a.is-active { background: var(--pink); color: #fff; }

  /* hero: headline top-left, model lower-right, CTA above fold */
  .hero { display: block; min-height: 0; }
  .hero__inner { padding-bottom: 0; }
  .hero__copy { padding: 22px 0 0; max-width: none; }
  .hero__big { font-size: 56px; }
  .hero__sub { font-size: 27px; }
  .tagline { margin: 10px 0 16px; font-size: 11.5px; letter-spacing: .34em; }
  .btn--lg { height: 46px; padding: 0 24px; font-size: 16px; }
  .hero__visual { position: relative; display: block; height: auto; margin-top: -26px; }
  .hero__visual img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%); mask-image: linear-gradient(180deg, transparent 0, #000 22%); }
  .js [data-anim="model"] { transform: translateY(18px); }
  .note { font-size: 18px; }
  .note--hero { top: auto; bottom: 46%; right: 14px; }

  .trust__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-top: 14px; padding-bottom: 14px; }
  .trust__item { flex-direction: column; text-align: center; gap: 6px; }
  .trust__item svg { font-size: 26px; }
  .trust__item b { font-size: 12.5px; }
  .trust__item small { display: none; }

  .section__head { margin-bottom: 12px; }
  .section__head h2 { font-size: 20px; }
  .see-all { font-size: 13px; }

  /* horizontal snap scrollers */
  .scroller { display: grid; grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; scroll-padding: 0 var(--gutter); }
  .scroller::-webkit-scrollbar { display: none; }
  .scroller > * { scroll-snap-align: start; }

  .cat-grid { grid-auto-columns: 40%; gap: 10px; }
  .cat-card span { font-size: 13.5px; padding: 8px 10px; }

  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card__body { padding: 10px 10px 12px; }
  .card h3 { font-size: 13.5px; }
  .card h3 br { display: none; }
  .card h3 small { display: block; font-size: 12.5px; }
  .card__brand { font-size: 11px; margin-top: 4px; }
  .card__loc { font-size: 12px; }
  .price { font-size: 19px; }
  .price s { display: block; margin: 4px 0 0; font-size: 12px; }
  .cart-btn { width: 38px; height: 38px; font-size: 20px; border-radius: 9px; }
  .ribbon { font-size: 11px; left: 8px; top: 8px; padding: 3px 9px 4px; }
  .wish { width: 32px; height: 32px; font-size: 17px; right: 8px; top: 8px; }
  .deal .card__media img { aspect-ratio: 4 / 3; }
  .product .card__media img { aspect-ratio: 1 / 1; }
  .card:hover, .js [data-stagger] > .is-in:hover { transform: none; }

  .promo-grid { gap: 14px; }
  .promo { min-height: 0; display: block; border-radius: 14px; }
  .promo__visual { position: relative; display: block; height: auto; margin-left: 30%; }
  .promo__visual img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%); mask-image: linear-gradient(90deg, transparent 0, #000 35%); }
  .promo__copy { position: absolute; inset: 0; max-width: 64%; padding: 18px; display: flex; flex-direction: column; justify-content: center; }
  .promo__title { font-size: 34px; }
  .promo__title--one { font-size: 24px; white-space: normal; }
  .promo__copy p { margin: 6px 0 14px; font-size: 13px; }
  .promo__copy .promo__lead { font-size: 15px; margin: 4px 0 8px; }
  .checklist { margin-bottom: 12px; }
  .checklist li { font-size: 12.5px; gap: 6px; padding: 1px 0; }
  .checklist svg { font-size: 14px; }
  .promo .btn { height: 38px; padding: 0 16px; font-size: 13px; align-self: flex-start; }

  .loc-chips { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; gap: 8px; }
  .loc-chips::-webkit-scrollbar { display: none; }
  .chip { height: 32px; padding: 0 12px; font-size: 13px; flex: none; }
  .clinic-row { grid-auto-columns: 82%; gap: 12px; } /* 1.2-card peek */

  .midhero { display: block; min-height: 0; }
  .midhero__copy { padding: 26px 0 0; max-width: none; }
  .midhero__title { font-size: 34px; }
  .midhero__copy p { margin: 8px 0 14px; font-size: 14px; }
  .midhero__visual { position: relative; display: block; height: auto; margin-top: -12px; }
  .midhero__visual img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20%); mask-image: linear-gradient(180deg, transparent 0, #000 20%); }
  .note--mid { top: auto; bottom: 40%; right: 12px; }

  .brand { height: 68px; font-size: 16px; }
  .brand-row.is-marquee .brand-track { grid-auto-columns: 140px; gap: 10px; animation-duration: 22s; }

  .review-row { grid-auto-columns: 100%; gap: 12px; }
  .review { padding: 16px; gap: 14px; }
  .review > img { width: 60px; height: 60px; }
  .review:hover { transform: none; }
  .dots { display: flex; justify-content: center; gap: 6px; margin-top: -4px; }
  .dots i { width: 6px; height: 6px; border-radius: 3px; background: #ecdfe4; transition: width .25s var(--ease), background-color .25s; }
  .dots i.is-active { width: 18px; background: var(--pink); }

  .journal-row { grid-auto-columns: 72%; gap: 12px; }
  .journal { grid-template-columns: 1fr; }

  /* newsletter above accordion footer */
  .newsletter__inner { grid-template-columns: auto 1fr; gap: 12px 14px; padding-top: 22px; padding-bottom: 22px; }
  .newsletter__icon { width: 44px; height: 34px; }
  .newsletter__copy h2 { font-size: 20px; }
  .newsletter__copy p { font-size: 13px; }
  .newsletter__form { grid-column: 1 / -1; height: 48px; }
  .newsletter__form input { font-size: 16px; }

  .footer { padding-top: 28px; }
  .footer__inner { grid-template-columns: 1fr; gap: 0; }
  .footer__brand { padding-bottom: 18px; }
  .footer__brand p br { display: none; }
  .footer__col { border-top: 1px solid var(--line); }
  .footer__col summary { margin: 0; padding: 14px 0; cursor: pointer; }
  .footer__col summary svg { display: block; transition: transform .25s var(--ease); }
  .footer__col[open] summary svg { transform: rotate(180deg); }
  .footer__col ul { padding-bottom: 12px; }
  .footer__pay { border-top: 1px solid var(--line); padding-top: 14px; }
  .pay-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pay--pp { grid-column: span 2; }
  .footer__legal { flex-direction: column; margin-top: 16px; }

  .tabbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(17, 17, 17, .05); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--ink-2); }
  .tabbar svg { font-size: 22px; }
  .tabbar a.is-active { color: var(--pink); }
  .tabbar .badge { top: -4px; right: calc(50% - 20px); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-anim="model"], .js .hero__copy > *, .js [data-stagger] > *, .js .checklist li { opacity: 1 !important; transform: none !important; }
  .js .note { clip-path: none !important; }
}
