/* =====================================================
   TORVO SPAIR — B2B Portal Stylesheet  v2.0
   Full-Width, Mobile-First Responsive Design
   ===================================================== */

/* ── CSS Variables ─────────────────────────────────── */
:root {
    --primary:        #2563eb;
    --primary-light:  #4f46e5;
    --primary-dark:   #0f172a;
    --accent:         #f97316;
    --accent-light:   #fb923c;
    --success:        #10b981;
    --warning:        #f59e0b;
    --danger:         #ef4444;
    --text-dark:      #0f172a;
    --text-medium:    #334155;
    --text-light:     #64748b;
    --text-muted:     #94a3b8;
    --bg-white:       #ffffff;
    --bg-gray:        #f8fafc;
    --bg-gray2:       #f1f5f9;
    --border:         #e2e8f0;
    --border-dark:    #cbd5e1;
    --shadow-sm:      0 2px 4px rgba(0,0,0,0.04);
    --shadow-md:      0 8px 24px rgba(0,0,0,0.06);
    --shadow-lg:      0 16px 40px rgba(0,0,0,0.08);
    --shadow-xl:      0 24px 64px rgba(0,0,0,0.12);
    --shadow-glow:    0 8px 30px rgba(37,99,235,0.25);
    --radius-sm:      10px;
    --radius-md:      16px;
    --radius-lg:      20px;
    --radius-xl:      28px;
    --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-h:          68px;
    --content-max:    1400px;
    --section-px:     clamp(1rem, 4vw, 2.5rem);
    --section-py:     clamp(2.5rem, 6vw, 4.5rem);
}

/* ── Category Card ──────────────────────────────────── */
.cat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.4rem 1rem;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.cat-card:hover {
    border-color: var(--cc, var(--primary));
    transform: translateY(-4px);
    box-shadow: 0 10px 28px -4px color-mix(in srgb, var(--cc, #2563eb) 30%, transparent);
}
.cat-icon {
    width: 52px; height: 52px; border-radius: 12px;
    background: color-mix(in srgb, var(--cc, var(--primary)) 12%, transparent);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.75rem;
    transition: background 0.25s;
}
.cat-name  { font-weight: 700; color: var(--text-dark); font-size: 0.88rem; margin-bottom: 0.2rem; }
.cat-count { font-size: 0.72rem; color: var(--text-muted); }

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-medium);
    background: var(--bg-gray);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Full-Width Section Pattern ─────────────────────── */
/* Every visible section stretches edge-to-edge.
   Content is constrained inside a .container. */
.fw-section {
    width: 100%;
    padding: var(--section-py) var(--section-px);
}

/* Show/hide helpers */
.desktop-only  { display: flex !important; }
.mobile-only   { display: none !important; }
.mobile-only-link { display: none !important; }
.container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 var(--section-px);
    width: 100%;
}

/* ── Navbar ────────────────────────────────────────── */
.portal-nav {
    background: rgba(15, 23, 42, 0.85); /* dark slate with transparency */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    width: 100%;
}
.nav-inner {
    max-width: var(--content-max); margin: 0 auto;
    padding: 0 var(--section-px);
    display: flex; align-items: center; gap: 1rem;
    height: var(--nav-h);
    position: relative;
}
.nav-brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.nav-brand-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem; flex-shrink: 0;
}
.nav-brand-text { line-height: 1.2; }
.nav-brand-text .brand-name { font-size: 1rem; font-weight: 800; color: #fff; letter-spacing: 1px; }
.nav-brand-text .brand-sub  { font-size: 0.6rem; color: rgba(255,255,255,0.45); letter-spacing: 1.5px; text-transform: uppercase; }

.nav-links {
    display: flex; align-items: center; gap: 0.2rem; flex: 1;
}
.nav-link {
    padding: 0.5rem 0.9rem; border-radius: 8px; font-size: 0.875rem;
    font-weight: 500; color: rgba(255,255,255,0.7); transition: var(--transition);
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,0.1); }

