﻿/* =========================================================================
   NetIntix – Professional Light B2B Marketplace Theme
   Clean, Modern, Enterprise-Grade Design
========================================================================= */

:root {
    /* Color Palette — Light */
    --bg-primary:      #f8fafc;
    --bg-secondary:    #ffffff;
    --bg-subtle:       #f1f5f9;
    --bg-card:         #ffffff;

    --text-main:       #0f172a;
    --text-secondary:  #334155;
    --text-muted:      #64748b;
    --text-light:      #94a3b8;

    --accent-primary:  #2563eb;
    --accent-hover:    #1d4ed8;
    --accent-light:    #eff6ff;
    --accent-secondary:#7c3aed;
    --accent-teal:     #0891b2;

    --border-color:    #e2e8f0;
    --border-strong:   #cbd5e1;

    --shadow-xs:   0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm:   0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:   0 4px 20px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.06);
    --shadow-lg:   0 10px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-blue: 0 4px 20px rgba(37,99,235,0.20);

    --font-heading: 'Outfit', sans-serif;
    --font-body:    'Inter', sans-serif;

    --radius-xl:  20px;
    --radius-lg:  14px;
    --radius-md:  10px;
    --radius-sm:  7px;
    --radius-xs:  4px;
    --transition: all 0.22s cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

/* =========================================
   Utility
========================================= */

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.w-100 { width: 100%; }
.mt-1  { margin-top: 8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.mt-4  { margin-top: 32px; }
.mt-5  { margin-top: 48px; }
.mb-4  { margin-bottom: 24px; }
.p-4   { padding: 24px; }
.center { text-align: center; }
.mt-auto { margin-top: auto; }

.glassmorphism {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* =========================================
   Buttons
========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 24px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
    box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 24px rgba(37,99,235,0.30);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 1.5px solid var(--accent-primary);
}
.btn-outline:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--border-color);
}
.btn-ghost:hover { background: var(--bg-subtle); border-color: var(--border-strong); }

.btn-sm { padding: 7px 16px; font-size: 0.85rem; border-radius: var(--radius-sm); }

/* =========================================
   Badges
========================================= */

.badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.badge-enterprise { background: #f3f0ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.badge-smb        { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-both       { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge-model      { background: var(--bg-subtle); color: var(--text-muted); border: 1px solid var(--border-color); }

/* =========================================
   Flash Messages
========================================= */

.flash {
    position: fixed;
    top: 24px; right: 24px;
    z-index: 9999;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    transition: opacity 0.4s, transform 0.4s;
    border-left: 4px solid;
}
.flash-success { background: #f0fdf4; border-color: #22c55e; color: #166534; }
.flash-error   { background: #fef2f2; border-color: #ef4444; color: #991b1b; }
.flash-close { cursor: pointer; font-size: 1.1rem; line-height: 1; margin-left: auto; opacity: 0.5; }
.flash-close:hover { opacity: 1; }

/* =========================================
   Navigation
========================================= */

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    border-radius: 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 66px;
}

.logo { font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.5px; color: var(--text-main); }
.logo .highlight { color: var(--accent-primary); }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-links a:hover { color: var(--accent-primary); background: var(--accent-light); }
.nav-links a::after { display: none; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-user { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
}
.hamburger span { width: 22px; height: 2px; background: var(--text-main); border-radius: 4px; display: block; transition: var(--transition); }

/* =========================================
   Hero Section
========================================= */

.hero {
    position: relative;
    padding: 140px 0 80px;
    text-align: center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(160deg, #f8fafc 0%, #eff6ff 50%, #f8fafc 100%);
}

.hero::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 800px 400px at 20% 30%, rgba(37,99,235,0.07) 0%, transparent 70%),
        radial-gradient(ellipse 600px 300px at 80% 70%, rgba(124,58,237,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-bg-elements, .glow-orb, .orb-1, .orb-2, .orb-3 { display: none; }

.hero-content { max-width: 820px; position: relative; z-index: 1; }

.hero-title { font-size: 3.8rem; margin-bottom: 20px; letter-spacing: -1.5px; color: var(--text-main); }

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-weight: 400;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar-container {
    padding: 6px 6px 6px 20px;
    border-radius: 50px;
    max-width: 620px;
    margin: 0 auto;
    background: #fff;
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
}
.search-form { display: flex; width: 100%; gap: 8px; align-items: center; }
.search-input {
    flex: 1; background: transparent; border: none;
    color: var(--text-main); padding: 10px 0;
    font-size: 1rem; outline: none; font-family: var(--font-body);
}
.search-input::placeholder { color: var(--text-light); }
.btn-search { border-radius: 50px; min-width: 48px; height: 48px; padding: 0 20px; font-size: 0.9rem; flex-shrink: 0; }

.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 56px; }
.stat-item { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num {
    font-family: var(--font-heading); font-size: 2rem; font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-item span:last-child { color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* =========================================
   Sections & Grids
========================================= */

.section { padding: 90px 0; }
.bg-darker { background-color: var(--bg-subtle); }

.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.section-title { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.5px; }

.section-header.center {
    justify-content: center; flex-direction: column; align-items: center; text-align: center;
}
.section-header.center .section-desc { color: var(--text-muted); margin-top: 10px; font-size: 1rem; }

.link-more { color: var(--accent-primary); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 4px; }
.link-more:hover { text-decoration: underline; }

/* =========================================
   Solution Cards
========================================= */

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.solution-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 36px 32px;
    border-radius: var(--radius-lg);
    display: flex; flex-direction: column; align-items: flex-start;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #bfdbfe; }

.card-icon {
    font-size: 2.4rem; margin-bottom: 20px;
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-light); border-radius: var(--radius-md);
}
.solution-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.solution-card p { color: var(--text-muted); margin-bottom: 24px; font-size: 0.95rem; line-height: 1.7; }

/* =========================================
   Products Grid & Cards
========================================= */

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 20px; }

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
    text-decoration: none;
    color: var(--text-main);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #93c5fd; }

.product-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex; align-items: center; justify-content: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}
.product-img { width: 100%; height: 100%; object-fit: cover; }
.img-text { color: var(--border-strong); font-size: 1.75rem; font-weight: 800; text-transform: uppercase; font-family: var(--font-heading); letter-spacing: 2px; }

.product-info { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.product-title { font-size: 1.05rem; font-weight: 600; margin: 2px 0; color: var(--text-main); line-height: 1.4; }
.product-brand { color: var(--text-muted); font-size: 0.82rem; }

.product-action {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-color);
}
.price { font-size: 1.2rem; font-weight: 700; font-family: var(--font-heading); color: var(--accent-primary); }

/* =========================================
   Brands Carousel
========================================= */

.brands-carousel {
    display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px;
    scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.brands-carousel::-webkit-scrollbar { height: 4px; }
.brands-carousel::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; }

.brand-item {
    min-width: 180px; height: 90px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); transition: var(--transition); flex-shrink: 0;
}
.brand-item:hover { transform: scale(1.03); border-color: #93c5fd; box-shadow: var(--shadow-sm); }
.brand-dummy { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--text-muted); letter-spacing: 1px; }

/* =========================================
   Page Header
========================================= */

.page-header {
    padding: 120px 0 52px;
    background: linear-gradient(160deg, #eff6ff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-color);
}
.page-header h1 { font-size: 2.8rem; margin-bottom: 10px; letter-spacing: -1px; }
.page-header p { color: var(--text-muted); font-size: 1.05rem; }

/* =========================================
   Layout & Sidebar (Browse)
========================================= */

.browse-section { background: var(--bg-primary); }

.layout-sidebar { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }

.sidebar {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    position: sticky;
    top: 90px;
}
.sidebar h3 {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.5px;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color);
}

.filter-group { margin-bottom: 24px; }
.filter-group h4 { font-size: 0.78rem; font-weight: 700; margin-bottom: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.filter-group label {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 9px; font-size: 0.88rem; cursor: pointer;
    color: var(--text-secondary); transition: color 0.15s; padding: 3px 0;
}
.filter-group label:hover { color: var(--accent-primary); }
.filter-group input[type="radio"],
.filter-group input[type="checkbox"] { accent-color: var(--accent-primary); width: 15px; height: 15px; flex-shrink: 0; }

/* =========================================
   Pagination
========================================= */

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.page-btn {
    padding: 8px 16px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border-color);
    color: var(--text-secondary); font-size: 0.88rem; font-weight: 500;
    text-decoration: none; transition: var(--transition);
}
.page-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); background: var(--accent-light); }
.page-btn.active { background: var(--accent-primary); color: #fff; border-color: var(--accent-primary); box-shadow: var(--shadow-blue); }

/* =========================================
   Comparison Table
========================================= */

.comparison-table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.comparison-table { width: 100%; border-collapse: collapse; text-align: left; background: var(--bg-card); }
.comparison-table th,
.comparison-table td { padding: 18px 20px; border-bottom: 1px solid var(--border-color); }
.comparison-table th { background: var(--bg-subtle); font-family: var(--font-heading); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--accent-light); }
.feature-name { font-weight: 600; color: var(--text-secondary); width: 220px; font-size: 0.9rem; }

.form-select {
    width: 100%; padding: 10px 14px;
    background: var(--bg-card); color: var(--text-main);
    border: 1.5px solid var(--border-color); border-radius: var(--radius-sm);
    outline: none; font-family: var(--font-body); font-size: 0.9rem; transition: border-color 0.2s;
}
.form-select:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.08); }

