/* =====================================================
   WEB EXPORT HEADER
   Lightweight responsive styling
   ===================================================== */

/* Header base */
.we-header {
    --we-primary: #1769aa;
    --we-primary-dark: #10538a;
    --we-text: #202938;
    --we-muted: #687386;
    --we-border: #e6eaf0;
    --we-surface: #ffffff;
    --we-soft-bg: #f5f8fc;

    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--we-surface);
    color: var(--we-text);
    font-family: inherit;
    box-shadow: 0 2px 12px rgba(20, 38, 65, 0.06);
}

.we-header *,
.we-header *::before,
.we-header *::after {
    box-sizing: border-box;
}

.we-header a {
    color: inherit;
    text-decoration: none;
}

.we-header button,
.we-header input {
    font: inherit;
}

.we-header button {
    cursor: pointer;
}

.we-header ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Top contact bar */
.we-topbar {
    background: #102a43;
    color: #edf4fb;
    font-size: 12px;
}

.we-topbar-inner,
.we-topbar-info,
.we-topbar-links {
    display: flex;
    align-items: center;
}

.we-topbar-inner {
    min-height: 36px;
    justify-content: space-between;
    gap: 16px;
}

.we-topbar-info,
.we-topbar-links {
    flex-wrap: wrap;
    gap: 20px;
}

.we-topbar-info a,
.we-topbar-location,
.we-topbar-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.we-topbar a:hover {
    color: #ffffff;
}

.we-topbar-join {
    color: #ffffff !important;
    font-weight: 700;
}

/* Main header row */
.we-main-header {
    background: var(--we-surface);
}

.we-main-row {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 82px;
}

/* Brand */
.we-logo {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 1px;
    line-height: 1.1;
}

.we-logo-name {
    color: var(--we-text);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1.2px;
}

.we-logo-name span {
    color: var(--we-primary);
}

.we-logo-tagline {
    color: var(--we-muted);
    font-size: 10px;
    letter-spacing: 0.35px;
}

/* Product search */
.we-search {
    display: flex;
    flex: 1 1 320px;
    max-width: 590px;
    min-width: 0;
    height: 44px;
    overflow: hidden;
    border: 1px solid #dce3ec;
    border-radius: 7px;
    background: #ffffff;
}

.we-search:focus-within {
    border-color: var(--we-primary);
    box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.10);
}

.we-search input {
    width: 100%;
    min-width: 0;
    padding: 0 14px;
    border: 0;
    outline: 0;
    color: var(--we-text);
    background: transparent;
    font-size: 13px;
}

.we-search input:focus {
    outline: 0;
    box-shadow: none;
}

.we-search button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 18px;
    border: 0;
    border-radius: 0;
    background: var(--we-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.we-search button:hover {
    background: var(--we-primary-dark);
}

/* Header action buttons */
.we-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    white-space: nowrap;
}

.we-login {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
}

.we-login:hover {
    color: var(--we-primary);
}

.we-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 17px;
    border: 1px solid var(--we-primary);
    border-radius: 6px;
    background: var(--we-primary);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.we-register:hover {
    background: var(--we-primary-dark);
}

/* Main navigation */
.we-navigation {
    border-top: 1px solid var(--we-border);
}

.we-nav-list {
    display: flex;
    align-items: stretch;
    gap: 4px;
}

.we-nav-list>li {
    position: relative;
}

.we-nav-link {
    display: inline-flex;
    min-height: 47px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 0;
    background: transparent;
    color: var(--we-text);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.we-nav-link:hover,
.we-nav-link:focus-visible {
    color: var(--we-primary);
}

.we-chevron {
    font-size: 10px;
    transition: transform 0.2s ease;
}

/* Mega menu: hidden until opened */
.we-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1010;
    display: none;
    width: min(1000px, calc(100vw - 40px));
    padding: 24px;
    border: 1px solid var(--we-border);
    border-top: 2px solid var(--we-primary);
    border-radius: 0 0 10px 10px;
    background: var(--we-surface);
    box-shadow: 0 16px 35px rgba(20, 38, 65, 0.14);
}

.we-has-dropdown.is-open>.we-mega-menu {
    display: block;
}

.we-has-dropdown.is-open>.we-dropdown-toggle .we-chevron {
    transform: rotate(180deg);
}

/* Mega menu title */
.we-mega-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--we-border);
}

