/* MaszWWW 1.6.4 – kompaktowa góra produktu i własne podobne produkty */
body.mwbd-top-product{
    --mwbd-blue:#2464e8;
    --mwbd-blue-dark:#154fd1;
    --mwbd-text:#101d39;
    --mwbd-muted:#69758a;
    --mwbd-line:#e1e8f1;
    --mwbd-soft:#f7f9fc;
}
body.mwbd-top-product .site-main,
body.mwbd-top-product #main,
body.mwbd-top-product .main-content,
body.mwbd-top-product .container{min-width:0;}
.mwbd-php-product{width:100%;max-width:var(--mwbd-max,1440px);margin:0 auto;padding:18px 0 0;font-family:Poppins,Arial,sans-serif;color:var(--mwbd-text);}
.mwbd-php-product *{box-sizing:border-box;}
.mwbd-php-top{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(410px,.88fr);gap:clamp(32px,4vw,66px);align-items:start;width:100%;}

/* Galeria własna */
.mwbd-php-gallery-grid{display:grid;grid-template-columns:82px minmax(0,1fr);gap:18px;align-items:start;}
.mwbd-php-thumbs{display:flex;flex-direction:column;gap:12px;max-height:690px;overflow:auto;padding:2px;scrollbar-width:thin;}
.mwbd-php-thumb{display:flex;align-items:center;justify-content:center;width:78px;height:88px;padding:7px;border:1px solid var(--mwbd-line);border-radius:12px;background:#fff;cursor:pointer;transition:.18s ease;}
.mwbd-php-thumb:hover,.mwbd-php-thumb.is-active{border-color:var(--mwbd-blue);box-shadow:0 0 0 3px rgba(36,100,232,.10);}
.mwbd-php-thumb img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;}
.mwbd-php-main-image-wrap{position:relative;display:flex;align-items:center;justify-content:center;min-height:600px;padding:24px;border:1px solid var(--mwbd-line);border-radius:16px;background:#fff;box-shadow:0 12px 35px rgba(24,52,91,.06);overflow:hidden;}
.mwbd-php-main-link{display:flex;align-items:center;justify-content:center;width:100%;height:100%;}
.mwbd-php-main-image{display:block;width:100%;height:auto;max-height:650px;object-fit:contain;transition:opacity .16s ease;}
.mwbd-php-main-image.is-changing{opacity:.25;}
.mwbd-php-zoom{position:absolute;top:16px;right:16px;display:flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid var(--mwbd-line);border-radius:50%;background:#fff;color:var(--mwbd-text);box-shadow:0 5px 16px rgba(24,52,91,.08);pointer-events:none;}
.mwbd-php-zoom svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;}
.mwbd-php-gallery-benefits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:22px 0 0;padding:18px 20px;border:1px solid #edf1f6;border-radius:14px;background:linear-gradient(145deg,#fff,#f7f9fc);}
.mwbd-php-gallery-benefit{display:flex;gap:12px;align-items:flex-start;padding:0 17px;border-right:1px solid var(--mwbd-line);min-width:0;}
.mwbd-php-gallery-benefit:first-child{padding-left:0}.mwbd-php-gallery-benefit:last-child{padding-right:0;border-right:0}
.mwbd-php-gallery-benefit>span{display:flex;color:var(--mwbd-blue);flex:0 0 auto}.mwbd-php-gallery-benefit svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.8}
.mwbd-php-gallery-benefit div{display:flex;flex-direction:column;min-width:0}.mwbd-php-gallery-benefit strong{font-size:12px;line-height:1.25;color:var(--mwbd-text)}.mwbd-php-gallery-benefit small{margin-top:4px;font-size:10px;line-height:1.45;color:var(--mwbd-muted)}

