@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1B2A4A;
  --primary-dark: #142038;
  --accent: #C85A1A;
  --accent-hover: #A84A12;
  --accent-light: #FEF3EC;
  --bg: #F5F6FA;
  --bg-sidebar: #F8F9FC;
  --white: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --border: #E2E8F0;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --font: 'Inter', sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-full: 50px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --transition: all 0.25s ease;
  --header-height: 60px;
  --sidebar-width: 240px;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button, input { font-family: var(--font); }

/* Typography */
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--primary); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--primary); }
h3 { font-size: 1.25rem; font-weight: 600; }
.label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.text-muted { color: var(--text-muted); }

/* Layout */
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.main-wrapper { display: flex; flex: 1; margin-top: var(--header-height); }
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 24px 32px;
    transition: var(--transition);
}

/* ===================== HEADER ===================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    transition: var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-top-row { display: contents; }

.header-left {
    display: flex;
    align-items: center;
    width: calc(var(--sidebar-width) - 24px);
    flex-shrink: 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
}
.logo-icon { font-size: 20px; }

/* Search bar — centered, wider */
.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}
.search-form {
    width: 80%;
    max-width: 700px;
    position: relative;
    display: flex;
}
.search-icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.search-input {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 36px;
    border: 1px solid var(--border);
    border-radius: 6px 0 0 6px;
    outline: none;
    font-size: 14px;
    transition: var(--transition);
}
.search-input:focus { border-color: var(--accent); }
.search-btn {
    height: 40px;
    width: 48px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    font-size: 16px;
}
.search-btn:hover { background: var(--accent-hover); }

.search-dropdown {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1001;
}
.search-dropdown.active { display: block; }
.search-result-item {
    display: flex; align-items: center;
    padding: 12px; border-bottom: 1px solid var(--border); gap: 12px;
}
.search-result-item:hover { background: var(--bg); }
.search-result-img {
    width: 40px; height: 40px;
    background: var(--bg); border-radius: 4px;
    object-fit: cover;
}
.search-result-info { flex: 1; }
.search-result-name { font-size: 13px; font-weight: 500; }
.search-result-price { font-size: 13px; font-weight: 700; color: var(--primary); }
.search-view-all {
    display: block; padding: 12px; text-align: center;
    font-size: 13px; color: var(--accent); font-weight: 500;
}
.search-view-all:hover { background: var(--accent-light); }

/* Header right — NO nav links, only icons */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}
.icon-btn {
    position: relative;
    font-size: 20px;
    color: var(--primary);
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}
.icon-btn:hover { color: var(--accent); }
.badge {
    position: absolute;
    top: -4px; right: -6px;
    background: var(--danger);
    color: var(--white);
    font-size: 10px; font-weight: 700;
    min-width: 16px; height: 16px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}
.badge.orange { background: var(--accent); }
.mobile-toggle {
    display: none;
    font-size: 24px;
    color: var(--primary);
    background: none; border: none; cursor: pointer;
}

/* ===================== SIDEBAR ===================== */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0; bottom: 0;
    width: var(--sidebar-width);
    background: #ffffff;
    border-right: 1px solid var(--border);
    box-shadow: 2px 0 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    z-index: 900;
    transition: width 0.3s ease;
    overflow: hidden;
}

.sidebar-top {
    background: var(--primary);
    padding: 16px 20px;
    border-bottom: none;
    flex-shrink: 0;
}
.sidebar-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.sidebar-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.sidebar-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
    white-space: nowrap;
}
.sidebar-collapse-btn {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #ffffff;
    transition: var(--transition);
    flex-shrink: 0;
}
.sidebar-collapse-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.3);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
    background: #ffffff;
}
.sidebar-nav ul { padding: 0; margin: 0; list-style: none; }

/* Section title inside sidebar */
.sidebar-section-title {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 16px 4px;
    background: var(--primary);
    white-space: nowrap;
    overflow: hidden;
}

/* Sidebar links */
.sidebar-link,
.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    text-decoration: none;
}
.sidebar-link i,
.sidebar-nav-link i {
    font-size: 20px;
    color: var(--primary);
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.2s;
}
.sidebar-link .link-text,
.sidebar-nav-link .link-text {
    font-size: 14px;
    transition: opacity 0.2s ease;
}
.sidebar-link:hover,
.sidebar-nav-link:hover {
    background: #f0f4ff;
    border-left-color: var(--accent);
    color: var(--primary);
}
.sidebar-link:hover i,
.sidebar-nav-link:hover i {
    color: var(--accent);
}
.sidebar-link.active,
.sidebar-nav-link.active {
    background: #f0f4ff;
    border-left-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}
