.main-menu {

    width: 100%;
}

@media (min-width: 1200px) {
    .main-menu {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        /*padding-left: 0px;*/
        /*padding-right: 0px;*/
    }

    .main-menu__tree {
        display: flex;
        align-items: stretch;
        width: 100%;
        padding: 0;
        margin: 0;
        background: #f3f3f3;
        border: 1px solid #dcdcdc;
        border-radius: 3px;
        box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.06);
        overflow: hidden;
    }

    .main-menu__tree__item {
        flex: 1 1 0;
        justify-content: center;
        text-align: center;
        border-right: 1px solid #dcdcdc;
    }

    .main-menu__tree__item:last-child {
        border-right: 0;
    }

    .main-menu__tree__link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 3.5rem;
        padding: 0 1.5rem;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        font-weight: 600;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
        color: #3b3b3b;
        background: linear-gradient(180deg, #ffffff 0%, #ededed 100%);
        transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    }

    .main-menu__tree > li > a {
        padding: 0.5rem 0.5rem;
    }

    .main-menu__tree__link:hover,
    .main-menu__tree__item.current > .main-menu__tree__link,
    .main-menu__tree__item:focus-within > .main-menu__tree__link {
        color: #111111;
        background: #ffffff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    }

    .main-menu__tree__item .menu-container {
        border: 1px solid #dcdcdc;
        border-top: 0;
        border-radius: 0 0 3px 3px;
    }

    .main-menu__tree__item .menu-container .container {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .main-menu__tree__item .dropdown-menu {
        border: 1px solid #dcdcdc;
    }
}


/* =========================
   Styles for ps_shoppingcart module (header cart)
   ========================= */
#_desktop_cart .header-block {
    background: #333333;
    border-radius: 3px;
    padding: 10px 14px;
}

#_desktop_cart .header-block__action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
}

#_desktop_cart .header-block__icon {
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
}

#_desktop_cart .header-block__title {
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
}

/* Number of products as small, muted text */
#_desktop_cart .header-block__count-text {
    color: #bfbfbf;
    font-size: 14px;
    margin-left: 6px;
}

/* Caret on the right side */
#_desktop_cart .header-block__caret {
    color: #a6a6a6;
    margin-left: auto;
    font-size: 18px;
}

/* Hide the old numeric badge */
#_desktop_cart .header-block__badge {
    display: none !important;
}

/* ===== End ps_shoppingcart styles ===== */

/* =========================
   Styles for ps_shoppingcart module (dropdown panel)
   ========================= */
#_desktop_cart {
    position: relative;
}

#_desktop_cart .cart_block.dropdown-menu {
    font-size: 13px;
    line-height: 18px;
    display: inline-block;

    position: absolute;
    left: 0;
    right: 0;
    transform: none;
    /*display: block; !* override Bootstrap to allow transitions *!*/
    width: 100%;
    top: 100%;
    /*margin-top: 6px;*/
    padding: 0;
    background: #3f3f3f;
    border: 1px solid #2e2e2e;
    border-radius: 2px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .03);
    z-index: 1002;

    /* Smooth show/hide */
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    pointer-events: none;
}

#_desktop_cart .cart_block.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear 0s;
    pointer-events: auto;
}

#_desktop_cart .cart_block .block_content {
    padding: 22px 24px 16px 24px;
    color: #efefef;
    background: transparent;
}

/* Product list */
#_desktop_cart .cart_block_list {
    margin: 0;
    padding: 0;
}

#_desktop_cart .cart_block_list .cart-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 6px 0 18px 0;
}

#_desktop_cart .cart_block_list .cart-image img {
    width: 100px;
    height: auto;
    border: 1px solid #2d2d2d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
    background: #fff;
}

#_desktop_cart .cart_block_list .cart-info {
    flex: 1 1 auto;
    min-width: 0;
}

/* Row holding quantity on the left and remove button on the right */
#_desktop_cart .cart_block_list .cart-info__top {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

#_desktop_cart .cart_block_list .product-quantity {
    color: #bdbdbd;
    margin-right: 6px;
}

#_desktop_cart .cart_block_list .product-name a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

