/**
* Theme Name: Autozpro Child
* Description: This is a child theme of Autozpro, generated by Merlin WP.
* Author: <a href="https://themelexus.com/">ThemeLexus</a>
* Template: autozpro
* Version: 1.0.17
*/

.autozpro-canvas-filter .autozpro-canvas-filter-wrap .widget_layered_nav ul li::before{
    margin-top: 5px;
}

#secondary .widget{
    padding: 0 !important;
}

.fixed-tabs{
    position: fixed !important;
    top: 0;
    background: #fff;
    width: 57%;
    z-index: 10;
}

.onsale{
    top: 35px;
    left: 1px;
    border-radius: 3px;
}

.desktop-break{
    display: none;
}

ul.products-list li.product-list .quantity {
    height: 41px;
}

/*Karta produtku*/
.single-product div.product p.price {
    padding: 0 ;
}

div.content-single-wrapper > div.woocommerce-product-gallery.woocommerce-product-gallery--with-images.woocommerce-product-gallery--columns-3.images.woocommerce-product-gallery-horizontal > a > span{
    display: none;
}

.woobt-wrap{
    margin-top: 10px;
    padding: 0;
}

.payment-info-banner{
    margin: 10px auto;
}

.order-phone{
    color: #4158F2;
    font-weight: 600;
}

.order-phone:hover{
    text-decoration: underline;
}

.single-product div.product .entry-cart{
    padding: 20px;
}

.single-product div.product .inventory_status{
    padding: 2px 8px;
    color: white;
    background-color: #82D175;
}

.description-link{
    text-decoration: underline;
    color: #0d4de4;
    font-weight: bold;
    transition: color .5s;
}

.description-link:hover{
    cursor: pointer;
    color: black;
    text-decoration: none;
}

#page > section > div > div > div > span.autozpro-sticky-add-to-cart__content-price > p {
    margin: 0 10px;
}

.delivery-info, .buy-today-span{
    font-weight: bold;
}

.buy-today-span{
    color: #1bb828;
}

.single-product div.product form.cart .quantity_wrap + .single_add_to_cart_button{
    width: 95%;
}

.single-product .entry-summary-top {
    justify-content: start;
    gap: 5px;
}

.autozpro-product-pagination-wrap{
    flex-grow: 3;
}

.autozpro-product-pagination{
    justify-content: end;
}

/*Informacje dodatkowe*/
tr{
    border-bottom: 1px solid var(--border);
    height: 35px;
    line-height: 35px;
}

table.shop_attributes tr:nth-of-type(odd){
    background-color: white;
}

table.shop_attributes th{
    width: 50%;
}

.woocommerce-product-attributes-item__label{
    font-weight: bold;
}


#colophon > div > div > div.elementor-section.elementor-top-section.elementor-element.elementor-element-4ac3964.elementor-section-boxed.elementor-section-height-default.elementor-section-height-default > div > div.elementor-column.elementor-col-50.elementor-top-column.elementor-element.elementor-element-5de75f9.elementor-hidden-mobile_extra.elementor-hidden-mobile > div > div.elementor-element.elementor-element-7ead11d.elementor-widget.elementor-widget-heading{
    margin: 0;
}

/*Wielowariantowość*/

 .variant-links h3 {
    font-size: 15px;
    margin-bottom: 10px;
    color: #333;
}

.variant-link {
    display: inline-block;
    margin: 5px 5px 0 0;
    padding: 5px 10px;
    background-color: #f7f7f7;
    /* color: #0d4de4; */
    color: black;
    font-weight: bold;
    border: 1px solid #ddd;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.variant-link:hover {
    background-color: #ddd;
    color: #000;
} 

.variant-links .variant-link.highlight {
    color: #0d4de4;
    font-weight: bold;
    border:2px solid #0d4de4;
}

/*Zakładka Specyfikacji*/

#tab-specification_tab table {
    margin-bottom: 30px;
}

#tab-specification_tab table>:not(caption)>*>* {
    padding: .5rem .5rem;
    background-color: var(--bs-table-bg);
    border-bottom-width: 1px;
    box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
}

#tab-specification_tab table tr {
    border-bottom: 1px solid #E6E8EB;
}

