@media screen and (max-width: 960px) {
  .t-store__grid-cont .t-col,
  .t-store__grid-cont .t-store__stretch-col {
    margin-bottom: 10px !important;
  }
}

.t-store__card__sold-out-msg {
  visibility: hidden;
}
.t-store__card__sold-out-msg:after {
  content:'Sold out'; 
  visibility: visible;
  display: block;
  color: #616161;
}

@media screen and (min-width: 961px) {
.js-store-grid-cont > div:nth-child(5n+1) > a > .t-store__card__textwrapper {
    padding-left: 10px;
}
}

@media screen and (max-width: 960px) {
.js-store-grid-cont > div:nth-child(2n+1) > a > .t-store__card__textwrapper {
    padding-left: 10px;
}

}


.js-store-prod-weight {
display: none !important;
}


/* СКРЫТЬ РАЗМЕР, АРТИКУЛ И ЗАГОЛОВОК ЦВЕТА В КАТАЛОГЕ */
.t-store__card__sku,
.t-store__card .js-product-edition-option[data-edition-option-id="Размер"],
.t-store__card .js-product-edition-option-name {
    display: none !important;
}

/* Убрать высоту текстового блока в каталоге */
.t-store__card__textwrapper {
    height: auto !important;
    min-height: auto !important;
}

/* Горизонтальные цвета в каталоге */
.t-store__card .t-product__option-variants_color {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    margin-top: 5px !important;
    align-items: center !important;
    width: 100% !important;
}

/* Маленькие кружки цветов 10x10 пикселей В КАТАЛОГЕ */
.t-store__card .t-product__option-checkmark.t-product__option-checkmark_buttons.t-product__option-checkmark_color {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;
    flex-shrink: 0 !important;
}

/* Кружки цветов 15x15 пикселей В КАРТОЧКЕ ТОВАРА */
.t-store__prod-popup .t-product__option-checkmark.t-product__option-checkmark_buttons.t-product__option-checkmark_color {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    min-height: 15px !important;
}

/* Кружки цветов 15x15 пикселей НА СТРАНИЦЕ ТОВАРА */
.t-product__option-checkmark.t-product__option-checkmark_buttons.t-product__option-checkmark_color {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    min-height: 15px !important;
}

/* Расстояние между цветами */
.t-store__prod-popup .t-product__option-variants_color,
.t-product__option-variants_color {
    gap: 5px !important;
}

/* Скрыть названия цветов в каталоге */
.t-store__card .t-product__option-title_color {
    display: none !important;
}

/* В КАРТОЧКЕ ТОВАРА - ПОКАЗАТЬ РАЗМЕР */
.t-store__prod-popup .js-product-edition-option[data-edition-option-id="Размер"] {
    display: block !important;
}

/* Убедимся что контейнеры не обрезают тултипы */
.t-store__prod-popup .t-product__option-variants_color {
    position: relative !important;
    overflow: visible !important;
}

/* СКРЫТЬ СТАНДАРТНЫЕ ТУЛТИПЫ ТИЛЬДЫ */
.t-product__option-title_buttons.t-product__option-title_color,
.t-product__option-item_color .t-product__option-title_color,
.t-store__prod-popup .t-product__option-title_color {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* СТИЛИ ДЛЯ КАСТОМНЫХ ТУЛТИПОВ */
.custom-color-tooltip {
    position: absolute !important;
    bottom: -35px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(0, 0, 0, 0.9) !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    pointer-events: none !important;
    z-index: 10000 !important;
    font-family: inherit !important;
    font-weight: normal !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    border: 1px solid #555 !important;
    min-width: max-content !important;
}

.t-product__option-item_color:hover .custom-color-tooltip,
.t-store__prod-popup .t-product__option-item_color:hover .custom-color-tooltip {
    opacity: 1 !important;
}

/* Убедимся что элементы имеют правильное позиционирование */
.t-product__option-item_color,
.t-store__prod-popup .t-product__option-item_color {
    position: relative !important;
    overflow: visible !important;
}

.t-product__option-variants_color,
.t-store__prod-popup .t-product__option-variants_color {
    position: relative !important;
    overflow: visible !important;
}