/* Brand fonts (self-hosted, SIL Open Font License) – shared by store, admin, POS and print. */
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
/* =====================================================================
   BYTEWELL design system – shared by storefront, account, admin and POS
   White surfaces, black type, restrained purple accent.
   ===================================================================== */
:root {
  --bg: #FFFFFF;
  --text: #171717;
  --text-2: #666666;
  --text-3: #8A8A93;
  --accent: #6C4AE4;
  --accent-hover: #5A39D0;
  --accent-soft: #F1EDFD;
  --accent-ring: rgba(108, 74, 228, .28);
  --border: #EAEAEA;
  --border-strong: #D9D9DE;
  --subtle: #F7F7F9;
  --surface: #FFFFFF;
  --on-accent: #FFFFFF;
  --header-bg: rgba(255,255,255,.96);
  --success: #1E7F4F;  --success-soft: #EAF6EF;
  --warning: #9A6200;  --warning-soft: #FFF5E0;
  --danger:  #B42318;  --danger-soft:  #FDECEA;
  --info:    #2457C5;  --info-soft:    #EAF0FC;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 26, .05);
  --shadow: 0 1px 2px rgba(17, 17, 26, .04), 0 4px 16px rgba(17, 17, 26, .06);
  --shadow-lg: 0 12px 40px rgba(17, 17, 26, .12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: "Space Grotesk", "Inter", -apple-system, "Segoe UI", sans-serif;
  --container: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.015em; font-weight: 650; }
h1 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
h2 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
h3 { font-size: 1.1rem; }
small, .small { font-size: .85rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
code { font-family: var(--mono); font-size: .88em; background: var(--subtle); padding: 1px 5px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.mono { font-family: var(--mono); font-size: .9em; }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.accent { color: var(--accent); }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1 1 auto; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px } .mt-4 { margin-top: 40px }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }

.icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--bg); color: var(--text);
  font: inherit; font-weight: 550; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { border-color: var(--text-3); color: var(--text); background: var(--subtle); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-dark { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-dark:hover { background: var(--text-2); border-color: var(--text-2); color: var(--bg); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--subtle); border-color: transparent; }
.btn-danger { color: var(--danger); border-color: #F2C9C5; }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.btn-sm { height: 34px; padding: 0 12px; font-size: .875rem; border-radius: var(--radius-sm); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; padding: 0; }
.btn-sm.btn-icon { width: 34px; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--text-3) transparent var(--text-3) transparent; animation: spin .8s linear infinite;
}
.btn-primary.is-loading::after, .btn-dark.is-loading::after { border-color: #fff transparent #fff transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--accent); font-weight: 550; }
.link:hover { text-decoration: underline; }
button.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* --------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > label, .label { font-weight: 550; font-size: .9rem; }
.field .hint { font-size: .82rem; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font: inherit; font-size: .95rem; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.input-sm, .select.input-sm { height: 34px; font-size: .875rem; border-radius: var(--radius-sm); }
.has-error .input, .has-error .select, .has-error .textarea, .input.is-invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .82rem; margin: 0; }
.check { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .93rem; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .span-2 { grid-column: span 2; } .span-all { grid-column: 1 / -1; } }
.input-group { display: flex; }
.input-group .input { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .btn { border-radius: 0 var(--radius) var(--radius) 0; margin-left: -1px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 650; margin-bottom: 12px; padding: 0; }

/* --------------------------------------------------------------- surfaces */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-body { padding: 20px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-header h2, .card-header h3 { margin: 0; font-size: 1.02rem; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); background: var(--subtle); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.section { padding: 48px 0; }
.section-subtle { background: var(--subtle); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 650; color: var(--accent); margin-bottom: 8px; }

/* --------------------------------------------------------------- feedback */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); border: 1px solid; font-size: .93rem; margin-bottom: 16px; }
.alert .icon { margin-top: 1px; }
.alert-success { background: var(--success-soft); border-color: #BFE3CE; color: #14553A; }
.alert-error, .alert-danger { background: var(--danger-soft); border-color: #F4C7C2; color: #8A1C12; }
.alert-warning { background: var(--warning-soft); border-color: #F3DDA8; color: #6E4700; }
.alert-info { background: var(--info-soft); border-color: #C9D8F5; color: #1C438F; }
.alert p:last-child { margin-bottom: 0; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-neutral { background: var(--subtle); color: var(--text-2); border-color: var(--border); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.empty { text-align: center; padding: 48px 16px; color: var(--text-2); }
.empty .icon { width: 40px; height: 40px; color: var(--border-strong); margin: 0 auto 12px; display: block; }
.empty h3 { color: var(--text); }
.skeleton { background: linear-gradient(90deg, #F1F1F4 25%, #F8F8FA 50%, #F1F1F4 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

.toast-wrap { position: fixed; z-index: 1000; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.toast { background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: .93rem; display: flex; gap: 10px; align-items: center; animation: toast-in .2s var(--ease); }
.toast.toast-error { background: var(--danger); }
.toast a { color: var(--bg); text-decoration: underline; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

/* --------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; color: var(--text-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--subtle); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FCFCFD; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-compact td, .table-compact th { padding: 8px 10px; }
.table tfoot td { font-weight: 600; background: var(--subtle); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; font-size: .93rem; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; }

/* --------------------------------------------------------------- pagination */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 32px 0 8px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; font-weight: 550; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .is-current { background: var(--text); border-color: var(--text); color: var(--bg); }
.pagination .is-gap { border: 0; }

/* =====================================================================
   STOREFRONT
   ===================================================================== */
.topbar { background: var(--subtle); border-bottom: 1px solid var(--border); font-size: .82rem; color: var(--text-2); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 16px; }
.topbar a:hover { color: var(--accent); }
.topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar-links a { display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 767px) { .topbar-hide-sm { display: none !important; } }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--border); }
.header-main { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: .02em; font-size: 1.15rem; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--text); display: grid; place-items: center; }
.brand-mark span { display: block; width: 14px; height: 3px; border-radius: 2px; background: var(--surface); box-shadow: 0 -6px 0 #fff, 0 6px 0 var(--accent); }
.brand small { display: block; font-size: .62rem; letter-spacing: .22em; color: var(--text-2); font-weight: 600; margin-top: -2px; }
.header-search { flex: 1 1 auto; max-width: 620px; position: relative; margin: 0 auto; }
.header-search form { display: flex; }
.header-search .input { height: 44px; padding-left: 42px; border-radius: 999px; background: var(--subtle); border-color: var(--subtle); }
.header-search .input:focus { background: var(--surface); }
.header-search .search-icon { position: absolute; left: 14px; top: 12px; color: var(--text-3); pointer-events: none; }
.header-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.header-action { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: var(--radius); font-weight: 550; font-size: .92rem; }
.header-action:hover { background: var(--subtle); color: var(--text); }
.cart-count { position: absolute; top: 4px; left: 26px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.cart-count[data-count="0"] { display: none; }
.menu-toggle { display: none; }
@media (max-width: 960px) {
  .header-main { height: auto; padding: 12px 0; flex-wrap: wrap; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .menu-toggle { display: inline-flex; }
  .header-action .label-text { display: none; }
  .brand { margin-right: auto; }
}

.cat-nav { border-top: 1px solid var(--border); }
.cat-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav a { display: inline-flex; align-items: center; height: 44px; padding: 0 12px; font-size: .88rem; font-weight: 550; color: var(--text-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.cat-nav a:hover, .cat-nav a.is-active { color: var(--text); border-bottom-color: var(--accent); }
@media (max-width: 960px) { .cat-nav { display: none; } }

.drawer { position: fixed; inset: 0; z-index: 200; display: none; }
.drawer.is-open { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(17,17,26,.35); }
.drawer-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); background: var(--surface); overflow-y: auto; padding: 16px; box-shadow: var(--shadow-lg); }
.drawer-panel a { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-radius: var(--radius-sm); font-weight: 550; }
.drawer-panel a:hover { background: var(--subtle); }

.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 8px; display: none; max-height: 70vh; overflow-y: auto; }
.suggest.is-open { display: block; }
.suggest-group { padding: 4px 0; }
.suggest-group + .suggest-group { border-top: 1px solid var(--border); }
.suggest-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 6px 10px; font-weight: 650; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-sm); font-size: .92rem; }
.suggest a:hover, .suggest a.is-active { background: var(--subtle); color: var(--text); }
.suggest img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: var(--subtle); flex: none; }
.suggest .s-price { margin-left: auto; font-weight: 600; white-space: nowrap; }
.suggest .s-meta { font-size: .78rem; color: var(--text-2); }

/* hero */
.hero { padding: 40px 0 8px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.6fr 1fr; } }
.hero-main { position: relative; overflow: hidden; border-radius: 20px; background: var(--subtle); border: 1px solid var(--border); padding: clamp(28px, 5vw, 56px); min-height: 340px; display: flex; flex-direction: column; justify-content: center; }
.hero-main::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(108,74,228,.14), rgba(108,74,228,0)); }
.hero-main h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); max-width: 16ch; letter-spacing: -.025em; }
.hero-main p { color: var(--text-2); max-width: 52ch; font-size: 1.05rem; }
.hero-main img.hero-img { position: absolute; right: 24px; bottom: 24px; max-width: 42%; max-height: 80%; object-fit: contain; z-index: 1; }
.hero-side { display: grid; gap: 20px; }
.promo-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 160px; padding: 24px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.promo-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); color: var(--text); }
.promo-card img { position: absolute; right: 12px; top: 12px; width: 44%; height: calc(100% - 24px); object-fit: contain; }
.promo-card h3 { margin: 0 0 4px; position: relative; max-width: 60%; }
.promo-card p { margin: 0; color: var(--text-2); font-size: .9rem; position: relative; max-width: 60%; }
.promo-card .link { margin-top: 10px; position: relative; display: inline-flex; align-items: center; gap: 4px; }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 28px 0 0; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.trust-item .icon { color: var(--accent); margin-top: 2px; }
.trust-item strong { display: block; font-size: .93rem; }
.trust-item span { color: var(--text-2); font-size: .85rem; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); transform: translateY(-1px); }
.cat-tile .icon { width: 30px; height: 30px; color: var(--accent); }
.cat-tile strong { font-size: .93rem; line-height: 1.3; }
.cat-tile span { font-size: .8rem; color: var(--text-2); }