.we-eyebrow {
    color: var(--we-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.we-mega-heading h2 {
    margin: 5px 0 0;
    color: var(--we-text);
    font-size: 20px;
    font-weight: 750;
    line-height: 1.4;
}

.we-view-all {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    color: var(--we-primary) !important;
    font-size: 12px;
    font-weight: 700;
}

/* Four category columns */
.we-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    padding: 22px 0;
}

.we-category-column {
    min-width: 0;
}

.we-category-column h3 {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 12px;
    color: var(--we-primary);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
}

.we-category-column h3>i {
    margin-top: 2px;
}

.we-category-column h3 a {
    color: var(--we-text);
}

.we-category-column h3 a:hover {
    color: var(--we-primary);
}

.we-category-column ul {
    display: grid;
    gap: 10px;
}

.we-category-column ul a {
    display: block;
    color: var(--we-muted);
    font-size: 12px;
    line-height: 1.55;
}

.we-category-column ul a:hover {
    color: var(--we-primary);
}

/* Industrial hub links */
.we-hubs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding-top: 16px;
    border-top: 1px solid var(--we-border);
    font-size: 11px;
}

.we-hubs strong {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--we-text);
}

.we-hubs>a {
    color: var(--we-muted);
}

.we-hubs>a:hover,
.we-hubs .we-all-hubs {
    color: var(--we-primary);
}

.we-hubs .we-all-hubs {
    font-weight: 700;
}

/* Mobile controls hidden on desktop */
.we-mobile-toggle,
.we-mobile-only {
    display: none;
}

/* Keyboard focus */
.we-header a:focus-visible,
.we-header button:focus-visible {
    outline: 2px solid var(--we-primary);
    outline-offset: 3px;
}

/* Tablet and smaller desktop */
@media (max-width: 1199px) {
    .we-main-row {
        gap: 18px;
    }

    .we-header-actions {
        gap: 10px;
    }

    .we-nav-link {
        padding: 0 11px;
    }

    .we-mega-menu {
        width: min(900px, calc(100vw - 30px));
    }

    .we-mega-grid {
        gap: 16px;
    }
}

/* Mobile navigation */
@media (max-width: 991px) {
    .we-topbar-inner {
        min-height: 35px;
    }

    .we-topbar-info {
        gap: 12px;
    }

    .we-topbar-location {
        display: none;
    }

    .we-topbar-links a:not(.we-topbar-join) {
        display: none;
    }

    .we-main-row {
        min-height: 72px;
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .we-logo {
        margin-right: auto;
    }

    .we-logo-name {
        font-size: 25px;
    }

    .we-search {
        order: 3;
        flex: 1 0 100%;
        max-width: none;
    }

    .we-header-actions {
        display: none;
    }

    .we-mobile-toggle {
        display: inline-flex;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--we-border);
        border-radius: 6px;
        background: #ffffff;
        color: var(--we-text);
        font-size: 25px;
    }

    /* Closed mobile navigation */
    .we-navigation {
        display: none;
        max-height: calc(100vh - 150px);
        overflow-y: auto;
        border-top: 1px solid var(--we-border);
    }

    .we-navigation.is-open {
        display: block;
    }

    .we-nav-list {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
    }

    .we-nav-list>li {
        width: 100%;
    }

    .we-nav-link {
        display: flex;
        width: 100%;
        min-height: 45px;
        justify-content: flex-start;
        padding: 10px 4px;
        white-space: normal;
        text-align: left;
    }

    .we-dropdown-toggle .we-chevron {
        margin-left: auto;
    }

    .we-mobile-only {
        display: block;
    }

    /* Mega menu becomes a mobile accordion */
    .we-mega-menu {
        position: static;
        width: 100%;
        padding: 14px 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .we-mega-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 0 0 14px;
    }

    .we-mega-heading h2 {
        font-size: 17px;
    }

    .we-mega-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 16px;
        padding: 18px 0;
    }

    .we-hubs {
        align-items: flex-start;
        gap: 12px;
    }
}

