/* ==========================================================================
   ExpoKa - Verified Supplier B2B Storefront Stylesheet
   Complete, Conflict-Free Styling for Header Card, Storefront Navbar,
   Highlighted In-Store Search, Category Filter Pills, Source Product Banner,
   Catalog Pagination, Trust Pillars, Company Profile & Scroll-Aware Dock.
   ========================================================================== */

:root {
    --ali-orange: #ff6600;
    --ali-orange-hover: #e05500;
    --ali-orange-light: #fff5ee;
    --ali-orange-border: #ffd1b3;
    --ali-gold: #f59e0b;
    --ali-gold-dark: #b45309;
    --ali-gold-light: #fef3c7;
    --ali-gold-border: #fcd34d;
    --ali-dark-nav: #1e2530;
    --ali-dark-nav-hover: #2a3443;
    --ali-blue: #0284c7;
    --ali-blue-light: #e0f2fe;
    --ali-green: #10b981;
    --ali-text-main: #0f172a;
    --ali-text-muted: #64748b;
    --ali-border: #e2e8f0;
    --ali-card-bg: #ffffff;
    --ali-radius: 12px;
    --ali-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.07);
}

/* --- Container Adjustments --- */
.profile-page-wrapper {
    background-color: #f4f6f9;
    padding-bottom: 50px;
    min-height: 100vh;
}

.profile-page-top .profile-details {
    display: none !important;
}

/* ==========================================================================
   1. SUPPLIER HEADER CARD (_profile_user_info.php)
   ========================================================================== */
.ali-storefront-header-card {
    background: #ffffff !important;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 22px -4px rgba(15, 23, 42, 0.07);
    margin-bottom: 14px;
    padding: 22px 24px;
    position: relative;
}

/* Support both .ali-header-main-grid and legacy .ali-header-main-row */
.ali-header-main-grid,
.ali-header-main-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 215px;
    align-items: center;
    gap: 22px;
}

@media (max-width: 1199px) {
    .ali-header-main-grid,
    .ali-header-main-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .ali-header-cta-dock,
    .ali-supplier-cta-block {
        grid-column: 1 / -1;
        flex-direction: row !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        border-top: 1px solid #f1f5f9;
        padding-top: 14px;
    }
}

@media (max-width: 767px) {
    .ali-storefront-header-card {
        padding: 16px;
    }
    .ali-header-main-grid,
    .ali-header-main-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Company Identity Left Block */
.ali-company-identity,
.ali-supplier-brand-block {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
}

@media (max-width: 575px) {
    .ali-company-identity,
    .ali-supplier-brand-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Framed 108x108 Logo Box */
.ali-logo-frame,
.ali-brand-avatar-box {
    width: 108px;
    height: 108px;
    min-width: 108px;
    max-width: 108px;
    border-radius: 14px;
    border: 2px solid #edf2f7;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    background: #ffffff;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ali-logo-frame img,
.ali-brand-avatar-box img {
    width: 100% !important;
    height: 100% !important;
    max-width: 108px !important;
    max-height: 108px !important;
    object-fit: cover !important;
    display: block !important;
}

.ali-logo-verified-ribbon,
.ali-avatar-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.88);
    color: #ffd700;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    padding: 3px 4px;
    letter-spacing: 0.04em;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* Company Details Column */
.ali-company-details,
.ali-supplier-details {
    flex: 1;
    min-width: 0;
}

.ali-company-title-row,
.ali-supplier-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

@media (max-width: 575px) {
    .ali-company-title-row,
    .ali-supplier-title-row {
        justify-content: center;
    }
}

.ali-company-name,
.ali-supplier-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0;
}

/* Badges Row (Verified Supplier, X YRS, Location) */
.ali-badges-row,
.ali-trust-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

@media (max-width: 575px) {
    .ali-badges-row,
    .ali-trust-meta-row {
        justify-content: center;
    }
}

.ali-badge-verified-supplier {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
    border: 1px solid #fde68a;
    border-radius: 9999px;
    padding: 3px 11px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.14);
    white-space: nowrap;
}

