.text_body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px; /* Menține înălțimea minimă */
}

h4 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limitează la 2 linii */
    -webkit-box-orient: vertical;
    max-height: 3.6em; /* Asigură înălțimea maximă pentru 2 linii */
    line-height: 1.8em; /* Setează înălțimea fiecărei linii */
    white-space: normal; /* Permite textului să se rupă pe mai multe linii */
}

.price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; /* Aliniază prețurile la mijloc */
    margin-bottom: 10px;
}

.price {
    color: #d9534f; /* roșu pentru prețul redus */
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 5px; /* Distanță între prețurile reducere și original */
}

.original-price {
    font-size: 1em;
    color: #6c757d; /* gri pentru prețul original */
    text-decoration: line-through;
}

.stock-status {
    text-align: center; /* Aliniază secțiunea in stock pe mijloc */
    margin-bottom: 15px; /* Adaugă un spațiu între secțiunea de stoc și preț */
}


.in-stock {
    color: #28a745; /* verde pentru in stock */
}

.out-of-stock {
    color: #d9534f; /* roșu pentru out of stock */
}

.text_footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-left: 10px;
    border-top: 1px solid #ddd;
    position: relative;
}

.details-button {
    border-width: 1px;
    border-style: solid;
    transition: all 300ms linear 0s;
    background: #ff0000;
    border-color: #ff2a39;
    color: #fff !important;
    z-index: 2;
    line-height: 38px;
    text-transform: uppercase;
    font-weight: bold !important;
    font-size: 16px;
    font-family: "Barlow", sans-serif;
    display: inline-block;
    padding: 0px 26px;
    position: relative;
    max-width: 100% !important;
    cursor: pointer !important;
}

.details-button:hover {
    background-color: #c9302c; /* Culoare mai închisă la hover */
}

/* Container vizual */
.find-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, .08);
}

/* ============== CUSTOM SELECT2 BOOTSTRAP 4.5 SKIN ============== */

/* 1️⃣  Inputul propriu-zis */
.select2-container .select2-selection--single {
    height: calc(2.875rem + 2px); /* identic cu .btn-lg */
    padding: 0.75rem 1.25rem;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    line-height: 1.5;
    display: flex; /* pt. aliniere perfectă a iconiței  */
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: .75rem; /* exact ca BS */
}

/* Povestioară focus - roșu (#dc3545) la fel ca btn-danger */
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default .select2-selection--single:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, .25);
}

/* 2️⃣  Dropdown-ul */
.select2-container--default .select2-dropdown {
    border-radius: .5rem;
    border: 1px solid #dee2e6;
    box-shadow: 0 .5rem 1.125rem rgba(0, 0, 0, .15);
    z-index: 1055; /* peste bannere/carousel etc. */
}

/* Opțiuni – scroll bar mai fin și text ce nu rupe layout-ul */
.select2-results__option {
    padding: .5rem 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 3️⃣  Placeholder „Model…” gri BS */
.select2-selection__placeholder {
    color: #6c757d;
    opacity: .9;
}

.select2-container {
    width: 100% !important; /* !important = bate orice inline style */
}

.market-card {
    background: transparent;
    border: 0;
}

/* iconițele – mărime și culoare consistentă */
.market-card i {
    font-size: 2rem; /* ≈ 32 px */
    color: #dc3545; /* roșu acc. cu brand-ul tău */
}

@media (max-width: 991.98px) {
    .w-lg-auto {
        width: 100% !important;
    }

    .find-card > .d-flex > div {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important; /* scapi și de pr-lg-2 în mobile */
    }

    .market-card h5 {
        white-space: nowrap;
    }

    /* utilitar custom */
}
