/* --- Блок карточек --- */

.product-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.product-info {
    background-color: #fff;
    padding: 10px;
    justify-content: space-between;
    display: flex;
    flex-direction: column;
}


/* Общие стили для карточек товаров */
.product-card {
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.img-section {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.03);
}


.product-name {
    font-size: 1.0rem;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}


@media (max-width: 992px) {
    .product-name {
        font-size: 1.2rem;
    }
}

.product-price {
    font-weight: bold;
    color: #000;
    margin-bottom: 20px;
}

.product_link {
    text-align: right;
}

.product_link a {
    font-size: 1rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase !important;
    background: #D5B0A0;
    padding: 10px;
    border-radius: var(--border-radius);
}

.product-price {
    font-size: 14px;
    color: #b37f60;
}

.product-sizes {
    font-size: 12px;
    margin-bottom: 10px;
    color: #666;
}

.size-badge {
    display: inline-block;
    font-weight: 500;
    color: #333;
}


/* Иконка акции "первый прокат" */
.promo-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #b17453;
    color: white;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 5px 8px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .promo-badge {
        font-size: 9px;
        padding: 4px 6px;
        top: 10px;
        left: 10px;
    }
}
