@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@400;450;500;600;700&family=Manrope:wght@400;500;600;650;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@3.31.0/dist/tabler-icons.min.css');

/* Celesta Living · Ozariam storefront · brief 018
   Page structure, components and both themes live here. No ERP dependencies. */
:root {
  color-scheme: light;
  --bg: #fbfdff;
  --surface: #fff;
  --surface-alt: #f5f9ff;
  --surface-soft: #edf5ff;
  --text: #0b2050;
  --heading: #071c50;
  --muted: #60728e;
  --subtle: #8091a8;
  --muted-on-soft: #586c88;
  --primary: #0766f5;
  --bright: #24b3ff;
  --line: #e0eaf6;
  --line-strong: #c5dafa;
  --radius: 16px;
  --font-body: 'IBM Plex Sans Thai', sans-serif;
  --font-number: 'Manrope', 'IBM Plex Sans Thai', sans-serif;
  --on-primary: #fff;
  --primary-ink: #0759d7;
  --success: #196442;
  --success-bg: #edf8f1;
  --warning: #885006;
  --warning-bg: #fff5e5;
  --error: #af3547;
  --error-bg: #fff0f2;
  --backdrop: rgb(7 28 62 / 35%);
  --shadow: 0 12px 36px rgb(11 54 111 / 7%);
  --shadow-blue: 0 6px 18px rgb(7 102 245 / 22%);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --content-width: 1280px;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #030b15;
  --surface: #071424;
  --surface-alt: #06111f;
  --surface-soft: #0b1f36;
  --text: #dceafa;
  --heading: #f4f9ff;
  --muted: #91a8c2;
  --subtle: #8091a8;
  --muted-on-soft: #91a8c2;
  --primary: #2b9fff;
  --bright: #55d1ff;
  --line: #163049;
  --line-strong: #24537c;
  --on-primary: #071c50;
  --primary-ink: #68b9ff;
  --success: #90dcb4;
  --success-bg: #0b2a24;
  --warning: #f5c778;
  --warning-bg: #332819;
  --error: #ffb5c1;
  --error-bg: #341b28;
  --backdrop: rgb(0 4 12 / 65%);
  --shadow: 0 12px 36px rgb(0 0 0 / 18%);
}

* { box-sizing: border-box; }
html { margin: 0; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font-body); }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
h1, h2, h3, h4 { color: var(--heading); font-weight: 600; }
ul, ol { padding: 0; list-style: none; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
input { min-width: 0; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
::selection { background: var(--line-strong); color: var(--heading); }
.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; }
.container { width: min(var(--content-width), calc(100% - 112px)); margin-inline: auto; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--primary-ink); font: 700 14px/1.6 var(--font-number); letter-spacing: .16em; }
.eyebrow .ti { font-size: 18px; }
.muted, .field-help { color: var(--muted); }
.keep-together { white-space: nowrap; }
.num, .price { font-family: var(--font-number); font-variant-numeric: tabular-nums; white-space: nowrap; }
.num { text-align: right; }
.price { color: var(--heading); font-size: 20px; font-weight: 750; }
.price--old { color: var(--muted); font-size: 14px; font-weight: 400; text-decoration: line-through; }
.text-link { border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: var(--primary-ink); font-weight: 500; }
.text-link .ti { font-size: 20px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 48px; padding: 10px 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 600; line-height: 1.6; text-align: center; }
.button--primary { color: var(--on-primary); background: linear-gradient(110deg, var(--primary) 0%, var(--primary) 74%, var(--bright) 100%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 40%), var(--shadow-blue); }
.button--primary:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 40%), 0 7px 22px rgb(7 102 245 / 32%); }
.button--secondary { border-color: var(--line-strong); color: var(--primary-ink); background: var(--surface); }
.button--soft { background: var(--surface-soft); color: var(--primary-ink); }
.button--block { width: 100%; }
.button:disabled { color: var(--muted); border-color: var(--line); background: var(--surface-alt); box-shadow: none; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
.icon-button .ti { font-size: 22px; }
.icon-button:hover { background: var(--surface-soft); border-color: var(--line-strong); }
.badge { display: inline-flex; align-items: center; justify-content: center; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 500; line-height: 1.6; background: var(--surface); color: var(--text); }
.badge--demo { color: var(--primary-ink); background: var(--surface-soft); border: 1px solid var(--line); white-space: nowrap; }
.badge--new { background: var(--surface); color: var(--primary-ink); }
.badge--low { background: var(--warning-bg); color: var(--warning); }
.badge--soldout { background: var(--surface); color: var(--muted); }
.badge--sale { background: var(--error-bg); color: var(--error); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; line-height: 1.6; }
.status--success { color: var(--success); }
.status--error { color: var(--error); }
.status--warning { color: var(--warning); }
.field { display: grid; gap: 6px; }
.field label, .field-label { color: var(--heading); font-weight: 500; }
.input, .select { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid var(--subtle); border-radius: 10px; color: var(--text); background: var(--surface); line-height: 1.5; }
.input::placeholder { color: var(--muted); opacity: 1; }
.input[aria-invalid=true] { border-color: var(--error); }
.field-help, .field-error { font-size: 14px; }
.field-error { color: var(--error); }
.choice-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.choice-card:has(input:checked) { border-color: var(--primary); background: var(--surface-soft); }
.choice-card input, .checkbox input { accent-color: var(--primary); width: 18px; height: 18px; flex: 0 0 18px; margin: 5px 0 0; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; }
.table { width: 100%; border-collapse: collapse; text-align: left; }
.table th, .table td { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); background: var(--surface-alt); font-weight: 500; }
.empty-state { padding: 48px 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
.empty-state > .ti { font-size: 36px; color: var(--primary); }
.empty-state h3 { margin-block: 12px 6px; }

/* Consistent store navigation */
.announcement { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 34px; padding: 5px 20px; color: #fff; background: #0b2050; font-size: 14px; }
.announcement .ti { color: #a8d8ff; font-size: 18px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-main { display: flex; align-items: center; gap: 36px; min-height: 92px; }
.brand-group { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.brand { font: 700 28px/1.3 var(--font-number); letter-spacing: -.9px; color: var(--heading); white-space: nowrap; }
.search-form { display: flex; align-items: center; flex: 1; min-width: 120px; height: 46px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-alt); }
.search-form input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; border-radius: inherit; padding: 0 0 0 18px; background: transparent; color: var(--text); font-size: 14px; }
.search-form input::placeholder { color: var(--muted); opacity: 1; }
.search-form:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.search-form button { width: 46px; height: 44px; flex: 0 0 46px; border: 0; border-radius: 50%; color: var(--primary-ink); background: transparent; font-size: 22px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.account-button { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 0; border: 0; background: transparent; text-align: left; }
.account-button .ti { font-size: 24px; }
.account-button span { font-size: 14px; line-height: 1.5; }
.account-button strong { display: block; font-weight: 500; }
.cart-link { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: transparent; font-size: 15px; white-space: nowrap; }
.cart-link .ti { font-size: 24px; }
.cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding-inline: 4px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font: 700 14px/1 var(--font-number); }
.nav-wrap { border-top: 1px solid var(--line); }
.category-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 51px; font-size: 14px; }
.category-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 51px; border-bottom: 2px solid transparent; white-space: nowrap; }
.category-nav a.is-active { color: var(--primary-ink); border-bottom-color: var(--primary); }
.category-nav .nav-promo { color: var(--primary-ink); margin-left: auto; }
.mobile-nav { display: none; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-block: 24px; color: var(--muted); font-size: 14px; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 28px; }
.breadcrumb .ti { font-size: 14px; }
.breadcrumb [aria-current=page] { color: var(--text); }

