.block-catalog-detail .filter-wrap {
    border: 1px solid #ececec;
    border-radius: 4px 4px 0 0;
    margin-bottom: -1px;
    margin-left: -1px;
    padding: 14px 20px 6px 20px;
    width: calc(100% - 3px);
    background: #fff;
}
.block-catalog-detail .product {
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    background-color: #f3f3f3;
    padding: 40px;
    position: relative;
    height: 100%;
    width: 100%;
    -webkit-transition: box-shadow .2s ease-out;
    -moz-transition: box-shadow .2s ease-out;
    transition: box-shadow .2s ease-out;
    border-radius: 27px;
}
.product-wrapper {
    margin-bottom: 30px;
}
.block-catalog-detail .product:hover,
.block-catalog-detail .product-buy {
    border-color: transparent;
    -webkit-box-shadow: 0px 0px 18px 0px rgba(0,0,0,0.20);
    -moz-box-shadow: 0px 0px 18px 0px rgba(0,0,0,0.20);
    box-shadow: 0px 0px 18px 0px rgba(0,0,0,0.20);
    -webkit-transition: box-shadow .2s ease-in;
    -moz-transition: box-shadow .2s ease-in;
    transition: box-shadow .2s ease-in;
    z-index: 10;
}
.block-catalog-detail.content-indent-elements .maxwidth-theme > .row > div {
    margin-bottom: 30px;
}

.block-catalog-detail .product-name {
    font-size: 18px;
    line-height: 120%;
    font-weight: 600;
    color: #040e26 !important;

}
.block-catalog-detail .product-info {
    display: flex;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 7px;
}
.block-catalog-detail .product-available {
    font-size: 12px;
    line-height: 18px;
    position: relative;
    padding-left: 14px;
}
.block-catalog-detail .product-available::before {
    content: '';
    position: absolute;
    left: 0;
    top: calc(50% - 3px);
    width: 6px;
    height: 6px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}
