/* Copy Master: single responsive catalog grid; scoped to WooCommerce. */
body .woocommerce ul.products, body.woocommerce-page ul.products {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px!important;padding:20px 0!important;}
body .woocommerce ul.products::before,body .woocommerce ul.products::after,body.woocommerce-page ul.products::before,body.woocommerce-page ul.products::after {display:none!important;content:none!important;}
body .woocommerce ul.products.products li.product.product,body.woocommerce-page ul.products.products li.product.product {min-width:0!important;max-width:none!important;width:auto!important;margin:0!important;padding:20px!important;float:none!important;clear:none!important;box-sizing:border-box!important;overflow-wrap:anywhere;border:none!important;box-shadow:0 5px 25px rgba(0,0,0,.07)!important;background:#fff!important;border-radius:12px!important;transition:transform .3s ease,box-shadow .3s ease!important;}
@media(hover:hover) and (pointer:fine){body .woocommerce ul.products li.product:hover,body.woocommerce-page ul.products li.product:hover{transform:translateY(-5px)!important;box-shadow:0 15px 45px rgba(44,54,92,.15)!important;}}
body .woocommerce ul.products li.product img,body.woocommerce-page ul.products li.product img{max-width:100%;height:auto;}
@media(max-width:980px){body .woocommerce ul.products,body.woocommerce-page ul.products{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){body .woocommerce ul.products,body.woocommerce-page ul.products{grid-template-columns:minmax(0,1fr);}}
@media(prefers-reduced-motion:reduce){body .woocommerce ul.products li.product,body.woocommerce-page ul.products li.product{transition:none!important;}body .woocommerce ul.products li.product:hover,body.woocommerce-page ul.products li.product:hover{transform:none!important;}}
body .woocommerce ul.products li.product a:focus-visible,body.woocommerce-page ul.products li.product a:focus-visible{outline:2px solid #315ba5;outline-offset:3px;}
/* Usuwamy nakładkę Divi na obrazkach */
.woocommerce ul.products li.product .et_overlay { display: none !important; }

/* ==========================================================================
   2. IKONY POD PRODUKTAMI
   ========================================================================== */
.icon-product {
    list-style: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
    margin: 15px 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
}

.icon-product li {
    height: 40px !important;
    width: 40px !important;
    border-radius: 50% !important;
    background-color: #f5f5f5 !important;
    overflow: hidden !important;
    display: block !important;
}

body .icon-product .icon {
    display: block !important;
    text-indent: -9999px !important;
    height: 100% !important;
    width: 100% !important;
    background: var(--cm-product-sprite, none) center 1px no-repeat !important;
}

/* Pozycje ikon */
body .icon-product .icon.a3 { background-position: center -797px !important; }
body .icon-product .icon.a4 { background-position: center -708px !important; }
body .icon-product .icon.bandw { background-position: center -620px !important; }
body .icon-product .icon.color { background-position: center -531px !important; }
body .icon-product .icon.fax { background-position: center -264px !important; }
body .icon-product .icon.print { background-position: center -87px !important; }
body .icon-product .icon.scan { background-position: center -175px !important; }
body .icon-product .icon.wifi { background-position: center -353px !important; }
body .icon-product .icon.usb { background-position: center -442px !important; }
body .icon-product .icon.smart-panel { background-position: center -1330px !important; }
body .icon-product .icon.award { background-position: center -1244px !important; }

/* Zielona ikona PPM */
body .icon-product .icon.ppm {
    background: #3AB295 !important;
    text-indent: 0 !important;
    color: #222 !important;
    font-size: 14px !important;
    line-height: 40px !important;
    text-align: center !important;
    font-weight: bold !important;
}

/* ==========================================================================
   3. TYTUŁY I ELEMENTY KARTY
   ========================================================================== */
body .woocommerce ul.products .woocommerce-loop-product__title, body.woocommerce-page ul.products .woocommerce-loop-product__title {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin: 15px 0 !important;
    text-align: center !important;
    line-height: 1.3 !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
    overflow-wrap: anywhere;
    min-height: 2.6em;
}

body .woocommerce .btn-product, body.woocommerce-page .btn-product, body.single-product .btn-product {
    background: #FF9A00 !important;
    color: #222 !important;
    padding: 12px 15px !important;
    border-radius: 50px !important;
    text-align: center !important;
    display: block !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    margin-top: 10px !important;
}

/* ==========================================================================
   4. RÓŻNE (MENU, LINKI, MOBILE)
   ========================================================================== */
body .menu-tv { position: relative; padding-left: 50px; }
body .menu-tv:before { content: var(--cm-teamviewer-icon, none); position: absolute; left: 10px; top: -5px; }

@media (max-width: 980px) {
    body .menu-tv:before { display: none; }
    body .menu-tv { padding-left: 0; }
}




body .cm-product-icons .icon.ppm {font-size:10px!important;}

/* Divi sidebar separator is not needed on full-width catalog pages. */
body.woocommerce-page:not(.et_right_sidebar):not(.et_left_sidebar) #main-content>.container::before{display:none!important;}
