/**
 * HoreX Marketplace - Global Styles
 * HoreX Design System Implementation
 */

/* ═══════════════════════════════════════════════════════════════════
   CSS VARIABLES (HoreX Design Tokens)
   ═══════════════════════════════════════════════════════════════════ */

:root {
    /* Primary Colors */
    --color-primary: #2563eb;
    --color-primary-light: #3b82f6;
    --color-primary-dark: #1d4ed8;

    /* Semantic Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;

    /* Neutrals */
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-text: #0f172a;
    --color-text-secondary: #64748b;
    --color-text-muted: #94a3b8;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 12px;
    --font-size-sm: 13px;
    --font-size-base: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 24px;
    --font-size-3xl: 32px;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* Layout */
    --header-height: 72px;
    --sidebar-width: 260px;
}

/* ═══════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* ═══════════════════════════════════════════════════════════════════
   GLOBAL LOADER
   ═══════════════════════════════════════════════════════════════════ */

#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#global-loader.show {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════════ */

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--color-text);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    z-index: 9999;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast.toast-error {
    background: var(--color-error);
}

.toast.toast-success {
    background: var(--color-success);
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 10px 20px;
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg);
}

.btn-success {
    background: var(--color-success);
    color: white;
}

.btn-danger {
    background: var(--color-error);
    color: white;
}

.btn-lg {
    padding: 14px 28px;
    font-size: var(--font-size-lg);
}

.btn-sm {
    padding: 6px 12px;
    font-size: var(--font-size-xs);
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER
   
   ⚠️ CSS RULE ORDER: Global styles FIRST, @media queries LAST
   This prevents mobile overrides from being overwritten by global rules.
   See: knowledge/f_and_b_design_system/artifacts/implementation/marketplace_css_conventions.md
   ═══════════════════════════════════════════════════════════════════ */

.header {
    position: sticky;
    top: 8px;
    z-index: 100;
    height: var(--header-height);
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-6);
    margin: 16px 24px -36px 24px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Header icons desktop wrapper */
.header-icons-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Burger Button - default hidden on desktop */
.burger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.15s;
}

.burger-btn:hover {
    color: #3b82f6;
    background: var(--color-bg);
}

/* Mobile Search Button - hidden on desktop */
.header-search-mobile {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.15s;
}

.header-search-mobile:hover {
    color: #3b82f6;
    background: var(--color-bg);
}

@media (max-width: 768px) {
    .header {
        margin: 8px 8px -20px 8px;
        padding: 0 var(--space-3);
        height: 60px;
    }

    .header-center {
        display: none;
    }

    .logo {
        font-size: 16px;
    }

    .header-icons-desktop {
        display: none;
    }

    .burger-btn {
        display: flex;
    }

    .header-search-mobile {
        display: flex;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.open {
    visibility: visible;
    opacity: 1;
}

.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
}

.mobile-menu.open .mobile-menu-content {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    font-size: 1.125rem;
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    border-radius: var(--radius-md);
}

.mobile-menu-close:hover {
    color: #1e293b;
    background: var(--color-bg);
}

.mobile-menu-balance {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.mobile-menu-balance svg {
    opacity: 0.8;
}

.mobile-menu-nav {
    padding: 0.5rem 0;
}

/* ═══════════════════════════════════════════════════════════════════
   MOBILE SEARCH OVERLAY
   ═══════════════════════════════════════════════════════════════════ */

.mobile-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--color-surface);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-search-overlay.open {
    transform: translateY(0);
}

.mobile-search-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.mobile-search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-bg);
    border-radius: 12px;
    padding: 12px 16px;
}

.mobile-search-icon {
    color: #94a3b8;
    flex-shrink: 0;
}

.mobile-search-input {
    flex: 1;
    border: none;
    background: none;
    font-size: 16px;
    color: var(--color-text);
    outline: none;
}

.mobile-search-input::placeholder {
    color: #94a3b8;
}

.mobile-search-cancel {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px;
}

.mobile-search-results {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.mobile-search-hint {
    color: #94a3b8;
    text-align: center;
    padding: 40px 20px;
}

.mobile-search-section {
    margin-bottom: 16px;
}

.mobile-search-section-title {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    padding: 0 4px;
}

.mobile-search-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--color-bg);
    border-radius: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--color-text);
    transition: background 0.15s;
}

.mobile-search-result:hover {
    background: #e2e8f0;
}

.mobile-search-result-icon {
    font-size: 24px;
}

.mobile-search-result-text {
    font-weight: 500;
}

.mobile-search-all {
    display: block;
    padding: 16px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: white;
    text-align: center;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 16px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: #1e293b;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.15s;
}

.mobile-menu-item:hover {
    background: var(--color-bg);
}

.mobile-menu-item svg {
    color: #64748b;
    flex-shrink: 0;
}

.mobile-badge {
    margin-left: auto;
    background: #3b82f6;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 1rem;
}

body.menu-open {
    overflow: hidden;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-text);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo:hover {
    text-decoration: none;
}

.header-center {
    flex: 1;
    max-width: 400px;
    margin: 0 var(--space-8);
}

/* Header Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 2rem;
}

.header-nav .nav-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.15s;
}

.header-nav .nav-link:hover {
    color: #1e293b;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.search-box input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    font-size: 15px;
    color: var(--color-text);
}

.search-box input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Search Dropdown Autocomplete */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    margin-top: 8px;
    z-index: 10000;
    display: none;
    overflow: hidden;
}

.search-dropdown.show {
    display: block;
}

.search-result-item {
    display: block;
    padding: 0.875rem 1rem;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.search-result-item:hover {
    background: #f8fafc;
}

.search-result-name {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.search-result-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
}

.search-result-supplier {
    color: #3b82f6;
}

.search-result-price {
    color: #64748b;
    font-weight: 500;
}

.search-result-all {
    display: block;
    padding: 0.875rem 1rem;
    text-align: center;
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    background: #f8fafc;
}

.search-result-all:hover {
    background: #f1f5f9;
}

.search-result-empty {
    padding: 1.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

.header-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
}

.header-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
}

.user-menu:hover {
    background: var(--color-bg);
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #4f46e5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--font-size-sm);
}

.user-name {
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: var(--space-6);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    display: none;
    z-index: 200;
}

.user-dropdown.show {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--color-text);
    font-size: var(--font-size-sm);
}

.user-dropdown a:hover {
    background: var(--color-bg);
    text-decoration: none;
}

/* New Header Elements - Matching Figma Design */
.logo-badge {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.header-balance {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
}

.header-balance svg {
    color: #6366f1;
}

.header-icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    border-radius: var(--radius-md);
    transition: all 0.15s;
}

.header-icon-btn:hover {
    color: #6366f1;
    background: var(--color-bg);
    text-decoration: none;
}

.icon-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: var(--color-primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.icon-badge:empty {
    width: 8px;
    height: 8px;
    min-width: 8px;
    padding: 0;
    background: #ef4444;
    top: 6px;
    right: 6px;
}

.header-icon-btn.profile-btn {
    color: var(--color-text);
}

/* ═══════════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════════ */

.layout {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

.layout.with-sidebar .main-content {
    margin-left: var(--sidebar-width);
}

.main-content {
    flex: 1;
    padding: var(--space-6);
    width: 100%;
    max-width: 100%;
}

.sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--color-surface);
    border-right: 1px solid var(--color-border);
    overflow-y: auto;
    padding: var(--space-5);
}

