@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: block; src: url('/fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: block; src: url('/fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: block; src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: block; src: url('/fonts/poppins-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 800; font-display: block; src: url('/fonts/poppins-latin-800-italic.woff2') format('woff2'); }

:root {
  --blue: #0a55e0;
  --blue-600: #0847bd;
  --blue-400: #1d74ff;
  --blue-50: #eef4ff;
  --blue-100: #dbe7ff;
  --ink: #0f1d3a;
  --text: #2b3650;
  --muted: #65708a;
  --line: #e2e8f3;
  --bg: #f6f8fc;
  --card: #ffffff;
  --ok: #0f8a4f;
  --warn: #b25e00;
  --err: #c62828;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 29, 58, .06), 0 6px 20px rgba(15, 29, 58, .06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; font-size: 15px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.section { padding-top: 28px; padding-bottom: 28px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hide-sm { }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.icon { width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 6px; }

.topbar { background: var(--blue); color: #fff; font-size: .8rem; }
.topbar-inner { display: flex; gap: 28px; justify-content: center; padding-top: 6px; padding-bottom: 6px; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .icon { width: 16px; height: 16px; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; text-decoration: none !important; }
.nav-toggle { display: none; background: none; border: 0; padding: 6px; color: var(--ink); cursor: pointer; }
.search { position: relative; flex: 1; display: flex; max-width: 560px; margin: 0 auto; background: var(--bg); border: 1.5px solid var(--line); border-radius: 999px; }
.search:focus-within { border-color: var(--blue); background: #fff; }
.search input { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 10px 16px; font: inherit; min-width: 0; outline: none; }
.search button { border: 0; background: transparent; color: var(--blue); padding: 0 14px; cursor: pointer; }
.header-actions { display: flex; gap: 6px; }
.action { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; font-size: .72rem; color: var(--ink); padding: 4px 10px; border-radius: 10px; position: relative; text-decoration: none !important; }
.action:hover { background: var(--blue-50); color: var(--blue); }
.badge { position: absolute; top: -2px; right: 6px; background: var(--blue); color: #fff; font-size: .7rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }

.catnav { border-top: 1px solid var(--line); }
.catnav-inner { display: flex; gap: 4px; overflow-x: auto; padding-top: 4px; padding-bottom: 4px; scrollbar-width: none; }
.catnav a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; color: var(--ink); font-weight: 500; font-size: .9rem; white-space: nowrap; text-decoration: none; }
.catnav a .icon { width: 18px; height: 18px; color: var(--blue); }
.catnav a:hover, .catnav a.active { background: var(--blue-50); color: var(--blue); }
.catnav-sep { width: 1px; background: var(--line); margin: 6px 6px; flex: none; }

.logo { --logo-bg: #fff; position: relative; display: inline-block; color: var(--blue); padding-bottom: 7px; line-height: 1; }
.logo-word { font-family: 'Poppins', sans-serif; font-weight: 800; font-style: italic; font-size: 30px; letter-spacing: -.02em; white-space: nowrap; display: inline-block; }
.logo-i { position: relative; display: inline-block; }
.logo-wrench { position: absolute; left: 50%; top: -.1em; width: .48em; height: .48em; transform: translateX(-30%) rotate(8deg); fill: currentColor; stroke: var(--logo-bg); stroke-width: 3; paint-order: stroke; overflow: visible; }
.logo-swoosh { position: absolute; left: 4%; right: -3%; bottom: -4px; width: 99%; height: 12px; fill: currentColor; }
.brand-invert .logo { color: #fff; --logo-bg: var(--ink); }

.hero { position: relative; background: #fff; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-wave { position: absolute; width: 520px; height: 200px; background: linear-gradient(100deg, var(--blue-600), var(--blue-400)); border-radius: 50%; pointer-events: none; }
.hero-wave-tl { top: -140px; left: -160px; transform: rotate(-14deg); box-shadow: 0 26px 0 -6px #fff, 0 40px 0 -4px var(--blue-400); }
.hero-wave-br { bottom: -150px; right: -170px; transform: rotate(-14deg); box-shadow: 0 -26px 0 -6px #fff, 0 -40px 0 -4px var(--blue-400); }
.hero-inner { position: relative; text-align: center; padding-top: 64px; padding-bottom: 56px; }
.hero-logo .logo-word { font-size: clamp(48px, 10vw, 96px); }
.hero-logo .logo { padding-bottom: 18px; }
.hero-logo .logo-swoosh { height: clamp(16px, 3vw, 30px); bottom: -6px; }
.hero-lead { max-width: 640px; margin: 22px auto 24px; font-size: 1.05rem; color: var(--muted); }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(15, 29, 58, .16); padding: 6px; text-align: left; max-height: min(70vh, 560px); overflow-y: auto; }
.suggest-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none !important; }
.suggest-item:hover, .suggest-item.active { background: var(--blue-50); }
.suggest-thumb { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; overflow: hidden; }
.suggest-thumb img { width: 100%; height: 100%; object-fit: contain; }
.suggest-text { min-width: 0; }
.suggest-text b { display: block; font-weight: 600; font-size: .88rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.suggest-text small { color: var(--muted); font-size: .75rem; }
.suggest-price { font-weight: 700; color: var(--ink); white-space: nowrap; font-size: .9rem; }
.suggest-price.request { color: var(--blue); font-weight: 600; font-size: .78rem; }
.suggest-empty { padding: 14px; color: var(--muted); font-size: .9rem; }
.suggest-all { display: block; text-align: center; padding: 10px; margin-top: 4px; border-top: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.hero-search { position: relative; display: flex; gap: 8px; max-width: 620px; margin: 0 auto; background: #fff; border: 2px solid var(--blue); border-radius: 999px; padding: 5px; box-shadow: var(--shadow); }
.hero-search input { flex: 1; border: 0; padding: 10px 16px; font: inherit; min-width: 0; outline: none; background: transparent; }
.hero-quick { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--blue-50); color: var(--blue); font-weight: 600; font-size: .88rem; }

.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust { display: flex; align-items: center; gap: 14px; padding: 18px 20px; color: var(--blue); }
.trust + .trust { border-left: 1.5px solid var(--blue-100); }
.trust .icon { width: 40px; height: 40px; stroke-width: 1.6; }
.trust b { display: block; color: var(--blue); font-size: .98rem; }
.trust span { display: block; color: var(--blue); font-size: .85rem; opacity: .85; }
.trust-row-hero { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: -28px; position: relative; z-index: 1; padding: 0; max-width: 1168px; }

.section-title { font-size: 1.35rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile { display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--ink); text-decoration: none !important; transition: transform .15s, box-shadow .15s, border-color .15s; }
.cat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.cat-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.cat-icon .icon { width: 28px; height: 28px; }
.cat-text b { display: block; font-size: 1.05rem; }
.cat-text small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.cat-count { margin-top: auto; color: var(--blue); font-weight: 600; font-size: .85rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: var(--shadow); border-color: var(--blue-100); }
.card-media { aspect-ratio: 4 / 3; background: linear-gradient(160deg, var(--blue-50), #fff); display: grid; place-items: center; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.ph { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--blue); }
.ph .icon { width: 64px; height: 64px; stroke-width: 1.3; }
.ph small { font-weight: 600; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
.ph-lg .icon { width: 120px; height: 120px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.card h3 { font-size: .95rem; font-weight: 600; margin: 4px 0 12px; }
.card h3 a { color: var(--ink); }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.price { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.card-media { position: relative; }
.sale-badge { position: absolute; top: 10px; left: 10px; background: #e5243b; color: #fff; font-weight: 700; font-size: .78rem; padding: 3px 9px; border-radius: 999px; z-index: 1; }
.sale-badge-inline { position: static; vertical-align: middle; font-size: .85rem; margin-left: 6px; }
.price-sale { color: #e5243b; }
.price s { color: var(--muted); font-weight: 500; font-size: .8rem; margin-left: 4px; }
.pdp-was { color: var(--muted); margin: 2px 0 4px; }
.catnav a.catnav-sale { color: #e5243b; font-weight: 700; }
.catnav a.catnav-sale:hover, .catnav a.catnav-sale.active { background: #fdecee; color: #c81d31; }
.sale-title { background: #e5243b; color: #fff; padding: 2px 10px; border-radius: 8px; margin-right: 6px; font-size: .9em; }
.price-request { color: var(--blue); font-size: .92rem; white-space: nowrap; }
.pdp-price.price-request { font-size: 1.5rem; }
.stock { font-size: .8rem; color: var(--ok); display: flex; align-items: center; gap: 6px; }
.stock .icon { width: 18px; height: 18px; }
.stock.out { color: var(--err); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--blue); color: #fff; border: 0; border-radius: 999px; padding: 10px 22px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: background .15s; }
.btn:hover { background: var(--blue-600); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn .icon { width: 20px; height: 20px; }
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-small { padding: 7px 16px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; height: 44px; padding: 0; }
.btn-secondary { background: var(--blue-50); color: var(--blue); }
.btn-secondary:hover { background: var(--blue-100); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: var(--blue-50); }
.btn-danger { background: var(--err); }
.btn-danger:hover { background: #a11f1f; }
.btn-ghost { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; font: inherit; }
.btn-ghost:hover { color: var(--err); }

.empty { text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px 20px; }
.empty > .icon { width: 56px; height: 56px; color: var(--blue); margin-bottom: 8px; }

.b2b { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(110deg, var(--blue-600), var(--blue-400)); color: #fff; border-radius: var(--radius); padding: 28px 32px; margin-bottom: 32px; flex-wrap: wrap; }
.b2b h2 { color: #fff; margin-bottom: 4px; }
.b2b p { margin: 0; opacity: .9; max-width: 640px; }

.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.filters label { display: flex; flex-direction: column; font-size: .78rem; color: var(--muted); gap: 4px; }
select, input, textarea { font: inherit; color: var(--ink); }
.filters select, .filters input, .field input, .field select, .field textarea { border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; background: #fff; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus, .filters select:focus, .filters input:focus { border-color: var(--blue); outline: none; }

.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.pdp-media { background: linear-gradient(160deg, var(--blue-50), #fff); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.pdp-media img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.pdp-media-sm { aspect-ratio: 4 / 3; margin-bottom: 12px; }
.pdp-info h1 { font-size: 1.6rem; margin-top: 6px; }
.pdp-price { font-size: 2rem; font-weight: 700; color: var(--ink); }
.buy { display: flex; gap: 12px; align-items: flex-end; margin: 18px 0 24px; flex-wrap: wrap; }
.qty { display: flex; flex-direction: column; font-size: .78rem; color: var(--muted); gap: 4px; }
.qty input { width: 80px; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 10px; }
.specs { display: grid; gap: 0; margin: 0 0 18px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--ink); }
.pdp-desc { margin-top: 22px; }
.pdp-desc h2 { font-size: 1.1rem; }
.feature-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 6px; }
.feature-list li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink); }
.feature-list .icon { width: 18px; height: 18px; color: var(--ok); margin-top: 3px; stroke-width: 2.4; }
.pdp-usp { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.pdp-usp li { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.pdp-usp .icon { color: var(--blue); }

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.cart-lines { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px 20px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr 80px 100px 36px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-of-type { margin-bottom: 16px; }
.cart-thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-name a { color: var(--ink); font-weight: 600; display: block; }
.cart-qty { width: 70px; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px; }
.cart-total { text-align: right; color: var(--ink); }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 140px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sum-item { font-size: .88rem; border-bottom: 1px dashed var(--line); }
.sum-total { font-weight: 700; font-size: 1.15rem; color: var(--ink); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.link-back { display: block; text-align: center; margin-top: 12px; font-size: .9rem; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 0 0 20px; }
fieldset.panel { min-width: 0; }
legend { font-weight: 700; color: var(--ink); font-size: 1.1rem; padding: 0 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; color: var(--muted); }
.has-error input, .has-error select { border-color: var(--err) !important; }
.error { color: var(--err); font-size: .8rem; }
.radio { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; margin-top: 10px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.radio input { margin-top: 5px; accent-color: var(--blue); }
.radio b { display: block; color: var(--ink); }
.radio small { color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; margin: 14px 0; }
.check input { margin-top: 4px; accent-color: var(--blue); }
.check.has-error span { color: var(--err); }
details summary { cursor: pointer; color: var(--blue); font-weight: 600; margin-bottom: 10px; }

.flash { border-radius: 12px; padding: 12px 16px; margin: 16px 0 0; font-size: .92rem; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.flash-success { background: #e7f7ef; color: #0b6b3d; }
.flash-error { background: #fdecec; color: #a11f1f; }
.flash-info { background: var(--blue-50); color: var(--blue-600); }
.inline { display: inline; }

.thanks { text-align: center; padding: 20px 0 10px; }
.thanks-icon { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #e7f7ef; color: var(--ok); margin-bottom: 12px; }
.thanks-icon .icon { width: 36px; height: 36px; stroke-width: 2.4; }

.auth { max-width: 560px; }
.acc-hero { display: flex; align-items: center; gap: 16px; background: linear-gradient(110deg, var(--blue-600), var(--blue-400)); color: #fff; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; flex-wrap: wrap; }
.acc-hero h1 { color: #fff; margin: 0 0 2px; }
.acc-hero .muted { color: rgba(255, 255, 255, .85); margin: 0; }
.acc-hello { flex: 1; min-width: 200px; }
.acc-avatar { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; flex: none; }
.acc-hero .btn-secondary { background: rgba(255, 255, 255, .15); color: #fff; }
.acc-hero .btn-secondary:hover { background: rgba(255, 255, 255, .25); }
.acc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.acc-tabs a { padding: 10px 16px; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; text-decoration: none; }
.acc-tabs a.active, .acc-tabs a:hover { color: var(--blue); border-bottom-color: var(--blue); }
.acc-count { background: var(--blue-50); color: var(--blue); border-radius: 999px; padding: 0 8px; font-size: .75rem; margin-left: 4px; }
.acc-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.acc-quick-card { display: flex; gap: 14px; align-items: center; color: var(--ink); margin: 0; text-align: left; font: inherit; cursor: pointer; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.acc-quick-card:hover { border-color: var(--blue-100); box-shadow: var(--shadow); }
.acc-quick-card .icon { width: 34px; height: 34px; color: var(--blue); }
.acc-quick-card b { display: block; }
.acc-quick-card small { color: var(--muted); }
.acc-narrow { max-width: 760px; }
.acc-order-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.acc-order-head > div { flex: 1; min-width: 180px; }
.acc-order-head b { display: block; color: var(--ink); }
.acc-order-total { font-size: 1.1rem; }
.acc-items { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.acc-items li { display: flex; gap: 12px; align-items: center; }
.acc-items .cart-thumb { width: 44px; height: 44px; }
.acc-item-name { display: flex; flex-direction: column; font-size: .9rem; }
.acc-item-name a { color: var(--ink); font-weight: 600; }
.acc-order-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 16px 0 10px; counter-reset: step; }
.progress li { position: relative; text-align: center; font-size: .78rem; color: var(--muted); padding-top: 26px; }
.progress li span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--line); z-index: 1; }
.progress li::before { content: ''; position: absolute; top: 8px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.progress li:first-child::before { display: none; }
.progress li.done, .progress li.current { color: var(--ink); font-weight: 600; }
.progress li.done span { background: var(--ok); border-color: var(--ok); }
.progress li.current span { border-color: var(--blue); background: var(--blue); box-shadow: 0 0 0 4px var(--blue-100); }
.progress li.done::before, .progress li.current::before { background: var(--ok); }
.account-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; padding: 8px 10px; border-bottom: 1.5px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table .num { text-align: right; white-space: nowrap; }
.table-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.table-edit input.in-money { width: 90px; text-align: right; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.table-edit input.in-stock { width: 64px; text-align: right; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.table-edit input:focus { border-color: var(--blue); outline: none; }
.table-edit input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); }
.row-warn { background: #fffaf0; }
.table-edit input.in-sale { border-color: #e5243b; color: #e5243b; font-weight: 600; }
.neg { color: var(--err); font-weight: 600; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--blue-50); color: var(--blue); vertical-align: middle; }
.status-pending { background: #fff4e0; color: var(--warn); }
.status-paid, .status-processing { background: #e7f7ef; color: var(--ok); }
.status-shipped, .status-completed { background: var(--blue-50); color: var(--blue); }
.status-cancelled { background: #f1f1f1; color: #666; }
.sticky-save { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-top: 12px; box-shadow: 0 -6px 20px rgba(15, 29, 58, .08); }
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-nav a { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: .9rem; text-decoration: none; }
.admin-nav a.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.admin-filters { margin-bottom: 10px; }
.admin-rank { margin-left: auto; align-self: center; font-size: .78rem; color: var(--muted); }
.rank-admin { background: #fdecee; color: #c81d31; }
.rank-staff { background: var(--blue-50); color: var(--blue); }
.rank-support { background: #e7f7ef; color: var(--ok); }
.rank-customer { background: #f1f1f1; color: #666; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--ink); text-decoration: none !important; }
.stat span { display: block; font-size: .8rem; color: var(--muted); }
.stat b { font-size: 1.5rem; }
.stat-warn { border-color: #f3c27a; background: #fffaf0; }
.upload { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }

.prose h2 { margin-top: 1.6em; font-size: 1.1rem; }
.prose ul { padding-left: 1.2em; }
.missing { background: #ffe9a8; color: #6b4b00; padding: 0 4px; border-radius: 4px; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 20px 0; }
.contact-card { display: flex; gap: 14px; align-items: center; color: var(--ink); margin: 0; text-decoration: none !important; }
.contact-card .icon { width: 36px; height: 36px; color: var(--blue); }
.contact-card b { display: block; color: var(--blue); }

.site-footer { margin-top: 40px; background: #fff; border-top: 1px solid var(--line); }
.site-footer .trust-row { padding-top: 6px; padding-bottom: 6px; }
.footer-main { background: var(--ink); color: #c8d2e8; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-top: 36px; padding-bottom: 28px; }
.footer-grid h3 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.footer-grid a { display: block; color: #c8d2e8; font-size: .9rem; padding: 3px 0; }
.footer-grid a:hover { color: #fff; }
.footer-grid p { font-size: .88rem; margin-top: 14px; }
.footer-grid .brand { display: inline-flex; padding: 0; }
.footer-grid .logo-word { font-size: 26px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 14px; padding-bottom: 18px; font-size: .8rem; }
.footer-bottom a { color: #fff; }

.chat { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-toggle { position: relative; display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; border: 0; border-radius: 999px; padding: 14px 20px; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 8px 24px rgba(10, 85, 224, .35); }
.chat-toggle:hover { background: var(--blue-600); }
.chat.is-open .chat-toggle span { display: none; }
.chat-badge { position: absolute; top: -4px; right: -4px; background: var(--err); color: #fff; font-size: .72rem; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; border: 2px solid #fff; }
.chat-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px)); background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(15, 29, 58, .25); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(110deg, var(--blue-600), var(--blue-400)); color: #fff; }
.chat-head-avatar { width: 42px; height: 42px; border-radius: 50%; background: #fff; flex: none; }
.chat-head-text { flex: 1; min-width: 0; }
.chat-head-text b { display: block; font-size: .98rem; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: .75rem; opacity: .95; }
.chat-status i { width: 8px; height: 8px; border-radius: 50%; background: #ffc857; flex: none; }
.chat-status.is-online i { background: #3ee08f; }
.chat-close { background: rgba(255, 255, 255, .15); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.chat-row { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; }
.chat-row > div { min-width: 0; }
.chat-avatar { width: 28px; height: 28px; border-radius: 50%; background: #fff; flex: none; border: 1px solid var(--line); }
.chat-bubble { background: #fff; border: 1px solid var(--line); color: var(--ink); padding: 9px 13px; border-radius: 16px 16px 16px 4px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.45; }
.chat-meta { display: block; color: var(--muted); font-size: .68rem; margin: 3px 4px 0; }
.chat-visitor { align-self: flex-end; flex-direction: row-reverse; }
.chat-visitor .chat-bubble { background: var(--blue); border-color: var(--blue); color: #fff; border-radius: 16px 16px 4px 16px; }
.chat-visitor .chat-meta { text-align: right; }
.chat-ai .chat-bubble { background: #f4f1ff; border-color: #e3dcff; }
.chat-system { align-self: center; max-width: 100%; }
.chat-system .chat-avatar { display: none; }
.chat-system .chat-bubble { background: transparent; border: 1px dashed var(--line); color: var(--muted); font-size: .8rem; text-align: center; border-radius: 12px; }
.chat-typing { display: flex; gap: 4px; padding: 4px 20px 8px; background: var(--bg); }
.chat-typing[hidden] { display: none; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); opacity: .4; animation: chat-dot 1s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 50% { opacity: 1; transform: translateY(-3px); } }
.chat-form { border-top: 1px solid var(--line); padding: 10px 12px 8px; background: #fff; }
.chat-email input { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; font-size: .85rem; }
.chat-email[hidden] { display: none; }
.chat-input { display: flex; gap: 8px; align-items: flex-end; }
.chat-input textarea { flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; font: inherit; font-size: .9rem; max-height: 120px; }
.chat-input textarea:focus, .chat-email input:focus { border-color: var(--blue); outline: none; }
.chat-note { margin: 6px 2px 0; font-size: .68rem; color: var(--muted); }

.online-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; color: var(--ink); }
.online-toggle input { position: absolute; opacity: 0; }
.switch { width: 44px; height: 24px; border-radius: 12px; background: #c9d1e0; position: relative; transition: background .15s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.online-toggle input:checked + .switch { background: var(--ok); }
.online-toggle input:checked + .switch::after { transform: translateX(20px); }
.online-toggle input:focus-visible + .switch { outline: 3px solid var(--blue-400); outline-offset: 2px; }
.admin-chat { display: grid; grid-template-columns: 320px 1fr; height: min(72vh, 760px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ac-list { border-right: 1px solid var(--line); overflow-y: auto; }
.ac-empty { padding: 16px; }
.ac-item { position: relative; display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px 40px 12px 14px; cursor: pointer; font: inherit; color: var(--text); }
.ac-item:hover { background: var(--bg); }
.ac-item.active { background: var(--blue-50); }
.ac-item.closed { opacity: .55; }
.ac-item-top { display: flex; justify-content: space-between; gap: 8px; }
.ac-item-top b { color: var(--ink); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-item-top small { color: var(--muted); font-size: .7rem; white-space: nowrap; }
.ac-item-last { display: block; color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.ac-unread { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: var(--blue); color: #fff; font-style: normal; font-size: .72rem; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; }
.ac-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.ac-messages { min-height: 0; overscroll-behavior: contain; }
.ac-list { overscroll-behavior: contain; }
.ac-main[hidden], .ac-placeholder[hidden] { display: none; }
.ac-placeholder { display: grid; place-items: center; align-content: center; color: var(--muted); gap: 8px; }
.ac-placeholder .icon { width: 48px; height: 48px; color: var(--blue); }
.ac-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ac-head b { display: block; color: var(--ink); }
.ac-settings { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.ac-settings label { display: flex; align-items: center; gap: 6px; }
.ac-settings input[data-agent] { border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 8px; width: 170px; font-size: .85rem; }
.ac-settings .check { margin: 0; }
.ac-messages .chat-row { max-width: 75%; }
.ac-visitor-avatar { display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-weight: 700; font-size: .8rem; }
.ac-form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
.ac-form textarea { flex: 1; resize: vertical; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; }
.ac-form textarea:focus { border-color: var(--blue); outline: none; }

.grow { flex: 1; min-width: 220px; }
.mt { margin-top: 12px; }
.test-result { margin-top: 14px; max-width: 640px; }
.test-result .chat-bubble { background: var(--blue-50); border-color: var(--blue-100); }
.reply-card.inactive { opacity: .6; }
.reply-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.reply-actions .check { margin: 0; }
.spacer { flex: 1; }
code { background: var(--blue-50); color: var(--blue-600); padding: 1px 5px; border-radius: 5px; font-size: .85em; }
.ac-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px 0; border-top: 1px solid var(--line); }
.ac-quick button { background: var(--blue-50); color: var(--blue); border: 0; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.ac-quick button:hover { background: var(--blue-100); }
.ac-quick + .ac-form { border-top: 0; }
.ac-flag { display: inline-block; margin-left: 6px; background: #fff4e0; color: var(--warn); font-size: .7rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 10px; background: var(--bg); }
.chat-quick[hidden] { display: none; }
.chat-quick button { background: #fff; border: 1.5px solid var(--blue-100); color: var(--blue); border-radius: 999px; padding: 6px 11px; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.chat-quick button:hover { background: var(--blue-50); border-color: var(--blue); }
.chat-product { display: flex; align-items: center; gap: 10px; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 12px; padding: 8px 10px; margin-bottom: 8px; }
.chat-product[hidden] { display: none; }
.chat-product img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: #fff; }
.chat-product-text { flex: 1; min-width: 0; }
.chat-product-text small { display: block; color: var(--muted); font-size: .7rem; }
.chat-product-text b { display: block; color: var(--ink); font-size: .82rem; line-height: 1.3; }
.chat-product-text label { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); margin-top: 4px; }
.chat-product-text input { width: 64px; border: 1.5px solid var(--line); border-radius: 8px; padding: 3px 6px; font: inherit; font-size: .82rem; }
.chat-product-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .9rem; padding: 4px; }
.chat-human { display: block; width: 100%; margin-top: 6px; background: none; border: 1.5px dashed var(--blue-100); color: var(--blue); border-radius: 10px; padding: 6px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.chat-human:hover { background: var(--blue-50); }
.chat-human[hidden] { display: none; }

@media (max-width: 960px) {
  .admin-chat { grid-template-columns: 1fr; height: auto; }
  .ac-list { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .ac-main { height: 70vh; }
}

@media (max-width: 720px) {
  .chat { right: 12px; bottom: 12px; }
  .chat-toggle { padding: 13px; }
  .chat-toggle span { display: none; }
  .chat.is-open { left: 12px; top: 12px; }
  .chat-panel { width: 100%; height: 100%; }
}

@media (hover: none) and (pointer: coarse) {
  input, select, textarea, .search input, .hero-search input, .chat-input textarea, .chat-email input, .qty input, .cart-qty { font-size: 16px !important; }
}

@media (max-width: 960px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .trust:nth-child(3) { border-left: 0; }
  .cart-layout, .account-layout, .pdp { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .hide-sm { display: none !important; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .nav-toggle { display: block; order: 0; }
  .brand { order: 1; margin-right: auto; }
  .logo-word { font-size: 24px; }
  .header-actions { order: 2; }
  .action span { display: none; }
  .action { padding: 8px; }
  .badge { right: 0; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .catnav { display: none; }
  .catnav.open { display: block; }
  .catnav.open .catnav-inner { flex-direction: column; overflow: visible; }
  .catnav-sep { width: auto; height: 1px; margin: 4px 0; }
  .site-header { position: static; }
  .hero-inner { padding-top: 44px; padding-bottom: 48px; }
  .hero-wave { width: 300px; height: 120px; }
  .hero-wave-tl { top: -80px; left: -120px; }
  .hero-wave-br { bottom: -90px; right: -130px; }
  .hero-search { flex-direction: column; border-radius: 18px; }
  .suggest-item { grid-template-columns: 36px 1fr; }
  .suggest-thumb { width: 36px; height: 36px; }
  .suggest-price { grid-column: 2; }
  .hero-search .btn { width: 100%; }
  .trust { padding: 14px 12px; gap: 10px; }
  .trust .icon { width: 30px; height: 30px; }
  .trust b { font-size: .85rem; }
  .trust span { font-size: .75rem; }
  .cat-grid { gap: 10px; }
  .cat-tile { padding: 14px; }
  .cat-text small { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px 12px 12px; }
  .card h3 { font-size: .85rem; }
  .price { font-size: 1.05rem; }
  .btn-icon { width: 38px; height: 38px; }
  .cart-line { grid-template-columns: 48px 1fr 64px; grid-template-rows: auto auto; }
  .cart-thumb { width: 48px; height: 48px; }
  .cart-total { grid-column: 2; text-align: left; }
  .cart-line .btn-ghost { grid-column: 3; justify-self: end; }
  .form-grid { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 120px 1fr; }
  .b2b { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .section { padding-top: 20px; padding-bottom: 20px; }
}
