section.slider-section {
    margin-bottom: 10px;
    margin-top: 38px !important;
}

    /* For phones (mobile screens) */
    @media (max-width: 768px) {
        .product-section {
            margin-top: 15px;  /* increase if mobile nav is taller */
        }
    }
    @media (max-width: 768px) {
        .footer_nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 999;
        }
    
        body {
            padding-bottom: 60px; /* height of .footer_nav */
        }
    }

/* Default behavior for PC/Desktop */
/* .dimage_item img {
    object-fit: contain;
} */

/* Mobile-specific styling */
@media (max-width: 768px) {
    .dimage_item img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
    
    .details_slider {
        position: relative;
        border: 1px solid #ddd;
        border-radius: 5px;
        overflow: hidden;
    }
    
    .dimage_item {
        width: 100%;
        height: 350px; /* Standard mobile height */
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Smaller mobile devices */
@media (max-width: 480px) {
    .dimage_item {
        height: 410px; /* Smaller height for small phones */
    }
}

/* Large mobile devices */
@media (min-width: 769px) and (max-width: 1024px) {
    .dimage_item {
        height: 410px; /* Larger height for tablets */
    }
}

/* Sold count styling */
.pro_sold, .product-sold {
    margin: 5px 0;
    text-align: center;
}

.pro_sold p, .product-sold p {
    margin: 0;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.sold-count {
    background-color: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 11px;
}

.product-sold .sold-count {
    background-color: #007bff;
}