.sidebar-link.active i,
.sidebar-nav-link.active i {
    color: var(--primary);
}

.sidebar-bottom {
    padding: 16px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.btn-quick-order {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
}
.btn-quick-order:hover { background: var(--primary-dark); }

/* ===== COLLAPSED SIDEBAR ===== */
.sidebar.collapsed { width: 64px; }

.sidebar.collapsed .sidebar-top { padding: 12px; }
.sidebar.collapsed .sidebar-title-row > div:first-child { display: none; }
.sidebar.collapsed .sidebar-title-row { justify-content: center; }
.sidebar.collapsed .sidebar-collapse-btn i { transform: rotate(180deg); }

.sidebar.collapsed .sidebar-section-title { display: none; }

.sidebar.collapsed .sidebar-link,
.sidebar.collapsed .sidebar-nav-link {
    justify-content: center;
    padding: 14px 0;
    border-left: none;
    gap: 0;
}
.sidebar.collapsed .sidebar-link i,
.sidebar.collapsed .sidebar-nav-link i {
    font-size: 22px;
    width: auto;
}
.sidebar.collapsed .sidebar-link .link-text,
.sidebar.collapsed .sidebar-nav-link .link-text {
    display: none;
}
.sidebar.collapsed .sidebar-link:hover,
.sidebar.collapsed .sidebar-nav-link:hover {
    border-left: none;
    background: #f0f4ff;
}
.sidebar.collapsed .sidebar-bottom { padding: 8px; }
.sidebar.collapsed .btn-quick-order { padding: 10px; font-size: 18px; }
.sidebar.collapsed .btn-quick-order .link-text { display: none; }

/* Tooltip on hover when collapsed */
.sidebar.collapsed .sidebar-link::after,
.sidebar.collapsed .sidebar-nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
/* Tooltip arrow */
.sidebar.collapsed .sidebar-link::before,
.sidebar.collapsed .sidebar-nav-link::before {
    content: '';
    position: absolute;
    left: calc(100% + 2px);
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: var(--primary);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
}
.sidebar.collapsed .sidebar-link:hover::after,
.sidebar.collapsed .sidebar-link:hover::before,
.sidebar.collapsed .sidebar-nav-link:hover::after,
.sidebar.collapsed .sidebar-nav-link:hover::before {
    opacity: 1;
}

/* Content shift when collapsed */
body.sidebar-collapsed .main-content { margin-left: 64px; }
body.sidebar-collapsed .site-footer { margin-left: 64px; }

/* No Sidebar */
body.no-sidebar .sidebar { display: none !important; }
body.no-sidebar .main-content { margin-left: 0 !important; }
body.no-sidebar .site-footer { margin-left: 0 !important; }

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: 6px;
    font-weight: 600; font-size: 14px;
    cursor: pointer; border: none;
    transition: var(--transition); gap: 8px;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline-white { background: transparent; color: var(--white); border: 1px solid var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }
.btn-outline { background: var(--white); color: var(--primary); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-block { width: 100%; }

/* ===================== HERO ===================== */
.hero-card {
    background: var(--primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    min-height: 400px;
    margin-bottom: 32px;
}
.hero-content { width: 55%; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.hero-badge {
    display: inline-block; padding: 4px 12px;
    border: 1px solid var(--accent); color: var(--accent);
    background: var(--white); font-size: 11px; text-transform: uppercase;
    border-radius: var(--radius-full); font-weight: 700;
    margin-bottom: 20px; align-self: flex-start;
}
.hero-title { color: var(--white); margin-bottom: 16px; }
.hero-desc { color: rgba(255,255,255,0.7); margin-bottom: 32px; font-size: 15px; max-width: 500px; }
.hero-actions { display: flex; gap: 16px; }
.hero-image-area {
    width: 45%;
    background: linear-gradient(135deg, rgba(20,32,56,0.4) 0%, rgba(20,32,56,0.9) 100%),
                repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,0.05) 40px, rgba(255,255,255,0.05) 41px),
                repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.05) 40px, rgba(255,255,255,0.05) 41px);
    background-color: var(--primary-dark);
}

/* ===================== SECTIONS ===================== */
.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.section-title { font-size: 20px; color: var(--primary); font-weight: 700; }
.section-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.link-accent { color: var(--accent); font-weight: 500; font-size: 14px; }
.link-accent:hover { text-decoration: underline; }