/* Narrow mobile screens */
@media (max-width: 480px) {
    .we-topbar {
        font-size: 11px;
    }

    .we-topbar-inner {
        gap: 8px;
    }

    .we-topbar-info {
        gap: 7px;
    }

    .we-topbar-links {
        gap: 0;
    }

    .we-main-row {
        gap: 10px;
    }

    .we-search button {
        padding: 0 13px;
    }

    .we-mega-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .we-mega-menu {
        padding-right: 0;
        padding-left: 0;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {

    .we-header *,
    .we-header *::before,
    .we-header *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}


/* =====================================================
   WEB EXPORT - PROFESSIONAL MEGA MENU REDESIGN
   Add this code at the END of web-export-header.css
   ===================================================== */

/* Main dropdown panel */
.we-header .we-mega-menu {
    width: min(1100px, calc(100vw - 40px));
    max-height: calc(100vh - 155px);
    overflow-y: auto;
    padding: 22px;
    border: 1px solid #e5ebf3;
    border-top: 3px solid #1769aa;
    border-radius: 0 0 12px 12px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(21, 43, 70, 0.14);
}

/* Heading area */
.we-header .we-mega-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e9eef5;
}

.we-header .we-eyebrow {
    display: inline-block;
    color: #1769aa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.we-header .we-mega-heading h2 {
    margin: 5px 0 0;
    color: #1e293b;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.4;
}

.we-header .we-view-all {
    flex-shrink: 0;
    padding: 9px 12px;
    border: 1px solid #dce9f8;
    border-radius: 6px;
    background: #f4f8fd;
    color: #1769aa !important;
    font-size: 12px;
    transition: background 0.2s ease;
}

.we-header .we-view-all:hover {
    background: #e7f1fc;
}

/* Four compact category cards */
.we-header .we-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
    padding: 18px 0;
}

.we-header .we-category-column {
    min-width: 0;
    height: auto;
    padding: 15px 13px;
    border: 1px solid #e8edf4;
    border-radius: 8px;
    background: #f8fafc;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.we-header .we-category-column:hover {
    border-color: #b9d5f2;
    background: #f4f8fd;
}

/* Category heading */
.we-header .we-category-column h3 {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 12px;
    padding-bottom: 11px;
    border-bottom: 1px solid #e5ebf3;
    color: #1769aa;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
}

.we-header .we-category-column h3>i {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-top: -3px;
    border-radius: 6px;
    background: #e8f2fc;
    color: #1769aa;
    font-size: 15px;
}

.we-header .we-category-column h3 a {
    color: #243247;
}

.we-header .we-category-column h3 a:hover {
    color: #1769aa;
}

/* Product links: compact, readable and consistent */
.we-header .we-category-column ul {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.we-header .we-category-column ul li {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.we-header .we-category-column ul a {
    display: block;
    padding: 6px 0;
    color: #637187;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
    transition: color 0.15s ease;
}

.we-header .we-category-column ul a:hover {
    color: #1769aa;
}

/* Industrial hubs: slim footer strip */
.we-header .we-hubs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 15px;
    padding: 14px 0 0;
    border-top: 1px solid #e5ebf3;
    font-size: 11px;
    line-height: 1.6;
}

.we-header .we-hubs strong {
    color: #253247;
    font-size: 11px;
}

.we-header .we-hubs>a {
    color: #65748b;
    transition: color 0.15s ease;
}

.we-header .we-hubs>a:hover,
.we-header .we-hubs .we-all-hubs {
    color: #1769aa;
}

.we-header .we-hubs .we-all-hubs {
    font-weight: 750;
}

/* Tablet */
@media (max-width: 1199px) and (min-width: 992px) {
    .we-header .we-mega-menu {
        width: min(940px, calc(100vw - 30px));
        padding: 18px;
    }

    .we-header .we-mega-grid {
        gap: 10px;
    }

    .we-header .we-category-column {
        padding: 12px 10px;
    }

    .we-header .we-category-column h3 {
        font-size: 12px;
    }

    .we-header .we-category-column ul a {
        font-size: 11px;
    }
}

/* Mobile and small tablet */
@media (max-width: 991px) {
    .we-header .we-navigation {
        max-height: calc(100dvh - 90px);
        overflow-x: hidden;
        overflow-y: auto;
    }

    .we-header .we-mega-menu {
        width: 100%;
        max-height: none;
        overflow: visible;
        padding: 14px 0;
        border: 0;
        border-top: 1px solid #e5ebf3;
        border-radius: 0;
        background: #ffffff;
        box-shadow: none;
    }

    .we-header .we-mega-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 0 0 14px;
    }

    .we-header .we-mega-heading h2 {
        font-size: 17px;
    }

    .we-header .we-view-all {
        padding: 7px 10px;
    }

    .we-header .we-mega-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 10px;
        padding: 14px 0;
    }

    .we-header .we-category-column {
        height: auto;
        padding: 12px;
    }

    .we-header .we-category-column h3 {
        font-size: 12px;
    }

    .we-header .we-category-column ul a {
        font-size: 12px;
    }

    .we-header .we-hubs {
        align-items: flex-start;
        gap: 10px 14px;
    }
}

