/**
 * Vendor Store Page Stylesheet
 *
 * @package B2B Marketplace Theme
 * @version 1.0.828
 * @author Aboyit
 * @license GPL-2.0+
 */

/* ==========================================================================
   1. STORE FRONT WRAPPER & RESET
   ========================================================================== */
.b2b-vendor-storefront-wrapper {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 40px;
}

/* ==========================================================================
   2. STORE HERO CARD (HEADER, BANNER, PROFILE)
   ========================================================================== */
div#marketking_vendor_store_page_header.b2b-vendor-hero-card {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    margin-bottom: 20px !important;
    overflow: visible !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    padding: 0 !important;
}

/* Banner Cover */
div#marketking_vendor_store_page_banner.b2b-vendor-banner-cover {
    width: 100% !important;
    height: 220px !important;
    display: block !important;
    position: relative !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    border-radius: 15px 15px 0 0 !important;
    border: none !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.b2b-vendor-banner-default-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%) !important;
}

.b2b-vendor-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
}

/* Social links on top right of banner */
.b2b-vendor-socials-top {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.b2b-vendor-socials-top a {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.b2b-vendor-socials-top a:hover {
    background: #ffffff;
    color: #ea580c;
    transform: translateY(-2px);
}

/* Profile Bar Bottom */
div#marketking_vendor_store_page_profile.b2b-vendor-profile-bar {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    padding: 0 26px 22px !important;
    background: #ffffff !important;
    border-radius: 0 0 16px 16px !important;
    gap: 22px !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Avatar Wrap */
div#marketking_vendor_store_page_profile_pic.b2b-vendor-avatar-wrap {
    position: relative !important;
    margin-top: -50px !important;
    flex-shrink: 0 !important;
    width: 106px !important;
    height: 106px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    padding: 4px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12) !important;
    box-sizing: border-box !important;
}

.marketking_vendor_store_page_profile_image {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
    background: #f8fafc !important;
}

.b2b-vendor-verified-tick {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #ffffff;
    border-radius: 50%;
    color: #0284c7;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Profile Details */
.b2b-vendor-profile-info {
    flex: 1;
    min-width: 0;
    padding-top: 12px;
}

.b2b-vendor-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

h1#marketking_vendor_store_page_profile_name.b2b-vendor-store-name {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    display: inline-block !important;
    font-family: inherit !important;
}

.b2b-vendor-badges-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Meta List */
.b2b-vendor-meta-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.b2b-vendor-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px 12px;
    border-radius: 20px;
    line-height: 1.4;
}

.b2b-vendor-meta-item i {
    color: #ea580c;
    font-size: 12px;
}

.b2b-vendor-rating-item i {
    color: #f59e0b;
}

/* Actions Right */
.b2b-vendor-profile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding-bottom: 2px;
}

button.b2b-btn-follow,
.marketking_tabclass button.marketking_follow_button,
.b2b-vendor-profile-actions button.marketking_follow_button {
    background: #ffffff !important;
    color: #475569 !important;
    border: 1.5px solid #cbd5e1 !important;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    line-height: 1.4 !important;
    min-width: 0 !important;
}

button.b2b-btn-follow:hover,
.b2b-vendor-profile-actions button.marketking_follow_button:hover {
    background: #fff7ed !important;
    color: #ea580c !important;
    border-color: #fdba74 !important;
    transform: translateY(-1px) !important;
}

button.b2b-btn-contact-quick {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background: #fff7ed !important;
    color: #ea580c !important;
    border: 1px solid #fdba74 !important;
    padding: 4px 12px !important;
    height: 28px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(234, 88, 12, 0.08) !important;
    white-space: nowrap !important;
    outline: none !important;
    box-sizing: border-box !important;
}

button.b2b-btn-contact-quick i {
    font-size: 11px !important;
    color: inherit !important;
    line-height: 1 !important;
}

button.b2b-btn-contact-quick:hover {
    background: linear-gradient(135deg, #FF7600 0%, #F26522 100%) !important;
    color: #ffffff !important;
    border-color: #ea580c !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 3px 8px rgba(242, 101, 34, 0.25) !important;
}

button.b2b-btn-contact-quick:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(242, 101, 34, 0.2) !important;
}

/* ==========================================================================
   3. STORE NAVIGATION TABS
   ========================================================================== */