/* Category Grid */
.category-card { background: var(--white); padding: 24px; border-radius: var(--radius-lg); margin-bottom: 32px; }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.category-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.category-icon-box {
    width: 56px; height: 56px;
    border: 1px solid var(--border); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--primary); transition: var(--transition);
}
.category-item:hover .category-icon-box { border-color: var(--accent); color: var(--accent); }
.category-name { font-size: 13px; font-weight: 500; color: var(--text-muted); }

/* ===================== PRODUCT GRID ===================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex; flex-direction: column;
    transition: var(--transition);
    position: relative;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-image {
    height: 160px; background: var(--bg);
    border-radius: 6px; margin-bottom: 16px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-image i { font-size: 48px; color: var(--border); }
.product-badge {
    position: absolute; top: 24px; left: 24px;
    background: var(--white); color: var(--accent);
    border: 1px solid var(--accent);
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    padding: 2px 8px; border-radius: var(--radius-full);
}
.product-badge.available    { background: #dcfce7; color: #16a34a; border-color: #16a34a; }
.product-badge.low-stock    { background: #fef3c7; color: #d97706; border-color: #d97706; }
.product-badge.out-of-stock { background: #fee2e2; color: #dc2626; border-color: #dc2626; }

.product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; }
.stars { color: var(--warning); }
.rating-count { color: var(--text-muted); }
.product-title {
    font-size: 14px; font-weight: 600; color: var(--text);
    margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; height: 44px;
}
.product-cat { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.product-price { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 16px; margin-top: auto; }
.price-unit { font-size: 13px; font-weight: 400; color: var(--text-muted); }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 40px; }
.trust-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; align-items: flex-start; gap: 20px; }
.trust-icon { font-size: 40px; color: var(--primary); }
.trust-info h3 { font-size: 16px; margin-bottom: 8px; color: var(--text); }
.trust-info p { font-size: 13px; color: var(--text-muted); }

/* Newsletter */
.newsletter-section { background: var(--primary-dark); padding: 60px 24px; text-align: center; margin: 0 -32px; }
.newsletter-title { color: var(--white); font-size: 24px; margin-bottom: 24px; }
.newsletter-title span { color: var(--accent); }
.newsletter-form { display: flex; max-width: 500px; margin: 0 auto; position: relative; }
.newsletter-input { flex: 1; height: 48px; padding: 0 20px; border: none; border-radius: 6px 0 0 6px; font-size: 14px; outline: none; }
.newsletter-btn { height: 48px; padding: 0 24px; background: var(--accent); color: var(--white); border: none; border-radius: 0 6px 6px 0; font-weight: 600; cursor: pointer; }
.newsletter-btn:hover { background: var(--accent-hover); }
.newsletter-success { color: var(--success); margin-top: 16px; font-weight: 500; display: none; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--primary); color: var(--white); margin-left: var(--sidebar-width); padding-top: 40px; transition: var(--transition); }
.footer-top { padding: 0 32px 32px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 32px; }
.footer-logo { color: var(--white); font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.footer-social { display: flex; gap: 16px; }
.social-link { width: 36px; height: 36px; border: 1px solid var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); }
.social-link:hover { border-color: var(--accent); color: var(--accent); background: var(--white); }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; padding: 0 32px 40px; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-links a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom { display: flex; justify-content: space-between; padding: 20px 32px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: rgba(255,255,255,0.5); }

/* Toast */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; }
.toast { background: var(--white); border-left: 4px solid var(--success); box-shadow: var(--shadow-lg); padding: 16px; border-radius: 4px; display: flex; align-items: center; gap: 12px; min-width: 300px; animation: slideIn 0.3s ease forwards; color: var(--text); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast i { color: var(--success); font-size: 20px; }

/* Mobile Overlay */
.mobile-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; }
.mobile-overlay.active { display: block; }
.mobile-sidebar { position: fixed; top: 0; left: -280px; bottom: 0; width: 280px; background: var(--bg-sidebar); z-index: 1001; transition: var(--transition); display: flex; flex-direction: column; }
.mobile-sidebar.active { left: 0; }
.mobile-sidebar-header { padding: 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.mobile-close { background: none; border: none; font-size: 24px; color: var(--text); cursor: pointer; }

/* ===================== PHASE 2 ===================== */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { color: var(--accent); }
.page-header { margin-bottom: 32px; }
.page-header h1 { font-size: 28px; margin-bottom: 8px; }
.page-header p { color: var(--text-muted); font-size: 15px; }

/* Shop Layout */
.shop-container { display: flex; gap: 32px; }
.shop-sidebar { width: 220px; flex-shrink: 0; }
.shop-main { flex: 1; }

/* Filter Bar */
.filter-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 24px; }
.filter-info { font-size: 14px; color: var(--text-muted); }
.filter-actions { display: flex; align-items: center; gap: 16px; }
.sort-select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 4px; font-family: var(--font); font-size: 13px; outline: none; }
.view-toggles { display: flex; gap: 8px; }
.view-btn { background: none; border: none; font-size: 18px; color: var(--text-muted); cursor: pointer; }
.view-btn.active { color: var(--primary); }