/* Narrow mobile */
@media (max-width: 480px) {
    .we-header .we-mega-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .we-header .we-category-column {
        padding: 13px;
    }

    .we-header .we-category-column h3 {
        margin-bottom: 8px;
    }

    .we-header .we-category-column ul {
        gap: 0;
    }

    .we-header .we-category-column ul a {
        padding: 7px 0;
    }

    .we-header .we-hubs {
        gap: 9px 12px;
    }
}


/* ========================================
   JOIN FREE PAGE
======================================== */

.join-free {
    padding: 65px 0 75px;
    background: #f7f9fc;
}

.join-free .join-heading {
    max-width: 760px;
    margin: 0 auto;
}

.join-free .join-badge {
    display: inline-block;
    padding: 8px 17px;
    margin-bottom: 18px;
    border-radius: 30px;
    background: #e8f3ff;
    color: #1674c8;
    font-size: 13px;
    font-weight: 700;
}

.join-free .join-title {
    margin-bottom: 18px;
    color: #102a43;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.2;
}

.join-free .join-title span {
    color: #1674c8;
}

.join-free .join-description {
    max-width: 650px;
    margin: 0 auto;
    color: #64748b;
    font-size: 16px;
    line-height: 1.8;
}

/* Account Cards */

.join-free .join-card {
    height: 100%;
    padding: 35px;
    border: 1px solid #e4eaf1;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(16, 42, 67, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.join-free .join-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(16, 42, 67, 0.1);
}

.join-free .join-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 22px;
    border-radius: 16px;
    font-size: 30px;
}

.join-free .supplier-icon {
    background: #e8f3ff;
    color: #1674c8;
}

.join-free .buyer-icon {
    background: #e5f8ed;
    color: #159957;
}

.join-free .join-card-label {
    display: block;
    margin-bottom: 9px;
    color: #8492a6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.join-free .join-card h2 {
    margin-bottom: 14px;
    color: #102a43;
    font-size: 27px;
    font-weight: 800;
}

.join-free .join-card-description {
    min-height: 72px;
    margin-bottom: 23px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.8;
}

/* Feature List */

.join-free .join-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.join-free .join-features li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

.join-free .join-features li i {
    margin-top: 3px;
    font-size: 17px;
    flex-shrink: 0;
}

.join-free .supplier-card .join-features li i {
    color: #1674c8;
}

.join-free .buyer-card .join-features li i {
    color: #159957;
}

/* CTA Buttons */

