.car-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #e1e2e1;
}

.car-grid {
  display: grid;
  gap: 60px;
  grid-template-columns: repeat(auto-fit, 400px);
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .car-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  width: 400px;
  height: 550px;
  background: #000;
  border: 1px solid #fff;
  border-radius: 36px;
  overflow: hidden;               
  font-family: 'Inter', sans-serif;
  color: #E1E2E1;
}
    
.card_image {  
  position: relative;        
  width: 100%;
  height: 42%;               
  overflow: hidden;
}

.card_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;      
    object-position: center;
    display: block;      
}

.shadow{
    position: absolute;  
    inset: 0;            
    background:linear-gradient(
                to bottom,
                rgba(0,0,0,0) 85%,  
                rgba(0,0,0,.15) 95%,
                #000 100%);       
    pointer-events: none;         
}
        
.card_content {
    align-content: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

/* container just keeps things centred – unchanged */
.car_info{
  position: relative;          
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* the price label */
.price{
  position: relative;            
  z-index: 2;                    
  background:#000;               
  padding: .15em .6em;           
  margin: 0 0 -.7em;             
  font-weight: 600;              
}

/* the spec-box */
.info-box{
  width: 60%;
  border: 3px solid #fff;
  border-radius: 12px;
  margin-top: 0;                 
  padding: 1.4em 10px 10px;      
  text-align: center;             
}

.show-btn {
    background: #e2dac9; 
    color: #000;
    border-radius: 20px;
    padding: 10px 40px;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    border: 1px solid white;
}   
.show-btn:hover {
    background: #d1c0a8; 
    color: #000;
    text-decoration: none;
}

@media (max-width: 420px) {       
  .card{
    width: 90vw;                  
    height: 560px;                
  }

  .card_image{
    height: 45%;                  
  }

  .show-btn{
    font-size: 1em;               
    padding: 10px 30px;
  }
}

.no-cars { 
    max-width: 1220px;
    width: 95%;
    padding: 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%), #1B3B6F;
    display: flex;
    flex-direction: column;
    align-items: center; 
    border-radius: 24px;    
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    margin: 40px;
}


.group{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #e1e2e1;
    gap: 10px;
    width: 100%;
}

@media(max-width: 600px) {
    .group {
        flex-direction: column;
        align-items: center;
    }
}