/* BIM_PATCH_01_HEADER v1.3: Ultra-compact & crisp native ProStore header v3 */

/* Remove ProStore 13.5rem min-height so header shrinks shorter than original */
.is-header-v3 .header,
.header.header--v3 {
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* 1. Row 1: slim single-line layout aligned to the exact 23rem left axis */
.header--v3 .header__row--01 {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0 3px !important;
    min-height: 24px !important;
}

.is-header-v3 .header__row--01 .header__group--info_call {
    margin: 0 0 0 23rem !important;
    -ms-flex: 0 1 auto !important;
    flex: 0 1 auto !important;
    max-width: none !important;
}

.header--v3 .header__info-menu {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header--v3 .header__info-menu > li {
    margin: 0 !important;
    white-space: nowrap;
}

.header--v3 .header__info-link {
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.bim-hdr-contacts {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 13px;
    margin-left: auto;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.bim-hdr-hours-inline {
    font-size: 1.18rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.74);
    white-space: nowrap;
}

.bim-hdr-sep {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.24);
    flex-shrink: 0;
}

.bim-hdr-contact-link {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.94) !important;
    text-decoration: none !important;
    font-size: 1.26rem;
    font-weight: 500;
    line-height: 1.15;
    white-space: nowrap;
    transition: opacity 0.18s ease;
}

.bim-hdr-contact-link:hover {
    opacity: 1;
    color: #ffffff !important;
    text-decoration: none !important;
}

.bim-hdr-contact-link--wa {
    font-weight: 600;
}

.bim-hdr-contact-link svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px;
    display: inline-block;
    flex-shrink: 0;
}

