/* TopStore theme overrides.
   Вынесено из шаблонов и собрано в один файл по канонам Diafan. */

/* === Global helpers === */
/* TopStore: общие правки, вынесенные из шаблонов. */
.swiper-pagination-bullet::after {
    width: 0;
    height: 0;
}

.useradmin_contener {
    all: unset !important;
    display: inline !important;
}

[hidden],
.topstore-hidden {
    display: none !important;
}

.js-filter-empty {
    display: none;
    font-size: 13px;
    color: #999;
    padding: 6px 0;
}

.js-filter-empty._visible {
    display: block;
}

.cart__details .cart__details-checkout,
.cart__details .cart__details-checkout:link,
.cart__details .cart__details-checkout:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    background: #6B00FE;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
}

.cart__details .cart__details-checkout:hover {
    background: #6100E5;
}

.thanks__content .thanks__button,
.thanks__content .thanks__button:link,
.thanks__content .thanks__button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 209px;
    height: 46px;
    background: #6B00FE;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
}

.thanks__content .thanks__button:hover {
    background: #6100E5;
}

.thanks__content .thanks__button span {
    display: inline-block;
    vertical-align: middle;
    width: 11px;
    height: 11px;
    background: url('/topstore/img/back.svg');
    margin-right: 4px;
}

.topstore-yandex-map {
    width: 100%;
    height: 100%;
}

.topstore-leftmenu-item {
    font-size: 13px;
}

.paginator_more_form {
    width: 100%;
}

/* === start === */

