
/* =========================================================
   PROPERASPORT — UNIVERSAL PRODUCT CARD
========================================================= */

.ps-product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #DFE5E8;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(6, 63, 99, 0.05);
    color: #063F63;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.ps-product-card:hover {
    box-shadow: 0 8px 24px rgba(6, 63, 99, 0.2);
}

/* IMAGE */

.ps-product-card__image-link {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

.ps-product-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #FFFFFF;
}

.ps-product-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    object-fit: cover;
    transition: transform 0.35s ease;
}


/* CONTENT */

.ps-product-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
}

/* TITLE */

.ps-product-card__title {
    display: -webkit-box;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #111111;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.ps-product-card__title:hover {
    color: #063F63;
}

/* PRICE */

.ps-product-card__price {
    display: block;
    margin-top: 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
    color: #8F2A91;
}

.ps-product-card__price del {
    margin-right: 6px;
    font-size: 13px;
    font-weight: 400;
    color: #999999;
}

.ps-product-card__price ins {
    text-decoration: none;
}

/* VARIABLE PRODUCT PRICE */

.ps-product-card__price .woocommerce-Price-amount {
    white-space: nowrap;
}

/* STOCK */

.ps-product-card__stock {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
	margin-bottom: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.ps-product-card__stock.is-in-stock {
    color: #39824F;
}

.ps-product-card__stock.is-out-of-stock {
    color: #888888;
}

.ps-product-card__stock-dot {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

/* BUTTON */

.ps-product-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    margin-top: auto;
    padding: 10px 14px;
    border: 0;
    border-radius: 100px;
    background: #8F2A91;
    color: #FFFFFF;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.ps-product-card__stock + .ps-product-card__button {
    margin-top: 14px;
}

.ps-product-card__button:hover {
    background: #762078;
    color: #FFFFFF;
}

.ps-product-card__button:focus-visible,
.ps-product-card__title:focus-visible,
.ps-product-card__image-link:focus-visible {
    outline: 2px solid #8F2A91;
    outline-offset: 3px;
}

.ps-product-card__button span {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.ps-product-card__button:hover span {
    transform: translateX(3px);
}

/* TABLET */

@media (max-width: 900px) {
    .ps-product-card__content {
        padding: 14px;
    }

    .ps-product-card__title {
        font-size: 15px;
    }

    .ps-product-card__price {
        font-size: 19px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .ps-product-card {
        border-radius: 14px;
    }

    .ps-product-card__content {
        padding: 12px;
    }

    .ps-product-card__title {
        font-size: 14px;
    }

    .ps-product-card__price {
        margin-top: 12px;
        font-size: 18px;
    }

    .ps-product-card__stock {
        font-size: 12px;
    }

    .ps-product-card__button {
        min-height: 40px;
        padding-inline: 10px;
        font-size: 13px;
    }
}





/* =========================================================
   ВЫРАВНИВАНИЕ КАРТОЧЕК ТОВАРОВ
========================================================= */

/* Растягиваем содержимое карточки по высоте */
.ps-product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Контент занимает всё свободное пространство */
.ps-product-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Для названия резервируем место под две строки */
.ps-product-card__title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.5em;
}

/* Кнопка прижимается к низу карточки */
.ps-product-card__button {
    margin-top: auto !important;
    width: 100% !important;
    flex-shrink: 0;
}