.bim-hdr-callback-btn {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff !important;
    font-size: 1.22rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.bim-hdr-callback-btn:hover {
    background: rgba(255, 255, 255, 0.26);
    border-color: rgba(255, 255, 255, 0.48);
    color: #ffffff !important;
}

/* 2. Row 2: slim 38px controls, exact centered search button, zero dead gaps */
.is-header-v3 .header__row--02 {
    padding: 2px 0 6px !important;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

.is-header-v3 .header__row--02 .header__logo {
    height: 3.8rem !important;
    font-size: 2.6rem !important;
}

.is-header-v3 .header__row--02 .header__search {
    -ms-flex: 1 1 auto !important;
    flex: 1 1 auto !important;
    max-width: none !important;
    margin: 0 2rem 0 0 !important;
}

.is-header-v3 .header__row--02 .header__search-control,
.is-header-fixed .header-fixed .header__search-control {
    position: relative !important;
    height: 3.8rem !important;
    min-height: 3.8rem !important;
    margin: 0 !important;
}

.is-header-v3 .header__row--02 .header__search-input,
.is-header-fixed .header-fixed .header__search-input {
    height: 3.8rem !important;
    min-height: 3.8rem !important;
    line-height: 3.8rem !important;
    padding: 0 10rem 0 1.6rem !important;
}

.is-header-v3 .header__row--02 .header__search-btn,
.is-header-fixed .header-fixed .header__search-btn {
    height: 3rem !important;
    line-height: 3rem !important;
    top: 50% !important;
    margin: -1.5rem 0 0 !important;
    right: 0.4rem !important;
}

.is-header-v3 .header__row--02 .header__group--acc_action_cart,
.is-header-fixed .header-fixed .header__group--acc_action_cart {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
}

.is-header-v3 .header__row--02 .header__acc-btn,
.is-header-v3 .header__row--02 .header__action,
.is-header-v3 .header__row--02 .header__action-btn,
.is-header-v3 .header__row--02 .header__cart-btn,
.is-header-fixed .header-fixed .header__acc-btn,
.is-header-fixed .header-fixed .header__action,
.is-header-fixed .header-fixed .header__action-btn,
.is-header-fixed .header-fixed .header__cart-btn {
    height: 3.8rem !important;
    min-height: 3.8rem !important;
}

.is-header-v3 .header__row--02 .header__action-line,
.is-header-fixed .header-fixed .header__action-line {
    height: 2.2rem !important;
}

.is-header-v3 .header__row--02 .header__cart-btn,
.is-header-fixed .header-fixed .header__cart-btn {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Sticky scroll bar: compact 54px bar with quick nav links + search */
.bim-sticky-links {
    display: none;
    -ms-flex-align: center;
    align-items: center;
    gap: 18px;
    margin: 0 18px 0 10px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.bim-sticky-links a {
    color: rgba(255, 255, 255, 0.94) !important;
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none !important;
    white-space: nowrap;
    transition: opacity 0.16s ease;
}

.bim-sticky-links a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.is-header-fixed .header-fixed {
    height: 5.4rem !important;
    min-height: 5.4rem !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.is-header-fixed .header-fixed .header__logo {
    height: 3.8rem !important;
    font-size: 2.3rem !important;
}

.is-header-fixed .header-fixed .bim-sticky-links {
    display: -ms-flexbox;
    display: flex;
}

.is-header-fixed .header-fixed .header__search {
    -ms-flex: 1 1 24rem !important;
    flex: 1 1 24rem !important;
    max-width: 34rem !important;
    min-width: 19rem;
    margin: 0 1.8rem 0 auto !important;
}

.is-header-fixed .header-fixed .header__catalog-btn {
    height: 3.8rem !important;
    min-height: 3.8rem !important;
}

/* 3. Row 3: slim 32px buttons, tight bottom padding */
.header--v3 .header__row--03 {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 0 7px !important;
}

.header--v3 .header__row--03 .header__catalog-btn {
    width: 100%;
    height: 3.2rem !important;
    min-height: 3.2rem !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    -ms-flex-pack: center;
    justify-content: center;
}

.header--v3 .header__tags {
    display: -ms-flexbox !important;
    display: flex !important;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 14px;
}

.header--v3 .header__tags-menu {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
}

.header--v3 .header__tags-menu > li {
    margin: 0 !important;
}

.header--v3 .header__tags-btn {
    white-space: nowrap;
    height: 3.2rem !important;
    min-height: 3.2rem !important;
    padding: 0 1.35rem !important;
    font-size: 1.35rem !important;
}

.bim-hdr-trust-note {
    display: -ms-inline-flexbox;
    display: inline-flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 7px;
    font-size: 1.22rem;
    font-weight: 500;
    color: rgba(255, 245, 236, 0.88);
    white-space: nowrap;
    height: 3rem;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.bim-hdr-trust-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
}

@media (max-width: 1380px) {
    .bim-hdr-hours-inline,
    .bim-hdr-sep {
        display: none;
    }
    .bim-hdr-trust-note {
        display: none;
    }
    .is-header-fixed .header-fixed .bim-sticky-links {
        gap: 12px;
    }
    .is-header-fixed .header-fixed .header__search {
        max-width: 22rem !important;
    }
}

/* 4. Clean compact dropdown for Catalog */
.header--v3 .bim-hdr-catalog .header__catalog-offcanvas {
    width: 380px !important;
    min-width: 340px;
    max-width: 92vw;
    left: 0 !important;
    right: auto !important;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(20, 18, 24, 0.16);
}

.header--v3 .bim-hdr-catalog .header__catalog-aside {
    width: 100% !important;
    max-width: 100% !important;
    border-right: 0 !important;
    padding: 10px 0 !important;
}

.header--v3 .bim-hdr-catalog .header__catalog-link {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 18px !important;
    color: #25232a !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.header--v3 .bim-hdr-catalog .header__catalog-link:hover {
    background: #fcf4ee !important;
    color: #8a3f16 !important;
}

.bim-cat-item__main {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 2px;
}

.bim-cat-item__name {
    font-size: 1.48rem;
    font-weight: 700;
    line-height: 1.25;
    color: inherit;
}

.bim-cat-item__sub {
    font-size: 1.2rem;
    color: #746d79;
    line-height: 1.2;
}

.bim-cat-item__price {
    font-size: 1.38rem;
    font-weight: 700;
    color: #b45e2a;
    white-space: nowrap;
}

.bim-cat-divider {
    height: 1px;
    background: #efe6dc;
    margin: 6px 16px;
    list-style: none;
}

/* 5. Hide mobile empty language wrapper safely */
.header__nav-group--currency_language {
    display: none !important;
}

/* 6. Mobile contact buttons inside drawer */
.bim-mob-contacts {
    padding: 12px 2rem 18px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 8px;
}

.bim-mob-contact-btn {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid #e6dfd6;
    background: #ffffff;
    color: #1e293b !important;
    font-size: 1.48rem;
    font-weight: 600;
    text-decoration: none !important;
}

.bim-mob-contact-btn--primary {
    background: #b45e2a;
    border-color: #b45e2a;
    color: #ffffff !important;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 8px;
}

.bim-mob-contact-btn__left {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
}

.bim-mob-item-tag {
    margin-left: auto;
    font-size: 1.2rem;
    font-weight: 700;
    color: #b45e2a;
    background: #fcf4ee;
    padding: 2px 8px;
    border-radius: 999px;
}