.single-auto {
    position: relative;
    overflow: hidden;
    background-color: white;
    max-width:420px;
    border-radius: 8px;
}
 .single-car-info div.price{
    padding-top: 20px;
}
.single-car-info h3{
    margin-top: 8px; 
    margin-bottom: 5px;
} 
.single-auto .price-usd{
    color: #000000;
    display: inline-block;
    margin-left: auto;
    font-weight: 600;
}
.single-car-info .car_body_info{
    margin: 0;
    line-height: 24px;
    font-size: 20px;
    font-weight: 400;
}
.single-car-info .car_body_info a{
    color: #7d7d7d;
    text-decoration: none;
}

 .single-car-info .parametrs{
    margin: 0;
    line-height: 24px;
    font-size: 20px;
    font-weight: 400;
 }
.single-car-info .parametrs a{
    color: #7d7d7d;
    text-decoration: none;
 }
.single-car-photo {
    display: block;
    text-decoration:none;
    height:300px; 
    background-size: cover;
    background-position: 50% 50%;
    border-radius: 8px; 
    position: relative;
}

.single-car-photo .city-info { 

    border-radius: 8px;
    position: absolute;
    color: white;
    top: 0;
    left: 0;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0;
    background-color: #232323;
    padding: 4px 8px;
    font-weight: 400;
    font-size: 20px;
    font-family: 'INTER';
    z-index: 0;
}

.single-car-photo .loan-info {
    position: absolute;
    color: white;
    bottom:0;
    left:0;
    border-top-right-radius: 8px; 
    border-bottom-left-radius: 8px;  
    background-color: #D12D45; 
    padding: 4px 8px;
    font-weight:400; 
    font-size:20px; 
    z-index: 0;
}

.single-car-info {
    text-align: left;
}

.single-auto-footer {
    position: absolute;
    bottom:0;
    left:0;
    right:0;
    text-align: center;
    height:60px;
    opacity:0;
}

.single-auto-footer .buttons {
    text-align: center;
    margin: auto;
}

 .single-auto .model-text{
    display: block;
    text-transform: uppercase;
    font-weight: 400;
    color: #000000;
}
.single-auto .model a{
    color:#000000;
    text-decoration:none;
}
.single-auto .single-car-info .price-span{
    width: auto;
    display: inline-block;
    font-size: 20px;
    font-weight: 600;
    color: #7d7d7d;
    text-decoration: none;
    text-transform: uppercase;
}

 
.background-black .price-byn{
    color: #666;
}
.background-black .price-usd{
    color: white;
}
.background-black .model-text{
    color: white;
}

/* Базовая сетка (4 колонки) */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 0 auto;
  }

  .feature-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
  }

/* Планшеты в горизонтальном положении (3 колонки) */
  @media (max-width: 1200px) {
    .features-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    
  }

   @media (max-width: 900px) {
    .features-grid {
      grid-template-columns: repeat(2, 1fr);
       gap: 10px;
    }
  }

  /* Маленькие мобильные устройства */
  @media (max-width: 400px) {
    .features-grid {
      grid-template-columns: 1fr 1fr;
    }
    
  }

  /* Очень маленькие устройства (1 колонка) */
  @media (max-width: 360px) {
    .features-grid {
      grid-template-columns: 1fr;
      max-width: 300px;
    }
    
    .feature-item {
      margin-bottom: 10px;
    }
  }


@media screen and (max-width: 1440px) {

   .auto_list_8plus .single-auto .single-car-photo { 
        height:220px; 
    }

    .single-auto .single-car-photo .city-info{        
        font-size: 18px;
    }
    .single-auto .single-car-photo .loan-info {        
        font-size: 16px;
    }
    .single-auto .single-car-info .price-span {           
        font-size: 20px;  
    }

 
}
@media screen and (max-width: 769px) {
      .auto_list_8plus .single-car-photo {
        max-height:180px; 
        background-size: cover;
    }
}
@media (max-width: 576px) {
    .auto_list_8plus .single-auto .model-text{
         font-size: 14px;
    }
    .auto_list_8plus .single-auto .single-car-photo .city-info{
        font-size: 14px;
    }
    .auto_list_8plus .single-auto .single-car-info h3{
        margin-top: 0px; 
        margin-bottom: 0px;
    }
    .auto_list_8plus .single-auto .single-car-photo .loan-info{
        font-size: 12px;
    }
    .auto_list_8plus .single-car-info .price-span,
    .auto_list_8plus .car_body_info a,.auto_list_8plus .parametrs a{
        font-size: 11px;
        line-height: 20px;
        margin: 0px;
    }
    .auto_list_8plus .single-car-info div.price{
        padding-top: 5px;
    }
    .auto_list_8plus .car_body_info, .auto_list_8plus .parametrs{
        line-height: 20px;
    }
}
@media (max-width: 456px) {

    .auto_list_8plus .single-car-photo {
        max-height:150px; 
        background-size: cover;
    }

}


.auto_list_8plus{

}

/* Блок с затемнением и отметкой "Продан" */
.sold-out-overlay {
    position: relative;
    overflow: hidden;
    border-radius: 4px; /* Совпадает с радиусом вашей пагинации */
}

.sold-out-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(35, 35, 35, 0.85);
    z-index: 1;
}

.sold-out-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    z-index: 2;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 5rem;
    border: 2px solid #fff;
    background-color: #232323;
    box-shadow: 0 4px 15px rgb(0 0 0 / 71%);
}


/* Анимация для плавного появления */
@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.sold-out-overlay::before {
    animation: fadeInOverlay 0.5s ease-out forwards;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .sold-out-label {
        font-size: 1rem;
        padding: 0.3rem 1rem;
    }
    
}