/* ============================================
   БЕЙДЖИКИ НА КАРТОЧКАХ ТОВАРОВ - СЛЕВА
   ТОНКОЕ НАЧЕРТАНИЕ КАК В РАЗДЕЛАХ КАТАЛОГА
   ============================================ */

/* Делаем карточку относительной для позиционирования */
.t-store__card {
    position: relative !important;
}

/* Контейнер бейджей - позиционируем слева */
.t-store__card .t-store__card__mark-wrapper {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    bottom: auto !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    pointer-events: none !important;
}

/* Сама метка - прямоугольная, тонкое начертание */
.t-store__card .t-store__card__mark-wrapper .t-store__card__mark,
.t-store__card .t-store__card__mark-wrapper .t-mark,
.t-store__card .t-store__card__mark-wrapper > div {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px 14px !important;
    background-color: #222222 !important;
    color: #ffffff !important;
    
    /* ===== ТОНКОЕ НАЧЕРТАНИЕ ===== */
    font-family: 'PTSANS', sans-serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;  /* Regular, не жирный */
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.3 !important;
    
    border-radius: 0 !important;
    white-space: nowrap !important;
    width: fit-content !important;
    height: auto !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
}

/* ===== ЦВЕТА МЕТОК ===== */

/* Распродажа - красный */
.t-store__card .t-store__card__mark-wrapper .t-store__card__mark_sale,
.t-store__card .t-store__card__mark-wrapper .t-mark_sale {
    background-color: #e74c3c !important;
    color: #ffffff !important;
}

/* Новинка - зеленый */
.t-store__card .t-store__card__mark-wrapper .t-store__card__mark_new,
.t-store__card .t-store__card__mark-wrapper .t-mark_new {
    background-color: #2ecc71 !important;
    color: #ffffff !important;
}

/* Хит - оранжевый */
.t-store__card .t-store__card__mark-wrapper .t-store__card__mark_hit,
.t-store__card .t-store__card__mark-wrapper .t-mark_hit {
    background-color: #f39c12 !important;
    color: #ffffff !important;
}

/* Скидка - синий */
.t-store__card .t-store__card__mark-wrapper .t-store__card__mark_discount,
.t-store__card .t-store__card__mark-wrapper .t-mark_discount {
    background-color: #3498db !important;
    color: #ffffff !important;
}

/* Акция - фиолетовый */
.t-store__card .t-store__card__mark-wrapper .t-store__card__mark_action,
.t-store__card .t-store__card__mark-wrapper .t-mark_action {
    background-color: #9b59b6 !important;
    color: #ffffff !important;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
@media screen and (max-width: 480px) {
    .t-store__card .t-store__card__mark-wrapper {
        top: 8px !important;
        left: 8px !important;
        gap: 4px !important;
    }
    
    .t-store__card .t-store__card__mark-wrapper .t-store__card__mark,
    .t-store__card .t-store__card__mark-wrapper .t-mark,
    .t-store__card .t-store__card__mark-wrapper > div {
        padding: 3px 10px !important;
        font-size: 9px !important;
        letter-spacing: 0.3px !important;
    }
}

/* ===== ПЛАНШЕТ ===== */
@media screen and (max-width: 768px) {
    .t-store__card .t-store__card__mark-wrapper {
        top: 10px !important;
        left: 10px !important;
    }
    
    .t-store__card .t-store__card__mark-wrapper .t-store__card__mark,
    .t-store__card .t-store__card__mark-wrapper .t-mark,
    .t-store__card .t-store__card__mark-wrapper > div {
        padding: 4px 12px !important;
        font-size: 10px !important;
    }
}

/* ===== УБИРАЕМ СТАНДАРТНЫЕ СТИЛИ TILDA ===== */
.t-store__card .t-store__card__mark-wrapper .t-store__card__mark {
    box-shadow: none !important;
    border: none !important;
}


/* ============================================
   УБРАТЬ БЕЛОЕ ПРОСТРАНСТВО ВНИЗУ СТРАНИЦЫ
   ============================================ */

/* Убираем отступы у всех блоков */
.t-records,
#allrecords,
.t-body {
    margin: 0 !important;
    padding: 0 !important;
}

/* Убираем белое пространство внизу */
.t-footer,
#t-footer,
footer {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Скрываем блоки с CSS-кодом, которые создают пустоту */
.t123[style*="position: absolute"] {
    display: none !important;
}

/* Убираем лишние отступы у контейнеров */
.t-container,
.t-container_100 {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Скрываем пустые блоки */
.r.t-rec[style*="position: absolute"] {
    display: none !important;
}

/* Убираем отступ у последнего блока на странице */
.t-records > .r:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ============================================
   ФУТЕР - ВСЕ 4 КОЛОНКИ С РАВНЫМИ ОТСТУПАМИ
 /* --- ФИКС ДЛЯ ФУТЕРА (4 КОЛОНКИ) --- */

/* --- ФИКС ДЛЯ ФУТЕРА (4 КОЛОНКИ) --- */

/* 1. Убираем floatbeaker */
#rec793591605 .t420__floatbeaker_lr3 {
    display: none !important;
}

/* 2. Контейнер — растягиваем на всю ширину */
#rec793591605 .t-container.t-align_left {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important; /* Равномерное распределение */
    margin: 0 !important;
    padding: 0 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 3. Все колонки — одинаковой ширины */
#rec793591605 .t420__col {
    flex: 1 1 0 !important; /* Равномерно растягиваем */
    padding: 0 15px !important;
    box-sizing: border-box !important;
    float: none !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* 4. Исправляем вложенный div с 3-й и 4-й колонками */
#rec793591605 .t-container.t-align_left > div:last-child {
    display: flex !important;
    flex: 2 1 0 !important; /* ← КЛЮЧЕВОЕ ИЗМЕНЕНИЕ: занимает в 2 раза больше */
    padding: 0 !important;
    margin: 0 !important;
}

#rec793591605 .t-container.t-align_left > div:last-child .t420__col {
    flex: 1 1 0 !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    float: none !important;
    margin: 0 !important;
}

/* 5. Убираем стандартные ограничения */
#rec793591605 .t-container {
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* 6. Исправляем для всех колонок */
#rec793591605 .t420__col.t-col {
    float: none !important;
    margin: 0 !important;
}
ДЛЯ ФУТЕРА КАТАЛОГА ТОВАРОВ
/* 1. Убираем floatbeaker */
#rec793859730 .t420__floatbeaker_lr3 {
    display: none !important;
}

/* 2. Контейнер — растягиваем на всю ширину */
#rec793859730 .t-container.t-align_left {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important; /* Равномерное распределение */
    margin: 0 !important;
    padding: 0 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 3. Все колонки — одинаковой ширины */
#rec793859730 .t420__col {
    flex: 1 1 0 !important; /* Равномерно растягиваем */
    padding: 0 15px !important;
    box-sizing: border-box !important;
    float: none !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* 4. Исправляем вложенный div с 3-й и 4-й колонками */
#rec793859730 .t-container.t-align_left > div:last-child {
    display: flex !important;
    flex: 2 1 0 !important; /* ← КЛЮЧЕВОЕ ИЗМЕНЕНИЕ: занимает в 2 раза больше */
    padding: 0 !important;
    margin: 0 !important;
}

#rec793859730 .t-container.t-align_left > div:last-child .t420__col {
    flex: 1 1 0 !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    float: none !important;
    margin: 0 !important;
}

/* 5. Убираем стандартные ограничения */
#rec793859730 .t-container {
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* 6. Исправляем для всех колонок */
#rec793859730 .t420__col.t-col {
    float: none !important;
    margin: 0 !important;
}