.nav-right { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nav-rfq-btn {
    display: flex; align-items: center; gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: #fff;
    padding: 0.55rem 1.1rem; border-radius: 8px;
    font-size: 0.875rem; font-weight: 700; transition: var(--transition);
    position: relative; white-space: nowrap;
    box-shadow: 0 4px 15px rgba(249,115,22,0.2);
}
.nav-rfq-btn:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(249,115,22,0.35); }
.rfq-count {
    background: #fff; color: var(--accent);
    width: 20px; height: 20px; border-radius: 50%;
    font-size: 0.68rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.nav-auth-btn {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem; border-radius: 8px;
    font-size: 0.85rem; font-weight: 600; transition: var(--transition);
    white-space: nowrap;
}
.nav-login   { color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.2); }
.nav-login:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-register { background: #fff; color: var(--primary); }
.nav-register:hover { background: rgba(255,255,255,0.9); transform: translateY(-1px); }
.nav-user { display: flex; align-items: center; gap: 0.6rem; color: rgba(255,255,255,0.85); }
.nav-user-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.mobile-menu-btn {
    display: none; background: rgba(255,255,255,0.1); border: none;
    color: #fff; font-size: 1.3rem;
    width: 42px; height: 42px; border-radius: 8px;
    align-items: center; justify-content: center;
    transition: var(--transition);
}
.mobile-menu-btn:hover { background: rgba(255,255,255,0.18); }

/* Portal search wrap in nav */
.portal-search-wrap { display: none; }

/* ── Hero / Catalogue Mini-Hero ─────────────────────── */
.portal-hero {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e1b4b 50%, #1d4ed8 100%);
    padding: clamp(3rem, 8vw, 5rem) var(--section-px);
    text-align: center; position: relative; overflow: hidden;
}
.portal-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='%23ffffff' fill-opacity='0.03'%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 { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    padding: 0.4rem 1rem; border-radius: 50px;
    color: rgba(255,255,255,0.85); font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.5px; margin-bottom: 1.25rem;
}
.hero-title {
    font-size: clamp(1.75rem, 4.5vw, 3rem); font-weight: 900;
    color: #fff; line-height: 1.15; margin-bottom: 1rem;
}
.hero-title span { color: var(--accent-light); }
.hero-desc { font-size: 1.05rem; color: rgba(255,255,255,0.65); max-width: 560px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: #fff;
    padding: 0.85rem 2rem; border-radius: 10px;
    font-weight: 700; font-size: 0.95rem; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(249,115,22,0.35); border: none;
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(249,115,22,0.45); }
.btn-hero-outline {
    background: rgba(255,255,255,0.08); color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.85rem 2rem; border-radius: 10px;
    font-weight: 600; font-size: 0.95rem; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

/* ── Stats Bar ──────────────────────────────────────── */
.stats-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 1rem var(--section-px); width: 100%; }
.stats-inner {
    max-width: var(--content-max); margin: 0 auto;
    display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center;
}
.stat-item { display: flex; align-items: center; gap: 0.5rem; }
.stat-num   { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.78rem; color: var(--text-light); }
.stat-divider { width: 1px; height: 32px; background: var(--border); flex-shrink: 0; }

/* ── Section ────────────────────────────────────────── */
.section { padding: var(--section-py) var(--section-px); width: 100%; }
.section-header { margin-bottom: 2rem; }
.section-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 0.4rem; }
.section-title { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 800; color: var(--text-dark); margin-bottom: 0.4rem; }
.section-sub   { font-size: 0.875rem; color: var(--text-light); }

