/* ================================================================
   Viciner v4 — design.css
   Shared design system used by all three areas
   ================================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
.vcn-brand-nav {margin-top:20px;}
.vcn-brand-nav a {margin-left:20px;}
/* ── Design tokens ── */
:root {
  /* Brand */
  --brand:       #0057ff;
  --brand-dk:    #0043cc;
  --brand-lt:    #e8f0ff;
  --brand-mid:   #c5d8ff;

  /* Semantic */
  --ok:          #059669;
  --ok-lt:       #ecfdf5;
  --ok-border:   #6ee7b7;
  --warn:        #d97706;
  --warn-lt:     #fffbeb;
  --warn-border: #fcd34d;
  --err:         #dc2626;
  --err-lt:      #fef2f2;
  --err-border:  #fca5a5;
  --info:        #0284c7;
  --info-lt:     #f0f9ff;
  --info-border: #7dd3fc;

  /* Neutrals */
  --n-0:    #ffffff;
  --n-50:   #f8f9fc;
  --n-100:  #f1f3f8;
  --n-200:  #e4e8f0;
  --n-300:  #cdd3df;
  --n-400:  #9aa3b5;
  --n-500:  #6b7590;
  --n-600:  #4a5270;
  --n-700:  #323b55;
  --n-800:  #1e2540;
  --n-900:  #0d1128;

  /* Typography */
  --font:    'Plus Jakarta Sans', system-ui, sans-serif;
  --mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Radii */
  --r-sm:   6px;
  --r:      10px;
  --r-lg:   16px;
  --r-xl:   24px;

  /* Shadows */
  --sh-xs:  0 1px 2px rgba(13,17,40,.06);
  --sh-sm:  0 2px 8px rgba(13,17,40,.08);
  --sh:     0 4px 16px rgba(13,17,40,.10);
  --sh-lg:  0 12px 40px rgba(13,17,40,.14);
  --sh-xl:  0 24px 64px rgba(13,17,40,.18);

  /* Transitions */
  --t:      150ms ease;
  --t-md:   250ms ease;
}

/* ── Base ── */
html  { scroll-behavior: smooth; font-size: 15px; }
body  { font-family: var(--font); color: var(--n-800); background: var(--n-50); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a     { color: var(--brand); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--brand-dk); }
img   { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: var(--font); }

/* ── Layout ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--r-sm); font-family: var(--font);
  font-size: .875rem; font-weight: 600; cursor: pointer; border: none;
  line-height: 1; transition: all var(--t); text-decoration: none !important;
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary  { background: var(--brand);   color: #fff; }
.btn-primary:hover  { background: var(--brand-dk); color: #fff; box-shadow: 0 4px 12px rgba(0,87,255,.3); }
.btn-outline  { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-outline:hover  { background: var(--brand-lt); }
.btn-ghost    { background: transparent; color: var(--n-600); border: 1px solid var(--n-300); }
.btn-ghost:hover    { background: var(--n-100); color: var(--n-800); border-color: var(--n-400); }
.btn-ok       { background: var(--ok);   color: #fff; }
.btn-ok:hover       { background: #047857; }
.btn-warn     { background: var(--warn); color: #fff; }
.btn-warn:hover     { background: #b45309; }
.btn-err      { background: var(--err);  color: #fff; }
.btn-err:hover      { background: #b91c1c; }
.btn-wa       { background: #25d366;     color: #fff; }
.btn-wa:hover       { background: #1da851; }
.btn-dark     { background: var(--n-800); color: #fff; }
.btn-dark:hover     { background: var(--n-900); }
.btn-xs   { padding: 4px  9px;  font-size: .75rem; border-radius: 5px; }
.btn-sm   { padding: 6px  12px; font-size: .8rem;  border-radius: 6px; }
.btn-lg   { padding: 13px 24px; font-size: 1rem; border-radius: var(--r); }
.btn-xl   { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--r); }
.btn-block { width: 100%; }

/* ── Chips / Badges ── */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.chip-brand  { background: var(--brand);    color: #fff; }
.chip-ok     { background: var(--ok-lt);    color: var(--ok); border: 1px solid var(--ok-border); }
.chip-warn   { background: var(--warn-lt);  color: var(--warn); border: 1px solid var(--warn-border); }
.chip-err    { background: var(--err-lt);   color: var(--err); border: 1px solid var(--err-border); }
.chip-5g     { background: var(--brand);    color: #fff; font-size: .68rem; }
.chip-new    { background: var(--n-800);    color: #fff; }
.chip-lg     { padding: 5px 12px; font-size: .8rem; }
.count-badge { background: var(--n-200); color: var(--n-600); padding: 2px 9px; border-radius: 20px; font-size: .75rem; font-weight: 700; }

/* ── Alerts / Flash ── */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  border-radius: var(--r); padding: 14px 18px; margin-bottom: 20px;
  font-size: .9rem; border: 1px solid transparent;
}
.alert-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.alert-body { flex: 1; }
.alert-body p + p { margin-top: 4px; }
.alert ul { padding-left: 16px; list-style: disc; }
.alert-ok   { background: var(--ok-lt);   border-color: var(--ok-border);   color: var(--ok); }
.alert-err  { background: var(--err-lt);  border-color: var(--err-border);  color: var(--err); }
.alert-warn { background: var(--warn-lt); border-color: var(--warn-border); color: var(--warn); }
.alert-info { background: var(--info-lt); border-color: var(--info-border); color: var(--info); }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 150px; }
.field label { font-size: .83rem; font-weight: 600; color: var(--n-600); }
.field label small { font-weight: 400; color: var(--n-400); margin-left: 6px; }
.field input, .field select, .field textarea {
  padding: 10px 13px; border: 1.5px solid var(--n-300); border-radius: var(--r-sm);
  font-family: var(--font); font-size: .9rem; color: var(--n-800);
  background: var(--n-0); width: 100%; outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,87,255,.1);
}
.field input.err, .field select.err { border-color: var(--err); }
.field textarea { resize: vertical; min-height: 80px; }
.field--sm { max-width: 120px; }
.field--check { justify-content: flex-end; padding-bottom: 2px; }
.field--check label { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: .9rem; cursor: pointer; }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-hint { font-size: .78rem; color: var(--n-400); margin-top: 2px; }