.index-marquee {
position: relative;
  z-index: 3;
  background: #141415;
  padding: 15px 0;
  margin-bottom: 150px;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
display: inline-flex;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-content {
display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.marquee-content span {
font-size: 16px;
  color: #fff;
  display: inline-block;
    margin-right: 30px;
    padding-left: 42px;
}

.marquee-content span::after {
margin-left: 10px;
  opacity: 0.5;
}

.marquee-content span:last-child::after {
content: "•";
}

@keyframes marquee-scroll {
0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-content span::after {
display: none;
}

@media (min-width: 992px) {
.topstore-template-start .swiper2 .swiper-wrapper {
/* Отключаем любые взаимодействия с оберткой слайдера */
    pointer-events: none;
}

.topstore-template-start .swiper2 .new-products__link, .topstore-template-start .swiper2 .new-products__button {
/* Возвращаем кликабельность ссылкам и кнопкам */
    pointer-events: auto;
}
}

.topstore-template-start .hits__list {
overflow: visible;
}

.topstore-template-start .swiper4 .swiper-wrapper {
transition-timing-function: linear !important;
}

.topstore-template-start .footer:before {
bottom: 0px;
}

.topstore-template-start .ban_form {
margin-right: 10px;
}

.topstore-template-start .ban_form2 {
margin-right: 10px;
    width: 73px;
    height: 53px;
    background: #6b00fe url(/topstore/img/cart.svg) no-repeat center;
    border-radius: 10px;
}

.topstore-template-start .ban_form2:hover {
background: #6100e5 url(/topstore/img/cart.svg) no-repeat center;
}

.topstore-template-start .offer-d>* {
margin-bottom: 0rem;
}

.topstore-template-start .index-slider__links button {
margin-right: 0px;
}

@media (max-width: 575px) {
.topstore-template-start .index-slider__catalog-link {
width: calc(100% - 89px);
}
}

.topstore-template-start .ban_form2.added-to-cart {
background-color: #fff;
   
	background: #fff url("/topstore/img/cartblack.svg") no-repeat center !important;
}

@media (max-width: 575px) {
.topstore-template-start .categories__item::after {
border-radius: 14px;
}
}

.topstore-template-start .index-slider__item .wrap {
display: flex;
    flex-direction: column;
    min-height: 250px;
}

.topstore-template-start .index-slider__image {
margin-top: auto;
}

@media (max-width: 650px) {
.topstore-template-start .index-slider__item .wrap {
min-height: 150px;
}
}

.topstore-template-start .index-slider__item {
overflow: hidden;
}

/* === contacts === */
.topstore-template-contacts .shops h2 {
    display: none;
}
.topstore-template-contacts .wrap {
    position: relative;
    z-index: 1;
}

/* === shop === */

.topstore-template-shop .useradmin_contener {
all: unset !important;
    display: inline !important;
}

.topstore-template-shop .h1 {
display: inline-block;
    margin-right: 10px;
}

.topstore-template-shop #coltov {
display: inline-block;
    margin-left: 6px;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #7c7c7c;
}

.topstore-template-shop .catalog__bottom-button, .topstore-template-shop .catalog__bottom-button:focus, .topstore-template-shop .catalog__bottom-button:active {
background: #0e0e0e !important;
    color: #fff !important;
    outline: none;
}

.topstore-template-shop .button-d_outline:active {
background-color: #222;
    border-color: #222;
}

@media (min-width: 1230px) {
.topstore-template-shop .catalog__list {
display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;

	column-gap: 38px;
    row-gap: 0;
}
}

.topstore-template-shop .catalog__filter-select input[type="radio"]:checked+label::before, .topstore-template-shop .field-d input[type="checkbox"]:checked+label::before {
color: #d70f7e;
}

.topstore-template-shop .hits__name a {
text-decoration: none;
}

.topstore-template-shop .wishin2 {
display: flex;
    gap: 10px;
    padding-top: 20px;
}

.topstore-template-shop .error, .topstore-template-shop .errors {
color: #bababa;
    background-color: #2a2a2a;
}

.topstore-template-shop .hits__links {
display: flex;
    align-items: center;
}

.topstore-template-shop .element-d_card>.element-d__details, .topstore-template-shop .element-d_rowcard>.element-d__details, .topstore-template-shop .element-d_postcard>.element-d__details {
display: flex;
flex-direction: column;
padding: 2rem 0.5rem 0.1rem;
flex-grow: 1;
}

.topstore-template-shop .element-d_card>.element-d__images, .topstore-template-shop .element-d_rowcard>.element-d__images {
margin: 0px;
    border: 0px;
}

.topstore-template-shop .hits__fav {
background: rgb(36 36 36 / 70%) url(/topstore/img/fav.svg) no-repeat center;
}

.topstore-template-shop .hits__compare {
background: rgb(36 36 36 / 70%) url(/topstore/img/compare.svg) no-repeat center;
}

.topstore-template-shop .pricelist-d__row.active, .topstore-template-shop .pricelist-d__row._active, .topstore-template-shop .pricelist-d__row.show {
display: flex !important;
}

.topstore-template-shop .catalog__filter-button, .topstore-template-shop .catalog__filter-button:focus, .topstore-template-shop .catalog__filter-button:active {
margin-top: 10px;
}

.topstore-template-shop .catalog__filter-button {
font-weight: 400;
text-decoration: none;
}

.topstore-template-shop .button-d {
font-weight: 400;
}

.interact-d.hits__fav:hover, .interact-d.hits__fav._active {
background: rgb(36 36 36 / 70%) url(/topstore/img/fav2.svg) no-repeat center;
}

.interact-d.hits__compare:hover, .interact-d.hits__compare._active {
background: rgb(54 54 54 / 32%)  url(/topstore/img/compare2.svg) no-repeat center;
}

.topstore-template-shop .interact-d:focus, .topstore-template-shop .interact-d:active, .topstore-template-shop .interact-d_active:active, .topstore-template-shop .interact-d._active:active {
background-color: #222;
}

.topstore-template-shop .hits__button span {
margin-right: 4px;
}

.topstore-template-shop .offer-d__button_tocart._active {
background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important; 
    transition: all 0.3s ease; /* Плавное переключение цвета */
}

.topstore-template-shop .offer-d__button_tocart._active span {
color: #000000 !important;
}

.topstore-template-shop .offer-d__button_tocart._active span {
background: url(/topstore/img/cart3.png);
    margin: -2px 2px 0 0;
}

.topstore-template-shop .error2 {
display: none;
}

.topstore-template-shop .cart-link {
position: relative;
    display: inline-flex;
    align-items: center;
}

.topstore-template-shop .cart-count-wrapper {
position: absolute;
    top: 6px;
    right: -10px;
}

.topstore-template-shop .catalog__filter-item_price {
margin-bottom: 35px;
}

.topstore-template-shop .runner-d__track.ui-slider .ui-slider-range {
background-color: #c70b73;
}

.topstore-template-shop .catalog__filter-button {
    display: flex;
    align-items: center;
    justify-content: center;
background: #222;
    color: #fff;
    transition: all 0.15s ease;
    transform: translateY(0);
}

.topstore-template-shop .catalog__filter-button:hover {
background: #2f2f2f;
}

.topstore-template-shop .catalog__filter-button:active {
background: #444;
    transform: translateY(1px);
}

.topstore-template-shop .catalog__filter-button, .topstore-template-shop .catalog__filter-button:focus, .topstore-template-shop .catalog__filter-button:active {
background: #222 !important;
    color: #fff;
    outline: none;
}

.topstore-template-shop .catalog__filter-item_spaced {
margin-bottom: 35px;
}

/* === basket === */

.topstore-template-basket .useradmin_contener {
all: unset !important;
    display: inline !important;
}

.topstore-template-basket .h1 {
display: inline-block;
    margin-right: 10px;
}

.topstore-template-basket #coltov {
display: inline-block;
    margin-left: 6px;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #7c7c7c;
}

.topstore-template-basket .catalog__bottom-button, .topstore-template-basket .catalog__bottom-button:focus, .topstore-template-basket .catalog__bottom-button:active {
background: #222 !important;
    color: #fff !important;
    outline: none;
}

.topstore-template-basket .button-d_outline:active {
background-color: #222;
    border-color: #222;
}

.topstore-template-basket .table-d .detail-d:last-child {
font-size: 14px;
    color: #8b8b8b;
}

.topstore-template-basket .details-d>*, .topstore-template-basket .details-d__enum>* {
margin-bottom: 0px;
}

.topstore-template-basket .cart__item-data a {
text-decoration: none;
}

.topstore-template-basket .table-d__title {
border-bottom: 1px solid #222;
}

.topstore-template-basket .table-d__row:not(:last-child) {
border-bottom: 1px solid #222;
}

.topstore-template-basket input, .topstore-template-basket select, .topstore-template-basket textarea {
background: #000000;
}

.topstore-template-basket .table-d__total {
margin-top: 1.66667rem;
    padding: 1.66667rem;
    font-size: 1.16667rem;
    background-color: #1a1a1a;
}

.topstore-template-basket .coupon-d {
background-color: #161616;
}

.topstore-template-basket .error, .topstore-template-basket .errors {
background-color: #242424;
}

.topstore-template-basket .table-d__deliveries .table-d__enum {
display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.table-d__deliveries {
    margin-bottom: 2rem;
}

.topstore-template-basket .table-d__deliveries .table-d__delivery {
    /*(flex: 1 1 calc(50% - 6px);*/
    min-width: 250px;
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 20px;
    border: 1px solid #2c2c2c;
    border-radius: 14px;
    background: #0b0b0b;
    cursor: pointer;
    transition: all .25s ease;
    position: relative;
}

.topstore-template-basket .table-d__deliveries .field-d {
position: absolute;
    opacity: 0;
    pointer-events: none;
}

.topstore-template-basket .table-d__deliveries .cell-d_details {
width: 100%;
}

.topstore-template-basket .table-d__deliveries .detail-d_name {
color: #fff;
    font-size: 14px;
    font-weight: 300;
}

.topstore-template-basket .table-d__deliveries .detail-d_desc, .topstore-template-basket .table-d__deliveries .price-d {
color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.topstore-template-basket .table-d__deliveries .cell-d_sum, .topstore-template-basket .table-d__deliveries .cell-d_wishlist, .topstore-template-basket .table-d__deliveries .cell-d_select {
display: none;
}

.topstore-template-basket .table-d__deliveries .table-d__delivery:has(input[type="radio"]:checked) {
background: #6B00FE;
    border-color: transparent;
}

.topstore-template-basket .table-d__deliveries .table-d__delivery:not(:has(input[type="radio"]:checked)) {
border: 1px solid #3b3b3b;
    background: #0b0b0b;
}

@media (max-width: 768px) {
.topstore-template-basket .table-d__deliveries .table-d__delivery {
flex: 1 1 100%;
}

.topstore-template-basket .table-d__deliveries .detail-d_name {
font-size: 18px;
}

.topstore-template-basket .table-d__deliveries .detail-d_desc {
font-size: 14px;
}
}

.topstore-template-basket .cart_table {
margin-top: 20px;
    width: 100%;
}

.topstore-template-basket .field-d input, .topstore-template-basket select, .topstore-template-basket textarea {
border-radius: 8px;
    padding: 12px;
}

.topstore-template-basket #order_form {
margin-bottom: 20px;
}

.topstore-template-basket .cart-d__submit .button-d {
margin-top: 0;
    width: 100%;
}

.topstore-template-basket .table-d__total {
background-color: #141414;
    padding: 20px;
}

@media (min-width: 576px) {
.topstore-template-basket .table-d_sm .table-d__row {
align-items: flex-start;
}
}

.topstore-template-basket .table-d_sm .table-d__row {
justify-content: space-between;
}

.topstore-template-basket .cart__item-data {
width: calc(100% - 145px);
    position: relative;
}

@media (min-width: 576px) {
.topstore-template-basket .table-d_sm .cell-d:not(:last-child) {
margin-right: 25px;
}
}

.topstore-template-basket .cart__item-info {
width: 58%;
}

.topstore-template-basket .js_cart_count_minus {
left: 0;
    background: url(/topstore/img/minus.svg) no-repeat;
	height: 20px;
    width: 20px;
}

.topstore-template-basket .js_cart_count_plus {
right: 0;
    background: url(/topstore/img/plus2.svg) no-repeat;
	height: 20px;
    width: 20px;
}

.topstore-template-basket .number.js_cart_count {
display: flex;
    align-items: center;
    gap: 8px;
	width: 73px;
}

.topstore-template-basket .number.js_cart_count button {
flex: 0 0 auto;
}

.topstore-template-basket .number.js_cart_count input {
width: 24px;
    text-align: center;
    padding: 0;
}

.topstore-template-basket .cart__item-data a {
text-decoration: underline;
    color: rgba(255, 255, 255, 0.5);
}

.topstore-template-basket .cart__item-data {
position: relative;
    padding-bottom: 35px; /* подбери значение */
}

.topstore-template-basket .cart__item-links label {
word-wrap: break-word;
    word-break: break-word;
    text-decoration: none;
    font-size: 12px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.5);
    display: inline-block;
    margin-right: 15px;
}

.topstore-template-basket #nf {
display: flex;
	   justify-content: space-between;
    padding-left: 0;
}