.ali-badge-verified-supplier i,
.ali-badge-verified-supplier svg {
    color: #f59e0b;
}

.ali-badge-years,
.ali-year-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.ali-badge-location,
.ali-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* Main Categories & Clickable Filter Pills */
.ali-main-products-line,
.ali-main-categories-row,
.ali-category-pills-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12.5px;
    color: #334155;
}

@media (max-width: 575px) {
    .ali-main-products-line,
    .ali-category-pills-row {
        justify-content: center;
    }
}

.ali-main-products-line strong {
    color: #0f172a;
    font-weight: 700;
    margin-right: 2px;
}

.ali-cat-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #334155 !important;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    text-decoration: none !important;
    transition: all 0.18s ease;
    line-height: 1.35;
}

.ali-cat-filter-pill:hover {
    color: #ff6600 !important;
    border-color: #ff6600;
    background: #fff7ed;
}

.ali-cat-filter-pill.is-active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ff6600 0%, #e05500 100%);
    border-color: #ff6600;
    box-shadow: 0 2px 6px rgba(255, 102, 0, 0.25);
}

/* Contact Meta Strip (Phone / Email) */
.ali-contact-meta-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    font-size: 12.5px;
    color: #475569;
}

.ali-contact-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.ali-contact-meta-item i {
    color: #ff6600;
}

.ali-contact-meta-item a {
    color: #0284c7;
    font-weight: 700;
    text-decoration: none;
}

/* 2. Performance Metrics Strip (3 Columns: Store Rating, Total Products, Store Followers) */
.ali-performance-metrics-strip,
.ali-metrics-grid {
    display: flex;
    align-items: stretch;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 6px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .ali-performance-metrics-strip,
    .ali-metrics-grid {
        width: 100%;
        justify-content: space-around;
    }
}

.ali-metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px 18px;
    border-right: 1px solid #e2e8f0;
    min-width: 105px;
    gap: 2px;
}

.ali-metric-item:last-child {
    border-right: none;
}

@media (max-width: 575px) {
    .ali-metric-item {
        padding: 4px 10px;
        min-width: 0;
        flex: 1;
    }
}

.ali-metric-label,
.ali-metric-item .metric-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.ali-metric-value,
.ali-metric-item .metric-val {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ali-metric-value.highlight-orange {
    color: #ff6600;
}

.ali-metric-value.highlight-green {
    color: #059669;
    font-size: 14px;
}

.ali-metric-sub {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

/* 3. B2B Action CTA Dock */
.ali-header-cta-dock,
.ali-supplier-cta-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 205px;
}

.ali-btn-contact-supplier,
.ali-btn-contact,
a.ali-btn-contact-supplier,
button.ali-btn-contact-supplier {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #ff6600 0%, #f97316 100%) !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    padding: 10px 18px !important;
    border-radius: 9999px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.28) !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    width: 100%;
}

.ali-btn-contact-supplier:hover,
.ali-btn-contact:hover {
    background: linear-gradient(135deg, #e05500 0%, #ea580c 100%) !important;
    box-shadow: 0 6px 16px rgba(255, 102, 0, 0.38) !important;
    transform: translateY(-1px) !important;
    color: #ffffff !important;
}

.ali-btn-chat-now,
.ali-btn-chat,
a.ali-btn-chat-now,
button.ali-btn-chat-now {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #fff7ed !important;
    color: #ea580c !important;
    border: 1.5px solid #fdba74 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    padding: 9px 18px !important;
    border-radius: 9999px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    width: 100%;
}

.ali-btn-chat-now:hover,
.ali-btn-chat:hover {
    background: #ffedd5 !important;
    border-color: #fb923c !important;
    color: #c2410c !important;
    transform: translateY(-1px) !important;
}

.ali-header-cta-dock form {
    width: 100%;
}

.ali-btn-follow {
    width: 100%;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 9999px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    padding: 7px 14px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.ali-btn-follow:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

.ali-social-share-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
}

.ali-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 14px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.18s ease;
}