.input-sm  { padding: 7px 11px; border: 1.5px solid var(--n-300); border-radius: var(--r-sm); font-family: var(--font); font-size: .86rem; color: var(--n-800); background: var(--n-0); outline: none; transition: border-color var(--t); }
.input-sm:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,87,255,.1); }
.select-sm { padding: 7px 11px; border: 1.5px solid var(--n-300); border-radius: var(--r-sm); font-family: var(--font); font-size: .86rem; background: var(--n-0); color: var(--n-800); cursor: pointer; outline: none; }
.select-sm:focus { border-color: var(--brand); }

.form-feedback { min-height: 22px; font-size: .84rem; font-weight: 600; margin-top: 10px; }
.form-feedback.ok  { color: var(--ok); }
.form-feedback.err { color: var(--err); }

/* ── Toggle switch ── */
.toggle-wrap { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle { position: relative; width: 40px; height: 22px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--n-300); border-radius: 11px; transition: background var(--t); }
.toggle-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform var(--t); box-shadow: var(--sh-xs); }
.toggle input:checked + .toggle-slider { background: var(--ok); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ── Map box ── */
.map-box { width: 100%; height: 300px; border-radius: var(--r-sm); border: 1.5px solid var(--n-300); background: var(--n-100); overflow: hidden; }
.map-coords { font-size: .78rem; color: var(--n-400); font-family: var(--mono); margin-top: 6px; }
.map-fallback { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.map-fallback p { font-size: .88rem; color: var(--n-500); }

/* ── Spinner / loading ── */
.spinner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--n-400); font-size: .9rem; }
.spinner::before { content: ''; width: 20px; height: 20px; border: 2px solid var(--n-200); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Divider ── */
hr { border: none; border-top: 1px solid var(--n-200); margin: 28px 0; }

/* ================================================================
   PUBLIC BUYER STORE
   ================================================================ */

/* ── Public nav ── */
.site-header { background: var(--n-0); border-bottom: 1px solid var(--n-200); position: sticky; top: 0; z-index: 200; box-shadow: var(--sh-xs); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.2rem; color: var(--n-800); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; color: var(--n-800); }
.brand-mark { width: 34px; height: 34px; background: var(--brand); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.brand-sub { font-size: .65rem; font-weight: 500; color: var(--n-400); margin-left: -4px; letter-spacing: .02em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav > a:not(.btn) { font-size: .88rem; font-weight: 500; color: var(--n-500); padding: 6px 10px; border-radius: var(--r-sm); transition: background var(--t), color var(--t); }
.site-nav > a:not(.btn):hover { background: var(--n-100); color: var(--n-800); text-decoration: none; }

/* ── Hero ── */
.hero { background: var(--n-900); color: #fff; padding: 64px 20px 60px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 60% 100%, rgba(0,87,255,.35) 0%, transparent 70%); }
.hero-inner { max-width: 1180px; margin: 0 auto; position: relative; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 14px; }
.hero h1 span { color: var(--brand-mid); }
.hero-sub { font-size: 1rem; color: rgba(255,255,255,.6); max-width: 500px; line-height: 1.7; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stat-val { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.hero-stat-lbl { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: 2px; }

/* ── Browse section ── */
.browse-section { padding: 32px 0 72px; }

/* ── Search bar ── */
.search-wrap { background: var(--n-0); border: 1.5px solid var(--n-200); border-radius: var(--r-lg); padding: 16px 20px; margin-bottom: 24px; box-shadow: var(--sh-sm); }
.search-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.input-search { flex: 1; min-width: 200px; padding: 10px 14px 10px 40px; border: 1.5px solid var(--n-200); border-radius: var(--r-sm); font-family: var(--font); font-size: .92rem; color: var(--n-800); background: var(--n-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239aa3b5' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 3 3'/%3E%3C/svg%3E") 12px center no-repeat; outline: none; transition: border-color var(--t); }
.input-search:focus { border-color: var(--brand); background-color: var(--n-0); box-shadow: 0 0 0 3px rgba(0,87,255,.1); }
.brand-chips { display: flex; gap: 7px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--n-100); margin-top: 14px; }
.brand-chip { padding: 5px 13px; border-radius: 20px; font-size: .8rem; font-weight: 600; color: var(--n-500); background: var(--n-100); border: 1.5px solid transparent; cursor: pointer; transition: all var(--t); text-decoration: none; }
.brand-chip:hover { background: var(--brand-lt); color: var(--brand); border-color: var(--brand-mid); text-decoration: none; }
.brand-chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.results-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.results-count { font-size: .85rem; color: var(--n-400); }
.results-count strong { color: var(--n-700); }

/* ── Product grid ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px,1fr)); gap: 18px; }
.product-card { background: var(--n-0); border: 1.5px solid var(--n-200); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform var(--t-md), box-shadow var(--t-md), border-color var(--t-md); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: var(--n-300); text-decoration: none; }
.card-img { position: relative; background: var(--n-50); height: 190px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-img img { width: 100%; height: 190px; object-fit: contain; padding: 16px; transition: transform var(--t-md); }
.product-card:hover .card-img img { transform: scale(1.04); }
.img-ph { font-size: 3.5rem; }
.card-img .chip { position: absolute; top: 10px; right: 10px; }
.card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.card-brand { font-size: .68rem; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }
.card-name { font-size: .95rem; font-weight: 700; color: var(--n-800); line-height: 1.25; letter-spacing: -.01em; }
.card-specs { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0; }
.card-specs span { font-size: .72rem; color: var(--n-500); background: var(--n-50); border: 1px solid var(--n-200); padding: 2px 8px; border-radius: 4px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--n-100); }
.card-price { font-size: .9rem; font-weight: 800; color: var(--brand); letter-spacing: -.01em; }
.card-sellers { font-size: .72rem; color: var(--n-400); }
.empty-state { grid-column: 1/-1; text-align: center; padding: 80px 20px; }
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; color: var(--n-700); margin-bottom: 6px; }
.empty-state p { color: var(--n-400); font-size: .9rem; }

/* ── Product detail page ── */
.product-page { padding: 28px 0 80px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--n-400); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--n-500); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb-sep { color: var(--n-300); }
.product-layout { display: grid; grid-template-columns: 420px 1fr; gap: 40px; align-items: start; margin-bottom: 40px; }
.product-media { position: sticky; top: 84px; }
.product-img-box { background: var(--n-50); border: 1.5px solid var(--n-200); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.product-img-box img { width: 100%; height: 100%; object-fit: contain; padding: 28px; }
.product-img-fallback { font-size: 5rem; }
.product-info { display: flex; flex-direction: column; gap: 14px; }
.info-brand-row { display: flex; align-items: center; gap: 10px; }
.info-brand { font-size: .73rem; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .08em; }
.info-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--n-900); letter-spacing: -.03em; line-height: 1.15; }
.info-price-from { font-size: 1rem; color: var(--n-500); }
.info-price-from strong { color: var(--brand); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spec-tile { background: var(--n-50); border: 1px solid var(--n-200); border-radius: var(--r-sm); padding: 10px 13px; }
.spec-tile dt { font-size: .68rem; font-weight: 700; color: var(--n-400); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.spec-tile dd { font-size: .85rem; font-weight: 600; color: var(--n-700); }
.info-desc { font-size: .9rem; color: var(--n-500); line-height: 1.75; background: var(--n-50); border-radius: var(--r-sm); padding: 14px 16px; border: 1px solid var(--n-200); }

/* ── Seller finder ── */
.seller-finder { background: var(--n-0); border: 1.5px solid var(--n-200); border-radius: var(--r-xl); padding: 36px; }
.finder-header { margin-bottom: 24px; }
.finder-header h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.finder-header p { color: var(--n-400); font-size: .88rem; }
.finder-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.finder-options { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.finder-options label { display: flex; align-items: center; gap: 7px; font-size: .86rem; color: var(--n-600); font-weight: 500; }
.finder-status { font-size: .86rem; color: var(--n-400); min-height: 22px; margin-bottom: 16px; }
.seller-list { display: flex; flex-direction: column; gap: 12px; }

.seller-card { border: 1.5px solid var(--n-200); border-radius: var(--r-lg); padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; transition: border-color var(--t), box-shadow var(--t); }
.seller-card:hover { border-color: var(--brand-mid); box-shadow: var(--sh-sm); }
.sc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sc-name { font-weight: 700; font-size: 1rem; color: var(--n-800); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc-price { font-size: 1.6rem; font-weight: 800; color: var(--brand); letter-spacing: -.03em; text-align: right; line-height: 1; }
.sc-dist { font-size: .78rem; color: var(--n-400); text-align: right; margin-top: 5px; font-family: var(--mono); }
.sc-details { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.sc-detail-row { display: flex; align-items: center; gap: 8px; font-size: .83rem; color: var(--n-500); }
.sc-detail-row svg { flex-shrink: 0; opacity: .5; }
.sc-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.no-results { text-align: center; padding: 48px 20px; }
.no-results-icon { font-size: 2.5rem; display: block; margin-bottom: 10px; }
.no-results h3 { font-size: 1rem; font-weight: 700; color: var(--n-600); margin-bottom: 4px; }
.no-results p { font-size: .86rem; color: var(--n-400); }

/* ── Auth pages ── */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 48px 20px 80px; }
.auth-main--wide { align-items: flex-start; }
.auth-card { background: var(--n-0); border: 1.5px solid var(--n-200); border-radius: var(--r-xl); padding: 40px; width: 100%; max-width: 460px; box-shadow: var(--sh); }
.auth-card--wide { max-width: 700px; }
.auth-logo { width: 52px; height: 52px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 16px; }
.auth-logo-buyer  { background: var(--brand-lt); }
.auth-logo-seller { background: #1e293b; }
.auth-logo-admin  { background: var(--n-900); }
.auth-card h1 { text-align: center; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--n-400); font-size: .88rem; margin-bottom: 28px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: .84rem; color: var(--n-400); line-height: 2; }
.auth-footer a { color: var(--n-600); font-weight: 600; }
.auth-footer a:hover { color: var(--brand); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--n-300); font-size: .78rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--n-200); }

/* ── Site footer ── */
.site-footer { background: var(--n-900); color: rgba(255,255,255,.4); padding: 40px 20px; margin-top: 80px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { font-weight: 800; font-size: 1rem; color: rgba(255,255,255,.8); letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.footer-links { display: flex; gap: 20px; font-size: .82rem; }
.footer-links a { color: rgba(255,255,255,.35); }
.footer-links a:hover { color: rgba(255,255,255,.65); }
.footer-copy { font-size: .78rem; width: 100%; margin-top: 8px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-media { position: static; }
}
@media (max-width: 768px) {
  .spec-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.7rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 12px; }
  .seller-card { grid-template-columns: 1fr; }
  .sc-price, .sc-dist { text-align: left; }
}
@media (max-width: 560px) {
  .field-row { flex-direction: column; }
  .site-nav > a:not(.btn) { display: none; }
  .hero { padding: 40px 20px; }
  .auth-card { padding: 28px 20px; }
}

/* ================================================================
   VICINER v5.3 ADDITIONS — appended to base CSS
   ================================================================ */

/* ── Brand nav pills (v5) ── */
.vcn-brand-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 0; }
.vcn-pill { padding: 5px 14px; border-radius: 20px; font-size: .8rem; font-weight: 700; color: var(--n-600); background: var(--n-100); text-decoration: none !important; transition: all var(--t); border: 1.5px solid transparent; }
.vcn-pill:hover { background: var(--brand-lt); color: var(--brand); border-color: var(--brand-mid); }
.vcn-pill.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ── Category navigation bar ── */
.cat-nav { background: var(--n-0); border-bottom: 1px solid var(--n-100); overflow-x: auto; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav-inner { max-width: 1260px; margin: 0 auto; padding: 0 20px; display: flex; gap: 2px; height: 44px; align-items: center; }
.cat-nav a { padding: 6px 14px; border-radius: 6px; font-size: .83rem; font-weight: 700; color: var(--n-600); text-decoration: none !important; white-space: nowrap; transition: all var(--t); display: flex; align-items: center; gap: 5px; }
.cat-nav a:hover { background: var(--n-100); color: var(--n-900); }
.cat-nav a.active { background: var(--brand-lt); color: var(--brand); }

/* ── Header search bar (v5) ── */
.header-search { flex: 1; max-width: 480px; position: relative; }
.header-search form { display: flex; align-items: center; }
.header-search input { width: 100%; padding: 9px 14px 9px 38px; border: 1.5px solid var(--n-200); border-radius: 8px; font-family: var(--font); font-size: .875rem; background: var(--n-50); transition: border-color var(--t); }
.header-search input:focus { outline: none; border-color: var(--brand); background: var(--n-0); box-shadow: 0 0 0 3px rgba(0,87,255,.1); }
.header-search .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--n-400); font-size: 1rem; pointer-events: none; }

/* ── Filter sidebar (browse + index) ── */
.filter-sidebar { width: 230px; flex-shrink: 0; background: var(--n-0); border: 1.5px solid var(--n-200); border-radius: var(--r-lg); padding: 20px; position: sticky; top: 80px; }
.filter-section { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--n-100); }
.filter-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-title { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--n-400); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.filter-opt { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--n-700); cursor: pointer; padding: 4px 0; transition: color var(--t); }
.filter-opt:hover { color: var(--brand); }
.filter-opt input[type=checkbox], .filter-opt input[type=radio] { accent-color: var(--brand); width: 15px; height: 15px; flex-shrink: 0; }
.filter-price-inputs { display: flex; gap: 6px; align-items: center; }
.filter-price-inputs input { width: 82px; border: 1.5px solid var(--n-200); border-radius: 6px; padding: 6px 8px; font-size: .8rem; font-family: var(--font); }
.products-area { flex: 1; min-width: 0; }
.sort-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; background: var(--n-0); border: 1.5px solid var(--n-200); border-radius: 10px; padding: 10px 16px; margin-bottom: 18px; box-shadow: var(--sh-xs); }
.sort-select { border: 1.5px solid var(--n-200); border-radius: 6px; padding: 7px 12px; font-family: var(--font); font-size: .875rem; font-weight: 600; color: var(--n-700); background: var(--n-50); cursor: pointer; }
.filter-toggle-btn { display: none; }

/* ── Compare button on product card ── */
.compare-btn { position: absolute; top: 10px; right: 10px; background: var(--n-0); border: 1.5px solid var(--n-200); border-radius: 7px; width: 33px; height: 33px; display: flex; align-items: center; justify-content: center; font-size: .95rem; cursor: pointer; transition: all .2s; z-index: 2; box-shadow: var(--sh-xs); }
.compare-btn:hover { border-color: var(--brand); background: var(--brand-lt); }
.compare-btn.in-compare { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── Compare floating bar ── */
#compareBar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--n-900); color: #fff; padding: 13px 24px; display: none; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; z-index: 9999; box-shadow: 0 -4px 24px rgba(0,0,0,.25); border-top: 2px solid var(--brand); }
#compareBar.visible { display: flex; }
.compare-item-pill { background: #1e293b; border: 1px solid #334155; border-radius: 8px; padding: 6px 13px; font-size: .82rem; display: flex; align-items: center; gap: 8px; }
.compare-item-pill button { background: none; border: none; color: #94a3b8; cursor: pointer; font-size: 1rem; padding: 0; line-height: 1; transition: color var(--t); }
.compare-item-pill button:hover { color: var(--err); }

/* ── Price history canvas ── */
.price-chart-wrap { background: var(--n-0); border: 1.5px solid var(--n-200); border-radius: var(--r-lg); padding: 20px; }

/* ── Variant picker ── */
.variant-section { margin-bottom: 18px; }
.variant-label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--n-400); margin-bottom: 9px; }
.variant-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn { padding: 7px 15px; border: 2px solid var(--n-200); border-radius: 8px; font-size: .85rem; font-weight: 700; cursor: pointer; background: var(--n-0); color: var(--n-700); transition: all var(--t); font-family: var(--font); }
.variant-btn:hover { border-color: var(--brand-mid); color: var(--brand); }
.variant-btn.active { border-color: var(--brand); background: var(--brand-lt); color: var(--brand); }

/* ── Shop reviews ── */
.review-card { background: var(--n-0); border: 1.5px solid var(--n-100); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; }
.stars-display { display: inline-flex; gap: 2px; }
.star { font-size: 1.05rem; }
.star.filled { color: #f59e0b; }
.star.empty  { color: var(--n-200); }
.rating-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; font-size: .85rem; }
.rating-bar-bg   { flex: 1; height: 7px; background: var(--n-100); border-radius: 4px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: #f59e0b; border-radius: 4px; transition: width .5s; }
.star-input { display: flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { display: none; }
.star-input label { font-size: 1.8rem; cursor: pointer; color: var(--n-200); transition: color var(--t); }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f59e0b; }

/* ── Alert form ── */
.alert-form { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--r-lg); padding: 20px; }

/* ── Cart / checkout ── */
.co-card { background: var(--n-0); border: 1.5px solid var(--n-200); border-radius: var(--r-lg); padding: 24px; }
.co-section { font-size: 1rem; font-weight: 800; color: var(--n-900); margin: 0 0 18px; display: flex; align-items: center; gap: 8px; }
.method-btn { padding: 13px 16px; border: 2px solid var(--n-200); border-radius: 10px; cursor: pointer; text-align: left; background: var(--n-0); font-family: var(--font); width: 100%; margin-bottom: 9px; transition: all var(--t); display: flex; align-items: center; gap: 12px; }
.method-btn:hover { border-color: var(--brand-mid); }
.method-btn.selected { border-color: var(--brand); background: var(--brand-lt); }
.method-icon { font-size: 1.4rem; }
.method-name { font-weight: 700; font-size: .9rem; color: var(--n-900); }
.method-desc { font-size: .75rem; color: var(--n-400); margin-top: 1px; }
.summary-row { display: flex; justify-content: space-between; font-size: .9rem; color: var(--n-500); margin-bottom: 10px; }
.summary-total { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 800; color: var(--n-900); padding-top: 12px; border-top: 2px dashed var(--n-200); margin-top: 8px; }

/* ── Wishlist / dashboard ── */
.buyer-dash { max-width: 1100px; margin: 0 auto; padding: 30px 20px 80px; }
.dash-nav { display: flex; gap: 6px; flex-wrap: wrap; background: var(--n-0); padding: 10px; border-radius: var(--r-lg); border: 1.5px solid var(--n-200); margin-bottom: 22px; }
.dash-nav a { padding: 8px 16px; border-radius: 8px; font-weight: 700; font-size: .875rem; color: var(--n-400); text-decoration: none !important; transition: all var(--t); border: 1.5px solid transparent; }
.dash-nav a:hover { color: var(--n-900); background: var(--n-100); }
.dash-nav a.active { color: var(--brand); background: var(--brand-lt); border-color: var(--brand-mid); }
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.dash-stat { background: var(--n-0); border: 1.5px solid var(--n-200); border-radius: var(--r-lg); padding: 20px; text-align: center; }
.dash-stat-val { font-size: 2rem; font-weight: 800; color: var(--n-900); }
.dash-stat-lbl { font-size: .75rem; color: var(--n-400); text-transform: uppercase; font-weight: 700; margin-top: 4px; }
.wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px,1fr)); gap: 16px; }
.wish-card { background: var(--n-0); border: 1.5px solid var(--n-200); border-radius: var(--r-lg); overflow: hidden; position: relative; }
.wish-img { height: 140px; background: var(--n-50); display: flex; align-items: center; justify-content: center; padding: 12px; }
.wish-img img { max-height: 100%; object-fit: contain; }
.wish-remove { position: absolute; top: 8px; right: 8px; background: var(--n-0); border: 1.5px solid var(--n-200); border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: .8rem; box-shadow: var(--sh-xs); transition: all var(--t); }
.wish-remove:hover { background: var(--err-lt); border-color: var(--err); color: var(--err); }
.alert-card { background: var(--n-0); border: 1.5px solid var(--n-200); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.notif-card { padding: 14px; border-bottom: 1px solid var(--n-100); display: flex; gap: 12px; align-items: flex-start; }
.notif-card:last-child { border-bottom: none; }
.notif-unread { background: var(--info-lt); }

/* ── Search results page ── */
.search-tab { padding: 6px 14px; border: 1.5px solid var(--n-200); border-radius: 20px; font-size: .82rem; font-weight: 700; cursor: pointer; text-decoration: none !important; color: var(--n-600); transition: all var(--t); }
.search-tab:hover { border-color: var(--brand); color: var(--brand); }
.search-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── Seller portal ── */
.seller-dash { max-width: 1200px; margin: 0 auto; padding: 20px 20px 80px; }
.seller-nav { display: flex; gap: 6px; flex-wrap: wrap; background: var(--n-0); padding: 10px; border-radius: var(--r-lg); border: 1.5px solid var(--n-200); margin-bottom: 22px; }
.seller-nav a { padding: 8px 14px; border-radius: 8px; font-weight: 700; font-size: .85rem; color: var(--n-400); text-decoration: none !important; transition: all var(--t); }
.seller-nav a:hover { background: var(--n-100); color: var(--n-900); }
.seller-nav a.active { background: var(--brand-lt); color: var(--brand); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 12px; margin-bottom: 22px; }
.stat-box { background: var(--n-0); border: 1.5px solid var(--n-200); border-radius: var(--r-lg); padding: 16px; text-align: center; }
.stat-val { font-size: 1.8rem; font-weight: 800; color: var(--n-900); }
.stat-lbl { font-size: .72rem; color: var(--n-400); text-transform: uppercase; font-weight: 700; margin-top: 3px; }
.listing-row { display: flex; gap: 14px; align-items: center; background: var(--n-0); border: 1.5px solid var(--n-200); border-radius: 10px; padding: 14px; margin-bottom: 10px; flex-wrap: wrap; transition: border-color var(--t); }
.listing-row:hover { border-color: var(--n-300); }
.listing-img { width: 54px; height: 54px; object-fit: contain; border-radius: 8px; background: var(--n-50); flex-shrink: 0; }

/* ── Progress bar ── */
.progress-bar-wrap { background: var(--n-100); border-radius: 6px; height: 7px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--brand); border-radius: 6px; transition: width .4s ease; }

/* ── File drop zone ── */
.file-drop { border: 2px dashed var(--n-300); border-radius: var(--r-lg); padding: 36px; text-align: center; cursor: pointer; transition: all .2s; }
.file-drop:hover, .file-drop.dragover { border-color: var(--brand); background: var(--brand-lt); }

/* ── Admin console box ── */
.console-box { background: var(--n-900); color: #10b981; font-family: var(--mono); padding: 20px; border-radius: var(--r-lg); height: 320px; overflow-y: auto; font-size: .875rem; line-height: 1.7; }
.console-box .err  { color: #ef4444; }
.console-box .ok   { color: #10b981; }
.console-box .info { color: #60a5fa; }
.console-box .warn { color: #fbbf24; }

/* ── Responsive additions ── */
@media (max-width: 768px) {
  .filter-sidebar { width: 100%; position: static; display: none; }
  .filter-sidebar.open { display: block; }
  .filter-toggle-btn { display: inline-flex !important; }
  .browse-layout { flex-direction: column; }
  .compare-btn { width: 28px; height: 28px; font-size: .8rem; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .dash-nav { gap: 4px; }
  .dash-nav a { padding: 6px 10px; font-size: .78rem; }
}
@media (max-width: 480px) {
  .hero-stats { gap: 20px; }
  .hero-stat-val { font-size: 1.3rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-img { height: 155px; }
}
