/* ==========================================================================
   ExpoKa - Global B2B Wholesale Marketplace Homepage Experience
   Engineered for high-performance international B2B wholesale sourcing
   Compliant with Kinabrand Ltd brand guidelines - Zero trademark infringement
   ========================================================================== */

:root {
    --ek-b2b-orange: #ff6a00;
    --ek-b2b-orange-hover: #e55c00;
    --ek-b2b-orange-light: #fff7ed;
    --ek-b2b-green: #10866f;
    --ek-b2b-green-light: #f0fdf4;
    --ek-b2b-dark: #0f172a;
    --ek-b2b-text: #1e293b;
    --ek-b2b-muted: #64748b;
    --ek-b2b-border: #e2e8f0;
    --ek-b2b-bg: #f4f6f8;
    --ek-b2b-card: #ffffff;
    --ek-b2b-radius: 12px;
}

/* Home Wrapper */
.b2b-home-wrapper {
    background-color: var(--ek-b2b-bg);
    min-height: 100vh;
    padding-bottom: 50px;
}

/* Desktop Sticky Header & Search Reveal on Scroll */
@media (min-width: 992px) {
    body.ek-home-b2b-page #header {
        position: sticky;
        top: 0;
        z-index: 1020;
        background: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        transition: box-shadow 0.25s ease;
    }
    body.ek-home-b2b-page.ek-header-search-scrolled #header {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }
    body.ek-home-b2b-page.ek-header-search-scrolled #header .top-bar {
        display: none;
    }
    body.ek-home-b2b-page #header .nav-top .top-search-bar {
        opacity: 0;
        pointer-events: none;
        max-width: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
        transition: opacity 0.25s ease, max-width 0.3s ease;
    }
    body.ek-home-b2b-page.ek-header-search-scrolled #header .nav-top .top-search-bar {
        opacity: 1;
        pointer-events: auto;
        max-width: 620px;
        overflow: visible;
        border: 2px solid var(--ek-b2b-orange) !important;
        border-radius: 28px !important;
        background-color: #ffffff;
        box-shadow: 0 2px 8px rgba(255, 106, 0, 0.12);
        display: flex;
        align-items: center;
        padding: 2px 4px 2px 16px;
    }
    body.ek-home-b2b-page.ek-header-search-scrolled #header .nav-top .top-search-bar .input-search {
        background-color: transparent;
        height: 38px;
        font-size: 14px;
        padding: 6px 8px;
        border: none !important;
    }
    body.ek-home-b2b-page.ek-header-search-scrolled #header .nav-top .top-search-bar .btn-search {
        background: linear-gradient(90deg, #ff6a00 0%, #ff4500 100%) !important;
        color: #ffffff !important;
        border-radius: 22px !important;
        height: 34px;
        padding: 0 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: none !important;
    }
}

/* --------------------------------------------------------------------------
   1. B2B Hero Sourcing Search Hub (Screenshot 1 Match)
   -------------------------------------------------------------------------- */
.ek-b2b-hero-search-area {
    max-width: 1240px;
    margin: 0 auto;
    padding: 34px 16px 14px;
}

/* Tabs: Products | Manufacturers | Worldwide */
.ek-b2b-sourcing-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    margin-bottom: 16px;
}

.ek-b2b-tab-link {
    font-size: 19px;
    font-weight: 800;
    color: #475569;
    text-decoration: none !important;
    position: relative;
    padding-bottom: 8px;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ek-b2b-tab-link:hover {
    color: var(--ek-b2b-orange);
}

.ek-b2b-tab-link.active {
    color: var(--ek-b2b-orange);
}

.ek-b2b-tab-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--ek-b2b-orange);
    border-radius: 3px;
}

.ek-b2b-tab-divider {
    color: #cbd5e1;
    font-size: 20px;
    font-weight: 300;
}

/* Search Bar Container */
.ek-b2b-search-bar-box {
    max-width: 920px;
    margin: 0 auto;
}

.ek-b2b-search-form {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid var(--ek-b2b-orange);
    border-radius: 36px;
    padding: 5px 6px 5px 22px;
    box-shadow: 0 8px 24px rgba(255, 106, 0, 0.09), 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
    position: relative;
}

.ek-b2b-search-form:focus-within {
    box-shadow: 0 10px 30px rgba(255, 106, 0, 0.18);
}

.ek-b2b-main-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 500;
    color: #1e293b;
    background: transparent;
    padding: 10px 8px;
    min-width: 150px;
}

.ek-b2b-main-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.ek-b2b-search-shortcuts {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
    border-left: 1px solid #f1f5f9;
}

