@media (max-width: 576px) {

    /* Wrap entire column and center it */
    .col-md-5.d-flex.w-100 {
        flex-direction: column !important;
        align-items: center !important;
        max-width: 100% !important;
    }

    /* Side image container */
    #imageScroll {
        max-height: 120px !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 8px !important;
    }

    /* Side thumbnails smaller */
    #imageScroll img {
        width: 50px !important;
        height: 50px !important;
    }

    /* Main Image smaller on mobile */
    #mainImage {
        width: 100% !important;
        height: auto !important;
        max-height: 300px !important;
    }

    /* Disable zoom view on mobile */
    #zoomView {
        display: none !important;
    }

    /* Keep same row on mobile */
    .d-flex.gap-2.mt-4.flex-wrap.w-100 {
        flex-direction: row !important;
        justify-content: space-between !important;
        max-width: 100% !important;
        gap: 6px !important;
    }

    /* Wishlist small icon */
    .wishlist-btn {
        width: 40px !important;
        height: 40px !important;
    }

    /* Shrink buttons but stay in one line */
    .buy-now-btn {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 13px !important;
        white-space: nowrap;
    }

    /* Make right column full width on mobile */
    .col-md-7 {
        margin-top: 20px !important;
        width: 100% !important;
    }

    /* Reduce title size */
    .col-md-7 h4 {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
    }

    /* Reduce description font */
    .col-md-7 p.text-muted {
        font-size: 0.9rem !important;
    }

    /* Convert 2-column row → single column */
    .col-md-7 .row>div {
        width: 100% !important;
    }

    /* Make badges smaller */
    .badge {
        font-size: 0.7rem !important;
        padding: 4px 6px !important;
    }

    /* Video buttons: stay in same row but smaller */
    .col-md-7 .d-flex.gap-2 {
        max-width: 100% !important;
        justify-content: space-between !important;
        gap: 6px !important;
    }

    /* Shrink video buttons */
    .col-md-7 .buy-now-btn {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        font-size: 12px !important;
        white-space: nowrap;
    }

    /* Offers list spacing */
    .list-group-item {
        font-size: 0.85rem !important;
        padding: 0.6rem 0.5rem !important;
    }

    /* Share buttons spacing & size */
    div[style*="inline-flex"] a i {
        font-size: 18px !important;
    }

    div[style*="inline-flex"] {
        gap: 12px !important;
        margin-top: 10px !important;
    }

    /* Hide left and right scroll buttons in mobile */
    .container-fluid .btn.btn-success {
        display: none !important;
    }

    /* Reduce card width so that 2 cards fit in 1 row */
    #recScroll>div {
        min-width: 48% !important;
        max-width: 48% !important;
    }

    /* Reduce height in mobile */
    #recScroll .card {
        height: 300px !important;
    }

    /* Reduce image height */
    #recScroll .card .overflow-hidden {
        height: 180px !important;
    }

    /* Adjust title section */
    #recScroll .card-body {
        height: 4rem !important;
    }

    /* Price section height */
    #recScroll .p-2.border-top {
        height: 45px !important;
    }
}