/* Home: editorial photography with a restrained Ozariam orbit */
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(115deg, var(--bg) 28%, var(--surface-soft)); }
.hero .container { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: 48px; min-height: 614px; padding-block: 40px; }
.hero-copy { z-index: 2; padding-bottom: 8px; }
.hero h1 { margin-block: 22px 18px; font-size: 51px; font-weight: 600; line-height: 1.5; letter-spacing: -1.5px; }
.hero h1 span { color: var(--primary-ink); }
.hero-copy > p:not(.eyebrow) { max-width: 390px; color: var(--muted); font-size: 17px; }
.hero-copy .button { min-height: 54px; margin-top: 28px; padding-inline: 30px; }
.hero-footnote { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--muted); font-size: 14px; }
.hero-footnote .ti { color: var(--primary-ink); font-size: 20px; }
.hero-visual { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 514px; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 44% 50%; min-height: 0; border-radius: 120px 24px 0 0; }
.hero-visual::before { content: ''; position: absolute; z-index: -1; width: 710px; height: 530px; left: -65px; top: -6px; border: 1px solid var(--line-strong); border-radius: 50%; transform: rotate(-29deg); }
.hero-visual::after { content: ''; position: absolute; z-index: -1; width: 730px; height: 550px; left: -73px; top: -16px; border: 1px solid var(--line); border-radius: 50%; transform: rotate(-29deg); }
.hero-caption { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 0 0 24px 24px; background: var(--surface); box-shadow: var(--shadow); }
.hero-caption small { display: block; margin-bottom: 3px; color: var(--muted); font: 600 14px/1.6 var(--font-number); letter-spacing: .1em; }
.hero-caption h2 { max-width: 320px; font-size: 16px; font-weight: 500; }
.hero-caption .price { font-size: 24px; }
.hero-spark { position: absolute; z-index: 3; top: 24px; right: 16px; width: 40px; height: 40px; color: #fff; }
.service-strip { border-bottom: 1px solid var(--line); background: var(--surface); }
.service-strip .container { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 24px; }
.service-item { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 2px 24px; border-right: 1px solid var(--line); }
.service-item:last-child { border: 0; }
.service-item > .ti { color: var(--primary); font-size: 28px; }
.service-item strong { display: block; font-size: 15px; font-weight: 500; }
.service-item p { color: var(--muted); font-size: 14px; }
.section { padding-block: 76px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head h2 { margin-top: 7px; font-size: 32px; line-height: 1.5; letter-spacing: -.5px; }
.section-head > p, .section-head > div > p:not(.eyebrow) { color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.category-card { min-width: 0; }
.category-card img { width: 100%; aspect-ratio: 1; border-radius: var(--radius); object-fit: cover; background: var(--surface-soft); }
.category-card span { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 13px; font-size: 15px; font-weight: 500; }
.category-card .ti { color: var(--primary-ink); font-size: 18px; }
.featured-section { background: var(--surface-alt); border-block: 1px solid var(--line); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.product-card { display: flex; flex-direction: column; min-width: 0; }
.product-card__media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-soft); }
.product-card__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.product-card__media .badge { position: absolute; z-index: 1; top: 12px; left: 12px; }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 15px 2px 0; }
.product-category { color: var(--muted); font-size: 14px; }
.product-card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-block: 4px 2px; height: 3.3em; min-height: 0; font-size: 16px; line-height: 1.65; font-weight: 500; overflow-wrap: break-word; }
.product-card__buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 0; }
.product-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.product-card__buy .icon-button { color: var(--primary-ink); border-color: var(--line-strong); }
.product-card__buy .icon-button:disabled { color: var(--muted); background: var(--surface-alt); }
.product-card--soldout img { opacity: .65; }
.product-card--soldout .product-card__media::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: inherit; pointer-events: none; }
.photo--right { object-position: 72% center; }
.photo--cup { object-position: 85% center; }
.photo--left { object-position: 15% center; }
.photo--enamel { object-position: 18% center; }
.photo--floral { object-position: right center; transform: scale(1.15); transform-origin: 80% 15%; }
.photo--candle { object-position: 34% center; }
.promo-section { padding-block: 64px; }
.promo-banner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 32px; position: relative; overflow: hidden; padding: 38px 48px; border: 1px solid var(--line-strong); border-radius: 24px; background: linear-gradient(115deg, var(--surface-soft), var(--surface)); }
.promo-banner h2 { margin-top: 8px; font-size: 31px; line-height: 1.5; }
.promo-banner p:not(.eyebrow) { margin-top: 8px; color: var(--muted-on-soft); }
.coupon-display { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 28px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.coupon-display span { font-size: 14px; color: var(--muted); }
.coupon-display strong { display: block; color: var(--primary-ink); font: 800 28px/1.6 var(--font-number); letter-spacing: .05em; }
.story-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding-bottom: 80px; }
.story-photo { width: 100%; height: 470px; object-fit: cover; object-position: center 48%; border-radius: 20px 100px 20px 20px; }
.story-copy h2 { margin-block: 20px; font-size: 38px; line-height: 1.55; }
.story-copy > p:not(.eyebrow) { max-width: 450px; color: var(--muted); }
.story-copy .text-link { margin-top: 24px; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface-alt); padding-block: 48px 24px; }
.footer-main { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 64px; padding-bottom: 36px; }
.footer-main .brand { display: inline-block; margin-bottom: 12px; }
.footer-main .badge { margin-left: 8px; }
.footer-main p { max-width: 360px; color: var(--muted); font-size: 14px; }
.footer-main h2 { margin-bottom: 12px; font-size: 16px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.footer-links a { display: inline-flex; align-items: center; min-height: 32px; }
.payment-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.payment-list span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 14px; }
.footer-bottom { padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-bottom p + p { margin-top: 8px; }

/* Catalog */
.catalog-intro { background: linear-gradient(110deg, var(--surface-alt), var(--surface-soft)); border-bottom: 1px solid var(--line); }
.catalog-intro .breadcrumb { padding-bottom: 14px; }
.catalog-title { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-bottom: 30px; }
.catalog-title > div { min-width: 0; }
.catalog-title h1 { overflow-wrap: anywhere; margin-block: 4px 8px; font-size: 40px; line-height: 1.5; }
.catalog-title p:not(.eyebrow) { color: var(--muted); }
.catalog-intro__art { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 68% center; border: 7px solid var(--surface); }
.category-chips { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 28px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 17px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; line-height: 1.6; }
.chip.is-active, .chip[aria-pressed=true] { color: var(--primary-ink); border-color: var(--primary); background: var(--surface-soft); box-shadow: inset 0 0 0 .5px var(--primary); }
.catalog-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding-bottom: 72px; }
.catalog-sidebar { align-self: start; padding: 23px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.filter-heading h2 { display: flex; align-items: center; gap: 9px; font-size: 18px; }
.filter-group { padding-block: 22px; border-bottom: 1px solid var(--line); }
.filter-group legend { padding: 0; font-size: 15px; font-weight: 500; }
.filter-price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.filter-price label { color: var(--muted); font-size: 14px; }
.filter-price .input { margin-top: 5px; padding: 8px; font: 500 14px/1.6 var(--font-number); }
.filter-group .checkbox { margin-top: 12px; font-size: 14px; }
.catalog-sidebar > .button { margin-top: 20px; min-height: 44px; font-size: 14px; }
.filter-note { display: flex; align-items: flex-start; gap: 9px; padding-top: 20px; color: var(--muted); font-size: 14px; }
.filter-note .ti { font-size: 20px; color: var(--primary-ink); }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.catalog-toolbar h2 { font-size: 18px; font-weight: 500; }
.sort-control { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.sort-control .select { width: 172px; }
.catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalog-bottom { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 14px; }
.mobile-filter-trigger { display: none; }
.filter-sheet { width: min(100%, 520px); padding: 24px; border: 1px solid var(--line); border-radius: 24px; color: var(--text); background: var(--surface); }
.filter-sheet::backdrop { background: var(--backdrop); }
.filter-sheet .filter-group { margin-top: 12px; }
.filter-sheet .button--primary { margin-top: 24px; }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: start; padding-bottom: 64px; }
.product-gallery { min-width: 0; }
.product-gallery__main { position: relative; overflow: hidden; border-radius: 20px; background: var(--surface-soft); }
.product-gallery__main > img { width: 100%; aspect-ratio: 1.08; object-fit: cover; object-position: 35% center; }
.product-gallery__main .badge { position: absolute; top: 20px; left: 20px; }
.gallery-caption { margin-block: 12px; text-align: center; font-size: 14px; color: var(--muted); }
.product-thumbnails { display: flex; gap: 12px; }
.thumbnail { width: 82px; height: 78px; padding: 3px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.thumbnail.is-active { border: 2px solid var(--primary); }
.thumbnail img { width: 100%; height: 100%; border-radius: 8px; object-fit: cover; object-position: 35% center; }
.thumbnail--detail img { transform: scale(1.65); object-position: 33% 70%; }
.thumbnail--lid img { transform: scale(1.7); object-position: 12% 83%; }
.product-gallery__main.is-detail img { transform: scale(1.5); transform-origin: 35% 63%; }
.product-gallery__main.is-lid img { transform: scale(1.65); transform-origin: 16% 83%; }
.product-info { padding-top: 8px; }
.product-info .eyebrow { font-size: 14px; }
.product-info h1 { margin-block: 12px 14px; font-size: 34px; line-height: 1.5; letter-spacing: -.5px; }
.product-info__price { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.product-info__price .price { font-size: 34px; }
.product-intro { color: var(--muted); padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.variant-group { margin-top: 22px; }
.variant-group legend { margin-bottom: 12px; font-weight: 500; }
.variant-options { display: flex; flex-wrap: wrap; gap: 10px; }
.variant-options .chip { min-width: 100px; font-size: 16px; }
.variant-stock { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: var(--success); font-size: 14px; }
.product-quantity { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-block: 22px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--surface); }
.qty button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; font-size: 19px; }
.qty button:disabled { color: var(--muted); }
.qty output { min-width: 32px; text-align: center; font-family: var(--font-number); font-weight: 600; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.product-actions .button { min-height: 52px; }
.purchase-note { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 14px; }
.delivery-card { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-alt); }
.delivery-row { display: flex; align-items: start; gap: 12px; }
.delivery-row + .delivery-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.delivery-row > .ti { flex: 0 0 22px; margin-top: 2px; font-size: 22px; color: var(--primary-ink); }
.delivery-row strong { display: block; font-size: 15px; font-weight: 500; }
.delivery-row p { font-size: 14px; color: var(--muted); }
.product-details { margin-bottom: 76px; }
.tabs { display: flex; flex-wrap: wrap; gap: 32px; border-bottom: 1px solid var(--line); }
.tab { min-height: 54px; padding: 10px 0; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 16px; }
.tab[aria-selected=true] { color: var(--primary-ink); border-bottom-color: var(--primary); font-weight: 500; }
.tab-panel { padding-top: 26px; }
.detail-content { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.detail-content h2, .tab-panel > h2 { margin-bottom: 10px; font-size: 20px; }
.detail-content p, .tab-panel > p { color: var(--muted); }
.spec-list { display: grid; grid-template-columns: 110px 1fr; margin: 0; }
.spec-list dt, .spec-list dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec-list dt { color: var(--muted); }
.related-section { padding-top: 60px; background: var(--surface-alt); border-top: 1px solid var(--line); }
.mobile-buybar { display: none; }

/* Cart: same component in every mockup, pre-opened on state-cart.html */
body.cart-is-open { overflow: hidden; padding-bottom: 0; }
body.cart-is-open .site-shell { height: 100dvh; overflow: hidden; }
.cart-overlay { position: fixed; z-index: 100; inset: 0; background: var(--backdrop); }
.cart-drawer { position: absolute; top: 0; bottom: 0; right: 0; display: flex; flex-direction: column; width: 520px; max-width: 100%; background: var(--surface); box-shadow: -10px 0 50px rgb(7 28 62 / 12%); }
.cart-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px; border-bottom: 1px solid var(--line); }
.cart-header h2 { display: flex; align-items: center; gap: 12px; font-size: 24px; }
.cart-header h2 span { font-size: 15px; font-weight: 400; color: var(--muted); }
.cart-header > div { display: flex; align-items: center; gap: 12px; }
.cart-header .badge { display: inline-flex; padding: 2px 8px; }
.cart-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 28px; }
.shipping-progress { padding-block: 13px; }
.shipping-progress__title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; }
.shipping-progress__title .ti { color: var(--primary-ink); font-size: 21px; }
.shipping-progress__title .num { color: var(--primary-ink); font-weight: 750; }
.shipping-progress progress { display: block; width: 100%; height: 5px; margin-block: 9px 6px; border: 0; border-radius: 999px; overflow: hidden; background: var(--line); color: var(--primary); }
.shipping-progress progress::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
.shipping-progress progress::-webkit-progress-value { background: linear-gradient(90deg, var(--primary), var(--bright)); border-radius: 999px; }
.shipping-progress progress::-moz-progress-bar { background: var(--primary); }
.shipping-progress p { font-size: 14px; color: var(--muted); }
.cart-items { border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.cart-item__image { width: 72px; height: 80px; border-radius: 11px; object-fit: cover; }
.cart-item__body { min-width: 0; }
.cart-item__top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.cart-item h3 { font-size: 15px; font-weight: 500; line-height: 1.6; }
.cart-item__top .price { font-size: 16px; padding-top: 1px; }
.cart-item__option { font-size: 14px; color: var(--muted); }
.cart-item__controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 3px; }
.cart-item .qty button { width: 40px; height: 40px; }
.cart-item .qty output { min-width: 26px; font-size: 14px; }
.remove-item { display: inline-flex; align-items: center; justify-content: center; width: 40px; min-height: 40px; border: 0; background: transparent; color: var(--muted); font-size: 19px; }
.cart-coupon { padding-block: 12px; }
.cart-coupon label { display: block; margin-bottom: 5px; font-size: 14px; }
.coupon-input { display: flex; align-items: center; gap: 10px; }
.coupon-input .input { flex: 1; min-height: 44px; font-family: var(--font-number); font-size: 14px; letter-spacing: .04em; }
.coupon-input .button { min-height: 44px; padding-inline: 18px; font-size: 14px; }
.coupon-feedback.status--error { color: var(--error); }
.coupon-feedback { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--success); font-size: 14px; }
.cart-summary { flex: 0 0 auto; padding: 14px 28px 12px; border-top: 1px solid var(--line); background: var(--surface-alt); }
.summary-list { display: grid; gap: 5px; margin: 0; font-size: 14px; }
.summary-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.summary-list dt, .summary-list dd { margin: 0; }
.summary-list dt { color: var(--muted); }
.summary-list .discount dd { color: var(--success); }
.summary-list .summary-total { margin-top: 6px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 600; }
.summary-list .summary-total dt { color: var(--heading); }
.summary-total .price { font-size: 27px; }
.cart-summary > .button { margin-top: 14px; min-height: 49px; }
.cart-summary .continue-shopping { display: flex; justify-content: center; min-height: 34px; margin-top: 4px; font-size: 14px; }
.cart-summary .checkout-note { display: none; text-align: center; margin-top: 6px; font-size: 14px; color: var(--muted); }
.toast { position: fixed; z-index: 150; left: 50%; bottom: 24px; display: flex; align-items: center; gap: 12px; width: max-content; max-width: calc(100% - 32px); transform: translateX(-50%); padding: 13px 20px; border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow); color: var(--text); background: var(--surface); }
.toast .text-link { min-height: 44px; white-space: nowrap; }
.cart-drawer .toast { position: absolute; left: 20px; right: 20px; bottom: 300px; width: auto; max-width: none; transform: none; }

