/* ============================================================
   1. КАРТОЧКИ КАТАЛОГА — УБРАТЬ ОТСТУПЫ, ОСТАВИТЬ ШРИФТ КАК БЫЛ
   ============================================================ */

/* текстовый блок под фото — только расстояние */
.t-store__card__textwrapper,
.t-store__card__wrap_txt-and-opts {
    margin-top: -6px !important;   /* меньше расстояние фото → текст */
    padding-left: 6px !important;  /* небольшой левый отступ */
}

/* название + цена в одну линию */
.t-store__card__title-wrapper {
    display: flex !important;
    justify-content: space-between;
    align-items: baseline !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

/* название */
.t-store__card__title {
    margin: 0 !important;
    padding: 0 !important;
}

/* цена справа */
.t-store__card__price-wrapper {
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* убираем лишние div-отступы */
.t-store__card__title-wrapper > div {
    margin: 0 !important;
    padding: 0 !important;
}


/* ============================================================
   2. СТАРЫЕ ЦЕНЫ — РОВНЫЕ, НЕ ПЛАВАЮЩИЕ, СЕРЫЕ
   ============================================================ */

.t-store__card__price,
.t-store__prod-price,
.js-store-prod-price,
.t-store__prod-popup__price {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    line-height: 1.15 !important;
}

/* старые цены — ВСЕ КЛАССЫ Tilda */
.t-store__card__price_old,
.t-store__card__oldprice,
.t-store__prod-oldprice,
.t-store__prod-price_old,
.js-store-prod-oldprice,
.t-store__card__price del,
.t-store__prod-price del,
.js-store-prod-price del {
    font-size: 0.9em !important;
    font-weight: 400 !important;
    color: #999999 !important;              /* спокойный серый */
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    text-decoration-color: #999999;

    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;

    position: static !important;
    transform: none !important;
    top: auto !important;

    vertical-align: baseline !important;
    line-height: 1.1 !important;
}


/* ============================================================
   3. ПОПАП — УМЕНЬШИТЬ ОТСТУП ПЕРЕД «СМОТРИТЕ ТАКЖЕ»
   ============================================================ */

.t-popup_show .t-store__prod-popup__content,
.t-popup_show .t-store__prod-popup__bottom {
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
}

.t-popup_show .t-store__prod-popup__info,
.t-popup_show .t-store__prod-popup__text {
    margin-bottom: 10px !important;
}


/* ============================================================
   4. СВОТЧИ ЦВЕТА — МЕНЬШИЙ ОТСТУП И КВАДРАТЫ
   ============================================================ */

/* расстояние между цветами */
.t-store__prod-colors-wrapper .t-store__prod-colors-item {
    margin-right: 6px !important;
}

/* сами квадраты */
.t-store__prod-colors-wrapper .t-store__prod-colors-item-inner {
    width: 22px !important;
    height: 22px !important;
    border-radius: 2px !important;        /* квадрат с лёгким сглаживанием */
    border: 1px solid #d6d6d6 !important;
    box-sizing: border-box;
}

/* активный свотч */
.t-store__prod-colors-wrapper
.t-store__prod-colors-item.t-store__prod-colors-item_selected
.t-store__prod-colors-item-inner {
    border: 2px solid #111111 !important;
}
/* сами кнопки — без all:unset, чтобы ничего не ломать */
.t-store__prod .js-store-prod-text a,
.t-store__prod-popup__info .js-store-prod-text a {
    display: block;
    box-sizing: border-box;

    width: 100%;
    max-width: 360px;

    margin-top: 22px;
    padding: 14px 24px;

    background-color: #000000 !important;
    border: 1px solid #000000 !important;
    border-radius: 0;

    text-align: center;
    cursor: pointer;

    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;

    color: #ffffff !important;
    transition: background-color 0.25s ease, color 0.25s ease,
                border-color 0.25s ease;
}

/* ховер */
.t-store__prod .js-store-prod-text a:hover,
.t-store__prod-popup__info .js-store-prod-text a:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

/* если есть вторая кнопка — делаем её светлой */
.t-store__prod .js-store-prod-text a:last-of-type:not(:first-of-type),
.t-store__prod-popup__info .js-store-prod-text a:last-of-type:not(:first-of-type) {
    margin-top: 10px;
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #d4d4d4 !important;
}

.t-store__prod .js-store-prod-text a:last-of-type:not(:first-of-type):hover,
.t-store__prod-popup__info .js-store-prod-text a:last-of-type:not(:first-of-type):hover {
    background-color: #f5f5f5 !important;
    border-color: #000000 !important;
}
/* ============================================================
   ОБЪЕДИНЕНИЕ ЦЕНЫ И РУБЛЯ — МЕНЬШИЙ ОТСТУП
   ============================================================ */

/* убираем лишние отступы между числом и ₽ */
.t-store__card__price span,
.t-store__prod-price span,
.js-store-prod-price span,
.t-store__prod-popup__price span {
    margin-left: 2px !important; /* было 6–10px — уменьшили */
    margin-right: 0 !important;
    padding: 0 !important;
}

/* ₽ иногда помещён в  — обрабатываем */
.t-store__price-currency {
    margin-left: 2px !important;
    padding-left: 0 !important;
}


/* ============================================================
   СТАРАЯ ЦЕНА — СКРЫТЬ В КАТАЛОГЕ
   ============================================================ */

/* скрываем старую цену только в каталоге */
.t-store__card__price_old,
.t-store__card__oldprice,
.t-store__card__price del {
    display: none !important;
}

/* но не скрываем на странице товара / попапе */
.t-store__prod-price_old,
.t-store__prod-oldprice,
.t-store__prod-price del,
.js-store-prod-oldprice {
    display: inline !important;
}
/* ===== УБИРАЕМ ПРОБЕЛ МЕЖДУ ЦЕНОЙ И ₽ ВО ВСЕХ БЛОКАХ ===== */
/* ДЕЛАЕМ ЦЕНУ FLEX-КОНТЕЙНЕРОМ — ПРОБЕЛ МЕЖДУ ЧИСЛОМ И ₽ УХОДИТ */

.t-store__card__price,
.t-store__prod-price,
.js-store-prod-price,
.t-store__prod-popup__price {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0 !important;         /* ноль расстояния между элементами */
}

/* сам знак ₽ превращаем в элемент, который прилегает к числу */
.t-store__price-currency,
.t-store__card__price span:last-child,
.t-store__prod-price span:last-child,
.js-store-prod-price span:last-child,
.t-store__prod-popup__price span:last-child {
    display: inline-flex !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

