/* SpeedaCure.pk Modern Preview Refinement */

/* Remove duplicate legacy breadcrumb */
[data-product-breadcrumb] {
    display: none !important;
}

/* Reduce unnecessary spacing */
.sc-live-product {
    padding-top: 8px !important;
    padding-bottom: 24px !important;
}

/* Compact two-column layout */
.scpd__grid {
    gap: 20px !important;
    align-items: start !important;
}

/* Product image gallery */
.scpd__viewer {
    height: 340px !important;
    min-height: 0 !important;
    max-height: 340px !important;
    overflow: hidden !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scpd__viewer > img {
    width: 100% !important;
    height: 100% !important;
    max-height: 315px !important;
    object-fit: contain !important;
}

/* Purchase summary */
.scpd__summary {
    min-width: 0;
}

.scpd__titleline h1 {
    font-size: clamp(23px, 2vw, 29px) !important;
    line-height: 1.2 !important;
}

/* Compact quantity and actions */
.scpd__buy {
    gap: 10px !important;
}

/* Product description tabs */
.scpd__tabs {
    margin-top: 16px !important;
}

/* Mobile */
@media (max-width: 768px) {
    .scpd__grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
    }

    .scpd__viewer {
        height: 270px !important;
        max-height: 270px !important;
    }

    .scpd__viewer > img {
        max-height: 250px !important;
    }

    .scpd__buy {
        flex-wrap: wrap !important;
    }
}

/* SpeedaCure.pk gallery refinements */

/* Hide navigation controls when there is only one image */
.scpd__galleryrow:has(.scpd__thumb:only-child) {
    display: none !important;
}

/* Keep thumbnail controls compact when multiple images exist */
.scpd__galleryrow {
    margin-top: 10px !important;
    gap: 8px !important;
}

/* Reduce vertical space below product gallery */
.scpd__tabs {
    margin-top: 12px !important;
}

/* Maintain image proportions */
.scpd__viewer > img {
    object-fit: contain !important;
}