#_desktop_cart .cart_block_list .product-price {
    display: block;
    margin-top: 8px;
    color: #efefef;
    font-weight: 600;
    width: max-content;
}

#_desktop_cart .cart_block_list .remove-from-cart {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    position: relative;
    margin-left: auto; /* push to the right within the flex row */
}

#_desktop_cart .cart_block_list .remove-from-cart .material-icons {
    font-size: 16px;
    line-height: 1;
    color: #333333;
}

/* Separator before totals */
#_desktop_cart .cart-summary {
    background: transparent;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 -2px 6px rgba(0, 0, 0, .25) inset;
    border-radius: 0px;
}

#_desktop_cart .cart-summary .card-block {
    padding: 16px 24px;
    background: transparent;
}

#_desktop_cart .cart-summary .cart-summary-line .value {
    float: right;
}

#_desktop_cart .cart-summary .cart-summary-line {
    color: #efefef;
}

#_desktop_cart .cart-summary .cart-total .label,
#_desktop_cart .cart-summary .cart-total .value {
    font-weight: 700;
}

/* Checkout button */
#_desktop_cart .checkout {
    padding: 18px 24px 22px 24px;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 -1px 6px rgba(0, 0, 0, .18) inset;
}

#_desktop_cart .checkout .btn.btn-primary {
    display: block;
    width: 100%;
    background: #39a84a;
    border-color: #2e8e3d;
    font-weight: 700;
    font-size: 16px;
    text-transform: none;
    box-shadow: 0 2px 0 #267a33, 0 8px 16px rgba(0, 0, 0, .25);
}

#_desktop_cart .checkout .btn.btn-primary:hover {
    background: #2f8f3d;
    border-color: #267a33;
}

#_desktop_cart .quantity-text {
    display: inline-block;
    color: #9c9b9b;
    text-transform: uppercase;
    font-size: 10px;
    padding-right: 5px;
}

/* ===== End ps_shoppingcart dropdown styles ===== */

/* =========================
   ps_shoppingcart width control (desktop)
   ========================= */
@media (min-width: 768px) {
    #_desktop_cart {
        flex: 0 0 320px;
        width: 320px;
        min-width: 320px;
    }

    #_desktop_cart .header-block,
    #_desktop_cart .header-block__action-btn {
        width: 100%;
    }

    #_desktop_cart .header-block {
        cursor: pointer;
    }
}

/* Adjust 320px as needed */


.header-top {
    background: #333;
    line-height: 18px;
    font-size: 13px;
    color: #777;
    font-weight: 600;

}

#_desktop_user_info a {
    float: right;
    border-left: 1px solid #515151;
    border-right: 1px solid #515151;
    padding: 3px 12px;
    border-radius: 0px;
}

#_desktop_user_info a,
#contact-link-btn a,
#_desktop_contact_link {
    line-height: 18px;
    font-size: 13px;
    color: #777;
    font-weight: 600;
}

#_desktop_user_info a,
#contact-link-btn a,
#_desktop_contact_link i,
#_desktop_contact_link span {
    color: #ffffff;
}

.header-top-desktop #contact-link-btn:hover,
#_desktop_user_info a:hover {
    background: #2b2b2b;
}

#contact-link-btn {
    /*float: right;*/
    /*border-left: 1px solid #515151;*/
    /*border-right: 1px solid #515151;*/
    padding: 6px 12px;
}

/* =========================
   ps_contactinfo: place contact button to the right on desktop header
   ========================= */
@media (min-width: 768px) {
    .header-top-desktop {
        display: flex;
        align-items: center;
        position: relative; /* anchor absolute children */
        padding: 4px 0px;
    }

    /* Move the "Contact us" button to the far right of header,
       before the sign-in block, regardless of its source column */
    .header-top-desktop #contact-link-btn {
        /*position: absolute;*/
        /*right: 108px; !* leave space for Sign in block *!*/
        /*top: 50%;*/
        /*transform: translateY(-50%);*/
        margin-left: 0;
        float: none;
        z-index: 2;
    }
}

/* ===== End ps_contactinfo styles ===== */