/* Shop Sidebar Filters */
.filter-group { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.filter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.filter-header h3 { font-size: 15px; color: var(--text); }
.filter-header h4 { font-size: 13px; color: var(--text); font-weight: 600; margin: 0; }
.clear-filters { font-size: 12px; color: var(--accent); }
.filter-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); margin-bottom: 12px; cursor: pointer; }
.filter-label input[type="radio"], .filter-label input[type="checkbox"] { accent-color: var(--primary); width: 16px; height: 16px; }
.price-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.price-inputs input { width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; }

/* Category Dropdown */
.cat-dropdown-wrap { position: relative; width: 100%; }
.cat-dropdown-btn {
    display: flex; align-items: center; padding: 9px 12px;
    border: 1px solid var(--border); border-radius: 6px;
    cursor: pointer; font-size: 13px; font-weight: 500;
    background: #fff; transition: border-color .2s; user-select: none;
}
.cat-dropdown-btn:hover { border-color: var(--primary); }
.cat-dropdown-menu {
    display: none; position: absolute; top: calc(100% + 4px);
    left: 0; right: 0; background: #fff;
    border: 1px solid var(--border); border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 999; overflow: hidden;
}
.cat-dropdown-menu.open { display: block; }
.cat-search-wrap { padding: 8px; border-bottom: 1px solid var(--border); }
.cat-search-wrap input { width: 100%; padding: 7px 10px; border: 1px solid var(--border); border-radius: 5px; font-size: 13px; outline: none; }
.cat-search-wrap input:focus { border-color: var(--primary); }
.cat-list { max-height: 260px; overflow-y: auto; }
.cat-item { display: block; padding: 9px 14px; font-size: 13px; color: var(--text); text-decoration: none; transition: background .15s; border-bottom: 1px solid #f5f5f5; }
.cat-item:hover { background: #f0f4ff; color: var(--primary); }
.cat-item.active { background: var(--primary); color: #fff; }

/* Filter badges */
.badge-filter { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-filter.green  { background: #dcfce7; color: #16a34a; }
.badge-filter.orange { background: #fef3c7; color: #d97706; }
.badge-filter.red    { background: #fee2e2; color: #dc2626; }

/* Disabled button */
.btn-disabled { background: #e5e7eb !important; color: #9ca3af !important; cursor: not-allowed !important; border-color: #e5e7eb !important; }

/* Product Card Wishlist */
.product-card .wishlist-btn { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; background: var(--white); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); cursor: pointer; z-index: 2; transition: var(--transition); }
.product-card .wishlist-btn:hover { color: var(--danger); border-color: var(--danger); }
.product-card .product-title:hover { color: var(--primary); }

/* List View */
.product-grid.list-view { display: flex; flex-direction: column; gap: 16px; }
.product-grid.list-view .product-card { flex-direction: row; gap: 24px; padding: 24px; }
.product-grid.list-view .product-image { width: 200px; height: 200px; margin-bottom: 0; flex-shrink: 0; }
.product-grid.list-view .product-info-wrap { flex: 1; display: flex; flex-direction: column; }
.product-grid.list-view .product-title { font-size: 18px; height: auto; -webkit-line-clamp: 3; }
.product-grid.list-view .product-action-wrap { width: 200px; flex-shrink: 0; display: flex; flex-direction: column; border-left: 1px solid var(--border); padding-left: 24px; }
.product-grid.list-view .product-desc { display: block; font-size: 14px; color: var(--text-muted); margin-top: 12px; }
.product-desc { display: none; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.page-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 14px; font-weight: 500; color: var(--text); border: 1px solid transparent; }
.page-btn:hover { background: var(--bg); }
.page-btn.active { background: var(--primary); color: var(--white); }

/* ===================== PRODUCT DETAIL ===================== */
.product-detail-container { display: flex; gap: 48px; margin-bottom: 60px; }
.product-gallery { width: 50%; }
.product-main-img { width: 100%; aspect-ratio: 1; background: var(--white); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; overflow: hidden; cursor: zoom-in; }
.product-main-img i { font-size: 120px; color: var(--border); transition: transform 0.3s ease; }
.product-main-img:hover i { transform: scale(1.2); }
.product-thumbnails { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.thumbnail { aspect-ratio: 1; background: var(--white); border: 1px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 32px; color: var(--border); }
.thumbnail.active { border-color: var(--primary); }
.product-info { width: 50%; }
.badge-outline { display: inline-block; padding: 4px 12px; border: 1px solid var(--accent); color: var(--accent); font-size: 11px; text-transform: uppercase; border-radius: var(--radius-full); font-weight: 700; margin-bottom: 16px; }
.product-detail-title { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.product-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; font-size: 14px; color: var(--text-muted); }
.pricing-box { border: 1px solid var(--border); border-radius: 8px; padding: 24px; margin-bottom: 32px; background: var(--white); }
.unit-price-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.large-price { font-size: 32px; font-weight: 800; color: var(--primary); display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.large-price .price-unit { font-size: 16px; font-weight: 500; }
.bulk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bulk-table th, .bulk-table td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; }
.bulk-table th { color: var(--text-muted); font-weight: 500; }
.bulk-table .savings { color: var(--success); font-weight: 600; }
.action-row { display: flex; gap: 16px; margin-bottom: 16px; }
.qty-selector { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 6px; height: 48px; background: var(--white); }
.qty-btn { width: 40px; height: 100%; background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text); }
.qty-input { width: 50px; height: 100%; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-size: 16px; font-weight: 600; }
.btn-large { height: 48px; flex: 1; font-size: 16px; }
.wishlist-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 14px; font-weight: 500; }
.wishlist-link:hover { color: var(--danger); }

/* Tabs */
.product-tabs { margin-bottom: 60px; }
.tab-nav { display: flex; gap: 32px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab-btn { background: none; border: none; padding: 12px 0; font-size: 15px; font-weight: 600; color: var(--text-muted); cursor: pointer; position: relative; }
.tab-btn.active { color: var(--primary); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: var(--primary); }
.tab-content { display: none; font-size: 15px; color: var(--text); }
.tab-content.active { display: block; }
.specs-table { width: 100%; max-width: 600px; border-collapse: collapse; }
.specs-table td { padding: 12px; border-bottom: 1px solid var(--border); }
.specs-table td:first-child { font-weight: 600; color: var(--text-muted); width: 40%; }

/* ===================== CART ===================== */
.cart-layout { display: flex; gap: 32px; }
.cart-items { width: 65%; }
.cart-summary { width: 35%; }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.cart-table th { text-align: left; padding: 16px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-weight: 600; font-size: 13px; text-transform: uppercase; }
.cart-table td { padding: 24px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-product-info { display: flex; align-items: center; gap: 16px; }
.cart-img { width: 80px; height: 80px; background: var(--bg); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--border); }
.cart-item-name { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.cart-item-meta { font-size: 12px; color: var(--text-muted); }
.row-total { font-weight: 700; font-size: 16px; color: var(--primary); }
.remove-btn { color: var(--text-muted); background: none; border: none; font-size: 18px; cursor: pointer; }
.remove-btn:hover { color: var(--danger); }
.cart-actions { display: flex; justify-content: space-between; }
.summary-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 24px; position: sticky; top: calc(var(--header-height) + 24px); }
.summary-card h3 { margin-bottom: 24px; font-size: 18px; }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 14px; color: var(--text); }
.summary-total { display: flex; justify-content: space-between; margin: 24px 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 20px; font-weight: 800; color: var(--primary); }
.promo-code { display: flex; margin-bottom: 24px; }
.promo-input { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 4px 0 0 4px; outline: none; }
.promo-btn { padding: 10px 16px; background: var(--bg); border: 1px solid var(--border); border-left: none; border-radius: 0 4px 4px 0; cursor: pointer; font-weight: 600; }
.security-badges { display: flex; justify-content: center; gap: 16px; margin-top: 24px; font-size: 12px; color: var(--text-muted); }
.empty-cart { text-align: center; padding: 60px 0; }
.empty-cart i { font-size: 80px; color: var(--border); margin-bottom: 24px; }

/* ===================== CHECKOUT ===================== */
.checkout-layout { display: flex; gap: 40px; }
.checkout-form-area { width: 60%; }
.checkout-summary-area { width: 40%; }
.progress-bar { display: flex; align-items: center; margin-bottom: 40px; }
.progress-step { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.progress-step.active { color: var(--primary); }
.progress-line { flex: 1; height: 2px; background: var(--border); margin: 0 16px; }
.checkout-section { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 32px; margin-bottom: 24px; }
.checkout-section h2 { font-size: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-input { padding: 12px; border: 1px solid var(--border); border-radius: 6px; font-family: var(--font); font-size: 14px; outline: none; }
.form-input:focus { border-color: var(--accent); }
.radio-card { display: flex; align-items: center; justify-content: space-between; padding: 16px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 12px; cursor: pointer; }
.radio-card:hover { border-color: var(--primary); }
.radio-card input { accent-color: var(--primary); }
.mini-product-list { margin-bottom: 24px; }
.mini-product { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
.mini-product-name { display: flex; align-items: center; gap: 12px; }

/* ===================== LOGIN ===================== */
.login-container { display: flex; justify-content: center; padding: 40px 0; }
.login-card { width: 100%; max-width: 500px; background: var(--white); border-radius: 8px; box-shadow: var(--shadow-lg); overflow: hidden; }
.login-tabs { display: flex; background: var(--bg); }
.login-tab { flex: 1; padding: 20px; text-align: center; font-weight: 600; cursor: pointer; color: var(--text-muted); border-bottom: 2px solid transparent; }
.login-tab.active { color: var(--primary); background: var(--white); border-bottom-color: var(--accent); }
.login-form-area { padding: 40px; }
.login-form { display: none; }
.login-form.active { display: block; }
.form-options { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 24px; }
.password-wrap { position: relative; }
.password-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; }

/* ===================== ABOUT ===================== */
.about-hero { background: var(--primary); color: var(--white); padding: 80px 24px; text-align: center; margin: -24px -32px 40px; }
.about-hero h1 { color: var(--white); margin-bottom: 16px; }
.about-hero p { font-size: 18px; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto; }
.mission-section { display: flex; gap: 48px; align-items: center; margin-bottom: 80px; }
.mission-text { flex: 1; }
.mission-stats { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stat-card { background: var(--white); padding: 32px 24px; border-radius: 8px; text-align: center; border: 1px solid var(--border); }
.stat-number { font-size: 36px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.stat-label { font-size: 14px; font-weight: 600; color: var(--text); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 80px; }
.value-card { text-align: center; padding: 40px 24px; background: var(--white); border-radius: 8px; border: 1px solid var(--border); }
.value-icon { font-size: 48px; color: var(--primary); margin-bottom: 24px; }
.industries-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 80px; }
.industry-card { text-align: center; padding: 24px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; }
.industry-card i { font-size: 32px; color: var(--primary); margin-bottom: 12px; }
.industry-card span { display: block; font-size: 13px; font-weight: 500; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 80px; }
.team-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; text-align: center; }
.team-img { height: 200px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 48px; color: var(--border); }
.team-info { padding: 20px; }
.about-cta { text-align: center; padding: 60px 24px; background: var(--bg-sidebar); border-radius: 8px; margin-bottom: 40px; }

/* ===================== PHASE 3 ===================== */
.tracking-layout { display: flex; gap: 32px; }
.tracking-col { flex: 1; }
.tracking-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.tracking-card-header { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.tracking-card-header i { color: var(--primary); }
.tracking-status-header { position: relative; margin-bottom: 32px; }
.status-label-small { font-size: 11px; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 8px; letter-spacing: 0.5px; }
.status-line { font-size: 22px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.status-line i { color: var(--accent); }
.status-est { font-size: 14px; color: var(--text-muted); }
.order-id-badge { position: absolute; top: 0; right: 0; background: var(--primary); color: var(--white); padding: 4px 12px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; }
.progress-horizontal { display: flex; justify-content: space-between; position: relative; margin: 40px 0; }
.progress-horizontal::before { content: ''; position: absolute; top: 16px; left: 20px; right: 20px; height: 2px; background: var(--border); z-index: 1; }
.progress-horizontal::after { content: ''; position: absolute; top: 16px; left: 20px; width: 66%; height: 2px; background: var(--primary); z-index: 1; transition: width 1s ease; }
.step-item { position: relative; z-index: 2; text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; }
.step-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: var(--text-muted); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; font-size: 14px; border: 2px solid var(--white); transition: var(--transition); }
.step-item.completed .step-icon { background: var(--primary); color: var(--white); }
.step-item.active .step-icon { background: var(--primary); color: var(--white); box-shadow: 0 0 0 4px rgba(27,42,74,0.2); animation: pulseGlow 2s infinite; }
@keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(27,42,74,0.4); } 70% { box-shadow: 0 0 0 10px rgba(27,42,74,0); } 100% { box-shadow: 0 0 0 0 rgba(27,42,74,0); } }
.step-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.step-time { font-size: 11px; color: var(--text-muted); }
.update-box { background: #F0F4FF; border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.update-box i { color: var(--primary); font-size: 18px; margin-top: 2px; }
.recent-orders-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
.recent-order-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: relative; cursor: pointer; transition: var(--transition); }
.recent-order-card:hover { border-color: var(--primary); }
.recent-order-header { display: flex; justify-content: space-between; margin-bottom: 12px; }
.recent-order-date { font-size: 12px; color: var(--text-muted); }
.status-pill-green { background: rgba(16,185,129,0.1); color: var(--success); padding: 2px 8px; border-radius: var(--radius-full); font-size: 11px; font-weight: 600; }
.recent-order-id { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.recent-order-meta { font-size: 14px; display: flex; align-items: center; gap: 12px; }

/* Support */
.support-layout { display: flex; height: calc(100vh - var(--header-height)); margin: -24px -32px; border-top: 1px solid var(--border); }
.support-sidebar { width: 340px; background: var(--white); border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.support-sidebar-header { padding: 20px; border-bottom: 1px solid var(--border); }
.support-sidebar-header h2 { font-size: 18px; margin-bottom: 16px; }
.search-pill { background: var(--bg); border-radius: var(--radius-full); display: flex; align-items: center; padding: 8px 16px; margin-bottom: 16px; }
.search-pill input { border: none; background: transparent; width: 100%; margin-left: 8px; outline: none; font-size: 13px; }
.filter-tabs-pill { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.filter-tabs-pill::-webkit-scrollbar { display: none; }
.filter-pill { padding: 4px 12px; border: 1px solid var(--border); border-radius: var(--radius-full); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.filter-pill.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.conversation-list { flex: 1; overflow-y: auto; }
.conversation-item { display: flex; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); cursor: pointer; transition: var(--transition); border-left: 3px solid transparent; }
.conversation-item:hover { background: var(--bg); }
.conversation-item.active { background: #F0F4FF; border-left-color: var(--primary); }
.avatar-circle { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.avatar-circle.gray { background: var(--border); color: var(--text-muted); }
.conv-content { flex: 1; min-width: 0; }
.conv-header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.conv-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-time { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.conv-preview { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; margin-top: 4px; }
.chat-panel { flex: 1; display: flex; flex-direction: column; background: var(--bg); }
.chat-header { padding: 16px 24px; background: var(--white); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.chat-agent-info { display: flex; align-items: center; gap: 12px; }
.chat-agent-name { font-size: 16px; font-weight: 600; }
.chat-agent-status { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.status-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; }
.chat-messages { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.date-separator { text-align: center; margin: 16px 0; }
.date-separator span { background: var(--border); color: var(--text-muted); padding: 4px 12px; border-radius: var(--radius-full); font-size: 12px; }
.message-row { display: flex; gap: 12px; max-width: 80%; }
.message-row.user { align-self: flex-end; flex-direction: row-reverse; }
.message-bubble { background: var(--white); border: 1px solid var(--border); padding: 16px; border-radius: 12px 12px 12px 4px; font-size: 14px; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.message-row.user .message-bubble { background: var(--primary); color: var(--white); border-color: var(--primary); border-radius: 12px 12px 4px 12px; }
.message-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.message-row.user .message-time { text-align: right; }
.chat-input-area { padding: 16px 24px; background: var(--white); border-top: 1px solid var(--border); }
.chat-input-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.chat-input-bar input { flex: 1; height: 48px; border: none; outline: none; font-size: 14px; }
.chat-disclaimer { text-align: center; font-size: 12px; color: var(--text-muted); }

/* Account */
.account-layout { display: flex; gap: 32px; }
.account-sidebar { width: 240px; flex-shrink: 0; }
.account-main { flex: 1; }
.user-profile-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.user-profile-summary .avatar-circle { width: 48px; height: 48px; font-size: 20px; }
.account-nav-title { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.account-nav-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.account-nav-list a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 6px; color: var(--text); font-size: 14px; font-weight: 500; }
.account-nav-list a:hover { background: var(--white); color: var(--primary); }
.notification-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.time-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin: 24px 0 16px; }
.notification-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 20px; display: flex; gap: 16px; margin-bottom: 16px; position: relative; border-left: 3px solid transparent; }
.notification-card.unread { border-left-color: var(--primary); background: #F8FAFF; }
.notif-icon { width: 40px; height: 40px; border-radius: 6px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text-muted); flex-shrink: 0; }
.notif-icon.orange { background: var(--accent-light); color: var(--accent); }
.notif-content { flex: 1; }
.notif-top { display: flex; justify-content: space-between; margin-bottom: 8px; }
.notif-title { font-weight: 600; font-size: 15px; }
.notif-time { font-size: 12px; color: var(--text-muted); }
.notif-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.notif-desc strong { color: var(--primary); }
.notif-dismiss { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-muted); cursor: pointer; opacity: 0; transition: var(--transition); }
.notification-card:hover .notif-dismiss { opacity: 1; }

/* Bottom Nav */
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); z-index: 1000; padding: 8px 0; justify-content: space-around; }
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--primary); font-size: 10px; font-weight: 500; text-decoration: none; }
.bottom-nav-item i { font-size: 20px; }
.bottom-nav-item.active { color: var(--accent); }

/* Dropdown (notifications) */
.dropdown-wrapper { position: relative; display: inline-block; }
.dropdown-menu { position: absolute; right: -10px; top: 100%; width: 320px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.15); border-radius: 8px; z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.2s; }
.dropdown-wrapper:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-header { padding: 12px 16px; border-bottom: 1px solid var(--border); background: #f8fafc; border-radius: 8px 8px 0 0; }
.dropdown-header h4 { margin: 0; font-size: 14px; font-weight: 600; color: var(--text); }
.dropdown-body { max-height: 350px; overflow-y: auto; }
.notification-item { transition: background 0.2s; cursor: pointer; text-decoration: none; color: inherit; }
.notification-item:hover { background: #f1f5f9; }
.notification-item.unread { background: #eff6ff; }

/* Search dropdown styles */
.search-loading { padding: 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
.search-no-result { padding: 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
.search-highlight { color: var(--accent); font-weight: 700; }
.search-result-img-placeholder { width: 44px; height: 44px; background: #f5f5f5; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #ccc; flex-shrink: 0; font-size: 20px; }

/* Category Slider */
.category-slider-wrapper { overflow: hidden; width: 100%; }
.category-slider { display: flex; gap: 0; transition: transform 0.4s ease; padding: 8px 0; align-items: flex-start; }
.category-slider .category-item { min-width: 130px; max-width: 130px; flex-shrink: 0; text-align: center; padding: 8px; }
.category-slider .category-icon-box { width: 64px; height: 64px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; }
.category-slider .category-name { font-size: 12px; line-height: 1.3; word-break: break-word; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
    .product-detail-container, .cart-layout, .checkout-layout, .mission-section, .tracking-layout, .account-layout { flex-direction: column; }
    .product-gallery, .product-info, .cart-items, .cart-summary, .checkout-form-area, .checkout-summary-area, .tracking-col, .account-sidebar, .account-main { width: 100%; }
    .shop-container { flex-direction: column; }
    .shop-sidebar { width: 100%; }
    .values-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .industries-grid { grid-template-columns: repeat(3, 1fr); }
    .account-sidebar { display: flex; overflow-x: auto; padding-bottom: 8px; gap: 16px; }
    .account-sidebar::-webkit-scrollbar { display: none; }
    .user-profile-summary { margin-bottom: 0; min-width: max-content; }
    .account-nav-list { flex-direction: row; margin-bottom: 0; }
    .account-nav-list a { white-space: nowrap; }
    .support-layout { margin: -16px; }
    .support-sidebar { width: 100%; border-right: none; }
    .chat-panel { display: none; }
    .chat-panel.active-mobile { display: flex; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 100; }
    .hero-content { padding: 40px; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    body { padding-bottom: 60px; }
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding: 16px; }
    .site-footer { margin-left: 0; padding-bottom: 80px; }
    .site-header { height: auto; flex-direction: column; padding: 12px 16px; gap: 12px; }
    .header-top-row { width: 100%; display: flex; justify-content: space-between; align-items: center; }
    .mobile-toggle { display: block; }
    .header-left { width: auto; }
    .header-center { width: 100%; }
    .search-form { width: 100%; max-width: 100%; }
    .header-link, .desktop-only { display: none; }
    .hero-card { flex-direction: column; }
    .hero-content, .hero-image-area { width: 100%; }
    .hero-image-area { height: 200px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .newsletter-section { margin: 0 -16px; }
    .bottom-nav { display: flex; }
    .account-sidebar { display: none; }
    .tracking-layout { flex-direction: column; }
    .progress-horizontal { display: none; }
    .recent-orders-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-actions { flex-direction: column; }
}