.sidebar-section {
    margin-bottom: var(--space-6);
}

.section-title {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
}

.category-list {
    display: flex;
    flex-direction: column;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3);
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    cursor: pointer;
}

.category-item:hover {
    background: var(--color-bg);
    color: var(--color-text);
    text-decoration: none;
}

.category-item.active {
    color: var(--color-primary);
    font-weight: 500;
}

.category-children {
    padding-left: var(--space-4);
}

.chevron {
    transition: transform 0.2s;
}

.category-item.expanded .chevron {
    transform: rotate(90deg);
}

/* ═══════════════════════════════════════════════════════════════════
   PAGE SECTIONS
   ═══════════════════════════════════════════════════════════════════ */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.page-header h1 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.page-header p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.toolbar {
    display: flex;
    gap: var(--space-3);
}

select {
    padding: 10px 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--color-text);
    cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════
   FILTER PILLS
   ═══════════════════════════════════════════════════════════════════ */

.filter-pills {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.filter-pill:hover {
    border-color: var(--color-primary-light);
    color: var(--color-text);
}

.filter-pill.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════
   PRODUCTS GRID
   ═══════════════════════════════════════════════════════════════════ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-5);
}

.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    display: block;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badges {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    display: flex;
    gap: var(--space-2);
}

.badge {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
}

.badge-halal {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.badge-featured {
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
}

.product-body {
    padding: var(--space-4);
}

.product-supplier {
    font-size: var(--font-size-xs);
    color: var(--color-primary);
    margin-bottom: var(--space-1);
}

.product-name {
    display: block;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.product-name:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.product-meta {
    display: flex;
    gap: var(--space-3);
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
}

.product-meta .in-stock {
    color: var(--color-success);
}

.product-meta .out-of-stock {
    color: var(--color-error);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    display: flex;
    flex-direction: column;
}

.price-value {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
}

.price-unit {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
}

.btn-add {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.btn-add:hover {
    background: var(--color-primary-dark);
}

.btn-add:disabled {
    background: var(--color-border);
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════════════ */

.empty-state {
    text-align: center;
    padding: var(--space-8) var(--space-4);
    color: var(--color-text-secondary);
}

.empty-state svg {
    color: var(--color-border);
    margin-bottom: var(--space-4);
}

.empty-state h2 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-2);
    color: var(--color-text);
}

.empty-state p {
    margin-bottom: var(--space-4);
}

/* ═══════════════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════════════ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    background: var(--color-bg);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--color-surface);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    color: var(--color-text);
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.auth-card h1 {
    font-size: var(--font-size-2xl);
    text-align: center;
    margin-bottom: var(--space-2);
}

.auth-card>p {
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: var(--space-2);
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    color: var(--color-text);
    transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-6);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

/* ═══════════════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE
   ═══════════════════════════════════════════════════════════════════ */

.page-product {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
}

.breadcrumb a {
    color: var(--color-text-secondary);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
}

.product-gallery {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
}

.main-image {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-4);
}

.supplier-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--color-border);
}

.supplier-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.supplier-info .verified {
    font-size: var(--font-size-xs);
    color: var(--color-success);
}

.product-info .product-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    font-size: var(--font-size-sm);
}

.product-info .product-meta span:first-child {
    color: var(--color-text-muted);
}

.price-block {
    background: var(--color-bg);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
}

.price-main {
    margin-bottom: var(--space-4);
}

.price-main .price-value {
    font-size: var(--font-size-3xl);
}

.qty-row {
    display: flex;
    gap: var(--space-4);
    align-items: center;
}

.qty-selector {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.qty-selector button {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    font-size: var(--font-size-lg);
    cursor: pointer;
    color: var(--color-text);
}

.qty-selector input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: var(--font-size-base);
    font-weight: 500;
}

.qty-selector span {
    padding-right: var(--space-3);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.product-description {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-5);
}

.product-description h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-3);
}

.product-description p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════════
   CART PAGE
   ═══════════════════════════════════════════════════════════════════ */

.page-cart h1 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-6);
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-6);
    align-items: start;
}

.cart-supplier {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-4);
    overflow: hidden;
}

.supplier-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--color-bg);
    font-weight: 500;
}

.cart-item {
    display: grid;
    grid-template-columns: 60px 1fr auto auto auto;
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.item-info {
    min-width: 0;
}

.item-name {
    font-weight: 500;
    margin-bottom: var(--space-1);
}

.item-price {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.item-qty {
    display: flex;
    align-items: center;
    background: var(--color-bg);
    border-radius: var(--radius-md);
}

.item-qty button {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: var(--font-size-lg);
}

.item-qty span {
    width: 40px;
    text-align: center;
    font-weight: 500;
}

.item-total {
    font-weight: 600;
    min-width: 80px;
    text-align: right;
}

.btn-remove {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-text-muted);
}

.btn-remove:hover {
    color: var(--color-error);
}

.supplier-subtotal {
    padding: var(--space-4);
    text-align: right;
    color: var(--color-text-secondary);
}

.cart-summary {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: var(--space-5);
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
}

.cart-summary h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-3) 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.summary-row.total {
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-3);
    padding-top: var(--space-4);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
}

/* ═══════════════════════════════════════════════════════════════════
   CHECKOUT PAGE
   ═══════════════════════════════════════════════════════════════════ */

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-6);
    align-items: start;
}

.checkout-section {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
}

.checkout-section h2 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-4);
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.address-card {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.15s;
}

.address-card.selected,
.address-card:has(input:checked) {
    border-color: var(--color-primary);
}

.address-card input {
    margin-top: 2px;
}

.checkout-section textarea {
    min-height: 100px;
    resize: vertical;
}

.checkout-summary {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: var(--space-5);
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
}

.summary-items {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-4);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    padding: var(--space-2) 0;
}

/* ═══════════════════════════════════════════════════════════════════
   ORDERS
   ═══════════════════════════════════════════════════════════════════ */

.orders-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.order-card {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    color: var(--color-text);
    transition: box-shadow 0.15s;
}

.order-card:hover {
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
}

.order-number {
    font-weight: 600;
}

.order-status,
.status-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 500;
    text-transform: capitalize;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.status-confirmed {
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
}

.status-shipped {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.status-delivered {
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-success);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
}

.order-meta {
    display: flex;
    gap: var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
}

.order-total {
    font-weight: 600;
    font-size: var(--font-size-lg);
}

.order-body {
    margin-bottom: var(--space-3);
}

.order-actions {
    display: flex;
    gap: var(--space-2);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border);
}

/* ═══════════════════════════════════════════════════════════════════
   ORDER DETAIL
   ═══════════════════════════════════════════════════════════════════ */

.back-link {
    display: inline-block;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-3);
}

.order-detail-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-6);
    align-items: start;
}

.info-section {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: var(--space-5);
    margin-bottom: var(--space-4);
}

.info-section h3 {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: var(--space-3);
}

.order-status-large {
    display: inline-block;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-transform: capitalize;
    margin-bottom: var(--space-4);
}

.action-buttons {
    display: flex;
    gap: var(--space-3);
}

.order-items {
    display: flex;
    flex-direction: column;
}

.order-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: var(--space-4);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border);
}