.topstore-template-basket #nf2 {
flex-shrink: 0;
    margin-top: 0;
}

.topstore-template-basket .table-d__good .cell-d_images {
position: relative;
}

.topstore-template-basket form .field-d {
margin-bottom: 0;
}

.topstore-template-basket .order__form input[type="text"], .topstore-template-basket .order__form input[type="tel"], .topstore-template-basket .order__form input[type="email"], .topstore-template-basket .order__form select, .topstore-template-basket .order__form textarea {
width: 100%;
    height: 41px;
    margin-bottom: 14px;
    padding: 0 12px;
    background: #252525;
    border-radius: 8px;
}

.topstore-template-basket .order__form input[name="p2"] {
padding: 0 12px 0 41px;
    background: rgba(255, 255, 255, 0.08) url(/topstore/img/flag.svg) no-repeat 12px 50%;
}

.topstore-template-basket .number js_cart_count input[type="text"], .topstore-template-basket input, .topstore-template-basket select, .topstore-template-basket textarea {
width: 100%;
    height: 20px;
    margin-bottom: 0px;
    padding: 0 12px;
    background: #000000;
    border-radius: 8px;
}

.topstore-template-basket .price-d_old {
display: block;
    margin-top: 2px;
    line-height: 2;
        text-decoration-line: line-through;
		position: static;
}

