﻿header {
    background-color: var(--white-color);
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-height: fit-content;
    padding-bottom: var(--padding-large);
    z-index: 9999;
    /*    margin-bottom: 2rem;*/
}

    header .container {
        max-width: 1600px;
    }

    header a {
        color: var( --text-color-alternate);
        text-decoration: none;
    }

    header .header-banner {
        width: 100%;
        height: 48px;
        min-height: 48px;
        max-height: 48px;
    }

        header .header-banner img {
            width: 100%;
            max-height: 48px;
        }

    header > .container {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    header .header-main-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
    }

        header .header-main-wrapper > .search-wrapper {
            display: flex;
            flex-direction: row;
            justify-content: space-around;
            align-items: center;
            gap: 20px;
        }

            header .header-main-wrapper > .search-wrapper > .search-form-wrapper {
                display: flex;
                justify-content: space-between;
                align-items: center;
                gap: 0;
                width: 505px;
                height: 48px;
                min-height: 48px;
                max-height: 48px;
                padding: 20px 16px;
                border: 1px solid var(--controls-border-color);
                border-radius: var(--border-radius-large);
                transition: border-color 0.5s;
            }

                header .header-main-wrapper > .search-wrapper > .search-form-wrapper > input[type="text"] {
                    border: 0;
                    width: 100%;
                }

                header .header-main-wrapper > .search-wrapper > .search-form-wrapper:has(input:focus) {
                    border-color: var(--primary-color-alternate);
                }

                header .header-main-wrapper > .search-wrapper > .search-form-wrapper > input[type="text"]::placeholder {
                    color: var(--controls-gray-text-color);
                }

                header .header-main-wrapper > .search-wrapper > .search-form-wrapper > button {
                    background: transparent;
                    border: 0;
                    outline: 0;
                }

                    header .header-main-wrapper > .search-wrapper > .search-form-wrapper > input[type="text"]:focus,
                    header .header-main-wrapper > .search-wrapper > .search-form-wrapper > button:focus {
                        border: 0;
                        outline: 0;
                    }

        header .header-main-wrapper > .profile-actions {
            display: flex;
            flex-direction: row;
            justify-content: space-around;
            align-items: center;
            gap: 12px;
        }

            header .header-main-wrapper > .profile-actions > .idehal-btn,
            header .header-nav-wrapper > .header-call-wrapper > a {
                background: var(--white-color);
                color: var(--primary-color-alternate);
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 10px;
                border: 1px solid var(--controls-border-color-light);
                border-radius: var(--border-radius-large);
                text-decoration: none;
                position: relative;
                transition: border-color 0.5s;
                cursor: pointer;
            }


                header .header-main-wrapper > .profile-actions > .idehal-btn:hover,
                header .header-nav-wrapper > .header-call-wrapper > a:hover {
                    border-color: var(--primary-color-alternate);
                }

                header .header-main-wrapper > .profile-actions > .idehal-btn.btn-cart {
                    width: 48px;
                    height: 48px;
                    padding: var(--padding-medium);
                }

                    header .header-main-wrapper > .profile-actions > .idehal-btn.btn-cart > .cart-badge {
                        background-color: var(--badge-color);
                        color: var(--white-color);
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        width: 15px;
                        height: 15px;
                        position: absolute;
                        right: 6px;
                        top: 22px;
                        font-size: 10px;
                        border-radius: 50%;
                    }

                header .header-main-wrapper > .profile-actions > .idehal-btn.btn-login {
                    display: flex;
                    flex-direction: row;
                    justify-content: center;
                    align-items: center;
                    gap: 8px;
                    height: 48px;
                    padding: var(--padding-small) var(--padding-medium);
                    border-color: var(--primary-color-alternate);
                }

                    header .header-main-wrapper > .profile-actions > .idehal-btn.btn-login > i {
                        display: flex;
                        flex-direction: row;
                        justify-content: center;
                        align-items: center;
                        width: 24px;
                        height: 24px;
                    }

            header .header-main-wrapper > .profile-actions > .profile-menu-wrapper {
                background: var(--white-color);
                display: none;
                flex-direction: column;
                justify-content: center;
                gap: 12px;
                padding: var(--padding-xlarge);
                border-radius: 20px;
                position: relative;
                box-shadow: rgba(13, 23, 41, 33%) 4px 32px 90px 0px;
                pointer-events: none;
                position: absolute;
                top: 115px;
                z-index: 999;
            }

                header .header-main-wrapper > .profile-actions > .profile-menu-wrapper.active {
                    display: flex;
                    pointer-events: auto;
                }

                header .header-main-wrapper > .profile-actions > .profile-menu-wrapper > .user-info-wrapper {
                    display: flex;
                    flex-direction: row;
                    justify-content: center;
                    align-items: center;
                    gap: 12px;
                    padding-bottom: 12px;
                    border-bottom: 1px solid var(--controls-border-color-light);
                }

                    header .header-main-wrapper > .profile-actions > .profile-menu-wrapper > .user-info-wrapper div {
                        display: flex;
                        flex-direction: column;
                        gap: 4px;
                    }

                        header .header-main-wrapper > .profile-actions > .profile-menu-wrapper > .user-info-wrapper div > span {
                            font-size: 14px;
                        }

                        header .header-main-wrapper > .profile-actions > .profile-menu-wrapper > .user-info-wrapper div > a {
                            color: var(--primary-color-alternate);
                        }

                header .header-main-wrapper > .profile-actions > .profile-menu-wrapper ul {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: flex-start;
                    gap: 16px;
                    padding-right: 0;
                    margin-bottom: 0;
                    list-style: none;
                }

                    header .header-main-wrapper > .profile-actions > .profile-menu-wrapper ul li {
                        width: 100%;
                        font-size: 14px;
                    }

                        header .header-main-wrapper > .profile-actions > .profile-menu-wrapper ul li a {
                            display: flex;
                            flex-direction: row;
                            justify-content: flex-start;
                            align-items: center;
                            gap: 12px;
                            width: 100%;
                            cursor: pointer;
                        }

                            header .header-main-wrapper > .profile-actions > .profile-menu-wrapper ul li a:hover {
                                color: var(--primary-color-alternate);
                            }

                                header .header-main-wrapper > .profile-actions > .profile-menu-wrapper ul li a:hover svg path {
                                    /* stroke: var(--primary-color-alternate); */
                                }

            header .header-main-wrapper > .profile-actions > .cart-popup-wrapper {
                background: var(--white-color);
                display: none;
                flex-direction: column;
                justify-content: center;
                gap: 12px;
                padding: var(--padding-xlarge);
                border-radius: 20px;
                position: relative;
                box-shadow: rgba(13, 23, 41, 33%) 4px 32px 90px 0px;
                pointer-events: none;
                position: absolute;
                top: 115px;
                /* left: 250px; */
                z-index: 99999;
                width: 313px;
                min-width: 313px;
                max-width: 313px;
            }

                header .header-main-wrapper > .profile-actions > .cart-popup-wrapper.show {
                    display: flex;
                    pointer-events: auto;
                }

                header .header-main-wrapper > .profile-actions > .cart-popup-wrapper ul {
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: flex-start;
                    gap: 12px;
                    width: 100%;
                    font-size: 14px;
                    padding-right: 0;
                    padding-left: 0;
                    margin-bottom: 0;
                    list-style: none;
                }

                    header .header-main-wrapper > .profile-actions > .cart-popup-wrapper ul li {
                        display: flex;
                        flex-direction: row;
                        justify-content: flex-start;
                        align-items: center;
                        gap: 12px;
                        width: 100%;
                        font-size: 14px;
                        height: 94px;
                        padding-bottom: 16px;
                        border-bottom: 1px solid var(--controls-border-color-light);
                    }

                header .header-main-wrapper > .profile-actions > .cart-popup-wrapper .cart-products-wrapper {
                    display: flex;
                    flex-direction: row;
                    gap: 8px;
                }

                    header .header-main-wrapper > .profile-actions > .cart-popup-wrapper .cart-products-wrapper > .cart-products-thumb {
                        height: 100%;
                    }

                        header .header-main-wrapper > .profile-actions > .cart-popup-wrapper .cart-products-wrapper > .cart-products-thumb img {
                            --size: 60px;
                            width: var(--size);
                            min-width: var(--size);
                            max-width: var(--size);
                            height: var(--size);
                            min-height: var(--size);
                            max-height: var(--size);
                        }

                    header .header-main-wrapper > .profile-actions > .cart-popup-wrapper .cart-products-wrapper > .cart-products-spec {
                        display: flex;
                        flex-direction: column;
                        gap: 4px;
                    }

                        header .header-main-wrapper > .profile-actions > .cart-popup-wrapper .cart-products-wrapper > .cart-products-spec .cart-products-title {
                            color: var( --text-color-alternate);
                            font-size: 12px;
                            font-weight: 500;
                            height: 48px;
                        }

                        header .header-main-wrapper > .profile-actions > .cart-popup-wrapper .cart-products-wrapper > .cart-products-spec .cart-products-actions {
                            display: flex;
                            flex-direction: row;
                            justify-content: space-between;
                            align-items: center;
                            gap: 15px;
                        }

                            header .header-main-wrapper > .profile-actions > .cart-popup-wrapper .cart-products-wrapper > .cart-products-spec .cart-products-actions .cart-products-price {
                                display: flex;
                                flex-direction: column;
                                text-align: left;
                            }

                                header .header-main-wrapper > .profile-actions > .cart-popup-wrapper .cart-products-wrapper > .cart-products-spec .cart-products-actions .cart-products-price span {
                                    color: #55575C;
                                    font-size: 10px;
                                    text-decoration: line-through;
                                }

                                header .header-main-wrapper > .profile-actions > .cart-popup-wrapper .cart-products-wrapper > .cart-products-spec .cart-products-actions .cart-products-price strong {
                                    color: #AAABAD;
                                    font-size: 12px;
                                    font-weight: bold;
                                }

                            header .header-main-wrapper > .profile-actions > .cart-popup-wrapper .cart-products-wrapper > .cart-products-spec .cart-products-actions .cart-products-buttons {
                                color: var(--primary-color-alternate);
                                display: flex;
                                flex-direction: row;
                                align-items: center;
                                gap: 16px;
                                width: 98px;
                                min-width: 98px;
                                max-width: 98px;
                                max-height: 33px;
                                padding: 4px;
                                border: 1px solid var(--controls-border-color-light);
                                border-radius: var(--border-radius-small);
                            }

                                header .header-main-wrapper > .profile-actions > .cart-popup-wrapper .cart-products-wrapper > .cart-products-spec .cart-products-actions .cart-products-buttons button {
                                    background-color: var(--white-color);
                                    display: flex;
                                    justify-content: center;
                                    align-items: center;
                                    width: 24px;
                                    min-width: 24px;
                                    max-width: 24px;
                                    height: 24px;
                                    min-height: 24px;
                                    max-height: 24px;
                                    outline: none;
                                    border: none;
                                }

                header .header-main-wrapper > .profile-actions > .cart-popup-wrapper .cart-total {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    gap: 12px;
                }

                    header .header-main-wrapper > .profile-actions > .cart-popup-wrapper .cart-total .cart-total-price {
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        align-items: flex-start;
                        gap: 4px;
                        font-size: 12px;
                    }

                        header .header-main-wrapper > .profile-actions > .cart-popup-wrapper .cart-total .cart-total-price strong {
                            color: var(--primary-color-alternate);
                            font-weight: bold;
                        }

                    header .header-main-wrapper > .profile-actions > .cart-popup-wrapper .cart-total a {
                        background-color: var(--primary-color-alternate);
                        display: flex;
                        justify-content: space-around;
                        align-items: center;
                        gap: 8px;
                        color: var(--white-color);
                        width: 130px;
                        height: 44px;
                        padding: var(--padding-medium);
                        outline: none;
                        border: none;
                        border-radius: var(--border-radius-medium);
                        cursor: pointer;
                    }

    header .header-nav-wrapper {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 48px;
        position: relative;
    }

        header .header-nav-wrapper > nav {
            display: flex;
            align-items: center;
            height: 100%;
        }

            header .header-nav-wrapper > nav > ul {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 24px;
                padding-right: 0;
                margin-bottom: 0;
                list-style: none;
                height: 100%;
            }

                header .header-nav-wrapper > nav > ul > li {
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    font-size: var(--font-size-medium);
                    height: 100%;
                }

                    header .header-nav-wrapper > nav > ul > li > a {
                        display: flex;
                        flex-direction: row;
                        align-items: center;
                        gap: 4px;
                        height: 100%;
                    }

        header .header-nav-wrapper > .header-call-wrapper {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            gap: 12px
        }

            header .header-nav-wrapper > .header-call-wrapper > a {
                width: 48px;
                height: 48px;
                padding: var(--padding-medium);
            }

    header .products-categories-menu-wrapper {
        display: none;
        width: 855px;
        max-width: 855px;
        min-height: 391px;
        height: fit-content;
        position: absolute;
        top: 100%;
        right: 0;
        border-radius: 20px;
        z-index: 999;
    }

        header .products-categories-menu-wrapper.show {
            display: inline-block;
            pointer-events: auto;
        }

        header .products-categories-menu-wrapper::before {
            content: '';
            display: block;
            background: transparent;
            height: 12px;
        }

    header .products-categories-menu-inner {
        background-color: rgba(243, 249, 255, 0.89);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        width: 100%;
        padding: 12px;
        border: 1px solid #E9EAEB;
        box-shadow: inset 0 1px 25px rgba(255, 255, 255, 0.8), 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    header .products-categories-menu-wrapper .products-categories-menu-links {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
        gap: 20px;
        padding-bottom: 20px;
    }

        header .products-categories-menu-wrapper .products-categories-menu-links .categories-wrapper {
            display: flex;
            flex-direction: column;
            width: 33.3%;
            max-width: 234px;
            height: 100%;
            padding-left: 20px;
            border-left: 1px solid rgba(255, 255, 255, 39%);
        }

            header .products-categories-menu-wrapper .products-categories-menu-links .categories-wrapper a {
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                gap: 8px;
                width: 100%;
                height: 60px;
                font-size: 14px;
                font-weight: bold;
                padding: 12px;
                border-radius: 24px;
            }

                header .products-categories-menu-wrapper .products-categories-menu-links .categories-wrapper a::after {
                    content: '';
                    position: absolute;
                    bottom: 0;
                    right: 0;
                    width: 100%;
                    height: 2px;
                    background-color: var(--primary-color);
                    transform: scaleX(0);
                    transform-origin: right;
                    transition: transform 0.3s ease;
                }

                header .products-categories-menu-wrapper .products-categories-menu-links .categories-wrapper a:hover {
                    background-color: rgba(255, 255, 255, 39%) !important;
                }

                header .products-categories-menu-wrapper .products-categories-menu-links .categories-wrapper a .title-wrapper {
                    display: flex;
                    flex-direction: row;
                    justify-content: flex-start;
                    align-items: center;
                    gap: 8px;
                    width: 100%;
                }

                header .products-categories-menu-wrapper .products-categories-menu-links .categories-wrapper a .menu-arrow {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                }

                header .products-categories-menu-wrapper .products-categories-menu-links .categories-wrapper a .icon {
                    background: linear-gradient(25deg, rgb(255, 255, 255, 0), #ffffff);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 36px;
                    height: 36px;
                    padding: 1px;
                    border-radius: 50%;
                }

                header .products-categories-menu-wrapper .products-categories-menu-links .categories-wrapper a .icon-inner {
                    background: rgba(243, 249, 255, 1);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 100%;
                    height: 100%;
                    border-radius: 50%;
                }

                    header .products-categories-menu-wrapper .products-categories-menu-links .categories-wrapper a .icon-inner svg {
                        /*                        fill: var(--primary-color);*/
                        width: 20px !important;
                        height: 20px !important;
                    }

        header .products-categories-menu-wrapper .products-categories-menu-links .sub-categories-wrapper {
            display: flex;
            flex-direction: column;
            width: 33.3%;
            max-width: 277px;
        }

            header .products-categories-menu-wrapper .products-categories-menu-links .sub-categories-wrapper ul {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: flex-start;
                gap: 8px;
                margin-bottom: 0;
                padding-top: 12px;
                padding-right: 0;
                list-style: none;
            }

                header .products-categories-menu-wrapper .products-categories-menu-links .sub-categories-wrapper ul li {
                    display: flex;
                    justify-content: flex-start;
                    align-items: center;
                    width: 100%;
                    height: 48px;
                    padding: 12px;
                }

                    header .products-categories-menu-wrapper .products-categories-menu-links .sub-categories-wrapper ul li a {
                        position: relative;
                        text-decoration: none;
                        padding-bottom: 8px;
                        display: inline-block;
                    }

                        header .products-categories-menu-wrapper .products-categories-menu-links .sub-categories-wrapper ul li a::after {
                            content: '';
                            position: absolute;
                            bottom: 0;
                            left: 0;
                            width: 100%;
                            height: 2px;
                            background-color: var(--primary-color);
                            transform: scaleX(0);
                            transform-origin: left;
                            transition: transform 0.5s ease;
                        }

                        header .products-categories-menu-wrapper .products-categories-menu-links .sub-categories-wrapper ul li a:hover::after {
                            transform: scaleX(1);
                            transform-origin: right;
                        }

        header .products-categories-menu-wrapper .products-categories-menu-links .categories-banner {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            align-items: center;
            gap: 12px;
            width: 100%;
            max-width: 324px;
        }

            header .products-categories-menu-wrapper .products-categories-menu-links .categories-banner img {
                width: 100%;
            }

    header .products-categories-menu-wrapper .products-categories-menu-footer {
        background-color: #F4F9FF;
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        max-height: 50px;
        padding: 24px 32px;
        border-radius: 20px;
    }

        header .products-categories-menu-wrapper .products-categories-menu-footer .brand-wrapper img {
            max-width: 57px;
            max-height: 13px;
        }

    header .repair-menu-wrapper {
        display: none;
        width: 714px;
        max-width: 714px;
        height: fit-content;
        position: absolute;
        top: 100%;
        right: 0;
        z-index: 999;
        /* border: 1px solid #E9EAEB; */
    }

        header .repair-menu-wrapper.show {
            display: inline-block;
            pointer-events: auto;
        }

        header .repair-menu-wrapper::before {
            content: '';
            display: block;
            background: transparent;
            height: 12px;
        }

    header .repair-menu-inner {
        background-color: rgba(243, 249, 255, 0.89);
        backdrop-filter: blur(10px);
        width: 100%;
        border: 1px solid #E9EAEB;
        border-radius: 20px;
        box-shadow: inset 0 1px 25px rgba(255, 255, 255, 0.8), 0 10px 30px rgba(0, 0, 0, 0.15);
        /*        box-shadow: rgba(10, 13, 18, 30%) 0px 4px 6px -2px;*/
    }

    header .repair-menu-wrapper .repair-menu-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /*        grid-template-rows: repeat(4, 1fr);*/
        grid-template-rows: repeat(3, 1fr);
        grid-column-gap: 0px;
        grid-row-gap: 24px;
        padding: 24px;
        position: relative;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        z-index: 1;
    }

        header .repair-menu-wrapper .repair-menu-links a {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 16px;
            height: 60px;
            font-size: 16px;
            padding: 12px;
            border-radius: 24px;
        }

            header .repair-menu-wrapper .repair-menu-links a:hover {
                background-color: rgba(255, 255, 255, 39%) !important;
            }


    header .repair-menu-wrapper .repair-menu-footer {
        background-color: rgba(255, 255, 255, 40%);
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(1, 1fr);
        grid-column-gap: 0px;
        grid-row-gap: 0px;
        height: 50px;
        padding: 14px 30px;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        z-index: 2;
    }

        header .repair-menu-wrapper .repair-menu-footer a {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 8px;
            color: var(--primary-color-alternate);
            /* font-size: 16px; */
            font-weight: bold;
        }

#menu-overlay {
    background: rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 188px;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: 0.2s;
    pointer-events: none;
}

    #menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }
