/* ==========================================================================
   NewCream — design tokens
   ========================================================================== */
:root {
  --bg: #ffffff;
  --bg-soft: #f2f7fd;
  --surface: #ffffff;
  --surface-2: #f7fafe;
  --border: #dbe5f1;
  --border-strong: #c3d3e6;
  --text: #0b1f3a;
  --text-2: #475a74;
  --text-3: #7184a0;
  --primary: #1a6be0;
  --primary-hover: #1459bf;
  --primary-soft: #e8f1fd;
  --on-primary: #ffffff;
  --navy: #071a33;
  --success: #15803d;
  --success-soft: #e7f6ec;
  --danger: #c62828;
  --danger-soft: #fdecec;
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06);
  --shadow-md: 0 6px 20px -8px rgba(11, 31, 58, .16);
  --shadow-lg: 0 24px 48px -16px rgba(11, 31, 58, .28);
  --skeleton: #e9f0f8;

  --font: 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* spacing scale 4/8/12/16/24/32/48/64/96 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #08111f;
  --bg-soft: #0d192b;
  --surface: #0f1c30;
  --surface-2: #132238;
  --border: #213350;
  --border-strong: #2d4466;
  --text: #e8eef8;
  --text-2: #a9b8cd;
  --text-3: #7e90aa;
  --primary: #5c9cf5;
  --primary-hover: #7cb0f7;
  --primary-soft: #132a4a;
  --on-primary: #06121f;
  --success: #4ade80;
  --success-soft: #0f2c1c;
  --danger: #f87171;
  --danger-soft: #3a1414;
  --shadow-md: 0 6px 20px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, .6);
  --skeleton: #16263d;
  color-scheme: dark;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--primary); color: var(--on-primary); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: var(--s3); }