/* =========================================
   Category Grid
========================================= */

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 14px; }
.category-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; padding: 22px 14px; text-align: center; transition: var(--transition);
    text-decoration: none; color: var(--text-main);
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); box-shadow: var(--shadow-xs);
}
.category-card:hover { transform: translateY(-3px); border-color: #93c5fd; box-shadow: var(--shadow-sm); background: var(--accent-light); }
.cat-icon { font-size: 1.8rem; }
.cat-name { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); }

/* =========================================
   Footer
========================================= */

.footer { background: var(--text-main); padding: 60px 0 24px; border-top: 1px solid var(--border-color); color: #cbd5e1; }
.footer-content { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand h3 { font-size: 1.6rem; margin-bottom: 14px; color: #fff; }
.footer-brand .highlight { color: #60a5fa; }
.footer-brand p { color: #94a3b8; max-width: 280px; font-size: 0.9rem; line-height: 1.7; }
.footer-links h4 { margin-bottom: 18px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #f1f5f9; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links a { color: #94a3b8; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: #60a5fa; }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); color: #64748b; font-size: 0.85rem; }

/* =========================================
   Product Detail
========================================= */

.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

.product-gallery {
    overflow: hidden; background: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.gallery-main, .gallery-main img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: var(--bg-subtle); }
.main-product-img { width: 100%; max-height: 360px; object-fit: contain; display: block; }
.gallery-thumbs { display: flex; gap: 10px; padding: 12px; overflow-x: auto; border-top: 1px solid var(--border-color); background: var(--bg-subtle); }
.thumb-img { width: 68px; height: 68px; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent; transition: var(--transition); flex-shrink: 0; }
.thumb-img.active, .thumb-img:hover { border-color: var(--accent-primary); }
.gallery-placeholder { width: 100%; min-height: 280px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }

.product-detail-info { display: flex; flex-direction: column; gap: 20px; }
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-price-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.detail-price { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; color: var(--accent-primary); }
.detail-capacity { color: var(--text-muted); font-size: 0.88rem; background: var(--bg-subtle); padding: 5px 14px; border-radius: 20px; border: 1px solid var(--border-color); font-weight: 500; }
.detail-section h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 10px; font-weight: 700; }
.product-brand-detail { color: var(--text-muted); margin-top: 4px; font-size: 0.9rem; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 14px; transition: var(--transition); }
.back-link:hover { color: var(--accent-primary); }

/* =========================================
   Specs Table
========================================= */

.specs-table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-color); box-shadow: var(--shadow-xs); }
.specs-table { width: 100%; border-collapse: collapse; background: var(--bg-card); }
.specs-table tr { border-bottom: 1px solid var(--border-color); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table tr:hover td { background: var(--bg-subtle); }
.spec-label { padding: 15px 20px; font-weight: 600; color: var(--text-secondary); width: 220px; font-size: 0.88rem; background: var(--bg-subtle); }
.spec-label small { font-weight: 400; opacity: 0.7; }
.spec-value { padding: 15px 20px; font-size: 0.92rem; color: var(--text-main); }

/* =========================================
   Compare Page
========================================= */

.compare-selectors { padding: 28px; margin-bottom: 24px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.compare-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; align-items: end; }
.compare-selectors .form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 0; }
.compare-selectors label { font-weight: 600; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* =========================================
   Solutions Page
========================================= */

.solution-tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.tab-btn {
    padding: 9px 22px; border-radius: 30px;
    background: var(--bg-card); border: 1.5px solid var(--border-color);
    color: var(--text-secondary); font-weight: 600; text-decoration: none;
    transition: var(--transition); font-size: 0.9rem;
}
.tab-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); background: var(--accent-light); }
.tab-btn.active { background: var(--accent-primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-blue); }

.solution-detail { padding: 32px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.solution-detail-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.solution-detail-header h2 { font-size: 1.5rem; }
.solution-desc { color: var(--text-muted); margin-bottom: 16px; font-size: 0.95rem; line-height: 1.7; }

/* =========================================
   Brands Grid
========================================= */

.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.brand-card {
    display: flex; align-items: center; gap: 18px; padding: 22px;
    text-decoration: none; color: var(--text-main); transition: var(--transition);
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
}
.brand-card:hover { transform: translateY(-3px); border-color: #93c5fd; box-shadow: var(--shadow-md); }
.brand-card-logo { flex-shrink: 0; }
.brand-logo-img { height: 36px; object-fit: contain; }
.brand-logo-img-lg { height: 56px; max-width: 120px; object-fit: contain; }
.brand-dummy-lg {
    width: 56px; height: 56px; border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: #fff;
}
.brand-card-info h3 { font-size: 1rem; margin-bottom: 3px; }
.brand-origin { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 4px; }
.brand-desc { color: var(--text-muted); font-size: 0.82rem; line-height: 1.5; }

/* =========================================
   Auth Pages
========================================= */

.auth-section {
    min-height: calc(100vh - 300px);
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #f8fafc 0%, #eff6ff 100%);
    padding: 120px 0 60px;
}
.auth-card { max-width: 460px; width: 100%; padding: 40px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form .form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 0; }
.auth-form label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-input {
    background: var(--bg-subtle); border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm); color: var(--text-main);
    padding: 11px 14px; font-size: 0.92rem; outline: none;
    transition: border-color 0.2s, box-shadow 0.2s; width: 100%; font-family: var(--font-body);
}
.form-input:focus { border-color: var(--accent-primary); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,0.09); }
.auth-alt { text-align: center; margin-top: 16px; color: var(--text-muted); font-size: 0.88rem; }
.auth-alt a { color: var(--accent-primary); font-weight: 600; }
.auth-alt a:hover { text-decoration: underline; }

/* =========================================
   Error Page
========================================= */

.error-section { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; text-align: center; }
.error-content { max-width: 500px; }
.error-code { font-size: 5rem; font-family: var(--font-heading); font-weight: 800; line-height: 1; margin-bottom: 16px; display: block; color: var(--accent-primary); }

/* =========================================
   Empty State
========================================= */

.empty-state { text-align: center; padding: 64px 40px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--text-secondary); }
.empty-state p { color: var(--text-muted); }

/* =========================================
   Styled List
========================================= */

.styled-list li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: 0.93rem; color: var(--text-secondary); }
.styled-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-primary); font-weight: 700; }

