/* =========================================
   TOP BAR
========================================= */

.top-bar {
    background: var(--primary);
    color: #fff;
    font-size: 12px;
}

.top-bar-inner {
    min-height: 34px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar p {
    margin: 0;
}


/* =========================================
   MAIN HEADER
========================================= */

.site-header {
    width: 100%;
    background: #fff;

    border-bottom: 1px solid var(--border);

    position: relative;
    z-index: 1000;
}

.header-inner {
    min-height: 82px;

    display: flex;
    align-items: center;

    gap: 35px;
}


/* =========================================
   LOGO
========================================= */

.site-logo {
    flex-shrink: 0;
}

.site-logo a {
    color: var(--primary);

    font-size: 24px;
    font-weight: 700;
}

.site-logo img {
    display: block;

    max-height: 58px;
    width: auto;
}


/* =========================================
   NAVIGATION
========================================= */

.main-navigation {
    flex: 1;
}

.main-navigation ul {
    display: flex;

    align-items: center;
    justify-content: center;

    list-style: none;

    margin: 0;
    padding: 0;

    gap: 30px;
}

.main-navigation li {
    margin: 0;
    padding: 0;
}

.main-navigation a {
    display: block;

    padding: 10px 0;

    color: var(--dark);

    font-size: 15px;
    font-weight: 500;

    transition: color .2s ease;
}

.main-navigation a:hover {
    color: var(--primary);
}


/* =========================================
   HEADER ACTIONS
========================================= */

.header-actions {
    display: flex;

    align-items: center;

    gap: 18px;

    flex-shrink: 0;
}

.header-icon {
    position: relative;

    width: 25px;
    height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--dark);

    cursor: pointer;
}

.header-icon svg {
    width: 22px;
    height: 22px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.6;

    stroke-linecap: round;
}


/* =========================================
   CART COUNT
========================================= */

.cart-count {
    position: absolute;

    top: -7px;
    right: -8px;

    min-width: 17px;
    height: 17px;

    padding: 0 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--secondary);
    color: #fff;

    font-size: 10px;
    font-weight: 700;
}


/* =========================================
   MOBILE MENU BUTTON
========================================= */

.mobile-menu-toggle {
    display: none;

    width: 32px;
    height: 32px;

    padding: 5px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;

    width: 22px;
    height: 2px;

    margin: 4px 0;

    background: var(--dark);
}


/* =========================================
   MOBILE NAVIGATION
========================================= */

.mobile-navigation {
    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: min(340px, 85%);

    height: 100vh;

    background: #fff;

    z-index: 2001;

    padding: 25px;

    transform: translateX(-100%);

    transition: transform .3s ease;
}

.mobile-navigation.active {
    transform: translateX(0);
}

.mobile-navigation-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding-bottom: 20px;

    border-bottom: 1px solid var(--border);
}

.mobile-navigation-header span {
    font-size: 20px;
    font-weight: 700;
}

.mobile-menu-close {
    border: 0;

    background: transparent;

    font-size: 30px;

    cursor: pointer;
}

.mobile-navigation ul {
    list-style: none;

    margin: 20px 0;
    padding: 0;
}

.mobile-navigation li {
    border-bottom: 1px solid var(--border);
}

.mobile-navigation a {
    display: block;

    padding: 16px 0;

    font-size: 16px;
}


/* =========================================
   OVERLAY
========================================= */

.mobile-navigation-overlay {
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .45);

    z-index: 2000;
}

.mobile-navigation-overlay.active {
    display: block;
}


/* =========================================
   SEARCH PANEL
========================================= */

.search-panel {
    display: none;

    background: #fff;

    border-bottom: 1px solid var(--border);

    padding: 20px 0;

    position: relative;

    z-index: 900;
}

.search-panel.active {
    display: block;
}

.search-panel form {
    display: flex;

    max-width: 700px;

    margin: auto;
}

.search-panel input[type="search"] {
    flex: 1;

    height: 48px;

    border: 1px solid var(--border);

    border-radius: 5px 0 0 5px;

    padding: 0 15px;

    outline: none;
}

.search-panel button {
    height: 48px;

    padding: 0 25px;

    border: 0;

    background: var(--primary);

    color: #fff;

    cursor: pointer;

    border-radius: 0 5px 5px 0;
}


/* =========================================
   TABLET / MOBILE
========================================= */

@media (max-width: 900px) {

    .main-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-navigation {
        display: block;
    }

    .header-inner {
        min-height: 70px;

        gap: 15px;
    }

    .site-logo {
        flex: 1;
    }

    .site-logo a {
        font-size: 21px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 500px) {

    .top-bar-inner {
        justify-content: center;
    }

    .top-bar-inner p:last-child {
        display: none;
    }

    .header-actions {
        gap: 10px;
    }

    .header-icon {
        width: 23px;
        height: 23px;
    }

}