.ali-icon-btn:hover {
    background: #fff7ed;
    border-color: #fdba74;
    color: #ff6600;
    transform: translateY(-1px);
}

@media (max-width: 1199px) and (min-width: 768px) {
    .ali-btn-contact-supplier,
    .ali-btn-chat-now,
    .ali-btn-follow,
    .ali-header-cta-dock form {
        width: auto !important;
        flex: 1;
    }
}

/* ==========================================================================
   2. STOREFRONT SECONDARY NAVIGATION BAR & HIGHLIGHTED IN-STORE SEARCH
   ========================================================================== */
.ali-storefront-navbar {
    background: #1e2530;
    border-radius: 10px;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    position: sticky;
    top: 64px;
    z-index: 95;
}

.ali-nav-tabs-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.ali-nav-tabs-list::-webkit-scrollbar {
    display: none;
}

.ali-nav-tab-item a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 700;
    padding: 11px 16px;
    text-decoration: none !important;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.ali-nav-tab-item a:hover,
.ali-nav-tab-item.active a {
    color: #ffffff;
}

.ali-nav-tab-item.active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    right: 14px;
    height: 3px;
    background: #ff6600;
    border-radius: 3px 3px 0 0;
}

.ali-tab-count {
    background: rgba(255, 255, 255, 0.16);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 9999px;
}

/* Highlighted Pill In-Store Search Bar */
.ali-nav-search-wrapper {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .ali-storefront-navbar {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 12px;
        position: relative;
        top: 0;
    }
    .ali-nav-search-wrapper {
        width: 100%;
    }
}

.ali-nav-search-form {
    display: flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 2px solid #ff6600 !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
    height: 40px !important;
    width: 330px !important;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.2), 0 3px 10px rgba(0, 0, 0, 0.16) !important;
    transition: all 0.22s ease !important;
    position: relative !important;
}

@media (max-width: 991px) {
    .ali-nav-search-form {
        width: 100% !important;
        height: 42px !important;
    }
}

.ali-nav-search-form:focus-within,
.ali-nav-search-form.is-highlighted {
    border-color: #ff5500 !important;
    box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.32), 0 6px 18px rgba(255, 102, 0, 0.25) !important;
}

.ali-search-scope-tag {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    color: #ea580c;
    font-size: 11px;
    font-weight: 800;
    padding: 0 10px 0 13px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-right: 1.5px solid #fed7aa;
    white-space: nowrap;
    user-select: none;
    flex-shrink: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.ali-search-scope-tag i {
    font-size: 11px;
    color: #ff6600;
}

.ali-nav-search-input {
    border: none !important;
    background: transparent !important;
    color: #0f172a !important;
    padding: 0 10px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    width: 100% !important;
    outline: none !important;
    box-shadow: none !important;
}

.ali-nav-search-input::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

.ali-nav-search-clear-btn {
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 0 8px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ali-nav-search-clear-btn:hover {
    color: #ef4444;
}

.ali-nav-search-btn {
    border: none !important;
    background: linear-gradient(135deg, #ff6600 0%, #ff4500 100%) !important;
    color: #ffffff !important;
    padding: 0 16px !important;
    height: 100% !important;
    cursor: pointer;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    border-radius: 0 9999px 9999px 0 !important;
    flex-shrink: 0;
}

.ali-nav-search-btn:hover {
    background: linear-gradient(135deg, #ff7711 0%, #ff5500 100%) !important;
}

@media (max-width: 575px) {
    .ali-search-btn-text {
        display: none;
    }
    .ali-nav-search-btn {
        padding: 0 14px !important;
    }
    .ali-search-scope-tag .ali-scope-label {
        display: none;
    }
    .ali-search-scope-tag {
        padding: 0 8px 0 10px;
    }
}

/* Live Search Autocomplete Dropdown */
.ali-store-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.08);
    border: 1.5px solid #fed7aa;
    z-index: 1050;
    overflow: hidden;
}

@media (max-width: 767px) {
    .ali-store-search-dropdown {
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
    }
}

.ali-search-dropdown-list {
    max-height: 320px;
    overflow-y: auto;
    padding: 6px 0;
}

.ali-search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none !important;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #f8fafc;
}

.ali-search-dropdown-item:hover,
.ali-search-dropdown-item.is-active {
    background-color: #fff7ed;
}

.ali-search-thumb-box {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.ali-search-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ali-search-info {
    flex: 1;
    min-width: 0;
}

.ali-search-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ali-search-item-price {
    font-size: 13px;
    font-weight: 700;
    color: #ff6600;
}

.ali-search-dropdown-footer {
    display: block;
    padding: 10px 14px;
    background: #fff7ed;
    color: #ea580c !important;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    border-top: 1px solid #ffedd5;
}

.ali-search-empty {
    padding: 18px 16px;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}

/* Compact Active Search / Filter Status Bar */
.ali-store-search-feedback {
    background: #ffffff;
    border: 1px solid #fed7aa;
    border-left: 4px solid #ff6600;
    border-radius: 10px;
    padding: 9px 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.06);
}

.ali-search-feedback-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ali-search-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffedd5;
    color: #ff6600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.ali-search-text-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ali-search-title {
    font-size: 13.5px;
    color: #1e293b;
    font-weight: 600;
}