/* =========================================
   Responsive
========================================= */

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .hero-title { font-size: 2.4rem; }
    .page-header h1 { font-size: 2rem; }
    .section-title { font-size: 1.7rem; }
    .layout-sidebar { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer-content { grid-template-columns: 1fr; gap: 32px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .product-detail-layout { grid-template-columns: 1fr; }

    .nav-links {
        position: fixed; top: 66px; left: 0; right: 0;
        background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
        flex-direction: column; align-items: stretch; padding: 16px;
        border-bottom: 1px solid var(--border-color); gap: 4px;
        transform: translateY(-120%); transition: transform 0.3s ease;
        z-index: 999; display: flex; box-shadow: var(--shadow-md);
    }
    .nav-links.open { transform: translateY(0); }
    .nav-user { display: none; }
    .nav-links a { display: block; padding: 12px 16px; border-radius: var(--radius-sm); text-align: left; color: var(--text-secondary); font-weight: 500; }
    .nav-links a:hover { background: var(--accent-light); color: var(--accent-primary); }
    .nav-actions > a.btn { display: none; }
    .mobile-only { display: block; }
    .nav-links .mobile-cta { background: var(--accent-primary); color: #fff; text-align: center; margin-top: 8px; border-radius: var(--radius-sm); }
}

.mobile-only { display: none; }