/* product cards */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.with-sidebar .product-grid { }
@media (min-width: 1100px) { .with-sidebar .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1360px) { .with-sidebar .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .15s, box-shadow .2s var(--ease); }
.product-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.product-card .pc-media { display: block; aspect-ratio: 1 / 1; background: var(--surface); padding: 16px; border-bottom: 1px solid var(--border); }
.product-card .pc-media img { width: 100%; height: 100%; object-fit: contain; }
.product-card .pc-body { display: flex; flex-direction: column; gap: 6px; padding: 14px; flex: 1; }
.product-card .pc-brand { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); font-weight: 650; }
.product-card .pc-name { font-size: .92rem; font-weight: 550; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.product-card .pc-spec { font-size: .8rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .pc-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; }
.price-old { color: var(--text-3); text-decoration: line-through; font-size: .82rem; font-weight: 500; margin-left: 6px; }
.price-na { font-size: .88rem; color: var(--text-2); font-weight: 550; }
.pc-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 1; }
.avail { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 550; }
.avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.avail-in_stock { color: var(--success); }
.avail-supplier { color: var(--success); }
.avail-preorder { color: var(--warning); }
.avail-out_of_stock { color: var(--text-3); }
.pc-add { width: 38px; height: 38px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--text); flex: none; transition: all .15s; }
.pc-add:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pc-add:disabled { opacity: .35; cursor: not-allowed; }