.topstore-template-basket .price-d_old::after {
content: none;
}

@media (max-width: 1000px) {
.topstore-template-basket aside {
display: block;
}
}

@media (max-width: 575px) {
.topstore-template-basket .cart__item-data {
width: calc(100% - 96px);
}

.topstore-template-basket .cart__item-links label {
font-size: 10px;
}

.topstore-template-basket .cell-d_count {
position: absolute;
        right: 0;
        bottom: 18px;
}

.topstore-template-basket .js_cart_item {
position: relative;
}

.topstore-template-basket .order__fields input[type="text"] {
width: 100%;
}

.topstore-template-basket .field-d {
width: 100%;
}
}

.topstore-template-basket .error, .topstore-template-basket .errors {
color: #bababa;
    background-color: #121212;
	    display: block;
		    position: absolute;
}

/* === compare === */

.topstore-template-compare .useradmin_contener {
all: unset !important;
    display: inline !important;
}

.topstore-template-compare .h1 {
display: inline-block;
    margin-right: 10px;
}

.topstore-template-compare #coltov {
display: inline-block;
    margin-left: 6px;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #7c7c7c;
}

.topstore-template-compare .catalog__bottom-button, .topstore-template-compare .catalog__bottom-button:focus, .topstore-template-compare .catalog__bottom-button:active {
background: #222 !important;
    color: #fff !important;
    outline: none;
}

.topstore-template-compare .button-d_outline:active {
background-color: #222;
    border-color: #222;
}

@media (min-width: 1230px) {
.topstore-template-compare .catalog__list {
display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;

	column-gap: 38px;
    row-gap: 0;
}
}

.topstore-template-compare .catalog__filter-select input[type="radio"]:checked+label::before, .topstore-template-compare .field-d input[type="checkbox"]:checked+label::before {
color: #d70f7e;
}

.topstore-template-compare .hits__name a {
text-decoration: none;
}

.topstore-template-compare .hits__button {
font-size: 15px;
}

.topstore-template-compare .error, .topstore-template-compare .errors {
color: #bababa;
    background-color: #2a2a2a;
}

.topstore-template-compare .hits__links {
display: flex;
    align-items: center;
}

.topstore-template-compare .element-d_card>.element-d__details, .topstore-template-compare .element-d_rowcard>.element-d__details, .topstore-template-compare .element-d_postcard>.element-d__details {
padding: 2rem 0.5rem 0.1rem;
}

.topstore-template-compare .element-d_card>.element-d__images, .topstore-template-compare .element-d_rowcard>.element-d__images {
margin: 0px;
    border: 0px;
}

.topstore-template-compare .hits__fav {
background: rgb(36 36 36 / 70%) url(/topstore/img/fav.svg) no-repeat center;
}

.topstore-template-compare .hits__compare {
background: rgb(36 36 36 / 70%) url(/topstore/img/compare.svg) no-repeat center;
}

.topstore-template-compare .pricelist-d__row {
display: none;
}

.topstore-template-compare .pricelist-d__row.active, .topstore-template-compare .pricelist-d__row._active, .topstore-template-compare .pricelist-d__row.show {
display: flex !important;
}

.topstore-template-compare .element-d_card, .topstore-template-compare .element-d_rowcard {
border: 0px;
}

@media (min-width: 576px) {
.topstore-template-compare .compare-d__params {
padding-top: 37px;
}
}

.topstore-template-compare .param-d_compare._diff {
background-color: #252525;
	padding-left: 10px;
}

.topstore-template-compare .stockbut {
width: 100%;
    height: 46px;
    background: #6B00FE;
    border-radius: 8px;
}

.topstore-template-compare .gall-d_navbottom .gall-d__nav {
margin-top: 50px;
}

.topstore-template-compare .param-d_compare._colored {
color: #fff;
    background-color: #1a1a1a;
}

.topstore-template-compare .product__params-item2 h3 {
margin-bottom: 14px;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
}

