/* ============ FesBunny — Kawaii Premium ============ */
:root {
  --sky: #64C7FF;
  --sky-600: #2FA6EA;
  --sky-700: #1B86C7;
  --lemon: #FFD84D;
  --lemon-600: #F5C21B;
  --white: #FFFFFF;
  --soft: #EAF7FF;
  --bg2: #F7FCFF;
  --g-sky-1: #9BE0FF;
  --g-sky-2: #3AAEF0;
  --g-white-2: #DDF1FF;
  --lemon-300: #FFE27A;
  --lemon-700: #E9A400;
  --lemon-ink: #5A4300;
  --lemon-soft: #FFF6CF;
  --sky-rgb: 100, 199, 255;
  --sky600-rgb: 47, 166, 234;
  --lemon-rgb: 255, 216, 77;
  --lemon700-rgb: 233, 164, 0;
  --ink: #1F3B57;
  --ink-2: #4A6582;
  --muted: #7E93A8;
  --line: #DCEFFC;
  --pink: #FFB8CF;
  --ok: #22B573;
  --warn: #F59E0B;
  --bad: #EF5B6B;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow: 0 10px 30px rgba(var(--sky600-rgb), .12), 0 2px 6px rgba(var(--sky600-rgb), .08);
  --shadow-lg: 0 24px 60px rgba(var(--sky600-rgb), .18);
  --font: 'LINE Seed Sans TH', 'Prompt', 'Nunito', system-ui, sans-serif;
  --font-en: 'Nunito', 'Prompt', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); line-height: 1.6; font-size: 15px;
  background: linear-gradient(180deg, var(--soft) 0%, var(--bg2) 40%, var(--white) 100%) fixed;
  min-height: 100vh; padding-bottom: 76px;
}
@media (min-width: 900px) { body { padding-bottom: 0; font-size: 16px; } }
img { max-width: 100%; display: block; }
a { color: var(--sky-700); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; }
.en { font-family: var(--font-en); }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: .86em; }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.stack > * + * { margin-top: 14px; }
.hidden { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--sky); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600;
  background: var(--bg); color: var(--fg); box-shadow: 0 6px 16px rgba(var(--sky600-rgb), .28);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1), box-shadow .2s, background .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 22px rgba(var(--sky600-rgb), .34); animation: bounce .5s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; animation: none; }
