:root {
    /* Фирменные цвета и настройки из файла услуг */
    --brand-red-product: #CC323D;
    --brand-blue-product: #2970AA;
    --brand-gradient-product: linear-gradient(135deg, var(--brand-red-product), var(--brand-blue-product));
    --border-radius-square-product: 20px;
    --card-border-radius-product: 20px;
    --image-border-radius-product: 12px;
    --transition-speed-product: 0.4s;
}

/* 1. ОСНОВНАЯ КАРТОЧКА */
.product-card {
    position: relative;
    background: #ffffff;
    border-radius: var(--card-border-radius-product);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all var(--transition-speed-product) cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* 2. ГРАДИЕНТНАЯ ТЕНЬ (СВЕЧЕНИЕ) */
/* Используем псевдоэлемент для мягкого фона, как в услугах */
.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: var(--card-border-radius-product);
    background: var(--brand-gradient-product);
    opacity: 0;
    filter: blur(25px); /* Эффект размытия из примера услуг */
    z-index: -1;
    transition: opacity var(--transition-speed-product), transform var(--transition-speed-product);
}

/* Анимация карточки при наведении */
.product-card:hover {
    transform: translateY(-7px);
    border-color: transparent;
}

.product-card:hover::before {
    opacity: 0.25; /* Полупрозрачное свечение */
    transform: scale(1.05);
}

/* 3. КОНТЕЙНЕР ДЛЯ ИЗОБРАЖЕНИЯ (КВАДРАТ С РАМКОЙ) */
.gradient-border-image-container-product {
    display: block;
    position: relative;
    padding: 3px; /* Толщина рамки */
    background: var(--brand-gradient-product);
    border-radius: var(--image-border-radius-product);
    transition: all var(--transition-speed-product);
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1; /* Жесткий квадрат */
    margin-bottom: 20px;
}
        
        /* Обертка для картинки (жесткий квадрат) */
.product-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1; /* Делает блок идеально квадратным */
    border-radius: var(--border-radius-square-product);
    overflow: hidden; /* Обрезает все, что выходит за рамки при увеличении */
    background-color: #fff; /* Белый фон на случай PNG с прозрачностью */
    margin-bottom: 20px;
    position: relative;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* contain - чтобы тех. детали не обрезались, cover - если нужны фоны */
    padding: 10px; /* Воздух вокруг детали */
    transition: transform 0.5s ease;
}

.image-zoom-wrap-product {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: calc(var(--image-border-radius-product) - 3px);
    background: #fff;
}

/* Наклон и увеличение рамки при наведении на КАРТОЧКУ */
.product-card:hover .gradient-border-image-container-product {
    transform: scale(1.05) rotate(2deg);
}

.gradient-border-image-container-product img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Чтобы детали товара были видны полностью */
    transition: transform var(--transition-speed-product) ease-in-out;
    padding: 10px;
}

/* Увеличение самого изображения внутри */
.product-card:hover img {
    transform: scale(1.2);
}

/* 4. ТЕКСТ И КНОПКА */
.product-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 10px;
}

.product-specs {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #6c757d;
}

.product-specs li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
    margin-bottom: 6px;
}

/* Кнопка с градиентом */
.btn-gradient {
    background: var(--brand-gradient-product);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-gradient:hover {
    box-shadow: 0 8px 20px rgba(204, 50, 61, 0.3);
    color: #fff;
    transform: translateY(-2px);
}
        
.product-badge {
    position: absolute;
    top: 29px;
    left: 29px;
    z-index: 2;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}