.order-item:last-child {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════════════════
   SUPPLIER DASHBOARD
   ═══════════════════════════════════════════════════════════════════ */

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.stat-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: var(--space-5);
    text-align: center;
}

.stat-value {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.dashboard-section {
    margin-bottom: var(--space-6);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.section-header h2 {
    font-size: var(--font-size-xl);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

th,
td {
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    background: var(--color-bg);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.filter-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-3);
}

.tab {
    padding: var(--space-2) var(--space-4);
    border: none;
    background: none;
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
}

.tab.active {
    background: var(--color-primary);
    color: white;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px var(--space-6);
    background: linear-gradient(135deg, var(--color-primary), #4f46e5);
    color: white;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-8);
}

.hero h1 {
    font-size: 40px;
    margin-bottom: var(--space-4);
}

.hero p {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: var(--space-6);
}

.hero .btn-primary {
    background: white;
    color: var(--color-primary);
}

.featured {
    margin-bottom: var(--space-8);
}

.featured h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-5);
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-4);
}

.category-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    text-align: center;
    color: var(--color-text);
    transition: all 0.2s;
}

.category-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}

.category-card h3 {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-2);
}

.category-card span {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* 404 Page */
.page-404 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-404 h1 {
    font-size: 100px;
    color: var(--color-border);
}

.page-404 p {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .layout.with-sidebar .main-content {
        margin-left: 0;
    }

    .sidebar {
        display: none;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    .cart-layout,
    .checkout-layout,
    .order-detail-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary,
    .checkout-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .header-center {
        display: none;
    }

    .user-name {
        display: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .hero {
        padding: 40px var(--space-4);
    }

    .hero h1 {
        font-size: 28px;
    }

    .cart-item {
        grid-template-columns: 50px 1fr auto;
        gap: var(--space-2);
    }

    .item-total,
    .btn-remove {
        display: none;
    }

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

@media (max-width: 480px) {
    .main-content {
        padding: var(--space-4);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .filter-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: var(--space-2);
    }

    .filter-pill {
        white-space: nowrap;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   HOMEPAGE MOBILE-FIRST COMPONENTS
   ═══════════════════════════════════════════════════════════════════ */

/* Stories */
.stories-section {
    padding: var(--space-4) 0;
    background: var(--color-surface);
    margin-bottom: var(--space-4);
}

.stories-scroll {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    padding: 0 var(--space-4);
    scrollbar-width: none;
}

.stories-scroll::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.story-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-surface);
}

.story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-title {
    font-size: 11px;
    color: var(--color-text);
    font-weight: 500;
    text-align: center;
    max-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hero Banner with Image */
.hero-banner {
    position: relative;
    height: 200px;
    margin: 0 var(--space-4) var(--space-5);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-5);
    color: white;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    margin-bottom: var(--space-2);
    width: fit-content;
    backdrop-filter: blur(4px);
}

.hero-content h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: var(--space-2);
    line-height: 1.2;
}

.hero-content p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin-bottom: var(--space-3);
}

.hero-content .btn {
    width: fit-content;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-4);
    margin-bottom: var(--space-3);
}

.section-header h2 {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.see-all {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    font-weight: 500;
}

/* Quick Categories with Images */
.quick-categories {
    margin-bottom: var(--space-5);
}

.category-scroll {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    padding: 0 var(--space-4);
    scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.quick-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
    min-width: 72px;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.quick-category:hover .category-icon {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.quick-category span {
    font-size: 11px;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Featured Section - Horizontal Scroll */
.featured-section {
    margin-bottom: var(--space-5);
}

.products-scroll {
    display: flex;
    gap: var(--space-3);
    overflow-x: auto;
    padding: 0 var(--space-4);
    scrollbar-width: none;
}

.products-scroll::-webkit-scrollbar {
    display: none;
}

/* Compact Product Card */
.product-card-compact {
    display: flex;
    flex-direction: column;
    width: 160px;
    flex-shrink: 0;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.product-card-compact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.product-image-compact {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-image-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge-mini {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.badge-mini.badge-halal {
    background: var(--color-success);
    color: white;
}

.product-info-compact {
    padding: var(--space-3);
}

.product-supplier-compact {
    font-size: 10px;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.product-name-compact {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.3;
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price-compact {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.product-price-compact strong {
    font-size: var(--font-size-base);
    color: var(--color-text);
}

.product-price-compact span {
    font-size: 10px;
    color: var(--color-text-muted);
}

/* Promo Banner */
.promo-banner {
    padding: 0 var(--space-4);
    margin-bottom: var(--space-5);
}

.promo-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    color: white;
}

.promo-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.promo-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.promo-content p {
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

.promo-icon {
    font-size: 48px;
}

/* Suppliers Section */
.suppliers-section {
    margin-bottom: calc(var(--space-8) + 70px);
    /* Space for bottom nav */
}

.suppliers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    padding: 0 var(--space-4);
}

.supplier-card-mini {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--color-surface);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.supplier-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary), #4f46e5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-lg);
    flex-shrink: 0;
}

.supplier-card-mini .supplier-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.supplier-card-mini strong {
    font-size: var(--font-size-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.supplier-card-mini span {
    font-size: 10px;
    color: var(--color-text-muted);
}

/* Blur for non-logged-in users */
.blur-auth {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.blur-overlay {
    position: relative;
}

.blur-overlay::after {
    content: '🔒 Log in to see supplier';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius-lg);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 500;
    padding: var(--space-2);
    min-width: 60px;
}

.nav-item svg {
    width: 22px;
    height: 22px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--color-primary);
    text-decoration: none;
}

.cart-icon-wrap {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--color-primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile-first page content */
.page-home.mobile-first {
    padding-bottom: 0;
}

.main-content.no-sidebar {
    margin-left: 0;
    padding: 0;
}

/* Product badges fix */
.product-badges .badge {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
}

.product-badges .badge-halal {
    background: var(--color-success);
    color: white;
}

.product-badges .badge-featured {
    background: var(--color-primary);
    color: white;
}

/* Desktop overrides */
@media (min-width: 769px) {
    .bottom-nav {
        display: none;
    }

    .suppliers-section {
        margin-bottom: var(--space-8);
    }

    .hero-banner {
        height: 300px;
        margin: var(--space-4) var(--space-6);
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .section-header {
        padding: 0 var(--space-6);
    }

    .stories-scroll,
    .category-scroll,
    .products-scroll {
        padding: 0 var(--space-6);
    }

    .promo-banner,
    .suppliers-grid {
        padding: 0 var(--space-6);
    }

    .suppliers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   NEW DESIGN SYSTEM - HoreX Marketplace v2
   ═══════════════════════════════════════════════════════════════════ */

/* Extended Color Variables */
:root {
    --color-blue-600: #3B82F6;
    --color-blue-700: #2563EB;
    --color-indigo-600: #6366F1;
    --color-indigo-700: #4F46E5;
    --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
    --gradient-primary-hover: linear-gradient(135deg, #2563EB 0%, #4F46E5 100%);
    --shadow-blue: 0 10px 25px -5px rgba(59, 130, 246, 0.3);
    --color-slate-50: #F8FAFC;
    --color-slate-100: #F1F5F9;
    --color-slate-200: #E2E8F0;
    --color-slate-300: #CBD5E1;
    --color-slate-400: #94A3B8;
    --color-slate-500: #64748B;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1E293B;
    --color-slate-900: #0F172A;
    --color-red-500: #EF4444;
    --color-red-600: #DC2626;
    --color-green-500: #10B981;
    --color-green-600: #059669;
    --color-yellow-500: #F59E0B;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════ */

.hero-section {
    background: var(--gradient-primary);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, .1) 35px, rgba(255, 255, 255, .1) 70px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 42rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION LAYOUT
   ═══════════════════════════════════════════════════════════════════ */

.section {
    padding: 3rem 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-slate-900);
}

.section-link {
    color: var(--color-blue-600);
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.15s;
}

.section-link:hover {
    gap: 0.5rem;
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════
   CATEGORY CARDS - IMAGE BASED
   ═══════════════════════════════════════════════════════════════════ */

.category-card {
    position: relative;
    height: 10rem;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.category-count {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ═══════════════════════════════════════════════════════════════════
   SUPPLIER CARDS
   ═══════════════════════════════════════════════════════════════════ */

.supplier-card {
    background: white;
    border: 1px solid var(--color-slate-200);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.2s;
    cursor: pointer;
}

.supplier-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.supplier-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.supplier-logo {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.supplier-logo span {
    font-size: 2rem;
}

.supplier-info {
    flex: 1;
}

.supplier-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.supplier-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-slate-600);
}

.supplier-rating svg {
    width: 1rem;
    height: 1rem;
    fill: var(--color-yellow-500);
}

.supplier-stats {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-slate-200);
}

.stat-box {
    flex: 1;
    text-align: center;
}

.stat-box-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-slate-900);
}

.stat-box-label {
    font-size: 0.75rem;
    color: var(--color-slate-600);
}

/* ═══════════════════════════════════════════════════════════════════
   PRODUCT CARDS V2
   ═══════════════════════════════════════════════════════════════════ */

.product-card-v2 {
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--color-slate-200);
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}

.product-card-v2:hover {
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.15);
    border-color: var(--color-blue-600);
    transform: translateY(-2px);
}

.product-image-container {
    position: relative;
    height: 12rem;
    background: linear-gradient(135deg, var(--color-slate-50) 0%, var(--color-slate-100) 100%);
    overflow: hidden;
}

.product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card-v2:hover .product-image-container img {
    transform: scale(1.05);
}

.product-badges-v2 {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.badge-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.badge-discount {
    background: linear-gradient(135deg, var(--color-red-500) 0%, var(--color-red-600) 100%);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.favorite-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.product-card-v2:hover .favorite-btn {
    opacity: 1;
}

.favorite-btn.active {
    background: var(--color-red-500);
    opacity: 1;
}

.favorite-btn svg {
    width: 1rem;
    height: 1rem;
    stroke: var(--color-slate-600);
    fill: none;
}

.favorite-btn.active svg {
    stroke: white;
    fill: white;
}

.product-info-v2 {
    padding: 1rem;
}

.product-name-v2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-slate-900);
    margin-bottom: 0.5rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}

.product-card-v2:hover .product-name-v2 {
    color: var(--color-blue-600);
}

.product-meta-v2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-slate-500);
    margin-bottom: 0.75rem;
}

.product-supplier-v2 {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem;
    background: var(--color-slate-50);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: var(--color-slate-700);
}

.product-supplier-v2 svg {
    width: 0.875rem;
    height: 0.875rem;
    color: var(--color-slate-500);
}

.product-footer-v2 {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-slate-100);
}

.product-price-group {
    display: flex;
    flex-direction: column;
}

.product-price-v2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-price-old {
    font-size: 0.875rem;
    color: var(--color-slate-400);
    text-decoration: line-through;
}

.product-unit-v2 {
    font-size: 0.75rem;
    color: var(--color-slate-500);
}

.add-to-cart-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-blue);
    transition: all 0.2s;
}

.add-to-cart-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 30px -5px rgba(59, 130, 246, 0.4);
}

.add-to-cart-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: white;
}

/* ═══════════════════════════════════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════════════════════════════════ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon.blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
}

.feature-icon.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
}

.feature-icon.yellow {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--color-slate-600);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   GRID UTILITIES
   ═══════════════════════════════════════════════════════════════════ */

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 768px) {

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTON EXTENSIONS
   ═══════════════════════════════════════════════════════════════════ */

.btn-gradient {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-blue);
}

.btn-gradient:hover {
    background: var(--gradient-primary-hover);
    box-shadow: 0 20px 30px -5px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════
   TEXT UTILITIES
   ═══════════════════════════════════════════════════════════════════ */

.text-white {
    color: white;
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 0.875rem;
}

.font-semibold {
    font-weight: 600;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.p-6 {
    padding: 1.5rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.2s ease-out;
}

/* ═══════════════════════════════════════════════════════════════════
   HOMEPAGE V2 - FIGMA DESIGN MATCH
   ═══════════════════════════════════════════════════════════════════ */

/* Hero Split Section */
.hero-split {
    position: relative;
    background: #0f172a url('https://images.unsplash.com/photo-1606787366850-de6330128bfc?w=1600') center/cover no-repeat;
    padding: 4rem 0 3rem;
    margin-top: -88px;
    padding-top: calc(88px + 4rem);
    min-height: 520px;
}

.hero-split::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 15, 30, 0.98) 0%, rgba(10, 15, 30, 0.98) 40%, rgba(15, 23, 42, 0.75) 100%);
    z-index: 0;
}

.hero-split>.container {
    position: relative;
    z-index: 1;
}

.hero-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-split-left {
    color: white;
}

.hero-split .hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.hero-split .hero-label svg {
    color: #fbbf24;
}

.hero-split-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-split-title .text-gradient {
    background: linear-gradient(135deg, #3B82F6 0%, #818CF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-split-desc {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-split .hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-outline-dark {
    background: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-stats-inline {
    display: flex;
    gap: 3rem;
}

.stat-inline {
    display: flex;
    flex-direction: column;
}

.stat-inline .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

.stat-inline .stat-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-split-right {
    display: flex;
    justify-content: flex-end;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .hero-split {
        padding: 6rem 0 3rem;
    }

    .hero-split-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-split-title {
        font-size: 2rem;
    }

    .hero-split-desc {
        font-size: 1rem;
    }

    .hero-split .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-split .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats-inline {
        justify-content: center;
    }

    .hero-split-right {
        display: none;
    }

    .hero-split .hero-label {
        justify-content: center;
    }
}

/* Legacy Hero Photo Section (keep for fallback) */
.hero-photo {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -88px;
    padding-top: 88px;
}

.hero-photo-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(59, 130, 246, 0.7) 100%);
    z-index: 1;
}

.hero-photo-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 4rem 0;
}

