:root { --primary: #243447; --accent: #d99b2b; --ink: #17202a; --muted: #68727d; --line: #e4e7eb; --surface: #f6f7f8; --white: #fff; --danger: #a93226; --radius: 14px; }
* { box-sizing: border-box; }
html { color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
body { margin: 0; background: var(--white); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.narrow { width: min(680px, calc(100% - 32px)); }
.narrow-wide { width: min(860px, calc(100% - 32px)); }
.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.nav-wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-shrink: 0; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.15rem; }
.brand img { width: 71px; height: 71px; object-fit: contain; }
.nav-right { display: flex; min-width: 0; align-items: center; gap: 18px; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
nav a, .link-button { color: var(--ink); font-weight: 600; }
.nav-icon { position: relative; display: inline-flex; align-items: center; }
.nav-icon svg { width: 23px; height: 23px; }
/* Sits on top of the icon rather than beside it, so a filled cart is no
   wider in the header than an empty one. */
.cart-count { position: absolute; top: -5px; right: -8px; min-width: 17px; padding: 0 4px; border-radius: 9px; background: var(--primary); color: #fff; font-size: .68rem; font-weight: 800; line-height: 17px; text-align: center; }
.nav-form { display: inline; margin: 0; }
.currency-form { margin: 0; }
.currency-form select { width: auto; padding: 5px 25px 5px 8px; border-radius: 6px; font-size: .82rem; font-weight: 750; }
/* Collapsed to the active flag in the header; the names only appear in the
   open panel, where the width costs no header space. */
.language-menu { position: relative; flex-shrink: 0; }
.language-menu summary { display: flex; align-items: center; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; list-style: none; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu[open] summary { background: var(--surface); }
.language-flag { font-size: 1.05rem; line-height: 1; }
.language-panel { position: absolute; z-index: 30; top: calc(100% + 6px); right: 0; display: grid; gap: 2px; min-width: 165px; margin: 0; padding: 6px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.language-option { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--ink); font-size: .9rem; font-weight: 600; text-align: left; cursor: pointer; }
.language-option:hover { background: var(--surface); }
.language-option.active { color: var(--primary); }
.nav-right nav { flex-wrap: nowrap; white-space: nowrap; }
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; cursor: pointer; list-style: none; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.account-panel { position: absolute; z-index: 30; top: calc(100% + 14px); right: 0; display: grid; gap: 2px; min-width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.account-panel a, .account-panel .link-button { display: block; width: 100%; padding: 9px 10px; border-radius: 6px; color: var(--ink); font: inherit; font-weight: 600; text-align: left; }
.account-panel a:hover, .account-panel .link-button:hover { background: var(--surface); text-decoration: none; }
.account-panel .nav-form { display: block; }
.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; }
.link-button { padding: 0; border: 0; background: none; cursor: pointer; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid var(--primary); border-radius: 9px; background: var(--primary); color: #fff; font-weight: 700; cursor: pointer; text-decoration: none; }
.button:hover { filter: brightness(1.08); text-decoration: none; }
.button-small { min-height: 36px; padding: 7px 13px; }
.button-wide { width: 100%; }
.button-secondary { border-color: var(--line); background: var(--white); color: var(--ink); }
.offline-page { padding-block: 64px; text-align: center; }
.offline-page p { color: var(--muted); margin-bottom: 24px; }
.install-app-button:not([hidden]) { display: inline-flex; align-items: center; gap: 6px; }
.install-app-button svg { width: 17px; height: 17px; }
.install-app-button[hidden] { display: none; }
/* iPhone install steps: a centered dialog, a bottom sheet on phones. */
.install-sheet { width: min(440px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: 0 20px 48px rgba(0,0,0,.2); }
.install-sheet::backdrop { background: rgba(15, 20, 25, .45); }
.install-sheet-body { display: grid; gap: 16px; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); }
.install-sheet h2 { margin: 0; font-size: 1.15rem; }
.install-steps { display: grid; gap: 12px; margin: 0; padding-left: 22px; line-height: 1.4; }
.install-steps svg { display: inline-block; width: 21px; height: 21px; vertical-align: -5px; color: #0a84ff; }
.install-steps small { display: block; margin-top: 2px; color: var(--muted); }
.install-note { margin: 0; color: var(--muted); font-size: .88rem; }
.install-sheet form { display: grid; margin: 0; }
.header-search { position: relative; flex: 1 1 280px; max-width: 540px; margin: 0; }
.header-search input { height: 42px; padding: 0 48px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); transition: background .15s, border-color .15s; }
.header-search input:hover { border-color: #cbd0d5; }
.header-search input:focus { background: #fff; }
.header-search input::-webkit-search-cancel-button { cursor: pointer; }
.header-search button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: var(--primary); color: #fff; cursor: pointer; }
.header-search button:hover { filter: brightness(1.15); }
.header-search svg { width: 17px; height: 17px; }
.hero { padding-block: 22px 24px; color: #fff; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #000)); text-align: center; }
.hero h1 { margin: 2px 0 0; font-size: clamp(1.15rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.eyebrow { margin: 0; color: var(--accent); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.shop-layout { display: grid; grid-template-columns: 210px 1fr; gap: 44px; padding-block: 52px 84px; }
.categories, .category-list { display: flex; flex-direction: column; gap: 6px; }
.app-back.category-back { display: none; }
.categories h2 { font-size: 1rem; margin: 0 0 10px; }
.categories a { padding: 9px 11px; border-radius: 8px; color: var(--ink); }
.categories a.active { background: var(--surface); font-weight: 750; }
.categories a.parent-active { font-weight: 700; }
.subcategories { display: flex; flex-direction: column; gap: 4px; margin-left: 11px; padding-left: 9px; border-left: 1px solid var(--line); }
.categories a.subcategory { padding: 7px 10px; font-size: .93rem; color: var(--muted); }
.categories a.subcategory.active { color: var(--ink); }
.tab-bar { display: none; }
.section-heading-side { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
/* A long category name wraps rather than pushing the filter button off screen. */
.section-heading h2 { min-width: 0; overflow-wrap: anywhere; }
.result-count { color: var(--muted); font-weight: 600; white-space: nowrap; }
.filter-button { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; }
.filter-button:hover { border-color: #cbd0d5; }
.filter-button svg { width: 18px; height: 18px; }
.filter-count { min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--primary); color: #fff; font-size: .72rem; line-height: 20px; text-align: center; }
/* Filter panel: a native <dialog>, docked right on wide screens and as a bottom sheet on phones. */
.filter-sheet { width: min(420px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; background: #fff; color: var(--ink); }
.filter-sheet::backdrop { background: rgba(15, 20, 25, .45); }
.filter-sheet form { display: grid; grid-template-rows: auto 1fr auto; height: 100%; margin: 0; }
.filter-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.filter-sheet-head h2 { margin: 0; font-size: 1.15rem; }
.filter-close { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.filter-close svg { width: 20px; height: 20px; }
.filter-sheet-body { display: grid; align-content: start; gap: 22px; padding: 18px; overflow-y: auto; }
.filter-sheet fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.filter-sheet legend { margin-bottom: 10px; padding: 0; font-weight: 750; }
.filter-sheet .choice-chip { position: relative; font-size: .92rem; }
.filter-sheet .choice-chip input { position: absolute; opacity: 0; pointer-events: none; }
.filter-sheet .choice-chip:has(input:checked) { border-color: var(--primary); background: var(--primary); color: #fff; }
.filter-sheet .choice-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.price-range { display: flex; align-items: end; gap: 10px; }
.price-range label { display: grid; flex: 1; gap: 4px; color: var(--muted); font-size: .82rem; }
.price-range input { width: 100%; min-width: 0; }
.price-range > span { padding-bottom: 10px; color: var(--muted); }
.filter-sheet-foot { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.app-page { padding-block: 32px 64px; }
.app-page-title { margin: 0 0 18px; font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -.02em; }
.app-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; color: var(--muted); font-weight: 600; }
.app-back svg { width: 18px; height: 18px; }
.category-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.category-tile { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 100px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-weight: 750; line-height: 1.25; overflow-wrap: normal; word-break: normal; hyphens: none; }
.category-tile:hover { border-color: #cbd0d5; text-decoration: none; }
.category-tile span { flex: 1 1 auto; min-width: min-content; }
.category-tile img { flex: 0 1 64px; min-width: 0; width: 64px; height: auto; aspect-ratio: 1; border-radius: 10px; background: #fff; object-fit: contain; }
.menu-list { display: grid; border-top: 1px solid var(--line); }
.menu-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
.menu-row:hover { background: var(--surface); text-decoration: none; }
.menu-row-text { display: grid; gap: 2px; }
.menu-row-text small { color: var(--muted); font-size: .88rem; }
.menu-chevron { flex-shrink: 0; width: 9px; height: 9px; margin-right: 6px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); }
.menu-heading { margin: 28px 0 10px; font-size: 1rem; }
.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.choice-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; }
.choice-chip.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.account-guest { display: grid; gap: 12px; }
.account-guest p { margin: 0; }
.menu-logout { margin-top: 32px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-heading h1, .section-heading h2 { margin: 0; }
.section-heading > span { color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20, 30, 40, .09); }
/* The whole photo is shown, scaled down to fit — never cropped. White matches
   the plain background most supplier product shots have. */
.product-image { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; color: var(--muted); }
/* Absolutely positioned so the box, not the photo, sets the size: a percentage
   height inside a grid item is ignored by some browsers, which then stretched
   tall photos to full width and cut them off. */
.product-image img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 10px; box-sizing: border-box; object-fit: contain; }
.product-card-body { padding: 18px; }
.product-card h3 { margin: 3px 0 15px; font-size: 1.08rem; }
.product-card h3 a { color: var(--ink); }
.muted { margin: 0; color: var(--muted); }
.price-row, .summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.stock { color: #24734b; font-size: .82rem; }
.product-card .price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.product-card .price-row > :last-child { justify-self: end; text-align: right; }
.wishlist-form { display: contents; }
.wishlist-toggle { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; margin: -8px 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, background .15s, transform .15s; }
.wishlist-toggle svg { width: 22px; height: 22px; fill: transparent; transition: fill .15s; }
.wishlist-toggle:hover { background: var(--surface); color: var(--danger); }
.wishlist-toggle:active { transform: scale(.88); }
.wishlist-toggle[aria-pressed="true"] { color: var(--danger); }
.wishlist-toggle[aria-pressed="true"] svg { fill: currentColor; }
.wishlist-toggle:disabled { opacity: .6; }
.detail-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.detail-title .wishlist-toggle { width: 46px; height: 46px; margin: 4px -6px 0 0; }
.detail-title .wishlist-toggle svg { width: 26px; height: 26px; }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 24px; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: .92rem; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.toast a { color: var(--accent); white-space: nowrap; }
.out-stock, .error-text, .danger { color: var(--danger); }
.page-section { min-height: 62vh; padding-block: 48px 80px; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 62px; padding-block: 52px 84px; }
.gallery { display: grid; gap: 12px; align-content: start; }
.gallery-main, .image-placeholder { width: 100%; border-radius: var(--radius); background: var(--surface); }
.gallery-main { max-height: 480px; object-fit: contain; }
.image-placeholder { display: grid; place-items: center; min-height: 320px; color: var(--muted); }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery-thumb { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: calc(var(--radius) - 4px); background: var(--surface); cursor: pointer; overflow: hidden; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.product-info { position: sticky; top: 104px; align-self: start; }
.product-info h1 { margin: 9px 0; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; }
.detail-price { margin: 18px 0; color: var(--primary); font-size: 1.3rem; font-weight: 800; }
.prose { color: #3c4650; }
.stack-form p { display: grid; gap: 6px; margin: 0 0 17px; }
.stack-form label, .cart-controls label { font-weight: 700; }
/* A consent checkbox sits left of its (long) label instead of alone below it. */
.stack-form p:has(> input[type="checkbox"]) { grid-template-columns: auto 1fr; align-items: start; column-gap: 10px; }
.stack-form p:has(> input[type="checkbox"]) > input { grid-row: 1; grid-column: 1; width: 20px; height: 20px; margin: 2px 0 0; }
.stack-form p:has(> input[type="checkbox"]) > label { grid-column: 2; font-weight: 500; }
.stack-form label a, .legal-consent a { text-decoration: underline; }
.stack-form p:has(> input[type="checkbox"]) > .errorlist { grid-column: 1 / -1; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #cbd0d5; border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent); border-color: var(--accent); }
.helptext { color: var(--muted); font-size: .82rem; }
.errorlist { margin: 3px 0; padding-left: 20px; color: var(--danger); }
.add-form { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.panel, .order-summary { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.panel h1, .panel h2, .order-summary h2 { margin-top: 0; }
.form-footer { margin: 22px 0 0; text-align: center; }
.alerts { padding-top: 14px; }
.alert { padding: 12px 15px; border-radius: 8px; background: #e9f2fc; }
.alert-success { background: #e6f5ed; }
.alert-error { background: #fdebea; color: #7d2119; }
.alert-warning { background: color-mix(in srgb, var(--accent) 16%, #fff); }
.empty-state { grid-column: 1 / -1; padding: 62px 24px; border: 1px dashed #cbd0d5; border-radius: var(--radius); text-align: center; }
.two-column { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.order-summary { position: sticky; top: 100px; background: var(--surface); }
.order-summary .summary-row { padding: 12px 0 20px; font-size: 1.15rem; }
.cart-list { display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 100px minmax(170px, 1fr) 120px 110px; align-items: center; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.cart-item h2 { margin: 0; font-size: 1rem; }
.cart-item p { margin: 4px 0; color: var(--muted); }
.cart-thumb { position: relative; display: block; height: 88px; border-radius: 8px; background: #fff; overflow: hidden; }
.cart-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 4px; box-sizing: border-box; object-fit: contain; }
.cart-controls { display: grid; gap: 6px; }
.cart-controls label { font-size: .78rem; }
.cart-controls input { padding: 7px; }
.cart-controls .button { min-height: 34px; padding: 5px; font-size: .82rem; }
.notice { padding: 14px 16px; border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 12%, #fff); }
.weight-notice { margin: 0 0 18px; }
.weight-notice a { font-weight: 600; white-space: nowrap; }
.top-gap { margin-top: 22px; }
address { font-style: normal; line-height: 1.75; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: var(--surface); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-block; padding: 4px 9px; border-radius: 999px; background: #edf0f2; font-size: .8rem; font-weight: 750; }
.status-confirmed, .status-completed { background: #dff3e8; color: #19623d; }
.status-rejected, .status-cancelled { background: #fae4e2; color: #8c2921; }
.order-title { margin-top: 26px; }
.order-line { display: flex; justify-content: space-between; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.order-line p { margin: 3px 0; color: var(--muted); }
.total-row { padding-top: 22px; font-size: 1.15rem; }
.conversation-list { display: grid; gap: 10px; }
.conversation-card { display: flex; justify-content: space-between; gap: 20px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.conversation-card:hover { border-color: var(--accent); text-decoration: none; }
.conversation-card div:first-child { display: grid; }
.conversation-card span { color: var(--muted); }
.conversation-meta { display: grid; text-align: right; color: var(--muted); font-size: .85rem; }
.conversation-card.has-unread { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, #fff); }
.conversation-card.has-unread strong { font-weight: 800; }
.unread-count { justify-self: end; min-width: 22px; padding: 0 7px; border-radius: 11px; background: var(--danger); color: #fff !important; font-size: .75rem; font-weight: 800; line-height: 22px; text-align: center; }
.nav-badge { display: inline-block; min-width: 18px; margin-left: 5px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center; vertical-align: 1px; }
.nav-badge[hidden] { display: none; }
.push-toggle.is-on { border-color: #19623d; color: #19623d; }
.push-toggle:disabled { opacity: .75; cursor: default; white-space: normal; text-align: left; }
.chat-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.chat-page { width: min(860px, calc(100% - 32px)); padding-block: 34px 60px; }
.chat-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.chat-header h1 { margin: 7px 0 0; }
.message-stream { height: min(58vh, 600px); overflow-y: auto; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; background: var(--surface); }
.message { width: min(78%, 620px); margin-bottom: 13px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 4px 13px 13px 13px; background: #fff; }
.message-mine { margin-left: auto; border: 0; border-radius: 13px 4px 13px 13px; background: var(--primary); color: #fff; }
.message-shop { border-left: 4px solid var(--accent); }
.message > div { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; }
.message time { opacity: .72; }
.message p { margin: 6px 0 0; white-space: pre-wrap; }
.empty-chat { display: grid; place-items: center; height: 100%; color: var(--muted); }
.chat-compose { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; padding: 14px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.chat-compose textarea { resize: vertical; }
.site-footer { padding: 38px 0; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; }
.footer-grid p { margin: 6px 0; color: var(--muted); }
.footer-legal { display: grid; gap: 6px; align-content: start; }
.legal-text { overflow-wrap: anywhere; }
.legal-text h1 { margin-bottom: 4px; font-size: clamp(1.35rem, 6vw, 2rem); line-height: 1.2; }
.legal-text h2 { margin: 28px 0 8px; font-size: 1.1rem; }
.legal-text h3 { margin: 18px 0 6px; font-size: 1rem; }
.legal-text p, .legal-text li { line-height: 1.6; }
.legal-text ol, .legal-text ul { padding-left: 1.4em; }
.legal-updated { color: var(--muted); font-size: .9rem; }
.legal-missing { padding: 0 3px; border-radius: 3px; background: #fde7a8; color: #5c4400; }
.legal-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 18px; }
.legal-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.legal-consent { margin: 12px 0 0; color: var(--muted); font-size: .88rem; }
/* Closed shop: the landing page guests see instead of the catalog. */
.landing-hero { padding-block: 72px 80px; color: #fff; background: radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 45%), linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 62%, #000)); }
.landing-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 56px; }
.landing-hero h1 { margin: 10px 0 18px; font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.landing-lead { max-width: 58ch; margin: 0; color: rgba(255,255,255,.84); font-size: 1.08rem; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.landing-cta { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.button-ghost { border-color: rgba(255,255,255,.45); background: transparent; color: #fff; }
.button-ghost:hover { background: rgba(255,255,255,.08); }
.landing-note { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; color: rgba(255,255,255,.7); font-size: .9rem; }
.landing-note svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--accent); }
.landing-route { padding: 26px 26px 22px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: rgba(255,255,255,.06); }
.landing-route svg { width: 100%; height: auto; }
.landing-route text { fill: #fff; font-size: 19px; font-weight: 800; letter-spacing: .04em; }
.route-arc { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 3 9; stroke-linecap: round; }
.route-origin { fill: color-mix(in srgb, var(--accent) 30%, transparent); stroke: var(--accent); stroke-width: 2; }
.route-target { fill: rgba(255,255,255,.12); stroke: rgba(255,255,255,.7); stroke-width: 2; }
.route-plane { fill: var(--accent); }
.landing-route-points { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; font-weight: 650; }
.landing-route-points li { display: flex; align-items: center; gap: 10px; }
.landing-route-points li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.landing-section { padding-block: 72px; }
.landing-heading { margin: 0 0 32px; font-size: clamp(1.45rem, 2.6vw, 2rem); letter-spacing: -.02em; }
.landing-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.landing-feature { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.landing-feature svg { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 8%, #fff); color: var(--primary); }
.landing-feature h3 { margin: 16px 0 8px; font-size: 1.05rem; line-height: 1.3; }
.landing-feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.landing-steps-band { background: var(--surface); }
.landing-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.landing-steps h3 { margin: 14px 0 6px; font-size: 1.08rem; }
.landing-steps p { margin: 0; color: var(--muted); }
.landing-step-number { display: inline-grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; }
.landing-final { text-align: center; }
.landing-final h2 { margin: 0 0 8px; font-size: clamp(1.45rem, 2.6vw, 2rem); letter-spacing: -.02em; }
.landing-final .landing-actions { justify-content: center; }
/* "Check your inbox" and similar one-message pages. */
.notice-panel { text-align: center; }
.price-check progress { width: min(320px, 100%); margin: 6px 0 14px; }
.price-check-list { margin: 0 0 14px; padding: 0; list-style: none; }
.price-check-list li { overflow-wrap: anywhere; }
.price-note { display: block; font-size: .85rem; color: var(--muted); }
.price-note-manual { color: var(--danger); }
/* Long single Georgian words ("რეგისტრაციისთვის") must fit a 320px phone. */
.notice-panel h1 { font-size: clamp(1.25rem, 6.5vw, 2rem); line-height: 1.2; text-wrap: balance; overflow-wrap: anywhere; }
.notice-panel p { margin: 0 0 12px; }
.notice-panel a { text-decoration: underline; }
.notice-icon { width: 52px; height: 52px; margin: 0 auto 8px; color: var(--primary); }
@media (max-width: 900px) {
  /* Search drops to its own full-width row under the logo line. */
  .nav-wrap { flex-wrap: wrap; row-gap: 0; }
  .nav-right { flex: 1 1 0; justify-content: flex-end; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; margin-bottom: 10px; }
  .landing-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .landing-route { max-width: 460px; }
  .landing-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail, .two-column { grid-template-columns: 1fr; }
  .product-info, .order-summary { position: static; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item > :nth-child(n+3) { grid-column: 2; }
}
@media (max-width: 660px) {
  /* The 71px logo drives the header height, so it comes down on phones to
     keep the single line shallow. */
  .nav-wrap { min-height: 0; padding-block: 7px; gap: 12px; }
  .brand img { width: 46px; height: 46px; }
  /* One header line on phones: the nav scrolls sideways instead of wrapping.
     The language menu stays outside that scroller, pinned to the right. */
  .nav-right { gap: 10px; }
  nav { flex-wrap: nowrap; min-width: 0; gap: 14px; padding-block: 6px; overflow-x: auto; scrollbar-width: none; font-size: .88rem; white-space: nowrap; }
  nav::-webkit-scrollbar { display: none; }
  .brand span { display: none; }
  .nav-wrap { row-gap: 0; }
  .header-search { margin-block: 3px 4px; }
  .header-search input { height: 40px; }
  .header-search button { width: 32px; height: 32px; }
  .shop-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 20px; }
  /* Phones: the bottom tab bar's Categories page replaces the sidebar; inside a
     category only a back link to the list it was picked from remains. */
  .categories { display: none; }
  .app-back.category-back { display: inline-flex; margin-bottom: 6px; }
  /* Inside the heading row the back link replaces the title, with the filter button on its right. */
  .section-heading .category-back { min-width: 0; margin: 0; gap: 5px; color: var(--ink); font-size: 1.1rem; font-weight: 750; line-height: 1.25; }
  .section-heading .category-back svg { flex: 0 0 auto; }
  /* A long name stops after two lines with "…"; the count stays visible beside it. */
  .category-back-name { display: -webkit-box; min-width: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
  .section-heading .category-back .result-count { flex: 0 0 auto; align-self: flex-end; }
  .app-page-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .section-heading .category-back + h2 { display: none; }
  .filter-sheet { width: 100%; height: auto; max-height: 88dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .install-sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .filter-sheet form { height: auto; max-height: 88dvh; }
  .section-heading h2 { font-size: 1.35rem; }
  /* App shell: logo + search on top, everything else in the fixed bottom tab bar. */
  .nav-wrap { flex-wrap: nowrap; }
  /* Only the language flag and the install button stay next to the search. */
  .nav-right { flex: 0 0 auto; gap: 8px; }
  .nav-right nav { display: none; }
  .install-app-button { min-height: 34px; padding: 6px 8px; }
  .install-app-button span { display: none; }
  .install-app-button svg { width: 19px; height: 19px; }
  .language-menu summary { padding: 7px 8px; }
  /* Screen space is scarce in the app, so the tagline banner goes. */
  .hero { display: none; }
  .brand img { width: 42px; height: 42px; }
  .header-search { order: 0; flex: 1 1 auto; margin: 0; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  /* The app shell never scrolls sideways, whatever a long translation does. */
  html, body { overflow-x: clip; }
  /* Fixed-width tabs: minmax(0, 1fr) keeps a long label (Georgian "Categories")
     from stretching its column past the screen; it ellipsizes instead. */
  .tab-bar { position: fixed; z-index: 25; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
  .tab-bar a { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 2px; min-width: 0; padding: 5px 1px; border-radius: 14px; color: var(--muted); font-size: .68rem; font-weight: 600; line-height: 1.2; }
  .tab-bar a > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Georgian script runs wider than Latin; a smaller size lets its labels fit whole. */
  .tab-bar a:lang(ka) { font-size: .6rem; letter-spacing: -.01em; }
  .tab-bar a:hover { text-decoration: none; }
  /* Float the wishlist toast above the fixed tab bar. */
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .tab-bar a.active { background: var(--surface); color: var(--primary); }
  .tab-bar svg { width: 25px; height: 25px; }
  .tab-icon { position: relative; display: block; }
  .tab-badge { position: absolute; top: -5px; right: -10px; min-width: 18px; padding: 0 5px; border: 2px solid #fff; border-radius: 10px; background: var(--danger); color: #fff; font-size: .66rem; font-weight: 800; line-height: 14px; text-align: center; }
  /* The tab bar already covers what the footer offered, so it only costs space here. */
  .site-footer { display: none; }
  .app-page { padding-block: 18px 36px; }
  /* One category per row: room for a readable picture and a two-line name. */
  .category-tiles { grid-template-columns: 1fr; gap: 10px; }
  .category-tile { min-height: 76px; padding: 10px 12px 10px 16px; gap: 14px; font-size: .98rem; }
  .category-tile img { flex: 0 0 56px; width: 56px; }
  .product-grid { grid-template-columns: 1fr; }
  /* One card per row: a full-width 4:3 photo would fill the screen. */
  .product-image { aspect-ratio: auto; height: 220px; }
  .product-detail { padding-top: 28px; gap: 30px; }
  .message { width: 92%; }
  .chat-compose { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  /* Guests have no search in the header, so the shop name gets its place back. */
  .is-guest .brand span { display: inline; }
  .tab-bar-guest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-hero { padding-block: 36px 40px; }
  /* The route picture only repeats the cards below, so phones skip it. */
  .landing-route { display: none; }
  .landing-actions .button { flex: 1 1 100%; }
  .landing-section { padding-block: 44px; }
  .landing-heading { margin-bottom: 20px; }
  .landing-features, .landing-steps { grid-template-columns: 1fr; gap: 14px; }
  .landing-steps { gap: 24px; }
  .landing-feature { padding: 20px; }
}
/* Georgian script runs wider than Latin: the heading left of the filter button
   comes down 2px and the button label 1px, so the row fits on phones. */
html:lang(ka) .section-heading h2 { font-size: 22px; }
html:lang(ka) .filter-button { font-size: 15px; }
@media (max-width: 660px) {
  html:lang(ka) .section-heading h2 { font-size: calc(1.35rem - 2px); }
}

/* Shared visual system: quiet surfaces, clear hierarchy and generous controls. */
:root { --ink: #202c39; --muted: #596775; --line: #dfe5eb; --surface: #f2f5f7; --radius: 18px; --shadow-soft: 0 4px 24px rgba(24, 39, 55, .045); }
html { scroll-padding-top: 150px; }
body { background: #f8fafb; }
main { min-height: 60vh; }
main:focus { outline: none; }
h1, h2, h3 { letter-spacing: -.025em; text-wrap: pretty; }
h1 { line-height: 1.2; }
p, h1, h2, h3, a, strong, address { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 16px; padding: 12px 20px; border-radius: 10px; background: var(--primary); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, .button, summary, input, select, textarea { touch-action: manipulation; }
.button { min-height: 46px; border-radius: 12px; transition: background .16s, box-shadow .16s; }
.button:hover { box-shadow: 0 4px 12px rgba(24, 39, 55, .12); }
.button-secondary:hover { background: var(--surface); }
.button:disabled, [aria-disabled="true"] { cursor: wait; opacity: .65; }
form[aria-busy="true"] button[type="submit"]::after { content: ""; width: 14px; height: 14px; margin-left: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ui-spin .8s linear infinite; }
@keyframes ui-spin { to { transform: rotate(360deg); } }
input, select, textarea { min-height: 46px; border-color: #b9c4ce; border-radius: 10px; }
input[type="checkbox"], input[type="radio"] { min-height: 0; accent-color: var(--primary); }
input:focus, select:focus, textarea:focus { outline-color: color-mix(in srgb, var(--primary) 20%, transparent); border-color: var(--primary); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border: 2px solid var(--danger); background: #fff9f8; }
textarea { resize: vertical; }
.helptext { line-height: 1.6; }
.errorlist { padding: 10px 12px 10px 28px; border-radius: 8px; background: #fff0ee; font-size: .9rem; }
.site-header { box-shadow: 0 2px 18px rgba(24, 39, 55, .035); }
.nav-wrap { gap: 20px; }
.brand { max-width: 230px; }
.brand img { width: 58px; height: 58px; flex-shrink: 0; }
.nav-right { gap: 12px; }
.nav-right nav { gap: 14px; font-size: .86rem; }
.nav-right nav > a, .account-menu summary, .language-menu summary { min-height: 44px; display: inline-flex; align-items: center; }
.nav-icon { justify-content: center; min-width: 38px; }
.cart-count { top: 1px; right: -2px; }
.language-menu summary { justify-content: center; min-width: 44px; border-radius: 12px; }
.account-panel, .language-panel { padding: 8px; border-radius: 14px; box-shadow: 0 16px 40px rgba(24, 39, 55, .12); }
.account-panel a, .language-option { min-height: 44px; }
.header-search { min-width: 130px; }
.header-search input { height: 46px; }
.header-search button { width: 38px; height: 38px; }
.hero { padding-block: 40px; background: radial-gradient(ellipse at 90% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%), var(--primary); text-align: left; }
.hero .eyebrow { margin-bottom: 10px; }
.hero h1 { max-width: 36ch; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.25; }
.shop-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-top: 36px; }
.shop-layout > div, .two-column > *, .product-detail > * { min-width: 0; }
.categories { position: sticky; top: 100px; max-height: calc(100dvh - 120px); overflow: auto; align-self: start; padding: 18px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; scrollbar-width: thin; }
.categories h2 { padding-inline: 10px; }
.categories a { transition: background .15s; }
.categories a:hover { background: var(--surface); text-decoration: none; }
.categories a.active { background: var(--primary); color: #fff; }
.categories a.subcategory.active { color: #fff; }
.section-heading { flex-wrap: wrap; gap: 12px; }
.section-heading h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.section-heading h2 { font-size: 1.4rem; }
.result-count { color: var(--muted); font-size: .85rem; font-weight: 500; }
.filter-button { min-height: 44px; padding-inline: 16px; }
.filter-close { width: 44px; height: 44px; }
.filter-sheet-body { overscroll-behavior: contain; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 20px; font-size: .85rem; }
.filter-token { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.active-filters > a { padding: 8px; text-decoration: underline; }
.product-grid { gap: 18px; }
.product-card { display: flex; flex-direction: column; box-shadow: var(--shadow-soft); }
.product-card:focus-within { border-color: var(--primary); }
.product-image { aspect-ratio: 1 / 1; border-bottom: 1px solid #eef1f4; }
.product-image img { padding: 20px; }
.product-card-body { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.product-card-body > .muted { font-size: .75rem; line-height: 1.5; }
.product-card h3 { margin-block: 8px 16px; font-size: 1rem; line-height: 1.5; }
.product-card .price-row { margin-top: auto; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.product-card .price-row > strong { color: var(--primary); font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.product-card .price-row > .stock, .product-card .price-row > .out-stock { grid-column: 1 / -1; justify-self: start; text-align: left; font-size: .75rem; }
.wishlist-toggle { width: 44px; height: 44px; margin: -4px 0; background: var(--surface); }
.stock::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 32px; }
.page-position { color: var(--muted); font-variant-numeric: tabular-nums; }
.page-section { padding-block: 40px 72px; }
.panel, .order-summary, .cart-item, .table-wrap, .conversation-card, .category-tile, .landing-feature { box-shadow: var(--shadow-soft); background: #fff; }
.panel, .order-summary { padding: clamp(20px, 3vw, 32px); }
.panel > .muted + form { margin-top: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.form-grid > * { grid-column: 1 / -1; min-width: 0; }
.form-grid > p:has(input[name="first_name"], input[name="last_name"], input[name="city"], input[name="postal_code"]) { grid-column: auto; }
.form-grid > p:has(input[name="accept_terms"]) { margin-top: 8px; }
.form-grid .helptext ul { padding-left: 20px; }
.empty-state { padding: 52px 24px; border-style: solid; background: #fff; box-shadow: var(--shadow-soft); }
.empty-state h2, .empty-state h3 { margin-top: 0; }
.empty-state p { color: var(--muted); max-width: 44ch; margin: 12px auto 24px; }
.category-tile:hover, .conversation-card:hover { border-color: var(--primary); background: #fcfdff; }
.menu-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.menu-row { padding: 18px; }
.menu-row:last-child { border-bottom: 0; }
.product-detail { gap: 40px; }
.gallery-main { height: 480px; padding: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.gallery-thumbs { gap: 12px; }
.gallery-thumb { background: #fff; border-color: var(--line); }
.product-info { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.detail-price { font-size: 1.85rem; font-variant-numeric: tabular-nums; }
.prose { line-height: 1.8; }
.checkout-steps { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0 0 28px; padding: 0; list-style: none; }
.checkout-steps li, .checkout-steps a { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.checkout-steps span { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.checkout-steps [aria-current="step"], .checkout-steps [aria-current="step"] a { color: var(--primary); }
.checkout-steps [aria-current="step"] span { background: var(--primary); border-color: var(--primary); color: #fff; }
.two-column { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 24px; }
.cart-item { grid-template-columns: 80px minmax(0, 1fr); align-items: start; gap: 12px 18px; }
.cart-item > :nth-child(3) { grid-column: 2; }
.cart-item > strong { grid-column: 2; padding-top: 10px; border-top: 1px solid var(--line); }
.cart-controls { grid-template-columns: 80px minmax(70px, 1fr) auto; align-items: end; gap: 12px; }
.cart-controls input, .cart-controls .button, .cart-controls .link-button { min-height: 44px; }
.cart-controls .link-button { padding: 8px; }
.order-summary { border-top: 3px solid var(--primary); }
.summary-row { padding-block: 14px; border-bottom: 1px solid var(--line); }
.summary-row:last-child { border-bottom: 0; }
.summary-row > strong, .order-line > strong { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.summary-row > span { min-width: 0; }
.order-summary .button-wide { margin-top: 12px; }
.notice { border-radius: 0 10px 10px 0; font-size: .94rem; line-height: 1.7; }
.alerts { display: grid; gap: 10px; }
.alert { border: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.status-pending { background: #fff1d6; color: #795000; }
.status-processing, .status-confirmed { background: #e8f0fc; color: #26558b; }
.status-shipped { background: #eee8fb; color: #634093; }
tbody tr:hover { background: #f8fafc; }
.conversation-card > div { min-width: 0; }
.conversation-meta { flex-shrink: 0; }
.chat-header { align-items: flex-start; flex-wrap: wrap; }
.chat-header h1 { font-size: clamp(1.4rem, 4vw, 2rem); }
.message-stream { background: #edf2f6; overscroll-behavior: contain; scrollbar-width: thin; }
.message { box-shadow: 0 2px 6px rgba(24, 39, 55, .035); }
.message p { overflow-wrap: anywhere; }
.message > div { flex-wrap: wrap; gap: 3px 12px; }
.message-mine time { opacity: .9; }
.chat-compose { background: #fff; }
.chat-compose textarea { min-height: 76px; max-height: 200px; }
.chat-new { display: flex; margin: 12px auto; }
.chat-new[hidden] { display: none; }
.site-footer { background: #fff; }
.footer-grid > * { min-width: 0; }
.footer-legal a { padding-block: 5px; }
.landing-hero { padding-block: 80px; }
.landing-route { box-shadow: 0 24px 60px rgba(0,0,0,.12); }
.landing-feature { border-top: 3px solid color-mix(in srgb, var(--primary) 25%, #fff); }
.landing-steps-band { border-block: 1px solid var(--line); }
@media (min-width: 661px) and (max-width: 1150px) {
  .nav-wrap { flex-wrap: wrap; row-gap: 0; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; margin-bottom: 12px; }
  .nav-right { margin-left: auto; }
  .categories { top: 150px; max-height: calc(100dvh - 170px); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .two-column { grid-template-columns: minmax(0, 1fr); }
  .order-summary { position: static; }
}
@media (max-width: 900px) {
  .product-detail { grid-template-columns: minmax(0, 1fr); }
  .product-info { position: static; }
}
@media (max-width: 660px) {
  html { scroll-padding-top: 88px; }
  .container { width: calc(100% - 28px); }
  .nav-wrap { gap: 10px; padding-block: 10px; }
  .brand { max-width: 55%; }
  .brand img { width: 40px; height: 40px; }
  .brand:not(:has(img)) span { display: inline; max-width: 72px; font-size: .8rem; line-height: 1.2; }
  .is-guest .brand span { max-width: none; font-size: 1rem; }
  .header-search { min-width: 0; }
  .header-search input { height: 44px; min-width: 0; padding-left: 12px; font-size: 16px; }
  .header-search button { width: 36px; height: 36px; }
  .nav-right { gap: 5px; }
  .shop-layout { grid-template-columns: minmax(0, 1fr); padding-block: 24px 40px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-image { height: auto; aspect-ratio: 1; }
  .product-image img { padding: 10px; }
  .product-card-body { padding: 12px; }
  .product-card h3 { font-size: .88rem; margin-bottom: 12px; }
  .product-card-body > .muted { font-size: .68rem; }
  .product-card .price-row > strong { font-size: .94rem; }
  .wishlist-toggle { width: 44px; height: 44px; margin-right: -5px; }
  .page-section, .app-page { padding-block: 24px 40px; }
  .section-heading h1 { font-size: 1.65rem; }
  .panel, .order-summary, .product-info { padding: 20px; }
  .product-detail { padding-block: 24px 40px; gap: 20px; }
  .gallery-main { height: 330px; padding: 16px; }
  .gallery-thumb { width: 60px; height: 60px; }
  .cart-item { grid-template-columns: 60px minmax(0, 1fr); padding: 14px; gap: 12px; }
  .cart-controls { grid-template-columns: 70px 1fr; gap: 8px; }
  .cart-controls .link-button { grid-column: 1 / -1; justify-self: start; }
  .checkout-steps { gap: 12px; }
  .checkout-steps li, .checkout-steps a { font-size: .75rem; gap: 6px; }
  .checkout-steps span { width: 26px; height: 26px; flex-shrink: 0; }
  .responsive-table, .responsive-table tbody { display: block; }
  .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .responsive-table tr { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .responsive-table tr:last-child { border-bottom: 0; }
  .responsive-table td { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 7px 0; border: 0; text-align: right; font-size: .9rem; }
  .responsive-table td::before { content: attr(data-label); flex-shrink: 0; text-align: left; color: var(--muted); font-size: .8rem; }
  .conversation-card { padding: 16px; gap: 12px; }
  .conversation-meta { font-size: .75rem; }
  .chat-page { padding-block: 20px 32px; }
  .message-stream { padding: 14px; height: 52dvh; }
  .chat-compose { grid-template-columns: minmax(0, 1fr); }
  .chat-compose .button { width: 100%; }
  .tab-bar { padding-top: 8px; box-shadow: 0 -4px 24px rgba(24, 39, 55, .06); }
  .tab-bar a { min-height: 48px; }
  .tab-bar a.active { background: color-mix(in srgb, var(--primary) 9%, #fff); }
  .site-footer { display: block; padding-block: 24px; }
  .footer-grid { gap: 18px; }
  .footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; white-space: normal; }
  .landing-hero { padding-block: 44px; }
  input, select, textarea { font-size: 16px; }
}
@media (max-width: 370px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-image { aspect-ratio: 4 / 3; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .conversation-card { flex-wrap: wrap; }
  .conversation-meta { width: 100%; display: flex; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .product-card:hover { transform: none; }
}
