﻿:root {
  --bg-primary: #0c1117;
  --bg-card: #141c25;
  --bg-input: #090d12;
  --border: #263140;
  --accent: #e59819;
  --accent-hover: #f5ad32;
  --accent-subtle: rgba(229, 152, 25, 0.12);
  --text-main: #f3f5f8;
  --text-muted: #9ba3b0;
  --whatsapp: #25D366;
  --warning: #f59e0b;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}
body.theme-badger {
  --bg-primary: #0f1216;
  --bg-card: #171b22;
  --border: #2a313d;
  --accent: #e59819;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg-primary); color: var(--text-main); line-height: 1.5; padding: 16px 16px 110px 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.cat-shell { max-width: 1180px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 45px rgba(0,0,0,0.45); }
.cat-header { background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(0,0,0,0.28) 100%); padding: 26px 28px; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.badge-top { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: var(--accent-subtle); border: 1px solid var(--accent); padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
.cat-header h1 { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.cat-header p { color: var(--text-muted); font-size: 14px; max-width: 720px; margin-top: 4px; }
.header-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-box { background: var(--bg-input); border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; text-align: right; }
.stat-box .num { font-size: 20px; font-weight: 800; color: var(--accent); display: block; }
.stat-box .lbl { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.controls-bar { padding: 18px 28px; background: rgba(0,0,0,0.18); border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr 220px 190px; gap: 12px; }
@media (max-width: 820px) { .controls-bar { grid-template-columns: 1fr; } }
.search-wrap { position: relative; }
.search-input, .select-input { width: 100%; background: var(--bg-input); color: var(--text-main); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 14px; outline: none; }
.search-input:focus, .select-input:focus { border-color: var(--accent); }
.clear-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: #252c37; color: var(--text-muted); border: none; border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; display: none; }
.filter-strip { padding: 14px 28px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.pill-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-right: 4px; }
.pill { background: var(--bg-input); color: var(--text-muted); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; }
.pill:hover { border-color: var(--accent); color: #fff; text-decoration: none; }
.pill.active { background: var(--accent); color: #0b0e12; border-color: var(--accent); font-weight: 700; }
.brand-hub-banner { display: none; margin: 16px 28px 0 28px; padding: 14px 18px; background: var(--accent-subtle); border: 1px solid var(--accent); border-radius: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.results-meta { padding: 12px 28px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead th { padding: 12px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); background: rgba(0,0,0,0.25); border-bottom: 1px solid var(--border); }
tbody tr { border-bottom: 1px solid rgba(42,49,61,0.65); }
tbody tr:nth-child(even) { background: rgba(255,255,255,0.015); }
tbody tr:hover { background: rgba(255,255,255,0.045); }
td { padding: 13px 16px; vertical-align: middle; font-size: 14px; }
.col-brand { width: 165px; }
.brand-chip { font-weight: 700; color: #fff; font-size: 13px; cursor: pointer; }
.brand-chip:hover { color: var(--accent); text-decoration: underline; }
.sku-code { display: block; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.item-title { font-weight: 600; color: var(--text-main); }
.item-sub { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.cat-tag { font-size: 11px; color: var(--text-muted); background: rgba(255,255,255,0.05); padding: 2px 8px; border-radius: 4px; }
.min-qty-badge { font-size: 11px; font-weight: 700; color: var(--warning); background: rgba(245,158,11,0.14); border: 1px solid rgba(245,158,11,0.4); padding: 1px 7px; border-radius: 4px; }
.col-price { text-align: right; white-space: nowrap; width: 150px; }
.price-val { font-size: 16px; font-weight: 800; color: var(--accent); }
.price-vat { display: block; font-size: 10.5px; color: var(--text-muted); }
.col-actions { text-align: right; white-space: nowrap; width: 205px; }
.btn-add { background: var(--accent); color: #0b0e12; border: none; border-radius: 8px; padding: 8px 12px; font-size: 12.5px; font-weight: 800; cursor: pointer; }
.btn-add:hover { background: var(--accent-hover); }
.btn-wa-row { display: inline-block; background: transparent; color: var(--whatsapp); border: 1px solid rgba(37,211,102,0.45); border-radius: 8px; padding: 7px 10px; font-size: 12px; font-weight: 700; margin-left: 6px; text-decoration: none; }
.btn-wa-row:hover { background: var(--whatsapp); color: #0b0e12; text-decoration: none; }
.load-more-wrap { padding: 20px; text-align: center; }
.btn-load-more { background: var(--bg-input); color: var(--text-main); border: 1px solid var(--border); padding: 10px 24px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; }
.brand-directory { padding: 24px 28px; border-top: 1px solid var(--border); background: rgba(0,0,0,0.15); }
.brand-directory h2 { font-size: 16px; margin-bottom: 12px; color: #fff; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 8px; }
.brand-link-card { display: flex; justify-content: space-between; align-items: center; background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; font-size: 12.5px; color: var(--text-main); text-decoration: none; }
.brand-link-card:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.brand-link-card small { color: var(--text-muted); }
.disclaimer-footer { padding: 18px 28px; background: rgba(0,0,0,0.28); border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.quote-bar { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: 980px; background: #11161d; border: 2px solid var(--accent); border-radius: 14px; padding: 14px 20px; box-shadow: 0 18px 40px rgba(0,0,0,0.8); display: none; z-index: 999; }
.quote-bar-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.quote-summary { font-size: 14px; font-weight: 700; }
.quote-summary span { color: var(--accent); font-size: 17px; margin-left: 6px; }
.quote-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-wa-send { background: var(--whatsapp); color: #07190e; border: none; border-radius: 8px; padding: 10px 16px; font-size: 13px; font-weight: 800; cursor: pointer; text-decoration: none; }
.btn-secondary { background: #222934; color: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 9px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none; }
.quote-items-drawer { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); max-height: 220px; overflow-y: auto; }
.q-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed rgba(255,255,255,0.08); }
.q-qty-btn { background: #252d3a; color: #fff; border: none; width: 24px; height: 24px; border-radius: 5px; cursor: pointer; font-weight: 700; }
@media (max-width: 700px) {
  thead { display: none; }
  tbody tr { display: block; padding: 12px 16px; }
  td { display: block; padding: 4px 0; text-align: left !important; width: 100% !important; }
  .col-actions { margin-top: 8px; }
}