/* ============================================================
   OCJ ELECTRICAL ELECTRONICS NIG. LTD.
   HEADER — GUARANTEED RESPONSIVE DESIGN
   ============================================================ */

.ocj-site-header,
.ocj-site-header *,
.ocj-mobile-drawer,
.ocj-mobile-drawer *{
    box-sizing:border-box;
}

.ocj-site-header{
    position:relative;
    z-index:1000;

    width:100%;

    background:#fff;
    color:#082b52;

    border-bottom:1px solid rgba(8,43,82,.10);

    font-family:inherit;
}

.ocj-header-container{
    width:min(1240px,calc(100% - 40px));
    margin:0 auto;
}

.ocj-header-main{
    background:#fff;
}

.ocj-header-main .ocj-header-container{
    min-height:92px;

    display:flex;
    align-items:center;
    gap:30px;
}

/* ============================================================
   BRAND
   ============================================================ */

.ocj-brand{
    flex:0 0 auto;

    display:flex;
    align-items:center;
    gap:12px;

    color:#082b52;
    text-decoration:none;
}

.ocj-brand-logo{
    display:grid;
    place-items:center;

    width:72px;
    height:72px;

    flex:0 0 72px;

    overflow:hidden;
}

.ocj-brand-logo img{
    display:block;

    width:100%;
    height:100%;

    object-fit:contain;
}

.ocj-brand-text{
    display:flex;
    flex-direction:column;
    gap:2px;

    white-space:nowrap;
}

.ocj-brand-text strong{
    display:block;

    color:#082b52;

    font-size:20px;
    line-height:1.05;

    letter-spacing:-.025em;
}

/* ============================================================
   DESKTOP SEARCH
   ============================================================ */

.ocj-header-search{
    flex:1 1 auto;

    min-width:180px;
    max-width:590px;

    height:50px;

    display:flex;
    align-items:center;

    border:1px solid #c8d5e2;
    border-radius:11px;

    background:#fff;

    overflow:hidden;

    box-shadow:0 3px 12px rgba(10,45,80,.05);
}

.ocj-search-icon{
    display:grid;
    place-items:center;

    width:48px;
    height:100%;

    color:#45627f;
}