.marketking_tabclass.b2b-vendor-tabs-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 6px 10px !important;
    margin: 20px 0 24px 0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
}

.marketking_tabclass.b2b-vendor-tabs-nav::-webkit-scrollbar {
    display: none;
}

.marketking_tabclass_left {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
}

.marketking_tabclass .marketking_tabclass_left button.marketking_tablinks {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #64748b !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.marketking_tabclass .marketking_tabclass_left button.marketking_tablinks i {
    font-size: 14px !important;
    opacity: 0.85;
}

.marketking_tabclass .marketking_tabclass_left button.marketking_tablinks:hover {
    background: #fff7ed !important;
    color: #ea580c !important;
}

.marketking_tabclass .marketking_tabclass_left button.marketking_tablinks.active {
    background: var(--primary-gradient, linear-gradient(135deg, #FF7600 0%, #F26522 100%)) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(242, 101, 34, 0.25) !important;
}

.marketking_tabclass .marketking_tabclass_left button.marketking_tablinks.active i {
    color: #ffffff !important;
    opacity: 1;
}

/* ==========================================================================
   4. TAB CONTENT CONTAINER
   ========================================================================== */
.marketking_tab.b2b-store-tab-content {
    display: none;
    padding: 0 !important;
    outline: none !important;
    border: none !important;
}

.marketking_tab.b2b-store-tab-content.marketking_tab_active {
    display: block !important;
}

/* ==========================================================================
   5. PRODUCTS TAB (WOOCOMMERCE GRID OVERRIDES)
   ========================================================================== */
#marketking_vendor_tab_products .woocommerce {
    width: 100%;
}

/* Sắp xếp & đếm sản phẩm */
#marketking_vendor_tab_products .woocommerce-result-count {
    font-size: 14px !important;
    color: #64748b !important;
    margin: 0 0 16px 0 !important;
    float: left !important;
    line-height: 38px !important;
}

#marketking_vendor_tab_products .woocommerce-ordering {
    float: right !important;
    margin: 0 0 16px 0 !important;
}

#marketking_vendor_tab_products .woocommerce-ordering select.orderby {
    height: 38px !important;
    padding: 0 14px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 13.5px !important;
    color: #334155 !important;
    background: #ffffff !important;
    outline: none !important;
    cursor: pointer !important;
    transition: border-color 0.2s ease !important;
}

#marketking_vendor_tab_products .woocommerce-ordering select.orderby:focus {
    border-color: #ea580c !important;
}

/* Khắc phục triệt để dấu chấm li và chia lưới 4 cột */
#marketking_vendor_tab_products ul.products,
.b2b-store-tab-content ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    row-gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    clear: both !important;
    width: 100% !important;
}

#marketking_vendor_tab_products ul.products::before,
#marketking_vendor_tab_products ul.products::after,
.b2b-store-tab-content ul.products::before,
.b2b-store-tab-content ul.products::after {
    display: none !important;
}

#marketking_vendor_tab_products ul.products li.product,
.b2b-store-tab-content ul.products li.product {
    list-style: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    display: flex !important;
    flex-direction: column !important;
}

#marketking_vendor_tab_products ul.products li.product::before,
#marketking_vendor_tab_products ul.products li.product::after {
    display: none !important;
    content: none !important;
}

/* Card sản phẩm bên trong */
#marketking_vendor_tab_products .product-card,
.b2b-store-tab-content .product-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

#marketking_vendor_tab_products .product-card:hover,
.b2b-store-tab-content .product-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
    border-color: #cbd5e1 !important;
}

