.parts_results_wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.parts_result_item {
    width: 300px;
    max-width: 353px;
    min-height: 400px;
    flex-grow: 1;
    flex-shrink: 0;
    border-radius: 0px; /* Базовый стиль, будет переопределен классами body */
    overflow: hidden;
    border: 1px solid #333;
    background-color: #1e2939;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
}

.part_item_type {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #47d052;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 0 0 10px 0;
}

body.square-border .part_item_type {
    border-radius: 0;
}

.part_item_type.buy {
    background-color: #f0b100;
    color: #000;
}

.parts_result_item.buy {
    border-color: #f0b100;
}

.car_model_label {
    position: absolute;
    top: 176px;
    right: 0;
    background-color: #47d052;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 10px 0 0 0;
    -webkit-line-clamp: 1; 
    display: -webkit-box; 
    -webkit-box-orient: vertical; 
    overflow: hidden;
}

.parts_result_item.buy .car_model_label {
    background-color: #f0b100;
}

body.square-border .car_model_label {
    border-radius: 0;
}

.parts_result_item_image {
    width: 100%;
    height: 200px;
    display: block;
}

.parts_result_item_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.parts_result_item_content {
    padding: 10px 25px 20px;
}

.parts_result_item_content h3 {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
    margin: 0;
    height: 46px;
    -webkit-line-clamp: 2; 
    display: -webkit-box; 
    -webkit-box-orient: vertical; 
    overflow: hidden;
}

.part_item_separator {
    border-top: 1px solid #999;
    margin: 10px 0;
}

.part_item_price {
    margin: 10px 0 20px;
    color: #c9c9c9;
}

.part_item_price_label {
    font-size: 16px;
    font-weight: bold;
}

.alternative_price {
    opacity: 0.5;
}

.part_item_price_value {
    display: flex;
    font-size: 20px;
    font-weight: bold;
    justify-content: space-between;
}

.part_item_buttons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.part_item_button {
    background-color: #51a2ff;
    color: #fff;
    padding: 10px 20px;
    width: 100%;
    border-radius: 0px; /* Базовый стиль, будет переопределен классами body */
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.part_item_button:hover {
    background-color: #4592e6;
}

.part_item_button.buy {
    background-color: #f0b100;
}

.part_item_button.buy:hover {
    background-color: #e0a100;
}

.user_info_wrapper {
    display: block; /* flex */
    justify-content: space-between;
    align-items: center;
}

.user_info_name {
    font-size: 14px;
    font-weight: 600;
    color: #b3b3b3;
}

.user_info_rating_positive {
    color: #00c951;
}

.user_info_rating_negative {
    color: #fb2c36;
}

.show_all_parts_by_default_wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 10px;
}

#add-to-garage-block {
    position: fixed;
    left: 50%;
    top: 65px;
    transform: translateX(-50%);
    z-index: 1000;
    width: 100%;
}

.add_to_garage_wrapper {
    border: 1px solid #15803d;
    background-color: #14532df5;
    color: #bbf7d0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 15px;
    font-size: 14px;
    max-width: max-content;
    margin: 0 auto;
}

.add_to_garage_car_model_btn {
    cursor: pointer;
}

.add_to_garage_car_model {
    font-size: 14px;
    font-weight: 700;
    color: #b3b3b3;
}

.add_to_garage_car_button {
    display: flex;
    align-items: center;
    color: #86efac; 
}

.add_to_garage_car_button .icon {
    width: 20px;
}

.add_to_garage_car_button .btn {
    cursor: pointer;
}

.count_parts_wrapper {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
  

@media (max-width: 1520px) {
    .parts_result_item {
        max-width: unset!important;
    }
}

@media (max-width: 1200px) {

}

@media (max-width: 1024px) {
    
}

@media (max-width: 768px) {
    
    .add_to_garage_wrapper {
        gap: 5px;
        padding: 7px 10px;
        justify-content: center;
    }

    .count_parts_wrapper {
        justify-content: center;
        margin-bottom: 10px;
    }

    .count_parts_wrapper h3 {
        font-size: 18px;    
    }

    .parts_result_item_content {
        padding: 10px 15px 15px;
    }

    .parts_result_item_content h3 {
        font-size: 16px;
        height: 40px;
        line-height: 1.2;
    }

    .part_item_price {
        margin: 10px 0 15px;
    }

    .part_item_price_label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {

}