.header .main-menu a:not(.dropdown-item):not(.btn):hover, .header .main-menu a:not(.dropdown-item):not(.btn):hover i {
    background: #333;
    border-bottom-color: #666666;
    color: #fff;
}

.main-menu__tree > li .menu-container a[data-depth="1"]:hover,
.main-menu__tree > li .menu-container a[data-depth="1"]:hover i,
.main-menu__tree > li .menu-container a[data-depth="2"]:hover,
.main-menu__tree > li .menu-container a[data-depth="2"]:hover i {
    background: #333;
    border-bottom-color: #666666;
    color: #fff;
}

.header ul.search-widgets__results a:not(.dropdown-item):not(.btn):hover, .header ul.search-widgets__results a:not(.dropdown-item):not(.btn):hover i {
    background: #e1e1e1;
    border-bottom-color: #666666;
}

.header a:not(.dropdown-item):not(.btn):hover, .header a:not(.dropdown-item):not(.btn):hover i {
    color: #ffffff;
}

/* Show header-top on mobile as well (override Bootstrap d-none) */
@media (max-width: 767.98px) {
    /* Mobile inline main menu accordion styles */
    .menu.menu--mobile.menu--current {
        width: 100%;
        background: #f7f7f7;
        border: 1px solid #e4e4e4;
        border-radius: 4px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, .06) inset;
        margin-top: 10px;
    }

    .menu.menu--mobile .menu__list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .menu.menu--mobile .menu__list > li {
        border-top: 1px solid #e7e7e7;
        background: #fff;
    }

    .menu.menu--mobile .menu__list > li:first-child {
        border-top: 0;
    }

    .menu.menu--mobile .menu__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 16px;
        color: #2b2b2b;
        font-weight: 700;
        text-decoration: none;
    }

    .menu.menu--mobile .menu__link:active,
    .menu.menu--mobile .menu__link:focus {
        background: #f0f0f0;
        outline: none;
    }

    .menu.menu--mobile .main-menu__toggle-child {
        margin-left: auto;
        padding-left: 10px;
        color: #666;
        display: inline-flex;
        align-items: center;
    }

    /* Child panel */
    .menu.menu--child.js-menu-child {
        background: #fff;
        border: 1px solid #e6e6e6;
        border-top: 0;
        margin: 0 0 8px 0;
        padding: 12px 16px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, .08);
    }

    .menu.menu--child.js-menu-child .menu__list > li {
        border: 0;
        padding: 8px 0;
    }

    .menu.menu--child.js-menu-child .menu__link {
        padding: 8px 0;
        font-weight: 600;
    }

    .header-top-desktop {
        display: flex !important;
        width: 100%;
        position: relative; /* anchor absolute children */
        justify-content: flex-end;
    }

    /* Hide mobile-specific user info placeholder */
    #_mobile_user_info {
        display: none !important;
    }

    /* Also hide disabled mobile user info placeholder if present */
    #_mobile_user_info_disabled {
        display: none !important;
    }

    /* Hide desktop contact link on mobile */
    #_desktop_contact_link {
        display: none !important;
    }

    /* Show Sign in text inside desktop user info on mobile */
    #_desktop_user_info .header-block__title {
        display: inline !important;
    }

    /* Place contact-link to the right, before the Sign in block */
    .header-top-desktop #contact-link-btn {
        position: absolute;
        /*right: 90px; !* leave space for Sign in block *!*/
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
        float: none;
        z-index: 2;
    }

    .header-top-desktop .header-top__right.col-md-7 {
        padding-right: 0px;
    }

    /* Make logo full width on mobile */
    .header-bottom .logo {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        margin-left: 0px !important;
        padding-left: 0px;
    }

    .header-bottom .logo img.img-fluid {
        display: block;
        width: 100%;
        height: auto;
    }

    .header-bottom .navbar-brand {
        max-width: 100%;
        max-height: fit-content;
    }

    /* Replace mobile search with desktop search on mobile */
    .search__mobile {
        display: none !important;
    }

    #_desktop_search {
        display: flex !important; /* override d-none */
        flex: 0 0 100% !important; /* occupy full row */
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important; /* override ms-auto */
        order: 2;
    }

    #_desktop_search #search_widget {
        width: 100% !important;
    }

    .search-widgets__dropdown {
        left: 0px;
        z-index: 9;
    }

    /* Hide mobile cart placeholder and show desktop cart full width below search */
    #_mobile_cart,
    #_mobile_cart_disabled {
        display: none !important;
    }

    #_desktop_cart {
        display: flex !important; /* override d-none d-md-flex */
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important; /* cancel ms-auto */
        order: 3; /* place after search block */
    }

    #_desktop_cart .header-block,
    #_desktop_cart .header-block__action-btn {
        width: 100%;
        padding: 7px 14px;
    }

    /* =========================
       Mobile Menu with Bootstrap Collapse
       ========================= */
    /* Кнопка MENU (заголовок) */
    .main-menu {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .main-menu .header-block .header-block__action-btn {
        background: #f8f8f8;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        padding: 12px 16px;
        color: #555555;
        font-weight: 600;
        text-transform: uppercase;
        transition: all 0.3s ease;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        border-bottom: 3px solid #e9e9e9;
    }

    .main-menu .header-block .header-block__action-btn:hover {
        background: #f0f0f0;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    }

    .main-menu .header-block .header-block__action-btn:focus {
        outline: none;
    }

    /* Іконка + / - для головного меню */
    .mobile-main-toggle-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        font-size: 30px;
        font-weight: 300;
        line-height: 1;
        transition: transform 0.3s ease;
        position: relative;
    }

    /* Іконка для головного меню - aria-expanded на батьківському div */
    div[data-bs-toggle="collapse"][aria-expanded="true"] .mobile-main-toggle-icon,
    .header-block__action-btn[aria-expanded="true"] .mobile-main-toggle-icon {
        font-size: 0;
    }

    div[data-bs-toggle="collapse"][aria-expanded="true"] .mobile-main-toggle-icon::after,
    .header-block__action-btn[aria-expanded="true"] .mobile-main-toggle-icon::after {
        content: "−";
        display: block;
        font-size: 30px;
        line-height: 1;
        font-weight: 300;
    }

    div[data-bs-toggle="collapse"][aria-expanded="false"] .mobile-main-toggle-icon::after,
    .header-block__action-btn[aria-expanded="false"] .mobile-main-toggle-icon::after {
        display: none;
    }

    /* Головний контейнер collapse */
    #mobileMainMenuCollapse {
        overflow: hidden;
        min-height: 0;
    }

    #mobileMainMenuCollapse.collapsing {
        transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        overflow: hidden;
        will-change: height;
        min-height: 0;
        position: relative;
        height: 0;
    }

    #mobileMainMenuCollapse.collapse:not(.show) {
        display: none;
    }

    #mobileMainMenuCollapse.collapse.show {
        display: block;
        overflow: visible;
        min-height: auto;
        height: auto;
    }

    /* Контейнер мобільного меню - такий самий стиль як кнопка MENU */
    .main-menu__mobile {
        background: #f8f8f8;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        padding: 0;
        width: 100%;
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    /* Додаткові стилі для плавного розгортання */
    #mobileMainMenuCollapse.collapsing .main-menu__mobile {
        transform: translateZ(0);
    }

    /* Стилі для нової структури головного меню */
    .header-block .menu-item {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .header-block .submenu {
        background: #f8f8f8;
        border: 1px solid #e0e0e0;
        border-top: 0;
        border-radius: 0 0 4px 4px;
        margin-top: -1px;
        padding: 0;
    }

    .header-block .submenu.collapsing {
        transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        will-change: height;
    }

    .header-block .submenu.collapse:not(.show) {
        display: none;
    }

    .header-block .submenu.collapse.show {
        display: block;
        overflow: visible;
    }

    /* Список меню */
    .mobile-menu__list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    /* Заголовок підменю */
    .mobile-menu__title {
        padding: 12px 16px;
        margin: 0;
        font-size: 1.1rem;
        font-weight: 700;
        color: #333333;
        background: #f0f0f0;
        border-bottom: 1px solid #e0e0e0;
    }

    /* Елемент меню */
    .mobile-menu__item {
        border-bottom: 1px solid #e0e0e0;
        background: #ffffff;
        transition: background-color 0.2s ease;
    }

    .mobile-menu__item:last-child {
        border-bottom: none;
    }

    .mobile-menu__item:hover {
        background: #fafafa;
    }

    .mobile-menu__item.current {
        background: #f5f5f5;
    }

    /* Посилання меню */
    .mobile-menu__link {
        display: block;
        padding: 14px 16px;
        color: #555555;
        font-weight: 600;
        text-transform: uppercase;
        text-decoration: none;
        transition: all 0.2s ease;
        cursor: pointer;
        border-bottom: 3px solid #e9e9e9;
    }

    .mobile-menu__link:hover {
        color: #333333;
        background: transparent;
    }

    .mobile-menu__link:active,
    .mobile-menu__link:focus {
        outline: none;
        color: #333333;
    }

    /* Іконка + / - для підменю (всередині mobile-menu__link) */
    .mobile-menu__link .mobile-main-toggle-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        font-size: 30px;
        font-weight: 300;
        line-height: 1;
        transition: transform 0.3s ease;
        position: relative;
    }

    .mobile-menu__link[aria-expanded="true"] .mobile-main-toggle-icon {
        font-size: 0;
    }

    .mobile-menu__link[aria-expanded="true"] .mobile-main-toggle-icon::after {
        content: "−";
        display: block;
        font-size: 30px;
        line-height: 1;
        font-weight: 300;
    }

    .mobile-menu__link[aria-expanded="false"] .mobile-main-toggle-icon::after {
        display: none;
    }

    /* Підменю (collapse) */
    .mobile-menu__submenu {
        background: #fafafa;
        /*border-top: 1px solid #e8e8e8;*/
        padding: 0;
        overflow: hidden;
        margin-left: 1rem;
    }

    /* Плавна анімація для collapse */
    .mobile-menu__submenu.collapsing {
        transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        will-change: height;
    }

    .mobile-menu__submenu.collapse:not(.show) {
        display: none;
    }

    .mobile-menu__submenu.collapse.show {
        display: block;
        overflow: visible;
    }

    /* Вкладені списки в підменю */
    .mobile-menu__submenu .mobile-menu__list {
        padding: 0;
    }

    .mobile-menu__submenu .mobile-menu__item {
        background: #ffffff;
        border-bottom: 1px solid #f0f0f0;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
        margin-bottom: 0;
    }

    .mobile-menu__submenu .mobile-menu__item:last-child {
        border-bottom: none;
    }

    .mobile-menu__submenu .mobile-menu__link {
        padding: 10px 14px;
        font-size: 0.9rem;
        font-weight: 500;
        text-transform: none;
    }

    /* Глибші рівні вкладеності */
    .mobile-menu__submenu .mobile-menu__submenu {
        margin-left: 1rem;
        background: #f5f5f5;
    }

    /* Додаткові елементи (валюта, мова) */
    .main-menu__additionnals {
        padding: 16px;
        background: #f8f8f8;
        border-top: 1px solid #e0e0e0;
        border-radius: 0 0 4px 4px;
    }

    .main-menu__selects {
        display: flex;
        gap: 12px;
        align-items: center;
    }

}

.header {
    position: static;
}

.wrapper.container {
    padding-left: unset;
    padding-right: unset;
}

/* =========================
   Styles for htmlcontent_top block (sidebar banners)
   ========================= */
/* Вирівнювання висоти слайдера та блоку банера */
.row:has(#home-slider) {
    display: flex;
    align-items: stretch;
    flex-direction: row;
}

.row > #home-slider {
    display: flex;
    flex-direction: column;
}

.row > #htmlcontent_top {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Десктоп: блоки в одному рядку */
@media (min-width: 768px) {
    .row:has(#home-slider) {
        flex-direction: row;
        display: flex;
    }

    .row > #home-slider {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }

    .row > #htmlcontent_top {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    #left-column .viewed-products .product-miniature.js-product-miniature {
        width: 100%;
    }
}

#htmlcontent_top .htmlcontent-home {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
    justify-content: space-between;
}

#htmlcontent_top .htmlcontent-home li {
    width: 100%;
    margin: 0;
    padding: 0;
}

#htmlcontent_top .htmlcontent-home .item-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#htmlcontent_top .htmlcontent-home .item-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#htmlcontent_top .htmlcontent-home .item-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Перший банер - Need to Convert Protocols? (світло-блакитний градієнт) */
#htmlcontent_top .htmlcontent-item-1 .item-link {
    background: linear-gradient(180deg, #e3f2fd 0%, #ffffff 100%);
}