.h1 { font-size: clamp(36px, 6vw, 68px); }
.h2 { font-size: clamp(28px, 4vw, 44px); }
.h3 { font-size: clamp(20px, 2.2vw, 24px); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); margin-top: var(--s4); }
.muted { color: var(--text-2); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { border-color: var(--border-strong); background: var(--surface); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: #0b1f3a; }
.btn-light:hover { background: #e8f1fd; }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn .spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; color: inherit; position: relative;
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: var(--primary-soft); color: var(--primary); }
.icon-btn[hidden], [hidden] { display: none !important; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, border-color .3s, color .3s;
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: var(--s5); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-word span { color: var(--primary); }
.nav { margin: 0 auto; }
.nav ul { display: flex; gap: var(--s2); }
.nav a { display: block; padding: 8px 16px; border-radius: 999px; font-weight: 500; color: var(--text-2); transition: color .2s, background .2s; }
.nav a:hover { color: var(--primary); }
.nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav + .header-actions { margin-left: 0; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--primary); color: var(--on-primary);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.cart-count[hidden] { display: none; }
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-toggle { display: none; }

/* transparent header over the hero */
.site-header.is-over-hero:not(.is-scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff; }
.site-header.is-over-hero:not(.is-scrolled) .nav a { color: rgba(255,255,255,.85); }
.site-header.is-over-hero:not(.is-scrolled) .nav a:hover,
.site-header.is-over-hero:not(.is-scrolled) .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.14); }
.site-header.is-over-hero:not(.is-scrolled) .brand-word span { color: #9cc4ff; }
.site-header.is-over-hero:not(.is-scrolled) .icon-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.page-home .site-header { position: fixed; left: 0; right: 0; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
    padding: var(--s4) var(--gutter) var(--s5);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a { padding: 14px 16px; border-radius: var(--radius); font-size: 17px; text-align: center; }
  .site-header.is-over-hero:not(.is-scrolled) .nav a { color: var(--text-2); }
  .site-header.is-over-hero:not(.is-scrolled) .nav a[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
  .header-actions { margin-left: auto !important; }
}

/* ==========================================================================
   Hero (home)
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; color: #fff; overflow: hidden; isolation: isolate; background: var(--navy); }
.hero-media, .hero-media video, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media { z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,26,51,.72) 0%, rgba(7,26,51,.55) 45%, rgba(7,26,51,.85) 100%); }
.hero-inner { text-align: center; padding: calc(var(--header-h) + 32px) var(--gutter) 120px; max-width: 920px; }
.hero .eyebrow { color: #9cc4ff; }
.hero h1 { font-size: clamp(40px, 7.4vw, 88px); font-weight: 700; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: #9cc4ff; }
.hero p { margin: var(--s5) auto 0; max-width: 620px; font-size: clamp(17px, 1.8vw, 20px); color: rgba(255,255,255,.88); }
.hero-cta { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; }
.hero-foot { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; justify-content: center; align-items: center; gap: var(--s5); padding: 0 var(--gutter); font-size: 14px; color: rgba(255,255,255,.8); flex-wrap: wrap; }
.hero-foot span { display: inline-flex; gap: 8px; align-items: center; }
.video-toggle { position: absolute; right: var(--gutter); bottom: 22px; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.video-toggle:hover { background: rgba(255,255,255,.14) !important; color: #fff !important; }
@media (max-width: 640px) {
  .hero-foot { display: none; }
  .hero-cta .btn { width: 100%; max-width: 320px; }
}

/* Page banner (inner pages) */
.page-banner { position: relative; color: #fff; isolation: isolate; overflow: hidden; background: var(--navy); }
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-banner::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,26,51,.62), rgba(7,26,51,.84)); }
.page-banner .container { padding-top: clamp(80px, 12vw, 140px); padding-bottom: clamp(64px, 9vw, 112px); text-align: center; }
.page-banner .eyebrow { color: #9cc4ff; }
.page-banner p { margin: var(--s4) auto 0; max-width: 600px; color: rgba(255,255,255,.88); font-size: clamp(16px, 1.6vw, 19px); }
.crumbs { display: flex; justify-content: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.72); margin-bottom: var(--s4); }
.crumbs a:hover { color: #fff; }

/* ==========================================================================
   Feature strip
   ========================================================================== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); }
.feature { text-align: center; padding: var(--s5) var(--s4); }
.feature-icon { width: 56px; height: 56px; margin: 0 auto var(--s4); border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.feature h3 { font-size: 18px; }
.feature p { margin-top: 6px; color: var(--text-2); font-size: 15px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; gap: 0; } }

/* ==========================================================================
   Product cards
   ========================================================================== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.product-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .25s, transform .25s var(--ease), border-color .25s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.product-media { position: relative; aspect-ratio: 4 / 5; background: #fff; overflow: hidden; cursor: zoom-in; border: 0; padding: 0; width: 100%; display: block; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.product-card:hover .product-media img { transform: scale(1.04); }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #0b1f3a; box-shadow: var(--shadow-sm); opacity: 0; transition: opacity .2s; }
.product-media:hover .zoom-hint, .product-media:focus-visible .zoom-hint { opacity: 1; }
@media (hover: none) { .zoom-hint { opacity: 1; } }
.badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.95); color: #0b1f3a; box-shadow: var(--shadow-sm); }
.badge--bestseller { background: #1a6be0; color: #fff; }
.badge--new { background: #071a33; color: #fff; }
.product-body { display: flex; flex-direction: column; gap: 6px; padding: var(--s4) var(--s4) var(--s5); flex: 1; }
.product-cat { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.product-name { font-size: 18px; font-weight: 700; line-height: 1.3; }
.product-name small { display: block; font-size: 14px; font-weight: 500; color: var(--text-3); margin-top: 2px; }
.product-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.size-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-top: var(--s3); background: var(--bg-soft); border-radius: 999px; border: 1px solid var(--border); }
.size-toggle button { border: 0; background: transparent; border-radius: 999px; min-height: 36px; font-size: 13px; font-weight: 600; color: var(--text-2); line-height: 1.2; }
.size-toggle button[aria-pressed="true"] { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: auto; padding-top: var(--s4); }
.price { font-size: 22px; font-weight: 700; }
.price small { font-size: 14px; font-weight: 500; color: var(--text-3); margin-left: 2px; }
.add-btn.is-added { background: var(--success); }
@media (max-width: 560px) {
  .product-body { text-align: center; }
  .badges { left: 50%; transform: translateX(-50%); justify-content: center; }
}

/* skeleton / image states */
.img-wrap { background: var(--skeleton); }
.img-wrap.is-loading::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; z-index: 1; }
.img-wrap.is-loading img { opacity: 0; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.img-fallback { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; color: var(--text-3); font-size: 13px; background: var(--bg-soft); }

/* ==========================================================================
   Category tiles (home)
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.cat-tile { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; color: #fff; isolation: isolate; display: flex; align-items: flex-end; justify-content: center; text-align: center; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.cat-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,26,51,0) 35%, rgba(7,26,51,.88) 100%); }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile-body { padding: var(--s6) var(--s5); }
.cat-tile h3 { font-size: 28px; }
.cat-tile p { color: rgba(255,255,255,.85); margin-top: 4px; }
.cat-tile .link { margin-top: var(--s4); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
@media (max-width: 860px) { .cat-grid { grid-template-columns: 1fr; } .cat-tile { aspect-ratio: 16 / 10; } }

/* ==========================================================================
   Split (image + text)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev .split-media { order: 2; }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.4; }
.split-media img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.split-text .lead { margin-top: var(--s4); }
.steps { margin-top: var(--s6); display: grid; gap: var(--s5); }
.step { display: grid; grid-template-columns: 48px 1fr; gap: var(--s4); align-items: start; }
.step-num { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 18px; }
.step h3 { font-size: 18px; }
.step p { color: var(--text-2); font-size: 15px; margin-top: 2px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--rev .split-media { order: 0; }
  .split-text { text-align: center; }
  .step { text-align: left; max-width: 520px; margin: 0 auto; width: 100%; }
}

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); text-align: center; }
.stat strong { display: block; font-size: clamp(36px, 5vw, 56px); font-weight: 700; color: var(--primary); line-height: 1.1; letter-spacing: -.02em; }
.stat span { color: var(--text-2); font-size: 15px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: var(--s6); } }

/* ==========================================================================
   Video facade
   ========================================================================== */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); max-width: 1040px; margin: 0 auto; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade { position: absolute; inset: 0; border: 0; padding: 0; width: 100%; color: #fff; isolation: isolate; display: grid; place-items: center; background: #000; }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .7; transition: opacity .3s, transform .6s var(--ease); }
.video-facade:hover img { opacity: .55; transform: scale(1.02); }
.play-circle { width: clamp(64px, 9vw, 88px); height: clamp(64px, 9vw, 88px); border-radius: 999px; display: grid; place-items: center; background: #fff; color: #1a6be0; box-shadow: 0 10px 40px rgba(0,0,0,.35); transition: transform .2s var(--ease); }
.play-circle .icon { width: 30px; height: 30px; fill: currentColor; margin-left: 4px; }
.video-facade:hover .play-circle { transform: scale(1.07); }
.video-caption { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; font-weight: 600; font-size: 15px; text-shadow: 0 1px 8px rgba(0,0,0,.5); }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; grid-auto-flow: dense; gap: clamp(10px, 1.6vw, 18px); }
.gallery button { position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--skeleton); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } .gallery .g-tall:not(.g-wide) { grid-row: span 2; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; grid-auto-rows: 260px; } .gallery .g-wide, .gallery .g-tall { grid-column: auto; grid-row: auto; } }

