header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    padding: 16px 40px;
    gap: 48px;
    background-color: var(--Colors-Text-Primary-Light);
    z-index: 10;
}
header .header-logo {
    width: 100%;
    max-width: 154px;
}

@media screen and (max-width: 1440px) {
    header .header-logo {
        max-width: 114px;
    }
}

header .nav-controls {
    display: flex;
    gap: 40px;
    align-items: center;
}
header .nav-controls .mobile-menu-button {
    display: none;
}
header .nav-controls .mobile-menu-button.menu-open {
    display: none;
}
@media screen and (min-width: 768px) {
    header .nav-controls .mobile-menu-button.menu-open {
        display: block;
   }
}
header .nav-controls .mobile-menu-button:hover {
    cursor: pointer;
}
header .nav-controls .close-mobile-menu {
    display: none;
}
header .nav-controls .close-mobile-menu.menu-open {
    display: block;
}
@media screen and (min-width: 768px) {
    header .nav-controls .close-mobile-menu.menu-open {
        display: none;
   }
}
header .nav-controls .close-mobile-menu:hover {
    cursor: pointer;
}
header .header-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
@media screen and (min-width: 768px) {
    header .header-links {
        flex: 1 0 0;
   }
}
@media screen and (max-width: 768px) {
    header .header-links {
        display: none;
   }
    header .header-links.menu-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        background-color: var(--Colors-Text-Primary-Light);
        top: 64px;
        left: 0;
        right: 0;
        padding: 24px 40px;
        border-top: 1px solid var(--Local-Colors-Light-Grey);
   }
    header .header-links.menu-open .header-link {
        width: 100%;
        display: flex;
        justify-content: end;
   }
}
header .header-link {
    display: flex;
    color: var(--Colors-Main-Dark);
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
}
header .header-link:hover {
    font-weight: bold;
}
header .button-link {
    background: var(--Colors-Main-Dark);
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    color: var(--Colors-Text-Primary-Light);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    text-decoration: none;
}
@media screen and (max-width: 768px) {
    header .button-link.desktop-only {
        display: none;
   }
}
header .button-link.mobile-only {
    align-self: flex-end;
}
@media screen and (min-width: 768px) {
    header .button-link.mobile-only {
        display: none;
   }
}
header .button-link:hover {
    cursor: pointer;
}
@media screen and (max-width: 768px) {
    header {
        justify-content: space-between;
        padding: 16px 24px;
   }
    header .nav-controls .mobile-menu-button {
        display: block;
   }
}

.products-dropdown {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--Colors-Main-Dark);
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    position: relative;
}
.products-dropdown .products-dropdown-toggle {
    display: flex;
    gap: 8px;
    align-items: center;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    padding: 0;
}
.products-dropdown .products-dropdown-toggle .dropdown-toggle-icon {
    width: 24px;
    height: 24px;
    transition: 0.5s;
    transform: rotate(90deg);
}
.products-dropdown .products-dropdown-toggle .dropdown-toggle-icon.dropdown-open {
    transform: none;
}
.products-dropdown .products-dropdown-list {
    padding-inline-start: 0;
    position: absolute;
    top: 18px;
    right: -140px;
    padding: 24px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    border-radius: 16px;
    border: 1px solid var(--Local-Colors-Light-Grey);
    box-shadow: 0 0 0 4px var(--Colors-Violet-50);
    width: 340px;
    background-color: var(--Colors-Text-Primary-Light);
}
.products-dropdown .products-dropdown-list.dropdown-open {
    display: flex;
}
.products-dropdown .products-dropdown-list .products-dropdown-item {
    display: flex;
    align-items: flex-start;
}
.products-dropdown .products-dropdown-list .products-dropdown-item::marker {
    content: none;
}
.products-dropdown .products-dropdown-list .products-dropdown-item .products-dropdown-link {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
}
.products-dropdown .products-dropdown-list .products-dropdown-item .products-dropdown-link .dropdown-item-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.products-dropdown .products-dropdown-list .products-dropdown-item .products-dropdown-link .dropdown-item-text .dropdown-item-title {
    font-weight: 600;
}
.products-dropdown .products-dropdown-list .products-dropdown-item .products-dropdown-link .dropdown-item-text .dropdown-item-description {
    font-weight: 400;
}
.products-dropdown .products-dropdown-list .products-dropdown-item .products-dropdown-link .dropdown-item-img {
    width: 40px;
    height: 40px;
}
@media screen and (max-width: 768px) {
    .products-dropdown {
        width: 100%;
   }
    .products-dropdown .products-dropdown-list {
        position: static;
        width: auto;
        padding: 24px;
   }
}

html[dir='rtl'] header {
    flex-direction: row-reverse;
}
html[dir='rtl'] header .nav-controls {
    flex-direction: row-reverse;
}
html[dir='rtl'] header .header-links {
    justify-content: flex-start;
}
@media screen and (max-width: 768px) {
    html[dir='rtl'] header .header-links .header-link {
        justify-content: flex-start;
   }
}
html[dir='rtl'] header .button-link.mobile-only {
    align-self: flex-start;
}
html[dir='rtl'] .products-dropdown {
    justify-content: flex-start;
}
html[dir='rtl'] .products-dropdown .products-dropdown-toggle {
    flex-direction: row;
}
html[dir='rtl'] .products-dropdown .products-dropdown-toggle .dropdown-toggle-icon {
    transform: rotate(-90deg);
}
html[dir='rtl'] .products-dropdown .products-dropdown-toggle .dropdown-toggle-icon.dropdown-open {
    transform: none;
}
html[dir='rtl'] .products-dropdown .products-dropdown-list {
    align-items: flex-start;
}
html[dir='rtl'] .products-dropdown .products-dropdown-list .products-dropdown-item .products-dropdown-link {
    flex-direction: row-reverse;
}
html[dir='rtl'] .products-dropdown .products-dropdown-list .products-dropdown-item .products-dropdown-link .dropdown-item-text {
    align-items: flex-start;
}

/* html[dir='rtl'] {
    header {
        flex-direction: row-reverse;

        .nav-controls {
            flex-direction: row-reverse;
        }

        .header-links {
            justify-content: flex-start;

            .header-link {
                @media screen and (max-width: 768px) {
                    justify-content: flex-start;
                }
            }
        }

        .button-link {
            &.mobile-only {
                align-self: flex-start;
            }
        }
    }

    .products-dropdown {
        justify-content: flex-start;

        .products-dropdown-toggle {
            flex-direction: row;
            
            .dropdown-toggle-icon {
                transform: rotate(-90deg);

                &.dropdown-open {
                    transform: none;
                }
            }
        }

        .products-dropdown-list {
            align-items: flex-start;

            .products-dropdown-item {
                .products-dropdown-link {
                    flex-direction: row-reverse;

                    .dropdown-item-text {
                        align-items: flex-start;
                    }
                }
            }
        }
    }
} */