#tab-specification_tab table td {
    border: none;
    padding-right: 0;
    max-width: 50%;
    width: 50%;
	font-size: 0.875rem;
    word-break:normal;
    vertical-align: middle;
}

#tab-specification_tab h2 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}


/*Wyglad kategori*/

.autozpro-sorting{
    justify-content: space-between;
}
.autozpro-woocommerce-title{
    display: none;
}

#content > div > div.elementor.elementor-6158{
    display: none;
}

.seo-description{
    margin-top: 3rem;
}

.payment-info{
    margin: 0;
    color: #d72232;
}

ul.products-list li.product-list .short-description{
    margin-bottom: 0;
}

hr{
    border-bottom: 1px solid #c3c3c3;
}

.product-caption-bottom{
    margin-top: 10px;
    justify-content: center;
}

ul.products-list li.product-list .price, .product-caption-bottom{
    margin-bottom: 0;
}

@media only screen and (min-width: 768px){
    #tab-specification_tab, #tab-description, #tab-reviews{
        display: block !important;
    }
    
    /* #tab-specification_tab{
        padding-top: 10px;
    } */
} 

@media (max-width: 568px) {
    .widget_layered_nav ul li a:before{
	display:none;    
    }

    .categry-delivery-info{
        width: 100%;
        order: 1;
        text-align: center;
    }
    .group-action{
        order: 2;
    }
    li.product-list div.product-caption > div.short-description{
        display: none;
    }
}

@media (min-width: 568px) {
    ul.products-list li.product-list .product-image {
        margin: 0 30px 0 0;
        max-width: 300px;
    }
}
@media (min-width: 1170px) {

    ul.products-list:not(.columns-2) li.product-list .product-caption {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
        grid-template-rows: repeat(6, 1fr);
        grid-column-gap: 25px;
    }
    li.product-list div.product-caption > .posted-in{
        grid-row-start: 2;
        grid-row-end: 3;    
    }
    li.product-list div.product-caption > .count-review{
        grid-row-start: 3;
        grid-row-end: 4; 
    }

    li.product-list div.product-caption > div.short-description{
        grid-row-start: 4;
        grid-row-end: 7;
    }
    ul.products-list:not(.columns-2) li.product-list .product-caption-bottom{
        grid-row-end: 9;
    }

    li.product-list div.product-caption > div.short-description p, ul:nth-of-type(2) {
        display: none;
    }

    ul.products-list:not(.columns-2) li.product-list .product-caption-bottom a[class*=product_type_] {
        margin-right: 0;
        width: 250px;
        text-align: center;
    }
    ul.products-list:not(.columns-2) li.product-list .woocommerce-loop-product__title{
        max-width: 100% !important;
    }

    div.product-caption-bottom > a.order-phone{
        text-align: center;
    }
    .desktop-break{
        display: block;
    }
    .product-caption-bottom{
        margin-top: 0px;
        justify-content: center;
    }
    ul.products-list:not(.columns-2) li.product-list .product-caption-bottom:before{
        height: 300px;
    }
    ul.products-list:not(.columns-2) li.product-list .price{
        font-size: 30px;
    }

    ul.products-list li.product-list .product-caption-bottom > .payment-info{
        margin-bottom: 0;
    }
}


/* --- */
@media (min-width: 786px) {

    .woocommerce-tab-content {
        position: relative;
    }
.woocommerce-tab-content .description-content {
    max-height: 150px; 
    overflow: hidden; 
    transition: max-height 0.3s ease; 
    margin-bottom: 25px;
}

.woocommerce-tab-content .description-content::after{
    content: ''; 
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px; 
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none; 
}

.woocommerce-tab-content .description-content.expanded {
    max-height: none; 
}

.woocommerce-tab-content .description-content.expanded::after {
    opacity: 0; 
    pointer-events: none; 
}

.toggle-description {
    color: var(--e-global-color-primary);
    border: 2px solid var(--e-global-color-primary);
    padding: 13px 16px 13px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    font-weight: 800;
    border-radius: 3px;
    text-transform: none;
    background-color: #fff;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.toggle-description:hover {
    background-color: var(--e-global-color-primary);
    color: white;
}

}

@media (max-width: 786px) {
    .toggle-description{
        display: none;
    }
}

/* MENU */