.topstore-template-compare .t_title {
margin-bottom: 6px;
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: #5e5e5e;
}

.topstore-template-compare .param-d__value2 {
border-bottom: 1px solid #1c1c1c;
}

.topstore-template-compare table {
border-collapse: collapse;
    width: 100%;
}

.topstore-template-compare .product__params-item2 table {
border-collapse: separate;
    border-spacing: 0 25px;
}

.topstore-template-compare .param-d__value2 {
padding-bottom: 30px;
}

.topstore-template-compare .product__params-item2 {
margin-top: 40px;
}

.topstore-template-compare .compare2 {
width: 25%;
}

.topstore-template-compare .compare__item .flex2 div {
color: #dfdfdf;;
}

.topstore-template-compare .compare-content {
width: max-content;
}

.topstore-template-compare .compare-scroll {
overflow-x: auto;
    overflow-y: hidden;
}

.topstore-template-compare .compare-content {
width: max-content;
}

.topstore-template-compare .compare__list {
display: flex;
    gap: 20px;
}

.topstore-template-compare .compare__list .hits__item {
flex: 0 0 300px;
    width: 300px;
}

.topstore-template-compare .compare__list {
display: flex;
    flex-wrap: nowrap; /* запрет переноса */
    gap: 20px;
}

.topstore-template-compare .compare__list .hits__item {
flex: 0 0 300px;
position: relative;
}

.topstore-template-compare .compare-scroll {
overflow-x: auto;
}

.topstore-template-compare .compare__list, .topstore-template-compare .compare4 {
width: 100%;
}

.topstore-template-compare .flex2 {
display: flex;
    flex-wrap: nowrap;
}

.topstore-template-compare .flex2 > div {
width: 308px;
    min-width: 308px;
    flex: 0 0 300px;
}

.topstore-template-compare .compare__item {
width: max-content;
    min-width: 100%;
}

.topstore-template-compare .compare-scroll::-webkit-scrollbar {
height: 10px; /* толщина полосы */
}

.topstore-template-compare .compare-scroll::-webkit-scrollbar-track {
background: #2b2b2b; /* фон */
}

.topstore-template-compare .compare-scroll::-webkit-scrollbar-thumb {
background: #555; /* темно-серый бегунок */
    border-radius: 10px;
}

.topstore-template-compare .compare-scroll::-webkit-scrollbar-thumb:hover {
background: #777;
}

.topstore-template-compare .compare__list {
gap: 0px;
}

.topstore-template-compare .offer-d__button_tocart._active {
background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important; 
    transition: all 0.3s ease; /* Плавное переключение цвета */
}

.topstore-template-compare .offer-d__button_tocart._active span {
color: #000000 !important;
}

.topstore-template-compare .offer-d__button_tocart._active span {
background: url(/topstore/img/cart3.png);
    margin: -2px 2px 0 0;
}

.topstore-template-compare .error2 {
display: none;
}

/* === fav === */

.topstore-template-fav .useradmin_contener {
all: unset !important;
    display: inline !important;
}

.topstore-template-fav .h1 {
display: inline-block;
    margin-right: 10px;
}

.topstore-template-fav #coltov {
display: inline-block;
    margin-left: 6px;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #7c7c7c;
}

.topstore-template-fav .catalog__bottom-button, .topstore-template-fav .catalog__bottom-button:focus, .topstore-template-fav .catalog__bottom-button:active {
background: #222 !important;
    color: #fff !important;
    outline: none;
}

.topstore-template-fav .button-d_outline:active {
background-color: #222;
    border-color: #222;
}

.topstore-template-fav .hits__item {
position: relative;
}

.topstore-template-fav .remover-d {
position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: #232323;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
}

.topstore-template-fav .remover-d__icon {
color: #fff;
    font-size: 14px;
    line-height: 1;
}

.topstore-template-fav .error, .topstore-template-fav .errors {
color: #bababa;
    background-color: #232323;
}

@media (max-width: 575px) {
.topstore-template-fav .hits__image img {
max-width: 100%;
}
}

.topstore-template-fav .fa-circle-xmark:before, .topstore-template-fav .fa-times-circle:before, .topstore-template-fav .fa-xmark-circle:before {
content: "";
    color: #686868;
}

.topstore-template-fav .hits__name a {
text-decoration: none;
}

.topstore-template-fav .offer-d__button_tocart._active {
background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important; 
    transition: all 0.3s ease; /* Плавное переключение цвета */
}

.topstore-template-fav .offer-d__button_tocart._active span {
color: #000000 !important;
}

.topstore-template-fav .offer-d__button_tocart._active span {
background: url(/topstore/img/cart3.png);
    margin: -2px 2px 0 0;
}

.topstore-template-fav .error2 {
display: none;
}

/* === item === */

.topstore-template-item .useradmin_contener {
all: unset !important;
    display: inline !important;
}

.topstore-template-item .h1 {
display: inline-block;
    margin-right: 10px;
}

.topstore-template-item #coltov {
display: inline-block;
    margin-left: 6px;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #7c7c7c;
}

