/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/


/* =========================================================
   HEADER MENU KATEGORII - desktop / laptop
   ========================================================= */

/* Laptopy i mniejsze desktopy: menu w 2 estetycznych rzędach */
@media (min-width: 1201px) and (max-width: 1600px) {

    #menu-main-navigation-fashion-2 {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        align-content: center !important;
        column-gap: 22px !important;
        row-gap: 4px !important;
        max-width: 820px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #menu-main-navigation-fashion-2 > li {
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
    }

    #menu-main-navigation-fashion-2 > li > a {
        height: 24px !important;
        min-height: 24px !important;
        line-height: 24px !important;
        padding: 0 !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }

}

/* Wąskie laptopy / szerokość przed mobile: bardziej kompaktowe menu */
@media (min-width: 1025px) and (max-width: 1200px) {

    #menu-main-navigation-fashion-2 {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        align-content: center !important;
        column-gap: 16px !important;
        row-gap: 2px !important;
        max-width: 620px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #menu-main-navigation-fashion-2 > li {
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
    }

    #menu-main-navigation-fashion-2 > li > a {
        height: 21px !important;
        min-height: 21px !important;
        line-height: 21px !important;
        padding: 0 !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }

}


/* =========================================================
   KATEGORIE PRODUKTÓW - zdjęcia produktów bez przycinania
   ========================================================= */

/* Pełne zdjęcia produktów w archiwach, lekko zmniejszone */
.archive.woocommerce .wd-product .product-element-top,
.archive.woocommerce .product-grid-item .product-element-top {
    aspect-ratio: 4 / 5 !important;
    overflow: hidden !important;
    background: #fff !important;
}

.archive.woocommerce .wd-product .product-image-link,
.archive.woocommerce .product-grid-item .product-image-link,
.archive.woocommerce .wd-product .wd-product-img-link,
.archive.woocommerce .product-grid-item .wd-product-img-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.archive.woocommerce .wd-product .product-image-link img,
.archive.woocommerce .product-grid-item .product-image-link img,
.archive.woocommerce .wd-product .wd-product-img-link img,
.archive.woocommerce .product-grid-item .wd-product-img-link img,
.archive.woocommerce .wd-product .hover-img img,
.archive.woocommerce .product-grid-item .hover-img img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
}

/* Ukrycie technicznych przełączników widoku siatki */
.archive.woocommerce .wd-products-shop-view,
.archive.woocommerce .wd-products-per-row,
.archive.woocommerce .wd-shop-view,
.archive.woocommerce .wd-view-switch,
.archive.woocommerce .wd-products-per-page {
    display: none !important;
}


/* =========================================================
   NEWSLETTER W STOPCE
   pole e-mail i przycisk w jednej linii
   ========================================================= */

.bb-newsletter-form {
    width: 100%;
    max-width: 520px;
}

.bb-newsletter-form p {
    display: flex !important;
    align-items: stretch !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.bb-newsletter-form br {
    display: none !important;
}

.bb-newsletter-form .wpcf7-form-control-wrap {
    flex: 1 1 auto !important;
    display: block !important;
}

.bb-newsletter-form input[type="email"] {
    width: 100% !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    border: 1px solid #ddd !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

.bb-newsletter-form input[type="submit"] {
    flex: 0 0 auto !important;
    height: 48px !important;
    margin: 0 0 0 8px !important;
    padding: 0 28px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #111 !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}

.bb-newsletter-form input[type="submit"]:hover {
    background: #333 !important;
}

.bb-newsletter-form .wpcf7-spinner {
    display: none !important;
}

@media (max-width: 767px) {
    .bb-newsletter-form p {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .bb-newsletter-form input[type="submit"] {
        width: 100% !important;
        margin-left: 0 !important;
    }
}



/* =========================================================
   KATEGORIE PRODUKTÓW - lekkie zmniejszenie zdjęć w siatce
   WoodMart: wrapper .wd-loop-prod-thumb
   ========================================================= */

.archive.woocommerce .wd-product .wd-loop-prod-thumb,
.archive.woocommerce .product-grid-item .wd-loop-prod-thumb {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
    background: #fff !important;

    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
}

.archive.woocommerce .wd-product .wd-loop-prod-thumb .wd-product-img-link,
.archive.woocommerce .product-grid-item .wd-loop-prod-thumb .wd-product-img-link,
.archive.woocommerce .wd-product .wd-loop-prod-thumb .wd-product-img-hover,
.archive.woocommerce .product-grid-item .wd-loop-prod-thumb .wd-product-img-hover {
    width: 100% !important;
    height: auto !important;

    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
}

.archive.woocommerce .wd-product .wd-loop-prod-thumb .wd-product-img-link img,
.archive.woocommerce .product-grid-item .wd-loop-prod-thumb .wd-product-img-link img,
.archive.woocommerce .wd-product .wd-loop-prod-thumb .wd-product-img-hover img,
.archive.woocommerce .product-grid-item .wd-loop-prod-thumb .wd-product-img-hover img {
    display: block !important;

    width: 86% !important;
    max-width: 86% !important;
    height: auto !important;
    max-height: none !important;

    object-fit: contain !important;
    object-position: center top !important;

    margin-left: auto !important;
    margin-right: auto !important;
}



/* Zmiana widocznego tekstu FILTER & SORT na FILTRUJ PRODUKTY */

.elementor-element-f7f3eeb .wd-action-text {
    font-size: 0 !important;
}

.elementor-element-f7f3eeb .wd-action-text::after {
    content: "FILTRUJ PRODUKTY";
    font-size: 13px !important;
}


/* Wielkie litery tylko dla tytułu kategorii produktu */

.archive.woocommerce .page-title,
.archive.woocommerce .entry-title,
.archive.woocommerce .wd-page-title .title {
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}






/* =========================================================
   PRZYCISK DODAJ DO KOSZYKA - wielkie litery i spokojniejszy wygląd
   ========================================================= */

.single-product .single_add_to_cart_button,
.single-product button.single_add_to_cart_button,
.single-product .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}




/* =========================================================
   KARTA PRODUKTU - zmiana "Size guide" na "Tabela rozmiarów"
   ========================================================= */

.single-product #tab-title-1698_custom .wd-accordion-title-text > span {
    display: none !important;
}

.single-product #tab-title-1698_custom .wd-accordion-title-text::after {
    content: "Tabela rozmiarów";
}



/* =========================================================
   KARTA PRODUKTU - tabela rozmiarów bez wewnętrznego scrolla
   ========================================================= */

.single-product #tab-1698_custom.wd-scroll,
.single-product #tab-1698_custom.wd-accordion-content {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

.single-product #tab-1698_custom .wd-scroll-content {
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
}

.single-product #tab-1698_custom .wd-scrollbar,
.single-product #tab-1698_custom .wd-scrollbar-track,
.single-product #tab-1698_custom .wd-scrollbar-thumb {
    display: none !important;
}