.vertical-navigation .vertical-menu{
    padding-bottom: 0;
}


/* testy  */

.custom-label {
    display: inline-block;
    background-color: #ff9800; /* Pomarańczowy kolor */
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 10;
}

.custom-labels-container{
    position: absolute;
}

.product-caption h3.woocommerce-loop-product__title:nth-of-type(2) {
    display: none !important;
}

.label-1 { background-color: var(--secondary); } 
.label-2 { background-color: #FF7A00; } 
.label-3 { background-color: var(--e-global-color-highlight); }


.woocommerce-product-details__short-description > ul > li > strong, .short-description > ul > li > strong{
    border-bottom: 1px dashed #555;
}

.iworks-omnibus{
    display: none;
}

.made-in-poland-label img{
    max-width: 82px;
    position: absolute;
    top: -25px;
    left: -20px;
    rotate: -15deg;
    z-index: 10;
}



ul.products-list li.product-list .woocommerce-loop-product__title{
    display: unset ;
}

.woocommerce-product-gallery__image img {
    opacity: 1 !important;
    transition: none !important;
}

.woocommerce-product-gallery__image:hover img {
    opacity: 1 !important;
    filter: none !important;
}


/* test mini karty */


.side-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 350px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    z-index: 99999;
    overflow-y: auto;
}
.side-panel-content-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid;
    border-bottom-color: var(--border);
}

.side-panel-content-inner, .side-panel-content-header{
    padding: 15px;
}

.side-panel-content-header h2{
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    color: var(--accent);
}

.side-panel.active {
    right: 0;
}


.shipping-info-button {
    display: block;
    padding: 0 !important;
    width: 100%;
    color: #fff;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
}


.side-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0s ease;
    z-index: 9998;
}

#shipping-panel.active + .side-panel-overlay {
    visibility: visible;
    opacity: 1;
}

#open-shipping-panel::before {
    display: none;
    content: none;
}

.side-panel-content-header .close-cart-side{
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
    font-size: 13px;
    padding-right: 18px;
    position: relative;
}

.side-panel-content-header .close-cart-side:before, .side-panel-content-header .close-cart-side:after {
    content: " ";
    position: absolute;
    top: 50%;
    display: inline-block;
    margin-top: -1px;
    width: 12px;
    height: 2px;
    background-color: var(--accent);
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out, width 0.2s ease-in-out;
    right: 0;
    transform: rotate(-45deg);
}

.side-panel-content-header .close-cart-side:before {
    transform: rotate(45deg);
}

.side-panel-content-header .close-cart-side:hover:before, .side-panel-content-header .close-cart-side:hover:after{
    transform: rotate(0);
}

.main-navigation .sub-menu{
    padding: 0;
}

.woocommerce-Tabs-panel {
    display: block !important;  /* Wszystkie zakładki są widoczne */
    opacity: 1 !important;
    visibility: visible !important;
}




@media (max-width: 568px) {
    .woocommerce-breadcrumb {
        display: flex;
        flex-wrap: nowrap;
        overflow: hidden;
        white-space: nowrap;
        position: relative;
        max-width: 100%;
        align-items: center;
    }

    .woocommerce-breadcrumb a:nth-child(3)::after {
        content: " ...";
        color: inherit;
    }

    .woocommerce-breadcrumb a:nth-child(n+4),
    .woocommerce-breadcrumb i:nth-child(n+4),
    .woocommerce-breadcrumb span:nth-child(n+4) {
        display: none !important;
    }

    .wc-tabs-wrapper .wc-tabs li {
        pointer-events: none; /* Blokuje kliknięcia w zakładki */
        cursor: default; /* Zmienia wygląd kursora */
    }
    
    .wc-tabs-wrapper .wc-tabs li a {
        color: #000 !important; /* Upewnia się, że linki są czytelne */
    }
    
    .resp-accordion {
        pointer-events: none; /* Blokuje zamykanie zakładek */
        cursor: default;
    }
    
    .wc-tab.active {
        display: block !important;
    }
    
    .resp-accordion{
        border-top: 2px solid var(--primary) !important;
        border-bottom: 1px solid var(--border) !important;
    }
    
    h2.resp-accordion:before{
        display: none !important;
    }
}