.topstore-template-item .catalog__bottom-button, .topstore-template-item .catalog__bottom-button:focus, .topstore-template-item .catalog__bottom-button:active {
background: #222 !important;
    color: #fff !important;
    outline: none;
}

.topstore-template-item .button-d_outline:active {
background-color: #222;
    border-color: #222;
}

@media (min-width: 1230px) {
.topstore-template-item .catalog__list {
display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;

	column-gap: 38px;
    row-gap: 0;
}
}

.topstore-template-item .catalog__filter-select input[type="radio"]:checked+label::before, .topstore-template-item .field-d input[type="checkbox"]:checked+label::before {
color: #d70f7e;
}

.topstore-template-item .hits__name a {
text-decoration: none;
}


.topstore-template-item .hits__button {
font-size: 15px;
}

.topstore-template-item .error, .topstore-template-item .errors {
color: #bababa;
    background-color: #2a2a2a;
}

.topstore-template-item .hits__links {
display: flex;
    align-items: center;
}

.topstore-template-item .element-d_card>.element-d__details, .topstore-template-item .element-d_rowcard>.element-d__details, .topstore-template-item .element-d_postcard>.element-d__details {
padding: 2rem 0.5rem 0.1rem;
}

.topstore-template-item .element-d_card>.element-d__images, .topstore-template-item .element-d_rowcard>.element-d__images {
margin: 0px;
    border: 0px;
}

.topstore-template-item .product-d__stickers {
top: 20px;
    left: 100px;
    z-index: 2;
}

.topstore-template-item .tabs-d_light .tabname-d, .topstore-template-item .tabs-d_light .tabs-d__stack {
background-color: #000000;
    border: 1px solid #dfdfdf;
    border-radius: .25rem;
}

.topstore-template-item .product-d__gall {
display: flex;
    flex-direction: row-reverse; /* фото справа, превью слева */
    gap: 15px;
    align-items: flex-start;
}

.topstore-template-item .product-d__present {
flex: 1;
    min-width: 0;
    overflow: hidden;
}

.topstore-template-item .product-d__preview {
width: 90px;
    height: 500px; /* подбери под свой размер */
    flex-shrink: 0;
}

.topstore-template-item .product-d__preview .swiper-wrapper {
flex-direction: column;
}

.topstore-template-item .product-d__preview .swiper-slide {
width: 100% !important;
    height: 90px !important;
    cursor: pointer;
}

.topstore-template-item .product-d__preview {
width: 80px;
    height: 420px;
}

.topstore-template-item .product-d__preview .swiper-slide {
height: 80px !important;
}

