/* Single-line top header menu matching original site (14px, nowrap) */
#b_top2 #d_top2 .menu .el + .el {
    margin-left: 14px;
}

#b_top2 #d_top2 .menu a {
    white-space: nowrap;
    font-size: 14px;
}

#b_top2 .phone_wrap {
    margin-left: 16px;
    margin-right: 12px;
}

#b_top2 .btn_wrap .btn {
    padding: 8px 16px;
    font-size: 13px;
    min-height: 44px;
    white-space: nowrap;
}

body.scroll #b_top4 {
    top: 80px;
}

/* 4-item sub-logo menu per updated Figma layout */
@media (min-width: 769px) {
    #b_top4 #d_top4 .menu {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Care links stacked cleanly under tree catalog & straight bottom edge per Figma */
#b_catalog {
    padding-bottom: 70px;
}

#b_catalog:before,
#b_catalog:after {
    display: none;
}

.care-links-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    position: relative;
    z-index: 5;
    margin-top: 24px;
}

#d_catalog .care-links-stack {
    margin-top: 136px;
    padding-bottom: 0;
}

.care-links-stack .mt_catalog {
    margin-top: 0;
    margin-bottom: 0;
}

.care-links-stack .catalog-annot {
    margin-top: 0;
}

#b_related #d_related.d_related {
    padding-top: 70px;
}

#delivery_sale .txt {
    max-width: 400px;
}

/* Figma Decor Banner after Accessories */
#decor-banner {
    padding: 30px 0 40px;
    position: relative;
    z-index: 2;
}

#decor-banner .decor-banner-link {
    display: block;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 11px 30px rgba(174, 161, 154, 0.25);
}

#decor-banner .decor-banner-desktop {
    width: 100%;
    height: auto;
    display: block;
}

#decor-banner .decor-banner-mobile {
    width: 100%;
    height: auto;
    display: none;
}

@media (max-width: 768px) {
    #b_catalog {
        padding-bottom: 40px;
    }

    #d_catalog .care-links-stack {
        margin-top: 24px;
    }

    #b_related #d_related.d_related {
        padding-top: 40px;
    }

    #decor-banner {
        padding: 20px 0 24px;
    }

    #decor-banner .decor-banner-desktop {
        display: none;
    }

    #decor-banner .decor-banner-mobile {
        display: block;
    }
}

/* Responsive video embeds in "How we prepare" */
#b_how_prepare .videos iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: 16px;
    display: block;
}

/* Clickable card titles and product images */
#d_catalog .catalog-box .cat-item .cat-i-info .cat-title,
.b_related .d_related .white-back .wb-title,
.b_related .d_related .white-back .wb-img {
    cursor: pointer;
    transition: color 0.2s;
}

#d_catalog .catalog-box .cat-item .cat-i-info .cat-title:hover,
.b_related .d_related .white-back .wb-title:hover {
    color: #30a727;
}

/* FAQ open icon rotation */
#b_faq #d_faq .faq-box .faq-item .faq-title:before {
    transition: transform 0.2s;
}

#b_faq #d_faq .faq-box .faq-item.open .faq-title:before {
    transform: rotate(45deg);
}

/* Universal Modal Wrapper (#wback / #window / #w_inner) */
#wback {
    padding: 20px;
    box-sizing: border-box;
}

#window {
    margin: auto;
    max-width: 1140px;
    transition: max-width 0.2s ease;
}

#window.modal-lg {
    max-width: 1140px;
}

#window.modal-md {
    max-width: 660px;
}

#window.modal-sm {
    max-width: 500px;
}

@media (max-width: 768px) {
    #wback {
        padding: 10px;
    }

    #window_close {
        top: 8px;
        right: 8px;
    }
}

/* Detailed Product Modal (#item_window) safeguards */
#item_window {
    overflow: hidden;
}

#item_window .imgs_list_wrap {
    min-height: 100%;
}

#item_window .imgs .img {
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

#item_window .imgs .img.active {
    border-color: #30a727;
}

#item_window .item_images .img {
    background-size: cover;
    border-radius: 16px;
}

#item_window .add_title:after {
    transition: transform 0.2s;
}

#item_window .add_title.open:after {
    transform: rotate(45deg);
}

#item_window .add_content.open {
    display: block;
}

#item_window .add_item {
    position: relative;
    transition: background-color 0.2s, border-color 0.2s;
}

#item_window .add_item.selected {
    border-color: #30a727;
    background-color: #e9e2de;
}

#item_window #b_delivery {
    padding-top: 20px;
    padding-bottom: 30px;
    margin-bottom: 0;
}

/* Custom modal content for Cart / Request / Policy inside #w_inner */
.custom-modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    box-sizing: border-box;
    color: #424242;
}

.custom-modal-title {
    font-family: "Oranienbaum Regular", Georgia, serif;
    font-size: 32px;
    line-height: 1.15;
    text-transform: uppercase;
    margin: 0 0 12px;
    color: #424242;
}

.custom-modal-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 18px;
}

.custom-modal-box .form-group {
    margin-bottom: 14px;
}

.custom-modal-box .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #424242;
}

.custom-modal-box .form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d9d2ce;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
}

.custom-modal-box .form-control:focus {
    border-color: #30a727;
}

.cart-modal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #e9e2de;
}

.cart-modal-row-title {
    font-weight: 700;
    font-size: 15px;
    color: #424242;
}

.cart-modal-row-sub {
    font-size: 13px;
    color: #777;
}

.cart-modal-row-price {
    font-size: 14px;
    font-weight: 700;
    color: #30a727;
    margin-top: 2px;
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cart-qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #d9d2ce;
    background: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-btn:hover {
    background: #30a727;
    color: #fff;
    border-color: #30a727;
}

.cart-pickup-box {
    margin: 16px 0;
    padding: 12px 14px;
    background: #f8f4f3;
    border-radius: 12px;
}

.cart-services-list {
    max-height: 170px;
    overflow-y: auto;
    display: grid;
    gap: 8px;
    margin: 10px 0 16px;
    padding-right: 4px;
}

.cart-service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.cart-total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    margin: 16px 0 20px;
    padding-top: 14px;
    border-top: 2px solid #e9e2de;
}

@media (max-width: 768px) {
    .custom-modal-box {
        padding: 20px 16px;
    }

    .custom-modal-title {
        font-size: 26px;
    }
}
