.site-header {
    position: relative;
    z-index: 50;
    background: #fff;
}

.mobile-header-bar {
    display: none;
}

.header-top-bar {
    display: flex;
    align-items: center;
    min-height: 107px;
    background: #fff;
    color: #777;
    font-size: 13px;
}

.top-bar-row,
.top-bar-contacts,
.top-bar-right,
.header-middle-row,
.header-middle-info,
.header-middle-actions,
.navigation-row {
    display: flex;
    align-items: center;
}

.top-bar-row {
    justify-content: space-between;
    gap: 28px;
}

.top-bar-contacts {
    gap: 24px;
}

.top-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.cf-icon {
    display: block;
    width: 1em;
    height: 1em;
}

.top-contact-item .cf-icon {
    width: 17px;
    height: 17px;
}

.top-bar-right {
    gap: 28px;
    margin-left: auto;
}

.buyer-info-navigation,
.buyer-info-menu {
    margin: 0;
    padding: 0;
}

.buyer-info-menu,
.buyer-info-menu .sub-menu {
    list-style: none;
}

.buyer-info-menu > li {
    position: relative;
}

.buyer-info-menu > li > a {
    display: flex;
    min-height: 50px;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.buyer-info-menu > li.menu-item-has-children > a::after {
    width: 7px;
    height: 7px;
    margin-top: -4px;
    transform: rotate(45deg);
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    content: '';
    transition: transform .2s ease;
}

.buyer-info-menu > li.menu-item-has-children:hover > a::after,
.buyer-info-menu > li.menu-item-has-children:focus-within > a::after {
    margin-top: 3px;
    transform: rotate(225deg);
}

.buyer-info-menu .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 95;
    display: grid;
    width: 230px;
    padding: 10px 0;
    border: 1px solid var(--cf-border);
    background: #fff;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .13);
    opacity: 0;
    transform: translateY(8px);
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.buyer-info-menu > li:hover > .sub-menu,
.buyer-info-menu > li:focus-within > .sub-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.buyer-info-menu .sub-menu a {
    display: block;
    padding: 10px 18px;
    color: #555;
}

.buyer-info-menu .sub-menu a:hover {
    background: #faf7f8;
    color: #111;
}

.info-dropdown-wrapper {
    position: relative;
}

.info-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: #444;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.info-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    display: none;
    width: 230px;
    padding: 10px 0;
    margin: 0;
    list-style: none;
    border: 1px solid var(--cf-border);
    background: #fff;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .13);
}

.info-dropdown-wrapper.is-active .info-dropdown-menu,
.info-dropdown-wrapper:focus-within .info-dropdown-menu {
    display: block;
}

.info-dropdown-menu a {
    display: block;
    padding: 9px 18px;
    color: #555;
}

.info-dropdown-menu a:hover {
    background: #faf7f8;
}

.header-yandex-badge,
.footer-yandex-badge {
    display: block;
    border: 0;
}