.topstore-template-item .param-buttons {
display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.topstore-template-item .param-buttons__btn, .topstore-template-item .param-buttons__btn:link, .topstore-template-item .param-buttons__btn:visited {
padding: 12px 19px;
    border: 1px solid #202020;
    text-decoration: none;
    background: #000;
    cursor: pointer;
    border-radius: 9px;
    font-size: 14px;
    line-height: 1.15;
    transition: border-color 0.2s, background 0.2s;
    color: #9d9d9d;
}

.topstore-template-item .param-buttons__btn--active:link, .topstore-template-item .param-buttons__btn--active:visited {
border-color: #ffffff;
    background: #181818;
    color: #fff;
}

.topstore-template-item .param-buttons__btn:hover:not(.param-buttons__btn--active) {
border-color: #999;
}

.topstore-template-item .product-d {
display: block;
}

.topstore-template-item .product__photos {
padding-left: 0px;
}

.topstore-template-item .slide-d_fit {
display: flex;
    align-items: center;      /* вертикаль */
    justify-content: center;  /* горизонталь */
    overflow: hidden;
}

.topstore-template-item .slide-d_fit img, .topstore-template-item .slide-d_fit .slide-d__object {
position: relative;
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* важно */
}

.topstore-template-item .product-d__preview {
width: 60px !important;
    flex-shrink: 0;
    margin-top: 0;
}

.topstore-template-item .product-d__preview.swiper-container {
width: 70px !important;
}

.topstore-template-item .product-d__preview .swiper-wrapper {
height: 100% !important;
    width: 55px !important;
    transform: translate3d(0px, 0px, 0px) !important;
}

.topstore-template-item .product-d__preview .swiper-slide {
height: 60px !important;
    width: 60px !important;
    margin-bottom: 8px !important;
 
    text-decoration: none;
    text-align: center;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 0;
    background-color: #1c1c1c;
	padding: 5px;
}

.topstore-template-item .product-d__preview .slide-d._bordered:hover, .topstore-template-item .product-d__preview .swiper-slide-thumb-active._bordered {
border: 1px solid #6B00FE;
}

.topstore-template-item .slide-d_fit img {
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0;
}
.product-d__present .slide-d_fit img {
    padding: 30px;
    box-sizing: border-box;
}
.topstore-template-item .product-d__preview {
height: auto;
}

.topstore-template-item .product__photo {
text-align: center;
    padding: 0px 0px;
}

.topstore-template-item .slide-d_fit {
display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: auto;
}

.topstore-template-item .params_color {
color: #585858;
}

.topstore-template-item .field-d {
display: flex;
    align-items: center;
    gap: 25px;
}

.topstore-template-item .param-buttons {
display: flex;
    gap: 8px;
    flex-wrap: wrap; /* можно убрать, если перенос не нужен */
}

.topstore-template-item .field-d__name {
margin: 0;
    white-space: nowrap;
}

.topstore-template-item .count-d__input {
border: 1px solid #202020;
    background: #000;
    border-radius: 5px;
    padding: 10px;
}

.topstore-template-item .pricelist-d__row {
display: none;
}

.topstore-template-item .pricelist-d__row.active, .topstore-template-item .pricelist-d__row._active, .topstore-template-item .pricelist-d__row.show {
display: flex !important;
}


.topstore-template-item .hits__fav {
background: rgb(36 36 36 / 70%) url(/topstore/img/fav.svg) no-repeat center;
}

.topstore-template-item .hits__compare {
background: rgb(36 36 36 / 70%) url(/topstore/img/compare.svg) no-repeat center;
}

.topstore-template-item .stiks {
left: 20px;
    margin-top: 20px;
}

.topstore-template-item .product__photo {
max-height: 500px;
}

.topstore-template-item .product__color {
width: 24px;
    height: 24px;
    border-radius: 50%;
    padding: 0px;
    border: 1px solid transparent;
}

.topstore-template-item .product_ob:link, .topstore-template-item .product_ob:visited {
display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    padding: 0px;
}

.topstore-template-item .error, .topstore-template-item .errors {
border-radius: 9px;
}

.topstore-template-item .product__video-el {
display: block;
    width: 100%;
	border-radius: 30px;
}

.topstore-template-item .product__poster {
position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
	border-radius: 30px;
}

.topstore-template-item .product__player {
position: relative;
	padding: 0px;
}

.topstore-template-item .product__play.is-playing {
opacity: 0.5;
}

@media (max-width: 1000px) {
.topstore-template-item .slide-dm img {
display: block;
    max-height: 500px;
    width: auto;
}

.topstore-template-item .slide-dm {
max-height: 500px;
}

.topstore-template-item .product__att2 {
display:  none;
}

.topstore-template-item .product-d__gall {
display: block;
}

.topstore-template-item .swiper-container-vertical>.swiper-wrapper {
flex-direction: row;
}

.topstore-template-item .product-d__preview.swiper-container {
width: 100% !important;
}

.topstore-template-item .product-d__preview .swiper-wrapper {
display: flex !important;
        width: 100% !important;
        justify-content: space-between !important;
        transform: none !important;
}

.topstore-template-item .product-d__preview .swiper-slide {
width: 70px !important;
        flex-shrink: 0;
}

.topstore-template-item .stickers-d {
left: 10px;
}

.topstore-template-item .product__att2, .topstore-template-item .copycont2 {
display: block;
}

.topstore-template-item .product__att, .topstore-template-item .copycont {
display:  none;
}

.topstore-template-item .product__att2 {
margin-bottom: 5px;
    padding-left: 26px;
    font-size: 14px;
    line-height: 150%;
    color: rgba(255, 255, 255, 0.5);
    background: url(/topstore/img/att.svg) no-repeat 0 0;
}

.topstore-template-item .copycont2 {
display: block;
        padding-bottom: 20px;
}
}

@media (min-width: 1001px) {
.topstore-template-item .product__att2, .topstore-template-item .copycont2 {
display: none;
}

.topstore-template-item .product__att, .topstore-template-item .copycont {
display: block;
}
}

@media (min-width: 576px) {
.topstore-template-item .product__name {
margin-right: 110px;
}
}

@media (max-width: 575px) {
.topstore-template-item .product-d.js_shop_id {
position: relative;
}

.topstore-template-item .product-d__interacts {
top: auto;
        bottom: 8px;
}
}

.topstore-template-item .product__params-item.hidden {
display: none;
}

.topstore-template-item .product .catalog__bottom-button {
margin-top: 30px;
}

.topstore-template-item .product {
min-height: 500px;
}

.topstore-template-item .interact-d.hits__fav:hover, .topstore-template-item .interact-d.hits__fav._active {
background: rgb(36 36 36 / 70%) url(/topstore/img/fav2.svg) no-repeat center;
}

.topstore-template-item .interact-d.hits__compare:hover, .topstore-template-item .interact-d.hits__compare._active {
background: rgb(54 54 54 / 32%)  url(/topstore/img/compare2.svg) no-repeat center;
}

.topstore-template-item .interact-d:focus, .topstore-template-item .interact-d:active, .topstore-template-item .interact-d_active:active, .topstore-template-item .interact-d._active:active {
background-color: #222;
}

.topstore-template-item .error2 {
display: none;
}

.topstore-template-item .offer-d__button_tocart._active {
background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important; 
    transition: all 0.3s ease; /* Плавное переключение цвета */
}

.topstore-template-item .offer-d__button_tocart._active span {
color: #000000 !important;
}

.topstore-template-item .offer-d__button_tocart._active span {
background: url(/topstore/img/cart3.png);
    margin: -2px 2px 0 0;
}

/* === Regression guard: catalog filter and product layout === */
.topstore-template-shop .catalog .wrap > .flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 38px;
}