@media (max-width: 1200px) {
  .container { width: calc(100% - 64px); }
  .header-main { gap: 24px; }
  .header-main .brand-group { display: grid; gap: 4px; }
  .header-main .brand-group .badge { justify-self: start; }
  .header-actions { gap: 12px; }
  .category-nav { gap: 14px; }
  .category-nav .nav-promo { display: none; }
  .hero .container { gap: 32px; }
  .hero h1 { font-size: 44px; }
  .hero-caption h2 { max-width: 250px; }
  .hero-caption .price { font-size: 20px; }
  .category-grid { gap: 12px; }
  .category-card span { font-size: 14px; }
  .category-card .ti { display: none; }
  .catalog-layout { grid-template-columns: 200px minmax(0,1fr); gap: 24px; }
  .product-grid { gap: 28px 18px; }
  .product-detail { gap: 36px; }
  .product-info h1 { font-size: 30px; }
  .promo-banner { padding: 32px; }
  .coupon-display { padding: 20px; gap: 16px; }
}

@media (max-width: 900px) {
  .header-actions .account-button span, .cart-link__label { display: none; }
  .category-nav { flex-wrap: wrap; justify-content: flex-start; gap: 0 18px; font-size: 14px; }
  .hero h1 { font-size: 36px; }
  .hero .container { gap: 24px; }
  .hero-visual { height: 460px; }
  .hero-caption { padding: 12px; }
  .hero-caption h2 { font-size: 14px; }
  .hero-caption small { font-size: 14px; }
  .hero-caption .price { font-size: 18px; }
  .service-item { padding-inline: 12px; gap: 8px; }
  .service-item > .ti { font-size: 23px; }
  .service-item p { font-size: 14px; }
  .category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
  .category-card span { font-size: 16px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .promo-banner { grid-template-columns: 1fr; }
  .story-section { gap: 36px; }
  .story-copy h2 { font-size: 30px; }
  .story-photo { height: 420px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-main > div:first-child { grid-column: 1 / -1; }
  .product-detail { grid-template-columns: 1fr 1fr; gap: 24px; }
  .product-info h1 { font-size: 26px; }
  .product-info__price .price { font-size: 28px; }
  .variant-options .chip { min-width: 76px; padding: 8px 12px; font-size: 15px; }
  .product-actions { grid-template-columns: 1fr; }
  .detail-content { gap: 32px; }
}

@media (max-width: 600px) {
  html { scroll-padding-top: 16px; }
  body { font-size: 15px; padding-bottom: 78px; }
  .container { width: calc(100% - 40px); }
  .eyebrow { font-size: 15px; letter-spacing: .1em; }
  .button { min-height: 48px; padding: 10px 20px; font-size: 15px; }
  .badge, .status, .field-help, .field-error, .price--old { font-size: 15px; }
  .announcement { min-height: 34px; font-size: 15px; }
  .header-main { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding-block: 16px; }
  .header-main .brand-group { display: flex; flex-wrap: wrap; gap: 5px 8px; }
  .brand { font-size: 23px; letter-spacing: -.65px; }
  .header-main .badge { padding: 0 8px; font-size: 15px; }
  .header-actions { gap: 7px; }
  .header-actions .account-button { display: none; }
  .header-actions .icon-button { width: 42px; flex-basis: 42px; height: 44px; border: 0; background: transparent; }
  .cart-link { position: relative; width: 42px; justify-content: center; }
  .cart-link .cart-count { position: absolute; top: 0; right: -2px; height: 20px; min-width: 20px; font-size: 15px; }
  .search-form { grid-column: 1 / -1; grid-row: 2; width: 100%; height: 44px; }
  .search-form input { font-size: 15px; padding-left: 16px; }
  .nav-wrap { display: none; }
  .mobile-nav { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5,1fr); min-height: 74px; padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgb(7 28 80 / 4%); background: var(--surface); }
  .mobile-nav a, .mobile-nav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 15px; line-height: 1.6; }
  .mobile-nav .ti { font-size: 23px; }
  .mobile-nav .is-active { color: var(--primary-ink); }
  .mobile-nav .cart-count { position: absolute; top: -2px; left: calc(50% + 3px); height: 20px; min-width: 20px; font-size: 15px; }
  .hero .container { grid-template-columns: 1fr; gap: 24px; min-height: 0; padding: 24px 0 96px; }
  .hero-copy { padding: 0; }
  .hero h1 br:last-of-type, .hero-secondary-intro { display: none; }
  .hero h1 { margin-block: 15px 12px; font-size: 34px; letter-spacing: -.65px; line-height: 1.5; }
  .hero-copy > p:not(.eyebrow) { font-size: 15px; }
  .hero-copy .button { min-height: 49px; margin-top: 20px; }
  .hero-footnote { display: none; }
  .hero-visual { height: 294px; }
  .hero-photo { border-radius: 70px 16px 0 0; object-position: 41% center; }
  .hero-visual::before { width: 420px; height: 305px; left: -40px; top: -2px; }
  .hero-visual::after { width: 435px; height: 320px; left: -48px; top: -10px; }
  .hero-caption { padding: 10px 12px; gap: 10px; border-radius: 0 0 16px 16px; }
  .hero-caption small { display: none; }
  .hero-caption h2 { font-size: 15px; max-width: 210px; }
  .hero-caption .price { font-size: 18px; }
  .hero-spark { width: 28px; height: 28px; right: 12px; top: 14px; }
  .service-strip .container { display: grid; grid-template-columns: 1fr; gap: 16px; padding-block: 24px; }
  .service-item { justify-content: flex-start; gap: 14px; padding: 0; border: 0; }
  .service-item > .ti { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--line); border-radius: 12px; font-size: 23px; background: var(--surface-soft); }
  .service-item strong, .service-item p { font-size: 15px; }
  .section { padding-block: 42px; }
  .section-head { align-items: start; gap: 12px; margin-bottom: 22px; }
  .section-head h2 { margin-top: 4px; font-size: 25px; line-height: 1.6; }
  .section-head .text-link { min-height: 44px; font-size: 15px; white-space: nowrap; }
  .section-head .eyebrow { font-size: 15px; }
  .category-grid { gap: 20px 12px; }
  .category-card img { border-radius: 14px; }
  .category-card span { align-items: start; justify-content: center; margin-top: 9px; min-height: 48px; text-align: center; font-size: 15px; line-height: 1.6; }
  .product-grid { gap: 28px 14px; }
  .product-card__media { border-radius: 13px; }
  .product-card__media .badge { left: 8px; top: 8px; padding: 2px 8px; }
  .product-card__body { padding: 10px 0 0; }
  .product-category { font-size: 15px; }
  .product-card h3 { min-height: 0; height: 3.2em; margin-block: 4px 2px; font-size: 15px; line-height: 1.6; }
  .product-card__buy { gap: 3px; align-items: center; }
  .product-card__price { gap: 0 6px; }
  .product-card__price .price { font-size: 18px; }
  .product-card__buy .icon-button { width: 44px; height: 44px; flex-basis: 44px; }
  .product-card__buy .icon-button .ti { font-size: 20px; }
  .promo-section { padding-block: 40px; }
  .promo-banner { padding: 25px 22px; gap: 24px; border-radius: 20px; }
  .promo-banner h2 { margin-top: 10px; font-size: 26px; }
  .coupon-display { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .coupon-display span { font-size: 15px; }
  .coupon-display strong { font-size: 25px; }
  .coupon-display .button { width: 100%; }
  .story-section { grid-template-columns: 1fr; gap: 26px; padding-bottom: 44px; }
  .story-photo { height: 310px; border-radius: 16px 65px 16px 16px; }
  .story-copy h2 { margin-block: 12px; font-size: 28px; }
  .story-copy .text-link { margin-top: 12px; }
  .site-footer { padding-block: 32px 20px; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding-bottom: 24px; }
  .footer-main > div:first-child { grid-column: auto; }
  .footer-main .brand { font-size: 26px; }
  .footer-main .badge { margin: 0 0 12px; }
  .footer-main p, .footer-links, .footer-bottom, .payment-list span { font-size: 15px; }
  .footer-links { gap: 0 18px; }
  .footer-links a { min-height: 44px; }
  .footer-main h2 { font-size: 17px; margin-bottom: 8px; }
  .footer-bottom { padding-top: 18px; }
  .breadcrumb { gap: 6px; padding-block: 16px; font-size: 15px; }
  .breadcrumb a { min-height: 44px; }
  .breadcrumb--product { padding-block: 8px; }
  .breadcrumb--product [aria-current=page] { display: none; }
  .breadcrumb--product .ti:last-of-type { display: none; }
  .catalog-intro .breadcrumb { padding-block: 8px; }
  .catalog-title { gap: 14px; padding-block: 0 24px; }
  .catalog-title h1 { margin-top: 3px; font-size: 28px; }
  .catalog-title p:not(.eyebrow) { font-size: 15px; }
  .catalog-intro__art { display: none; }
  .category-chips { gap: 8px; padding-block: 22px; }
  .chip { padding: 8px 13px; min-height: 44px; font-size: 15px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 0; padding-bottom: 44px; }
  .catalog-sidebar { display: none; }
  .catalog-toolbar { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; margin-bottom: 20px; }
  .catalog-toolbar h2 { grid-column: 1 / -1; font-size: 17px; }
  .mobile-filter-trigger { display: inline-flex; gap: 8px; min-height: 46px; padding: 8px 12px; border-radius: 10px; }
  .sort-control > label { display: none; }
  .sort-control .select { width: 100%; min-height: 46px; font-size: 15px; }
  .catalog-bottom { font-size: 15px; }
  .filter-sheet { width: 100%; max-width: 100%; max-height: 90dvh; margin: auto 0 0; padding: 20px; border-radius: 22px 22px 0 0; }
  .filter-sheet .filter-group .checkbox, .filter-sheet .filter-price label, .filter-sheet .filter-price .input { font-size: 15px; }
  .product-detail { grid-template-columns: 1fr; gap: 20px; padding-bottom: 36px; }
  .product-gallery__main { border-radius: 16px; }
  .product-gallery__main > img { aspect-ratio: 1.4; }
  .product-gallery__main .badge { left: 14px; top: 14px; }
  .gallery-caption { display: none; }
  .product-thumbnails { gap: 10px; margin-top: 12px; }
  .thumbnail { width: 62px; height: 56px; }
  .product-info { padding-top: 0; }
  .product-info .eyebrow { font-size: 15px; }
  .product-info h1 { font-size: 28px; margin-block: 8px 10px; }
  .product-info__price { gap: 14px; margin-bottom: 10px; }
  .product-info__price .price { font-size: 30px; }
  .product-intro { padding-bottom: 18px; }
  .variant-group { margin-top: 18px; }
  .variant-options .chip { min-width: 100px; font-size: 15px; }
  .variant-stock { font-size: 15px; }
  .product-quantity { margin-block: 20px; }
  .product-actions { display: none; }
  .product-actions .button { padding-inline: 10px; }
  .purchase-note { font-size: 15px; }
  .delivery-card { margin-top: 22px; padding: 16px; }
  .delivery-row strong, .delivery-row p { font-size: 15px; }
  .product-details { margin-bottom: 40px; }
  .tabs { justify-content: space-between; gap: 12px; }
  .tab { font-size: 15px; }
  .detail-content { grid-template-columns: 1fr; gap: 22px; }
  .spec-list { grid-template-columns: 100px 1fr; }
  .tab-panel { padding-top: 20px; }
  .related-section { padding-top: 36px; }
  .product-page { padding-bottom: 100px; }
  .product-page .mobile-nav { display: none; }
  .mobile-buybar { position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -5px 20px rgb(7 28 80 / 6%); }
  .mobile-buybar .button { padding-inline: 10px; min-height: 48px; }
  .cart-drawer { width: 100%; }
  .cart-header { padding: 12px 20px; }
  .cart-header h2 { font-size: 22px; gap: 9px; }
  .cart-header h2 > span { display: none; }
  .cart-header > div { gap: 10px; }
  .cart-header .badge { display: inline-flex; padding: 0; border: 0; background: transparent; }
  .cart-scroll { padding-inline: 20px; }
  .shipping-progress { padding-block: 12px; }
  .shipping-progress__title { font-size: 15px; }
  .shipping-progress progress { margin-block: 9px 5px; }
  .shipping-progress p { font-size: 15px; }
  .cart-item { grid-template-columns: 64px minmax(0,1fr); gap: 12px; padding-block: 8px; }
  .cart-item__image { width: 64px; height: 72px; }
  .cart-item__top { gap: 7px; }
  .cart-item h3 { font-size: 15px; }
  .cart-item__top .price { font-size: 15px; }
  .cart-item__option { font-size: 15px; }
  .cart-item__controls { margin-top: 0; }
  .cart-item .qty button { width: 44px; height: 44px; }
  .cart-item .qty output { min-width: 24px; font-size: 15px; }
  .remove-item { width: 44px; min-height: 44px; }
  .cart-coupon { padding-block: 12px; }
  .cart-coupon label { font-size: 15px; margin-bottom: 5px; }
  .coupon-input { gap: 8px; }
  .coupon-input .input, .coupon-input .button, .coupon-feedback { font-size: 15px; }
  .coupon-input .button { padding-inline: 14px; }
  .cart-summary { padding: 12px 20px 8px; }
  .summary-list { gap: 3px; font-size: 15px; }
  .summary-list .summary-total { margin-top: 4px; padding-top: 7px; font-size: 18px; }
  .summary-total .price { font-size: 25px; }
  .cart-summary > .button { margin-top: 10px; min-height: 48px; }
  .cart-summary .continue-shopping { min-height: 44px; margin-top: 0; font-size: 15px; }
  .cart-summary .checkout-note { display: none; }
  .toast { bottom: 96px; font-size: 15px; padding: 12px 16px; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { padding: 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
  .table td { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border: 0; }
  .table td::before { content: attr(data-label); text-align: left; color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Round 2 · checkout, order tracking and store management */
:root { --info: #12618b; --info-bg: #eaf7ff; --neutral: #586777; --neutral-bg: #f0f3f6; --hero-glow: #d9edff; }
:root[data-theme=dark] { --info: #8cdbff; --info-bg: #0d2a40; --neutral: #b7c5d7; --neutral-bg: #152538; --hero-glow: #0b2c47; }
.hero { background: radial-gradient(ellipse at 76% 35%, var(--hero-glow), transparent 64%), linear-gradient(115deg, var(--bg), var(--surface-soft)); }
.hero-visual::before { border-color: var(--primary); opacity: .24; }
.hero-visual::after { border-color: var(--primary); opacity: .16; }
.hero-spark { width: 45px; height: 45px; right: 20px; top: 78px; }
.hero-spark--blue { color: var(--primary); width: 25px; height: 25px; left: -34px; top: 56px; }
.hero-float { position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--surface); box-shadow: 0 12px 32px rgb(7 70 145 / 16%); }
.hero-float--product { left: -32px; bottom: 106px; padding: 10px 15px 10px 10px; transform: rotate(-4deg); }
.hero-float--product img { width: 62px; height: 68px; object-fit: cover; object-position: 34% center; border-radius: 10px; }
.hero-float strong { display: block; font-size: 15px; font-weight: 500; }
.hero-float .price { display: block; font-size: 19px; text-align: left; }
.hero-float--shipping { top: 12px; right: -14px; padding: 12px 18px; transform: rotate(3deg); }
.hero-float--shipping .ti { color: var(--primary-ink); font-size: 24px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-heading h1 { font-size: 34px; line-height: 1.5; letter-spacing: -.6px; }
.page-heading p { color: var(--muted); margin-top: 6px; }
.flow-page { padding-block: 32px 64px; }
.panel { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.panel-heading h2, .panel-heading h3 { font-size: 21px; }
.panel-heading > .ti { font-size: 24px; color: var(--primary-ink); }
.stack { display: grid; gap: 22px; align-content: start; min-width: 0; }
.fine-print { font-size: 14px; color: var(--muted); line-height: 1.7; }
.notice { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 16px; color: var(--muted-on-soft); background: var(--surface-soft); font-size: 14px; }
.notice > .ti { font-size: 21px; flex: 0 0 21px; margin-top: 2px; color: var(--primary-ink); }
.notice--warning { border-color: var(--warning); background: var(--warning-bg); color: var(--warning); }
.notice--warning > .ti { color: var(--warning); }
.order-status { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; padding: 4px 10px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.order-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.order-status--pending { background: var(--warning-bg); color: var(--warning); }
.order-status--paid, .order-status--packing { background: var(--info-bg); color: var(--info); }
.order-status--shipped { background: var(--surface-soft); color: var(--primary-ink); }
.order-status--complete { background: var(--success-bg); color: var(--success); }
.order-status--cancelled { background: var(--neutral-bg); color: var(--neutral); }
.checkout-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; width: min(720px,100%); margin: 0 auto 32px; }
.checkout-steps li { position: relative; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.checkout-steps li:not(:last-child)::after { content: ''; height: 1px; background: var(--line-strong); flex: 1; }
.step-dot { display: inline-grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); font-family: var(--font-number); }
.checkout-steps .is-current { color: var(--primary-ink); font-weight: 600; }
.is-current .step-dot { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.checkout-steps .is-done .step-dot { background: var(--surface-soft); color: var(--primary-ink); }
.checkout-layout { display: grid; grid-template-columns: minmax(0,1fr) 420px; gap: 32px; align-items: start; }
.checkout-summary { position: sticky; top: 24px; min-width: 0; }
.checkout-summary > summary { display: none; }
.summary-content { padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.summary-content h2 { font-size: 22px; }
.summary-content .summary-list { gap: 9px; margin-block: 20px; }
.summary-content .fine-print { margin-top: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 20px; }
.field--wide { grid-column: 1 / -1; }
.form-grid .field-help { font-weight: 400; }
.form-section + .form-section { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-section h2, .form-section legend { font-size: 20px; font-weight: 600; margin-bottom: 18px; color: var(--heading); }
textarea.input { min-height: 80px; resize: vertical; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-card { cursor: pointer; }
.choice-card > span { flex: 1; min-width: 0; }
.choice-card strong { display: block; font-size: 16px; font-weight: 500; }
.choice-card small { display: block; color: var(--muted-on-soft); font-size: 14px; }
.choice-card .num { display: block; margin-top: 8px; color: var(--primary-ink); text-align: left; font-weight: 700; }
.payment-choices { display: grid; gap: 10px; }
.payment-choices .choice-card { align-items: center; }
.payment-choices input { margin-top: 0; }
.payment-choices .ti { font-size: 24px; color: var(--primary-ink); }
.payment-choices + .notice { margin-top: 14px; }
.order-items { margin-block: 14px; }
.order-line { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; align-items: center; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.order-line img { width: 56px; height: 62px; object-fit: cover; border-radius: 10px; }
.order-line h3 { font-size: 15px; line-height: 1.6; font-weight: 500; }
.order-line p { color: var(--muted); font-size: 14px; }
.order-line > .num { font-size: 15px; font-weight: 650; }
.checkout-confirmbar { display: none; }
.success-heading { text-align: center; margin-bottom: 30px; }
.success-symbol { display: inline-grid; place-items: center; width: 58px; height: 58px; margin-bottom: 12px; border: 1px solid var(--success); border-radius: 50%; background: var(--success-bg); color: var(--success); font-size: 32px; }
.success-heading h1 { font-size: 34px; margin-bottom: 8px; }
.success-heading p { color: var(--muted); }
.success-heading strong { color: var(--heading); font-family: var(--font-number); }
.order-layout { display: grid; grid-template-columns: minmax(0,1fr) 400px; gap: 26px; }
.payment-panel { background: linear-gradient(130deg, var(--surface-soft), var(--surface)); border-color: var(--line-strong); }
.qr-layout { display: grid; grid-template-columns: 176px minmax(0,1fr); align-items: center; gap: 28px; }
.demo-qr { width: 176px; height: 176px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 14px; background: #fff; }
.payment-amount { display: block; font: 800 38px/1.5 var(--font-number); margin-block: 4px 6px; }
.qr-caption { color: var(--muted-on-soft); font-size: 14px; margin-bottom: 16px; }
.timeline { display: grid; }
.timeline li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; position: relative; padding-bottom: 20px; }
.timeline li:not(:last-child)::after { content: ''; position: absolute; width: 1px; background: var(--line-strong); top: 32px; bottom: 0; left: 15px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline-dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-alt); color: var(--muted); border: 1px solid var(--line); font-size: 17px; }
.timeline strong { font-size: 16px; font-weight: 500; }
.timeline time, .timeline small { display: block; font-size: 14px; color: var(--muted); }
.timeline .is-current .timeline-dot { color: var(--warning); border-color: var(--warning); background: var(--warning-bg); }
.timeline .is-current strong { color: var(--warning); }
.timeline .is-complete .timeline-dot { color: var(--success); border-color: var(--success); background: var(--success-bg); }
.timeline .is-active .timeline-dot { color: var(--primary-ink); border-color: var(--primary); background: var(--surface-soft); }
.timeline .is-active strong { color: var(--primary-ink); }
.address-card { font-style: normal; font-size: 15px; }
.address-card strong { display: block; font-weight: 500; margin-bottom: 4px; }
.address-card p { color: var(--muted); }
.detail-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.detail-pairs h3 { font-size: 15px; margin-bottom: 4px; }
.detail-pairs p { color: var(--muted); font-size: 14px; }
.order-bottom-actions { display: flex; justify-content: center; gap: 16px; margin-top: 26px; }
.account-layout { display: grid; grid-template-columns: 360px minmax(0,1fr); gap: 32px; align-items: start; }
.tracking-form { display: grid; gap: 18px; }
.tracking-form .panel-heading { margin-bottom: 0; }
.order-card { display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.order-card:hover { border-color: var(--primary); }
.order-card__head, .order-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.order-card__head h3 { font: 700 17px/1.6 var(--font-number); }
.order-card__head time { display: block; color: var(--muted); font-size: 14px; }
.order-card__products { display: flex; align-items: center; gap: 10px; padding-block: 18px; }
.order-card__products img { width: 62px; height: 62px; object-fit: cover; border-radius: 10px; }
.order-card__products p { color: var(--muted); font-size: 14px; margin-left: 6px; }
.order-card__foot { border-top: 1px solid var(--line); padding-top: 14px; }
.order-card__foot .text-link { min-height: 28px; font-size: 14px; }
.account-empty { padding: 65px 24px; background: var(--surface); }
.account-empty .button { margin-top: 22px; }
/* Management shell */
.admin-page { background: var(--surface-alt); padding-bottom: 0; }
.admin-shell { display: grid; grid-template-columns: 224px minmax(0,1fr); min-height: 100dvh; }
.admin-sidebar { position: sticky; top: 0; height: 100dvh; padding: 28px 16px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--surface); }
.admin-sidebar .brand { font-size: 24px; }
.admin-brand { padding: 0 10px 28px; }
.admin-brand .badge { margin-top: 9px; }
.admin-nav { display: grid; gap: 8px; }
.admin-nav a { display: flex; align-items: center; gap: 11px; min-height: 48px; padding: 11px 12px; border-radius: 12px; color: var(--muted); font-size: 15px; }
.admin-nav a > .ti { font-size: 22px; }
.admin-nav a.is-active { background: var(--surface-soft); color: var(--primary-ink); font-weight: 600; }
.nav-count { margin-left: auto; min-width: 23px; border-radius: 6px; text-align: center; background: var(--primary); color: var(--on-primary); font: 700 14px/1.6 var(--font-number); }
.admin-sidebar-note { margin-top: auto; padding: 24px 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.admin-workspace { min-width: 0; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 32px; border-bottom: 1px solid var(--line); background: var(--surface); }
.admin-topbar strong { font-size: 16px; font-weight: 500; }
.admin-topbar p { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--primary-ink); }
.admin-topbar .button { font-size: 14px; padding: 8px 15px; min-height: 44px; }
.admin-content { padding: 28px 32px 36px; }
.admin-content .page-heading h1 { font-size: 30px; }
.admin-content .page-heading p { font-size: 14px; }
.task-panel { margin-bottom: 24px; }
.task-panel .panel-heading { margin-bottom: 14px; }
.task-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.task-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-alt); }
.task-card strong { font: 750 30px/1.3 var(--font-number); }
.task-card span { grid-column: 1 / -1; font-size: 15px; }
.task-card .ti { font-size: 20px; }
.task-card--warning { color: var(--warning); border-color: var(--warning); background: var(--warning-bg); }
.task-card--info { color: var(--primary-ink); background: var(--surface-soft); border-color: var(--line-strong); }
.task-card--error { color: var(--error); background: var(--error-bg); border-color: var(--error); }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat-card h2 { font-size: 14px; font-weight: 500; color: var(--muted); }
.stat-card strong { display: block; font: 750 29px/1.5 var(--font-number); margin-block: 9px 3px; color: var(--heading); }
.stat-card p { font-size: 14px; color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; margin-bottom: 24px; }
.chart-key { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; }
.chart-key::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: var(--primary); }
.sales-chart { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 12px; align-items: end; height: 248px; padding-top: 20px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, var(--line) 0 1px, transparent 1px 62px); }
.chart-column { display: grid; align-items: end; height: 100%; grid-template-rows: 1fr 24px; text-align: center; }
.chart-bar { position: relative; width: 100%; height: var(--bar-height); min-height: 12px; background: var(--line-strong); border-radius: 7px 7px 0 0; }
.chart-column:last-child .chart-bar { background: linear-gradient(0deg,var(--primary),var(--bright)); }
.chart-bar span { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); font: 600 14px/1 var(--font-number); }
.chart-column time { font-size: 14px; color: var(--muted); background: var(--surface); padding-top: 4px; }
.sales-chart + .fine-print { margin-top: 18px; }
.bestseller-list { display: grid; }
.bestseller-list li { display: grid; grid-template-columns: 22px 40px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bestseller-list li:last-child { border: 0; }
.bestseller-list img { width: 40px; height: 44px; object-fit: cover; border-radius: 7px; }
.bestseller-list strong { display: block; font-size: 14px; font-weight: 500; }
.bestseller-list small { color: var(--muted); font-size: 14px; }
.bestseller-list .num { font-size: 15px; font-weight: 650; }
.table-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.table-panel > .panel-heading { padding: 20px 22px 0; }
.admin-table { font-size: 14px; }
.admin-table td { vertical-align: middle; }
.admin-table th { font-size: 14px; white-space: nowrap; }
.admin-table td, .admin-table th { padding: 14px 12px; }
.admin-table td strong { font-weight: 500; }
.admin-table td small { display: block; font-size: 14px; color: var(--muted); }
.order-id { font-family: var(--font-number); font-weight: 700; color: var(--primary-ink); white-space: nowrap; }
.row-action { min-height: 40px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 8px; padding: 6px 10px; font-size: 14px; color: var(--primary-ink); white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
.table-footer { padding: 16px 22px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.status-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.status-tabs button { display: flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 8px 14px; font-size: 14px; }
.status-tabs button.is-active { border-color: var(--primary); color: var(--primary-ink); background: var(--surface-soft); }
.status-tabs span { font-family: var(--font-number); font-weight: 700; }
.admin-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.admin-search { max-width: 440px; flex: 1; min-width: 180px; }
.admin-filters .field { min-width: 170px; }
.admin-filters label { font-size: 14px; }
.admin-filters > .fine-print { margin-left: auto; align-self: center; }
.selected-row { background: var(--surface-soft); }
.admin-drawer-overlay { position: fixed; inset: 0; z-index: 90; background: var(--backdrop); }
.admin-order-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 510px; display: flex; flex-direction: column; background: var(--surface); box-shadow: -16px 0 60px rgb(7 28 80 / 12%); }
.order-drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.order-drawer-head h2 { font: 750 22px/1.6 var(--font-number); }
.order-drawer-head p { font-size: 14px; color: var(--muted); }
.order-drawer-body { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 18px 22px; }
.order-drawer-body .order-items { margin-block: 8px 12px; }
.order-drawer-body .order-line { padding-block: 7px; grid-template-columns: 42px minmax(0,1fr) auto; gap: 10px; }
.order-drawer-body .order-line img { width: 42px; height: 46px; }
.order-drawer-body .order-line h3, .order-drawer-body .order-line p { font-size: 14px; }
.order-drawer-body .summary-list { margin-bottom: 16px; }
.drawer-customer { padding: 12px 14px; background: var(--surface-alt); border-radius: 10px; margin-block: 14px; }
.drawer-customer p { font-size: 14px; }
.drawer-customer strong { font-size: 15px; font-weight: 500; }
.drawer-timeline { display: grid; gap: 8px; margin-top: 12px; }
.drawer-timeline li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.drawer-timeline li.is-current { color: var(--warning); font-weight: 500; }
.drawer-timeline li.is-complete { color: var(--success); }
.drawer-timeline li.is-active { color: var(--primary-ink); }
.drawer-timeline time { font-size: 14px; }
.order-drawer-body h3 { font-size: 16px; }
.order-drawer-foot { flex-shrink: 0; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface); }
.order-drawer-foot .fine-print { margin-bottom: 9px; }
.drawer-secondary { display: flex; justify-content: space-between; gap: 8px; margin-top: 7px; }
.drawer-secondary button { font-size: 14px; }
.danger-link { color: var(--error); }
.drawer-is-open { overflow: hidden; }
.drawer-is-open .admin-shell { height: 100dvh; overflow: hidden; }
.stock-product { display: flex; align-items: center; gap: 13px; }
.stock-product img { width: 58px; height: 64px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.stock-product strong { display: block; max-width: 240px; }
.stock-variants { display: grid; gap: 9px; }
.stock-variant { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stock-variant label { font-size: 14px; }
.stock-stepper { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--surface); flex-shrink: 0; }
.stock-stepper button { width: 36px; min-height: 40px; border: 0; background: transparent; }
.stock-stepper input { appearance: textfield; width: 43px; padding: 3px; text-align: center; font: 600 15px/1.6 var(--font-number); border: 0; border-inline: 1px solid var(--line); color: var(--text); background: transparent; }
.stock-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stock-row--empty { background: var(--error-bg); }
.stock-row--empty td:first-child { box-shadow: inset 3px 0 var(--error); }
.stock-tag { display: inline-flex; align-items: center; gap: 5px; border-radius: 7px; padding: 3px 9px; font-size: 14px; white-space: nowrap; color: var(--success); background: var(--success-bg); }
.stock-tag--low { color: var(--warning); background: var(--warning-bg); }
.stock-tag--empty { color: var(--error); background: var(--error-bg); }
.stock-toggle { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 44px; }
.stock-toggle input { position: absolute; width: 42px; height: 24px; opacity: 0; margin: 0; }
.switch-track { display: block; width: 38px; height: 22px; background: var(--neutral); border-radius: 999px; }
.switch-track::after { content: ''; display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; margin: 3px; }
.stock-toggle input:checked + .switch-track { background: var(--primary); }
.stock-toggle input:checked + .switch-track::after { transform: translateX(16px); }
.stock-toggle input:focus-visible + .switch-track { outline: 3px solid var(--primary); outline-offset: 3px; }
.stock-toggle-label { font-size: 14px; }
.demo-dialog { color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; width: min(440px,calc(100% - 40px)); padding: 26px; }
.demo-dialog::backdrop { background: var(--backdrop); }
.demo-dialog h2 { font-size: 23px; margin-bottom: 10px; }
.demo-dialog p { color: var(--muted); margin-bottom: 22px; }
.dialog-actions { display: flex; gap: 10px; justify-content: end; }
.demo-feedback { bottom: 22px; z-index: 110; }
@media (max-width: 1150px) {
  .checkout-layout { grid-template-columns: minmax(0,1fr) 350px; gap: 24px; }
  .admin-shell { grid-template-columns: 190px minmax(0,1fr); }
  .admin-sidebar .brand { font-size: 20px; }
  .admin-content { padding: 24px; }
  .admin-topbar { padding-inline: 24px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .task-grid, .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .order-layout { grid-template-columns: minmax(0,1fr) 330px; }
}
@media (max-width: 900px) {
  .checkout-layout, .order-layout, .account-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; grid-row: 1; }
  .checkout-summary > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; background: var(--surface-soft); padding: 16px 20px; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; }
  .checkout-summary[open] > summary { border-radius: 16px 16px 0 0; }
  .checkout-summary[open] .summary-content { border-radius: 0 0 16px 16px; border-top: 0; }
  .checkout-summary .summary-content > h2, .checkout-summary .summary-content > .button { display: none; }
  .checkout-page .mobile-nav { display: none; }
  .checkout-page { padding-bottom: 110px; }
  .checkout-confirmbar { display: block; position: fixed; z-index: 45; bottom: 0; left: 0; right: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(7 28 80 / 6%); }
  .checkout-confirmbar p { font-size: 14px; text-align: center; color: var(--muted); margin-top: 5px; }
  .admin-shell { display: block; }
  .admin-sidebar { position: static; height: auto; padding: 16px 20px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-brand { display: flex; align-items: center; justify-content: space-between; padding: 0 0 14px; }
  .admin-brand .badge { margin: 0; }
  .admin-sidebar .brand { font-size: 23px; }
  .admin-nav { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
  .admin-nav a { justify-content: center; padding: 8px; }
  .admin-sidebar-note { display: none; }
  .admin-topbar { flex-wrap: wrap; gap: 10px; }
  .admin-topbar > div > strong { display: none; }
}
@media (max-width: 600px) {
  .hero-visual { height: 320px; margin-top: 14px; }
  .hero-spark { width: 30px; height: 30px; top: 48px; right: 15px; }
  .hero-spark--blue { top: 7px; left: 8px; width: 22px; height: 22px; }
  .hero-float--product { left: 8px; bottom: 85px; gap: 9px; padding: 7px 10px 7px 7px; border-radius: 11px; }
  .hero-float--product img { width: 40px; height: 46px; border-radius: 7px; }
  .hero-float strong { font-size: 15px; }
  .hero-float .price { font-size: 16px; }
  .hero-float--shipping { top: -14px; right: 8px; padding: 8px 12px; gap: 7px; }
  .hero-float--shipping .ti { font-size: 20px; }
  .flow-page { padding-block: 24px 36px; }
  .page-heading { align-items: start; gap: 12px; margin-bottom: 22px; }
  .page-heading h1, .success-heading h1 { font-size: 28px; }
  .page-heading > .text-link { font-size: 15px; white-space: nowrap; }
  .panel, .summary-content { padding: 20px; }
  .panel-heading h2, .panel-heading h3 { font-size: 20px; }
  .fine-print, .notice, .order-status, .order-line p, .qr-caption, .timeline time, .timeline small { font-size: 15px; }
  .checkout-steps { gap: 4px; margin-bottom: 24px; }
  .checkout-steps li { flex-direction: column; gap: 6px; text-align: center; font-size: 15px; }
  .checkout-steps li:not(:last-child)::after { position: absolute; top: 15px; left: calc(50% + 20px); width: calc(100% - 40px); }
  .step-dot { flex-basis: 30px; }
  .checkout-layout, .order-layout, .account-layout { gap: 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .field--wide { grid-column: auto; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-card small { font-size: 15px; }
  .choice-card strong { font-size: 16px; }
  .summary-content .summary-list { gap: 8px; }
  .summary-content > .panel-heading { margin-bottom: 8px; }
  .checkout-confirmbar p { font-size: 15px; }
  .order-line { grid-template-columns: 48px minmax(0,1fr) auto; gap: 10px; }
  .order-line img { width: 48px; height: 56px; }
  .success-heading { margin-bottom: 24px; }
  .success-heading p span { display: block; }
  .qr-layout { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  .demo-qr { margin-inline: auto; width: 176px; height: 176px; }
  .payment-panel .panel-heading { align-items: start; flex-wrap: wrap; }
  .payment-panel .button { width: 100%; }
  .timeline li { padding-bottom: 24px; }
  .detail-pairs { grid-template-columns: 1fr; gap: 16px; }
  .detail-pairs h3, .detail-pairs p { font-size: 15px; }
  .order-bottom-actions { flex-direction: column; gap: 10px; }
  .order-card { padding: 18px; }
  .order-card__head { flex-wrap: wrap; gap: 9px; }
  .order-card__head time, .order-card__products p, .order-card__foot .text-link { font-size: 15px; }
  .order-card__products img { width: 50px; height: 56px; }
  .order-card__foot .text-link { min-height: 44px; }
  .account-empty { padding: 40px 20px; }
  .admin-sidebar { padding-inline: 16px; }
  .admin-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-nav a { justify-content: flex-start; font-size: 15px; padding: 9px 10px; }
  .nav-count { font-size: 15px; }
  .admin-topbar { padding: 14px 20px; }
  .admin-topbar p { font-size: 15px; align-items: start; }
  .admin-topbar .button { font-size: 15px; }
  .admin-content { padding: 22px 20px 36px; }
  .admin-content .page-heading { flex-wrap: wrap; }
  .admin-content .page-heading h1 { font-size: 28px; }
  .admin-content .page-heading p { font-size: 15px; }
  .task-panel { padding: 18px; }
  .task-grid { gap: 10px; }
  .task-card { padding: 14px; }
  .task-card strong { font-size: 27px; }
  .task-card span { font-size: 15px; }
  .stat-grid { gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-card strong { font-size: 24px; }
  .stat-card h2, .stat-card p { font-size: 15px; }
  .dashboard-grid { gap: 20px; }
  .dashboard-grid .panel-heading { flex-wrap: wrap; }
  .chart-key { font-size: 15px; }
  .sales-chart { gap: 7px; height: 215px; }
  .chart-bar span { font-size: 15px; writing-mode: vertical-rl; bottom: calc(100% + 7px); }
  .chart-column time { font-size: 15px; }
  .bestseller-list strong, .bestseller-list small { font-size: 15px; }
  .bestseller-list li { grid-template-columns: 18px 36px minmax(0,1fr) auto; gap: 8px; padding-block: 13px; }
  .bestseller-list img { width: 36px; }
  .table-panel { overflow: visible; border: 0; background: transparent; }
  .table-panel > .panel-heading { padding: 0; }
  .admin-table { font-size: 15px; }
  .admin-table tr { padding: 17px; background: var(--surface); margin-bottom: 14px; }
  .admin-table td { align-items: start; padding: 8px 0; gap: 14px; text-align: right; font-size: 15px; }
  .admin-table td::before { flex-shrink: 0; max-width: 85px; }
  .admin-table td small { font-size: 15px; }
  .admin-table .order-id { font-size: 16px; }
  .admin-table .row-action { min-height: 44px; font-size: 15px; }
  .table-footer { padding: 6px 0; flex-wrap: wrap; font-size: 15px; }
  .status-tabs { gap: 8px; }
  .status-tabs button { font-size: 15px; padding: 8px 10px; }
  .admin-filters { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .admin-filters label { font-size: 15px; }
  .admin-filters > .fine-print { margin-left: 0; }
  .admin-search { max-width: none; min-width: 0; }
  .admin-order-drawer { width: 100%; }
  .order-drawer-head { padding: 14px 20px; }
  .order-drawer-head h2 { font-size: 21px; }
  .order-drawer-head p, .order-drawer-body .order-line h3, .order-drawer-body .order-line p { font-size: 15px; }
  .order-drawer-body { padding: 16px 20px; }
  .order-drawer-body .order-line { grid-template-columns: 38px minmax(0,1fr) auto; }
  .order-drawer-body .order-line img { width: 38px; height: 46px; }
  .drawer-customer p, .drawer-timeline li, .drawer-timeline time { font-size: 15px; }
  .order-drawer-foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
  .drawer-secondary { flex-direction: column; gap: 0; }
  .drawer-secondary button { font-size: 15px; min-height: 44px; }
  .stock-table td:first-child { display: block; text-align: left; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
  .stock-table td:first-child::before { display: none; }
  .stock-table .stock-product strong { max-width: none; }
  .stock-table .stock-row--empty { background: var(--error-bg); border-color: var(--error); }
  .stock-row--empty td:first-child { box-shadow: none; }
  .stock-table td[data-label="ตัวเลือก / สต็อก"] { display: block; text-align: left; }
  .stock-table td[data-label="ตัวเลือก / สต็อก"]::before { display: block; max-width: none; margin-bottom: 10px; }
  .stock-variant label, .stock-tag, .stock-toggle-label { font-size: 15px; }
  .stock-stepper button { width: 44px; min-height: 44px; }
  .stock-stepper input { width: 44px; }
  .stock-table .stock-variants { width: 100%; }
  .demo-feedback { bottom: 20px; }
}
@media (min-width: 901px) { .checkout-summary:not([open]) > .summary-content { display: block; } }
@media (prefers-reduced-motion: reduce) { .hero-float { animation: none; } }
@media print { .admin-shell, .admin-drawer-overlay, .demo-feedback { display: none; } .demo-dialog[open] { display: block; position: static; width: 100%; border: 0; } .demo-dialog .dialog-actions { display: none; } }
.orders-table { table-layout: fixed; }
.orders-table .row-action { white-space: normal; }
.stock-filters { margin-top: 24px; }
.stock-save-note { margin-top: 16px; }
.payment-panel > .fine-print { margin-top: 18px; }
@media (max-width:600px) { .checkout-page .page-heading { flex-wrap: wrap; } .checkout-page .panel-heading { flex-wrap: wrap; gap: 8px; } }
/* Review pass: keep the full order readable in the mobile sheet. */
.order-drawer-body .summary-list { gap: 2px; }
.order-drawer-body .summary-total { padding-top: 6px; margin-top: 4px; }
.order-drawer-body .summary-total .price { font-size: 24px; }
.drawer-timeline { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.drawer-timeline li { display: flex; flex-direction: column; justify-content: start; gap: 4px; border-top: 2px solid var(--line); padding-top: 6px; }
.drawer-timeline li.is-current { border-color: var(--warning); }
.drawer-timeline li.is-active, .drawer-timeline li.is-complete { border-color: currentColor; }
@media (max-width:600px) {
  .hero-visual { height: 260px; margin-top: 14px; }
  .hero-float--product { bottom: 79px; }
  .hero .container { padding-bottom: 70px; }
  .chart-bar span { writing-mode: horizontal-tb; }
  .chart-month { display: none; }
  .chart-column time { white-space: nowrap; }
  .drawer-is-open { overflow: auto; }
  .admin-drawer-overlay { position: absolute; bottom: auto; min-height: 100dvh; }
  .admin-order-drawer { position: relative; min-height: 100dvh; }
  .order-drawer-body { overflow: visible; }
  .drawer-timeline { grid-template-columns: 1fr; }
  .drawer-timeline li { flex-direction: row; justify-content: space-between; padding-block: 5px; border-top-width: 1px; }
  .drawer-secondary { flex-direction: row; align-items: center; }
  .drawer-secondary button { text-align: center; flex: 1; }
}
/* Rows share their title height: one-line titles do not reserve an empty line. */
@supports (grid-template-rows: subgrid) {
  .product-grid { row-gap: 0; }
  .product-card { display: grid; grid-template-rows: subgrid; grid-row: span 4; gap: 0; padding-bottom: 32px; }
  .product-card__body { display: contents; }
  .product-card .product-category { padding-top: 15px; }
  .product-card h3 { height: auto; min-height: 0; max-height: 3.3em; margin-block: 4px 2px; }
  .product-card__buy { align-self: end; }
}
.form-grid .field { align-content: start; }
.panel > .form-section { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.timeline [data-timeline-state=complete].is-active strong { color: var(--success); }
.timeline [data-timeline-state=complete].is-active .timeline-dot { color: var(--success); background: var(--success-bg); border-color: var(--success); }
.drawer-timeline li:nth-child(5).is-active { color: var(--success); }
@media (max-width:600px) {
  .hero-float--product { display: none; }
  .product-card { padding-bottom: 28px; }
  .product-card .product-category { padding-top: 10px; }
  .product-card h3 { max-height: 3.2em; }
  .checkout-page .header-main .search-form { display: none; }
  .checkout-page .page-heading > .text-link { display: none; }
  .checkout-page .page-heading .eyebrow { display: none; }
  .checkout-page .page-heading { margin-bottom: 18px; }
  .order-page, .account-page { padding-bottom: 0; }
  .order-page .mobile-nav, .account-page .mobile-nav { position: static; }
}
