.product {
    position: relative;
    height: 100%;
}

.product-wrap {
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f5f5f6;
    border-radius: 3px;
    background-color: #fff;
    padding: 12px;
    height: 360px;
    overflow: visible;
    z-index: 1;
}

.product-wrap:hover {
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.product-media {
    height: 220px;
    overflow: hidden;
}

.product-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-art {
    font-size: 1em;
    color: #7d8387;
}

.product-details {
    position: relative;
    background-color: #fff;
    padding-top: 1.4rem;
    padding-bottom: 0rem !important;
}

.product-tags {
    position: absolute;
    left: 0px;
    top: 20px;
    z-index: 2;
}

.product-tags .label {
    display: block;
    margin-bottom: 3px;
}

.product-tags .label {
    display: inline-block;
    border-radius: 0 3px 3px 0;
    color: #fff;
    font-size: 0.8em;
    padding: 7px 8px 5px 8px;
    line-height: 100%;
}

.label.rus_manuf {
    background: var(--main-color);
}

.product-hover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    display: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(100%);
    padding: 15px;
    z-index: 5;
    will-change: transform, opacity;
    pointer-events: none;
    min-height: 120px;
}

.product-wrap:hover .product-hover-overlay {
    display: block;
    transform: translateY(0);
    pointer-events: auto;
}

.product-name {
    font-size: 1.6rem !important;
    font-weight: 600 !important;
}

.product-name a {
    border-bottom: 1px solid #e9e9e9;
}

.product-description {
    text-align: center;
}

.product-description p {
    margin-bottom: 10px;
    font-size: 0.9em;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-catalog {
    color: #fff !important;
    border-color: #89adb1 !important;
    background-color: #92bdc1 !important;
}

.btn-catalog:hover {
    border-color: #3d3e40 !important;
    background-color: #4d4e52 !important;
}

/* Мобильная адаптация */
@media (max-width: 767px) {
    .product-wrap {
        height: auto;
        padding: 15px;
        overflow: hidden;
        box-shadow: none;
    }

    .product-hover-overlay {
        position: static;
        display: block !important;
        transform: none !important;
        padding: 12px;
        pointer-events: auto;
        border-top: 1px solid #eee;
    }

    .product-description p {
        max-height: none;
        font-size: 0.85em;
        margin-bottom: 8px;
    }
}

/* Адаптация для планшетов */
@media (min-width: 768px) and (max-width: 1024px) {
    .product-wrap {
        height: auto;
        padding: 15px;
        overflow: hidden;
        box-shadow: none;
    }

    .product-hover-overlay {
        position: static;
        display: block !important;
        transform: none !important;
        padding: 12px;
        pointer-events: auto;
        border-top: 1px solid #eee;
    }

    .product-description p {
        max-height: none;
        font-size: 0.85em;
        margin-bottom: 8px;
    }
}