/* ----------------------------------------
   Common: Hide layout elements in iframe
---------------------------------------- */
body.in-iframe header,
body.in-iframe footer,
body.in-iframe .sidebar-container,
body.in-iframe .woodmart-search-form {
    display: none !important;
}

/* ----------------------------------------
   Home page: Show only selected categories
---------------------------------------- */
body.in-iframe.iframe-home ul.products li.product-category {
    display: none !important;
}

body.in-iframe.iframe-home ul.products li.product_cat-fertigvorhaenge,
body.in-iframe.iframe-home ul.products li.product_cat-kissen,
body.in-iframe.iframe-home ul.products li.product_cat-meterware {
    display: block !important;
}

/* ----------------------------------------
   Home page: Restore layout elements hidden globally
---------------------------------------- */
body.in-iframe.iframe-home header,
body.in-iframe.iframe-home footer,
body.in-iframe.iframe-home .sidebar-container,
body.in-iframe.iframe-home .woodmart-search-form,
body.in-iframe.iframe-home .main-page-wrapper > .page-title,
body.in-iframe.iframe-home .main-page-wrapper > .woocommerce-breadcrumb,
body.in-iframe.iframe-home .filter-sidebar,
body.in-iframe.iframe-home .woocommerce-result-count,
body.in-iframe.iframe-home .woocommerce-ordering,
body.in-iframe.iframe-home .product .woodmart-hover-base,
body.in-iframe.iframe-home .shop-loop-head,
body.in-iframe.iframe-home .open-quick-view.quick-view-button,
body.in-iframe.iframe-home .wd-content-layout {
    display: revert !important;
    visibility: visible !important;
    height: auto !important;
    opacity: 1 !important;
}

body.in-iframe .price{
    display: none !important;
}

/* ----------------------------------------
   Category page: Hide title, breadcrumbs, filters, and grid/list selector
---------------------------------------- */
body.in-iframe.tax-product_cat .main-page-wrapper > .woocommerce-breadcrumb,
body.in-iframe.tax-product_cat .shop-loop-head {
    display: none !important;
}

/* Category page: Hide back arrow next to title */
body.in-iframe .wd-back-btn.wd-action-btn.wd-style-icon {
    display: none !important;
}

/* ----------------------------------------
   Product listing tiles: Hide magnifier icon
---------------------------------------- */
body.in-iframe .wd-content-layout{
    --wd-col-lg: 9 !important;
}

body.in-iframe.tax-product_cat .product .woodmart-hover-base,
body.in-iframe.tax-product_cat .open-quick-view.quick-view-button {
    display: none !important;
}

/* ----------------------------------------
   Single product page: Hide breadcrumbs and related products
---------------------------------------- */
body.in-iframe.single-product .woocommerce-breadcrumb,
body.in-iframe.single-product .wd-carousel-container.related-products,
body.in-iframe.single-product .related.products {
    display: none !important;
}

/* ----------------------------------------
   Category view: Adjust main content width
---------------------------------------- */
body.in-iframe.tax-product_cat .wd-content-layout {
    --wd-col-lg: 9 !important;
}
