/* ============================================================
   VUNJABEI MARKET - PROFESSIONAL HEADER V1
   ============================================================ */

.vj-pro-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #ffffff;
    color: #004f3f;
    font-family: inherit;
}

/* TOP BAR */

.vj-pro-topbar {
    width: 100%;
    background:
        linear-gradient(90deg, rgba(0,79,63,.98), rgba(0,92,72,.98), rgba(0,79,63,.98));
    color: #ffffff;
    min-height: 54px;
}

.vj-pro-topbar-inner {
    width: min(1440px, calc(100% - 48px));
    min-height: 54px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.vj-pro-topbar-left {
    display: flex;
    align-items: center;
    gap: 22px;
}

.vj-pro-top-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .05px;
}

.vj-pro-top-item svg,
.vj-pro-shopping-location > svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.vj-pro-top-divider {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,.38);
}

.vj-pro-shopping-location {
    display: flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
}

.vj-pro-shopping-location strong {
    color: #39d9a6;
    font-weight: 800;
}

.vj-pro-chevron {
    width: 17px !important;
    height: 17px !important;
    margin-left: 2px;
}

/* MAIN HEADER */

.vj-pro-main {
    background: #ffffff;
    border-bottom: 1px solid #e6ebe9;
    box-shadow: 0 4px 18px rgba(0, 53, 43, .045);
}

.vj-pro-main-inner {
    width: min(1440px, calc(100% - 48px));
    min-height: 168px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 270px minmax(380px, 1fr) 125px 1px 105px;
    align-items: center;
    column-gap: 24px;
}

/* LOGO */

.vj-pro-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    width: 100%;
    max-width: 245px;
}

.vj-pro-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 235px;
    max-height: 92px;
    object-fit: contain;
}

/* SEARCH */

.vj-pro-search {
    width: 100%;
    margin: 0;
}

.vj-pro-search-field {
    height: 88px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 7px;
    background: #ffffff;
    border: 1px solid #dce5e2;
    border-radius: 19px;
    box-shadow:
        0 4px 18px rgba(0, 70, 55, .055),
        inset 0 0 0 1px rgba(255,255,255,.8);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.vj-pro-search-field:focus-within {
    border-color: #008b68;
    box-shadow:
        0 0 0 4px rgba(0, 139, 104, .08),
        0 6px 22px rgba(0, 70, 55, .08);
}

.vj-pro-search-icon {
    width: 29px;
    height: 29px;
    margin-left: 23px;
    margin-right: 17px;
    fill: none;
    stroke: #111f1b;
    stroke-width: 2;
    stroke-linecap: round;
    flex: 0 0 auto;
}

.vj-pro-search-field input {
    min-width: 0;
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #17342d;
    font-size: 17px;
    font-weight: 500;
}

.vj-pro-search-field input::placeholder {
    color: #697673;
    opacity: 1;
}

.vj-pro-search-button {
    height: 72px;
    min-width: 170px;
    padding: 0 27px;
    border: 0;
    border-radius: 15px;
    background: #ef233c;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(239,35,60,.18);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.vj-pro-search-button:hover {
    background: #d91d34;
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(239,35,60,.23);
}

.vj-pro-search-button svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* ACCOUNT / CART */

.vj-pro-action {
    min-height: 116px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    color: #004f3f;
    font-weight: 800;
    transition: transform .16s ease, color .16s ease;
}

.vj-pro-action:hover {
    color: #ef233c;
    transform: translateY(-2px);
}

.vj-pro-action-icon {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #eaf7f3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vj-pro-action-icon svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vj-pro-action-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 16px;
    line-height: 1;
}

.vj-pro-small-chevron {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.vj-pro-action-separator {
    width: 1px;
    height: 68px;
    background: #dfe7e4;
}

.vj-pro-cart-badge {
    position: absolute;
    top: -6px;
    right: -5px;
    min-width: 31px;
    height: 31px;
    padding: 0 8px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ef233c;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    border: 3px solid #ffffff;
    box-shadow: 0 3px 8px rgba(239,35,60,.2);
}

/* TABLET */

@media (max-width: 1180px) {
    .vj-pro-main-inner {
        grid-template-columns: 205px minmax(300px, 1fr) 100px 1px 90px;
        column-gap: 15px;
    }

    .vj-pro-logo img {
        max-width: 190px;
    }

    .vj-pro-search-button {
        min-width: 135px;
        padding: 0 20px;
    }

    .vj-pro-topbar-inner {
        width: min(100% - 32px, 1440px);
    }

    .vj-pro-top-item {
        font-size: 13px;
    }
}

/* MOBILE */

@media (max-width: 820px) {

    .vj-pro-topbar {
        min-height: auto;
    }

    .vj-pro-topbar-inner {
        width: calc(100% - 24px);
        padding: 10px 0;
        flex-direction: column;
        align-items: stretch;
        gap: 9px;
    }

    .vj-pro-topbar-left {
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .vj-pro-top-divider {
        height: 17px;
    }

    .vj-pro-top-item {
        font-size: 11px;
        gap: 5px;
    }

    .vj-pro-top-item svg {
        width: 15px;
        height: 15px;
    }

    .vj-pro-shopping-location {
        justify-content: center;
        font-size: 12px;
    }

    .vj-pro-main-inner {
        width: calc(100% - 24px);
        min-height: auto;
        padding: 16px 0 18px;
        display: grid;
        grid-template-columns: 1fr auto auto;
        gap: 14px;
    }

    .vj-pro-logo {
        grid-column: 1 / -1;
        justify-content: center;
        max-width: none;
    }

    .vj-pro-logo img {
        max-width: 190px;
        max-height: 70px;
    }

    .vj-pro-search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .vj-pro-search-field {
        height: 62px;
        border-radius: 14px;
        padding: 5px;
    }

    .vj-pro-search-icon {
        width: 23px;
        height: 23px;
        margin-left: 14px;
        margin-right: 9px;
    }

    .vj-pro-search-field input {
        font-size: 13px;
    }

    .vj-pro-search-button {
        height: 52px;
        min-width: 54px;
        width: 54px;
        padding: 0;
        border-radius: 11px;
    }

    .vj-pro-search-button span {
        display: none;
    }

    .vj-pro-search-button svg {
        width: 23px;
        height: 23px;
    }

    .vj-pro-action {
        min-height: 70px;
        gap: 5px;
    }

    .vj-pro-action-icon {
        width: 52px;
        height: 52px;
    }

    .vj-pro-action-icon svg {
        width: 27px;
        height: 27px;
    }

    .vj-pro-action-label {
        font-size: 12px;
    }

    .vj-pro-action-separator {
        display: none;
    }

    .vj-pro-cart-badge {
        min-width: 24px;
        height: 24px;
        font-size: 10px;
        border-width: 2px;
        top: -3px;
        right: -3px;
    }
}
