/* Deferred PDP recommendations: server HTML stays intact while work waits. */
.catalog-product-view .azb-pdp-carousel-shell {
    box-sizing: border-box;
    min-height: 542px;
    position: relative;
}

.azb-pdp-carousel-defer-capable .catalog-product-view .azb-pdp-carousel-shell {
    overflow: hidden;
}

.azb-pdp-carousel-defer-capable .catalog-product-view .azb-pdp-carousel-shell:not(.azb-pdp-carousel--ready) > .itemslider {
    contain: layout paint style;
    contain-intrinsic-size: 100% 542px;
    content-visibility: hidden;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Owl and title sizing need a real layout box, but it stays visually hidden
   until two stable animation frames have completed. */
.azb-pdp-carousel-defer-capable .catalog-product-view .azb-pdp-carousel-shell.azb-pdp-carousel--activating > .itemslider {
    content-visibility: visible;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.azb-pdp-carousel-defer-capable .catalog-product-view .azb-pdp-carousel-shell:not(.azb-pdp-carousel--ready)::before {
    background:
        linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .75) 42%, transparent 64%) 0 0 / 220% 100%,
        linear-gradient(#f1f2f3 0 0) 12px 12px / calc(25% - 24px) 52% no-repeat,
        linear-gradient(#f1f2f3 0 0) calc(25% + 6px) 12px / calc(25% - 24px) 52% no-repeat,
        linear-gradient(#f1f2f3 0 0) calc(50% + 6px) 12px / calc(25% - 24px) 52% no-repeat,
        linear-gradient(#f1f2f3 0 0) calc(75% + 6px) 12px / calc(25% - 24px) 52% no-repeat,
        repeating-linear-gradient(to right, #f5f5f5 0 calc(25% - 12px), transparent calc(25% - 12px) 25%) 12px 60% / calc(100% - 24px) 36% no-repeat;
    border-radius: 6px;
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.azb-pdp-carousel-defer-capable .catalog-product-view .azb-pdp-carousel-shell.azb-pdp-carousel--ready {
    min-height: 0;
    overflow: visible;
}

.azb-pdp-carousel-defer-capable .catalog-product-view .azb-pdp-carousel-shell.azb-pdp-carousel--ready > .itemslider {
    contain: none;
    content-visibility: visible;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

/* PDP recommendations reuse the category card rhythm without sizing Owl itself. */
.catalog-product-view .itemslider-upsell-wrapper .products-grid .item {
    overflow: visible;
}

.catalog-product-view .itemslider-upsell-wrapper .products-grid .product-image-wrapper {
    margin-bottom: 0 !important;
}

.catalog-product-view .itemslider-upsell-wrapper .products-grid .product-info,
.catalog-product-view .itemslider-upsell-wrapper .products-grid .product-custom-name-review {
    display: flex !important;
    flex-direction: column;
}

.catalog-product-view .itemslider-upsell-wrapper .products-grid .product-name {
    box-sizing: border-box;
    min-height: 88px !important;
}

.catalog-product-view .itemslider-upsell-wrapper .products-grid .review-custom {
    flex: 0 0 40px;
}

.catalog-product-view .itemslider-upsell-wrapper .products-grid .price-box {
    flex: 0 0 30px;
}

.catalog-product-view .itemslider-upsell-wrapper .products-grid .price-from {
    align-items: baseline !important;
    display: flex !important;
    gap: 4px !important;
    justify-content: center !important;
}

.catalog-product-view .itemslider-upsell-wrapper .products-grid .price-from .price-label {
    color: #5f6368 !important;
    display: inline-block !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 13px !important;
    margin: 0 !important;
    opacity: 1 !important;
    position: static !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

.catalog-product-view .itemslider-upsell-wrapper .products-grid .actions {
    flex: 0 0 54px;
}

.catalog-product-view .itemslider-upsell-wrapper .products-grid .review-custom-tatva {
    flex: 0 0 46px;
}

@media only screen and (min-width: 768px) and (max-width: 1279px) {
    .catalog-product-view .itemslider-upsell-wrapper .products-grid .product-name {
        min-height: 91px !important;
    }
}

@media only screen and (min-width: 1280px) {
    .catalog-product-view .itemslider-upsell-wrapper .products-grid .product-name {
        min-height: 69px !important;
    }
}

@media only screen and (max-width: 479px) {
    .catalog-product-view .azb-pdp-carousel-shell,
    .azb-pdp-carousel-defer-capable .catalog-product-view .azb-pdp-carousel-shell {
        min-height: 469px;
    }

    .azb-pdp-carousel-defer-capable .catalog-product-view .azb-pdp-carousel-shell:not(.azb-pdp-carousel--ready) > .itemslider {
        contain-intrinsic-size: 100% 469px;
    }

    .catalog-product-view .azb-pdp-carousel-shell.azb-pdp-carousel--single,
    .azb-pdp-carousel-defer-capable .catalog-product-view .azb-pdp-carousel-shell.azb-pdp-carousel--single {
        min-height: 523px;
    }

    .azb-pdp-carousel-defer-capable .catalog-product-view .azb-pdp-carousel-shell.azb-pdp-carousel--single:not(.azb-pdp-carousel--ready) > .itemslider {
        contain-intrinsic-size: 100% 523px;
    }

    .azb-pdp-carousel-defer-capable .catalog-product-view .azb-pdp-carousel-shell:not(.azb-pdp-carousel--ready)::before {
        background:
            linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .75) 42%, transparent 64%) 0 0 / 220% 100%,
            linear-gradient(#f1f2f3 0 0) 10px 10px / calc(50% - 15px) 51% no-repeat,
            linear-gradient(#f1f2f3 0 0) calc(50% + 5px) 10px / calc(50% - 15px) 51% no-repeat,
            repeating-linear-gradient(to right, #f5f5f5 0 calc(50% - 10px), transparent calc(50% - 10px) 50%) 10px 59% / calc(100% - 20px) 37% no-repeat;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .azb-pdp-carousel-defer-capable .catalog-product-view .azb-pdp-carousel-shell:not(.azb-pdp-carousel--ready)::before {
        animation: azb-pdp-carousel-shimmer 1.35s linear infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .azb-pdp-carousel-defer-capable .catalog-product-view .azb-pdp-carousel-shell::before {
        animation: none !important;
    }
}

@keyframes azb-pdp-carousel-shimmer {
    to {
        background-position: -220% 0, 12px 12px, calc(25% + 6px) 12px, calc(50% + 6px) 12px, calc(75% + 6px) 12px, 12px 60%;
    }
}