.hero-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    color: white;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-photo-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-photo-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-outline-light {
    background: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.hero-stats-bar {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
}

.stat-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

.stat-text small {
    opacity: 0.7;
}

/* Features Bar */
.features-bar {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.features-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-block-icon {
    width: 2.75rem;
    height: 2.75rem;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-block-icon svg {
    width: 18px;
    height: 18px;
    stroke: #3B82F6;
}

.feature-block-text {
    display: flex;
    flex-direction: column;
}

.feature-block-text strong {
    font-size: 0.875rem;
    color: #1e293b;
    margin-bottom: 0.125rem;
}

.feature-block-text span {
    font-size: 0.75rem;
    color: #64748b;
}

@media (max-width: 1024px) {
    .features-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-row {
        grid-template-columns: 1fr;
    }
}

/* Section Header v2 */
.section-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.section-title-v2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #64748b;
    font-size: 1rem;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.category-select {
    padding: 0.75rem 2rem 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: white;
    font-size: 0.875rem;
    color: #475569;
    cursor: pointer;
}

@media (max-width: 640px) {
    .section-header-v2 {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title-v2 {
        font-size: 1.5rem;
    }

    .btn-link {
        align-self: flex-start;
    }
}

/* Categories Grid v2 */
.categories-section {
    background: #f8fafc;
    padding: 3rem 0;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #1e293b;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: white;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-link:hover {
    border-color: #3B82F6;
    color: #3B82F6;
}

.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: 2px solid #3b82f6;
    border-radius: 10px;
    color: #3b82f6;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    background: white;
    transition: all 0.2s;
}

.btn-outline-primary:hover {
    background: #3b82f6;
    color: white;
}

.categories-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.category-card-v2 {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.category-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card-v2:hover .category-card-image img {
    transform: scale(1.05);
}

.category-count-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
}

.category-count-badge .badge-icon {
    font-size: 0.875rem;
}

.category-card-info {
    padding: 1rem 1.25rem;
}

.category-card-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .categories-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .categories-grid-v2 {
        grid-template-columns: 1fr;
    }
}

/* Promo Banner v2 */
.promo-section {
    padding: 3rem 0;
}

.promo-banner-v2 {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border-radius: 1.5rem;
    overflow: hidden;
    padding: 3rem;
    position: relative;
}

.promo-content-v2 {
    flex: 1;
    z-index: 2;
}

.promo-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.promo-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.promo-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.btn-light {
    background: white;
    color: #3b82f6;
    font-weight: 600;
}

.btn-light:hover {
    background: #f8fafc;
}

.promo-image-v2 {
    width: 280px;
    height: 200px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.promo-image-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Promo Banner V3 - Green */
.promo-banner-v3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: url('https://images.unsplash.com/photo-1490474418585-ba9bad8fd0ea?w=1200') center/cover no-repeat;
    border-radius: 1.5rem;
    overflow: hidden;
    padding: 3rem 4rem;
    position: relative;
}

.promo-banner-v3::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 150, 105, 0.95) 0%, rgba(5, 150, 105, 0.95) 50%, rgba(16, 185, 129, 0.8) 100%);
    z-index: 0;
}

