.header {
    width: 100%;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.header__top {
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.header__top-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__top-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header__top-link {
    font-family: Inter, sans-serif;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 400;
    --tw-text-opacity: 1;
    color: rgb(31 41 55 / var(--tw-text-opacity, 1));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    text-decoration: none;
}

.header__top-link:hover {
    --tw-text-opacity: 1;
    color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}

.header__top-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header__schedule {
    border-left-width: 1px;
    border-left-style: solid;
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
    padding-left: 1.5rem;
    font-family: Inter, sans-serif;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 400;
    --tw-text-opacity: 1;
    color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.header__phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: Inter, sans-serif;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 400;
    --tw-text-opacity: 1;
    color: rgb(220 38 38 / var(--tw-text-opacity, 1));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    text-decoration: none;
}

.header__phone:hover {
    --tw-text-opacity: 1;
    color: rgb(185 28 28 / var(--tw-text-opacity, 1));
}

.header__phone-icon {
    height: 1rem;
    width: 1rem;
}

.header__middle {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.header__middle-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.header__logo {
    flex-shrink: 0;
    text-decoration: none;
}

.header__logo-img {
    height: 2.5rem;
    width: auto;
}

.header__search {
    position: relative;
    max-width: 36rem;
    flex: 1 1 0%;
}

.header__search-input {
    width: 100%;
    border-radius: 0.375rem;
    border-width: 1px;
    border-style: solid;
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    padding-left: 1rem;
    padding-right: 3rem;
    font-family: Inter, sans-serif;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 400;
    --tw-text-opacity: 1;
    color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

.header__search-input::placeholder {
    --tw-placeholder-opacity: 1;
    color: rgb(107 114 128 / var(--tw-placeholder-opacity, 1));
}

.header__search-input:focus {
    --tw-border-opacity: 1;
    border-color: rgb(30 58 138 / var(--tw-border-opacity, 1));
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.header__search-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.header__search-btn:hover {
    --tw-text-opacity: 1;
    color: rgb(30 58 138 / var(--tw-text-opacity, 1));
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header__cart {
    padding: 0.5rem;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    text-decoration: none;
}

.header__cart:hover {
    opacity: 0.8;
}

.header__cart-icon {
    height: 1.5rem;
    width: 1.5rem;
}

.header__login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.375rem;
    --tw-bg-opacity: 1;
    background-color: rgb(2 24 46 / var(--tw-bg-opacity, 1));
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    padding-left: 1rem;
    padding-right: 1rem;
    font-family: Inter, sans-serif;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 400;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    text-decoration: none;
}

.header__login-btn:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(3 36 63 / var(--tw-bg-opacity, 1));
}

.header__user-icon {
    height: 1rem;
    width: 1rem;
}

.header__categories {
    --tw-bg-opacity: 1;
    background-color: rgb(2 24 46 / var(--tw-bg-opacity, 1));
}

.header__categories-list {
    margin: 0px;
    display: flex;
    list-style-type: none;
    align-items: center;
    justify-content: space-between;
    padding: 0px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.header__category-link {
    white-space: nowrap;
    font-family: Lato, sans-serif;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    text-decoration: none;
}

.header__category-link:hover {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}

.header__mobile-logo {
    display: none;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center;
}

.header__logo--desktop {
    display: block;
}

.header__user-mobile {
    display: none;
    text-decoration: none;
}

.header__user-icon--mobile {
    height: 1.75rem;
    width: 1.75rem;
}

.header__hamburger {
    display: none;
    height: 2.5rem;
    width: 2.5rem;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    border-width: 0px;
    background-color: transparent;
    padding: 0px;
}

.header__hamburger-line {
    display: block;
    height: 0.125rem;
    width: 1.5rem;
    border-radius: 0.25rem;
    --tw-bg-opacity: 1;
    background-color: rgb(2 24 46 / var(--tw-bg-opacity, 1));
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.header__hamburger--active .header__hamburger-line:nth-child(1) {
    --tw-translate-y: 0.5rem;
    --tw-rotate: 45deg;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.header__hamburger--active .header__hamburger-line:nth-child(2) {
    opacity: 0;
}

.header__hamburger--active .header__hamburger-line:nth-child(3) {
    --tw-translate-y: -0.5rem;
    --tw-rotate: -45deg;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

@media (max-width: 768px) {
    .header__mobile-logo {
        display: block;
    }

    .header__mobile-logo .header__logo {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header__logo--desktop {
        display: none;
    }

    .header__top {
        display: none;
        max-height: 0px;
        overflow: hidden;
        transition-property: all;
        transition-duration: 300ms;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }

    .header__top--open {
        display: block;
        max-height: 100vh;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .header__top-content {
        flex-direction: column;
        gap: 1rem;
    }

    .header__top-nav {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }

    .header__top-link {
        border-bottom-width: 1px;
        border-bottom-style: solid;
        --tw-border-opacity: 1;
        border-color: rgb(243 244 246 / var(--tw-border-opacity, 1));
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .header__top-info {
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
    }

    .header__schedule {
        border-left-width: 0px;
        border-top-width: 1px;
        border-top-style: solid;
        --tw-border-opacity: 1;
        border-color: rgb(243 244 246 / var(--tw-border-opacity, 1));
        padding-left: 0px;
        padding-top: 0.75rem;
    }

    .header__middle {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .header__middle-content {
        gap: 0.75rem;
    }

    .header__search {
        flex: 1 1 0%;
    }

    .header__search-input {
        border-radius: 9999px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        padding-left: 0.75rem;
        padding-right: 2.5rem;
        font-size: 0.875rem;
        line-height: 1.25rem;
    }

    .header__login-btn {
        display: none;
    }

    .header__user-mobile {
        display: block;
    }

    .header__hamburger {
        display: flex;
    }

    .header__categories {
        overflow-x: auto;
    }

    .header__categories-list {
        margin-left: -1rem;
        margin-right: -1rem;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 0px;
        overflow-x: auto;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        padding-left: 1rem;
        padding-right: 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .header__categories-list::-webkit-scrollbar {
        display: none;
    }

    .header__categories-list li {
        flex-shrink: 0;
        border-right-width: 1px;
        border-right-style: solid;
        border-color: rgb(255 255 255 / 0.2);
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .header__categories-list li:first-child {
        padding-left: 0px;
    }

    .header__categories-list li:last-child {
        border-right-width: 0px;
    }

    .header__category-link {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
}
