/* =========================================
   Закреплённая панель поиска
   ========================================= */

.header-bottom.is-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    margin-top: 0 !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/*
 * Внутреннее содержимое сохраняет
 * исходную ширину сайта.
 */
.header-bottom.is-fixed .header-bottom__content {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/*
 * RLUKS responsive layout overrides.
 * Loaded after the template's main/media styles.
 * Keep the original Fotorama library untouched.
 */

/* Mobile: compact logo. */
@media screen and (max-width: 767px) {
    .header-bottom__content > .logo {
        width: 40% !important;
        max-width: 40% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Mobile: product cards in two columns from 375px. */
@media screen and (min-width: 375px) and (max-width: 767px) {
    .items-list:not(.--list) {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .items-list:not(.--list) > .item {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        flex: none !important;
    }

    .items-list:not(.--list) > .item > .image {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .items-list:not(.--list) > .item > .image > .images {
        width: 100% !important;
        max-width: 100% !important;
    }

    .items-list:not(.--list) > .item > .image > a > .more {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Homepage: remove the sidebar only on the homepage. */
.home-layout .right-col {
    display: none !important;
}

/* Desktop homepage: use the complete available width. */
@media screen and (min-width: 768px) {
    .home-layout .col-lg-8 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

/* Desktop: flexible product grid, targeting five cards at ~1200px+. */
@media screen and (min-width: 1200px) {
    .items-list:not(.--list) {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .items-list:not(.--list) > .item {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        flex: none !important;
    }

    .items-list:not(.--list) > .item > .image {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .items-list:not(.--list) > .item > .image > .images {
        width: 100% !important;
        max-width: 100% !important;
    }

    .items-list:not(.--list) > .item > .image > a > .more {
        width: 100% !important;
        max-width: 100% !important;
    }
}