/* --- Home Page Layout Sections --- */
.home-how-section {
    background: #fff;
    padding: var(--section-py) var(--section-px);
    border-bottom: 1px solid var(--border);
}
.home-cat-section {
    background: var(--bg-gray);
    padding: var(--section-py) var(--section-px);
}
.home-new-section {
    background: #fff;
    padding: var(--section-py) var(--section-px);
}
.home-why-section {
    background: linear-gradient(135deg, var(--primary-dark), #1d4ed8);
    padding: var(--section-py) var(--section-px);
}
.home-cta-section {
    background: #fff;
    padding: var(--section-py) var(--section-px);
    text-align: center;
}

/*  Inner containers for home sections */
.home-section-inner {
    max-width: var(--content-max);
    margin: 0 auto;
}

/* ── Process / How It Works Grid ─────────────────────── */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}
.process-line {
    position: absolute; top: 28px; left: 12%; right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 0; opacity: 0.2;
}
.process-step { position: relative; z-index: 1; text-align: center; }

/* ── Feature Grid (Why Choose Us) ───────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* ── Hero Grid (home hero 2-col) ─────────────────────── */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: center;
}

/* ── Category Grid ───────────────────────────────────── */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
}

/* ── Filters Bar ────────────────────────────────────── */
.filter-bar {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1.25rem;
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    box-shadow: var(--shadow-sm); margin-bottom: 1.5rem;
}
.filter-group { display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 150px; }
.filter-group label { font-size: 0.78rem; font-weight: 600; color: var(--text-light); white-space: nowrap; }
.filter-select, .filter-input {
    border: 1px solid var(--border); border-radius: 8px;
    padding: 0.5rem 0.75rem; font-size: 0.875rem; font-family: inherit;
    color: var(--text-medium); background: var(--bg-gray); flex: 1; transition: var(--transition);
}
.filter-select:focus, .filter-input:focus {
    outline: none; border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.filter-search { flex: 2; min-width: 200px; }
.filter-search .filter-input { background: #fff; }
.btn-filter {
    padding: 0.55rem 1.25rem; border-radius: 8px; border: none;
    font-size: 0.875rem; font-weight: 600; font-family: inherit; transition: var(--transition);
    display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-filter-primary { background: var(--primary); color: #fff; }
.btn-filter-primary:hover { background: var(--primary-light); }
.btn-filter-reset { background: var(--bg-gray2); color: var(--text-light); border: 1px solid var(--border); }
.btn-filter-reset:hover { background: var(--border); }

/* ── Product Grid ───────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
}
.product-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-md); overflow: hidden;
    transition: var(--transition); display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-xl); transform: translateY(-6px); }
.product-img {
    height: 180px; background: var(--bg-gray2);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.product-img .no-img { color: var(--text-muted); font-size: 3rem; }
.product-badge {
    position: absolute; top: 0.75rem; left: 0.75rem;
    font-size: 0.68rem; font-weight: 700; padding: 3px 8px;
    border-radius: 20px; letter-spacing: 0.5px; text-transform: uppercase;
}
.badge-instock { background: rgba(22,163,74,0.12); color: var(--success); }
.badge-low     { background: rgba(217,119,6,0.12);  color: var(--warning); }
.badge-out     { background: rgba(220,38,38,0.1);   color: var(--danger); }
.product-body  { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; }
.product-cat   { font-size: 0.7rem; font-weight: 600; color: var(--primary-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.4rem; }
.product-name  { font-size: 0.9rem; font-weight: 700; color: var(--text-dark); line-height: 1.3; margin-bottom: 0.3rem; }
.product-sku   { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.6rem; }
.product-compat { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.75rem; }
.compat-tag {
    font-size: 0.65rem; padding: 2px 7px;
    background: var(--bg-gray2); border: 1px solid var(--border);
    border-radius: 20px; color: var(--text-light);
}
.product-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--border);
}
.product-price { font-size: 1.05rem; font-weight: 800; color: var(--primary); }
.product-price small { font-size: 0.7rem; font-weight: 400; color: var(--text-muted); }
.product-price-hidden {
    display: flex; align-items: center; gap: 0.35rem;
    font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
}
.product-price-hidden i { font-size: 0.65rem; color: var(--text-muted); }

.btn-add-rfq {
    display: flex; align-items: center; gap: 0.35rem;
    background: var(--primary); color: #fff; border: none;
    border-radius: 8px; padding: 0.5rem 0.85rem;
    font-size: 0.78rem; font-weight: 700; font-family: inherit; transition: var(--transition);
}
.btn-add-rfq:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-add-rfq.added { background: var(--success); }

/* ── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.65rem 1.5rem; border-radius: 8px;
    font-weight: 600; font-size: 0.875rem; font-family: inherit;
    border: none; transition: var(--transition); text-decoration: none;
    white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; border: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-accent  { background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: #fff; border: none; }
.btn-accent:hover  { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(249,115,22,0.3); }
.btn-outline { background: transparent; border: 1.5px solid var(--border-dark); color: var(--text-medium); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm  { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-lg  { padding: 0.9rem 2rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-danger  { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; transform: translateY(-1px); }

/* ── Status Badges ──────────────────────────────────── */
.status-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 3px 10px; border-radius: 20px;
    font-size: 0.72rem; font-weight: 700;
}
.status-submitted  { background:rgba(37,99,235,0.1);  color:var(--primary); }
.status-reviewing  { background:rgba(217,119,6,0.1);  color:var(--warning); }
.status-quoted     { background:rgba(124,58,237,0.12); color:#7c3aed; }
.status-accepted   { background:rgba(22,163,74,0.1);  color:var(--success); }
.status-invoiced   { background:rgba(22,163,74,0.12); color:var(--success); }
.status-rejected   { background:rgba(220,38,38,0.1);  color:var(--danger); }
.status-closed     { background:rgba(100,116,139,0.1);color:var(--text-muted); }

/* ── Portal Table ───────────────────────────────────── */
.portal-table { width:100%; border-collapse:collapse; font-size:0.875rem; }
.portal-table th { padding:0.7rem 1rem; text-align:left; font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:var(--text-light); border-bottom:1px solid var(--border); background:var(--bg-gray); }
.portal-table td { padding:0.85rem 1rem; border-bottom:1px solid var(--border); color:var(--text-dark); }
.portal-table tr:last-child td { border-bottom:none; }
.portal-table tr:hover td { background:var(--bg-gray); }

/* ── Breadcrumb ─────────────────────────────────────── */
.breadcrumb { background:#fff; border-bottom:1px solid var(--border); padding:0.65rem var(--section-px); font-size:0.8rem; }
.breadcrumb-inner { max-width:var(--content-max); margin:0 auto; display:flex; align-items:center; gap:0.5rem; color:var(--text-muted); flex-wrap:wrap; }
.breadcrumb-inner a { color:var(--primary); text-decoration:none; }


/* ── Cards ──────────────────────────────────────────── */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--transition); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card-body   { padding: 1.5rem; }
.card-header { padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title  { font-size: 1rem; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 0.5rem; }

/* ── Forms ──────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-medium); margin-bottom: 0.4rem; }
.form-control {
    width: 100%; padding: 0.7rem 0.9rem; border: 1.5px solid var(--border);
    border-radius: 8px; font-family: inherit; font-size: 0.875rem;
    color: var(--text-dark); transition: var(--transition); background: #fff;
}
.form-control:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint  { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.25rem; }
.form-error { color: var(--danger); font-size: 0.75rem; margin-top: 0.2rem; }

/* ── Alerts ─────────────────────────────────────────── */
.alert {
    padding: 0.85rem 1.1rem; border-radius: 8px;
    font-size: 0.875rem; display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: 1.25rem;
}
.alert-success { background: rgba(22,163,74,0.08);  border: 1px solid rgba(22,163,74,0.25);  color: #166534; }
.alert-error   { background: rgba(220,38,38,0.08);  border: 1px solid rgba(220,38,38,0.25);  color: #991b1b; }
.alert-info    { background: rgba(37,99,235,0.08);  border: 1px solid rgba(37,99,235,0.25);  color: #1e3a8a; }
.alert-warning { background: rgba(217,119,6,0.08);  border: 1px solid rgba(217,119,6,0.25);  color: #92400e; }

/* ── Auth Pages ─────────────────────────────────────── */
.auth-wrap {
    min-height: calc(100vh - var(--nav-h)); display: flex;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 60%, #fff7ed 100%);
    padding: 2rem var(--section-px);
}
.auth-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 2.5rem;
    width: 100%; max-width: 500px; box-shadow: var(--shadow-xl);
}
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo .logo-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.75rem; font-size: 1.5rem; color: #fff;
    box-shadow: 0 8px 24px rgba(30,58,138,0.25);
}
.auth-logo h1 { font-size: 1.25rem; font-weight: 800; color: var(--text-dark); margin-bottom: 0.2rem; }
.auth-logo p  { font-size: 0.8rem; color: var(--text-light); }
.auth-divider { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin: 1.25rem 0; position: relative; }
.auth-divider::before, .auth-divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--border); }
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }

/* ── RFQ Cart ───────────────────────────────────────── */
.cart-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; align-items: start; }
.rfq-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; border-bottom: 1px solid var(--border); }
.rfq-item:last-child { border-bottom: none; }
.rfq-item-img { width: 64px; height: 64px; border-radius: 8px; background: var(--bg-gray2); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.rfq-item-img img { width: 100%; height: 100%; object-fit: contain; }
.rfq-item-info { flex: 1; min-width: 0; }
.rfq-item-name { font-weight: 700; font-size: 0.875rem; color: var(--text-dark); }
.rfq-item-sku  { font-size: 0.72rem; color: var(--text-muted); }

/* ── Dashboard ──────────────────────────────────────── */
.portal-dashboard { padding: var(--section-py) var(--section-px); max-width: var(--content-max); margin: 0 auto; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.dash-stat {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 1.25rem; display: flex; align-items: center; gap: 1rem;
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.dash-stat:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--primary-light); }
.dash-stat-icon  { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.dash-stat-num   { font-size: 1.5rem; font-weight: 800; color: var(--text-dark); }
.dash-stat-label { font-size: 0.75rem; color: var(--text-light); }

/* ── Status / Tier Badges ───────────────────────────── */
.status-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }
.status-submitted { background: rgba(37,99,235,0.1); color: var(--primary); }
.status-reviewing { background: rgba(217,119,6,0.1);  color: var(--warning); }
.status-quoted    { background: rgba(109,40,217,0.1); color: #6d28d9; }
.status-accepted  { background: rgba(22,163,74,0.1);  color: var(--success); }
.status-rejected  { background: rgba(220,38,38,0.1);  color: var(--danger); }
.status-pending   { background: rgba(217,119,6,0.1);  color: var(--warning); }
.status-active    { background: rgba(22,163,74,0.1);  color: var(--success); }
.tier-standard { background: rgba(107,114,128,0.1); color: #374151; }
.tier-silver   { background: rgba(148,163,184,0.2);  color: #475569; }
.tier-gold     { background: rgba(217,119,6,0.15);   color: #92400e; }

/* ── Table ──────────────────────────────────────────── */
.portal-table { width: 100%; border-collapse: collapse; }
.portal-table th {
    background: var(--bg-gray); font-size: 0.75rem; font-weight: 700;
    color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px;
    padding: 0.75rem 1rem; text-align: left; border-bottom: 2px solid var(--border);
}
.portal-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.portal-table tr:last-child td { border-bottom: none; }
.portal-table tr:hover td { background: var(--bg-gray); }

/* Scrollable table wrapper (used in mobile) */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); border: 1px solid var(--border); }
.table-wrap .portal-table th:first-child, .table-wrap .portal-table td:first-child { position: sticky; left: 0; background: inherit; z-index: 1; }

/* ── Footer ─────────────────────────────────────────── */
.portal-footer {
    background: var(--primary-dark); color: rgba(255,255,255,0.65);
    padding: 3rem var(--section-px) 1.5rem; margin-top: 4rem; width: 100%;
}
.footer-inner  { max-width: var(--content-max); margin: 0 auto; }
.footer-grid   { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-about p { font-size: 0.85rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-top: 0.75rem; }
.footer-col h4  { font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.85); margin-bottom: 0.85rem; letter-spacing: 0.5px; }
.footer-col a   { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-bottom: 0.5rem; transition: var(--transition); }
.footer-col a:hover { color: rgba(255,255,255,0.85); padding-left: 4px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.25rem;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;
    font-size: 0.78rem;
}

/* ── Breadcrumb ─────────────────────────────────────── */
.breadcrumb { background: #fff; border-bottom: 1px solid var(--border); padding: 0.75rem var(--section-px); width: 100%; }
.breadcrumb-inner {
    max-width: var(--content-max); margin: 0 auto;
    display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
    font-size: 0.8rem; color: var(--text-muted);
}
.breadcrumb-inner a { color: var(--primary-light); }
.breadcrumb-inner a:hover { text-decoration: underline; }

/* ── Empty State ────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state i  { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h3 { font-size: 1.1rem; color: var(--text-light); margin-bottom: 0.5rem; }
.empty-state p  { font-size: 0.875rem; }

/* ── Misc ───────────────────────────────────────────── */
.results-info { font-size: 0.82rem; color: var(--text-light); margin-bottom: 1rem; }
.qty-input    { display: flex; align-items: center; gap: 0.25rem; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; width: fit-content; }
.qty-btn      { width: 36px; height: 36px; border: none; background: var(--bg-gray2); font-size: 1rem; font-weight: 700; color: var(--text-medium); transition: var(--transition); }
.qty-btn:hover { background: var(--border); }
.qty-num      { width: 46px; text-align: center; font-size: 0.9rem; font-weight: 600; border: none; outline: none; font-family: inherit; color: var(--text-dark); background: transparent; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS — Mobile First
   ══════════════════════════════════════════════════════ */

/* ── Tablet / Laptop (≤ 1100px) ─────────────────────── */
@media (max-width: 1100px) {
    :root { --content-max: 100%; }
    .hero-grid { grid-template-columns: 1fr 320px; gap: 2rem; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid  { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* ── Tablet (≤ 992px) ───────────────────────────────── */
@media (max-width: 992px) {
    :root { --section-px: clamp(1rem, 3vw, 1.5rem); }

    /* Nav: show hamburger */
    .mobile-menu-btn { display: flex; }
    .hide-mobile     { display: none !important; }
    .desktop-only    { display: none !important; }
    .portal-nav      { height: auto; }
    .nav-inner       { height: var(--nav-h); flex-wrap: nowrap; position: relative; }

    /* RFQ label hidden, icon only */
    .nav-rfq-btn .rfq-cart-label { display: none; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-h); left: 0; right: 0;
        background: var(--primary-dark);
        padding: 1rem 1.5rem 1.5rem;
        box-shadow: 0 20px 40px rgba(0,0,0,0.35);
        border-top: 1px solid rgba(255,255,255,0.06);
        gap: 0.35rem; z-index: 1001;
    }
    /* When menu opens show the mobile-only-links too */
    .nav-links.show-mobile { display: flex; animation: slideDown 0.3s ease-out; }
    .nav-links.show-mobile .mobile-only-link { display: flex !important; }
    .nav-links.show-mobile .mobile-search-only { display: block !important; }
    @keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
    .nav-link  { width: 100%; padding: 0.85rem 1.1rem; background: rgba(255,255,255,0.04); border-radius: 10px; font-size: 0.95rem; }
    .nav-right { gap: 0.5rem; }
    .nav-rfq-btn { padding: 0.5rem 0.85rem; font-size: 0.78rem; }
    .nav-user-avatar { width: 30px; height: 30px; font-size: 0.75rem; }

    /* Layouts */
    .hero-grid    { grid-template-columns: 1fr; }
    .cart-grid    { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-line { display: none !important; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid  { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .dash-main-grid      { grid-template-columns: 1fr !important; }
    .catalogue-main-grid { grid-template-columns: 1fr !important; }

    .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

    /* Mobile search bar in nav menu */
    .mobile-search-only { display: block !important; }
    .portal-search-wrap { display: none !important; }
}

/* ── Phablet / Large Mobile (≤ 768px) ──────────────── */
@media (max-width: 768px) {
    :root { --section-px: 1rem; --section-py: 2.5rem; }

    .brand-sub { display: none; }

    /* Two-col product grid */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .product-body { padding: 0.75rem; }
    .product-name { font-size: 0.82rem; }
    .product-price { font-size: 0.9rem; }
    .btn-add-rfq { padding: 0.4rem 0.65rem; font-size: 0.72rem; }
    .product-img { height: 150px; }

    /* Cat grid */
    .cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

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

    /* Filters */
    .filter-bar   { flex-direction: column; align-items: stretch; gap: 0.75rem; }
    .filter-group { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
    .filter-select, .filter-input { width: 100%; }
    .btn-filter   { width: 100%; justify-content: center; }

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

    /* Footer */
    .footer-grid  { grid-template-columns: 1fr; gap: 2rem; }
    .footer-about { margin-bottom: 0; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }

    /* Stats bar */
    .stats-inner  { justify-content: space-between; gap: 0.75rem; }
    .stat-divider { display: none; }

    /* Dash */
    .dash-grid { grid-template-columns: 1fr 1fr; }

    /* Btn sizes on mobile */
    .btn-lg { padding: 0.85rem 1.5rem; font-size: 0.9rem; }

    /* Contact page grid */
    .contact-grid { grid-template-columns: 1fr !important; }

    /* Auth card */
    .auth-card { padding: 2rem 1.25rem; border-radius: var(--radius-lg); }

    /* Cart */
    .rfq-item { flex-wrap: wrap; }
    .rfq-item-img { width: 56px; height: 56px; }
}

/* ── Small Mobile (≤ 480px) ────────────────────────── */
@media (max-width: 480px) {
    :root { --section-py: 2rem; }

    .nav-inner { gap: 0.4rem; }
    .nav-rfq-btn span.rfq-cart-label { display: none; }
    .nav-auth-btn { padding: 0.5rem 0.75rem; font-size: 0.78rem; }

    /* Single-col products */
    .product-grid { grid-template-columns: 1fr; }
    .product-img  { height: 180px; }

    /* Single-col process */
    .process-grid { grid-template-columns: 1fr; }

    /* Dash single col */
    .dash-grid  { grid-template-columns: 1fr; }

    /* Cat grid 2-col on small screens */
    .cat-grid { grid-template-columns: repeat(2, 1fr); }

    /* Headline sizes */
    .hero-title { font-size: clamp(1.5rem, 7vw, 2rem); }
    .hero-desc  { font-size: 0.9rem; }

    /* Action buttons full-width stack */
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn-hero-primary, .hero-actions .btn-hero-outline { text-align: center; justify-content: center; }

    /* Buttons – make lg full width */
    .btn-full-xs { width: 100%; justify-content: center; }

    /* Footer narrower padding */
    .portal-footer { padding: 2rem 1rem 1rem; }

    /* Auth */
    .auth-card { padding: 1.75rem 1rem; }

    /* CTA buttons stacked */
    .home-cta-section .btn { width: 100%; justify-content: center; }
}

/* ── Very Small (≤ 360px) ───────────────────────────── */
@media (max-width: 360px) {
    :root { --section-px: 0.85rem; }
    .nav-brand-icon { width: 34px; height: 34px; font-size: 0.9rem; }
    .brand-name { font-size: 0.88rem; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}
