/* Card container should be relative so that the link can stretch properly */

/* .card {
    position: relative;
    overflow: hidden;
    height: 100%; 
    display: flex;
    flex-direction: column;
} 
*/

/* Stretched link should cover the entire card */
/* 
.stretched-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    z-index: 2; 
    text-decoration: none; 
    background-color: rgba(0, 0, 0, 0); 
} */

/* Image should fill the card without stretching */
/* 
.card img {
    width: 100%;
    height: 200px; 
    object-fit: cover; 
    object-position: center;
} */

/* Card body should take up the remaining space in the card */
/* 
.card-body {
    flex-grow: 1; 
    position: relative; 
} */
/* Carousel image styling */
.carousel-item-img {
    object-fit: cover;
    object-position: top;
    height: 60vh;
    overflow: hidden;
}

/* Styling for the old price and new price */
.old_price {
    font-weight: bold;
    color: red;
}

.new_price {
    font-weight: bold;
    background-color: green;
    color: white;
    padding: 2px;
    border-radius: 5px;
}

/* Hot tag on the card */
.hot {
    background-color: orangered;
    color: white;
    width: 50px;
    font-weight: bold;
    display: inline-block;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    top: 0;
    z-index: 10;
}

/* Background styling for full-page sections */
.background-image {
    background-image: url('/static/images/black-white-view-off-road-vehicle-driven-rough-terrain (1).jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh; /* Ensures the background covers the full height */
    display: flex;
    align-items: center; /* Center content vertically */
}

/* Card image styles */
.product-image {
    width: 100%; /* Ensures the image fills the width of the card */
    height: 200px; /* Sets a fixed height for uniformity */
    object-fit: cover; /* Ensures the image fills the area without distortion */
    object-position: center; /* Centers the image in its container */
    border-bottom: 1px solid #e0e0e0; /* Optional: border for separation */
    border-radius: 5px; /* Optional: adds rounded corners */
    transition: transform 0.3s ease; /* Adds a hover effect */
}

/* Hover effect for images */
.product-image:hover {
    transform: scale(1.05); /* Slight zoom on hover */
}

/* Mobile responsiveness (for screens smaller than 768px) */
@media (max-width: 768px) {
    /* General container adjustments */
    .container {
        padding: 10px; /* Reduce padding for smaller screens */
    }

    /* Card adjustments */
    .card {
        flex-direction: column; /* Stack card elements vertically */
        height: auto; /* Allow cards to adjust their height dynamically */
    }

    .card img {
        height: auto; /* Adjust image height proportionally */
    }

    /* Carousel image adjustments */
    .carousel-item-img {
        height: 40vh; /* Reduce height for mobile view */
    }

    /* Adjust product image size */
    .product-image {
        height: 150px; /* Smaller height for mobile */
    }

    /* Font size adjustments */
    .old_price,
    .new_price {
        font-size: 14px; /* Scale down fonts */
    }

    /* Hot tag adjustments */
    .hot {
        width: auto; /* Make width dynamic */
        font-size: 12px; /* Reduce font size */
        padding: 3px;
    }

    /* Background image adjustments */
    .background-image {
        min-height: 60vh; /* Reduce height for mobile */
    }
}

/* Further adjustments for very small screens (max-width: 480px) */
@media (max-width: 480px) {
    /* Further reduce image heights for very small screens */
    .carousel-item-img {
        height: 30vh;
    }

    .product-image {
        height: 120px; /* Further reduce height for smaller phones */
    }

    /* Compact padding and spacing */
    .card-body {
        padding: 5px;
    }

    /* Adjust font sizes for price tags */
    .old_price,
    .new_price {
        font-size: 12px; /* Smaller font for compact view */
    }

    /* Hot tag adjustments for very small screens */
    .hot {
        font-size: 10px; /* Reduce font size further */
    }

    /* Background image height adjustment */
    .background-image {
        min-height: 50vh; /* Shrink for small screens */
    }
}

@media (max-width: 768px) {
    /* Stack image and details vertically */
    .pic-box {
        width: 100%; /* Full width */
        text-align: center; /* Center image */
        margin-bottom: 20px; /* Add spacing below image */
    }

    .pic-box img {
        width: 90%; /* Scale image for smaller screens */
        height: auto; /* Maintain aspect ratio */
        max-width: 300px; /* Optional: Limit image size */
        object-fit: cover; /* Maintain aspect ratio */
        object-position: center; /* Center the image */
    }

    .col-7 {
        width: 100%; /* Full width for the description */
        padding: 10px; /* Add padding for readability */
        margin-bottom: 20px; /* Add margin below the description */
    }

    /* Ensure text is properly aligned */
    .col-7 h5,
    .col-7 p {
        text-align: center; /* Center text for better aesthetics */
        font-size: 1.5rem; /* Adjust heading size */
    }

    .col-7 p {
        font-size: 0.9rem; /* Adjust paragraph size */
    }

    /* Button adjustments */
    #btnCart, #btnBuyNow, #btnFav {
        padding: 10px 15px; /* Increase padding for better touch targets */
        font-size: 1rem; /* Adjust font size */
    }

    /* Hide non-essential elements */
    .non-essential-class {
        display: none; /* Hide non-essential elements */
    }
}

/* Further adjustments for very small screens */
@media (max-width: 480px) {
    /* Further adjust for very small screens */
    .pic-box img {
        width: 100%; /* Ensure it fits the screen */
    }

    .col-7 {
        font-size: 14px; /* Reduce font size */
        line-height: 1.5; /* Improve readability */
    }
}