.promo-content-v3 {
    flex: 1;
    max-width: 450px;
    position: relative;
    z-index: 1;
}

.promo-label-v3 {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.promo-title-v3 {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.promo-desc-v3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.btn-promo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #059669;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-promo:hover {
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.promo-image-v3 {
    width: 420px;
    height: 280px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.promo-image-v3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .promo-banner-v3 {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .promo-content-v3 {
        margin-bottom: 2rem;
    }

    .promo-image-v3 {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .promo-banner-v2 {
        flex-direction: column;
        text-align: center;
    }

    .promo-content-v2 {
        margin-bottom: 2rem;
    }

    .promo-desc {
        max-width: 100%;
    }
}

/* Suppliers v2 */
.suppliers-section-v2 {
    background: #f8fafc;
}

/* Suppliers v3 - Compact */
.suppliers-section-v3 {
    padding: 3rem 0;
}

.section-header-v3 {
    text-align: left;
    margin-bottom: 2rem;
}

.section-badge-pill {
    display: inline-block;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    color: #3b82f6;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title-v3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.section-subtitle-v3 {
    color: #64748b;
    font-size: 1rem;
}

.suppliers-grid-v3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.supplier-card-v3 {
    background: white;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    text-align: center;
    transition: all 0.2s ease;
}

.supplier-card-v3:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.supplier-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.supplier-rank-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.supplier-avatar-v3 {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.supplier-avatar-v3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.supplier-name-v3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.125rem;
    text-align: left;
}

.supplier-category-v3 {
    display: block;
    color: #64748b;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    text-align: left;
}

.supplier-stats-v3 {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.25rem;
}

.supplier-stats-v3 .stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.supplier-stats-v3 .stat-icon {
    font-size: 0.875rem;
}

.supplier-stats-v3 .stat-val {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.supplier-meta-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.supplier-meta-row .meta-label {
    font-size: 0.6875rem;
    color: #94a3b8;
}

.supplier-link-v3 {
    display: block;
    color: #3b82f6;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    text-align: left;
}

.supplier-link-v3:hover {
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .suppliers-grid-v3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .suppliers-grid-v3 {
        grid-template-columns: 1fr;
    }
}

/* Suppliers v4 - Image Cards */
.suppliers-section-v4 {
    padding: 4rem 0;
}

.section-header-centered {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-badge-outline {
    display: inline-block;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.section-title-centered {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.section-subtitle-centered {
    color: #64748b;
    font-size: 1rem;
}

.suppliers-grid-v4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.supplier-image-v4 {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.supplier-image-v4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: white;
    color: #1e293b;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: none;
}

.verified-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 1rem;
    font-size: 0.6875rem;
    font-weight: 500;
}

.discount-badge {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: #f97316;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
}


/* Make product cards as links look good */
a.product-card-v3 {
    text-decoration: none;
    color: inherit;
    display: block;
}

.supplier-body-v4 {
    padding: 1rem 1.25rem 1.25rem;
}

.supplier-header-v4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.supplier-logo-v4 {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.02em;
}

.supplier-info-v4 {
    flex: 1;
    min-width: 0;
}

.supplier-name-v4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.125rem;
}

.supplier-category-v4 {
    display: block;
    color: #64748b;
    font-size: 0.8125rem;
}

.supplier-stats-v4 {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-row .stat-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.stat-row .stat-label .star-icon {
    flex-shrink: 0;
}

.stat-row .stat-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
}

.btn-supplier {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
    background: #3b82f6;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-supplier:hover {
    background: #2563eb;
}

/* Suppliers List V5 - Compact Design */
.suppliers-tabs-v5 {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.suppliers-tab-v5 {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: white;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.suppliers-tab-v5.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.suppliers-list-v5 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.supplier-row-v5 {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.supplier-row-v5:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.supplier-row-image {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.supplier-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.supplier-row-info {
    flex: 1;
    min-width: 0;
}

.supplier-row-header {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 0.25rem;
}

.supplier-row-header .verified-icon {
    flex-shrink: 0;
}

.supplier-row-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1e293b;
}

.supplier-row-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: #64748b;
    margin-left: auto;
}

.supplier-row-desc {
    font-size: 0.8125rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.supplier-favorite-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.supplier-favorite-btn:hover,
.supplier-favorite-btn.active {
    color: #ef4444;
}

.supplier-favorite-btn.active svg {
    fill: #ef4444;
}

.btn-load-more {
    padding: 0.75rem 2rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-load-more:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Search section label */
.search-section-label {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
    .suppliers-list-v5 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .suppliers-grid-v4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .suppliers-grid-v4 {
        grid-template-columns: 1fr;
    }
}

.suppliers-grid-v2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.supplier-card-v2 {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.supplier-card-v2:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.supplier-rank {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.supplier-avatar-v2 {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid #e2e8f0;
}

.supplier-avatar-v2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.supplier-info-v2 h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.supplier-category {
    color: #64748b;
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.supplier-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.supplier-rating-v2,
.supplier-products-v2 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.rating-count,
.products-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.products-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.btn-outline {
    background: white;
    border: 1px solid #e2e8f0;
    color: #3b82f6;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

@media (max-width: 1024px) {
    .suppliers-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .suppliers-grid-v2 {
        grid-template-columns: 1fr;
    }
}

/* Why Choose Us Section */
.why-section {
    background: white;
    padding: 4rem 0;
}

.why-header {
    text-align: center;
    margin-bottom: 3rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.why-item {
    text-align: center;
    padding: 1.5rem;
}

.why-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.why-icon svg {
    stroke: #64748b;
}

.why-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.why-item p {
    font-size: 0.875rem;
    color: #64748b;
}

@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* CTA Footer */
.cta-footer {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    padding: 4rem 0;
    text-align: center;
}

.cta-footer h2 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-footer p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* ═══════════════════════════════════════════════════════════════════
   SUPPLIER PROFILE PAGE
   ═══════════════════════════════════════════════════════════════════ */

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.breadcrumb-link {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}

.breadcrumb-link:hover {
    color: #3b82f6;
}

.breadcrumb-sep {
    color: #cbd5e1;
}

.breadcrumb-current {
    color: #1e293b;
    font-weight: 500;
}

.supplier-cover {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    margin-bottom: -80px;
}

.supplier-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    pointer-events: none;
}

.supplier-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.supplier-profile-header { margin-top: 1rem; background: white;
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.supplier-profile-logo {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: white;
}

.supplier-profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.supplier-profile-info {
    flex: 1;
    padding-top: 0;
}

.supplier-profile-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.supplier-profile-title h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.verified-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.supplier-profile-desc {
    color: #64748b;
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    max-width: 700px;
}

.supplier-profile-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: #64748b;
    font-size: 0.875rem;
}

.stat-item strong {
    color: #1e293b;
}

.text-muted {
    color: #94a3b8;
}

/* Info Cards */
.supplier-info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.info-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 10px;
    color: #3b82f6;
}

.info-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.info-card-label {
    font-size: 0.8125rem;
    color: #64748b;
}

.info-card-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
}

/* Tabs */
.supplier-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.supplier-tab {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    font-size: 0.9375rem;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.15s;
}

.supplier-tab:hover {
    color: #1e293b;
}

.supplier-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    font-weight: 500;
}

/* Tab Content */
.supplier-tab-content {
    padding-bottom: 2rem;
}

/* About Tab */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.about-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.about-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.about-label {
    font-size: 0.8125rem;
    color: #64748b;
}

.about-value {
    font-size: 0.9375rem;
    color: #1e293b;
}

.about-cert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.about-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.about-category-tag {
    padding: 0.375rem 0.875rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #1e293b;
}

/* Reviews Tab */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-content {
    flex: 1;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.review-author {
    font-weight: 600;
    color: #1e293b;
}

.review-date {
    font-size: 0.8125rem;
    color: #94a3b8;
}

.review-stars {
    color: #f59e0b;
    margin-left: auto;
}

.review-text {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* Products Section */
.supplier-products-section {
    padding-bottom: 3rem;
}

.supplier-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.supplier-products-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.supplier-category-filters {
    display: flex;
    gap: 0.5rem;
}

.category-filter-btn {
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}

.category-filter-btn:hover,
.category-filter-btn.active {
    background: #e0e7ff;
    color: #4f46e5;
}

/* Product Cards V3 */
.products-grid-v3 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.product-card-v3 {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.2s;
}

.product-card-v3:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.product-image-v3 {
    position: relative;
    aspect-ratio: 4/3;
    background: #f8fafc;
}

.product-image-v3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.product-badge-v3 {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f59e0b;
    color: white;
}

.product-badge-v3.badge-hit {
    background: #f59e0b;
}

.product-badge-v3.badge-new {
    background: #10b981;
}

.product-body-v3 {
    padding: 1rem;
}

.product-name-v3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.product-meta-v3 {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.product-supplier-v3 {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #3b82f6;
    margin-bottom: 0.75rem;
}

.product-price-row-v3 {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.product-price-v3 {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.product-price-v3 .price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
}

.product-price-v3 .price-unit {
    font-size: 0.75rem;
    color: #64748b;
}

.product-price-v3 .price-old {
    font-size: 0.875rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.btn-add-cart-v3 {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-add-cart-v3:hover {
    background: #2563eb;
    transform: scale(1.05);
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .supplier-info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid-v3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .supplier-cover {
        height: 150px;
        margin-bottom: -40px;
    }

    .supplier-profile-header { margin-top: 1rem; background: white;
        flex-direction: column;
        align-items: flex-start;
    }

    .supplier-profile-logo {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }

    .supplier-profile-title h1 {
        font-size: 1.375rem;
    }

    .supplier-profile-stats {
        gap: 1rem;
    }

    .supplier-info-cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .info-card {
        padding: 0.875rem;
    }

    .supplier-products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .supplier-category-filters {
        flex-wrap: wrap;
    }

    .products-grid-v3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE
   ═══════════════════════════════════════════════════════════════════ */

.product-detail-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-detail-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-detail-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    aspect-ratio: 1;
}

.product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Compact Supplier under image */
.product-supplier-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

.product-supplier-compact:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.supplier-compact-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.supplier-compact-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.supplier-compact-info {
    flex: 1;
}

.supplier-compact-name {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9375rem;
}

.supplier-compact-stats {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.125rem;
}

/* Compact Cart Row */
.product-cart-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.cart-row-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    flex: 1;
}

.cart-price-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #3b82f6;
}

.cart-price-currency {
    font-size: 1rem;
    font-weight: 600;
    color: #3b82f6;
}

.cart-price-old {
    font-size: 0.875rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.cart-row-qty {
    display: flex;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.qty-btn-sm {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    font-size: 1.125rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn-sm:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.cart-row-qty input {
    width: 40px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
}

.cart-row-qty input::-webkit-inner-spin-button,
.cart-row-qty input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.product-badge-detail {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    z-index: 2;
}

.product-badge-detail.badge-discount {
    background: #ef4444;
    color: white;
}

.product-badge-detail.badge-hit {
    background: #22c55e;
    color: white;
}

.product-eco-badge {
    position: absolute;
    top: 3.5rem;
    left: 1rem;
    padding: 0.25rem 0.5rem;
    background: #22c55e;
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.2s;
}

.product-favorite-btn:hover {
    color: #ef4444;
    border-color: #ef4444;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
}

.product-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.product-detail-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    flex: 1;
}

.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: #fef3c7;
    border-radius: 8px;
}

.rating-star {
    color: #f59e0b;
    font-size: 1rem;
}

.rating-value {
    font-weight: 600;
    color: #1e293b;
}

.rating-count {
    color: #64748b;
    font-size: 0.875rem;
}

.product-detail-desc {
    color: #475569;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

/* Variants */
.product-variants-section h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.75rem;
}

.product-variants {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.variant-option {
    position: relative;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
    text-align: center;
}

.variant-option input {
    display: none;
}

.variant-option.selected,
.variant-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.variant-popular {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.125rem 0.5rem;
    background: #f97316;
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 4px;
    white-space: nowrap;
}

.variant-weight {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.variant-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #3b82f6;
}

.variant-price span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
}

.variant-min {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

/* Purchase Section */
.product-purchase-section {
    display: flex;
    gap: 2rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.product-price-block {
    flex: 1;
}

.price-label {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.price-main-row {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
}

.price-current {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
}

.price-currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: #3b82f6;
}

.price-old {
    font-size: 1rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.price-savings {
    color: #22c55e;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.product-qty-cart {
    text-align: right;
}

.qty-label {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.375rem;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8fafc;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.qty-controls input {
    width: 50px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.qty-controls input::-webkit-inner-spin-button,
.qty-controls input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* Total Row */
.product-total-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.total-label {
    font-size: 0.9375rem;
    color: #64748b;
}

.total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    flex: 1;
}

.btn-add-cart-lg {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-cart-lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.product-min-order {
    font-size: 0.8125rem;
    color: #64748b;
}

/* Supplier Card */
.product-supplier-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.supplier-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
}

.supplier-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.supplier-card-info {
    flex: 1;
}

.supplier-card-name {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
}

.supplier-card-name:hover {
    color: #3b82f6;
}

.supplier-card-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.supplier-card-delivery {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #3b82f6;
    font-weight: 500;
}

/* Specs Grid */
.product-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.specs-block {
    padding: 1.25rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.specs-block h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1rem;
}

.specs-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9375rem;
}

.spec-row span:first-child {
    color: #64748b;
}

.spec-row span:last-child {
    color: #1e293b;
    font-weight: 500;
}

.delivery-list .spec-row {
    justify-content: flex-start;
    gap: 0.75rem;
}

.delivery-list .spec-row span:last-child {
    font-weight: 400;
}

/* Quality Guarantee */
.quality-guarantee {
    padding: 1.25rem;
    background: linear-gradient(135deg, #fef3c7, #fef9c3);
    border: 1px solid #fcd34d;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.quality-guarantee h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.75rem;
}

.guarantee-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.guarantee-items span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    color: #1e293b;
}

/* Similar Products */
.similar-products {
    margin-bottom: 3rem;
}

.similar-products h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1.25rem;
}

.similar-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.similar-product-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s;
}

.similar-product-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.similar-product-image {
    position: relative;
    height: 140px;
    background: #f8fafc;
}

.similar-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.125rem 0.5rem;
    background: #22c55e;
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 4px;
}

.similar-product-info {
    padding: 0.75rem;
}

.similar-product-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.similar-product-supplier {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.similar-product-price {
    font-weight: 700;
    color: #3b82f6;
}

/* Responsive */
@media (max-width: 900px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-detail-image img {
        height: 300px;
    }

    .product-specs-grid {
        grid-template-columns: 1fr;
    }

    .similar-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-variants {
        flex-direction: column;
    }

    .product-purchase-section {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .product-qty-cart {
        text-align: left;
    }

    .product-total-row {
        flex-wrap: wrap;
    }

    .guarantee-items {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   CATALOG PAGE
   ═══════════════════════════════════════════════════════════════════ */

.catalog-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.catalog-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.catalog-count {
    font-size: 0.9375rem;
    color: #64748b;
}

/* Categories Grid */
.catalog-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.catalog-category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.catalog-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.catalog-category-image {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.catalog-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-category-icon {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: none;
}

.catalog-category-info {
    padding: 0.875rem 1rem;
}

.catalog-category-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem;
}

.catalog-category-info span {
    font-size: 0.8125rem;
    color: #64748b;
}

/* Catalog Filters */
.catalog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border: none;
    background: white;
    color: #64748b;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.filter-tab:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.filter-tab.active {
    background: #3b82f6;
    color: white;
}

.filter-sort select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #1e293b;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    -webkit-appearance: none;
    cursor: pointer;
}

/* Premium badge */
.product-badge-v3.badge-premium {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

/* Responsive Catalog */
@media (max-width: 900px) {
    .catalog-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .catalog-categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .catalog-category-image {
        height: 100px;
    }

    .catalog-filters {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }

    .filter-tab {
        white-space: nowrap;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   CATALOG SIDEBAR LAYOUT
   ═══════════════════════════════════════════════════════════════════ */

.catalog-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
}

.catalog-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.catalog-sidebar h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.catalog-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.catalog-categories-list li {
    margin-bottom: 0.25rem;
}

.catalog-categories-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.15s;
}

.catalog-categories-list a:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.catalog-categories-list a.active {
    background: #3b82f6;
    color: white;
}

.catalog-categories-list .cat-icon {
    font-size: 1.125rem;
}

.catalog-main {
    min-width: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-sidebar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 1rem;
    }

    .catalog-sidebar h3 {
        width: 100%;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .catalog-categories-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .catalog-categories-list li {
        margin: 0;
    }

    .catalog-categories-list a {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        background: #f1f5f9;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   B2B CATALOG CARDS
   ═══════════════════════════════════════════════════════════════════ */

.products-grid-catalog {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.product-card-b2b {
    background: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
    overflow: hidden;
}

.product-card-b2b:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #3b82f6;
}

.product-card-b2b.out-of-stock {
    opacity: 0.7;
}

.product-image-b2b {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f8fafc;
}

.product-image-b2b img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.out-stock-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.product-body-b2b {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
}

.product-name-b2b {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-b2b-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.b2b-tag {
    font-size: 0.6875rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.1875rem 0.5rem;
    border-radius: 4px;
}

.product-supplier-b2b {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #64748b;
}

.product-supplier-b2b svg {
    flex-shrink: 0;
    color: #94a3b8;
}

.product-price-row-b2b {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.product-price-b2b {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.product-price-b2b .price-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.product-price-b2b .price-unit {
    font-size: 0.75rem;
    color: #64748b;
}

.product-price-b2b .price-old {
    font-size: 0.75rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 0.25rem;
}

.btn-add-cart-b2b {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #3b82f6;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    flex-shrink: 0;
}

.btn-add-cart-b2b:hover {
    background: #2563eb;
    transform: scale(1.05);
}

/* Responsive B2B Grid */
@media (max-width: 1200px) {
    .products-grid-catalog {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid-catalog {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .products-grid-catalog {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .product-body-b2b {
        padding: 0.5rem;
    }

    .product-name-b2b {
        font-size: 0.8125rem;
    }
}@media (max-width: 768px) { .header-nav { display: none !important; } .header-search { display: none !important; } .burger-menu { display: flex !important; } }
.supplier-card-v2 { border: none !important; box-shadow: 0 1px 3px rgba(0,0,0,0.08); cursor: pointer; } .supplier-card-v2 .btn-view-supplier { background: white; color: #1e40af; border: 1.5px solid #1e40af; } .supplier-card-v2 .btn-view-supplier:hover { background: #1e40af; color: white; }
@media (max-width: 768px) { .breadcrumbs { flex-wrap: wrap; font-size: 0.8rem; gap: 0.25rem; } .breadcrumb-link, .breadcrumb-current { white-space: nowrap; } .product-detail-grid { max-width: 100%; overflow-x: hidden; } .container { max-width: 100vw; overflow-x: hidden; padding: 0 1rem; } }

/* Subcategories in sidebar */
.subcategories-list { list-style: none; margin: 0.5rem 0 0 1.5rem; padding: 0; }
.subcategories-list li { margin-bottom: 0.25rem; }
.subcategories-list a { display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.75rem; font-size: 0.9rem; color: #64748b; text-decoration: none; border-radius: 6px; transition: all 0.2s; }
.subcategories-list a:hover { background: #f1f5f9; color: #1e40af; }
.sub-icon { font-size: 1rem; }

/* Supplier cards redesign */
.supplier-card-v4 { border: none !important; box-shadow: 0 2px 8px rgba(0,0,0,0.06); cursor: pointer; transition: all 0.2s; }
.supplier-card-v4:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
.supplier-card-v4 .btn-view-supplier { background: white !important; color: #1e40af !important; border: 1.5px solid #1e40af !important; }
.supplier-card-v4 .btn-view-supplier:hover { background: #1e40af !important; color: white !important; }

/* Mobile product card fix */
@media (max-width: 768px) { 
  .product-detail-grid { display: block !important; } 
  .product-gallery { max-width: 100%; margin-bottom: 1rem; }
  .product-info { max-width: 100%; }
  .product-supplier-card { margin: 0 -1rem; padding: 1rem; }
}


/* Category toggle button */
.cat-row { display: flex; align-items: center; gap: 0.5rem; }
.cat-row a { flex: 1; }
.cat-toggle { background: none; border: none; padding: 0.5rem; cursor: pointer; color: #94a3b8; transition: all 0.2s; border-radius: 4px; }
.cat-toggle:hover { background: #f1f5f9; color: #3b82f6; }
.cat-toggle svg { display: block; transition: transform 0.2s; }
.cat-item.expanded .cat-toggle svg { transform: rotate(180deg); }


/* Active subcategory */
.subcategories-list a.active { background: #dbeafe; color: #1e40af; font-weight: 500; }


/* Sidebar category search */
.sidebar-search { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 1rem; }
.sidebar-search svg { color: #94a3b8; flex-shrink: 0; }
.sidebar-search input { border: none; background: none; outline: none; flex: 1; font-size: 0.875rem; color: #1e293b; }
.sidebar-search input::placeholder { color: #94a3b8; }


/* Out of stock styles */
.product-cart-row.out-of-stock { flex-direction: column; gap: 1rem; background: #fef2f2; border: 1px solid #fecaca; }
.out-of-stock-message { display: flex; align-items: center; gap: 0.5rem; color: #dc2626; font-weight: 500; font-size: 1.1rem; }
.out-of-stock-overlay { position: relative; }
.out-of-stock-overlay::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.3); border-radius: 12px; }
.out-of-stock-overlay-badge { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.7); color: white; padding: 0.5rem 1rem; border-radius: 6px; font-weight: 500; z-index: 1; }
.btn-notify { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: white; border: 1px solid #e2e8f0; border-radius: 8px; cursor: pointer; font-weight: 500; color: #1e293b; }
.btn-notify:hover { background: #f8fafc; border-color: #3b82f6; color: #3b82f6; }

/* Discount request button */
.btn-discount-request { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; cursor: pointer; font-weight: 500; color: #1e293b; margin-top: 0.75rem; width: 100%; justify-content: center; }
.btn-discount-request:hover { background: #eff6ff; border-color: #3b82f6; color: #3b82f6; }
.btn-discount-request svg { color: #3b82f6; }



/* ═══════════════════════════════════════════════════════════════════
   CONSOLIDATED OVERRIDES (cleaned up)
   ═════════════════════════════════════════════════════════════════ */

/* Full width catalog layout */
.main-content.no-sidebar .container { max-width: 1400px; padding: 0 2rem; }
.catalog-layout { display: flex; gap: 2rem; }
.catalog-sidebar { flex-shrink: 0; min-width: 280px; max-width: 280px; }
.catalog-main { flex: 1; min-width: 0; overflow: hidden; }
.products-grid-v2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

/* Supplier card - clean styles */
.supplier-card-v4 { background: white; border: none; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.supplier-card-v4:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.btn-supplier { background: #f8fafc; color: #1e40af; border: none; }
.btn-supplier:hover { background: #1e40af; color: white; }

/* Heart button - final clean version */
.supplier-fav-btn {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: white;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    padding: 8px;
    -webkit-appearance: none;
    appearance: none;
}
.supplier-fav-btn:hover,
.supplier-fav-btn:focus,
.supplier-fav-btn:active { background: white; outline: none; box-shadow: none; }
.supplier-fav-btn svg { width: 24px; height: 24px; transition: transform 0.2s; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3)); }
.supplier-fav-btn:not(.active) svg { fill: white; stroke: white; }
.supplier-fav-btn.active svg { fill: #ef4444; stroke: #ef4444; }
.supplier-fav-btn:hover svg { transform: scale(1.15); }

/* Hide rank badges */
.rank-badge { display: none; }

/* Favorites tabs */
.suppliers-tab-v5 { padding: 0.6rem 1.2rem; border-radius: 20px; border: none; background: #f1f5f9; color: #64748b; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.suppliers-tab-v5:hover { background: #e2e8f0; color: #1e293b; }
.suppliers-tab-v5.active { background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%); color: white; box-shadow: 0 2px 8px rgba(59,130,246,0.3); }

/* Out of stock */
.product-cart-row.out-of-stock { flex-direction: column; gap: 1rem; background: #fef2f2; border: 1px solid #fecaca; }
.out-of-stock-message { display: flex; align-items: center; gap: 0.5rem; color: #dc2626; font-weight: 500; font-size: 1.1rem; }
.out-of-stock-overlay { position: relative; }
.out-of-stock-overlay::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.3); border-radius: 12px; }
.out-of-stock-overlay-badge { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.7); color: white; padding: 0.5rem 1rem; border-radius: 6px; font-weight: 500; z-index: 1; }
.btn-notify { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: white; border: 1px solid #e2e8f0; border-radius: 8px; cursor: pointer; font-weight: 500; color: #1e293b; }
.btn-notify:hover { background: #f8fafc; border-color: #3b82f6; color: #3b82f6; }

/* Discount request button */
.btn-discount-request { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; cursor: pointer; font-weight: 500; color: #1e293b; margin-top: 0.75rem; width: 100%; justify-content: center; }
.btn-discount-request:hover { background: #eff6ff; border-color: #3b82f6; color: #3b82f6; }
.btn-discount-request svg { color: #3b82f6; }

/* Search dropdown z-index fix */
.search-dropdown { z-index: 9999 !important; position: absolute !important; }
.search-box { position: relative; z-index: 100; }

/* Compact discount request link */
.btn-discount-request { display: inline-flex; align-items: center; gap: 0.25rem; background: none; border: none; color: #64748b; font-size: 0.85rem; cursor: pointer; padding: 0.25rem 0; margin-top: 0.5rem; text-decoration: underline; text-underline-offset: 2px; width: auto; }
.btn-discount-request:hover { color: #3b82f6; }
.btn-discount-request svg { width: 14px; height: 14px; }


/* Min order row with discount link */
.product-min-order-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.product-min-order-row .product-min-order { margin: 0; }


/* Cart icon bounce animation */
@keyframes cart-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}
.cart-bounce { animation: cart-bounce 0.3s ease; }


/* Product favorite button */
.product-fav-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
.product-fav-btn:hover { transform: scale(1.15); }
.product-fav-btn svg { transition: all 0.2s; }

/* Remove underline on product cards */
.product-card-b2b { text-decoration: none !important; }
.product-card-b2b:hover { text-decoration: none !important; }
.product-card-b2b h4 { text-decoration: none !important; }
.product-name-b2b { text-decoration: none !important; }
