:root {
    --color-orange-highlight: #e7b31b;
}

@font-face {
    font-family: 'SF 500';
    src: url(../fonts/SF-Pro-Display-Medium.otf);
}

@font-face {
    font-family: 'SF 700';
    src: url(../fonts/SF-Pro-Display-Bold.otf);
}

@font-face {
    font-family: 'SF 400';
    src: url(../fonts/SF-Pro-Display-Regular.otf);
}

@font-face {
    font-family: 'SF 600';
    src: url(../fonts/SF-Pro-Display-Semibold.otf);
}

@font-face {
    font-family: 'SF 800';
    src: url(../fonts/SF-Pro-Display-Heavy.otf);
}

@font-face {
    font-family: 'SF Pro Display';
    src: url(../fonts/SF-Pro-Display-Bold.otf),
    url(../fonts/SF-Pro-Display-Heavy.otf),
    url(../fonts/SF-Pro-Display-Light.otf),
    url(../fonts/SF-Pro-Display-Medium.otf),
    url(../fonts/SF-Pro-Display-Regular.otf),
    url(../fonts/SF-Pro-Display-Semibold.otf),
    url(../fonts/SF-Pro-Display-Thin.otf),
    url(../fonts/SF-Pro-Display-Ultralight.otf);
}

.header_container img {
    max-width: 100%;
    width: 100%;
}

[hidden] {
    display: none;
}

.header_container {
    align-items: center;
    gap: 7px;
    display: flex;
}

.header_container__logo img {
    height: 100% !important;
}

.header_container__logo {
    height: 67px;
    width: 162px;
}

.main_nav {
    border-radius: 12px;
    background-color: #F3F3F3;
    padding: 0 1vw;
    flex: 1;
    gap: 1.3vw;
    align-items: center;
    justify-content: center;
    margin-left: 0.54vw;
    height: 2.4vw;
    text-wrap: nowrap;
    display: flex;
}

.bottom_nav__obj a {
    color: #535353;
}

.main_nav__obj {
    text-decoration: none;
    font-size: clamp(7px, 0.6vw, 14px);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 17px 0;
    transition: 0.3s
}

.main_nav__number a {
    transition: 0.3s
}

.main_nav__obj.active,
.main_nav__obj:hover {
    color: var(--color-orange-highlight);
}

.main_nav__number a.active,
.main_nav__number a:hover {
    color: var(--color-orange-highlight);
}

.main_nav__number {
    display: flex;
    font-size: clamp(10px, 0.7vw, 16px);
    padding-left: 0.5vw;
    align-items: center;
}

.header_main__btn:hover {
    background: #ffd658;
}

.header_main__btn {
    background: #FFCA30;
    border: none;
    border-radius: 12px;
    color: #000 !important;
    font-size: clamp(8px, 0.5vw, 12px);
    padding: 0 clamp(0.8vw, 1vw, 1.25vw);
    outline: none;
    transition: 0.3s;
    letter-spacing: 1px;
    text-wrap: nowrap;
    height: 46px;
    display: grid;
    place-content: center;
    text-transform: uppercase;
}

.header_btn__search {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.4vw;
    width: 2.4vw;
    border: none;
    background-color: #F3F3F3;
    border-radius: 12px;
}

.header_btn__cart {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.4vw;
    width: 2.4vw;
    border: none;
    background-color: #F3F3F3;
    border-radius: 12px;
}

/*_____________dropdown menu__________*/
.dropdown {
    position: relative;
    padding-bottom: 10px;
    transform: translateY(5px);
}

.dropdown-toggle {
    cursor: pointer;
    align-items: center;
    display: flex;
}

.header_container__logo {
    display: flex;
}

.dropdown-menu li {
    cursor: pointer;
    text-wrap: nowrap;
}

.header_left_ctlg:after {
    content: "";
    position: absolute;
    bottom: -50%;
    background-color: transparent;
    height: 15px;
    width: 100%;
}

.dropdown-menu {
    display: none;
}

.dropdown-menu.show {
    display: block;
}

/* Меню изначально скрыто */
header a {
    color: #000;
    text-decoration: none;
}

.header_container {
    margin: 0 auto;
    width: 100% !important;
    max-width: 1200px !important;
}

header {
    font-family: 'SF 500', sans-serif;
    position: relative;
    z-index: 10000;
    background: #fff;
    padding-bottom: 10px;
}

.dropdown-menu a:hover {
    color: var(--color-orange-highlight);
}

.dropdown-menu {
    transition-delay: 80ms !important;
    position: absolute;
    top: calc(100% - 10px);
    display: flex;
    padding: 20px;
    margin-top: 0;
    gap: 10px;
    flex-direction: column;
    background: white;
    list-style: none;
    border: none;
    border-radius: 6px;
    z-index: 10000000;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, top 0.3s ease, visibility 0s linear 0.3s;
}

/* Меню показывается при наведении на родителя .dropdown (то есть на "Каталог" или меню) */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    top: 100%;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
    box-shadow: 0 4px 8px rgba(46, 59, 111, 0.12);
}

.dropdown:hover {
    color: #FFCA30;
}

.header_bottom_nav {
    gap: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #535353;
    font-family: 'SF 400', sans-serif;
    font-size: clamp(9px, 0.7vw, 14px);
    margin-top: 7px;
}

/* Стрелка поворачивается при наведении на .dropdown (на "Каталог" или меню) */
.arrow {
    display: flex;
    align-items: center;
    margin-left: 5px;
    transition: transform 0.3s ease;
    transition-delay: 80ms !important;
    background-image: url(../images/chevron.svg);
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-size: contain;
}

.dropdown:hover .arrow {
    transform: rotate(-180deg);
    filter: brightness(0) saturate(100%) invert(77%) sepia(97%) saturate(730%) hue-rotate(330deg) brightness(104%) contrast(101%);
}

/* Плавное появление пунктов списка по очереди */
.dropdown-menu li {
    color: #535353;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-menu li:hover {
    color: #FFCA30;
}

.dropdown:hover .dropdown-menu li {
    opacity: 1;
    transform: translateY(0);
    transition: 0.09s;
}