@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;650;700;750&display=swap');

:root {
  color-scheme: light;
  --brand: #7a2f00;
  --brand-hover: #642500;
  --brand-pressed: #4d1c00;
  --orange: #ff7a1a;
  --gold: #ffb641;
  --cream: #fff7ef;
  --page: #faf9f7;
  --surface: #ffffff;
  --surface-2: #f5f1ec;
  --heading: #241c18;
  --body: #40362f;
  --muted: #77716c;
  --border: #e8e2dc;
  --success: #16845a;
  --warning: #c77b16;
  --danger: #c63838;
  --info: #2563eb;
  --shadow: 0 4px 20px rgba(36, 28, 24, .05);
  --shadow-lg: 0 12px 40px rgba(36, 28, 24, .12);
  --max-width: 1280px;
  --header-height: 72px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

:root.theme-dark {
  color-scheme: dark;
  --page: #15120f;
  --surface: #211b17;
  --surface-2: #2d2520;
  --cream: #2a211b;
  --heading: #f8f4ef;
  --body: #e0d8d1;
  --muted: #b5aaa1;
  --border: #40352e;
  --brand: #ffa260;
  --brand-hover: #ffb37a;
  --brand-pressed: #e78542;
  --shadow: 0 4px 24px rgba(0,0,0,.2);
  --shadow-lg: 0 18px 48px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--page); }
body { min-width: 320px; min-height: 100%; margin: 0; color: var(--body); background: var(--page); font-size: 15px; line-height: 1.52; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--orange) 75%, white); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 10000; left: 16px; top: -64px; padding: 10px 14px; border-radius: 10px; background: var(--heading); color: var(--surface); transition: top .15s ease; }
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute!important; width: 1px!important; height: 1px!important; overflow: hidden!important; clip: rect(1px,1px,1px,1px)!important; white-space: nowrap!important; }
.hidden { display: none!important; }

