/* Базовые стили карточек товаров - уменьшены вертикальные отступы */
.t-store__card__wrap_all {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    padding: 10px; /* Уменьшено с 12px */
    margin-bottom: 12px; /* Уменьшено с 20px */
    height: auto !important;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    max-width: 300px;
    width: 100%;
}

.t-store__card__wrap_all:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* Изображение товара - уменьшены отступы */
.t-store__card__imgwrapper {
    height: 180px;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
    margin-bottom: 10px; /* Уменьшено с 12px */
    flex-shrink: 0;
}

.t-store__card__bgimg {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    background-color: #f8f9fa;
}

.t-store__card__wrap_all:hover .t-store__card__bgimg {
    transform: scale(1.05);
}

/* Кнопка избранного */
.t1002__addBtn {
    position: absolute;
    top: 6px; /* Уменьшено с 8px */
    right: 6px; /* Уменьшено с 8px */
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    border: none;
    cursor: pointer;
}

.t-store__card__wrap_all:hover .t1002__addBtn {
    opacity: 1;
}

.t1002__addBtn:hover {
    background: #fff;
    transform: scale(1.1);
}

.t1002__addBtn svg {
    width: 14px;
    height: 14px;
}

/* Текстовый блок */
.t-store__card__wrap_txt-and-btns {
    height: auto !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.store__card__wrap_txt-and-opts {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.t-store__card__textwrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Название товара - уменьшены отступы */
.t-store__card__title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px; /* Уменьшено с 6px */
    line-height: 1.3;
    min-height: 36px;
    max-height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.t-store__card__title a {
    color: #333;
    text-decoration: none;
}

.t-store__card__title a:hover {
    color: #3089c9;
}

/* Описание товара - уменьшены отступы */
.t-store__card__descr {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px; /* Уменьшено с 8px */
    line-height: 1.3;
    flex-shrink: 0;
    max-height: 32px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Цена товара - уменьшены отступы */
.t-store__card__price-wrapper {
    margin-bottom: 8px; /* Уменьшено с 12px */
    flex-shrink: 0;
}

.t-store__card__price-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    display: inline;
}

.t-store__card__price-currency {
    font-size: 14px;
    color: #333;
    display: inline;
}

.t-store__card__price {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Блок с кнопками - уменьшены отступы */
.t-store__card__btns-wrapper {
    display: flex;
    gap: 6px; /* Уменьшено с 8px */
    margin-top: auto;
    flex-shrink: 0;
}

/* Основная кнопка "В корзину" */
.t-store__card__btn:first-child {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px; /* Уменьшено с 10px 8px */
    background: #3089c9;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 36px; /* Уменьшено с 40px */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t-store__card__btn:first-child:hover {
    background: #2670a8;
    color: #fff;
}

/* Меняем текст кнопки "Подробнее" на "В корзину" */
.t-store__card__btn:first-child .t-btnflex__text {
    display: none;
}

.t-store__card__btn:first-child::after {
    content: "В корзину";
    font-size: 13px;
    font-weight: 600;
}

/* Вторая кнопка "Быстрый заказ" */
.t-store__card__btn_second {
    flex: 1;
    padding: 8px 6px; /* Уменьшено с 10px 8px */
    background: transparent;
    border: 1px solid #3089c9;
    color: #3089c9;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 36px; /* Уменьшено с 40px */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.t-store__card__btn_second:hover {
    background: #3089c9;
    color: #fff;
}

/* Меняем текст кнопки "КУПИТЬ в 1 клик" на "Быстрый заказ" */
.t-store__card__btn_second .t-btnflex__text {
    display: none;
}

.t-store__card__btn_second::after {
    content: "Быстрый заказ";
    font-size: 13px;
    font-weight: 600;
}

/* Убираем встроенные стили Tilda */
.t-btnflex.t-btnflex_type_button {
    color: #ffffff !important;
    background-color: #3089c9 !important;
    border: none !important;
    border-radius: 4px !important;
    min-height: 36px !important; /* Уменьшено с 40px */
}

.t-btnflex.t-btnflex_type_button2 {
    color: #3089c9 !important;
    border: 1px solid #3089c9 !important;
    border-radius: 4px !important;
    background: transparent !important;
    min-height: 36px !important; /* Уменьшено с 40px */
}

/* Контейнер сетки - уменьшены отступы между карточками */
.t-store__card-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important; /* Уменьшено с 15px */
    align-items: stretch !important;
    justify-content: center !important;
}

.t-store__card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .t-store__card__wrap_all {
        min-height: 300px;
        max-width: calc(50% - 6px); /* Уменьшено с 10px */
        padding: 8px; /* Уменьшено с 10px */
        margin-bottom: 10px; /* Уменьшено с 12px */
    }
    
    .t-store__card__btns-wrapper {
        flex-direction: column;
        gap: 4px; /* Уменьшено с 6px */
    }
    
    .t-store__card__imgwrapper {
        height: 160px;
        margin-bottom: 8px; /* Уменьшено с 10px */
    }
    
    .t-store__card__title {
        font-size: 13px;
        min-height: 34px;
        max-height: 34px;
        margin-bottom: 4px; /* Уменьшено с 5px */
    }
    
    .t-store__card__btn:first-child,
    .t-store__card__btn_second {
        padding: 6px 4px; /* Уменьшено с 8px 6px */
        font-size: 12px;
        min-height: 32px; /* Уменьшено с 36px */
    }
    
    .t-store__card__price-value {
        font-size: 16px;
    }
    
    .t-store__card__price-wrapper {
        margin-bottom: 6px; /* Уменьшено с 8px */
    }
}

@media (max-width: 480px) {
    .t-store__card__wrap_all {
        max-width: 100%;
        min-height: 280px;
        padding: 8px;
        margin-bottom: 8px; /* Уменьшено с 10px */
    }
    
    .t-store__card__imgwrapper {
        height: 150px;
        margin-bottom: 8px;
    }
    
    .t-store__card__title {
        font-size: 12px;
        min-height: 32px;
        max-height: 32px;
    }
}

/* Фикс для контейнера Tilda */
.t-item {
    display: flex !important;
    flex-direction: column !important;
}

.t-store__prod {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* Дополнительные стили для лучшего внешнего вида */
.t-store__card__wrap_all * {
    box-sizing: border-box;
}