/* ==========================================================================
   Service cards
   ========================================================================== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.service { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; text-align: center; }
.service-media { aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service:hover .service-media img { transform: scale(1.04); }
.service-body { padding: var(--s5); }
.service-body p { color: var(--text-2); font-size: 15px; margin-top: 6px; }
@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { position: relative; border-radius: 24px; overflow: hidden; color: #fff; isolation: isolate; text-align: center; padding: clamp(48px, 8vw, 96px) var(--gutter); background: var(--navy); }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(7,26,51,.78); }
.cta-band p { max-width: 560px; margin: var(--s4) auto 0; color: rgba(255,255,255,.88); }
.cta-band .hero-cta { margin-top: var(--s5); }

/* ==========================================================================
   About: timeline / values
   ========================================================================== */
.timeline { position: relative; max-width: 820px; margin: 0 auto; display: grid; gap: var(--s6); }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--border); transform: translateX(-1px); }
.t-item { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); position: relative; }
.t-item::before { content: ''; position: absolute; left: 50%; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 6px var(--primary-soft); transform: translateX(-50%); }
.t-year { text-align: right; font-size: 28px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.t-item:nth-child(even) .t-year { order: 2; text-align: left; }
.t-item:nth-child(even) .t-body { text-align: right; }
.t-body h3 { font-size: 19px; }
.t-body p { color: var(--text-2); margin-top: 4px; font-size: 15px; }
@media (max-width: 700px) {
  .timeline::before { left: 7px; }
  .t-item { grid-template-columns: 1fr; gap: 4px; padding-left: 36px; }
  .t-item::before { left: 7px; }
  .t-year, .t-item:nth-child(even) .t-year { order: 0; text-align: left; }
  .t-item:nth-child(even) .t-body { text-align: left; }
}

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.value { padding: var(--s6) var(--s5); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); text-align: center; }
.value p { color: var(--text-2); font-size: 15px; margin-top: 8px; }
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; font-size: clamp(22px, 3vw, 32px); font-weight: 600; line-height: 1.5; letter-spacing: -.01em; }
.quote cite { display: block; margin-top: var(--s5); font-style: normal; color: var(--text-2); }