/* breadcrumbs */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .84rem; color: var(--text-2); padding: 18px 0 6px; list-style: none; margin: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumbs a:hover { color: var(--accent); }

/* listing */
.listing { display: grid; grid-template-columns: 1fr; gap: 28px; padding-bottom: 48px; }
@media (min-width: 1000px) { .listing { grid-template-columns: 260px 1fr; } }
.filters { align-self: start; }
@media (min-width: 1000px) { .filters { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; padding-right: 4px; } }
@media (max-width: 999px) { .filters { display: none; } .filters.is-open { display: block; } }
.filter-group { border-bottom: 1px solid var(--border); padding: 16px 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); margin-bottom: 12px; }
.filter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 260px; overflow-y: auto; }
.filter-list .count { color: var(--text-3); font-size: .8rem; margin-left: auto; }
.filter-list .check { width: 100%; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.listing-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.listing-bar .count { color: var(--text-2); font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .82rem; font-weight: 600; }
.chip:hover { background: #E4DCFB; color: var(--accent-hover); }
.filter-toggle { display: none; }
@media (max-width: 999px) { .filter-toggle { display: inline-flex; } }

/* product page */
.pdp { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 8px 0 40px; }
@media (min-width: 960px) { .pdp { grid-template-columns: 1.05fr 1fr; gap: 48px; } }
.gallery-main { aspect-ratio: 1 / 1; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 28px; display: grid; place-items: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { width: 72px; height: 72px; flex: none; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 6px; cursor: pointer; }
.gallery-thumbs button.is-active, .gallery-thumbs button:hover { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-brand { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 650; color: var(--accent); }
.pdp h1 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); margin: 6px 0 10px; }
.pdp-ids { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .84rem; color: var(--text-2); }
.pdp-price { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 6px; }
.pdp-price .price { font-size: 1.85rem; }
.buy-box { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-top: 20px; }
.qty { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; height: 50px; }
.qty button { width: 44px; border: 0; background: var(--surface); cursor: pointer; color: var(--text); display: grid; place-items: center; }
.qty button:hover { background: var(--subtle); }
.qty input { width: 56px; border: 0; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm { height: 36px; }
.qty-sm button { width: 32px; }
.qty-sm input { width: 40px; font-size: .9rem; }
.pdp-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-size: .9rem; }
.pdp-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.pdp-points .icon { color: var(--text); margin-top: 1px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; }
.tabs button, .tabs a { height: 46px; padding: 0 16px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--text-2); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; }
.tabs button.is-active, .tabs a.is-active { color: var(--text); border-bottom-color: var(--accent); }
.tab-panel[hidden] { display: none; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.spec-table th, .spec-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.spec-table th { width: 34%; color: var(--text-2); font-weight: 550; background: var(--subtle); }
.spec-group-row th { background: var(--surface); color: var(--text); font-weight: 650; padding-top: 20px; }
.prose { max-width: 75ch; color: var(--text); }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose table { border-collapse: collapse; width: 100%; }
.prose td, .prose th { border: 1px solid var(--border); padding: 8px 10px; }

/* cart & checkout */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 8px 0 48px; }
@media (min-width: 960px) { .cart-layout { grid-template-columns: 1fr 380px; align-items: start; } }
.cart-line { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.cart-line img { width: 84px; height: 84px; object-fit: contain; border: 1px solid var(--border); border-radius: var(--radius); padding: 6px; background: var(--surface); }
.cart-line-main { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.cart-line-actions { display: flex; align-items: center; gap: 12px; }
.summary { position: sticky; top: 140px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .95rem; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; font-size: 1.12rem; font-weight: 700; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; margin-bottom: 10px; }
.pay-option:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.pay-option input { margin-top: 3px; accent-color: var(--accent); width: 18px; height: 18px; }
.pay-option strong { display: block; }
.pay-option span { color: var(--text-2); font-size: .87rem; }
.steps { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--text-3); margin: 6px 0 20px; }
.steps .is-done { color: var(--text); }

/* account */
.account-layout { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 8px 0 48px; }
@media (min-width: 900px) { .account-layout { grid-template-columns: 240px 1fr; } }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a, .side-nav button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); font-weight: 550; color: var(--text-2); background: none; border: 0; font: inherit; cursor: pointer; text-align: left; width: 100%; }
.side-nav a:hover, .side-nav button:hover { background: var(--subtle); color: var(--text); }
.side-nav a.is-active { background: var(--accent-soft); color: var(--accent); }
.auth-card { max-width: 440px; margin: 40px auto 64px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--subtle); margin-top: 32px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 44px 0 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-2); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer ul a { color: var(--text); }
.site-footer ul a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--text-2); margin-top: 1px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--text-2); font-size: .83rem; }

.notice-bar { background: var(--accent-soft); color: var(--accent-hover); text-align: center; font-size: .85rem; padding: 8px 16px; font-weight: 550; }
.page-head { padding: 8px 0 20px; }
.page-head p { color: var(--text-2); margin: 0; }
.error-page { text-align: center; padding: 72px 16px 96px; }
.error-page .code { font-size: 4rem; font-weight: 750; letter-spacing: -.04em; color: var(--accent); line-height: 1; margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* --------------------------------------------------------------- brand logo (bw_logo()) */
.bw-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; line-height: 1; flex: none; }
.bw-logo:hover { color: var(--text); }
.bw-logo-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 1.1rem; font-weight: 700; flex: none; }
.bw-logo-word span { color: var(--accent); }
.bw-logo-label { align-self: center; margin-left: 2px; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-family: var(--font); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
