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) {
    /* Ensure product image column is visible */
    .col-sm-6.position-relative,
    .col-sm-6 {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
    }
    
    .details_slider {
        position: relative;
        border: 1px solid #ddd;
        border-radius: 5px;
        overflow: hidden !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
    }
    
    /* Ensure owl-carousel shows only one item at a time */
    .details_slider.owl-carousel {
        display: block !important;
        position: relative !important;
    }
    
    .details_slider .owl-stage-outer {
        overflow: hidden !important;
        width: 100% !important;
        position: relative !important;
    }
    
    .details_slider .owl-stage {
        display: flex !important;
        width: 100% !important;
    }
    
    .details_slider .owl-item {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        flex-shrink: 0 !important;
    }
    
    .dimage_item {
        width: 100% !important;
        height: 350px; /* Standard mobile height */
        overflow: hidden;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
    }
    
    .dimage_item img,
    .block__pic {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure product details section is visible */
    .product-section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .details_right {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
    }
}

/* 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;
}