.ek-b2b-shortcut-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    text-decoration: none !important;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.18s ease;
    white-space: nowrap;
    padding: 0;
}

.ek-b2b-shortcut-btn:hover {
    color: var(--ek-b2b-orange);
}

.ek-b2b-shortcut-btn i {
    font-size: 16px;
    color: var(--ek-b2b-orange);
}

.ek-b2b-search-submit {
    background: linear-gradient(90deg, #ff6a00 0%, #ff4500 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 28px;
    padding: 12px 34px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.ek-b2b-search-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.38);
}

@media (max-width: 768px) {
    .ek-b2b-sourcing-tabs {
        gap: 18px;
    }
    .ek-b2b-tab-link {
        font-size: 15px;
    }
    .ek-b2b-search-shortcuts {
        display: none;
    }
    .ek-b2b-search-submit {
        padding: 10px 18px;
        font-size: 14px;
    }
    .ek-b2b-search-submit span {
        display: none;
    }
}

/* Welcome Strip */
.ek-b2b-welcome-strip {
    max-width: 1240px;
    margin: 18px auto 0;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.ek-b2b-welcome-headline {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.ek-b2b-welcome-features {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.ek-b2b-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    text-decoration: none !important;
    transition: color 0.18s ease;
}

.ek-b2b-feature-pill:hover {
    color: var(--ek-b2b-orange);
}

.ek-b2b-feature-pill i {
    color: var(--ek-b2b-orange);
    font-size: 15px;
}

.ek-b2b-feature-sep {
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .ek-b2b-welcome-features {
        gap: 12px;
    }
    .ek-b2b-feature-sep {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   2. Main Hero Hub: Category Sidebar + Curated Discovery Showcase (Screenshot 1)
   -------------------------------------------------------------------------- */
.ek-b2b-hero-hub {
    max-width: 1240px;
    margin: 10px auto 26px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 16px;
    align-items: stretch;
}

@media (max-width: 991px) {
    .ek-b2b-hero-hub {
        grid-template-columns: 1fr;
    }
}

/* Left Category Sidebar */
.ek-b2b-cat-sidebar {
    background: #ffffff;
    border: 1px solid var(--ek-b2b-border);
    border-radius: var(--ek-b2b-radius);
    padding: 12px 0 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.ek-b2b-cat-sidebar-head {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    padding: 0 16px 10px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ek-b2b-cat-sidebar-head i {
    color: var(--ek-b2b-orange);
}

.ek-b2b-sidebar-nav {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.ek-b2b-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    color: #334155;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.16s ease, color 0.16s ease;
}

.ek-b2b-sidebar-link:hover {
    background: var(--ek-b2b-orange-light);
    color: var(--ek-b2b-orange);
    font-weight: 600;
}

.ek-b2b-sidebar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ek-b2b-sidebar-icon {
    width: 20px;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ek-b2b-sidebar-link:hover .ek-b2b-sidebar-icon {
    color: var(--ek-b2b-orange);
}

.ek-b2b-sidebar-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ek-b2b-sidebar-arrow {
    font-size: 11px;
    color: #94a3b8;
}

.ek-b2b-sidebar-footer {
    padding: 10px 16px 0;
    margin-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.ek-b2b-all-cats-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--ek-b2b-orange);
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Discovery Grid (Right Area) */
.ek-b2b-discovery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 1200px) {
    .ek-b2b-discovery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ek-b2b-discovery-grid {
        grid-template-columns: 1fr;
    }
}

.ek-b2b-tile-card {
    background: #ffffff;
    border: 1px solid var(--ek-b2b-border);
    border-radius: var(--ek-b2b-radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-height: 330px;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.ek-b2b-tile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.ek-b2b-tile-head {
    margin-bottom: 6px;
}

.ek-b2b-tile-eyebrow {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 3px;
    display: block;
    text-transform: capitalize;
}

.ek-b2b-tile-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.25;
}

.ek-b2b-tile-visual {
    flex: 1;
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 220px;
    margin-top: 8px;
}

.ek-b2b-tile-visual img {
    max-height: 190px;
    max-width: 48%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.06));
    transition: transform 0.25s ease;
}

.ek-b2b-tile-card:hover .ek-b2b-tile-visual img {
    transform: scale(1.08);
}

/* Hot Picks Tile */
.ek-b2b-tile-hotpicks {
    background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 100%) !important;
    border: 1px solid #e9d5ff !important;
}

.ek-b2b-hotpicks-badge {
    display: inline-block;
    background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.ek-b2b-tile-hotpicks .ek-b2b-tile-title {
    color: #6b21a8 !important;
    font-size: 16px;
    font-weight: 800;
}

.ek-b2b-tile-hotpicks .ek-b2b-tile-visual {
    background: rgba(255, 255, 255, 0.65) !important;
}

.ek-b2b-tile-hotpicks .ek-b2b-tile-visual img {
    max-height: 165px;
    max-width: 31%;
}

/* --------------------------------------------------------------------------
   3. Wholesale Sourcing Product Catalog Feed (Screenshot 2 Match)
   -------------------------------------------------------------------------- */
.ek-b2b-catalog-section {
    max-width: 1240px;
    margin: 20px auto 40px;
    padding: 0 16px;
}

.ek-b2b-catalog-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.ek-b2b-catalog-titles h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.ek-b2b-catalog-titles p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.ek-b2b-catalog-viewall {
    font-size: 14px;
    font-weight: 700;
    color: var(--ek-b2b-orange);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ek-b2b-catalog-viewall:hover {
    color: var(--ek-b2b-orange-hover);
}

/* Quick Filter Pills */
.ek-b2b-filter-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.ek-b2b-pill {
    padding: 7px 16px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--ek-b2b-border);
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.18s ease;
}

.ek-b2b-pill:hover,
.ek-b2b-pill.active {
    background: var(--ek-b2b-orange);
    color: #ffffff;
    border-color: var(--ek-b2b-orange);
}

/* 5-Column Responsive Product Grid */
.ek-b2b-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

@media (max-width: 1200px) {
    .ek-b2b-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .ek-b2b-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .ek-b2b-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Visual Lens Icon on Card Image (Screenshot 2 Match) */
.ek-btn-lens, .ali-btn-lens {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 13px;
    text-decoration: none !important;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.2s ease;
    z-index: 6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.ek-b2b-card:hover .ek-btn-lens, .ali-b2b-card:hover .ali-btn-lens {
    opacity: 1;
    transform: scale(1);
}
.ek-btn-lens:hover, .ali-btn-lens:hover {
    background: var(--ek-b2b-orange);
    color: #ffffff;
    border-color: var(--ek-b2b-orange);
}

/* Reorder Rate Badge on Card (Screenshot 2 Match) */
.ek-reorder-badge-row, .ali-reorder-badge-row {
    margin: 4px 0 6px;
}
.ek-reorder-badge, .ali-reorder-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #15803d;
    background: #f0fdf4;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #bbf7d0;
}
.ek-reorder-badge i, .ali-reorder-badge i {
    font-size: 10px;
}

/* --------------------------------------------------------------------------
   4. Floating Quick Actions Dock (Screenshot 2 Match)
   -------------------------------------------------------------------------- */
.ek-b2b-floating-dock {
    position: fixed;
    right: 14px;
    bottom: 80px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ek-b2b-dock-item {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 18px;
    text-decoration: none !important;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.ek-b2b-dock-item:hover {
    background: var(--ek-b2b-orange);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(255, 106, 0, 0.32);
}

/* --------------------------------------------------------------------------
   5. B2B Trust Pillars
   -------------------------------------------------------------------------- */
.ek-b2b-pillars-section {
    max-width: 1240px;
    margin: 30px auto;
    padding: 0 16px;
}

.ek-b2b-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

@media (max-width: 991px) {
    .ek-b2b-pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .ek-b2b-pillars-grid {
        grid-template-columns: 1fr;
    }
}

.ek-b2b-pillar-card {
    background: #ffffff;
    border: 1px solid var(--ek-b2b-border);
    border-radius: var(--ek-b2b-radius);
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.ek-b2b-pillar-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--ek-b2b-orange-light);
    color: var(--ek-b2b-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ek-b2b-pillar-text h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px;
}

.ek-b2b-pillar-text p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* --------------------------------------------------------------------------
   6. Image Search Modal
   -------------------------------------------------------------------------- */
.ek-b2b-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    z-index: 100000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.ek-b2b-modal-overlay.open {
    display: flex;
}

.ek-b2b-modal-card {
    background: #ffffff;
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.ek-b2b-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 20px;
    color: #64748b;
    cursor: pointer;
}

.ek-b2b-modal-dropzone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 36px 20px;
    text-align: center;
    margin-top: 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.ek-b2b-modal-dropzone:hover {
    border-color: var(--ek-b2b-orange);
    background: var(--ek-b2b-orange-light);
}

.ek-b2b-drop-icon {
    font-size: 40px;
    color: var(--ek-b2b-orange);
    margin-bottom: 10px;
}