#htmlcontent_top .htmlcontent-item-1 .item-html {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

#htmlcontent_top .htmlcontent-item-1 .item-html h2 {
    color: #666666;
    font-size: 24px;
    line-height: 1.3;
    margin: 0;
    text-shadow: none;
    width: 100%;
    text-align: left;
    font-weight: 500;
}

/* Другий банер - Adobe Flash Player End of Life (рожевий градієнт) */
#htmlcontent_top .htmlcontent-item-2 .item-link {
    background: linear-gradient(180deg, #fce4ec 0%, #ffffff 100%);
}

#htmlcontent_top .htmlcontent-item-2 .item-html {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

#htmlcontent_top .htmlcontent-item-2 .item-html h2 {
    color: #666666;
    font-size: 24px;
    line-height: 1.3;
    margin: 0 0 10px 0;
    text-shadow: none;
    width: 100%;
    text-align: left;
    font-weight: 500;
}

#htmlcontent_top .htmlcontent-item-2 .item-html p {
    color: #666666;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    text-shadow: none;
    width: 100%;
    text-align: left;
    font-weight: 500;
}

#htmlcontent_top .htmlcontent-item-2 .item-html p strong {
    font-weight: 600;
    color: #666666;
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 767.98px) {
    /* Зміна напрямку row на вертикальний для мобільних */
    .row:has(#home-slider) {
        flex-direction: column;
        align-items: stretch;
    }

    /* Блоки на всю ширину екрана */
    .row > #home-slider {
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
    }

    .row > #htmlcontent_top {
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
        padding-left: 0;
        margin-top: 15px;
        height: auto;
    }

    /* Елементи в htmlcontent_top горизонтально, по половині екрана */
    #htmlcontent_top .htmlcontent-home {
        flex-direction: row;
        gap: 10px;
        height: auto;
        justify-content: space-between;
    }

    #htmlcontent_top .htmlcontent-home li {
        width: calc(50% - 5px);
        flex: 0 0 calc(50% - 5px);
    }

    #htmlcontent_top .htmlcontent-item-1 .item-html h2,
    #htmlcontent_top .htmlcontent-item-2 .item-html h2 {
        font-size: 2.2vw;
    }

    #htmlcontent_top .htmlcontent-item-2 .item-html p {
        font-size: 8px;
    }

    .ratio-homeSlider {
        min-height: auto;
    }

    .carousel .carousel-caption .caption-description p {
        font-size: 0.5em;
        line-height: 0em;
        padding: 0.4em 0;
    }

    .carousel .carousel-caption h2 {
        font-size: 1em;
    }

    .carousel .carousel-caption h4 {
        font-size: 0.6em;
    }

    .carousel .carousel-caption h1 {
        font-size: 0.8em;
    }

    #home-slider,
    #htmlcontent_top {
        width: 100%;
    }

    #htmlcontent_top {
        margin-top: 10px;
    }

    .carousel .carousel-control-next, .carousel .carousel-control-prev {
        height: 2em;
        width: 2em;
    }
}

/* ===== End htmlcontent_top styles ===== */

.user-info .dropdown-menu.show {
    background: #333;
    width: 100%;
}

.product-card__actions,
.product-miniature__title {
    text-align: center;
}

.product-miniature__product_description {
    text-align: center;
    margin-top: 15px;
}


.product-miniature .product-miniature__prices {
    display: block;
    text-align: center;
}

.product-miniature .product-list-reviews {
    padding: 0rem 0 0rem;
}

.product-miniature:not(.reviews-loaded) .product-list-reviews {
    min-height: unset;
}