.topstore-template-shop .catalog__filter {
    display: block;
    flex: 0 0 22.5%;
    width: 22.5%;
}

.topstore-template-shop .catalog__content {
    flex: 1 1 auto;
    width: 74.2%;
    min-width: 0;
}

.topstore-template-shop .catalog__filter .js_shop_search_form,
.topstore-template-shop .catalog__filter .catalog__filter-item,
.topstore-template-shop .catalog__filter .catalog__filter-content,
.topstore-template-shop .catalog__filter .catalog__filter-select {
    display: block;
}

.topstore-template-shop .catalog__filter .catalog__filter-button._hidden {
    display: none;
}

.topstore-template-item .product .wrap {
    position: relative;
}

.topstore-template-item .product__info {
    position: relative;
    padding-left: 480px;
    padding-bottom: 100px;
}

.topstore-template-item .product__photos {
    position: absolute;
    left: 0;
    top: 0;
    width: 418px;
    padding-left: 0;
    box-sizing: border-box;
}

.topstore-template-item .product-d__details {
    min-width: 0;
}

@media (max-width: 1000px) {
    .topstore-template-shop .catalog .wrap > .flex {
        display: block;
    }

    .topstore-template-shop .catalog__filter,
    .topstore-template-shop .catalog__content {
        width: 100%;
        flex-basis: auto;
    }

    .topstore-template-item .product__info {
        padding-left: 0;
    }

    .topstore-template-item .product__photos {
        position: relative;
        left: auto;
        top: auto;
        width: auto;
        margin-bottom: 24px;
    }
    .topstore-template-item .product-d__preview .swiper-wrapper {
        flex-direction: row;
        justify-content: center !important;
    }
    .topstore-template-item .product-d__preview {
        width: 100%!important;
        margin-top: 10px;
    }
}

.topstore-template-item .copycont--stock {
    margin-bottom: 32px;
}

/* === Shop pages without side filter === */
.topstore-template-shop.topstore-shop-no-filter .catalog__layout_no-filter {
    display: block;
}

.topstore-template-shop.topstore-shop-no-filter .catalog__layout_no-filter .catalog__content {
    width: 100%;
    max-width: none;
    flex: 0 0 100%;
}

.topstore-template-shop.topstore-shop-no-filter .catalog__layout_no-filter .catalog__list {
    width: 100%;
}

/* === compare / wishlist product cards === */
.topstore-template-compare .compare__list .element-d_card,
.topstore-template-fav .fav__list .element-d_card {
    display: flex;
    flex-direction: column;
    position: static;
}

.topstore-template-compare .compare__list .element-d_card > .element-d__details,
.topstore-template-fav .fav__list .element-d_card > .element-d__details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 2rem 0.5rem 0.1rem;
}

.topstore-template-compare .compare__list .element-d_card > .element-d__images,
.topstore-template-fav .fav__list .element-d_card > .element-d__images {
    margin: 0;
    border: 0;
}

.topstore-template-fav .fav__list {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 38px;
    margin-right: 0;
}

.topstore-template-fav .fav__list .hits__item {
    position: relative;
    width: 300px;
    margin: 0;
}

.topstore-template-compare .compare__list .wishin2,
.topstore-template-fav .fav__list .wishin2 {
    display: flex;
    gap: 10px;
}

.topstore-template-compare .interact-d.hits__fav,
.topstore-template-fav .interact-d.hits__fav {
    background: rgb(36 36 36 / 70%) url(/topstore/img/fav.svg) no-repeat center;
}

.topstore-template-compare .interact-d.hits__compare,
.topstore-template-fav .interact-d.hits__compare {
    background: rgb(36 36 36 / 70%) url(/topstore/img/compare.svg) no-repeat center;
}

.topstore-template-compare .interact-d.hits__fav:hover,
.topstore-template-compare .interact-d.hits__fav._active,
.topstore-template-fav .interact-d.hits__fav:hover,
.topstore-template-fav .interact-d.hits__fav._active {
    background: rgb(36 36 36 / 70%) url(/topstore/img/fav2.svg) no-repeat center;
}

.topstore-template-compare .interact-d.hits__compare:hover,
.topstore-template-compare .interact-d.hits__compare._active,
.topstore-template-fav .interact-d.hits__compare:hover,
.topstore-template-fav .interact-d.hits__compare._active {
    background: rgb(54 54 54 / 32%) url(/topstore/img/compare2.svg) no-repeat center;
}

.topstore-template-compare .interact-d.hits__compare[disabled],
.topstore-template-fav .interact-d.hits__compare[disabled] {
    pointer-events: auto;
    opacity: 1;
}

.topstore-template-fav .cell-d_buy {
    margin-top: auto;
}

@media (max-width: 767px) {
    .topstore-template-fav .fav__list .hits__item {
        width: 100%;
    }
}
