/* === Page chrome: hide everything except products === */
#module-prestawp-products #header,
#module-prestawp-products #footer {
    display: none;
}
#module-prestawp-products {
    height: auto;
    background: none;
}
#module-prestawp-products .container {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    max-width: none !important;
}
#module-prestawp-products #wrapper {
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}
#module-prestawp-products #content-wrapper {
    padding: 0 !important;
}
#module-prestawp-products .page-header,
#module-prestawp-products .page-footer,
#module-prestawp-products #notifications,
#module-prestawp-products .breadcrumb {
    display: none;
}

/* === Show only product block content (universal) === */
#module-prestawp-products * {
    visibility: hidden;
}
#module-prestawp-products .pswp_block,
#module-prestawp-products .pswp_block * {
    visibility: visible;
}
#module-prestawp-products .pswp_block .product-list-reviews {
    display: none;
}

/* === Hide non-product UI elements === */
#module-prestawp-products .pswp_block .up {
    display: none;
}
/* Quickview buttons - not useful in iframe context (covers classic + hummingbird + others) */
#module-prestawp-products .quickview,
#module-prestawp-products .quick-view,
#module-prestawp-products [data-link-action="quickview"] {
    display: none !important;
}
/* Classic theme: hover overlay on product description */
#module-prestawp-products .product-miniature .thumbnail-container:hover .product-description::after {
    display: none;
}
/* Classic theme: highlighted-informations when no variants */
#module-prestawp-products .highlighted-informations.no-variants {
    display: none;
}

/* === Product grid: minimal fallback, let themes handle layout === */
#module-prestawp-products .products,
#module-prestawp-products .product_list > .row {
    display: flex;
    flex-wrap: wrap;
}
#module-prestawp-products .products.row:after {
    display: none;
}
/* Product miniature cleanup */
#module-prestawp-products .product-miniature {
    border: none;
    outline: none;
}
#module-prestawp-products .product-miniature:hover {
    outline: none;
}
/* Hummingbird theme: card border/shadow cleanup */
#module-prestawp-products .product-miniature .card {
    border: none;
    box-shadow: none;
}
/* Classic theme: tablet line clear fix */
#module-prestawp-products ul.product_list.grid > li.first-item-of-tablet-line {
    clear: none;
}

/* === Mobile product limits (universal: targets direct children of .products) === */
@media (max-width: 767px) {
    #module-prestawp-products .pswp-mobile-limit-1 .products > :nth-child(n+2) { display: none; }
    #module-prestawp-products .pswp-mobile-limit-2 .products > :nth-child(n+3) { display: none; }
    #module-prestawp-products .pswp-mobile-limit-3 .products > :nth-child(n+4) { display: none; }
    #module-prestawp-products .pswp-mobile-limit-4 .products > :nth-child(n+5) { display: none; }
    #module-prestawp-products .pswp-mobile-limit-5 .products > :nth-child(n+6) { display: none; }
    #module-prestawp-products .pswp-mobile-limit-6 .products > :nth-child(n+7) { display: none; }
    #module-prestawp-products .pswp-mobile-limit-7 .products > :nth-child(n+8) { display: none; }
    #module-prestawp-products .pswp-mobile-limit-8 .products > :nth-child(n+9) { display: none; }
    #module-prestawp-products .pswp-mobile-limit-9 .products > :nth-child(n+10) { display: none; }
    #module-prestawp-products .pswp-mobile-limit-10 .products > :nth-child(n+11) { display: none; }
    #module-prestawp-products .pswp-mobile-limit-11 .products > :nth-child(n+12) { display: none; }
    #module-prestawp-products .pswp-mobile-limit-12 .products > :nth-child(n+13) { display: none; }
    #module-prestawp-products .pswp-mobile-limit-13 .products > :nth-child(n+14) { display: none; }
    #module-prestawp-products .pswp-mobile-limit-14 .products > :nth-child(n+15) { display: none; }
    #module-prestawp-products .pswp-mobile-limit-15 .products > :nth-child(n+16) { display: none; }
    #module-prestawp-products .pswp-mobile-limit-16 .products > :nth-child(n+17) { display: none; }
    #module-prestawp-products .pswp-mobile-limit-17 .products > :nth-child(n+18) { display: none; }
    #module-prestawp-products .pswp-mobile-limit-18 .products > :nth-child(n+19) { display: none; }
    #module-prestawp-products .pswp-mobile-limit-19 .products > :nth-child(n+20) { display: none; }
    #module-prestawp-products .pswp-mobile-limit-20 .products > :nth-child(n+21) { display: none; }
}