/* Prawa kolumna */
.mwbd-php-summary{position:relative;min-width:0;padding-top:3px;}
.mwbd-php-summary-head{display:flex;align-items:center;justify-content:space-between;min-height:34px;margin-bottom:8px;}
.mwbd-php-badge{display:inline-flex;align-items:center;min-height:28px;padding:6px 13px;border-radius:7px;background:var(--mwbd-blue);color:#fff;font-size:10px;font-weight:800;line-height:1;text-transform:uppercase;letter-spacing:.03em;box-shadow:0 5px 15px rgba(36,100,232,.18);}
.mwbd-php-head-actions{display:flex;gap:8px;margin-left:auto;}
.mwbd-php-icon-button{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--mwbd-line);border-radius:50%;background:#fff;color:var(--mwbd-text);cursor:pointer;}
.mwbd-php-icon-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;}
.mwbd-php-title{margin:0 0 11px;color:var(--mwbd-text);font-size:clamp(27px,2.35vw,42px);font-weight:800;line-height:1.08;letter-spacing:-.036em;text-transform:uppercase;overflow-wrap:anywhere;}
.mwbd-php-rating{display:flex;align-items:center;gap:11px;margin:0 0 22px;padding:0 0 18px;border-bottom:1px solid var(--mwbd-line);color:#7a8697;font-size:11px;}
.mwbd-php-stars{display:flex;gap:2px}.mwbd-php-stars span{display:flex;color:#c1cad8}.mwbd-php-stars span.is-active{color:var(--mwbd-blue)}.mwbd-php-stars svg{width:17px;height:17px;fill:currentColor;stroke:currentColor;stroke-width:1.4}
.mwbd-php-price-stock{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 15px;}
.mwbd-php-price{color:var(--mwbd-text);font-size:clamp(31px,2.7vw,45px);font-weight:800;line-height:1.1;}.mwbd-php-price del{font-size:.55em;color:#8792a3}.mwbd-php-price ins{text-decoration:none;color:var(--mwbd-blue)}
.mwbd-php-stock{display:inline-flex;align-items:center;gap:7px;padding:9px 13px;border-radius:8px;background:#effaf1;color:#159343;font-size:12px;font-weight:800;line-height:1.2;white-space:nowrap;}.mwbd-php-stock.is-out{background:#fff0f0;color:#c72828}.mwbd-php-stock svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2}
.mwbd-php-features{display:grid;gap:9px;margin:0 0 20px;padding:0 0 20px;border-bottom:1px solid var(--mwbd-line);list-style:none;}
.mwbd-php-features li{display:flex;align-items:flex-start;gap:9px;color:#344054;font-size:12px;line-height:1.45}.mwbd-php-features svg{width:17px;height:17px;margin-top:1px;flex:0 0 auto;color:var(--mwbd-blue);fill:none;stroke:currentColor;stroke-width:2}
.mwbd-php-meta{display:grid;gap:10px;margin:0 0 18px;padding:0 0 18px;border-bottom:1px solid var(--mwbd-line);}
.mwbd-php-meta>div{display:grid;grid-template-columns:22px 76px minmax(0,1fr);gap:7px;align-items:start;font-size:11px;line-height:1.45}.mwbd-php-meta>div>span{display:flex;color:var(--mwbd-text)}.mwbd-php-meta svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}.mwbd-php-meta strong{color:var(--mwbd-text)}.mwbd-php-meta em{font-style:normal;color:#68758a;min-width:0}.mwbd-php-meta a{color:#68758a;text-decoration:none}.mwbd-php-meta a:hover{color:var(--mwbd-blue)}

/* Natywny WooCommerce koszyk w naszym układzie */
.mwbd-php-cart{margin:0 0 16px;}
.mwbd-php-cart form.cart,.mwbd-php-cart .woocommerce-variation-add-to-cart{display:flex;align-items:stretch;gap:12px;width:100%;margin:0!important;}
.mwbd-php-cart .variations_form{display:block!important;}.mwbd-php-cart table.variations{width:100%;margin:0 0 12px}.mwbd-php-cart table.variations th,.mwbd-php-cart table.variations td{padding:6px 0;font-size:12px}.mwbd-php-cart table.variations select{width:100%;min-height:44px;border:1px solid var(--mwbd-line);border-radius:8px;padding:0 12px;background:#fff}
.mwbd-php-cart .quantity{display:flex!important;align-items:stretch!important;justify-content:center!important;min-width:118px!important;width:118px!important;height:54px!important;border:1px solid var(--mwbd-line)!important;border-radius:999px!important;background:#fff!important;overflow:hidden!important;}
.mwbd-php-cart .quantity .qty{width:44px!important;height:52px!important;border:0!important;background:#fff!important;color:var(--mwbd-text)!important;font-size:17px!important;font-weight:800!important;text-align:center!important;}
.mwbd-php-cart .quantity .minus,.mwbd-php-cart .quantity .plus,.mwbd-php-cart .qty-minus,.mwbd-php-cart .qty-plus{display:flex!important;align-items:center!important;justify-content:center!important;width:36px!important;height:52px!important;border:0!important;background:#fff!important;color:#52617a!important;font-size:18px!important;}
.mwbd-php-cart button.single_add_to_cart_button,.mwbd-php-cart .single_add_to_cart_button,.mwbd-php-cart .button.single_add_to_cart_button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;flex:1 1 auto!important;width:auto!important;min-width:0!important;min-height:54px!important;height:54px!important;margin:0!important;padding:0 28px!important;border:0!important;border-radius:999px!important;background:linear-gradient(90deg,#2f69ff,#1e57e7)!important;color:#fff!important;font-family:Poppins,Arial,sans-serif!important;font-size:14px!important;font-weight:800!important;line-height:1!important;text-transform:uppercase!important;box-shadow:0 13px 27px rgba(36,91,229,.22)!important;}
.mwbd-php-cart button.single_add_to_cart_button:hover{background:linear-gradient(90deg,#275ff0,#174ed3)!important;transform:translateY(-1px)!important;}
.mwbd-php-cart .single_add_to_cart_button:before{font-size:17px!important;}
.mwbd-php-cart .woocommerce-variation-price{margin:8px 0 12px}.mwbd-php-cart .woocommerce-variation-availability{margin:0 0 10px}

.mwbd-php-trust{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0;padding:18px 0;border-top:1px solid var(--mwbd-line);border-bottom:1px solid var(--mwbd-line);}
.mwbd-php-trust-item{display:flex;align-items:center;gap:10px;padding:0 18px;border-right:1px solid var(--mwbd-line);min-width:0}.mwbd-php-trust-item:first-child{padding-left:0}.mwbd-php-trust-item:last-child{padding-right:0;border-right:0}.mwbd-php-trust-item>span{display:flex;color:var(--mwbd-blue);flex:0 0 auto}.mwbd-php-trust-item svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8}.mwbd-php-trust-item div{display:flex;flex-direction:column;min-width:0}.mwbd-php-trust-item strong{font-size:10px;line-height:1.2;color:var(--mwbd-text)}.mwbd-php-trust-item small{margin-top:3px;font-size:9px;line-height:1.3;color:#788497}

/* Opis bez zakładek */
.mwbd-php-description{margin-top:46px;}
.mwbd-php-upsells,.mwbd-php-related{margin-top:38px;}
.mwbd-php-upsells:empty,.mwbd-php-related:empty{display:none}
body.mwbd-top-product .product-share,body.mwbd-top-product .share-links,body.mwbd-top-product .yith-wcwl-add-to-wishlist,body.mwbd-top-product .compare,body.mwbd-top-product [class*="compare"]{display:none!important;}

@media(max-width:1100px){.mwbd-php-top{grid-template-columns:minmax(0,1fr) minmax(360px,.9fr);gap:32px}.mwbd-php-main-image-wrap{min-height:500px}.mwbd-php-title{font-size:30px}}
@media(max-width:900px){.mwbd-php-top{grid-template-columns:1fr}.mwbd-php-main-image-wrap{min-height:450px}.mwbd-php-gallery-benefits{margin-bottom:6px}}
@media(max-width:620px){.mwbd-php-product{padding-top:8px}.mwbd-php-gallery-grid{grid-template-columns:1fr}.mwbd-php-thumbs{order:2;flex-direction:row;max-height:none;overflow:auto}.mwbd-php-thumb{flex:0 0 68px;width:68px;height:72px}.mwbd-php-main-image-wrap{min-height:350px;padding:15px}.mwbd-php-gallery-benefits{grid-template-columns:1fr;gap:12px}.mwbd-php-gallery-benefit{padding:0 0 12px;border-right:0;border-bottom:1px solid var(--mwbd-line)}.mwbd-php-gallery-benefit:last-child{padding-bottom:0;border-bottom:0}.mwbd-php-title{font-size:25px}.mwbd-php-price-stock{align-items:flex-start;flex-direction:column}.mwbd-php-cart form.cart,.mwbd-php-cart .woocommerce-variation-add-to-cart{flex-wrap:wrap}.mwbd-php-cart .quantity{width:100%!important;min-width:100%!important}.mwbd-php-cart button.single_add_to_cart_button,.mwbd-php-cart .single_add_to_cart_button{width:100%!important;flex-basis:100%!important}.mwbd-php-trust{grid-template-columns:1fr;gap:12px}.mwbd-php-trust-item{padding:0;border-right:0}.mwbd-php-meta>div{grid-template-columns:22px 68px minmax(0,1fr)}}


/* 1.6.1 – bezpieczeństwo opisu i jednoznaczne wymuszenie własnego layoutu */
.mwbd-php-template-active{display:block!important;float:none!important;clear:both!important;}
.mwbd-php-template-active .mwbd-php-top{display:grid!important;}
.mwbd-php-description{display:block!important;visibility:visible!important;opacity:1!important;height:auto!important;overflow:visible!important;clear:both!important;width:100%!important;}
.mwbd-description-fallback{display:block!important;width:100%!important;padding:24px;border:1px solid var(--mwbd-line);border-radius:14px;background:#fff;}
.mwbd-description-fallback img{max-width:100%!important;height:auto!important;}
/* Te reguły działają tylko wewnątrz naszego PHP template. */
.mwbd-php-template-active .woocommerce-tabs,
.mwbd-php-template-active .wc-tabs-wrapper,
.mwbd-php-template-active ul.tabs.wc-tabs{display:none!important;}


/* 1.6.2 – naprawa galerii: przy jednym zdjęciu nie rezerwujemy kolumny miniaturek */
.mwbd-php-gallery-grid.is-single{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"main"!important;
    gap:0!important;
    width:100%!important;
}
.mwbd-php-gallery-grid.is-single .mwbd-php-main-image-wrap{
    grid-area:main!important;
    grid-column:1 / -1!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
}
.mwbd-php-gallery-grid.has-thumbs{
    display:grid!important;
    grid-template-columns:82px minmax(0,1fr)!important;
    grid-template-areas:"thumbs main"!important;
    gap:18px!important;
    width:100%!important;
}
.mwbd-php-gallery-grid.has-thumbs .mwbd-php-thumbs{grid-area:thumbs!important;grid-column:1!important;}
.mwbd-php-gallery-grid.has-thumbs .mwbd-php-main-image-wrap{grid-area:main!important;grid-column:2!important;min-width:0!important;width:100%!important;}
.mwbd-php-main-link{min-width:0!important;max-width:100%!important;}
.mwbd-php-main-image{visibility:visible!important;opacity:1!important;min-width:0!important;max-width:100%!important;}
@media(max-width:620px){
    .mwbd-php-gallery-grid.has-thumbs{grid-template-columns:1fr!important;grid-template-areas:"main" "thumbs"!important;gap:12px!important;}
    .mwbd-php-gallery-grid.has-thumbs .mwbd-php-main-image-wrap{grid-column:1!important;}
    .mwbd-php-gallery-grid.has-thumbs .mwbd-php-thumbs{grid-column:1!important;}
}


/* 1.6.3 – porządki w galerii i lepsze related */
.mwbd-php-gallery-benefits{display:none!important;}
.mwbd-php-related{margin-top:34px;}
.mwbd-php-related>h2,.mwbd-php-related .related>h2,.mwbd-php-related h2{
    margin:0 0 18px!important;
    color:var(--mwbd-text)!important;
    font-size:24px!important;
    line-height:1.15!important;
    font-weight:800!important;
    letter-spacing:-.02em;
    text-transform:none!important;
}
.mwbd-php-related .products,
.mwbd-php-template-active .related .products{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:18px!important;
    margin:0!important;
    padding:0!important;
    list-style:none!important;
}
.mwbd-php-related .products li.product,
.mwbd-php-template-active .related .products li.product{
    width:auto!important;
    float:none!important;
    margin:0!important;
    padding:14px!important;
    border:1px solid var(--mwbd-line)!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:0 8px 24px rgba(17,51,96,.04)!important;
    text-align:center!important;
}
.mwbd-php-related .products li.product .product-image,
.mwbd-php-related .products li.product .product-image-inner,
.mwbd-php-template-active .related .products li.product .product-image,
.mwbd-php-template-active .related .products li.product .product-image-inner{
    margin:0 0 12px!important;
}
.mwbd-php-related .products li.product img,
.mwbd-php-template-active .related .products li.product img{
    width:100%!important;
    max-width:100%!important;
    aspect-ratio:1/1!important;
    object-fit:contain!important;
    border-radius:12px!important;
    background:#fff!important;
}
.mwbd-php-related .products li.product .woocommerce-loop-product__title,
.mwbd-php-related .products li.product h2,
.mwbd-php-related .products li.product h3,
.mwbd-php-template-active .related .products li.product .woocommerce-loop-product__title,
.mwbd-php-template-active .related .products li.product h2,
.mwbd-php-template-active .related .products li.product h3{
    min-height:auto!important;
    margin:0 0 8px!important;
    color:var(--mwbd-text)!important;
    font-size:13px!important;
    line-height:1.4!important;
    font-weight:700!important;
    text-transform:none!important;
    display:-webkit-box!important;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.mwbd-php-related .products li.product .price,
.mwbd-php-template-active .related .products li.product .price{
    display:block!important;
    margin:0 0 10px!important;
    color:var(--mwbd-text)!important;
    font-size:22px!important;
    font-weight:800!important;
}
.mwbd-php-related .products li.product .star-rating,
.mwbd-php-template-active .related .products li.product .star-rating{margin:0 auto 8px!important;float:none!important;}
.mwbd-php-related .products li.product .button,
.mwbd-php-related .products li.product .add_to_cart_button,
.mwbd-php-template-active .related .products li.product .button,
.mwbd-php-template-active .related .products li.product .add_to_cart_button{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:40px!important;
    padding:0 18px!important;
    border-radius:999px!important;
    background:linear-gradient(90deg,#2f69ff,#1e57e7)!important;
    color:#fff!important;
    border:0!important;
    font-size:12px!important;
    font-weight:700!important;
    text-transform:uppercase!important;
}
.mwbd-php-related .products li.product .button:before,
.mwbd-php-template-active .related .products li.product .button:before{font-size:14px!important;}
@media(max-width:1100px){
    .mwbd-php-related .products,
    .mwbd-php-template-active .related .products{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(max-width:767px){
    .mwbd-php-related .products,
    .mwbd-php-template-active .related .products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;}
    .mwbd-php-related .products li.product,
    .mwbd-php-template-active .related .products li.product{padding:12px!important;border-radius:14px!important;}
    .mwbd-php-related .products li.product .price,
    .mwbd-php-template-active .related .products li.product .price{font-size:18px!important;}
}


/* 1.6.4 – mniejsza galeria, mniejszy tytuł i własne podobne produkty */
.mwbd-php-top{
    grid-template-columns:minmax(0,.88fr) minmax(460px,1.12fr)!important;
    gap:clamp(28px,3vw,48px)!important;
}
.mwbd-php-main-image-wrap{
    min-height:500px!important;
    padding:20px!important;
}
.mwbd-php-main-image{max-height:540px!important;}
.mwbd-php-title{
    max-width:720px!important;
    font-size:clamp(24px,2vw,34px)!important;
    line-height:1.1!important;
    letter-spacing:-.03em!important;
}

/* Stary slider Porto nie może wpływać na nową sekcję */
.mwbd-php-related,
.mwbd-php-upsells,
.mwbd-php-template-active .related.products,
.mwbd-php-template-active .upsells.products{display:none!important;}

.mwbd-related-custom{
    width:100%;
    margin:42px 0 0;
    padding:0;
}
.mwbd-related-custom__head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin:0 0 18px;
    padding:0 0 13px;
    border-bottom:1px solid var(--mwbd-line);
}
.mwbd-related-custom__head h2{
    margin:0!important;
    color:var(--mwbd-text)!important;
    font-size:24px!important;
    line-height:1.15!important;
    font-weight:800!important;
    letter-spacing:-.025em;
    text-transform:none!important;
}
.mwbd-related-custom__head span{
    color:var(--mwbd-muted);
    font-size:11px;
    line-height:1.4;
}
.mwbd-related-custom__grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
}
.mwbd-related-card{
    min-width:0;
    overflow:hidden;
    border:1px solid var(--mwbd-line);
    border-radius:15px;
    background:#fff;
    box-shadow:0 8px 24px rgba(17,51,96,.045);
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.mwbd-related-card:hover{
    transform:translateY(-3px);
    border-color:#cbd9eb;
    box-shadow:0 14px 32px rgba(17,51,96,.085);
}
.mwbd-related-card__image{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    aspect-ratio:1/1;
    padding:14px;
    overflow:hidden;
    border-bottom:1px solid #eef2f7;
    background:#fff;
}
.mwbd-related-card__image img{
    display:block;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    object-fit:contain!important;
    margin:0!important;
    border:0!important;
}
.mwbd-related-card__body{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    min-height:190px;
    padding:14px;
}
.mwbd-related-card__title{
    display:-webkit-box;
    min-height:38px;
    margin:0 0 8px;
    overflow:hidden;
    color:var(--mwbd-text)!important;
    font-size:13px;
    line-height:1.42;
    font-weight:700;
    text-decoration:none!important;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
}
.mwbd-related-card__title:hover{color:var(--mwbd-blue)!important;}
.mwbd-related-card__rating{
    min-height:16px;
    margin:0 0 7px;
}
.mwbd-related-card__rating .star-rating{
    float:none!important;
    margin:0!important;
    font-size:11px!important;
    color:var(--mwbd-blue)!important;
}
.mwbd-related-card__price{
    margin:0 0 12px;
    color:var(--mwbd-text);
    font-size:20px;
    line-height:1.2;
    font-weight:800;
}
.mwbd-related-card__price del{font-size:.7em;color:#8a95a7;}
.mwbd-related-card__price ins{text-decoration:none;color:var(--mwbd-blue);}
.mwbd-related-card__button{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    width:100%!important;
    min-height:40px!important;
    margin:auto 0 0!important;
    padding:9px 12px!important;
    border:0!important;
    border-radius:999px!important;
    background:linear-gradient(90deg,#2f69ff,#1e57e7)!important;
    color:#fff!important;
    font-family:Poppins,Arial,sans-serif!important;
    font-size:11px!important;
    line-height:1.2!important;
    font-weight:800!important;
    text-align:center!important;
    text-transform:uppercase!important;
    text-decoration:none!important;
    box-shadow:none!important;
}
.mwbd-related-card__button:hover{
    background:linear-gradient(90deg,#275ff0,#174ed3)!important;
    color:#fff!important;
}
.mwbd-related-card__button svg{
    width:15px;
    height:15px;
    flex:0 0 auto;
    fill:none;
    stroke:currentColor;
    stroke-width:1.9;
}

/* Bez compare w podobnych produktach i całej sekcji */
.mwbd-related-custom .compare,
.mwbd-related-custom [class*="compare"],
.mwbd-related-custom .add_to_compare,
.mwbd-related-custom .porto-compare{display:none!important;}

@media(max-width:1100px){
    .mwbd-php-top{grid-template-columns:minmax(0,.92fr) minmax(400px,1.08fr)!important;}
    .mwbd-php-main-image-wrap{min-height:440px!important;}
    .mwbd-related-custom__grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:900px){
    .mwbd-php-top{grid-template-columns:1fr!important;}
    .mwbd-php-main-image-wrap{min-height:420px!important;}
}
@media(max-width:700px){
    .mwbd-related-custom__head{align-items:flex-start;flex-direction:column;gap:5px;}
    .mwbd-related-custom__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
    .mwbd-related-card__body{min-height:175px;padding:12px;}
    .mwbd-related-card__title{font-size:12px;}
    .mwbd-related-card__price{font-size:18px;}
}
@media(max-width:440px){
    .mwbd-related-custom__grid{grid-template-columns:1fr;}
}


/* 1.6.5 – mniejsza cena i bardziej kompaktowy koszyk */
.mwbd-php-price-stock{
    gap:14px!important;
    margin:0 0 12px!important;
}
.mwbd-php-price{
    font-size:clamp(24px,2.15vw,34px)!important;
    line-height:1.05!important;
}
.mwbd-php-stock{
    padding:8px 11px!important;
    font-size:11px!important;
    border-radius:7px!important;
}
.mwbd-php-features{margin:0 0 16px!important;padding:0 0 16px!important;gap:8px!important;}
.mwbd-php-cart{margin:0 0 12px!important;}
.mwbd-php-cart form.cart,
.mwbd-php-cart .woocommerce-variation-add-to-cart{gap:10px!important;}
.mwbd-php-cart .quantity{
    min-width:106px!important;
    width:106px!important;
    height:48px!important;
}
.mwbd-php-cart .quantity .qty{
    width:40px!important;
    height:46px!important;
    font-size:15px!important;
}
.mwbd-php-cart .quantity .minus,
.mwbd-php-cart .quantity .plus,
.mwbd-php-cart .qty-minus,
.mwbd-php-cart .qty-plus{
    width:32px!important;
    height:46px!important;
    font-size:17px!important;
}
.mwbd-php-cart button.single_add_to_cart_button,
.mwbd-php-cart .single_add_to_cart_button,
.mwbd-php-cart .button.single_add_to_cart_button{
    min-height:48px!important;
    height:48px!important;
    padding:0 22px!important;
    font-size:13px!important;
    box-shadow:0 10px 22px rgba(36,91,229,.18)!important;
}
.mwbd-php-cart .single_add_to_cart_button:before{font-size:15px!important;}
.mwbd-php-trust{padding:14px 0!important;}
.mwbd-php-trust-item strong{font-size:9px!important;}
.mwbd-php-trust-item small{font-size:8px!important;}

/* Gdyby motyw Porto nadal dołączał własne related/upsells niżej, ukrywamy je twardo. */
body.mwbd-top-product .related.products,
body.mwbd-top-product .upsells.products,
body.mwbd-top-product .mfp-iframe-scaler + .related,
body.mwbd-top-product .woocommerce .related,
body.mwbd-top-product .woocommerce .upsells,
body.mwbd-top-product .products.related,
body.mwbd-top-product .products.upsells{display:none!important;}
body.mwbd-top-product .owl-dots,
body.mwbd-top-product .owl-nav{display:none!important;}

@media(max-width:620px){
    .mwbd-php-price{font-size:30px!important;}
    .mwbd-php-cart .quantity{width:100%!important;min-width:100%!important;height:46px!important;}
    .mwbd-php-cart button.single_add_to_cart_button,
    .mwbd-php-cart .single_add_to_cart_button{height:46px!important;min-height:46px!important;}
}


/* 1.6.6 – mniejszy przycisk dodaj do koszyka i bez linii */
.mwbd-php-meta{
    margin:0 0 12px!important;
    padding:0 0 12px!important;
    border-bottom:0!important;
}
.mwbd-php-cart{
    margin:0 0 8px!important;
    padding:0!important;
    border-top:0!important;
    border-bottom:0!important;
}
.mwbd-php-cart form.cart,
.mwbd-php-cart .woocommerce-variation-add-to-cart{
    gap:8px!important;
}
.mwbd-php-cart .quantity{
    min-width:96px!important;
    width:96px!important;
    height:42px!important;
}
.mwbd-php-cart .quantity .qty{
    width:34px!important;
    height:40px!important;
    font-size:14px!important;
}
.mwbd-php-cart .quantity .minus,
.mwbd-php-cart .quantity .plus,
.mwbd-php-cart .qty-minus,
.mwbd-php-cart .qty-plus{
    width:30px!important;
    height:40px!important;
    font-size:16px!important;
}
.mwbd-php-cart button.single_add_to_cart_button,
.mwbd-php-cart .single_add_to_cart_button,
.mwbd-php-cart .button.single_add_to_cart_button{
    flex:0 1 420px!important;
    width:auto!important;
    max-width:420px!important;
    min-width:280px!important;
    min-height:42px!important;
    height:42px!important;
    padding:0 20px!important;
    border-radius:999px!important;
    font-size:12px!important;
    letter-spacing:0!important;
    box-shadow:0 8px 18px rgba(36,91,229,.15)!important;
}
.mwbd-php-cart .single_add_to_cart_button:before{font-size:14px!important;}
.mwbd-php-trust{
    margin-top:2px!important;
    padding:10px 0 0!important;
    border-top:0!important;
    border-bottom:0!important;
}
.mwbd-php-trust-item{
    padding:0 14px!important;
}
@media(max-width:620px){
    .mwbd-php-cart .quantity{
        width:100%!important;
        min-width:100%!important;
        height:42px!important;
    }
    .mwbd-php-cart button.single_add_to_cart_button,
    .mwbd-php-cart .single_add_to_cart_button{
        width:100%!important;
        max-width:none!important;
        min-width:0!important;
        height:42px!important;
        min-height:42px!important;
    }
}


/* 1.6.8 – usuń sekcję zaufania pod dodaj do koszyka */
.mwbd-php-trust{display:none!important;}
