/* Suppliers Page - Mobile First */
:root {
    --primary: #6B21E5;        /* Deep Purple */
    --primary-dark: #4A0D9C;    /* Darker Purple */
    --primary-light: #9B4DFF;   /* Lighter Purple */
    --primary-gradient: linear-gradient(135deg, #6B21E5, #9B4DFF);
    --secondary: #10B981;
    --accent: #F59E0B;
    --danger: #EF4444;
    --dark: #1F2937;
    --gray-800: #1F2937;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-300: #D1D5DB;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(107, 33, 229, 0.06);
    --shadow-lg: 0 4px 12px rgba(107, 33, 229, 0.08);
    --shadow-xl: 0 8px 24px rgba(107, 33, 229, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--gray-100);
    color: var(--dark);
    line-height: 1.4;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* 3D Cube Logo */
.logo-cube {
    position: relative;
    width: 32px;
    height: 32px;
    perspective: 800px;
}

.logo-cube .cube {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(18deg) rotateY(28deg);
    transition: transform 0.3s ease;
}

.logo:hover .cube {
    transform: rotateX(28deg) rotateY(38deg);
}

.logo-cube .face {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: var(--primary-gradient);
    box-shadow: inset 0 0 15px rgba(107, 33, 229, 0.5), 0 0 10px rgba(155, 77, 255, 0.3);
    border-radius: 4px;
}

.logo-cube .front {
    transform: translateZ(16px);
    background: linear-gradient(135deg, #6B21E5, #9B4DFF);
}

.logo-cube .right {
    transform: rotateY(90deg) translateZ(16px);
    background: linear-gradient(135deg, #4A0D9C, #6B21E5);
}

.logo-cube .top {
    transform: rotateX(90deg) translateZ(16px);
    background: linear-gradient(135deg, #9B4DFF, #B47BFF);
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
}

.logo-text span {
    color: var(--primary-light);
}

.search-toggle {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-600);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.search-toggle:active {
    background: var(--gray-200);
    transform: scale(0.95);
}

/* Search Bar */
.search-bar {
    display: none;
    padding: 8px 16px 16px;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

.search-bar.show {
    display: flex;
    gap: 8px;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 30px;
    font-size: 15px;
    background: var(--gray-100);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(107, 33, 229, 0.1);
}

.search-close {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-600);
    font-size: 18px;
    cursor: pointer;
}

/* Banner Carousel */
.banner-carousel {
    background: var(--white);
    padding: 16px 0 8px;
}

.banner-swiper {
    width: 100%;
    height: 160px;
}

.banner-slide {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: block;
    text-decoration: none;
}

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

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.banner-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.banner-content p {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.banner-btn {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent);
    color: var(--dark);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.banner-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    background: var(--gray-100);
    border-radius: var(--radius);
}

/* Hot Suppliers */
.hot-suppliers {
    background: var(--white);
    padding: 20px 16px;
    margin-bottom: 8px;
}

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

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hot-suppliers-carousel {
    margin: 0 -16px;
    padding: 0 16px;
}

.hot-swiper {
    overflow: visible !important;
}

.hot-supplier-card {
    width: 140px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 16px 12px;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s;
}

.hot-supplier-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.hot-supplier-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
    overflow: hidden;
}

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

.hot-supplier-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-supplier-rating {
    color: var(--accent);
    font-size: 11px;
    margin-bottom: 8px;
}

.hot-supplier-rating span {
    color: var(--gray-500);
    margin-left: 4px;
}

.hot-supplier-products {
    display: flex;
    gap: 4px;
    justify-content: center;
}

.hot-product-thumb {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--gray-100);
    overflow: hidden;
}

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

/* Filter Bar */
.filter-bar {
    background: var(--white);
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    padding: 8px 16px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

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

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

.filter-sort select {
    padding: 8px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 30px;
    font-size: 13px;
    background: var(--white);
    cursor: pointer;
    outline: none;
}

.filter-sort select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 33, 229, 0.1);
}

/* Suppliers Grid */
.suppliers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Compact Supplier Card */
.supplier-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    transition: all 0.2s;
    padding: 12px;
    cursor: pointer;
}

.supplier-card:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Header with logo left, info right */
.supplier-header-compact {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.supplier-logo-compact {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

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

.supplier-info-compact {
    flex: 1;
    min-width: 0; /* Prevents overflow */
}

.supplier-name-compact {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    line-height: 1.3;
}

.verified-badge-compact {
    color: var(--secondary);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.supplier-stats-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 11px;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.supplier-stats-compact span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.supplier-stats-compact i {
    color: var(--primary);
    font-size: 10px;
}

.supplier-badges-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 10px;
    color: var(--gray-600);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

.badge-item i {
    color: var(--secondary);
    font-size: 10px;
}

/* Products Row - 3 items */
.supplier-products-compact {
    margin-top: 8px;
    border-top: 1px solid var(--gray-200);
    padding-top: 12px;
}

.products-row-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.product-item-compact {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.2s;
}

.product-item-compact:hover {
    transform: translateY(-2px);
}

.product-image-compact {
    aspect-ratio: 1;
    background: var(--gray-100);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 4px;
}

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

.product-price-compact {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-moq-compact {
    font-size: 9px;
    color: var(--gray-500);
    text-align: center;
}

/* Loading States */
.loading-grid {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 16px;
    color: var(--gray-500);
}

.loading-card {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: var(--gray-100);
    border-radius: var(--radius);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

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

/* Load More */
.load-more {
    text-align: center;
    padding: 20px 16px 40px;
}

.load-more-btn {
    padding: 14px 32px;
    background: var(--white);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:active {
    background: var(--primary);
    color: white;
    transform: scale(0.98);
}

.load-more-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

/* Footer */
.footer {
    padding: 20px 16px;
    text-align: center;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-500);
    font-size: 12px;
    background: var(--white);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideUp 0.2s ease;
}

.modal-content.modal-lg {
    max-width: 800px;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray-500);
}

.modal-body {
    padding: 20px;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: var(--primary);
}

/* Desktop */
@media (min-width: 768px) {
    .suppliers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-swiper {
        height: 200px;
    }
    
    .hot-supplier-card {
        width: 160px;
    }
    
    .hot-supplier-avatar {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}

@media (min-width: 1024px) {
    .suppliers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .header-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 16px 24px;
    }
    
    .banner-carousel,
    .hot-suppliers,
    .filter-bar {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .banner-carousel {
        padding: 24px 0 16px;
    }
    
    .banner-swiper {
        height: 250px;
    }
    
    .hot-suppliers {
        padding: 30px 24px;
        border-radius: var(--radius);
        margin: 20px auto;
    }
}

/* Small Mobile */
@media (max-width: 380px) {
    .supplier-header-compact {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .supplier-logo-compact {
        width: 50px;
        height: 50px;
    }
}
/* ============================================
   PROFESSIONAL B2B FOOTER (from index.css)
   ============================================ */
.site-footer {
    background: var(--gray-800);
    color: var(--gray-300);
    margin-top: 30px;
    padding: 40px 0 0;
    border-top: 4px solid var(--primary);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer-logo .logo-cube.small {
    width: 32px;
    height: 32px;
    perspective: 600px;
}

.footer-logo .logo-cube.small .cube {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(18deg) rotateY(28deg);
}

.footer-logo .logo-cube.small .face {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: var(--primary-gradient);
    box-shadow: inset 0 0 15px rgba(107, 33, 229, 0.5), 0 0 10px rgba(155, 77, 255, 0.3);
    border-radius: 4px;
}

.footer-logo .logo-cube.small .front {
    transform: translateZ(16px);
    background: linear-gradient(135deg, #6B21E5, #9B4DFF);
}

.footer-logo .logo-cube.small .right {
    transform: rotateY(90deg) translateZ(16px);
    background: linear-gradient(135deg, #4A0D9C, #6B21E5);
}

.footer-logo .logo-cube.small .top {
    transform: rotateX(90deg) translateZ(16px);
    background: linear-gradient(135deg, #9B4DFF, #B47BFF);
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.footer-logo-text span {
    color: var(--primary-light);
}

.footer-about {
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray-400);
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.footer-links a i {
    font-size: 10px;
    color: var(--primary);
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--gray-400);
}

.footer-contact li i {
    width: 20px;
    color: var(--primary);
    font-size: 14px;
}

.footer-badge {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.footer-badge img {
    background: var(--primary);
    border-radius: 4px;
    padding: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding: 20px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: var(--gray-500);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-links a:hover {
    color: var(--primary);
}

/* Meta AI Credit */
.meta-credit {
    text-align: center;
    padding: 10px;
    background: var(--gray-900);
    color: var(--gray-500);
    font-size: 12px;
    border-top: 1px solid var(--gray-800);
}

.meta-credit span {
    color: var(--primary-light);
    margin-right: 4px;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-badge {
        justify-content: center;
    }
}