#app { min-height: 100vh; }
.app-shell { min-height: 100vh; padding-bottom: 0; }
.content-wrap { width: min(var(--max-width), calc(100% - 64px)); margin: 0 auto; }

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--heading); min-width: max-content; font-weight: 750; letter-spacing: -.045em; }
.brand-mark { width: 38px; height: 38px; border-radius: 13px; display: inline-grid; place-items: center; overflow: hidden; flex: 0 0 auto; background: linear-gradient(145deg, var(--brand), #aa480c); color: #fff; box-shadow: 0 6px 16px rgba(122,47,0,.22); }
.brand-mark svg { width: 31px; height: 31px; display: block; }
.brand-name { font-size: 20px; line-height: 1; }
.brand-tag { color: var(--orange); font-size: 9px; letter-spacing: .12em; font-weight: 700; margin-left: -3px; margin-top: 13px; }

/* Header / navigation */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-height); display: flex; align-items: center; background: color-mix(in srgb, var(--page) 88%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent); backdrop-filter: blur(18px); }
.header-row { display: grid; grid-template-columns: auto minmax(220px, 520px) auto; align-items: center; gap: 24px; width: 100%; }
.desktop-nav { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.nav-link { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; padding: 9px 10px; border-radius: 10px; color: var(--body); font-weight: 600; font-size: 14px; transition: background .15s ease,color .15s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--brand); background: var(--surface-2); }
.nav-link .badge-count { margin-left: -3px; }
.avatar, .avatar-initial { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, var(--gold), var(--orange)); color: #492000; font-weight: 750; font-size: 13px; border: 2px solid var(--surface); }
.avatar.large { width: 48px; height: 48px; font-size: 16px; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-button { width: 40px; height: 40px; border: 0; border-radius: 11px; display: inline-grid; place-items: center; color: var(--body); background: transparent; transition: background .15s ease, transform .1s ease; }
.icon-button:hover { background: var(--surface-2); }
.icon-button:active { transform: scale(.96); }
.icon-button svg, .nav-link svg, .bottom-link svg, .inline-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cart-icon-btn { position: relative; }
.badge-count { min-width: 17px; height: 17px; padding: 0 4px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--brand); color: #fff; font-size: 10px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-icon-btn .badge-count { position: absolute; top: 2px; right: 1px; }

.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-input { width: 100%; height: 44px; border: 1px solid var(--border); border-radius: 13px; padding: 0 14px 0 42px; background: var(--surface); color: var(--heading); outline: none; transition: border .15s ease, box-shadow .15s ease, background .15s ease; }
.search-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.mobile-search-row { display: none; }

.bottom-nav { display: none; }

/* Generic layout / section */
main { padding: 32px 0 56px; }
.page-stack { display: grid; gap: 32px; }
.page-heading { margin: 0; color: var(--heading); font-size: clamp(26px, 3vw, 30px); letter-spacing: -.04em; line-height: 1.25; font-weight: 750; }
.page-subtitle { max-width: 680px; margin: 8px 0 0; color: var(--muted); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading { margin: 0; color: var(--heading); font-size: 24px; line-height: 1.32; letter-spacing: -.03em; font-weight: 700; }
.section-desc { margin: 4px 0 0; color: var(--muted); }
.eyebrow { margin: 0 0 7px; color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }

/* Buttons */
.button { min-height: 44px; border: 1px solid transparent; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; font-weight: 650; font-size: 14px; line-height: 20px; text-align: center; transition: background .15s ease, border .15s ease, transform .1s ease, color .15s ease; }
.button:active { transform: translateY(1px) scale(.985); }
.button.primary { min-height: 48px; color: #fff; background: var(--brand); box-shadow: 0 5px 12px color-mix(in srgb, var(--brand) 20%, transparent); }
.button.primary:hover { background: var(--brand-hover); }
.button.secondary { color: var(--brand); background: var(--surface-2); }
.button.secondary:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--brand) 10%); }
.button.outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.button.outline:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.button.ghost { color: var(--brand); background: transparent; }
.button.ghost:hover { background: var(--surface-2); }
.button.danger { background: var(--danger); color: #fff; }
.button.small { min-height: 36px; padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.button.full { width: 100%; }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.text-link { color: var(--brand); font-weight: 650; font-size: 14px; }
.text-link:hover { text-decoration: underline; }

/* Hero */
.hero { position: relative; min-height: 320px; overflow: hidden; display: flex; align-items: center; padding: 40px clamp(24px, 5vw, 64px); border-radius: 28px; color: #fff; background: radial-gradient(circle at 74% 23%, rgba(255,182,65,.92) 0 5%, transparent 26%), radial-gradient(circle at 82% 89%, rgba(255,122,26,.85) 0 8%, transparent 29%), linear-gradient(118deg, #572000 0%, #7a2f00 51%, #984307 100%); box-shadow: 0 18px 42px rgba(76,29,0,.16); }
.hero:before { content: ""; position: absolute; width: 390px; height: 390px; right: -58px; bottom: -188px; border: 32px solid rgba(255,255,255,.1); border-radius: 50%; }
.hero:after { content: ""; position: absolute; width: 244px; height: 244px; right: 7%; top: -113px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.hero-copy { position: relative; z-index: 1; max-width: 585px; }
.hero .eyebrow { color: #ffd7ad; }
.hero h1 { max-width: 560px; margin: 0; color: #fff; font-size: clamp(34px, 4vw, 44px); font-weight: 750; line-height: 1.1; letter-spacing: -.055em; }
.hero p { max-width: 520px; margin: 16px 0 24px; color: rgba(255,255,255,.84); font-size: 16px; }
.hero .button.primary { background: #fff; color: var(--brand-pressed); box-shadow: none; }
.hero .button.primary:hover { background: #fff3e8; }
.hero .button.outline { border-color: rgba(255,255,255,.72); color: #fff; }
.hero .button.outline:hover { background: rgba(255,255,255,.12); }
.hero-visual { position: absolute; z-index: 1; right: clamp(16px, 6vw, 98px); bottom: 25px; width: min(31vw, 355px); pointer-events: none; }
.hero-visual .delivery-orb { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; background: radial-gradient(circle at 36% 26%, rgba(255,255,255,.5), rgba(255,255,255,.09) 41%, transparent 68%); transform: rotate(-7deg); }
.hero-visual .cloche { position: relative; width: 62%; height: 47%; margin-top: 21%; border: 7px solid #fff7ef; border-bottom-width: 12px; border-radius: 52% 52% 11px 11px; opacity: .96; }
.hero-visual .cloche:before { content: ""; position: absolute; width: 18%; aspect-ratio: 1; left: 41%; top: -27%; border-radius: 50%; background: #fff7ef; }
.hero-visual .cloche:after { content: ""; position: absolute; width: 115%; height: 8px; left: -7.5%; bottom: -20px; border-radius: 99px; background: #fff7ef; }
.speed-streak { position: absolute; right: 56%; top: 50%; width: 34%; height: 8px; border-radius: 99px; background: var(--gold); box-shadow: -30px -19px 0 -1px var(--orange), -43px 21px 0 -1px rgba(255,255,255,.86); }

/* Chips / status */
.chip-row { display: flex; gap: 8px; overflow: auto; padding: 1px 1px 4px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 36px; padding: 7px 13px; border: 1px solid var(--border); border-radius: 999px; color: var(--body); background: var(--surface); font-size: 13px; font-weight: 600; transition: color .15s ease, background .15s ease, border .15s ease; }
.chip:hover, .chip.is-active { color: #fff; border-color: var(--brand); background: var(--brand); }
.status-badge { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; min-height: 25px; padding: 4px 9px; border-radius: 999px; color: var(--muted); background: var(--surface-2); font-size: 12px; line-height: 1.2; font-weight: 650; white-space: nowrap; }
.status-badge:before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: currentColor; }
.status-badge.success { color: var(--success); background: color-mix(in srgb, var(--success) 11%, var(--surface)); }
.status-badge.warning { color: var(--warning); background: color-mix(in srgb, var(--warning) 12%, var(--surface)); }
.status-badge.danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.status-badge.info { color: var(--info); background: color-mix(in srgb, var(--info) 10%, var(--surface)); }

/* Cards / grids */
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.card { border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.store-card { overflow: hidden; transition: transform .16s ease, box-shadow .16s ease; }
.store-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.store-cover { position: relative; height: 132px; overflow: hidden; background: linear-gradient(132deg, var(--brand), #c86c26 56%, var(--gold)); }
.store-cover:before { content: ""; position: absolute; width: 180px; height: 180px; right: -36px; top: -82px; border: 24px solid rgba(255,255,255,.18); border-radius: 50%; }
.store-cover img { width: 100%; height: 100%; object-fit: cover; }
.store-info { position: relative; padding: 0 16px 16px; }
.store-avatar { width: 62px; height: 62px; margin-top: -31px; display: grid; place-items: center; overflow: hidden; border: 3px solid var(--surface); border-radius: 20px; color: #fff; background: var(--brand); font-weight: 750; font-size: 20px; box-shadow: 0 4px 16px rgba(0,0,0,.13); }
.store-avatar img { width: 100%; height: 100%; object-fit: cover; }
.store-card h3 { margin: 12px 0 4px; color: var(--heading); font-size: 17px; line-height: 1.3; letter-spacing: -.02em; }
.store-card p { min-height: 44px; margin: 0 0 13px; color: var(--muted); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.store-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.product-card { position: relative; overflow: hidden; display: flex; flex-direction: column; transition: transform .16s ease, box-shadow .16s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-image { position: relative; display: grid; min-height: 192px; place-items: center; overflow: hidden; background: linear-gradient(145deg, #fff0df, #f3d4b9); }
.product-image[data-tone="orange"] { background: linear-gradient(145deg, #ffe6ca, #ffb66b); }
.product-image[data-tone="sage"] { background: linear-gradient(145deg, #e5eee2, #b2c9a7); }
.product-image[data-tone="lilac"] { background: linear-gradient(145deg, #f0e7f4, #c9b1d1); }
.product-image[data-tone="blue"] { background: linear-gradient(145deg, #e1edf5, #a8c5d6); }
.product-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.product-image .product-placeholder { position: relative; width: 83px; height: 83px; display: grid; place-items: center; border-radius: 28px 28px 24px 24px; background: rgba(255,255,255,.48); color: var(--brand); font-size: 32px; font-weight: 750; transform: rotate(-7deg); box-shadow: 0 10px 28px rgba(81,42,14,.12); }
.product-image .product-placeholder:before { content: ""; position: absolute; width: 45px; height: 13px; top: -9px; border: 6px solid currentColor; border-bottom: 0; border-radius: 99px 99px 0 0; opacity: .4; }
.product-image .image-badge { position: absolute; z-index: 1; left: 10px; top: 10px; }
.favorite-button { position: absolute; z-index: 1; right: 9px; top: 9px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--brand); background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(8px); }
.favorite-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.favorite-button.is-favorite svg { fill: currentColor; }
.product-info { display: flex; flex: 1; flex-direction: column; padding: 14px; }
.product-store { display: block; color: var(--muted); font-size: 12px; line-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card h3 { min-height: 42px; margin: 4px 0 7px; color: var(--heading); font-size: 15px; line-height: 1.4; letter-spacing: -.015em; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.price { color: var(--heading); font-weight: 750; font-size: 17px; line-height: 24px; font-variant-numeric: tabular-nums; }
.compare-price { color: var(--muted); text-decoration: line-through; font-size: 12px; }
.product-actions { display: flex; gap: 8px; margin-top: 11px; }
.product-actions .button { flex: 1; }

/* Form primitives */
.form-card { padding: 24px; }
.form-section + .form-section { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--border); }
.form-section h2 { margin: 0; color: var(--heading); font-size: 19px; letter-spacing: -.025em; }
.form-section > p { margin: 5px 0 18px; color: var(--muted); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field-label { color: var(--heading); font-size: 13px; font-weight: 650; }
.field-note { color: var(--muted); font-size: 12px; line-height: 18px; }
.field-error { color: var(--danger); font-size: 12px; line-height: 18px; }
.input, .select, .textarea { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; outline: none; color: var(--heading); background: var(--surface); transition: border .15s ease, box-shadow .15s ease; }
.textarea { min-height: 120px; padding-top: 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 14px; top: 50%; color: var(--muted); transform: translateY(-50%); font-size: 13px; }
.input-prefix .input { padding-left: 49px; }
.toggle { display: inline-flex; align-items: center; gap: 11px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.switch { position: relative; width: 42px; height: 25px; display: inline-block; border-radius: 999px; background: var(--border); transition: background .15s ease; }
.switch:after { content: ""; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .15s ease; }
.toggle input:checked + .switch { background: var(--brand); }
.toggle input:checked + .switch:after { transform: translateX(17px); }
.radio-card { width: 100%; min-height: 72px; padding: 14px 15px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 14px; color: var(--body); background: var(--surface); text-align: left; }
.radio-card.is-selected { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, var(--surface)); box-shadow: 0 0 0 1px var(--brand); }
.payment-icon { width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center; color: var(--brand); background: var(--cream); }
.payment-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.radio-card strong { display: block; color: var(--heading); font-size: 14px; }
.radio-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 17px; }
.radio-indicator { width: 19px; height: 19px; border: 1.5px solid var(--border); border-radius: 50%; }
.radio-card.is-selected .radio-indicator { border: 5px solid var(--brand); }
.upload-zone { min-height: 132px; padding: 20px; border: 1.5px dashed color-mix(in srgb, var(--brand) 48%, var(--border)); border-radius: 14px; display: grid; place-items: center; color: var(--muted); background: color-mix(in srgb, var(--cream) 45%, transparent); text-align: center; }
.upload-zone svg { width: 28px; height: 28px; margin-bottom: 8px; color: var(--brand); fill: none; stroke: currentColor; stroke-width: 1.8; }
.upload-zone p { margin: 0; font-size: 13px; }
.upload-zone button { color: var(--brand); border: 0; padding: 0; background: none; font: inherit; font-weight: 650; }
.image-preview-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.image-preview { position: relative; width: 82px; height: 82px; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview button { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; color: #fff; background: rgba(0,0,0,.62); }

/* Empty / state */
.empty-state { min-height: 238px; padding: 36px 24px; border: 1px dashed var(--border); border-radius: 20px; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 75%, var(--cream)); text-align: center; }
.empty-state > div { max-width: 390px; }
.empty-art { width: 62px; height: 62px; margin: 0 auto 15px; border-radius: 22px; display: grid; place-items: center; color: var(--brand); background: var(--cream); }
.empty-art svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.empty-state h2 { margin: 0; color: var(--heading); font-size: 19px; letter-spacing: -.025em; }
.empty-state p { margin: 7px 0 18px; color: var(--muted); }
.info-callout { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1px solid color-mix(in srgb, var(--info) 22%, var(--border)); border-radius: 12px; color: color-mix(in srgb, var(--info) 82%, var(--heading)); background: color-mix(in srgb, var(--info) 8%, var(--surface)); font-size: 13px; }
.info-callout svg { flex: 0 0 auto; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.warning-callout { border-color: color-mix(in srgb, var(--warning) 25%, var(--border)); color: color-mix(in srgb, var(--warning) 85%, var(--heading)); background: color-mix(in srgb, var(--warning) 9%, var(--surface)); }

/* Shop / product detail */
.shop-hero { overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.shop-banner { position: relative; height: 228px; background: linear-gradient(118deg, var(--brand), #b64d13 60%, var(--gold)); }
.shop-banner img { width: 100%; height: 100%; object-fit: cover; }
.shop-banner:after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,12,4,.23), transparent 45%); }
.shop-identity { position: relative; padding: 0 24px 24px; }
.shop-identity .store-avatar { width: 92px; height: 92px; margin-top: -46px; border-radius: 27px; font-size: 31px; }
.shop-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 14px; }
.shop-title-row h1 { margin: 0; color: var(--heading); font-size: 28px; line-height: 1.2; letter-spacing: -.04em; }
.shop-title-row p { max-width: 720px; margin: 6px 0 0; color: var(--muted); }
.shop-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sort-select { height: 38px; max-width: 160px; padding: 0 26px 0 10px; border: 1px solid var(--border); border-radius: 10px; color: var(--body); background: var(--surface); font-size: 13px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs span:last-child { color: var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); align-items: start; gap: 40px; }
.gallery-primary { position: relative; min-height: 450px; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; display: grid; place-items: center; background: linear-gradient(145deg, #fff0df, #f3d4b9); }
.gallery-primary img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.gallery-primary .product-placeholder { width: 170px; height: 170px; display: grid; place-items: center; border-radius: 52px 52px 46px 46px; color: var(--brand); background: rgba(255,255,255,.48); font-size: 68px; font-weight: 750; transform: rotate(-7deg); box-shadow: 0 20px 40px rgba(81,42,14,.12); }
.gallery-primary .product-placeholder:before { content: ""; position: absolute; width: 92px; height: 23px; top: -17px; border: 11px solid currentColor; border-bottom: 0; border-radius: 99px 99px 0 0; opacity: .4; }
.gallery-thumbnails { display: flex; gap: 10px; margin-top: 12px; overflow: auto; }
.gallery-thumb { width: 66px; height: 66px; padding: 0; flex: 0 0 auto; overflow: hidden; border: 2px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.gallery-thumb.is-active { border-color: var(--brand); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info { position: sticky; top: 104px; }
.product-detail-info h1 { margin: 5px 0 6px; color: var(--heading); font-size: 31px; line-height: 1.2; letter-spacing: -.045em; }
.product-detail-info .detail-store { color: var(--brand); font-weight: 650; }
.detail-price { margin: 18px 0; color: var(--heading); font-size: 28px; font-weight: 750; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.detail-rule { margin: 20px 0; border: 0; border-top: 1px solid var(--border); }
.detail-label { display: block; margin: 0 0 8px; color: var(--heading); font-size: 13px; font-weight: 650; }
.variant-row { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-choice { min-height: 38px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 10px; color: var(--body); background: var(--surface); font-size: 13px; font-weight: 600; }
.variant-choice.is-selected { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); }
.quantity-control { display: inline-flex; align-items: center; height: 42px; overflow: hidden; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.quantity-control button { width: 38px; height: 100%; border: 0; color: var(--brand); background: transparent; font-size: 20px; }
.quantity-control span { min-width: 31px; color: var(--heading); text-align: center; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.fulfillment-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 12px; background: var(--surface-2); color: var(--body); font-size: 13px; }

/* Cart & checkout */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 24px; }
.cart-list { display: grid; gap: 14px; }
.cart-store-group { overflow: hidden; }
.cart-store-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.cart-store-head strong { color: var(--heading); font-size: 14px; }
.cart-item { display: grid; grid-template-columns: 92px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; }
.cart-item + .cart-item { border-top: 1px solid var(--border); }
.cart-item-image { width: 92px; height: 76px; overflow: hidden; border-radius: 12px; display: grid; place-items: center; color: var(--brand); background: var(--cream); font-weight: 750; font-size: 24px; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h3 { margin: 0; color: var(--heading); font-size: 15px; }
.cart-item p { margin: 3px 0 10px; color: var(--muted); font-size: 12px; }
.cart-item-side { display: grid; justify-items: end; gap: 10px; }
.remove-button { border: 0; padding: 3px; color: var(--danger); background: none; font-size: 12px; font-weight: 650; }
.summary-card { padding: 20px; position: sticky; top: 104px; }
.summary-card h2 { margin: 0 0 16px; color: var(--heading); font-size: 18px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 10px 0; color: var(--body); font-size: 14px; }
.summary-row strong { color: var(--heading); font-variant-numeric: tabular-nums; }
.summary-total { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 17px; font-weight: 750; }
.summary-total strong { font-size: 19px; }
.checkout-progress { display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; margin: 0 0 24px; }
.progress-step { position: relative; padding: 0 4px 12px; border-bottom: 3px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 650; }
.progress-step.is-current, .progress-step.is-done { border-color: var(--brand); color: var(--brand); }
.checkout-card { max-width: 900px; margin: 0 auto; }
.checkout-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.order-success { max-width: 680px; margin: 36px auto; padding: 48px 28px; text-align: center; }
.success-symbol { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; color: #fff; background: var(--success); box-shadow: 0 9px 22px color-mix(in srgb, var(--success) 25%, transparent); }
.success-symbol svg { width: 35px; height: 35px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.order-success h1 { margin: 0; color: var(--heading); font-size: 30px; letter-spacing: -.045em; }
.order-success p { max-width: 450px; margin: 9px auto 23px; color: var(--muted); }
.order-success-details { margin: 25px 0; padding: 16px; border-radius: 14px; background: var(--surface-2); text-align: left; }

/* Orders */
.orders-list { display: grid; gap: 13px; }
.order-card { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px; }
.order-thumb { width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; border-radius: 13px; color: var(--brand); background: var(--cream); font-weight: 750; }
.order-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-card h3 { margin: 0; color: var(--heading); font-size: 15px; }
.order-card p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.order-meta { min-width: 150px; display: grid; justify-items: end; gap: 7px; }
.timeline { display: grid; gap: 0; margin: 20px 0; }
.timeline-item { position: relative; min-height: 58px; padding: 0 0 21px 38px; color: var(--muted); }
.timeline-item:before { content: ""; position: absolute; left: 10px; top: 0; bottom: -2px; width: 2px; background: var(--border); }
.timeline-item:after { content: ""; position: absolute; left: 4px; top: 1px; width: 14px; height: 14px; border: 2px solid var(--border); border-radius: 50%; background: var(--surface); }
.timeline-item.is-done { color: var(--body); }
.timeline-item.is-done:before { background: var(--success); }
.timeline-item.is-done:after { border-color: var(--success); background: var(--success); box-shadow: inset 0 0 0 3px var(--surface); }
.timeline-item.is-current { color: var(--heading); font-weight: 650; }
.timeline-item.is-current:after { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3px var(--surface); }
.timeline-item strong { display: block; color: inherit; font-size: 14px; }
.timeline-item small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }

/* Wallet */
.wallet-layout { display: grid; grid-template-columns: minmax(0, 1fr) 1.3fr; align-items: start; gap: 24px; }
.wallet-card { overflow: hidden; padding: 24px; border-radius: 20px; color: #fff; background: radial-gradient(circle at 95% 10%, rgba(255,183,65,.65), transparent 29%), linear-gradient(137deg,#4d1c00,#7a2f00 58%,#a7470b); box-shadow: 0 16px 34px rgba(76,29,0,.18); }
.wallet-card p { margin: 0; color: rgba(255,255,255,.74); font-size: 13px; }
.wallet-balance { margin: 8px 0 18px; color: #fff; font-size: 32px; line-height: 1.1; letter-spacing: -.04em; font-weight: 750; font-variant-numeric: tabular-nums; }
.wallet-card .button { min-height: 38px; color: #fff; background: rgba(255,255,255,.13); }
.wallet-card .button:hover { background: rgba(255,255,255,.21); }
.wallet-panel { padding: 20px; }
.wallet-panel h2 { margin: 0 0 14px; color: var(--heading); font-size: 18px; }
.ledger-list { display: grid; gap: 0; }
.ledger-entry { display: grid; grid-template-columns: 37px 1fr auto; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ledger-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; color: var(--success); background: color-mix(in srgb, var(--success) 12%, var(--surface)); font-size: 17px; font-weight: 750; }
.ledger-icon.debit { color: var(--brand); background: var(--cream); }
.ledger-entry strong { display: block; color: var(--heading); font-size: 13px; }
.ledger-entry small { display: block; margin-top: 1px; color: var(--muted); font-size: 11px; }
.ledger-entry > span:last-child { color: var(--heading); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lot-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.lot-card + .lot-card { margin-top: 9px; }
.lot-card strong { display: block; color: var(--heading); font-size: 13px; }
.lot-card small { display: block; color: var(--muted); font-size: 12px; }

/* Admin */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0,1fr); background: var(--page); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; padding: 20px 12px; overflow-y: auto; border-right: 1px solid var(--border); background: var(--surface); }
.admin-sidebar .brand { padding: 0 10px 19px; }
.admin-nav-group { padding: 13px 0; border-top: 1px solid var(--border); }
.admin-nav-group:first-of-type { border-top: 0; }
.admin-nav-label { padding: 0 10px 6px; color: var(--muted); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; }
.admin-nav-link { width: 100%; min-height: 39px; padding: 8px 10px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 10px; color: var(--body); background: transparent; text-align: left; font-size: 13px; font-weight: 600; }
.admin-nav-link:hover, .admin-nav-link.is-active { color: var(--brand); background: var(--cream); }
.admin-nav-link svg { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; }
.admin-main { min-width: 0; }
.admin-topbar { height: 64px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--page) 87%, transparent); backdrop-filter: blur(16px); }
.admin-topbar h1 { margin: 0; color: var(--heading); font-size: 16px; letter-spacing: -.02em; }
.admin-topbar-actions { display: flex; align-items: center; gap: 8px; }
.admin-content { width: min(100%, 1480px); margin: 0 auto; padding: 32px; }
.admin-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.admin-intro p { margin: 6px 0 0; color: var(--muted); }
.kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.kpi-card { padding: 18px; }
.kpi-card small { display: block; color: var(--muted); font-size: 12px; }
.kpi-card strong { display: block; margin-top: 6px; color: var(--heading); font-size: 25px; line-height: 1.15; font-weight: 750; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.admin-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(290px,.6fr); gap: 18px; margin-top: 18px; }
.admin-section-card { overflow: hidden; }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px; border-bottom: 1px solid var(--border); }
.admin-section-head h2 { margin: 0; color: var(--heading); font-size: 16px; letter-spacing: -.02em; }
.table-scroll { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.data-table th { padding: 11px 16px; color: var(--muted); background: var(--surface-2); font-size: 11px; text-align: left; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.data-table td { padding: 13px 16px; border-top: 1px solid var(--border); color: var(--body); font-size: 13px; vertical-align: middle; }
.data-table td strong { color: var(--heading); }
.admin-actions { display: flex; gap: 5px; justify-content: flex-end; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.filter-row .search-wrap { width: min(360px, 100%); }
.filter-chips { display: flex; gap: 7px; overflow: auto; }
.admin-mobile-trigger { display: none; }

/* Modal / toast */
.modal-backdrop { position: fixed; z-index: 500; inset: 0; padding: 20px; display: grid; place-items: center; background: rgba(27,18,12,.45); backdrop-filter: blur(4px); }
.modal { width: min(100%, 560px); max-height: min(760px, calc(100vh - 40px)); overflow: auto; padding: 24px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-lg); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.modal-head h2 { margin: 0; color: var(--heading); font-size: 21px; letter-spacing: -.03em; }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.toast-stack { position: fixed; z-index: 800; right: 20px; bottom: 24px; display: grid; gap: 9px; width: min(390px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--border); border-radius: 14px; color: var(--heading); background: var(--surface); box-shadow: var(--shadow-lg); animation: toast-in .2s ease both; }
.toast .toast-symbol { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--success); font-size: 15px; font-weight: 750; }
.toast.warning .toast-symbol { background: var(--warning); }
.toast.error .toast-symbol { background: var(--danger); }
.toast strong { display: block; font-size: 13px; }
.toast p { margin: 1px 0 0; color: var(--muted); font-size: 12px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Skeleton */
.skeleton { overflow: hidden; position: relative; border-radius: 10px; background: var(--surface-2); }
.skeleton:after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg,transparent,rgba(255,255,255,.34),transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* Footer */
.site-footer { margin-top: 8px; padding: 38px 0 28px; border-top: 1px solid var(--border); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-copy { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--brand); }

/* Setup / sign in */
.setup-panel { max-width: 660px; margin: 28px auto; padding: 32px; text-align: center; }
.setup-panel .brand-mark { width: 52px; height: 52px; margin: 0 auto 17px; border-radius: 17px; }
.setup-panel h1 { margin: 0; color: var(--heading); font-size: 29px; letter-spacing: -.045em; }
.setup-panel p { margin: 8px auto 20px; max-width: 480px; color: var(--muted); }
.setup-list { margin: 20px 0; padding: 0; display: grid; gap: 9px; list-style: none; text-align: left; }
.setup-list li { display: flex; align-items: flex-start; gap: 9px; padding: 10px; border-radius: 11px; background: var(--surface-2); color: var(--body); font-size: 13px; }
.setup-list li span { color: var(--brand); font-weight: 750; }
.preview-banner { margin-bottom: 18px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--warning) 27%, var(--border)); border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: color-mix(in srgb, var(--warning) 85%, var(--heading)); background: color-mix(in srgb, var(--warning) 9%, var(--surface)); font-size: 12px; }
.preview-banner strong { font-weight: 750; }

@media (max-width: 1120px) {
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .store-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kpi-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .hero-visual { opacity: .78; right: 32px; }
}

@media (max-width: 1023px) {
  .desktop-nav .nav-text { display: none; }
  .header-row { grid-template-columns: auto minmax(180px,1fr) auto; gap: 14px; }
  .admin-shell { grid-template-columns: 208px minmax(0,1fr); }
  .admin-sidebar { padding-inline: 8px; }
}

@media (max-width: 767px) {
  :root { --header-height: 60px; }
  body { font-size: 14px; }
  .content-wrap { width: calc(100% - 32px); }
  .app-shell { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .site-header { height: 60px; }
  .header-row { grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
  .brand-mark svg { width: 28px; height: 28px; }
  .brand-name { font-size: 18px; }
  .brand-tag { display: none; }
  .header-row > .search-wrap { display: none; }
  .desktop-nav { display: none; }
  .header-actions .cart-icon-btn { display: none; }
  .mobile-search-row { display: block; padding: 8px 0; border-bottom: 1px solid var(--border); background: var(--page); }
  .mobile-search-row .content-wrap { width: calc(100% - 32px); }
  .bottom-nav { position: fixed; z-index: 140; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,1fr); border-top: 1px solid var(--border); background: color-mix(in srgb,var(--surface) 91%,transparent); backdrop-filter: blur(18px); box-shadow: 0 -6px 24px rgba(36,28,24,.06); }
  .bottom-link { min-width: 0; height: 64px; display: grid; place-items: center; align-content: center; gap: 2px; color: var(--muted); font-size: 10px; font-weight: 600; }
  .bottom-link.is-active { color: var(--brand); }
  .bottom-link svg { width: 21px; height: 21px; }
  .bottom-link .cart-mobile-count { position: absolute; margin: -20px 0 0 19px; }
  main { padding: 22px 0 34px; }
  .page-stack { gap: 26px; }
  .section-heading { font-size: 20px; }
  .section-heading-row { align-items: center; margin-bottom: 12px; }
  .hero { min-height: 220px; padding: 27px 22px; border-radius: 21px; }
  .hero h1 { max-width: 285px; font-size: 31px; }
  .hero p { max-width: 290px; margin: 10px 0 17px; font-size: 13px; line-height: 1.5; }
  .hero .button { min-height: 40px; padding-inline: 12px; font-size: 12px; }
  .hero-visual { right: -37px; bottom: -12px; width: 186px; opacity: .72; }
  .store-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .store-card { display: grid; grid-template-columns: 108px minmax(0,1fr); overflow: hidden; }
  .store-cover { height: 100%; min-height: 163px; }
  .store-info { padding: 13px 12px; }
  .store-avatar { position: absolute; width: 44px; height: 44px; margin: 0; top: 10px; left: -31px; border-radius: 14px; font-size: 14px; }
  .store-card h3 { margin-top: 0; }
  .store-card p { min-height: auto; margin-bottom: 9px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .product-image { min-height: 145px; }
  .product-image .product-placeholder { width: 65px; height: 65px; border-radius: 22px 22px 19px 19px; font-size: 25px; }
  .product-image .product-placeholder:before { width: 34px; height: 10px; top: -7px; border-width: 5px; }
  .product-info { padding: 11px; }
  .product-card h3 { min-height: 39px; margin-top: 3px; font-size: 13px; }
  .price { font-size: 15px; }
  .product-actions { margin-top: 8px; }
  .product-actions .button { min-height: 36px; padding: 7px 6px; font-size: 12px; }
  .form-card { padding: 17px; }
  .form-grid { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .field.full { grid-column: auto; }
  .form-section + .form-section { margin-top: 24px; padding-top: 22px; }
  .shop-banner { height: 154px; }
  .shop-identity { padding: 0 16px 17px; }
  .shop-identity .store-avatar { width: 72px; height: 72px; margin-top: -36px; border-radius: 22px; font-size: 24px; }
  .shop-title-row { margin-top: 10px; }
  .shop-title-row h1 { font-size: 23px; }
  .shop-title-row .status-badge { margin-top: 2px; }
  .shop-controls { align-items: stretch; flex-direction: column; }
  .sort-select { max-width: none; }
  .product-detail { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .gallery-primary { min-height: 332px; }
  .gallery-primary .product-placeholder { width: 130px; height: 130px; font-size: 52px; border-radius: 40px 40px 34px 34px; }
  .gallery-primary .product-placeholder:before { width: 71px; height: 18px; top: -13px; border-width: 9px; }
  .product-detail-info { position: static; }
  .product-detail-info h1 { font-size: 27px; }
  .cart-layout, .wallet-layout { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .summary-card { position: static; }
  .cart-item { grid-template-columns: 66px minmax(0,1fr); gap: 10px; }
  .cart-item-image { width: 66px; height: 66px; }
  .cart-item-side { grid-column: 2; grid-row: 2; justify-items: start; grid-template-columns: auto auto; align-items: center; }
  .checkout-progress { margin-bottom: 18px; }
  .progress-step { padding-bottom: 8px; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .checkout-actions { flex-direction: column-reverse; }
  .checkout-actions .button { width: 100%; }
  .order-card { grid-template-columns: 52px minmax(0,1fr); gap: 11px; }
  .order-thumb { width: 52px; height: 52px; }
  .order-meta { grid-column: 2; justify-items: start; grid-template-columns: 1fr auto; width: 100%; min-width: 0; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 12px; }
  .toast-stack { right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { max-height: min(88vh, 760px); width: 100%; padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
  .admin-shell { display: block; min-height: 100vh; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .admin-sidebar { display: none; }
  .admin-topbar { height: 60px; padding: 0 16px; position: sticky; top: 0; z-index: 90; }
  .admin-mobile-trigger { display: inline-grid; }
  .admin-content { padding: 22px 16px; }
  .admin-intro { display: block; }
  .admin-intro .button-row { margin-top: 16px; }
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .kpi-card { padding: 14px; }
  .kpi-card strong { font-size: 21px; }
  .admin-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .filter-row { display: grid; }
  .filter-row .search-wrap { width: 100%; }
  .setup-panel { margin: 10px auto; padding: 24px 17px; }
}

@media (max-width: 390px) {
  .hero-visual { display: none; }
  .hero h1, .hero p { max-width: none; }
  .product-grid { gap: 9px; }
  .product-info { padding: 9px; }
  .price { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto!important; animation-duration: .001ms!important; animation-iteration-count: 1!important; transition-duration: .001ms!important; }
}
