/* Curved Background Styles */

.curved-section-wrapper {
  position: relative;
  z-index: 1; /* Lower than form */
  margin-top: 50px; /* Creates space between form and curve */
}

.curved-bg-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 200px;
    /* margin-bottom: -150px; */
}

.curved-bg {
    position: absolute;
    top:-10%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 0 0 50% 50%/0 0 100px 100px;
    transform: scaleX(1.5);
}

.apex-text-bg {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8vw;
    font-weight: 900;
    color: rgba(44, 40, 40,0.13);
    white-space: nowrap;
    z-index: 1;
}

/* Product Card Styles */
.product-card {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 20px;
    display: block;
    margin: 0 auto;
}

.card-content {
    padding: 15px;
}

.part-name {
    margin: 10px 0 5px;
    color: #555;
}

.model-name {
    font-size: 18px;
    font-weight: bold;
    margin: 5px 0 15px;
    color: #333;
}

.enquire-btn {
    border: none;
    background: #ff0000;
    padding: 8px 15px;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    float: right;
}

.enquire-btn a {
    text-decoration: none;
    color: white;
}

.deal-badge {
    font-size: 0.7rem;
    color: red;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .curved-bg-container {
        height: 150px;
        margin-bottom: -100px;
    }
    
  
    .apex-text-bg {
    position: absolute;
    top: 20%;
    right: -45%;
   font-size: 10px;
    font-weight: 300;
    color: rgba(44, 40, 40, 0.13);
    white-space: nowrap;
    z-index: 1;
}


.spinning-tyre img {
  display: none;
}

}

/* Add these styles to your existing CSS */
.spinning-tyre {
    position: absolute;
    width: 150px;
    height: 150px;
    top: 50%;
    left: 20%;
    /* Remove this line: transform: translateY(-50%); */
    z-index: 1;
    animation: spin 8s linear infinite;
}

.spinning-tyre img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.2));
}

@keyframes spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(360deg); }
}

/* Adjust the apex text position to accommodate the tyre */
.apex-text-bg {
    left: 55%; /* Move text right to make space for tyre */
}

@media (max-width: 768px) {
    .spinning-tyre {
        width: 100px;
        height: 100px;
        left: 10%;
    }
    
    .apex-text-bg {
        left: 60%;
        font-size: 10vw;
    }
    .bottom-image img {
  display:none;
}
}

/* Bottom Image Styles */
.bottom-image {
    position: absolute;
    width:20%;
    height: auto;
    right: 8%;
    bottom: -10px; /* Extends below the curved section */
    z-index: 2;
    transition: all 0.3s ease;
}
.bottom-image img {
    width: 50%;
    height: auto;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.2));
}