/* WattHub — B2B Industrial Automation Marketplace */
:root {
  --blue: #0ea5e9;
  --blue-dark: #0284c7;
  --blue-light: #e0f2fe;
  --orange: #f97316;
  --orange-light: #fff7ed;
  --green: #22c55e;
  --red: #ef4444;
  --yellow: #f59e0b;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font);color:var(--gray-800);background:#fff;line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:var(--blue);text-decoration:none}
a:hover{color:var(--blue-dark)}
img{max-width:100%;height:auto}
button{cursor:pointer;font-family:inherit}

/* TYPOGRAPHY */
h1{font-size:2rem;font-weight:700;line-height:1.2;color:var(--gray-900)}
h2{font-size:1.5rem;font-weight:600;line-height:1.3;color:var(--gray-900)}
h3{font-size:1.125rem;font-weight:600;color:var(--gray-800)}
h4{font-size:1rem;font-weight:600;color:var(--gray-700)}
p{color:var(--gray-600)}
code{font-family:monospace;background:var(--gray-100);padding:.2em .4em;border-radius:4px;font-size:.9em}

/* LAYOUT */
.container{max-width:1200px;margin:0 auto;padding:0 1.5rem}
.text-center{text-align:center}
.flex-gap{display:flex;gap:.5rem;align-items:center}

/* ─── HEADER ─────────────────────────────────────────────────────────────── */
.site-header{background:#fff;border-bottom:1px solid var(--gray-200);position:sticky;top:0;z-index:100;height:64px}
.header-inner{display:flex;align-items:center;gap:1.5rem;height:64px}
.logo{display:flex;align-items:center;gap:.5rem;font-size:1.25rem;font-weight:700;color:var(--gray-900);white-space:nowrap}
.logo strong{color:var(--blue)}
.logo svg{flex-shrink:0}

/* Header search */
.header-search{flex:1;max-width:560px;position:relative}
.search-wrap,.hero-search-wrap{display:flex;background:var(--gray-100);border:1.5px solid var(--gray-200);border-radius:var(--radius);overflow:hidden;transition:.2s}
.search-wrap:focus-within,.hero-search-wrap:focus-within{border-color:var(--blue);background:#fff;box-shadow:0 0 0 3px rgba(14,165,233,.15)}
.search-wrap input,.header-search input{flex:1;padding:.6rem 1rem;border:none;background:transparent;font-size:.9rem;outline:none;color:var(--gray-900)}
.search-wrap input::placeholder{color:var(--gray-400)}
.search-wrap button{padding:.6rem 1rem;background:var(--blue);border:none;color:#fff;display:flex;align-items:center}
.search-wrap button:hover{background:var(--blue-dark)}

/* Suggest dropdown */
.search-suggest{position:absolute;top:calc(100% + 4px);left:0;right:0;background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius);box-shadow:var(--shadow-lg);z-index:200;display:none}
.search-suggest.show{display:block}
.suggest-item{display:flex;align-items:center;gap:.75rem;padding:.6rem 1rem;cursor:pointer;border-bottom:1px solid var(--gray-100)}
.suggest-item:last-child{border:none}
.suggest-item:hover{background:var(--gray-50)}
.suggest-article{font-family:monospace;font-size:.85rem;font-weight:600;color:var(--gray-900);min-width:120px}
.suggest-name{font-size:.8rem;color:var(--gray-500);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.suggest-brand{font-size:.75rem;color:var(--blue);white-space:nowrap}

/* Header nav */
.header-nav{display:flex;align-items:center;gap:1rem;white-space:nowrap;margin-left:auto}
.header-nav a{font-size:.9rem;color:var(--gray-600);font-weight:500}
.header-nav a:hover{color:var(--blue)}
.btn-header-cab{display:flex;align-items:center;gap:.4rem;padding:.4rem .8rem;background:var(--blue-light);border-radius:var(--radius);color:var(--blue)!important;font-weight:600}
.btn-primary-sm{padding:.4rem .85rem;background:var(--blue);color:#fff!important;border-radius:var(--radius);font-weight:600;font-size:.85rem}
.btn-primary-sm:hover{background:var(--blue-dark)}

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.65rem 1.5rem;background:var(--blue);color:#fff;border:none;border-radius:var(--radius);font-weight:600;font-size:.95rem;transition:.2s;text-decoration:none}
.btn-primary:hover{background:var(--blue-dark);color:#fff}
.btn-primary-full{width:100%;display:flex;align-items:center;justify-content:center;padding:.75rem;background:var(--blue);color:#fff;border:none;border-radius:var(--radius);font-weight:600;font-size:1rem;transition:.2s}
.btn-primary-full:hover{background:var(--blue-dark)}
.btn-outline{display:inline-flex;align-items:center;gap:.5rem;padding:.6rem 1.25rem;border:1.5px solid var(--gray-300);border-radius:var(--radius);color:var(--gray-700);font-weight:500;background:#fff;text-decoration:none;font-size:.9rem}
.btn-outline:hover{border-color:var(--blue);color:var(--blue)}
.btn-outline-sm{display:inline-flex;padding:.35rem .75rem;border:1.5px solid var(--gray-300);border-radius:8px;color:var(--gray-600);font-size:.8rem;font-weight:500;background:#fff}
.btn-outline-sm:hover{border-color:var(--blue);color:var(--blue)}
.btn-xl{display:inline-block;padding:1rem 2.5rem;background:var(--orange);color:#fff!important;border-radius:var(--radius-lg);font-size:1.1rem;font-weight:700;transition:.2s;text-decoration:none}
.btn-xl:hover{background:#ea6c0a}
.btn-sm-primary{display:inline-flex;padding:.3rem .7rem;background:var(--blue);color:#fff;border:none;border-radius:6px;font-size:.8rem;font-weight:600;cursor:pointer}
.btn-sm-primary:hover{background:var(--blue-dark)}
.btn-sm-outline{display:inline-flex;padding:.3rem .7rem;border:1px solid var(--gray-300);border-radius:6px;font-size:.8rem;color:var(--gray-600);cursor:pointer;background:#fff}
.btn-sm-success{display:inline-flex;padding:.3rem .7rem;background:#dcfce7;color:#16a34a;border:1px solid #bbf7d0;border-radius:6px;font-size:.8rem;font-weight:600;cursor:pointer}

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero{background:linear-gradient(135deg,#0f172a 0%,#1e3a5f 50%,#0c4a6e 100%);padding:5rem 0 4rem;overflow:hidden;position:relative}
.hero::before{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230ea5e9' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}
.hero-inner{display:grid;grid-template-columns:1fr 420px;gap:3rem;align-items:center;position:relative}
.hero-badge{display:inline-block;background:rgba(14,165,233,.2);border:1px solid rgba(14,165,233,.3);color:#7dd3fc;padding:.35rem .9rem;border-radius:100px;font-size:.8rem;font-weight:500;margin-bottom:1rem}
.hero h1{color:#fff;font-size:2.75rem;line-height:1.15;margin-bottom:1rem}
.hero-accent{color:#38bdf8}
.hero p{color:#94a3b8;font-size:1.05rem;margin-bottom:2rem}

.hero-search{position:relative}
.hero-search-wrap{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.2)}
.hero-search-wrap:focus-within{background:#fff;border-color:var(--blue)}
.hero-search-wrap input{padding:.85rem 1.25rem;font-size:1rem;color:#fff}
.hero-search-wrap:focus-within input{color:var(--gray-900)}
.hero-search-wrap input::placeholder{color:rgba(255,255,255,.5)}
.hero-search-wrap:focus-within input::placeholder{color:var(--gray-400)}
.hero-search-wrap button{padding:.85rem 1.5rem;background:var(--blue);border:none;color:#fff;font-size:.95rem;font-weight:600}
.hero-search-wrap button:hover{background:var(--blue-dark)}
.hero-search-hints{margin-top:.75rem;font-size:.8rem;color:#7dd3fc;display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}
.hero-search-hints span{opacity:.6}
.hero-search-hints a{color:#93c5fd;background:rgba(14,165,233,.15);padding:.2rem .5rem;border-radius:4px;font-family:monospace}
.hero-search-hints a:hover{background:rgba(14,165,233,.3)}

/* Hero card (visual demo) */
.hero-card{background:#fff;border-radius:var(--radius-lg);padding:1.5rem;box-shadow:0 20px 40px rgba(0,0,0,.4)}
.hero-card-badge{display:inline-block;background:#dbeafe;color:var(--blue);font-size:.7rem;font-weight:700;padding:.2rem .6rem;border-radius:4px;letter-spacing:.05em;margin-bottom:.5rem}
.hero-card-title{font-family:monospace;font-size:1rem;font-weight:700;color:var(--gray-900)}
.hero-card-sub{font-size:.8rem;color:var(--gray-500);margin-bottom:1rem}
.hero-card-prices{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem}
.price-row{display:flex;align-items:center;gap:.75rem;padding:.5rem .75rem;background:var(--gray-50);border-radius:8px}
.price-row-best{background:#f0fdf4;border:1px solid #bbf7d0}
.price-seller-blur{flex:1;font-size:.8rem;filter:blur(4px);user-select:none;background:var(--gray-300);border-radius:4px;color:transparent;height:16px}
.price-val{font-weight:700;font-size:.95rem;color:var(--gray-900);white-space:nowrap}
.best-label{font-size:.65rem;background:#22c55e;color:#fff;padding:.1rem .4rem;border-radius:4px;white-space:nowrap}
.hero-card-cta{font-size:.75rem;text-align:center;color:var(--blue);font-weight:500}

/* ─── STATS BAR ──────────────────────────────────────────────────────────── */
.stats-bar{background:var(--gray-900);padding:2rem 0}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);text-align:center;gap:1rem}
.stat-num{font-size:1.75rem;font-weight:700;color:#fff}
.stat-label{font-size:.8rem;color:#94a3b8;margin-top:.25rem}

/* ─── SECTIONS ───────────────────────────────────────────────────────────── */
.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem}
.section-header h2{margin:0}
.see-all{font-size:.9rem;color:var(--blue);font-weight:500}

/* Brands grid */
.brands-section{padding:4rem 0;background:var(--gray-50)}
.brands-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:1rem}
.brand-card{display:flex;flex-direction:column;align-items:center;padding:1.25rem;background:#fff;border:1.5px solid var(--gray-200);border-radius:var(--radius);text-align:center;transition:.2s;color:inherit}
.brand-card:hover{border-color:var(--blue);box-shadow:var(--shadow-md);transform:translateY(-2px)}
.brand-card-logo{width:64px;height:44px;display:flex;align-items:center;justify-content:center;margin-bottom:.75rem}
.brand-card-logo img{max-height:40px;max-width:80px;object-fit:contain}
.brand-abbr{font-size:1.1rem;font-weight:800;color:var(--blue)}
.brand-card-name{font-size:.85rem;font-weight:600;color:var(--gray-800)}
.brand-card-count{font-size:.75rem;color:var(--gray-400);margin-top:.2rem}

/* Products grid */
.popular-section{padding:4rem 0}
.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:1.25rem}
.product-card{display:flex;flex-direction:column;border:1.5px solid var(--gray-200);border-radius:var(--radius);overflow:hidden;background:#fff;transition:.2s;color:inherit}
.product-card:hover{border-color:var(--blue);box-shadow:var(--shadow-md);transform:translateY(-2px)}
.product-card-img{height:150px;overflow:hidden;background:var(--gray-50);display:flex;align-items:center;justify-content:center}
.product-card-img img{width:100%;height:100%;object-fit:contain;padding:.5rem}
.product-no-img{color:var(--gray-300)}
.product-no-img svg{width:48px;height:48px}
.product-card-body{padding:1rem;flex:1;display:flex;flex-direction:column;gap:.3rem}
.product-card-brand{font-size:.7rem;font-weight:700;text-transform:uppercase;color:var(--blue);letter-spacing:.05em}
.product-card-article{font-family:monospace;font-size:.8rem;color:var(--gray-900);font-weight:600}
.product-card-name{font-size:.8rem;color:var(--gray-600);flex:1;line-height:1.4}
.product-card-footer{display:flex;align-items:center;justify-content:space-between;margin-top:.5rem}
.product-price{font-size:.9rem;font-weight:700;color:var(--gray-900)}
.price-request{color:var(--gray-400)!important;font-weight:400!important}
.product-offers{font-size:.7rem;color:var(--gray-400)}

/* ─── HOW IT WORKS ───────────────────────────────────────────────────────── */
.how-it-works{padding:4rem 0;background:var(--gray-50)}
.how-it-works h2{margin-bottom:2.5rem}
.steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem}
.step{background:#fff;padding:1.75rem;border-radius:var(--radius-lg);border:1px solid var(--gray-200);position:relative}
.step-num{width:40px;height:40px;background:var(--blue);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.1rem;margin-bottom:1rem}
.step h3{margin-bottom:.5rem}

/* For sellers CTA */
.for-sellers-cta{padding:4rem 0;background:linear-gradient(135deg,#1e293b,#0f172a)}
.sellers-cta-inner{display:flex;gap:3rem;align-items:center;justify-content:space-between}
.sellers-cta-inner h2{color:#fff;margin-bottom:.75rem}
.sellers-cta-inner p{color:#94a3b8;margin-bottom:1.25rem}
.sellers-benefits{list-style:none;display:flex;flex-direction:column;gap:.4rem}
.sellers-benefits li{color:#94a3b8;font-size:.9rem}
.sellers-cta-action{flex-shrink:0;text-align:center}
.cta-sub{margin-top:.75rem;font-size:.8rem;color:#64748b}

/* ─── PRODUCT DETAIL PAGE ────────────────────────────────────────────────── */
.product-page{padding:2rem 0 4rem}
.product-layout{display:grid;grid-template-columns:380px 1fr;gap:2.5rem;margin-bottom:3rem}
.product-gallery{background:var(--gray-50);border:1px solid var(--gray-200);border-radius:var(--radius-lg);padding:1.5rem;margin-bottom:1rem}
.product-main-img{display:flex;align-items:center;justify-content:center;min-height:240px}
.product-main-img img{max-height:260px;object-fit:contain}
.product-thumbnails{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.75rem}
.thumb{width:56px;height:56px;object-fit:contain;border:1.5px solid var(--gray-200);border-radius:6px;cursor:pointer;padding:2px}
.thumb:hover{border-color:var(--blue)}
.product-no-photo{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:200px;color:var(--gray-300);gap:.5rem;font-size:.85rem}
.product-no-photo svg{width:64px;height:64px}
.datasheet-btn{display:flex;align-items:center;gap:.5rem;padding:.6rem 1rem;border:1.5px solid var(--gray-200);border-radius:var(--radius);font-size:.85rem;color:var(--gray-600);margin-bottom:.75rem;transition:.2s}
.datasheet-btn:hover{border-color:var(--red);color:var(--red)}
.save-btn{display:flex;align-items:center;gap:.5rem;width:100%;padding:.6rem 1rem;border:1.5px solid var(--gray-200);border-radius:var(--radius);background:#fff;font-size:.85rem;color:var(--gray-500);transition:.2s;cursor:pointer}
.save-btn:hover{border-color:var(--red);color:var(--red)}
.save-btn.saved{color:var(--red);border-color:var(--red);background:#fef2f2}

.product-brand-label{font-size:.75rem;font-weight:700;text-transform:uppercase;color:var(--blue);letter-spacing:.06em;margin-bottom:.5rem}
.product-title{font-size:1.5rem;margin-bottom:1rem;line-height:1.3}
.product-article-wrap{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem;background:var(--gray-50);border:1px solid var(--gray-200);border-radius:var(--radius);padding:.6rem 1rem}
.product-article-label{font-size:.8rem;color:var(--gray-400)}
.product-article{font-family:monospace;font-size:1.1rem;font-weight:700;color:var(--gray-900);flex:1}
.copy-btn{background:none;border:none;color:var(--gray-400);cursor:pointer;padding:.2rem;transition:.2s}
.copy-btn:hover{color:var(--blue)}
.product-short-desc{color:var(--gray-600);font-size:.95rem;margin-bottom:1.25rem;line-height:1.6}

/* Price block */
.price-block{background:#f8fafc;border:1.5px solid var(--gray-200);border-radius:var(--radius-lg);padding:1.25rem;margin-bottom:1rem}
.price-from{font-size:.9rem;color:var(--gray-500);margin-bottom:.25rem}
.price-big{font-size:2rem;font-weight:700;color:var(--gray-900);font-variant-numeric:tabular-nums}
.price-blurred{filter:blur(8px);user-select:none;background:var(--gray-300);color:transparent;border-radius:4px;display:inline-block}
.price-range-note{font-size:.8rem;color:var(--gray-400);margin-top:.25rem}
.price-lock-note{display:flex;align-items:center;gap:.4rem;font-size:.8rem;color:var(--gray-500);margin:.5rem 0}
.price-on-request{font-size:1.1rem;color:var(--gray-400);font-weight:500}
.btn-unlock{display:block;margin-top:.75rem;padding:.7rem;background:var(--orange);color:#fff;border-radius:var(--radius);text-align:center;font-weight:600;font-size:.9rem}
.btn-unlock:hover{background:#ea6c0a;color:#fff}
.quick-request{display:flex;align-items:center;gap:1rem;margin-top:.75rem}
.btn-request-price{display:flex;align-items:center;gap:.5rem;padding:.7rem 1.25rem;background:var(--blue);color:#fff;border:none;border-radius:var(--radius);font-weight:600;font-size:.9rem;transition:.2s}
.btn-request-price:hover{background:var(--blue-dark)}
.in-stock-badge{font-size:.8rem;color:var(--green);font-weight:600;display:flex;align-items:center;gap:.3rem}

/* Offers table */
.offers-section{margin-bottom:3rem}
.offers-section h2{margin-bottom:1rem}
.offers-locked-notice{display:flex;align-items:center;gap:.75rem;background:#fff7ed;border:1px solid #fed7aa;border-radius:var(--radius);padding:.75rem 1rem;margin-bottom:1rem;font-size:.85rem;flex-wrap:wrap}
.offers-table-wrap{overflow-x:auto}
.offers-table{width:100%;border-collapse:collapse;font-size:.85rem}
.offers-table th{padding:.75rem 1rem;background:var(--gray-50);border:1px solid var(--gray-200);text-align:left;color:var(--gray-600);font-weight:600;white-space:nowrap}
.offers-table td{padding:.75rem 1rem;border:1px solid var(--gray-200);vertical-align:middle}
.offer-best td{background:#f0fdf4}
.offer-seller-col{min-width:160px}
.offer-seller-name{font-weight:600;color:var(--gray-900)}
.offer-seller-locked{display:flex;align-items:center;gap:.4rem}
.seller-name-blur{filter:blur(6px);background:var(--gray-300);color:transparent;border-radius:4px;padding:0 .4rem;user-select:none}
.lock-icon{color:var(--gray-400)}
.offer-price{font-size:1rem;font-weight:700;color:var(--gray-900)}
.best-price-tag{font-size:.65rem;background:#22c55e;color:#fff;padding:.1rem .4rem;border-radius:4px;margin-left:.4rem}
.verified-badge{color:var(--blue);font-size:.8rem;margin-right:.2rem}
.offer-rating{font-size:.75rem;color:var(--yellow);margin-left:.3rem}
.stock-yes{color:var(--green);font-size:.85rem}
.stock-no{color:var(--gray-400);font-size:.85rem}
.offer-price-col{white-space:nowrap}

/* Specs & desc */
.specs-section,.desc-section{margin-bottom:2.5rem}
.specs-section h2,.desc-section h2{margin-bottom:1rem}
.specs-table{width:100%;border-collapse:collapse;font-size:.9rem}
.specs-table tr:nth-child(even) td{background:var(--gray-50)}
.specs-table td{padding:.6rem 1rem;border:1px solid var(--gray-200)}
.specs-table td:first-child{color:var(--gray-600);width:40%;font-weight:500}
.product-description{color:var(--gray-700);line-height:1.7}

/* Analogs */
.analogs-section{margin-bottom:2.5rem}
.analogs-section h2{margin-bottom:1rem}
.analogs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}
.analog-card{display:flex;flex-direction:column;padding:1rem;border:1.5px solid var(--gray-200);border-radius:var(--radius);transition:.2s;color:inherit;position:relative}
.analog-card:hover{border-color:var(--blue);box-shadow:var(--shadow-md)}
.full-replace-badge{position:absolute;top:.5rem;right:.5rem;font-size:.65rem;background:#dcfce7;color:#15803d;padding:.1rem .4rem;border-radius:4px}
.analog-brand{font-size:.7rem;font-weight:700;text-transform:uppercase;color:var(--blue);margin-bottom:.2rem}
.analog-article{font-family:monospace;font-weight:700;font-size:.9rem;color:var(--gray-900)}
.analog-name{font-size:.8rem;color:var(--gray-500);margin:.2rem 0;flex:1}
.analog-price{font-size:.85rem;font-weight:600;color:var(--green)}

/* ─── SEARCH PAGE ────────────────────────────────────────────────────────── */
.search-page-form{margin:1.5rem 0 2rem}
.search-wrap-lg{display:flex;gap:.5rem}
.search-wrap-lg input{flex:1;padding:.8rem 1.25rem;border:2px solid var(--gray-200);border-radius:var(--radius);font-size:1rem;outline:none;font-family:monospace}
.search-wrap-lg input:focus{border-color:var(--blue)}
.search-wrap-lg button{padding:.8rem 2rem;background:var(--blue);color:#fff;border:none;border-radius:var(--radius);font-weight:600;font-size:.95rem}
.search-meta{margin-bottom:1rem;color:var(--gray-500);font-size:.9rem}
.search-no-results,.search-empty{padding:3rem 2rem;text-align:center;background:var(--gray-50);border-radius:var(--radius-lg);border:1px solid var(--gray-200)}
.search-no-results h3{margin-bottom:.5rem}
.search-tips{text-align:left;margin-top:1.5rem;max-width:400px;margin-inline:auto}
.search-tips ul{margin-top:.5rem;padding-left:1.25rem}
.search-tips li{font-size:.9rem;color:var(--gray-600);margin-bottom:.3rem}
.search-popular{margin-top:1.5rem}
.search-popular h4{margin-bottom:.75rem}
.search-tags{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center}
.search-tag{padding:.3rem .75rem;background:var(--gray-100);border:1px solid var(--gray-200);border-radius:100px;font-size:.8rem;font-family:monospace;color:var(--gray-700)}
.search-tag:hover{background:var(--blue-light);border-color:var(--blue);color:var(--blue)}

/* Products list (search results) */
.products-list{display:flex;flex-direction:column;gap:.75rem}
.product-list-item{display:grid;grid-template-columns:72px 1fr auto;gap:1rem;align-items:center;padding:1rem;border:1.5px solid var(--gray-200);border-radius:var(--radius);background:#fff;transition:.2s;color:inherit}
.product-list-item:hover{border-color:var(--blue);box-shadow:var(--shadow-md)}
.pli-img{width:72px;height:56px;display:flex;align-items:center;justify-content:center;background:var(--gray-50);border-radius:6px;overflow:hidden}
.pli-img img{max-width:100%;max-height:100%;object-fit:contain}
.pli-no-img{color:var(--gray-300)}
.pli-brand{font-size:.7rem;font-weight:700;text-transform:uppercase;color:var(--blue);display:block}
.pli-article{font-family:monospace;font-size:.9rem;font-weight:700;color:var(--gray-900)}
.pli-name{font-size:.85rem;color:var(--gray-500);margin-top:.1rem}
.pli-price{text-align:right;flex-shrink:0}
.pli-price-val{font-size:1rem;font-weight:700;color:var(--gray-900);white-space:nowrap}
.pli-offers{font-size:.75rem;color:var(--gray-400);margin-top:.2rem}

/* ─── CATALOG PAGES ──────────────────────────────────────────────────────── */
.brands-catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem;margin-top:1.5rem}
.brand-catalog-card{display:flex;align-items:center;gap:1.25rem;padding:1.25rem;border:1.5px solid var(--gray-200);border-radius:var(--radius-lg);background:#fff;transition:.2s;color:inherit}
.brand-catalog-card:hover{border-color:var(--blue);box-shadow:var(--shadow-md)}
.bcc-logo{width:80px;height:56px;display:flex;align-items:center;justify-content:center;background:var(--gray-50);border-radius:8px;flex-shrink:0}
.bcc-logo img{max-width:72px;max-height:40px;object-fit:contain}
.brand-abbr-lg{font-size:1.25rem;font-weight:800;color:var(--blue)}
.bcc-name{font-size:1rem;font-weight:700;color:var(--gray-900)}
.bcc-country{font-size:.75rem;color:var(--gray-400);margin-top:.1rem}
.bcc-count{font-size:.8rem;color:var(--blue);margin-top:.2rem;font-weight:500}
.bcc-cats{font-size:.75rem;color:var(--gray-400)}
.bcc-arrow{margin-left:auto;color:var(--gray-300);font-size:1.25rem}
.brand-catalog-card:hover .bcc-arrow{color:var(--blue)}

/* Brand page */
.brand-page-header{display:flex;gap:1.5rem;align-items:flex-start;margin-bottom:2.5rem;padding:1.5rem;background:var(--gray-50);border-radius:var(--radius-lg);border:1px solid var(--gray-200)}
.brand-page-logo{width:100px;height:72px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:var(--radius);border:1px solid var(--gray-200);flex-shrink:0}
.brand-page-logo img{max-width:90px;max-height:56px;object-fit:contain}
.brand-abbr-xl{font-size:1.5rem;font-weight:800;color:var(--blue)}
.brand-page-header h1{margin-bottom:.25rem}
.brand-country{font-size:.8rem;color:var(--gray-400);margin-bottom:.5rem}
.brand-desc{color:var(--gray-500);font-size:.9rem}
.categories-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1rem;margin:1rem 0 2.5rem}
.category-card{display:flex;flex-direction:column;align-items:center;text-align:center;padding:1.25rem;border:1.5px solid var(--gray-200);border-radius:var(--radius);background:#fff;transition:.2s;color:inherit}
.category-card:hover{border-color:var(--blue);box-shadow:var(--shadow-md)}
.cat-icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;font-size:1.5rem;color:var(--blue);margin-bottom:.5rem}
.cat-icon svg{width:32px;height:32px}
.cat-name{font-size:.85rem;font-weight:600;color:var(--gray-800)}
.cat-count{font-size:.75rem;color:var(--gray-400);margin-top:.2rem}

.category-page-header{display:flex;align-items:baseline;gap:1rem;margin-bottom:1.5rem}
.category-total{color:var(--gray-400);font-size:.9rem}

/* ─── BREADCRUMB ─────────────────────────────────────────────────────────── */
.breadcrumb{display:flex;align-items:center;gap:.5rem;font-size:.8rem;color:var(--gray-400);margin-bottom:1.5rem;flex-wrap:wrap}
.breadcrumb a{color:var(--blue)}
.breadcrumb span{color:var(--gray-300)}

/* ─── PAGINATION ─────────────────────────────────────────────────────────── */
.pagination{display:flex;gap:.4rem;justify-content:center;margin:2rem 0}
.page-btn{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid var(--gray-200);border-radius:var(--radius);font-size:.85rem;color:var(--gray-600);transition:.2s}
.page-btn:hover{border-color:var(--blue);color:var(--blue)}
.page-btn.active{background:var(--blue);border-color:var(--blue);color:#fff}

/* ─── FORMS ──────────────────────────────────────────────────────────────── */
.form-group{display:flex;flex-direction:column;gap:.4rem}
.form-group label{font-size:.85rem;font-weight:600;color:var(--gray-700)}
.form-group input,.form-group textarea,.form-group select{padding:.6rem .9rem;border:1.5px solid var(--gray-200);border-radius:var(--radius);font-size:.9rem;font-family:inherit;transition:.2s;color:var(--gray-900);background:#fff}
.form-group input:focus,.form-group textarea:focus,.form-group select:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(14,165,233,.1)}
.form-group textarea{resize:vertical}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.form-error{background:#fef2f2;border:1px solid #fecaca;border-radius:var(--radius);padding:.75rem 1rem;color:var(--red);font-size:.9rem;margin-bottom:1rem}
.form-select-sm{padding:.35rem .6rem;border:1px solid var(--gray-200);border-radius:6px;font-size:.85rem;background:#fff;color:var(--gray-700)}
.form-agreement{margin:.75rem 0}
.checkbox-label{display:flex;align-items:flex-start;gap:.5rem;font-size:.85rem;color:var(--gray-600);cursor:pointer}
.checkbox-label input{margin-top:.2rem;flex-shrink:0}

/* ─── AUTH PAGES ─────────────────────────────────────────────────────────── */
.auth-page{min-height:calc(100vh - 64px);display:flex;align-items:center;justify-content:center;padding:2rem;background:var(--gray-50)}
.auth-card{background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius-lg);padding:2.5rem;width:100%;max-width:440px;box-shadow:var(--shadow-md)}
.auth-card-wide{max-width:640px}
.auth-logo{display:flex;align-items:center;gap:.5rem;font-size:1.25rem;font-weight:700;color:var(--gray-900);margin-bottom:1.5rem;justify-content:center}
.auth-logo strong{color:var(--blue)}
.auth-card h2{text-align:center;margin-bottom:.25rem}
.auth-subtitle{text-align:center;color:var(--gray-500);font-size:.85rem;margin-bottom:1.5rem}
.auth-links{text-align:center;font-size:.85rem;color:var(--gray-500);margin-top:1.25rem;display:flex;gap:.5rem;justify-content:center}
.auth-card .form-group{margin-bottom:1rem}
.role-selector{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-bottom:1.5rem}
.role-btn{display:flex;flex-direction:column;align-items:center;gap:.2rem;padding:1rem;border:2px solid var(--gray-200);border-radius:var(--radius);background:#fff;cursor:pointer;transition:.2s;font-family:inherit}
.role-btn:hover{border-color:var(--blue)}
.role-btn.active{border-color:var(--blue);background:var(--blue-light)}
.role-btn svg{width:24px;height:24px;color:var(--gray-500)}
.role-btn.active svg{color:var(--blue)}
.role-btn span{font-size:.9rem;font-weight:600;color:var(--gray-800)}
.role-btn small{font-size:.75rem;color:var(--gray-400)}

/* ─── CABINET ────────────────────────────────────────────────────────────── */
.cabinet-layout{min-height:100vh;background:var(--gray-50)}
.cabinet-wrap{display:flex;min-height:100vh}
.cab-sidebar{width:240px;background:#0f172a;display:flex;flex-direction:column;flex-shrink:0;position:sticky;top:0;height:100vh;overflow-y:auto}
.cab-logo{padding:1.25rem 1.5rem;border-bottom:1px solid rgba(255,255,255,.1);color:#fff!important;margin-bottom:0}
.cab-logo strong{color:#38bdf8}
.cab-user-info{display:flex;align-items:center;gap:.75rem;padding:1.25rem 1.5rem;border-bottom:1px solid rgba(255,255,255,.08)}
.cab-avatar{width:36px;height:36px;background:var(--blue);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:.9rem;flex-shrink:0}
.cab-user-name{font-size:.8rem;font-weight:600;color:#e2e8f0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:140px}
.cab-role-badge{font-size:.65rem;padding:.15rem .4rem;border-radius:4px;margin-top:.2rem;display:inline-block}
.cab-role-admin{background:#fef3c7;color:#b45309}
.cab-role-seller{background:#dbeafe;color:#1d4ed8}
.cab-role-buyer{background:#dcfce7;color:#15803d}
.cab-nav{display:flex;flex-direction:column;padding:.75rem 0;flex:1}
.cab-nav a{display:flex;align-items:center;gap:.75rem;padding:.65rem 1.5rem;font-size:.85rem;color:#94a3b8;font-weight:500;transition:.15s}
.cab-nav a:hover{background:rgba(255,255,255,.05);color:#e2e8f0}
.cab-nav a.active{background:rgba(14,165,233,.15);color:#38bdf8;border-right:3px solid #38bdf8}
.cab-nav svg{width:16px;height:16px;flex-shrink:0}
.cab-nav-divider{height:1px;background:rgba(255,255,255,.08);margin:.5rem 0}
.cab-logout{color:#ef4444!important;margin-top:auto}
.cab-main{flex:1;display:flex;flex-direction:column;min-width:0}
.cab-topbar{background:#fff;border-bottom:1px solid var(--gray-200);padding:1rem 2rem;display:flex;align-items:center}
.cab-page-title{font-size:1.25rem;font-weight:700;color:var(--gray-900);margin:0}
.cab-content{padding:2rem;flex:1}

/* Stats cards */
.stats-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:1rem;margin-bottom:2rem}
.stats-cards-lg .stat-card{min-width:0}
.stat-card{background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius);padding:1.25rem;text-align:center}
.stat-card-warn{border-color:#fed7aa}
.stat-card-tariff{background:var(--blue);color:#fff;border:none}
.stat-card-tariff .sc-num,.stat-card-tariff .sc-label{color:#fff}
.sc-num{font-size:1.75rem;font-weight:700;color:var(--gray-900)}
.sc-label{font-size:.75rem;color:var(--gray-500);margin-top:.2rem}
.sc-sub{font-size:.7rem;color:var(--gray-400);margin-top:.1rem}
.sc-link{font-size:.75rem;color:var(--blue);display:block;margin-top:.4rem}

/* Dashboard */
.dash-welcome{margin-bottom:2rem}
.dash-welcome h2{margin-bottom:.25rem}
.dash-actions{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:2rem}
.dash-action-card{display:flex;align-items:center;gap:1rem;padding:1.25rem;background:#fff;border:1.5px solid var(--gray-200);border-radius:var(--radius);transition:.2s;color:inherit}
.dash-action-card:hover{border-color:var(--blue);box-shadow:var(--shadow-md)}
.dash-action-card svg{width:28px;height:28px;color:var(--blue);flex-shrink:0}
.dash-action-card strong{display:block;color:var(--gray-900);font-size:.95rem}
.dash-action-card span{font-size:.8rem;color:var(--gray-400)}
.dash-two-col{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}
.dash-section{background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius);padding:1.5rem}
.dash-section h3{margin-bottom:1rem;font-size:1rem}
.count-badge{display:inline-block;background:var(--blue);color:#fff;font-size:.65rem;font-weight:700;padding:.15rem .4rem;border-radius:100px;margin-left:.4rem}
.dash-list{display:flex;flex-direction:column;gap:.5rem}
.dash-list-item{display:flex;align-items:center;justify-content:space-between;padding:.6rem;background:var(--gray-50);border-radius:6px;font-size:.8rem;transition:.2s;color:inherit;gap:.5rem}
.dash-list-item:hover{background:var(--blue-light)}
.dli-main{display:flex;align-items:center;gap:.4rem;flex:1;overflow:hidden}
.dli-brand{font-weight:700;color:var(--blue);white-space:nowrap}
.dli-art{font-family:monospace;font-weight:600;color:var(--gray-900);white-space:nowrap}
.dli-name{color:var(--gray-500);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dli-side{display:flex;flex-direction:column;align-items:flex-end;flex-shrink:0}
.dli-price{font-weight:700;color:var(--gray-900);white-space:nowrap}
.dli-offers{font-size:.7rem;color:var(--gray-400)}
.empty-state-sm{color:var(--gray-400);font-size:.85rem;padding:.5rem 0}

/* Quick actions */
.quick-actions{margin-bottom:2rem}
.quick-actions h3{margin-bottom:1rem}
.qa-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.75rem}
.qa-btn{display:flex;align-items:center;gap:.75rem;padding:1rem;background:#fff;border:1.5px solid var(--gray-200);border-radius:var(--radius);font-size:.85rem;font-weight:500;color:var(--gray-700);transition:.2s;text-decoration:none}
.qa-btn:hover{border-color:var(--blue);color:var(--blue)}
.qa-btn-primary{background:var(--blue);border-color:var(--blue);color:#fff!important}
.qa-btn-primary:hover{background:var(--blue-dark)}
.qa-btn svg{width:18px;height:18px;flex-shrink:0}

/* Upload hint */
.upload-hint-block{background:var(--blue-light);border:1px solid #bae6fd;border-radius:var(--radius-lg);padding:1.5rem;margin-top:2rem}
.upload-hint-block h3{color:#0c4a6e;margin-bottom:1rem}
.upload-steps{display:flex;flex-direction:column;gap:.75rem}
.us-step{display:flex;align-items:flex-start;gap:.75rem;font-size:.9rem;color:var(--gray-700)}
.us-num{width:24px;height:24px;background:var(--blue);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;flex-shrink:0;margin-top:.1rem}

/* Upload page */
.upload-page{display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin-bottom:2rem}
.upload-info,.upload-form-wrap{background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius);padding:1.5rem}
.format-example{background:var(--gray-900);border-radius:var(--radius);padding:1rem;margin:1rem 0;display:flex;flex-direction:column;gap:.3rem}
.format-example code{background:transparent;color:#a5f3fc;font-size:.85rem;padding:0}
.format-note{font-size:.8rem;color:var(--gray-500)}
.file-drop-zone{border:2px dashed var(--gray-300);border-radius:var(--radius);min-height:160px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.2s;position:relative;overflow:hidden;margin-bottom:1rem}
.file-drop-zone:hover,.file-drop-zone.drag-over{border-color:var(--blue);background:var(--blue-light)}
.file-drop-zone input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.fdz-inner{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding:2rem;text-align:center;pointer-events:none}
.fdz-inner svg{color:var(--gray-300)}
.fdz-inner p{font-size:.9rem;color:var(--gray-500)}
.fdz-click{color:var(--blue);font-weight:600}
.fdz-formats{font-size:.75rem;color:var(--gray-400)}
.fdz-filename{font-size:.85rem;color:var(--blue);font-weight:600}

/* Tables */
.data-table{width:100%;border-collapse:collapse;font-size:.85rem}
.data-table th{padding:.65rem 1rem;background:var(--gray-50);border:1px solid var(--gray-200);text-align:left;font-weight:600;color:var(--gray-600);white-space:nowrap}
.data-table td{padding:.65rem 1rem;border:1px solid var(--gray-200);vertical-align:middle}
.data-table tr:hover td{background:var(--gray-50)}
.table-wrap{overflow-x:auto;border-radius:var(--radius);border:1px solid var(--gray-200)}
.table-wrap .data-table th,.table-wrap .data-table td{border-left:none;border-right:none}

/* Profile form */
.profile-form{max-width:700px}
.form-section{background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius-lg);padding:1.5rem;margin-bottom:1.5rem}
.form-section h3{margin-bottom:1.25rem;padding-bottom:.75rem;border-bottom:1px solid var(--gray-100)}
.form-section .form-group{margin-bottom:1rem}

/* Section header with actions */
.section-header-actions{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}

/* ─── ALERTS ─────────────────────────────────────────────────────────────── */
.alert-warning{display:flex;align-items:flex-start;gap:.75rem;background:#fff7ed;border:1px solid #fed7aa;border-radius:var(--radius);padding:1rem;margin-bottom:1.5rem;font-size:.85rem;color:#9a3412}
.alert-success{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:var(--radius);padding:.75rem 1rem;margin-bottom:1rem;font-size:.85rem;color:#15803d}
.alert-error{background:#fef2f2;border:1px solid #fecaca;border-radius:var(--radius);padding:.75rem 1rem;margin-bottom:1rem;font-size:.85rem;color:var(--red)}

/* Status badges */
.status-badge{display:inline-block;font-size:.7rem;font-weight:600;padding:.2rem .5rem;border-radius:4px}
.status-open{background:#dbeafe;color:#1d4ed8}
.status-closed{background:var(--gray-100);color:var(--gray-500)}
.status-fulfilled{background:#dcfce7;color:#15803d}
.status-pending{background:#fef3c7;color:#b45309}
.status-done{background:#dcfce7;color:#15803d}
.status-error{background:#fef2f2;color:var(--red)}
.badge-success{display:inline-flex;align-items:center;gap:.2rem;font-size:.75rem;font-weight:600;color:#15803d;background:#dcfce7;padding:.2rem .5rem;border-radius:4px}
.badge-warn{font-size:.75rem;font-weight:600;color:#b45309;background:#fef3c7;padding:.2rem .5rem;border-radius:4px;display:inline-block}
.badge-role-admin{background:#fef3c7;color:#b45309;padding:.15rem .4rem;border-radius:4px;font-size:.75rem;font-weight:600}
.badge-role-seller{background:#dbeafe;color:#1d4ed8;padding:.15rem .4rem;border-radius:4px;font-size:.75rem;font-weight:600}
.badge-role-buyer{background:#dcfce7;color:#15803d;padding:.15rem .4rem;border-radius:4px;font-size:.75rem;font-weight:600}
.text-success{color:var(--green)}
.text-error{color:var(--red)}
.text-muted{color:var(--gray-400)}

/* ─── MODAL ──────────────────────────────────────────────────────────────── */
.modal-overlay{position:fixed;inset:0;background:rgba(15,23,42,.6);z-index:1000;display:flex;align-items:center;justify-content:center;padding:1rem}
.modal-box{background:#fff;border-radius:var(--radius-lg);padding:2rem;max-width:460px;width:100%;position:relative;box-shadow:var(--shadow-lg)}
.modal-close{position:absolute;top:.75rem;right:.75rem;background:none;border:none;font-size:1.5rem;color:var(--gray-400);cursor:pointer;line-height:1;width:28px;height:28px;display:flex;align-items:center;justify-content:center}
.modal-close:hover{color:var(--gray-700)}
.modal-box h3{margin-bottom:.25rem}
.modal-subtitle{font-size:.85rem;color:var(--gray-500);margin-bottom:1.25rem}
.modal-box .form-group{margin-bottom:.75rem}
.modal-note{font-size:.75rem;color:var(--gray-400);text-align:center;margin-top:.75rem}
.modal-success{text-align:center;padding:1.5rem 0}
.success-icon{font-size:2.5rem;margin-bottom:.5rem}
.modal-success h4{margin-bottom:.25rem}

/* Admin */
.admin-quick-links{display:flex;gap:.75rem;margin-top:1rem}

/* ─── EMPTY STATES ───────────────────────────────────────────────────────── */
.empty-state{text-align:center;padding:3rem 2rem;background:var(--gray-50);border-radius:var(--radius-lg);border:1px dashed var(--gray-200)}
.empty-state svg{width:64px;height:64px;color:var(--gray-300);margin-bottom:1rem}
.empty-state h3{margin-bottom:.5rem}
.empty-state p{margin-bottom:1.25rem}

/* ─── ERROR PAGE ─────────────────────────────────────────────────────────── */
.error-page{text-align:center;padding:5rem 2rem}
.error-code{font-size:6rem;font-weight:800;color:var(--blue);opacity:.15;line-height:1}
.error-page h1{margin-bottom:.75rem}
.error-page p{margin-bottom:1.5rem}
.error-search{display:flex;gap:.5rem;max-width:400px;margin:0 auto 1.5rem}
.error-search input{flex:1;padding:.65rem 1rem;border:1.5px solid var(--gray-200);border-radius:var(--radius);font-size:.9rem;outline:none;font-family:monospace}
.error-search input:focus{border-color:var(--blue)}
.error-search button{padding:.65rem 1.25rem;background:var(--blue);color:#fff;border:none;border-radius:var(--radius);font-weight:600}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer{background:var(--gray-900);padding:3rem 0 0;margin-top:4rem}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.5fr;gap:2.5rem;margin-bottom:2rem}
.footer-brand .logo-white{color:#fff}
.footer-brand .logo-white strong{color:#38bdf8}
.footer-brand p{color:#64748b;font-size:.85rem;margin:.75rem 0}
.footer-legal{font-size:.75rem;color:#475569}
.footer-contact{display:block;color:#38bdf8;font-size:.85rem;margin-top:.75rem}
.site-footer h4{color:#e2e8f0;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:.75rem}
.site-footer ul{list-style:none}
.site-footer ul li{margin-bottom:.4rem}
.site-footer ul a{color:#64748b;font-size:.85rem}
.site-footer ul a:hover{color:#94a3b8}
.footer-bottom{border-top:1px solid #1e293b;padding:1.25rem 0;display:flex;gap:1rem;justify-content:space-between}
.footer-bottom p{font-size:.75rem;color:#334155}

/* ─── MOBILE NAV DRAWER ──────────────────────────────────────────────────── */
.mob-search-btn,.mob-menu-btn{display:none}
.mob-search-bar{display:none}
.mob-nav-overlay{display:none;position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:190;backdrop-filter:blur(2px)}
.mob-nav-overlay.open{display:block}
.mob-nav-drawer{position:fixed;top:0;right:-100%;width:290px;max-width:90vw;height:100vh;background:#fff;z-index:200;display:flex;flex-direction:column;box-shadow:-4px 0 24px rgba(0,0,0,.15);transition:right .28s cubic-bezier(.4,0,.2,1);overflow-y:auto}
.mob-nav-drawer.open{right:0}
.mob-nav-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid var(--gray-200)}
.mob-nav-close{background:none;border:none;font-size:1.25rem;color:var(--gray-500);cursor:pointer;padding:.25rem;line-height:1}
.mob-nav-links{display:flex;flex-direction:column;padding:.5rem 0}
.mob-nav-links a{display:flex;align-items:center;gap:.75rem;padding:.8rem 1.25rem;font-size:.95rem;font-weight:500;color:var(--gray-700);border-bottom:1px solid var(--gray-100)}
.mob-nav-links a:last-child{border-bottom:none}
.mob-nav-links a svg{width:18px;height:18px;flex-shrink:0;color:var(--gray-400)}
.mob-nav-links a:hover{background:var(--gray-50);color:var(--blue)}
.mob-nav-links a:hover svg{color:var(--blue)}
.mob-nav-divider{height:6px;background:var(--gray-100);margin:.25rem 0}
.mob-nav-login{color:var(--blue)!important;font-weight:600!important}
.mob-nav-register{margin:.75rem 1.25rem;padding:.75rem!important;background:var(--blue);color:#fff!important;border-radius:var(--radius);text-align:center;justify-content:center!important;font-weight:700!important;border-bottom:none!important}
.mob-nav-register:hover{background:var(--blue-dark)!important}

/* Mobile search bar */
.mob-search-bar{background:#f1f5f9;border-bottom:1px solid var(--gray-200);overflow:hidden;max-height:0;transition:max-height .25s ease}
.mob-search-bar.open{max-height:72px}
.mob-search-inner{display:flex;align-items:center;gap:.5rem;padding:.6rem 1rem}
.mob-search-inner input{flex:1;padding:.6rem .9rem;border:1.5px solid var(--gray-200);border-radius:var(--radius);font-size:.95rem;outline:none;background:#fff}
.mob-search-inner input:focus{border-color:var(--blue)}
.mob-search-inner button{padding:.6rem .9rem;background:var(--blue);color:#fff;border:none;border-radius:var(--radius);display:flex;align-items:center}

/* Hamburger icon */
.mob-menu-btn{flex-direction:column;justify-content:center;gap:5px;width:40px;height:40px;background:none;border:none;padding:.4rem;flex-shrink:0}
.mob-menu-btn span{display:block;width:22px;height:2px;background:var(--gray-700);border-radius:2px;transition:.25s}
.mob-menu-btn.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.mob-menu-btn.open span:nth-child(2){opacity:0}
.mob-menu-btn.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner{grid-template-columns:1fr}
  .hero-visual{display:none}
  .product-layout{grid-template-columns:300px 1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
}

@media (max-width: 900px) {
  .brands-catalog-grid{grid-template-columns:1fr 1fr}
}

@media (max-width: 768px) {
  /* Typography */
  h1{font-size:1.65rem}
  h2{font-size:1.3rem}

  /* Header */
  .header-inner{gap:.5rem}
  .header-search{display:none}
  .nav-hide-sm{display:none!important}
  .mob-search-btn,.mob-menu-btn{display:flex}
  .mob-search-bar{display:block}

  /* Hero */
  .hero{padding:2.75rem 0 2.25rem}
  .hero h1{font-size:1.9rem}
  .hero p{font-size:.95rem;margin-bottom:1.5rem}
  .hero-search-wrap input{padding:.75rem 1rem}
  .hero-search-wrap button{padding:.75rem 1.25rem;font-size:.9rem}
  .hero-search-hints{font-size:.75rem}

  /* Stats */
  .stats-grid{grid-template-columns:repeat(2,1fr);gap:.75rem}
  .stat-num{font-size:1.5rem}

  /* Brands */
  .brands-grid{grid-template-columns:repeat(3,1fr)}

  /* Products grid */
  .products-grid{grid-template-columns:repeat(2,1fr);gap:1rem}

  /* How it works */
  .steps-grid{grid-template-columns:1fr;gap:1.25rem}

  /* For sellers CTA */
  .sellers-cta-inner{flex-direction:column;gap:1.5rem;text-align:center}
  .sellers-benefits{align-items:flex-start}

  /* Product page */
  .product-layout{grid-template-columns:1fr;gap:1.5rem}
  .product-gallery{padding:1rem}
  .product-title{font-size:1.25rem}
  .price-big{font-size:1.6rem}
  .quick-request{flex-wrap:wrap}

  /* Offers table → horizontal scroll */
  .offers-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:var(--radius);border:1px solid var(--gray-200)}
  .offers-table{min-width:540px}

  /* Product list items */
  .product-list-item{grid-template-columns:56px 1fr;gap:.75rem}
  .pli-img{width:56px;height:44px}
  .pli-price{display:none}

  /* Specs table */
  .specs-table td:first-child{width:50%}

  /* Search page */
  .search-wrap-lg{flex-direction:column}
  .search-wrap-lg button{width:100%}

  /* Forms */
  .form-row{grid-template-columns:1fr}

  /* Cabinet */
  .cabinet-wrap{flex-direction:column}
  .cab-sidebar{width:100%;height:auto;position:static;flex-direction:row;flex-wrap:wrap}
  .cab-logo{padding:.75rem 1rem;font-size:1rem}
  .cab-user-info{padding:.6rem 1rem}
  .cab-user-name{font-size:.75rem;max-width:120px}
  .cab-nav{flex-direction:row;flex-wrap:wrap;padding:.3rem .5rem;gap:.1rem}
  .cab-nav a{padding:.45rem .6rem;font-size:.75rem}
  .cab-nav a.active{border-right:none;border-bottom:2px solid #38bdf8}
  .cab-topbar{padding:.75rem 1rem}
  .cab-content{padding:1rem}
  .dash-two-col{grid-template-columns:1fr}
  .dash-actions{grid-template-columns:1fr 1fr}

  /* Upload */
  .upload-page{grid-template-columns:1fr}

  /* Footer */
  .footer-grid{grid-template-columns:1fr 1fr;gap:1.5rem}
  .footer-bottom{flex-direction:column;gap:.5rem;text-align:center}

  /* Breadcrumb */
  .breadcrumb{font-size:.75rem}

  /* Section header */
  .section-header{flex-direction:column;align-items:flex-start;gap:.5rem}

  /* Analogs grid */
  .analogs-grid{grid-template-columns:repeat(2,1fr)}

  /* Categories grid */
  .categories-grid{grid-template-columns:repeat(3,1fr)}

  /* Brands catalog */
  .brands-catalog-grid{grid-template-columns:1fr}
  .brand-catalog-card{padding:1rem}
  .bcc-logo{width:60px;height:44px}

  /* Brand page header */
  .brand-page-header{flex-wrap:wrap;gap:1rem}

  /* Error page */
  .error-code{font-size:4rem}
  .error-search{flex-direction:column}
  .error-search button{width:100%}
}

@media (max-width: 480px) {
  /* Base */
  .container{padding:0 .875rem}

  /* Typography */
  h1{font-size:1.4rem}
  h2{font-size:1.2rem}

  /* Hero */
  .hero{padding:2rem 0}
  .hero h1{font-size:1.5rem}
  .hero-badge{font-size:.72rem}

  /* Brands */
  .brands-grid{grid-template-columns:repeat(2,1fr);gap:.75rem}
  .brand-card{padding:.9rem .75rem}
  .brand-card-logo{width:48px;height:36px;margin-bottom:.5rem}

  /* Products grid */
  .products-grid{grid-template-columns:repeat(2,1fr);gap:.75rem}
  .product-card-img{height:120px}
  .product-card-body{padding:.75rem}

  /* Stats */
  .stats-grid{grid-template-columns:1fr 1fr}
  .stat-num{font-size:1.35rem}

  /* Product page */
  .product-article-wrap{flex-wrap:wrap;gap:.35rem}
  .product-article{font-size:.95rem}
  .price-big{font-size:1.4rem}
  .quick-request{flex-direction:column;align-items:stretch}
  .btn-request-price{justify-content:center}

  /* Search list item */
  .product-list-item{grid-template-columns:48px 1fr}
  .pli-img{width:48px;height:40px}

  /* Categories */
  .categories-grid{grid-template-columns:repeat(2,1fr);gap:.75rem}

  /* Analogs */
  .analogs-grid{grid-template-columns:1fr}

  /* Cabinet */
  .dash-actions{grid-template-columns:1fr}
  .stats-cards{grid-template-columns:1fr 1fr}
  .cab-content{padding:.75rem}

  /* Auth */
  .auth-card{padding:1.5rem 1.25rem}
  .role-selector{gap:.5rem}
  .role-btn{padding:.75rem .5rem}

  /* Footer */
  .footer-grid{grid-template-columns:1fr;gap:1.25rem}
  .site-footer{padding:2rem 0 0}

  /* Modal */
  .modal-box{padding:1.5rem 1.25rem}

  /* Brand catalog */
  .brand-page-header{padding:1rem}
  .brand-page-logo{width:72px;height:54px}

  /* Offers table scrollable */
  .offers-table{min-width:480px;font-size:.8rem}
  .offers-table th,.offers-table td{padding:.6rem .7rem}

  /* Pagination */
  .pagination{gap:.25rem}
  .page-btn{width:32px;height:32px;font-size:.8rem}
}