.ali-search-title strong {
    color: #ff6600;
    font-weight: 800;
}

.ali-search-count-pill {
    font-size: 11.5px;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 9999px;
    padding: 2px 9px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ali-search-clear-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #475569 !important;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    padding: 4px 12px;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.ali-search-clear-btn:hover {
    background: #fee2e2;
    color: #dc2626 !important;
    border-color: #fca5a5;
}

/* ==========================================================================
   3. HERO SHOWROOM BANNER & 3 VERIFIED TRUST PILLARS
   ========================================================================== */
.ali-storefront-hero-banner {
    position: relative;
    border-radius: var(--ali-radius);
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: var(--ali-shadow);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #334155 100%);
    min-height: 170px;
    max-height: 240px;
}

.ali-storefront-hero-banner img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.ali-dynamic-hero-showroom {
    width: 100%;
    min-height: 170px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
}

.ali-hero-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.55) 65%, rgba(15, 23, 42, 0.25) 100%);
    padding: 22px 26px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

.ali-hero-banner-text h2 {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.ali-hero-banner-text p {
    font-size: 13.5px;
    color: #e2e8f0;
    margin: 0;
    max-width: 680px;
}

.ali-hero-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ali-hero-cert-tag {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 3 Trust Pillars Strip */
.ali-trust-pillars-card {
    background: #ffffff;
    border-radius: var(--ali-radius);
    border: 1px solid #e2e8f0;
    padding: 16px 20px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.ali-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 991px) {
    .ali-pillars-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.ali-pillar-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 4px 10px;
    border-right: 1px solid #f1f5f9;
}

.ali-pillar-box:last-child {
    border-right: none;
}

@media (max-width: 991px) {
    .ali-pillar-box {
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 10px;
    }
    .ali-pillar-box:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

.ali-pillar-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: #fff7ed;
    color: #ea580c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    border: 1px solid #ffedd5;
}

.ali-pillar-box:nth-child(1) .ali-pillar-icon { background: #fffbeb; color: #d97706; border-color: #fef3c7; }
.ali-pillar-box:nth-child(2) .ali-pillar-icon { background: #eff6ff; color: #2563eb; border-color: #dbeafe; }
.ali-pillar-box:nth-child(3) .ali-pillar-icon { background: #f0fdf4; color: #16a34a; border-color: #dcfce7; }

.ali-pillar-content h4 {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px 0;
}

.ali-pillar-content p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.38;
}

/* ==========================================================================
   4. COMPANY PROFILE & VERIFIED CAPABILITIES SECTION
   ========================================================================== */
.ali-company-profile-section {
    background: #ffffff;
    border-radius: var(--ali-radius);
    border: 1px solid #e2e8f0;
    padding: 26px;
    margin-bottom: 28px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.ali-section-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.ali-section-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ali-table-specs {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 22px;
}

.ali-table-specs th,
.ali-table-specs td {
    padding: 11px 16px;
    font-size: 13px;
    border-bottom: 1px solid #f1f5f9;
}

.ali-table-specs tr:last-child th,
.ali-table-specs tr:last-child td {
    border-bottom: none;
}

.ali-table-specs th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    width: 28%;
    border-right: 1px solid #f1f5f9;
}

.ali-table-specs td {
    color: #0f172a;
    font-weight: 500;
    background: #ffffff;
}

@media (max-width: 575px) {
    .ali-table-specs th {
        width: 38%;
        padding: 10px 12px;
    }
    .ali-table-specs td {
        padding: 10px 12px;
    }
}

.ali-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 14px;
}

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

@media (max-width: 575px) {
    .ali-values-grid {
        grid-template-columns: 1fr;
    }
}

.ali-value-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.ali-value-card .value-icon {
    font-size: 22px;
    color: #ff6600;
    margin-bottom: 8px;
}

.ali-value-card h5 {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.ali-value-card p {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.38;
}

/* ==========================================================================
   5. SCROLL-AWARE FLOATING DOCK (Does not overlap Header CTAs at top!)
   ========================================================================== */
.ali-floating-dock {
    position: fixed;
    right: 20px;
    bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.ali-floating-dock.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.ali-floating-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 9999px;
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ali-floating-btn.btn-inquire {
    background: linear-gradient(135deg, #ff6600 0%, #ea580c 100%);
}

.ali-floating-btn.btn-chat {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 767px) {
    .ali-floating-dock {
        right: 0;
        bottom: 0;
        left: 0;
        background: #ffffff;
        padding: 10px 14px;
        flex-direction: row;
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.1);
        border-top: 1px solid #e2e8f0;
        border-radius: 0;
        gap: 10px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }
    .ali-floating-btn {
        flex: 1;
        justify-content: center;
        padding: 10px 14px;
        border-radius: 8px;
    }
}

/* ==========================================================================
   6. SOURCE PRODUCT CONTEXT BANNER & NUMBERED B2B PAGINATION BAR
   ========================================================================== */
.ali-source-product-banner {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    background: linear-gradient(90deg, #fff7ed 0%, #ffffff 100%);
    border: 1px solid #fed7aa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.ali-source-product-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.ali-source-product-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.ali-source-product-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ali-source-product-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #ea580c;
}

.ali-source-product-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ali-source-product-price {
    font-size: 13px;
    font-weight: 800;
    color: #ff6600;
}

.ali-source-product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ali-source-btn-back,
.ali-source-btn-inquire {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.18s ease;
}

.ali-source-btn-back {
    background: #ffffff;
    color: #334155;
    border: 1px solid #cbd5e1;
}

.ali-source-btn-inquire {
    background: #ff6600;
    color: #ffffff;
    border: 1px solid #ff6600;
}

/* Numbered B2B Storefront Pagination Bar (?page=2) */
.ali-b2b-pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.ali-pagination-summary {
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ali-pagination-summary strong {
    color: #0f172a;
    font-weight: 700;
}

.ali-pagination-dot {
    color: #cbd5e1;
}

.ali-pagination-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ali-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-decoration: none !important;
    transition: all 0.18s ease;
}

.ali-page-btn:hover {
    border-color: #ff6600;
    color: #ff6600;
    background: #fff7ed;
}

.ali-page-btn.is-active {
    background: linear-gradient(135deg, #ff6600 0%, #e05500 100%);
    color: #ffffff;
    border-color: #ff6600;
    box-shadow: 0 3px 8px rgba(255, 102, 0, 0.25);
}

.ali-page-ellipsis {
    padding: 0 4px;
    color: #94a3b8;
    font-weight: 700;
}