.header-main-middle {
    position: relative;
    min-height: 404px;
    background-image: var(--header-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.header-main-middle::after {
    display: none;
    content: none;
}

.site-header--home .header-main-middle {
    background-image:
        linear-gradient(rgba(38, 16, 24, .18), rgba(38, 16, 24, .18)),
        var(--header-image);
}

.header-middle-row {
    position: relative;
    z-index: auto;
    justify-content: space-between;
    min-height: 404px;
    gap: 42px;
}

.site-header--internal .header-main-middle,
.site-header--internal .header-middle-row {
    min-height: 216px;
}

.site-header--internal .header-main-middle {
    background-color: #d9aab2;
    background-image:
        linear-gradient(rgba(36, 20, 24, .12), rgba(36, 20, 24, .12)),
        url('../images/header/header-bg-internal.webp');
    background-position: center center;
    background-size: cover;
}

.site-identity {
    flex: 0 0 279px;
}

.site-identity .custom-logo {
    width: auto;
    max-width: 279px;
    max-height: 70px;
    object-fit: contain;
}

.header-middle-info {
    flex: 1;
    justify-content: center;
    gap: 48px;
}

.info-block {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 240px;
    color: #fff;
    text-shadow: 0 1px 5px rgba(0, 0, 0, .2);
}

.info-block > span:last-child {
    display: flex;
    flex-direction: column;
}

.info-block strong {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.info-block small {
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
}

@media (min-width: 992px) {
    .header-middle-info .info-block:nth-child(2) {
        max-width: none;
    }

    .header-middle-info .info-block:nth-child(2) > span:last-child,
    .header-middle-info .info-block:nth-child(2) small {
        width: max-content;
        white-space: nowrap;
    }
}

.header-symbol {
    font-size: 30px;
    font-weight: 300;
}

.header-middle-actions {
    flex: 0 0 auto;
    gap: 20px;
}

.header-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 31px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.header-action-btn:hover,
.header-action-btn:focus-visible {
    color: #fff;
    opacity: .72;
}

.header-account-menu {
    position: relative;
    display: flex;
    align-items: center;
}

.header-account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: -20px;
    z-index: 90;
    display: grid;
    width: 200px;
    padding: 20px 0;
    background: #fff;
    box-shadow: 0 7px 20px rgba(0, 0, 0, .12);
    opacity: 0;
    transform: translateY(8px);
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.header-account-dropdown::before {
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 12px;
    content: '';
}

.header-account-menu:hover .header-account-dropdown,
.header-account-menu:focus-within .header-account-dropdown,
.header-account-menu.is-open .header-account-dropdown {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.header-account-dropdown a {
    display: flex;
    min-height: 39px;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    color: #777;
    font-size: 16px;
    line-height: 1.25;
    text-align: center;
}

.header-account-dropdown a:hover {
    background: #fafafa;
    color: #111;
}

.header-wishlist-link {
    position: relative;
}

.wishlist-count {
    position: absolute;
    top: -3px;
    right: -8px;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: var(--cf-green);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
}

.wishlist-count[hidden] {
    display: none;
}

.site-header-cart {
    position: relative;
}

.colorflowers-clean-cart-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.cart-icon-wrap {
    position: relative;
    display: inline-flex;
}

.cart-count {
    position: absolute;
    top: -9px;
    right: -10px;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: var(--cf-green);
    color: #fff;
    font-size: 11px;
}

.header-mini-cart-dropdown {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1101;
    display: flex;
    width: min(440px, 92vw);
    height: 100vh;
    padding: 0 26px 24px;
    flex-direction: column;
    overflow-y: auto;
    background: #fff;
    color: var(--cf-text);
    box-shadow: -15px 0 40px rgba(0, 0, 0, .16);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
    pointer-events: auto;
}

.site-header-cart.is-open .header-mini-cart-dropdown {
    transform: translateX(0);
    visibility: visible;
}

.header-mini-cart-head {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0;
    color: #111;
    font-size: 18px;
}

.header-mini-cart-close {
    display: inline-flex;
    width: auto;
    height: 42px;
    align-items: center;
    gap: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 14px;
    cursor: pointer;
}

.header-mini-cart-close span:last-child {
    font-size: 30px;
    font-weight: 200;
    line-height: 1;
}

.header-mini-cart-dropdown .widget_shopping_cart_content {
    display: flex;
    min-height: calc(100vh - 82px);
    flex: 1;
    flex-direction: column;
    padding-top: 8px;
}

.header-mini-cart-dropdown .woocommerce-mini-cart {
    padding: 0;
    margin: 0;
    list-style: none;
}

.header-mini-cart-dropdown .woocommerce-mini-cart-item {
    position: relative;
    min-height: 121px;
    padding: 8px 24px 22px 95px !important;
    margin-bottom: 0;
    border-bottom: 1px dashed #d8d8d8;
    color: #222;
    font-size: 16px;
    line-height: 1.45;
}

.header-mini-cart-dropdown .woocommerce-mini-cart-item img {
    position: absolute !important;
    top: 8px;
    left: 0;
    width: 80px !important;
    height: 80px !important;
    margin: 0 !important;
    object-fit: cover;
}

.header-mini-cart-dropdown .remove_from_cart_button {
    position: absolute;
    top: 5px;
    right: 0;
    color: #999;
    font-size: 22px;
}

.header-mini-cart-dropdown .woocommerce-mini-cart-item > a:not(.remove) {
    display: block;
    color: #222;
    font-weight: 400;
}

.header-mini-cart-dropdown .woocommerce-mini-cart-item .quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
    color: #222;
    font-size: 14px;
}

.header-mini-cart-dropdown .woocommerce-mini-cart-item .quantity .amount {
    margin-left: auto;
    color: #999;
    font-size: 16px;
    font-weight: 600;
}

.header-mini-cart-dropdown .woocommerce-mini-cart__total {
    display: flex;
    justify-content: space-between;
    padding: 18px 0 14px;
    margin-top: auto;
    margin-bottom: 0;
    border-top: 0;
    color: #111;
}

.header-mini-cart-dropdown .woocommerce-mini-cart__total strong {
    font-weight: 400;
}

.header-mini-cart-dropdown .woocommerce-mini-cart__total .amount {
    color: #999;
    font-weight: 600;
}

.header-mini-cart-dropdown .woocommerce-mini-cart__buttons {
    display: grid;
    gap: 10px;
}

.header-mini-cart-dropdown .woocommerce-mini-cart__buttons .button {
    min-height: 50px;
    border-radius: 0;
    background: #efefef;
    color: #111 !important;
    text-transform: uppercase;
}

.header-mini-cart-dropdown .woocommerce-mini-cart__buttons .checkout {
    background: #050505;
    color: #fff !important;
}

.header-mini-cart-dropdown .woocommerce-mini-cart__empty-message {
    margin: 25px 0 auto;
    color: #777;
    text-align: center;
}

.header-mini-cart-dropdown,
.header-mini-cart-dropdown a,
.header-mini-cart-dropdown button {
    pointer-events: auto;
}

.header-mini-cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(18, 15, 16, .5);
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    transition: opacity .3s ease, visibility .3s ease;
}

.header-mini-cart-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.header-bottom-nav {
    min-height: 70px;
    background: var(--cf-pink);
}

.header-bottom-nav-placeholder {
    display: none;
    height: 0;
}

@media (min-width: 992px) {
    .header-bottom-nav-placeholder {
        display: block;
    }

    .header-bottom-nav.is-sticky {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 80;
        box-shadow: 0 8px 24px rgba(76, 43, 51, .14);
        animation: cf-sticky-nav-in .22s ease both;
    }

    body.admin-bar .header-bottom-nav.is-sticky {
        top: 32px;
    }
}

@keyframes cf-sticky-nav-in {
    from {
        opacity: .92;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navigation-row {
    min-height: 70px;
    justify-content: center;
}

#site-navigation {
    width: 100%;
}

.primary-menu-panel .close-nav,
.primary-menu-panel__title,
.nav-button,
.menu-overlay {
    display: none;
}

.nav-menu,
.nav-menu .sub-menu {
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 52px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: flex;
    min-height: 70px;
    align-items: center;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
}

.nav-menu li.menu-item-has-children > a::after {
    width: 7px;
    height: 7px;
    margin-left: 9px;
    transform: translateY(-2px) rotate(45deg);
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    content: '';
}

.nav-menu .sub-menu li.menu-item-has-children > a::after {
    margin-left: auto;
    transform: rotate(-45deg);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    color: #fff;
    opacity: .72;
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: -18px;
    z-index: 25;
    display: none;
    min-width: 230px;
    padding: 10px 0;
    border: 1px solid var(--cf-border);
    background: #fff;
    box-shadow: 0 14px 35px rgba(0, 0, 0, .13);
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
    display: block;
}

.nav-menu .sub-menu a {
    display: block;
    padding: 10px 18px;
    color: #555;
}

.submenu-toggle {
    display: none;
}

.header-search-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 13vh 20px 30px;
}

.header-search-modal.is-active {
    display: flex;
}

.search-modal-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(28, 20, 23, .68);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.search-modal-content {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    padding: 38px 40px 40px;
    overflow: hidden;
    border: 1px solid #eedfe3;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0, rgba(243, 199, 208, .24), transparent 28%),
        #fff;
    box-shadow: 0 28px 80px rgba(20, 12, 15, .3);
}

.search-modal-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 1px solid #eadfe2;
    border-radius: 50%;
    background: rgba(255, 255, 255, .82);
    color: #766b6e;
    font-size: 23px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

.search-modal-close-button:hover {
    border-color: #e1aebb;
    background: #fff4f6;
    color: #a95166;
    transform: rotate(5deg);
}

.search-modal-heading {
    padding-right: 48px;
    margin-bottom: 23px;
}

.search-modal-heading > span {
    display: block;
    margin-bottom: 6px;
    color: #b25c71;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.search-modal-heading strong {
    display: block;
    margin-bottom: 6px;
    color: #332d2f;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.search-modal-heading p {
    margin: 0;
    color: #8a7f82;
    font-size: 13px;
}

.header-search-modal .search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 10px;
}

.search-modal-input-wrap {
    position: relative;
    display: block;
    min-width: 0;
}

.search-modal-input-wrap > .cf-icon {
    position: absolute;
    top: 50%;
    left: 17px;
    z-index: 1;
    width: 20px;
    height: 20px;
    color: #b67a88;
    pointer-events: none;
    transform: translateY(-50%);
}

.header-search-modal .search-field {
    width: 100%;
    height: 54px;
    min-height: 54px;
    padding: 0 18px 0 50px;
    border: 1px solid #e4d9dc;
    border-radius: 10px;
    background: #fff;
    color: #332d2f;
    font-size: 15px;
    outline: 0;
    appearance: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.header-search-modal .search-field::placeholder {
    color: #a59a9d;
}

.header-search-modal .search-field:focus {
    border-color: #d896a6;
    box-shadow: 0 0 0 4px rgba(216, 150, 166, .12);
}

.search-submit-btn {
    display: inline-flex;
    min-width: 128px;
    height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: #2d292b;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(45, 41, 43, .15);
    transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.search-submit-btn > span:last-child {
    color: #efb3c1;
    font-size: 18px;
    transition: transform .2s ease;
}

.search-submit-btn:hover,
.search-submit-btn:focus-visible {
    background: #a85267;
    box-shadow: 0 12px 28px rgba(168, 82, 103, .22);
    transform: translateY(-1px);
}

.search-submit-btn:hover > span:last-child {
    color: #fff;
    transform: translateX(2px);
}
