/* components/catalog_card/catalog_card.css */

.categorii-card {
    position: relative;
    background: #fff;
    padding: 12px 12px 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 16px rgba(0,0,0,.12);
    height: 100%;
    transition: transform 0.2s, box-shadow 0.3s;
    box-sizing: border-box;
    text-decoration: none;
}

.categorii-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.categorii-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: var(--nasos-img) no-repeat center/contain;
}

.categorii-card__number {
    position: absolute;
    top: 45px;
    right: 12px;
    color: #167f2b;
}

.categorii-card__media {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.categorii-card__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.categorii-card__title {
    display: block;
    min-height: 3.2em;
    margin-bottom: 10px;
    padding-bottom: 8px;
    color: #1a1a1a;
    border-bottom: 1px solid #d7d7d7;
    line-height: 1.2;
}

.categorii-card__title:hover { color: #167f2b; }

/* Произвольный текстовый блок описания */
.categorii-card__text-block {
    font-size: 14px; 
    line-height: 1.3; 
    color: #555; 
    margin-top: 10px; 
    margin-bottom: 25px;
}

.categorii-card__char {
    margin-bottom: 0px;
    line-height: 1;
}

.categorii-card__char:last-child {
    margin-bottom: 35px;
    line-height: 1;
}

.custom-char-value {
    white-space: nowrap;
}

/* Футер: выравниваем блок цены по центру всей карточки */
.categorii-card__footer {
    display: flex;
    justify-content: center; 
    align-items: center;     
    border-top: 1px solid #d7d7d7;
    padding-top: 12px;
    margin-top: auto;
    width: 100%;             
}

.categorii-card__price-box .price-value {
    display: flex;
    justify-content: center; 
    align-items: baseline;
    gap: 4px;
    width: 100%;
}

.price-label,
.price-currency {
    color: #1a1a1a;
}

text-price-in-catalog {
    white-space: nowrap; 
    font-weight: 700; 
    color: #167f2b; 
    font-size: 20px;
}

.title-mobile { display: none; }
.title-desktop { display: inline; }
.categorii-card__mobile-side { display: none; }

/* Медиа правила для адаптива карточек */
@media (min-width: 601px) and (max-width: 1025px) {
    .categorii-card {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .categorii-card {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 12px;
        align-items: flex-start;
        height: auto !important;
        min-height: auto !important;
    }

    .categorii-card__title {
        order: 1;
        width: 100%;
        display: block;
        min-height: auto;
        margin-bottom: 12px;
        padding-bottom: 8px;
        padding-right: 45px;
        border-bottom: 1px solid #eee;
        box-sizing: border-box;
        line-height: 1.2;
    }

    .categorii-card__mobile-side {
        display: block;
        order: 2;
        width: 25%;
        height: 90px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .categorii-card__chars {
        order: 3;
        width: 75%;
        padding-left: 15px;
        margin-top: -5px;
        margin-bottom: -20px;
        box-sizing: border-box;
    }

    .categorii-card__char {
        margin-bottom: 0px;
        margin-top: 10px;
        line-height: 1;
    }

    .categorii-card__media { display: none; }

    .categorii-card__footer {
        order: 4;
        width: 100%;
        margin-top: 5px !important;
        padding-top: 5px;
        border-top: 1px solid #eee;
    }

    .categorii-card__badge {
        position: absolute;
        top: 6px;
        right: 25px;
        width: 30px;
        height: 30px;
        z-index: 2;
    }

    .nasos-text { display: none; }

    .categorii-card__number {
        position: absolute;
        top: 10px;
        right: 12px;
        z-index: 2;
    }

    .title-desktop { display: none; }
    .title-mobile {
        display: inline;
        font-size: 14px;
        line-height: 1.2;
    }
}