.block-catalog-detail .product-available-yes { color: #69BE15; }
.block-catalog-detail .product-available-yes::before{ background-color: #69BE15; }
.block-catalog-detail .product-available-no { color: #E93B3B; }
.block-catalog-detail .product-available-no::before { background-color: #E93B3B; }
.block-catalog-detail .product-rating {
    display: flex;
    align-items: center;
    margin-left: 18px;
}
.block-catalog-detail .product-star {
    margin-right: 1px;
    width: 13px;
    height: 13px;
    position: relative;
}

.block-catalog-detail .product-star--on {
    color: #f2d228;
}
.block-catalog-detail .product-star--off {
    color: #dfdfdf;
}
.block-catalog-detail .product-star svg {
    width: 13px;
    height: 13px;
    position: absolute;
    top: 0;
    left: 0;
}
.block-catalog-detail .product-bottom {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
}
.block-catalog-detail .product-prices {
    display: flex;
    flex-wrap: wrap;
}
.block-catalog-detail .product-prices > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    width: 100%;
}
.block-catalog-detail .product-price {
    font-size: 18px;
    color: #1dcd24;
    font-weight: 500;
    margin-right: 7px;
}
.block-catalog-detail .product-text {
    color: #7d7d7d;
}
.block-catalog-detail .product-price-old {
    font-size: 18px;
    color: #040e26;
    font-weight: 500;
    text-decoration: line-through;
}
.product-economy-percent {
    font-size: 11px;
    line-height: 16px;
    color: #333333;
    padding: 1px 3px 1px 4px;
    background-color: #FFD600;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    margin-right: 2px;
}
.product-economy-money {
    font-size: 11px;
    line-height: 16px;
    color: #333333;
    padding: 1px 2px 1px 5px;
    background-color: #ffef9d;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}
.block-catalog-detail .block-el-btns {
    margin: 0;
}
.block-catalog-detail .product .block-el-btns .btn {
    font-size: 14px;
    opacity: 0;
    -webkit-transition: opacity .1s ease-out;
    -moz-transition: opacity .1s ease-out;
    transition: opacity .1s ease-out;
}
.block-catalog-detail .product:hover .block-el-btns .btn {
    opacity: 1;
    -webkit-transition: opacity .1s ease-in;
    -moz-transition: opacity .1s ease-in;
    transition: opacity .1s ease-in;
}
.block-catalog-detail .product-stickers {
    position: absolute;
    top: 30px;
    left: 30px;
    max-width: calc(100% - 60px);
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
}
.block-catalog-detail .product-sticker {
    display: block;
    font-size: 12px;
    line-height: 16px;
    color: #ffffff;
    padding: 1px 5px 3px 5px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    margin-right: 5px;
    margin-bottom: 5px;
}
.block-catalog-detail .product-sticker-sale {
    background-color: #FFD600;
    color: #333333;
}
.block-catalog-detail .product-sticker-new {
    background-color: #46BD1C;
}
.block-catalog-detail .product-sticker-recommend {
    background-color: #8E51CB;
}
.block-catalog-detail .product-sticker-hit {
    background-color: #FC3E14;
}
.block-catalog-detail .product-img img {
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    height: auto;
    margin: auto;
}
.block-catalog-detail .col-xl-4 .product-img {
    max-height: 390px;
}
.block-catalog-detail .col-xl-6 .product-img {
    max-height: 580px;
}
.block-catalog-detail a.product-img,
.block-catalog-detail a.product-name {
    display: block;
    cursor: pointer;
}
.block-catalog-detail .product-buy {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    opacity: 0;
    visibility: hidden;
    height: 0;
    transition: opacity .1s ease;
    -webkit-transition: opacity .1s ease;
    -moz-transition: opacity .1s ease;
}
.block-catalog-detail .product:hover .product-buy {
    opacity: 1;
    visibility: visible;
    height: auto;
}
.block-catalog-detail .product-buy:not(.in-basket) > div {
    width: 50%;
}
.block-catalog-detail .product-buy-btn,
.block-catalog-detail .product-buy-basket-btn {
    padding-top: 12px;
    padding-bottom: 16px;
    border-radius: 0;
    cursor: pointer;
    margin-top: 0 !important;
}
.block-catalog-detail .counter {
    border-radius: 0;
    border: none;
    border-top: 1px solid #ececec;
}
.block-catalog-detail .product-buy-basket-btn,
.block-catalog-detail .product-buy.in-basket .product-buy-btn,
.block-catalog-detail .product-buy.in-basket .counter {
    display: none;
}
.block-catalog-detail .product-buy.in-basket .product-buy-basket-btn {
    display: block;
}
.block-catalog-detail .product-btn-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex-grow: 1;
}
.block-catalog-detail .product-btn {
    text-align: center;
    box-shadow: 0px 0px 18px rgba(0,0,0,0.2);
    border-radius: 9px;
    padding: 10px;
    font-weight: 500;
    font-size: 14px;
    display: block;
    width: 100%;
}
/* Фильтр в каталоге */
.filter-wrapper {
    display: grid; 
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 40px;
}
.hours-filter__dropdown-menu {
    display: flex;
    position: absolute;
    top: 40px;
    flex-direction: column;
    gap: 5px;
    border-radius: 9px;
    box-shadow: 0px 0px 18px 0px rgba(0, 0, 0, 0.20);
    padding: 20px;
    z-index: 99;
    background-color: #ffffff;
}
.hours-filter__dropdown-trigger {
    width: fit-content;
    cursor: pointer;
}
.hours-filter__controls-container  {
    position: relative;
}
.hours-filter__label {
    position: relative;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}
.hours-filter__checkbox {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.hours-filter__label .custom-checkbox {
    position: relative;
    flex: 0 0 22px;
    padding: 0 3px;
    width: 22px;
    height: 22px;
    border: 2px solid #040e26;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.hours-filter__label .custom-checkbox::after {
    content: "";
    width: 12px;
    height: 6px;
    flex-grow: 1;
    border-left: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform-origin: center;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.hours-filter__checkbox:checked ~ .custom-checkbox {
    border-color: #040e26;
}
.hours-filter__checkbox:checked ~ .custom-checkbox::after {
    border-color: #040e26;
    transform: rotate(-45deg) scale(1);
}
.hours-filter__checkbox:focus-visible ~ .custom-checkbox {
    box-shadow: 0 0 0 4px rgba(4, 14, 38, 0.2);
}
.sort-filter__wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.sort-filter__select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid #dcdcdc;
    border-radius: 9px;
    padding: 8px 42px 8px 16px;
    font-size: 14px;
    line-height: 1.4;
    color: #040e26;
    background-color: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.sort-filter__select:hover {
    border-color: #7d7d7d;
}
.sort-filter__select:focus {
    outline: none;
    border-color: #040e26;
}
.sort-filter__wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #040e26;
    border-bottom: 2px solid #040e26;
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
    transition: transform 0.2s ease-in-out;
}
.sort-filter__wrapper:focus-within::after {
    transform: translateY(-40%) rotate(-135deg);
}
.search-filter__wrapper {
    border: 1px solid #dcdcdc;
    outline: none;
    transition: border-color .15s ease-in-out;
    border-radius: 9px;
    padding: 7px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-height: 40px;
    max-width: 260px;
}
.search-filter__wrapper svg {
    width: 24px;
    height: 24px;
}
.search-filter__wrapper:hover {
    border-color: #7d7d7d;
}
.search-filter__input {
    border: none;
    outline: none;
    width: 100%;
}
.filter__chosen-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.filter__chosen-wrapper {
    display: flex;
    gap: 10px;
}
.filter__chosen-val {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 5px 10px;
    border-radius: 9px;
    background-color: #f3f3f3;
    cursor: pointer;
}
.filter__reset {
    margin-top: 20px;
    width: fit-content;
    cursor: pointer;
}
@media (max-width: 1199px) {
    .block-catalog-detail .filter-wrap {
        width: calc(100% - 2px);
    }
    .block-catalog-detail .product-buy {
        position: static;
        opacity: 1;
        visibility: visible;
        height: auto;
        margin: -25px;
        margin-top: 25px;
        box-shadow: none;
    }
}
@media (max-width: 991px) {
    .block-catalog-detail .filter-wrap {
        width: calc(100% - 1px);
    }
}
@media (max-width: 768px) {
    .filter-wrapper {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    .sort-filter {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    .search-filter {
        grid-column: 1 / 3;
        grid-row: 2 / 3;
    }
    .sort-filter__wrapper,
    .sort-filter__select {
        width: 100%;
    }
    .search-filter__wrapper {
        max-width: none;
    }
}
@media (max-width: 575px) {
    .block-catalog-detail .filter-wrap {
        width: 100%;
    }
    .product-wrapper.col-sm-6 {
        padding: 0;
    }
    .filter-wrapper {
        grid-template-columns: 1fr;
    }
    .sort-filter,
    .search-filter {
        grid-column: auto;
        grid-row: auto;
    }
}
.product-prices:has(.product-price:contains("Бесплатно")) {
    display: none !important;
}