.join-free .join-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    border-radius: 9px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.join-free .supplier-btn {
    background: linear-gradient(135deg, #3293ed, #1264b0);
}

.join-free .supplier-btn:hover {
    background: linear-gradient(135deg, #1264b0, #0b477f);
    color: #fff;
}

.join-free .buyer-btn {
    background: linear-gradient(135deg, #26b875, #13834f);
}

.join-free .buyer-btn:hover {
    background: linear-gradient(135deg, #13834f, #0c633b);
    color: #fff;
}

.join-free .join-card-btn i {
    transition: transform 0.25s ease;
}

.join-free .join-card-btn:hover i {
    transform: translateX(4px);
}

/* Login Links */

.join-free .join-login-text {
    margin: 20px 0 0;
    color: #64748b;
    font-size: 13px;
    text-align: center;
}

.join-free .join-login-text a {
    color: #1674c8;
    font-weight: 700;
    text-decoration: none;
}

.join-free .join-login-text a:hover {
    text-decoration: underline;
}

/* Bottom Note */

.join-free .join-bottom-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 800px;
    margin: 35px auto 0;
    padding: 18px 22px;
    border: 1px solid #e3ebf3;
    border-radius: 12px;
    background: #fff;
}

.join-free .join-bottom-note>i {
    color: #159957;
    font-size: 25px;
    flex-shrink: 0;
}

.join-free .join-bottom-note p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

/* Responsive */

@media (max-width: 767px) {
    .join-free {
        padding: 40px 0 50px;
    }

    .join-free .join-card {
        padding: 26px 22px;
    }

    .join-free .join-card h2 {
        font-size: 24px;
    }

    .join-free .join-card-description {
        min-height: auto;
    }

    .join-free .join-bottom-note {
        align-items: flex-start;
        padding: 16px;
    }
}

/* =========================================
   WEB EXPORT - MOBILE HEADER (FRESH)
========================================= */

@media (max-width: 991px) {

    /* Main header layout */
    .we-header .we-main-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    /* Logo - left side */
    .we-header .we-logo {
        order: 1;
        flex: 0 1 auto;
        margin-right: auto;
        min-width: 0;
    }

    /* Header actions */
    .we-header .we-header-actions {
        order: 2;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        margin-left: auto;
        white-space: nowrap;
    }

    /* Hide Login on mobile */
    .we-header .we-login {
        display: none !important;
    }

    /* Join Free button */
    .we-header .we-register {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        padding: 9px 13px;
        min-height: 38px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.2;
        white-space: nowrap;
    }

    /* Hamburger button */
    .we-header .we-mobile-toggle {
        order: 3;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 40px;
        height: 40px;
        padding: 0;
        margin: 0;
        border-radius: 8px;
    }

    /* Search - second row */
    .we-header .we-search {
        order: 4;
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .we-header .we-search input {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {

    .we-header .we-main-row {
        gap: 8px;
    }

    .we-header .we-logo img {
        max-width: 145px;
        height: auto;
    }

    .we-header .we-register {
        padding: 8px 10px;
        min-height: 36px;
        font-size: 12px;
    }

    .we-header .we-mobile-toggle {
        width: 36px;
        height: 36px;
    }

    .we-header .we-header-actions {
        gap: 6px;
    }

    .we-header .we-search {
        margin-top: 2px;
    }
}

/* Extra-small mobile screens */
@media (max-width: 360px) {

    .we-header .we-logo img {
        max-width: 120px;
    }

    .we-header .we-register {
        padding: 7px 8px;
        font-size: 11px;
    }

    .we-header .we-mobile-toggle {
        width: 34px;
        height: 34px;
    }
}

/* ==========================================
   WEB EXPORT - MOBILE SLIDE-OUT DRAWER
========================================== */

/* Overlay behind the drawer */
.we-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    background: rgba(10, 25, 48, 0.58);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

/* Drawer panel */
.we-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;

    display: flex;
    flex-direction: column;

    width: min( min(540px, 88vw), 100%);
    height: 100vh;
    height: 100dvh;

    background: #f5f8fe;
    box-shadow: 12px 0 40px rgba(15, 35, 70, 0.18);

    transform: translateX(-105%);
    transition: transform 0.32s ease;
    visibility: hidden;
    overflow: hidden;
}

/* Open state */
body.we-drawer-open .we-drawer-overlay {
    opacity: 1;
    visibility: visible;
}

body.we-drawer-open .we-mobile-drawer {
    transform: translateX(0);
    visibility: visible;
}

/* Stop background page scrolling */
body.we-drawer-open {
    overflow: hidden;
}

/* Blue profile header */
.we-drawer-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;

    padding: 25px 24px;
    min-height: 120px;

    color: #fff;
    background: linear-gradient(120deg, #0759b7 0%, #0797d0 100%);
}

.we-drawer-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 66px;
    height: 66px;
    border-radius: 50%;

    color: #1264bd;
    background: #fff;

    font-size: 27px;
    font-weight: 700;
}

.we-drawer-welcome {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.we-drawer-welcome span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
}

.we-drawer-welcome strong {
    font-size: 23px;
    line-height: 1.3;
    color: #fff;
}

.we-drawer-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 46px;
    height: 46px;
    margin-left: auto;

    color: #fff;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;

    font-size: 19px;
    cursor: pointer;
}

/* Login and Join Free buttons */
.we-drawer-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex-shrink: 0;

    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #e0e7f1;
}

.we-drawer-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 54px;
    padding: 10px;

    color: #075dc1;
    background: #edf5ff;
    border: 1px solid #cfe3ff;
    border-radius: 14px;

    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.we-drawer-auth-btn:hover {
    color: #075dc1;
    background: #e1efff;
}

/* Scrollable drawer content */
.we-drawer-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;

    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: #c7d5e8 transparent;
}

/* Menu sections */
.we-drawer-section h2 {
    margin: 0 0 11px 5px;

    color: #183467;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 800;
    text-transform: uppercase;
}

/* White rounded menu cards */
.we-drawer-card {
    padding: 7px 12px;
    background: #fff;
    border: 1px solid #dce6f3;
    border-radius: 19px;
    box-shadow: 0 5px 18px rgba(35, 69, 115, 0.035);
}

/* Individual menu row */
.we-drawer-link {
    display: flex;
    align-items: center;
    gap: 14px;

    min-height: 67px;
    padding: 9px 7px;

    color: #526078;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;

    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.we-drawer-link:hover {
    color: #075dc1;
    background: #f4f8ff;
}

.we-drawer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 48px;
    height: 48px;

    color: #1670ed;
    background: #edf5ff;
    border-radius: 13px;
    font-size: 21px;
}

.we-drawer-link > span:nth-child(2) {
    flex: 1;
}

.we-drawer-arrow {
    flex-shrink: 0;
    color: #9aabc1;
    font-size: 17px;
}

/* Contact assistance card */
.we-drawer-help {
    display: flex;
    align-items: center;
    gap: 15px;

    margin: 0 0 6px;
    padding: 17px 15px;

    color: #173466;
    background: #fff7ef;
    border: 1px solid #ffd5b2;
    border-radius: 18px;

    text-decoration: none;
}

.we-drawer-help-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 60px;
    height: 60px;

    color: #fff;
    background: #ff7b19;
    border-radius: 15px;
    font-size: 25px;
}

