/* v696 – final desktop product-detail geometry.
   Loaded after every legacy and stability stylesheet.  The native JTL/Slick
   carousel remains responsible for its track and slide state; this stylesheet
   only gives its viewport, slides and thumbnail rail their visual dimensions. */
@media (min-width:1200px) {
    html body:has(#product-offer) #content > .container,
    html body:has(#product-offer) #content-wrapper > .breadcrumb-container,
    html body:has(#product-offer) #result-wrapper > .container,
    html body:has(#product-offer) #result-wrapper .luna-detail-lower-grid,
    html body:has(#product-offer) .breadcrumb-container {
        width: calc(100% - 40px) !important;
        max-width: 1230px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    html body:has(#product-offer) #product-offer.product-detail {
        display: grid !important;
        grid-template-columns: 560px minmax(0, 1fr) !important;
        height: auto !important;
        min-height: 416px !important;
        overflow: visible !important;
        border-radius: 6px !important;
        box-shadow: none !important;
    }
    html body:has(#product-offer) #product-offer > .product-gallery {
        width: 560px !important;
        max-width: 560px !important;
        padding: 0 0 0 44px !important;
        overflow: visible !important;
    }
    html body:has(#product-offer) #image_wrapper {
        position: relative !important;
        width: 512px !important;
        height: 368px !important;
        min-height: 368px !important;
        max-height: 368px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }
    html body:has(#product-offer) #image_wrapper > .row {
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
    }
    html body:has(#product-offer) #gallery_wrapper {
        position: absolute !important;
        top: 0 !important;
        left: 96px !important;
        display: block !important;
        width: 416px !important;
        height: 368px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    html body:has(#product-offer) #gallery,
    html body:has(#product-offer) #gallery .slick-list {
        width: 416px !important;
        height: 368px !important;
        min-height: 368px !important;
        max-height: 368px !important;
        overflow: hidden !important;
        background: #f7f4f1 !important;
    }
    html body:has(#product-offer) #gallery .slick-track {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: max-content !important;
        height: 368px !important;
        min-height: 368px !important;
        max-height: 368px !important;
    }
    html body:has(#product-offer) #gallery .slick-slide,
    html body:has(#product-offer) #gallery .square.square-image {
        display: block !important;
        flex: 0 0 416px !important;
        width: 416px !important;
        height: 368px !important;
        min-height: 368px !important;
        max-height: 368px !important;
        margin: 0 !important;
    }
    html body:has(#product-offer) #gallery .slick-slide.d-none,
    html body:has(#product-offer) #gallery .square.square-image.d-none { display: block !important; }
    html body:has(#product-offer) #gallery .square.square-image::before { display: none !important; }
    html body:has(#product-offer) #gallery .square.square-image > .inner,
    html body:has(#product-offer) #gallery .square.square-image picture {
        position: relative !important;
        inset: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 416px !important;
        height: 368px !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: #f7f4f1 !important;
    }
    html body:has(#product-offer) #gallery img.product-image,
    html body:has(#product-offer) #gallery picture > img {
        position: static !important;
        inset: auto !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        margin: 0 !important;
        object-fit: contain !important;
        object-position: center !important;
        transform: none !important;
    }

    /* One native thumbnail per product image.  Slick clones are animation
       helpers and must not appear in the static vertical rail. */
    html body:has(#product-offer) #image_wrapper .product-detail-image-preview-bar {
        position: absolute !important;
        z-index: 6 !important;
        top: 0 !important;
        left: 0 !important;
        display: block !important;
        width: 80px !important;
        height: 368px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    html body:has(#product-offer) #gallery_preview_wrapper {
        position: absolute !important;
        inset: 0 !important;
        display: block !important;
        width: 80px !important;
        height: 368px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scrollbar-width: thin !important;
    }
    html body:has(#product-offer) #gallery_preview,
    html body:has(#product-offer) #gallery_preview .slick-list,
    html body:has(#product-offer) #gallery_preview .slick-track {
        display: block !important;
        width: 80px !important;
        height: auto !important;
        max-height: none !important;
        margin: 0 !important;
        overflow: visible !important;
        transform: none !important;
    }
    html body:has(#product-offer) #gallery_preview .slick-slide,
    html body:has(#product-offer) #gallery_preview .square.square-image {
        display: block !important;
        width: 80px !important;
        height: 68px !important;
        min-width: 80px !important;
        min-height: 68px !important;
        margin: 0 0 7px !important;
        overflow: hidden !important;
        border: 1px solid #e2d7d0 !important;
        border-radius: 2px !important;
        background: #f7f4f1 !important;
    }
    html body:has(#product-offer) #gallery_preview .slick-cloned { display: none !important; }
    html body:has(#product-offer) #gallery_preview .square.square-image > .inner,
    html body:has(#product-offer) #gallery_preview .square.square-image picture {
        position: relative !important;
        inset: auto !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }
    html body:has(#product-offer) #gallery_preview img.product-image {
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    html body:has(#product-offer) #gallery_preview .slick-arrow { display: none !important; }

    html body:has(#product-offer) #product-offer > .product-info {
        padding: 14px 26px 16px 0 !important;
        overflow: visible !important;
        border: 0 !important;
    }
    html body:has(#product-offer) #product-offer .product-info-inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 300px !important;
        grid-template-areas: 'headline headline' 'essential features' 'offer offer' !important;
        grid-template-rows: auto auto auto !important;
        grid-auto-rows: auto !important;
        column-gap: 18px !important;
        row-gap: 0 !important;
        min-height: 338px !important;
        padding: 0 !important;
        align-content: start !important;
        white-space: normal !important;
    }
    html body:has(#product-offer) #product-offer .product-headline { grid-area: headline !important; width: auto !important; }
    html body:has(#product-offer) #product-offer .product-title {
        margin: 0 0 7px !important;
        font-family: Georgia, serif !important;
        font-size: clamp(25px, 1.9vw, 32px) !important;
        line-height: 1.12 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
    }
    html body:has(#product-offer) #product-offer .info-essential { grid-area: essential !important; margin: 8px 0 10px !important; }
    html body:has(#product-offer) #product-offer .luna-detail-features {
        position: static !important;
        grid-area: features !important;
        width: auto !important;
        max-width: none !important;
        margin: 8px 0 0 !important;
        overflow: visible !important;
        font-size: 11px !important;
        line-height: 1.18 !important;
    }
    html body:has(#product-offer) #product-offer .luna-detail-features p,
    html body:has(#product-offer) #product-offer .luna-detail-features strong,
    html body:has(#product-offer) #product-offer .luna-detail-features li {
        font-size: 11px !important;
        line-height: 1.18 !important;
    }
    html body:has(#product-offer) #product-offer .luna-detail-features ul {
        margin: 0 !important;
        padding: 0 !important;
    }
    html body:has(#product-offer) #product-offer .luna-detail-features li {
        margin: 0 0 2px !important;
        padding-left: 16px !important;
    }
    html body:has(#product-offer) #product-offer .luna-detail-features li::before {
        top: 1px !important;
        font-size: 10px !important;
    }
    html body:has(#product-offer) #product-offer .product-offer {
        display: block !important;
        grid-area: offer !important;
        width: 416px !important;
        max-width: 416px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    html body:has(#product-offer) #product-offer .product-offer > .row,
    html body:has(#product-offer) #product-offer .product-offer > .row > [class*='col-'] {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    html body:has(#product-offer) #product-offer .price_wrapper {
        margin: 0 !important;
        padding: 0 !important;
    }
    html body:has(#product-offer) #product-offer .stock-information {
        margin: 5px 0 !important;
        padding: 6px 0 !important;
        min-height: 0 !important;
    }
    html body:has(#product-offer) #product-offer #add-to-cart {
        width: 416px !important;
        max-width: 416px !important;
        margin-top: 6px !important;
        padding: 0 !important;
    }
    html body:has(#product-offer) #product-offer #add-to-cart .basket-form-inline { display: flex !important; flex-wrap: nowrap !important; width: 416px !important; margin: 0 !important; }
    html body:has(#product-offer) #product-offer #add-to-cart .basket-form-inline > [class*='col-'] { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
    html body:has(#product-offer) #product-offer #add-to-cart .basket-form-inline > [class*='col-']:first-child { flex: 0 0 145px !important; }
    html body:has(#product-offer) #product-offer #add-to-cart .basket-form-inline > [class*='col-']:last-child { flex: 1 1 auto !important; margin-left: 12px !important; }
    /* The reference uses compact payment logos below the purchase button.  The
       provider's large express-checkout iframes would otherwise make the
       product card taller than the gallery and overlap the panels below. */
    html body:has(#product-offer) #product-offer #add-to-cart #paypal-button-productDetails-container,
    html body:has(#product-offer) #product-offer #add-to-cart #ppc-productDetails-horizontal-container,
    html body:has(#product-offer) #product-offer #add-to-cart #ppc-productDetails-instalment-banner,
    html body:has(#product-offer) #product-offer #add-to-cart .ppc-ecs-horizontal-container,
    html body:has(#product-offer) #product-offer #add-to-cart .lpa-button,
    html body:has(#product-offer) #product-offer #add-to-cart .lpa-button-wrapper,
    html body:has(#product-offer) #product-offer #add-to-cart .lpa-button-container { display: none !important; }

    html body:has(#product-offer) #result-wrapper .luna-detail-lower-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr) minmax(0, 1.15fr) !important;
        gap: 12px !important;
        margin-top: 16px !important;
        margin-bottom: 14px !important;
    }
}