.ocj-search-icon svg,
.ocj-mobile-search-icon svg,
.ocj-search-button svg,
.ocj-mobile-search button svg,
.ocj-action-icon svg{
    display:block;

    width:22px;
    height:22px;

    fill:none;

    stroke:currentColor;
    stroke-width:1.9;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.ocj-header-search input{
    flex:1;

    min-width:0;
    height:100%;

    padding:0 8px 0 0;

    border:0;
    outline:0;

    background:transparent;

    color:#082b52;

    font:inherit;
    font-size:15px;
}

.ocj-header-search input::placeholder{
    color:#8090a2;
}

.ocj-search-button{
    flex:0 0 auto;

    height:100%;
    min-width:105px;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;

    border:0;

    background:#0868b5;
    color:#fff;

    font:inherit;
    font-size:14px;
    font-weight:800;

    cursor:pointer;
}

.ocj-search-button:hover{
    background:#064f8c;
}

.ocj-search-button-icon{
    display:grid;
    place-items:center;
}

/* ============================================================
   ACCOUNT / CART
   ============================================================ */

.ocj-header-actions{
    flex:0 0 auto;

    display:flex;
    align-items:center;
    gap:10px;
}

.ocj-header-action{
    position:relative;

    display:flex;
    align-items:center;
    gap:9px;

    min-height:50px;

    padding:7px 10px;

    border:1px solid transparent;
    border-radius:10px;

    color:#082b52;
    text-decoration:none;

    transition:
        background .2s ease,
        border-color .2s ease;
}

.ocj-header-action:hover{
    background:#f1f7fd;
    border-color:#d8e6f3;
    color:#082b52;
}

.ocj-action-icon{
    position:relative;

    display:grid;
    place-items:center;

    width:31px;
    height:31px;

    color:#0b4f89;
}

.ocj-avatar{
    display:grid;
    place-items:center;

    width:31px;
    height:31px;

    border-radius:50%;

    background:#e9f4ff;
    color:#0868b5;

    font-size:12px;
    font-weight:900;
}

.ocj-action-copy{
    display:flex;
    flex-direction:column;

    min-width:0;
}

.ocj-action-copy strong{
    color:#082b52;

    font-size:13px;
    line-height:1.2;

    white-space:nowrap;
}

.ocj-action-copy small{
    margin-top:2px;

    color:#73869a;

    font-size:10px;
    line-height:1.2;

    white-space:nowrap;
}

.ocj-cart-count{
    position:absolute;
    top:-5px;
    right:-6px;

    min-width:19px;
    height:19px;

    display:grid;
    place-items:center;

    padding:0 5px;

    border:2px solid #fff;
    border-radius:99px;

    background:#ff7a18;
    color:#fff;

    font-size:9px;
    font-weight:900;
}

/* ============================================================
   DESKTOP NAV
   ============================================================ */

.ocj-desktop-nav{
    min-height:48px;

    background:#082b52;
}

.ocj-nav-inner{
    min-height:48px;

    display:flex;
    align-items:center;
    gap:4px;
}

.ocj-nav-link,
.ocj-nav-account{
    display:inline-flex;
    align-items:center;

    min-height:48px;

    padding:0 18px;

    color:#fff;

    text-decoration:none;

    font-size:13px;
    font-weight:750;

    border-bottom:3px solid transparent;

    transition:
        background .2s ease,
        border-color .2s ease;
}

.ocj-nav-link:hover,
.ocj-nav-link:focus-visible{
    background:rgba(255,255,255,.08);
    border-bottom-color:#ff7a18;
    color:#fff;
}

.ocj-nav-home{
    background:rgba(255,255,255,.08);
    border-bottom-color:#ff7a18;
}

.ocj-nav-account{
    margin-left:auto;

    min-height:34px;

    margin-top:7px;
    margin-bottom:7px;

    border:1px solid rgba(255,255,255,.30);
    border-radius:8px;

    background:rgba(255,255,255,.07);
}

.ocj-nav-account:hover{
    background:#fff;
    color:#082b52;
}

/* ============================================================
   MOBILE SEARCH
   ============================================================ */

.ocj-mobile-search-row{
    display:none;

    padding:0 14px 12px;

    background:#fff;
}

.ocj-mobile-search{
    display:flex;
    align-items:center;

    width:100%;
    height:48px;

    border:1px solid #c8d5e2;
    border-radius:10px;

    overflow:hidden;
    background:#fff;
}

.ocj-mobile-search-icon{
    display:grid;
    place-items:center;

    width:43px;
    height:100%;

    color:#3e5d7b;
}

.ocj-mobile-search input{
    flex:1;
    min-width:0;
    height:100%;

    border:0;
    outline:0;

    background:transparent;

    color:#082b52;

    font:inherit;
    font-size:15px;
}

.ocj-mobile-search button{
    width:52px;
    height:100%;

    display:grid;
    place-items:center;

    border:0;

    background:#0868b5;
    color:#fff;

    cursor:pointer;
}

/* ============================================================
   HAMBURGER
   ============================================================ */

.ocj-menu-button{
    display:none;

    flex:0 0 46px;

    width:46px;
    height:46px;

    padding:10px;

    border:1px solid #d4e1ed;
    border-radius:10px;

    background:#fff;

    cursor:pointer;
}

.ocj-menu-button span{
    display:block;

    width:100%;
    height:2px;

    margin:5px 0;

    border-radius:99px;

    background:#082b52;
}

/* ============================================================
   MOBILE DRAWER
   ============================================================ */

.ocj-mobile-overlay{
    display:none;

    position:fixed;
    inset:0;
    z-index:1090;

    background:rgba(3,20,39,.55);

    opacity:0;

    transition:opacity .2s ease;
}

.ocj-mobile-drawer{
    position:fixed;
    top:0;
    right:0;
    bottom:0;

    z-index:1100;

    width:min(380px,88vw);

    overflow-y:auto;

    background:#fff;

    box-shadow:-18px 0 50px rgba(0,0,0,.20);

    transform:translateX(105%);

    transition:transform .25s ease;

    visibility:hidden;
}

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

.ocj-mobile-overlay.is-open{
    display:block;
    opacity:1;
}

.ocj-drawer-header{
    min-height:82px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:15px 16px;

    border-bottom:1px solid #e4edf5;
}

.ocj-drawer-brand{
    display:flex;
    align-items:center;
    gap:9px;

    color:#082b52;
    text-decoration:none;
}

.ocj-drawer-brand img{
    width:50px;
    height:50px;

    object-fit:contain;
}

.ocj-drawer-brand span{
    display:flex;
    flex-direction:column;
}

.ocj-drawer-brand strong{
    font-size:12px;
    line-height:1.25;
}

.ocj-drawer-close{
    width:40px;
    height:40px;

    border:1px solid #d7e3ee;
    border-radius:9px;

    background:#f8fbfe;

    color:#082b52;

    font-size:27px;
    line-height:1;

    cursor:pointer;
}

.ocj-drawer-account{
    display:flex;
    align-items:center;
    gap:12px;

    margin:16px;

    padding:15px;

    border:1px solid #dbe8f3;
    border-radius:14px;

    background:#f5f9fd;
}

.ocj-drawer-account-icon{
    display:grid;
    place-items:center;

    flex:0 0 45px;

    width:45px;
    height:45px;

    border-radius:50%;

    background:#0868b5;
    color:#fff;

    font-weight:900;
}

.ocj-drawer-account div:last-child{
    min-width:0;
}

.ocj-drawer-account strong,
.ocj-drawer-account span{
    display:block;
}

.ocj-drawer-account strong{
    color:#082b52;
    font-size:14px;
}

.ocj-drawer-account span{
    margin-top:3px;
    color:#73869a;
    font-size:12px;
}

.ocj-drawer-nav{
    padding:0 12px 30px;
}

.ocj-drawer-nav a{
    display:flex;
    align-items:center;
    gap:13px;

    min-height:50px;

    padding:0 13px;

    border-radius:9px;

    color:#183b60;
    text-decoration:none;

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

.ocj-drawer-nav a:hover{
    background:#edf6ff;
    color:#0868b5;
}

.ocj-drawer-nav a span{
    width:24px;

    color:#0868b5;

    font-size:18px;
    text-align:center;
}

.ocj-drawer-nav a b{
    margin-left:auto;

    min-width:22px;
    height:22px;

    display:grid;
    place-items:center;

    padding:0 5px;

    border-radius:99px;

    background:#ff7a18;
    color:#fff;

    font-size:10px;
}

.ocj-drawer-divider{
    height:1px;

    margin:12px 8px;

    background:#e4edf5;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

.ocj-visually-hidden{
    position:absolute !important;

    width:1px !important;
    height:1px !important;

    padding:0 !important;
    margin:-1px !important;

    overflow:hidden !important;

    clip:rect(0,0,0,0) !important;

    white-space:nowrap !important;

    border:0 !important;
}

/* ============================================================
   TABLET
   ============================================================ */

@media(max-width:1050px){

    .ocj-header-main .ocj-header-container{
        gap:16px;
    }

    .ocj-brand-text strong{
        font-size:17px;
    }

    .ocj-brand-logo{
        width:62px;
        height:62px;
        flex-basis:62px;
    }

    .ocj-action-copy{
        display:none;
    }

    .ocj-header-action{
        padding:7px;
    }

}

/* ============================================================
   MOBILE
   ============================================================ */

@media(max-width:760px){

    .ocj-header-container{
        width:calc(100% - 28px);
    }

    .ocj-header-main .ocj-header-container{
        min-height:78px;
        gap:8px;
    }

    .ocj-brand{
        min-width:0;
        flex:1 1 auto;
        gap:8px;
    }

    .ocj-brand-logo{
        width:55px;
        height:55px;
        flex-basis:55px;
    }

    .ocj-brand-text{
        min-width:0;
    }

    .ocj-brand-text strong{
        overflow:hidden;

        font-size:14px;
        line-height:1.2;

        text-overflow:ellipsis;
    }

    .ocj-header-search{
        display:none;
    }

    .ocj-header-actions{
        gap:2px;
    }

    .ocj-header-action{
        min-height:42px;
        padding:6px;
    }

    .ocj-action-icon{
        width:30px;
        height:30px;
    }

    .ocj-cart-action{
        display:flex;
    }

    .ocj-desktop-nav{
        display:none;
    }

    .ocj-mobile-search-row{
        display:block;
    }

    .ocj-menu-button{
        display:block;
    }

}

/* Small phones */
@media(max-width:390px){

    .ocj-header-container{
        width:calc(100% - 20px);
    }

    .ocj-brand-text strong{
        font-size:12px;
    }

    .ocj-brand-logo{
        width:49px;
        height:49px;
        flex-basis:49px;
    }

    .ocj-header-action{
        padding:4px;
    }

    .ocj-action-icon{
        width:27px;
        height:27px;
    }

}

html.ocj-menu-open,
body.ocj-menu-open{
    overflow:hidden;
}
