/* Основные стили каталога */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 карточки в ряд на ПК */
    gap: 30px;
    padding: 20px 0;
}

.catalog-item {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.catalog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h2 {
    color: #000000;
    margin-bottom: 20px;
    font-size: 1.4rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Общие стили кнопок */
.buy-button, .expected-button, .telegram-button {
    width: 100%;
    border: none;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none !important; /* Убираем подчеркивание текста */
}

/* Кнопка "Подробнее" */
.buy-button {
    background: linear-gradient(135deg, #0e0c45 0%, #1a1a5e 100%);
    color: #f5d768;
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(14, 12, 69, 0.3);
    background: linear-gradient(135deg, #15126d 0%, #24247e 100%);
    text-decoration: none !important;
}

/* Кнопка "Ожидается" */
.expected-button {
    background: linear-gradient(135deg, #0e0c45 0%, #1a1a5e 100%);
    color: #f5d768;
    opacity: 0.8;
    cursor: not-allowed;
}

.expected-button:hover {
    transform: none;
    box-shadow: none;
}

/* Кнопка "Telegram" */
.telegram-button {
    background: #0088cc; /* Официальный цвет Telegram */
    color: white;
    text-decoration: none !important;
}

.telegram-button:hover {
    background: #0077b5;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 136, 204, 0.3);
    text-decoration: none !important;
}

/* Убираем подчеркивание у всех ссылок в карточках */
.catalog-item a,
.catalog-item-link,
.telegram-link,
.catalog-item a:hover,
.catalog-item-link:hover,
.telegram-link:hover,
.catalog-item a:focus,
.catalog-item-link:focus,
.telegram-link:focus,
.catalog-item a:active,
.catalog-item-link:active,
.telegram-link:active {
    text-decoration: none !important;
}

/* Стиль для ссылок-оберток кнопок */
.catalog-item-link,
.telegram-link {
    display: block;
    text-decoration: none !important;
}

/* Убираем стандартное подчеркивание текста внутри ссылок */
.catalog-item-link span,
.catalog-item-link div,
.catalog-item-link i,
.telegram-link span,
.telegram-link div,
.telegram-link i {
    text-decoration: none !important;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 карточки на планшетах */
    }
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 карточки на мобильных */
        gap: 20px;
    }
    
    .catalog-item {
        max-width: 100%;
    }
    
    .product-info h2 {
        font-size: 1.2rem;
        min-height: 50px;
    }
    
    .buy-button, .expected-button, .telegram-button {
        padding: 14px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: 1fr; /* 1 карточка на очень маленьких экранах */
    }
}

/* Гарантия отсутствия подчеркиваний в любом состоянии */
a {
    text-decoration: none !important;
}

.catalog-item a {
    text-decoration: none !important;
}

button, .buy-button, .telegram-button {
    text-decoration: none !important;
}

/* Стиль для кликабельной всей карточки */
.catalog-item-link-full {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

/* Курсор для всей карточки при наведении */
.catalog-item-link-full:hover .catalog-item {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}