.btn-yellow { --bg: var(--lemon); --fg: var(--lemon-ink); box-shadow: 0 6px 16px rgba(var(--lemon700-rgb), .35); }
.btn-ghost { --bg: #fff; --fg: var(--sky-700); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--sky); }
.btn-danger { --bg: #fff; --fg: var(--bad); box-shadow: inset 0 0 0 2px #FFD5DA; }
.btn-line { --bg: #06C755; box-shadow: 0 6px 16px rgba(6, 199, 85, .3); }
.btn-sm { padding: 8px 14px; font-size: .9em; }
.btn-block { width: 100%; }
@keyframes bounce { 0%, 100% { transform: translateY(-2px) scale(1.04); } 40% { transform: translateY(-5px) scale(1.06); } 70% { transform: translateY(0) scale(1.02); } }

/* ---------- cards ---------- */
.card { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px; position: relative; }
.card-soft { background: rgba(255, 255, 255, .7); backdrop-filter: blur(10px); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .8em; font-weight: 600; background: var(--soft); color: var(--sky-700); }
.pill-yellow { background: var(--lemon-soft, #FFF6CF); color: var(--lemon-ink); }
.pill-ok { background: #DDF7EA; color: #138A55; }
.pill-warn { background: #FFF0D6; color: #A15C00; }
.pill-bad { background: #FFE3E6; color: #C23345; }
.pill-gray { background: #EEF2F6; color: #5B6B7C; }

/* ---------- announcement + header ---------- */
.announce { background: var(--lemon); color: var(--lemon-ink); text-align: center; font-size: .88em; padding: 6px 12px; font-weight: 500; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(220, 239, 252, .8); }
.header .container { display: flex; align-items: center; gap: 16px; height: 66px; }
.logo { display: flex; align-items: center; height: 44px; }
.logo img { height: 40px; width: auto; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 500; transition: background .2s, color .2s; }
.nav a:hover, .nav a.active { background: var(--soft); color: var(--sky-700); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); border: 0; cursor: pointer; color: var(--sky-700); transition: transform .2s; }
.icon-btn:hover { transform: scale(1.08); }
.icon-btn svg { width: 22px; height: 22px; }
.badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--lemon); color: var(--lemon-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; font-family: var(--font-en); }
.login-link { display: none; }
.menu-btn { display: grid; }
@media (min-width: 980px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
  .login-link { display: inline-flex; }
}

/* drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(31, 59, 87, .3); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: #fff; z-index: 100; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); padding: 22px; display: flex; flex-direction: column; gap: 6px; border-radius: 24px 0 0 24px; }
.drawer a { padding: 12px 14px; border-radius: 14px; color: var(--ink); font-weight: 500; display: flex; gap: 10px; align-items: center; }
.drawer a:hover { background: var(--soft); }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }

/* mobile tab bar */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 4px; border-radius: 12px; position: relative; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.active { color: var(--sky-700); background: var(--soft); }
.tabbar .badge { top: 0; right: calc(50% - 22px); }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ---------- floating LINE + hours ---------- */
.fab-line { position: fixed; right: 16px; bottom: 92px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
@media (min-width: 900px) { .fab-line { bottom: 24px; right: 24px; } }
.fab-line a.fab { width: 60px; height: 60px; border-radius: 50%; background: #06C755; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(6, 199, 85, .4); transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); animation: pulse 2.8s infinite; }
.fab-line a.fab:hover { transform: scale(1.1) rotate(-6deg); }
.fab-line a.fab svg { width: 34px; height: 34px; }
.fab-bubble { background: #fff; border-radius: 18px 18px 4px 18px; box-shadow: var(--shadow); padding: 8px 14px; font-size: .82em; max-width: 230px; display: flex; gap: 8px; align-items: center; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 4px rgba(34, 181, 115, .18); }
.dot.off { background: var(--muted); box-shadow: 0 0 0 4px rgba(126, 147, 168, .18); }
@keyframes pulse { 0%, 100% { box-shadow: 0 10px 24px rgba(6, 199, 85, .4), 0 0 0 0 rgba(6, 199, 85, .35); } 50% { box-shadow: 0 10px 24px rgba(6, 199, 85, .4), 0 0 0 12px rgba(6, 199, 85, 0); } }

/* ---------- decorations ---------- */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.cloud { width: 140px; height: 50px; background: #fff; border-radius: 50px; opacity: .9; filter: drop-shadow(0 8px 14px rgba(var(--sky-rgb), .15)); }
.cloud::before, .cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 64px; height: 64px; top: -30px; left: 22px; }
.cloud::after { width: 46px; height: 46px; top: -18px; left: 72px; }
.star { width: 22px; height: 22px; color: var(--lemon); animation: twinkle 3.2s ease-in-out infinite; }
.heart { width: 18px; height: 18px; color: var(--pink); animation: drift 6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: translateY(0) scale(1) rotate(0); opacity: 1; } 50% { transform: translateY(-12px) scale(1.15) rotate(20deg); opacity: .7; } }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-16px) rotate(8deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }
@keyframes cloudmove { 0% { transform: translateX(0); } 50% { transform: translateX(26px); } 100% { transform: translateX(0); } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 28px 0 56px; }
.hero .container { position: relative; z-index: 1; display: grid; gap: 26px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 56px 0 80px; } .hero .container { grid-template-columns: 1.05fr 1fr; } }
.hero-kicker { display: inline-flex; gap: 8px; align-items: center; background: #fff; padding: 6px 14px 6px 8px; border-radius: 999px; box-shadow: var(--shadow); font-size: .85em; font-weight: 600; color: var(--sky-700); }
.hero-kicker .pill { padding: 2px 10px; }
.hero h1 { font-size: clamp(30px, 6.4vw, 54px); font-weight: 700; margin: 18px 0 14px; letter-spacing: -.01em; }
.hero h1 .hl { background: linear-gradient(transparent 62%, rgba(var(--lemon-rgb), .75) 62%); padding: 0 4px; }
.hero p.lead { font-size: clamp(15px, 2.2vw, 18px); color: var(--ink-2); max-width: 520px; margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 18px; margin-top: 28px; flex-wrap: wrap; }
.hero-trust div { display: flex; gap: 8px; align-items: center; font-size: .88em; color: var(--ink-2); }
.hero-trust svg { width: 22px; height: 22px; }
.hero-visual { position: relative; min-height: 340px; display: grid; place-items: center; order: -1; }
@media (min-width: 900px) { .hero-visual { order: 0; min-height: 460px; } }
.hero-stage { position: absolute; width: 88%; max-width: 440px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff 0%, var(--line) 55%, var(--g-sky-1) 100%); box-shadow: inset 0 -20px 60px rgba(var(--sky-rgb), .35); }
.hero-model { position: relative; z-index: 2; width: min(78%, 380px); border-radius: 32px 32px 200px 200px; overflow: hidden; }
.hero-model img { width: 100%; height: auto; }
.hero-mascot { position: relative; z-index: 3; width: min(62%, 300px); animation: floaty 4.5s ease-in-out infinite; }
.hero-model + .hero-mascot { position: absolute; width: min(34%, 170px); right: 2%; bottom: 4%; }
.hero-chip { position: absolute; z-index: 4; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 10px 14px; display: flex; gap: 10px; align-items: center; font-size: .82em; font-weight: 600; animation: floaty 6s ease-in-out infinite; }
.hero-chip svg { width: 30px; height: 30px; }
.hero-chip.a { left: 0; top: 16%; }
.hero-chip.b { right: 0; top: 52%; animation-delay: -2s; }
@media (max-width: 520px) { .hero-chip { font-size: .72em; padding: 8px 10px; } .hero-chip svg { width: 22px; height: 22px; } }

/* ---------- sections ---------- */
.section { padding: 36px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 56px 0; } }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(22px, 3.6vw, 32px); margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head h2 .ears { width: 30px; }
.section-head p { margin: 4px 0 0; color: var(--muted); }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
.cat-card { background: #fff; border-radius: 14px; padding: 8px 5px; text-align: center; box-shadow: var(--shadow); color: var(--ink); font-weight: 600; font-size: .66em; line-height: 1.25; transition: transform .25s cubic-bezier(.34, 1.56, .64, 1); }
.cat-card:hover { transform: translateY(-3px); }
.cat-card .ico3d, .cat-card .ico3d.lg { margin: 0 auto 5px; width: 36px; height: 36px; border-radius: 11px; }
.cat-card .ico3d svg, .cat-card .ico3d.lg svg { width: 23px; height: 23px; }
@media (max-width: 520px) { .cat-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; } .cat-card { padding: 7px 3px; font-size: .62em; } }

/* 3D icon tile */
.ico3d { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(145deg, #fff, var(--soft)); box-shadow: inset 0 -4px 8px rgba(var(--sky-rgb), .25), 0 6px 14px rgba(var(--sky-rgb), .25); }
.ico3d svg { width: 34px; height: 34px; filter: drop-shadow(0 3px 3px rgba(31, 59, 87, .18)); }
.ico3d.lg { width: 72px; height: 72px; border-radius: 22px; }
.ico3d.lg svg { width: 44px; height: 44px; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.svc { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--line), var(--soft) 60%, #FFF7D6); display: grid; place-items: center; overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-media .ico3d { width: 88px; height: 88px; border-radius: 28px; }
.svc-media .ico3d svg { width: 54px; height: 54px; }
.svc-media .ears-deco { position: absolute; right: 14px; bottom: -6px; width: 60px; opacity: .5; }
.svc-tags { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.svc-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.svc-body h3 { font-size: 1.05em; margin: 0; }
.svc-body h3 a { color: var(--ink); }
.svc-body p { margin: 0; color: var(--ink-2); font-size: .9em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: .8em; color: var(--muted); }
.svc-meta span { display: inline-flex; gap: 4px; align-items: center; }
.svc-meta svg { width: 15px; height: 15px; }
.stock-strip { margin: 10px 0 2px; font-size: .82em; }
.stock-strip .ss-row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.stock-strip .ss-row span { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.stock-strip svg { width: 15px; height: 15px; }
.stock-strip .ss-left b { color: var(--ok); }
.stock-strip .ss-left.low b { color: #E58A00; }
.stock-strip .ss-left.out { color: var(--bad); font-weight: 600; }
.stock-strip .ss-sold b { color: #F0533A; }
.stock-strip .ss-bar { height: 6px; background: var(--line); border-radius: 6px; margin-top: 6px; overflow: hidden; }
.stock-strip .ss-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--lemon-600, #FFC21F), #FF7A45); }
.stock-strip.big { font-size: .95em; background: var(--soft); border-radius: 14px; padding: 10px 14px; margin: 0; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.price b { font-size: 1.35em; color: var(--sky-700); font-family: var(--font-en); font-weight: 800; }
.price s { color: var(--muted); font-size: .88em; font-family: var(--font-en); }
.price .off { font-size: .75em; background: #FFE3E6; color: #C23345; border-radius: 8px; padding: 1px 7px; font-weight: 700; }
.svc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.svc-actions .btn { padding: 11px 10px; font-size: .9em; gap: 6px; }
.svc-more { display: block; text-align: center; font-size: .82em; color: var(--muted); margin-top: 8px; }
.svc-more:hover { color: var(--sky-700); }

/* filters */
.filters { display: grid; gap: 10px; margin-bottom: 22px; }
@media (min-width: 760px) { .filters { grid-template-columns: 1fr auto; align-items: center; } }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; font-weight: 500; font-size: .9em; border: 0; color: var(--ink-2); transition: all .2s; }
.chip.active, .chip:hover { background: var(--sky); color: #fff; box-shadow: none; }
.search { position: relative; }
.search input { padding-left: 42px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; color: var(--muted); }

/* forms */
.input, select.input, textarea.input { width: 100%; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--line); background: #fff; outline: none; transition: border .2s, box-shadow .2s; }
.input:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(var(--sky-rgb), .2); }
textarea.input { min-height: 110px; resize: vertical; }
label.field { display: block; }
label.field > span { display: block; font-size: .88em; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.form-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9em; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--sky-600); margin-top: 2px; flex: none; }

/* why / steps */
.feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature h4 { margin: 2px 0 4px; font-size: 1em; }
.feature p { margin: 0; color: var(--ink-2); font-size: .9em; }
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.step { position: relative; padding-top: 30px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -14px; left: 22px; width: 38px; height: 38px; border-radius: 50%; background: var(--lemon); color: var(--lemon-ink); font-weight: 800; display: grid; place-items: center; font-family: var(--font-en); box-shadow: 0 6px 14px rgba(var(--lemon700-rgb), .35); }

.safe-note { display: flex; gap: 14px; align-items: flex-start; background: linear-gradient(135deg, var(--soft), #FFFBEA); border: 2px dashed var(--g-sky-1); border-radius: var(--r-lg); padding: 18px 20px; }
.safe-note svg { width: 34px; height: 34px; flex: none; }

/* promo banner */
.promo-banner { border-radius: var(--r-lg); background: linear-gradient(120deg, var(--sky) 0%, var(--g-sky-1) 55%, var(--lemon) 140%); color: #fff; padding: 26px; position: relative; overflow: hidden; display: grid; gap: 14px; }
@media (min-width: 760px) { .promo-banner { grid-template-columns: 1fr auto; align-items: center; padding: 34px 40px; } }
.promo-banner h3 { font-size: 1.5em; margin: 0; }
.coupon { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); padding: 16px; position: relative; overflow: hidden; }
.coupon::before, .coupon::after { content: ''; position: absolute; width: 22px; height: 22px; background: var(--soft); border-radius: 50%; left: 92px; }
.coupon::before { top: -11px; } .coupon::after { bottom: -11px; }
.coupon-amt { width: 80px; flex: none; text-align: center; font-weight: 800; color: var(--sky-700); font-family: var(--font-en); font-size: 1.3em; line-height: 1.1; border-right: 2px dashed var(--line); padding-right: 12px; }
.coupon code { background: var(--lemon-soft, #FFF6CF); color: var(--lemon-ink); padding: 3px 10px; border-radius: 8px; font-weight: 800; font-family: var(--font-en); letter-spacing: .05em; }

/* detail */
.detail { display: grid; gap: 24px; }
@media (min-width: 900px) { .detail { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.detail-media { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--line), var(--soft) 60%, #FFF7D6); display: grid; place-items: center; box-shadow: var(--shadow); position: relative; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-media .ico3d { width: 140px; height: 140px; border-radius: 42px; }
.detail-media .ico3d svg { width: 86px; height: 86px; }
.buybox { position: sticky; top: 84px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: .92em; }
.kv dt { color: var(--muted); display: flex; gap: 6px; align-items: center; }
.kv dt svg { width: 18px; height: 18px; }
.kv dd { margin: 0; font-weight: 500; }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.list-check li { display: flex; gap: 10px; align-items: flex-start; }
.list-check li::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%231B86C7' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.list-warn li::before { background: #FFF3E0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v6M12 17h.01' stroke='%23C26A00' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.qty { display: inline-flex; align-items: center; background: var(--soft); border-radius: 999px; padding: 4px; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; font-weight: 800; color: var(--sky-700); box-shadow: 0 2px 6px rgba(var(--sky-rgb), .2); }
.qty span { min-width: 36px; text-align: center; font-weight: 700; font-family: var(--font-en); }

/* cart */
.cart-layout { display: grid; gap: 20px; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item .ico3d { width: 64px; height: 64px; }
.cart-thumb { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-row.total { font-size: 1.2em; font-weight: 700; border-top: 2px dashed var(--line); margin-top: 8px; padding-top: 14px; }
.sum-row.total b { color: var(--sky-700); font-family: var(--font-en); }

/* payment */
.pay-methods { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pay-method { border: 2px solid var(--line); border-radius: var(--r-md); padding: 14px; cursor: pointer; display: flex; gap: 10px; align-items: center; background: #fff; transition: all .2s; font-weight: 600; font-size: .92em; }
.pay-method.active { border-color: var(--sky); background: var(--soft); box-shadow: 0 0 0 4px rgba(var(--sky-rgb), .15); }
.pay-method svg { width: 28px; height: 28px; flex: none; }
.qr-box { background: #fff; border-radius: var(--r-lg); padding: 18px; text-align: center; border: 2px solid var(--line); max-width: 320px; margin: 0 auto; }
.qr-box .pp-head { background: #0E3D69; color: #fff; border-radius: 12px; padding: 8px; font-weight: 700; margin-bottom: 12px; font-family: var(--font-en); letter-spacing: .04em; }
.qr-box img { width: 100%; max-width: 240px; margin: 0 auto; }
.dropzone { border: 2px dashed var(--g-sky-1); border-radius: var(--r-md); padding: 22px; text-align: center; background: var(--bg2); cursor: pointer; transition: background .2s; position: relative; }
.dropzone:hover { background: var(--soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone img { max-height: 220px; margin: 0 auto; border-radius: 12px; }
.status-banner { display: flex; gap: 14px; align-items: center; border-radius: var(--r-md); padding: 16px 18px; }
.status-banner svg { width: 40px; height: 40px; flex: none; }
.status-banner.wait { background: #FFF8E1; color: #7A5A00; }
.status-banner.ok { background: #E3F9EE; color: #126B43; }
.status-banner.info { background: var(--soft); color: var(--sky-700); }
.status-banner.bad { background: #FFECEE; color: #A62B3B; }

/* timeline */
.timeline { display: flex; gap: 0; margin: 10px 0 4px; }
.timeline .t { flex: 1; text-align: center; font-size: .74em; color: var(--muted); position: relative; padding-top: 30px; }
.timeline .t::before { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--line); z-index: 1; }
.timeline .t::after { content: ''; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.timeline .t:first-child::after { display: none; }
.timeline .t.done { color: var(--sky-700); font-weight: 600; }
.timeline .t.done::before { background: var(--sky); border-color: var(--sky); }
.timeline .t.done::after { background: var(--sky); }

/* account */
.account { display: grid; gap: 20px; }
@media (min-width: 900px) { .account { grid-template-columns: 260px 1fr; align-items: start; } }
.side-menu { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.side-menu::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .side-menu { flex-direction: column; position: sticky; top: 84px; } }
.side-menu a { flex: none; padding: 10px 16px; border-radius: 14px; color: var(--ink-2); font-weight: 500; display: flex; gap: 10px; align-items: center; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
@media (min-width: 900px) { .side-menu a { box-shadow: none; background: transparent; } }
.side-menu a.active { background: var(--sky); color: #fff; box-shadow: none; }
.side-menu svg { width: 20px; height: 20px; }
.profile-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.order-card { border: 2px solid var(--line); border-radius: var(--r-md); padding: 16px; display: grid; gap: 8px; transition: border-color .2s; }
.order-card:hover { border-color: var(--sky); }
.notif { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.notif.unread .dot { background: var(--lemon); box-shadow: 0 0 0 4px rgba(var(--lemon-rgb), .3); }

/* table */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .9em; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* chat */
.chat { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; padding: 4px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: .92em; white-space: pre-wrap; }
.msg.me { background: var(--sky); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.msg.staff { background: var(--soft); border-bottom-left-radius: 4px; }
.msg time { display: block; font-size: .72em; opacity: .7; margin-top: 4px; }

/* auth */
.auth-wrap { max-width: 440px; margin: 20px auto; }
.auth-wrap .bunny { width: 120px; margin: -70px auto 6px; animation: floaty 4s ease-in-out infinite; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85em; margin: 6px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* prose (terms) */
.prose h2 { font-size: 1.25em; margin-top: 1.4em; color: var(--sky-700); }
.prose p, .prose li { color: var(--ink-2); }

/* footer */
.footer { margin-top: 40px; background: linear-gradient(180deg, transparent, var(--soft)); padding: 40px 0 30px; position: relative; overflow: hidden; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h4 { font-size: .95em; color: var(--sky-700); }
.footer a { display: block; color: var(--ink-2); padding: 3px 0; font-size: .92em; }
.copyright { text-align: center; color: var(--muted); font-size: .82em; margin-top: 30px; }

/* toast / modal */
.toasts { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 12px 16px; display: flex; gap: 10px; align-items: center; animation: toastIn .35s cubic-bezier(.34, 1.56, .64, 1); font-weight: 500; font-size: .92em; border-left: 5px solid var(--sky); }
.toast.err { border-left-color: var(--bad); }
.toast.ok { border-left-color: var(--ok); }
@keyframes toastIn { from { transform: translateY(-16px) scale(.95); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; background: rgba(31, 59, 87, .35); z-index: 150; display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.modal { background: #fff; border-radius: var(--r-lg); padding: 24px; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: toastIn .3s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes fade { from { opacity: 0; } }

/* loading / empty */
.skeleton { background: linear-gradient(90deg, var(--soft) 25%, var(--bg2) 50%, var(--soft) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--r-lg); min-height: 280px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty img { width: 120px; margin: 0 auto 12px; opacity: .9; animation: floaty 4s ease-in-out infinite; }
.page-title { padding: 26px 0 10px; }
.page-title h1 { font-size: clamp(24px, 4vw, 34px); margin: 0; }
.breadcrumb { font-size: .85em; color: var(--muted); margin-bottom: 6px; }
.breadcrumb a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* mobile refinements */
@media (max-width: 899px) {
  .fab-bubble { display: none; }
  .hero-visual { min-height: 270px; }
  .hero-stage { width: 72%; }
  .hero-mascot { width: min(48%, 220px); }
}

/* sold out */
.svc-media, .detail-media { position: relative; }
.soldout-mask { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.55); backdrop-filter: grayscale(1); -webkit-backdrop-filter: grayscale(1); border-radius: inherit; pointer-events: none; }
.soldout-mask span { background: #E5484D; color: #fff; font-weight: 800; padding: 8px 22px; border-radius: 999px; transform: rotate(-8deg); box-shadow: 0 8px 20px rgba(229,72,77,.35); font-size: 1.05em; letter-spacing: .5px; }
.svc .btn[disabled] { opacity: .55; cursor: not-allowed; }

/* editable texts */
.txt-bar { position: fixed; left: 16px; bottom: 16px; z-index: 90; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; max-width: calc(100vw - 110px); }
body.txt-edit .txt-bar { background: #1F3B57; color: #fff; padding: 10px 14px; border-radius: 18px; box-shadow: 0 12px 30px rgba(31,59,87,.35); }
body.txt-edit .txt-bar .small { opacity: .8; }
body.txt-edit #app :is(h1,h2,h3,h4,p,span,a,button,label,li,dt,dd,b,small,div):hover { outline: 2px dashed var(--lemon-600); outline-offset: 2px; cursor: text; }
body.txt-edit #app :is(div):hover:has(div:hover) { outline: none; }
body.txt-edit header :is(a,span,button):hover, body.txt-edit footer :is(a,span,p,h4,li):hover { outline: 2px dashed var(--lemon-600); outline-offset: 2px; cursor: text; }
.txt-orig { background: var(--soft); border-radius: 12px; padding: 10px 12px; white-space: pre-wrap; word-break: break-word; margin-top: 4px; }
@media (max-width: 860px) { .txt-bar { bottom: calc(78px + env(safe-area-inset-bottom)); left: 10px; } }

/* big cute 3D "ติดต่อแอดมิน" button */
.cta-3d { --top: var(--lemon-300); --mid: var(--lemon); --edge: var(--lemon-700); position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 14px 22px 14px 14px; margin-top: 14px;
  border-radius: 999px; color: var(--lemon-ink); text-decoration: none; isolation: isolate;
  background: radial-gradient(120% 90% at 30% 15%, #FFF6CF 0%, var(--top) 35%, var(--mid) 75%);
  box-shadow: 0 9px 0 var(--edge), 0 18px 30px rgba(var(--lemon700-rgb), .35), inset 0 -6px 12px rgba(var(--lemon700-rgb), .25), inset 0 4px 8px rgba(255, 255, 255, .85);
  transition: transform .15s ease, box-shadow .15s ease; animation: cta-float 3.2s ease-in-out infinite; }
.cta-3d::after { content: ''; position: absolute; left: 70px; right: 26px; top: 7px; height: 12px; border-radius: 999px; background: linear-gradient(rgba(255,255,255,.9), rgba(255,255,255,0)); z-index: -1; }
.cta-3d:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 0 var(--edge), 0 24px 36px rgba(var(--lemon700-rgb), .38), inset 0 -6px 12px rgba(var(--lemon700-rgb), .25), inset 0 4px 8px rgba(255, 255, 255, .85); animation-play-state: paused; }
.cta-3d:active { transform: translateY(7px); box-shadow: 0 2px 0 var(--edge), 0 6px 12px rgba(var(--lemon700-rgb), .3), inset 0 -4px 10px rgba(var(--lemon700-rgb), .25), inset 0 4px 8px rgba(255, 255, 255, .85); }
.cta-ico { width: 64px; height: 64px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, var(--soft) 60%, var(--g-white-2) 100%);
  box-shadow: 0 5px 0 var(--lemon-700), 0 8px 16px rgba(var(--lemon700-rgb), .25), inset 0 -4px 8px rgba(var(--sky-rgb), .25); animation: cta-wiggle 2.6s ease-in-out infinite; }
.cta-ico svg { width: 44px; height: 44px; filter: drop-shadow(0 3px 2px rgba(0, 80, 40, .2)); }
.cta-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.cta-txt b { font-size: 1.32em; font-weight: 800; letter-spacing: .2px; text-shadow: 0 2px 0 rgba(255, 255, 255, .7); }
.cta-txt small { font-size: .82em; font-weight: 600; color: var(--lemon-ink); opacity: .85; margin-top: 3px; }
.cta-go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-left: 6px; font-size: 26px; font-weight: 800; line-height: 1; color: #fff;
  background: linear-gradient(var(--sky), var(--sky-600)); box-shadow: 0 4px 0 var(--sky-700), inset 0 2px 3px rgba(255, 255, 255, .6); padding-bottom: 3px; }
.cta-ears { position: absolute; left: 36px; top: -24px; width: 44px; z-index: -2; transform: rotate(-8deg); transition: transform .2s; }
.cta-ears svg { width: 44px; height: 34px; display: block; }
.cta-3d:hover .cta-ears { transform: rotate(-2deg) translateY(-3px); }
.cta-spark { position: absolute; color: var(--lemon-600); font-size: 18px; text-shadow: 0 2px 0 #fff; animation: cta-twinkle 1.8s ease-in-out infinite; pointer-events: none; }
.cta-spark.s1 { right: -8px; top: -10px; }
.cta-spark.s2 { right: 34px; bottom: -14px; font-size: 13px; animation-delay: .9s; color: var(--sky); }
@keyframes cta-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes cta-wiggle { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-10deg) scale(1.06); } 86% { transform: rotate(8deg) scale(1.06); } 94% { transform: rotate(-4deg); } }
@keyframes cta-twinkle { 0%, 100% { transform: scale(.6); opacity: .4; } 50% { transform: scale(1.15); opacity: 1; } }
@media (max-width: 520px) { .cta-3d { width: 100%; justify-content: flex-start; } .cta-go { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { .cta-3d, .cta-ico, .cta-spark { animation: none; } }

/* bunny mascot options */
.logo .logo-bunny { height: 44px; width: auto; margin-right: 6px; filter: drop-shadow(0 3px 4px rgba(31, 59, 87, .15)); }
.logo .logo-text { font-family: 'Nunito', sans-serif; font-weight: 900; font-size: 1.35em; color: #1F3B57; letter-spacing: -.01em; white-space: nowrap; }
.cta-bunny .cta-ico { position: relative; overflow: visible; }
.cta-bunny .cta-ico img { position: absolute; left: 50%; bottom: 2px; width: 62px; transform: translateX(-50%); filter: drop-shadow(0 4px 3px rgba(31, 59, 87, .2)); transform-origin: 50% 100%; }
.cta-bunny { padding-left: 16px; margin-top: 30px; }
.cta-bunny .cta-ico { animation: none; }
.cta-bunny .cta-ico img { animation: bunny-hop 2.6s ease-in-out infinite; }
@keyframes bunny-hop { 0%, 70%, 100% { transform: translateX(-50%) translateY(0) rotate(0); } 78% { transform: translateX(-50%) translateY(-8px) rotate(-6deg); } 86% { transform: translateX(-50%) translateY(0) rotate(4deg); } 92% { transform: translateX(-50%) translateY(-3px) rotate(0); } }
.fab-line a.fab.fab-bunny { width: 68px; height: 68px; background: radial-gradient(circle at 35% 30%, #fff, var(--soft) 70%); border: 3px solid #fff; overflow: visible; position: relative; box-shadow: 0 10px 24px rgba(var(--sky-rgb), .45); }
.fab-line a.fab.fab-bunny img { position: absolute; left: 50%; bottom: 2px; width: 62px; transform: translateX(-50%); }
.fab-line a.fab.fab-bunny .fab-line-badge { position: absolute; right: -6px; bottom: -6px; width: 30px; height: 30px; border-radius: 50%; background: #06C755; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(6, 199, 85, .4); }
.fab-line a.fab.fab-bunny .fab-line-badge svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) { .cta-bunny .cta-ico img { animation: none; } }

/* uploaded hero picture used instead of the bunny */
.hero-model.solo { width: min(80%, 400px); border-radius: 0; overflow: visible; animation: floaty 4.5s ease-in-out infinite; }
.hero-model.solo img { max-height: 440px; width: auto; max-width: 100%; margin: 0 auto; display: block; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(var(--sky600-rgb), .22)); }
@media (max-width: 899px) { .hero-model.solo img { max-height: 300px; } }
@media (prefers-reduced-motion: reduce) { .hero-model.solo { animation: none; } }