.we-drawer-help > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.we-drawer-help small {
    color: #8a7564;
    font-size: 13px;
}

.we-drawer-help strong {
    color: #173466;
    font-size: 15px;
    overflow-wrap: anywhere;
}

/* Desktop: hide mobile drawer */
@media (min-width: 992px) {
    .we-drawer-overlay,
    .we-mobile-drawer {
        display: none !important;
    }
}

/* Smaller phones */
@media (max-width: 380px) {
    .we-drawer-profile {
        gap: 11px;
        padding: 20px 16px;
        min-height: 105px;
    }

    .we-drawer-avatar {
        width: 54px;
        height: 54px;
        font-size: 23px;
    }

    .we-drawer-welcome strong {
        font-size: 20px;
    }

    .we-drawer-close {
        width: 40px;
        height: 40px;
    }

    .we-drawer-auth {
        gap: 8px;
        padding: 13px 14px;
    }

    .we-drawer-auth-btn {
        min-height: 48px;
        font-size: 14px;
    }

    .we-drawer-content {
        padding: 17px 14px;
    }

    .we-drawer-link {
        gap: 11px;
        min-height: 61px;
        font-size: 14px;
    }

    .we-drawer-icon {
        width: 43px;
        height: 43px;
        font-size: 19px;
    }

    .we-drawer-section h2 {
        font-size: 15px;
    }
}

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
    .we-mobile-drawer,
    .we-drawer-overlay,
    .we-drawer-link,
    .we-drawer-auth-btn {
        transition: none !important;
    }
}


/* =========================================
   Web Export B2B - Header Account Dropdown
   Theme: Professional Blue
========================================= */

/* Account button */
.we-account-dropdown .we-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    max-width: 230px;
    padding: 10px 16px;
    border: 1px solid rgba(23, 105, 170, 0.22);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    color: #1769aa;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(23, 105, 170, 0.08);
    transition: all 0.25s ease;
}

/* Buyer name truncation */
.we-account-dropdown .we-login {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Account icon */
.we-account-dropdown .we-login i {
    flex-shrink: 0;
    font-size: 19px;
}

/* Hover effect */
.we-account-dropdown .we-login:hover,
.we-account-dropdown .we-login:focus {
    background: #1769aa;
    color: #ffffff;
    border-color: #1769aa;
    box-shadow: 0 6px 16px rgba(23, 105, 170, 0.2);
}

/* Dropdown menu */
.we-account-dropdown .dropdown-menu {
    min-width: 220px;
    margin-top: 12px;
    padding: 8px;
    border: 1px solid #e5edf5;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(20, 50, 80, 0.14);
}

/* Dropdown links */
.we-account-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 11px 12px;
    border-radius: 9px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Dropdown link hover */
.we-account-dropdown .dropdown-item:hover,
.we-account-dropdown .dropdown-item:focus {
    background: #edf6ff;
    color: #1769aa;
}

/* Dropdown icons */
.we-account-dropdown .dropdown-item i {
    color: #1769aa;
    font-size: 17px;
}

/* Dropdown divider */
.we-account-dropdown .dropdown-divider {
    margin: 6px 0;
    border-color: #e8eef5;
}

/* Keyboard focus accessibility */
.we-account-dropdown .we-login:focus-visible,
.we-account-dropdown .dropdown-item:focus-visible {
    outline: 2px solid #1769aa;
    outline-offset: 2px;
}

/* Mobile adjustment */
@media (max-width: 767px) {
    .we-account-dropdown .we-login {
        max-width: 180px;
        padding: 9px 12px;
        font-size: 13px;
    }

    .we-account-dropdown .dropdown-menu {
        min-width: 200px;
    }
}