/* Ảnh sản phẩm */
#marketking_vendor_tab_products .product-image,
.b2b-store-tab-content .product-image {
    position: relative !important;
    width: 100% !important;
    height: 200px !important;
    padding: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

#marketking_vendor_tab_products .product-image img,
.b2b-store-tab-content .product-image img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

#marketking_vendor_tab_products .product-card:hover .product-image img,
.b2b-store-tab-content .product-card:hover .product-image img {
    transform: scale(1.04) !important;
}

/* Info sản phẩm */
#marketking_vendor_tab_products .product-info,
.b2b-store-tab-content .product-info {
    padding: 12px 14px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    justify-content: space-between !important;
    border-top: 1px solid #f1f5f9 !important;
}

#marketking_vendor_tab_products .product-title,
.b2b-store-tab-content .product-title {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    margin: 0 0 8px 0 !important;
    height: 38px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

#marketking_vendor_tab_products .product-title a,
.b2b-store-tab-content .product-title a {
    color: #1e293b !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

#marketking_vendor_tab_products .product-title a:hover,
.b2b-store-tab-content .product-title a:hover {
    color: #ea580c !important;
}

/* Giá sản phẩm */
#marketking_vendor_tab_products .product-price,
.b2b-store-tab-content .product-price {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #ea580c !important;
    margin-bottom: 12px !important;
}

/* Nút Mua hàng */
#marketking_vendor_tab_products .product-action,
.b2b-store-tab-content .product-action {
    margin-top: auto !important;
}

#marketking_vendor_tab_products .product-action a.button,
.b2b-store-tab-content .product-action a.button {
    width: 100% !important;
    padding: 8px 14px !important;
    border-radius: 6px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

/* ==========================================================================
   6. TAB DETAILS (CHI TIẾT NHÀ CUNG CẤP)
   ========================================================================== */
.b2b-vendor-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.b2b-info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.b2b-info-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.b2b-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff7ed;
    color: #ea580c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.b2b-info-content h4 {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.b2b-info-content p {
    font-size: 13.5px;
    color: #475569;
    margin: 0 0 4px 0;
    line-height: 1.5;
}

.b2b-info-highlight {
    font-size: 15px !important;
    font-weight: 600;
    color: #ea580c !important;
}

.b2b-info-sub {
    font-size: 13px !important;
    color: #64748b !important;
}

.b2b-vendor-about-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   7. TAB INQUIRIES (LIÊN HỆ & BÁO GIÁ)
   ========================================================================== */
.b2b-vendor-inquiry-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 26px;
    max-width: 680px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.b2b-inquiry-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.b2b-inquiry-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff7ed;
    color: #ea580c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.b2b-inquiry-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.b2b-inquiry-header p {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.b2b-inquiry-form-body #marketking_send_inquiry_textarea_abovetext {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.b2b-inquiry-form-body textarea#marketking_send_inquiry_textarea {
    width: 100% !important;
    min-height: 130px !important;
    padding: 12px 14px !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    color: #1e293b !important;
    box-sizing: border-box !important;
    outline: none !important;
    resize: vertical !important;
    transition: all 0.2s ease !important;
    margin-bottom: 16px !important;
}

.b2b-inquiry-form-body textarea#marketking_send_inquiry_textarea:focus {
    background: #ffffff !important;
    border-color: #ea580c !important;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12) !important;
}

/* ==========================================================================
   8. TAB REVIEWS & POLICIES
   ========================================================================== */
.b2b-vendor-reviews-card,
.b2b-vendor-info-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.b2b-empty-state {
    text-align: center;
    padding: 36px 20px;
    color: #94a3b8;
}

.b2b-empty-state i {
    font-size: 42px;
    margin-bottom: 12px;
    display: block;
    color: #cbd5e1;
}

.b2b-empty-state p {
    font-size: 14.5px;
    color: #64748b;
    margin: 0;
}

.b2b-rating-summary {
    font-size: 15px;
    color: #334155;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.b2b-rating-badge {
    background: #fef3c7;
    color: #b45309;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
}

/* ==========================================================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {

    #marketking_vendor_tab_products ul.products,
    .b2b-store-tab-content ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .b2b-vendor-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    div#marketking_vendor_store_page_banner.b2b-vendor-banner-cover {
        height: 160px !important;
    }

    div#marketking_vendor_store_page_profile.b2b-vendor-profile-bar {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 16px 20px !important;
        gap: 12px !important;
    }

    div#marketking_vendor_store_page_profile_pic.b2b-vendor-avatar-wrap {
        margin-top: -45px !important;
        width: 90px !important;
        height: 90px !important;
    }

    .b2b-vendor-title-row {
        justify-content: center !important;
    }

    .b2b-vendor-meta-list {
        justify-content: center !important;
    }

    .b2b-vendor-profile-actions {
        width: 100%;
        justify-content: center;
        margin-top: 6px;
    }

    #marketking_vendor_tab_products ul.products,
    .b2b-store-tab-content ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .b2b-vendor-info-grid {
        grid-template-columns: 1fr;
    }
}