/* ==========================================================================
   Menu page toolbar
   ========================================================================== */
.toolbar { position: sticky; top: var(--header-h); z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.toolbar .container { display: flex; align-items: center; gap: var(--s4); padding-top: var(--s3); padding-bottom: var(--s3); flex-wrap: wrap; }
.chips { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip .n { font-weight: 500; opacity: .75; }
.toolbar-right { margin-left: auto; display: flex; gap: var(--s2); }
.field-icon { position: relative; }
.field-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.field-icon input { padding-left: 42px; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237184a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.toolbar .input, .toolbar .select { min-height: 40px; border-radius: 999px; }
.toolbar .field-icon { width: 240px; }
.result-meta { margin-bottom: var(--s5); color: var(--text-2); font-size: 15px; text-align: center; }
@media (max-width: 760px) {
  .toolbar .container { flex-direction: column; align-items: stretch; gap: var(--s3); }
  .chips { justify-content: flex-start; }
  .toolbar-right { margin-left: 0; }
  .toolbar .field-icon { flex: 1; width: auto; }
}

.empty-state { text-align: center; padding: var(--s8) var(--s4); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }
.empty-state .feature-icon { margin-bottom: var(--s4); }
.empty-state p { color: var(--text-2); margin: 6px 0 var(--s5); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.info-list { display: grid; gap: var(--s3); }
.info-card { display: grid; grid-template-columns: 48px 1fr; gap: var(--s4); align-items: center; padding: var(--s4) var(--s5); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .2s; }
a.info-card:hover { border-color: var(--primary); }
.info-card .feature-icon { margin: 0; width: 48px; height: 48px; border-radius: 14px; }
.info-card strong { display: block; font-size: 15px; }
.info-card span { color: var(--text-2); font-size: 15px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(20px, 3.4vw, 40px); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field .req { color: var(--danger); }
.field .hint { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.field .error-msg { display: none; font-size: 13px; color: var(--danger); margin-top: 6px; align-items: center; gap: 6px; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field.has-error .error-msg { display: flex; }
.form-alert { display: none; align-items: flex-start; gap: 10px; padding: var(--s4); border-radius: var(--radius); font-size: 15px; margin-bottom: var(--s4); }
.form-alert.is-visible { display: flex; }
.form-alert--success { background: var(--success-soft); color: var(--success); }
.form-alert--error { background: var(--danger-soft); color: var(--danger); }
.map { margin-top: var(--s3); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid var(--border); background: var(--skeleton); }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .info-card { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: var(--s2); }
  .card > .h3, .card > .muted { text-align: center; }
}

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: var(--s3); }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.faq summary { list-style: none; cursor: pointer; padding: var(--s4) var(--s5); font-weight: 600; display: flex; justify-content: space-between; gap: var(--s4); align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .25s var(--ease); color: var(--text-3); }
.faq details[open] summary .icon { transform: rotate(180deg); color: var(--primary); }
.faq details p { padding: 0 var(--s5) var(--s5); color: var(--text-2); }

.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); font-size: 14px; font-weight: 600; transition: border-color .2s, background .2s; height: 100%; }
.choice span small { font-weight: 400; color: var(--text-3); font-size: 13px; }
.choice input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.choice input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); padding: var(--s8) 0 var(--s5); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s6); }
.site-footer .brand { color: #fff; }
.site-footer .brand-word span { color: #9cc4ff; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: var(--s4); }
.site-footer li + li { margin-top: 8px; }
.site-footer a:hover { color: #fff; }
.footer-about p { margin-top: var(--s4); font-size: 15px; max-width: 320px; }
.socials { display: flex; gap: 8px; margin-top: var(--s4); }
.socials a { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); }
.socials a:hover { background: rgba(255,255,255,.1); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: 4px; }
.footer-bottom { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.55); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-about p { margin-left: auto; margin-right: auto; }
  .socials, .footer-contact li { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ==========================================================================
   Cart drawer
   ========================================================================== */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(7,26,51,.5); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(440px, 100%);
  background: var(--bg); box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--border); min-height: var(--header-h); }
.drawer-head h2 { font-size: 20px; margin-right: auto; }
.drawer-body { flex: 1; overflow-y: auto; padding: var(--s4) var(--s5); }
.drawer-foot { border-top: 1px solid var(--border); padding: var(--s4) var(--s5) calc(var(--s4) + env(safe-area-inset-bottom)); background: var(--surface-2); }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-line img { width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--border); }
.cart-line h3 { font-size: 15px; line-height: 1.35; }
.cart-line .meta { font-size: 13px; color: var(--text-3); }
.cart-line .line-price { font-weight: 700; text-align: right; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 999px; margin-top: 6px; }
.qty button { width: 32px; height: 32px; border: 0; background: transparent; display: grid; place-items: center; border-radius: 999px; }
.qty button:hover { color: var(--primary); }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font-weight: 600; font-size: 14px; }
.remove-btn { border: 0; background: transparent; color: var(--text-3); padding: 6px; margin-top: 6px; border-radius: 6px; display: inline-grid; place-items: center; }
.remove-btn:hover { color: var(--danger); }
.sum-row { display: flex; justify-content: space-between; font-size: 15px; color: var(--text-2); padding: 3px 0; }
.sum-row.total { font-size: 18px; font-weight: 700; color: var(--text); padding-top: var(--s2); }
.ship-note { font-size: 13px; color: var(--primary); background: var(--primary-soft); padding: 8px 12px; border-radius: var(--radius-sm); margin-bottom: var(--s3); text-align: center; }
.drawer-foot .btn { margin-top: var(--s3); }
.drawer-empty { text-align: center; padding: var(--s8) var(--s4); }
.drawer-empty p { color: var(--text-2); margin: 6px 0 var(--s5); }
.checkout-form { display: grid; gap: var(--s4); }
.order-done { text-align: center; padding: var(--s6) 0; }
.order-done .feature-icon { background: var(--success-soft); color: var(--success); width: 72px; height: 72px; border-radius: 999px; }
.order-done .order-no { display: inline-block; margin: var(--s3) 0; padding: 6px 14px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 700; letter-spacing: .04em; }
.order-summary { text-align: left; margin-top: var(--s5); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s4); font-size: 14px; }
.order-summary li { display: flex; justify-content: space-between; gap: var(--s3); padding: 4px 0; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; gap: var(--s3); padding: 12px 12px 12px 16px; border-radius: var(--radius); background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); font-size: 15px; animation: toast-in .3s var(--ease); }
.toast .icon { color: #86efac; }
.toast span { flex: 1; }
.toast button { border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; }
.toast.is-leaving { animation: toast-out .25s forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(4, 12, 24, .97); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; color: #fff; touch-action: pan-y; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.lb-count { font-size: 14px; color: rgba(255,255,255,.7); padding-left: 8px; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 72px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; transition: opacity .2s; }
.lb-stage img.is-loading { opacity: 0; }
.lb-caption { text-align: center; padding: 14px 16px 22px; font-size: 15px; color: rgba(255,255,255,.85); min-height: 56px; }
.lb-btn { width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.2); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-btn[hidden] { display: none; }
@media (max-width: 640px) {
  .lb-stage { padding: 0 8px; }
  .lb-prev, .lb-next { top: auto; bottom: -64px; transform: none; }
  .lb-prev { left: 16px; } .lb-next { right: 16px; }
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Loading skeletons (menu data comes from Supabase)
   ========================================================================== */
.product-card.is-skeleton { pointer-events: none; }
.product-card.is-skeleton:hover { transform: none; box-shadow: none; border-color: var(--border); }
.product-card.is-skeleton .product-media { cursor: default; }
.product-card.is-skeleton .product-body { gap: 10px; }
.sk-line { display: block; height: 12px; border-radius: 6px; background: var(--skeleton); width: 100%; }
.sk-line.w40 { width: 40%; } .sk-line.w55 { width: 55%; } .sk-line.w70 { width: 70%; height: 18px; }
@media (max-width: 560px) { .sk-line { margin: 0 auto; } }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.spinner-lg { width: 32px; height: 32px; border-width: 3px; color: var(--primary); margin-bottom: 12px; }
