/*
Theme Name: Flatsome Child
Template: flatsome
*/

/*************** GLOBAL STYLES ***************/

.button, button, 
input[type="button"], 
input[type="reset"], 
input[type="submit"] {
    border-radius: 5px;
}
input[type="email"], input[type="text"], textarea {
	border-radius: 5px;
}
/*************** WAPF (WooCommerce Advanced Product Fields) ***************/

div.wapf-swatch--text.wapf-checked {
    background: #f1f1f1;
}

.wapf-total.wapf-grand-total.price.amount {
    font-size: x-large;
}

div.wapf-field-container {
    padding: 0 1px 1px 1px;
}

.label-above .wapf-field-label {
    margin-top: 15px;
}

label {
    margin-bottom: 0.1em;
}

/*************** PAGE STRUCTURE ***************/
.wp-block-columns {
  margin-bottom: 0.75em;
}

.portfolio-page-wrapper #content.page-wrapper {
  padding: 0 !important; /* lub dowolna wartość np. 20px */
}
.portfolio-page-wrapper .page-title-inner {
  padding-top: 30px;
}
.page-title-inner {
    padding-top: 0px;
}
.category-page-row {
    padding-top: 5px;
}
.gallery, .row {
    padding-bottom: 10px;
}
.product_meta > span {
    border-top: 0px dotted #ddd;
    display: block;
    padding: 2px 0;
    float: right;
}

.page-title-inner {
    min-height: 5px;
    padding-top: 10px;
    position: relative;
}

.row-small > .col {
    padding: 0 10px 6px;
}

.woocommerce-result-count {
    display: inline-block;
    margin: 0 1em 0 auto;
    margin-top: 0px;
    margin-bottom: 0px;
    visibility: hidden;
}

.term-description {
    text-align: center;
    width: 65%;
    margin-top: 10px;
	margin-bottom: 15px;
    margin: 0 auto;
}

.is-xsmall {
    font-size: 0.8em;
}

.tab-panels {
    padding-top: 0.2em;
}
/* blockquote, dl, figure, form, ol, p, pre, ul {
    margin-bottom: .4em;
}
*/
.col, .columns, .gallery-item {
    padding: 0 15px 2px;
}

/*************** FORM ELEMENTS ***************/

.select-resize-ghost, 
.select2-container .select2-choice, 
.select2-container .select2-selection, 
input[type="date"], 
input[type="email"], 
input[type="number"], 
input[type="password"], 
input[type="search"], 
input[type="tel"], 
input[type="text"], 
input[type="url"], 
select, 
textarea {
    background-color: #fbfaf6;
}

/*************** WIDGETS ***************/

ul.product_list_widget li img {
    height: auto !important;
}
.widget-title {
    display: block;
    margin-bottom: 10px;
}

/*************** PRODUCT THUMBNAILS ***************/

.product-thumbnails .is-nav-selected a img, 
.product-thumbnails a:hover img {
    transform: none !important;
}

.product-thumbnails img {
    margin-bottom: 0 !important;
}

/*************** FOOTER ***************/

.footer-wrapper p {
    margin-bottom: 2px;    
    font-size: 95%;
}

/*************** HEADER NAVIGATION ***************/

.header-nav-main.nav-left {
    justify-content: center;
}

.nav-top-link {
    font-size: 14px !important;
    letter-spacing: 1px !important;
}
ul.header-nav.header-nav-main.nav.nav-right.nav-divided.nav-uppercase {
  gap: 10px;
}

ul.header-nav.header-nav-main.nav.nav-right.nav-divided.nav-uppercase > li {
  margin: 0;
}

/*************** WISHLIST STYLING (YITH) ***************/

.yith-wcwl-wishlistaddedbrowse:not(.wishlist-popup .yith-wcwl-wishlistaddedbrowse),
.yith-wcwl-add-button:not(.wishlist-popup .yith-wcwl-add-button),
.yith-wcwl-add-to-wishlist .yith-wcwl-add-button {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    width: 100%; 
}

.yith-wcwl-wishlistaddedbrowse a,
.yith-wcwl-add-button a {
    display: flex;
    align-items: center;
    /* gap: 5px; */
    text-align: right; 
    font-size: 0.8em; 
}

.yith-wcwl-wishlistaddedbrowse svg,
.yith-wcwl-add-button svg {
    width: 14px; 
    height: 14px;
    vertical-align: middle; 
}

.yith-wcwl-add-button:not(.wishlist-popup .yith-wcwl-add-button) {
    margin-block-end: 1em;
}
.yith-wcwl-icon-svg {
	margin-right: 5px;
}

/*************** PRODUCT i CHECKOUT ***************/

.woocommerce-product-gallery__image img {
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}
.posted_in {
    display: none !important;
}

.order-meta-list {
    list-style: none;
    padding: 0 15px;
    margin: 5px 0 0; 
}
.feedback {
    font-size: 0 !important; /* Ukrywa tekst */
}

.feedback svg {
    font-size: initial;
}

.order-meta-list li {
    font-size: 0.85em;
    /*color: #666; */
}
address {
    font-size: 80%; 
    /*font-style: normal; */
}
.woocommerce-thankyou-order-received {
    text-align: center;
}
.woocommerce-order {
    display: flex;
    justify-content: center; 
    align-items: center;
    flex-direction: column; 
    width: 100%;
}
.woocommerce-order .woocommerce-thankyou-order-details,
.woocommerce-order .woocommerce-bacs-bank-details {
    max-width: 420px; 
    margin: 0 auto; 
}
.checkout-inline-error-message {
	font-size: 70%;
}

/****************** WISHLIST PAGE ****************/

/* Kontener listy życzeń */

.wishlist-title-container {
    display: none !important;
}
.wishlist-items-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    padding: 10px;
    justify-content: center; 
}

/* Styl dla pojedynczego produktu */
.wishlist-items-wrapper tr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; 
    text-align: center;
    width: 100%;
    /*height: 300px;  Ustawienie minimalnej wysokości */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    /*background: #fff;*/
}

.wishlist-items-wrapper td {
	border-bottom: 0px;
	padding: 2px 2px 2px 1px;
}
.wishlist-items-wrapper td.product-thumbnail {
	max-width: 200px;
	width: 165px;
}

/* Miniaturka produktu */

.wishlist-items-wrapper .product-thumbnail {
    display: flex;
    justify-content: center;
    align-items: center;
    /* width: 100%; */
    height: 240px; /* Stała wysokość dla lepszego układu */
    overflow: hidden;
}

/* Upewnienie się, że obrazek pasuje */
.wishlist-items-wrapper .product-thumbnail img {
    width: 100% !important; 
    max-width: 200px !important; 
    height: auto !important; 
    max-height: 100% !important;
    object-fit: contain !important; 
    display: block;
}

/* Styl dla nazwy produktu */
.wishlist-items-wrapper .product-name a {
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
	text-align: center;
	display: block;
}

/* Styl dla ceny */
.wishlist-items-wrapper .product-price {
    font-size: 12px;
    color: #555;
    font-weight: bold;
    margin: 5px 0;
}

/* Sekcja akcji (przyciski) */
.wishlist-items-wrapper .product-add-to-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* Przycisk dodania do koszyka */
.wishlist-items-wrapper .product-add-to-cart .button {
    background-color: #555;
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
    text-align: center;
}

.wishlist-items-wrapper .product-add-to-cart .button:hover {
    background-color: #FF0000;
}

/* Przycisk usuwania */
.product-add-to-cart .remove_from_wishlist {
    background-color: #777;
    padding: 6px 10px;
    font-size: 12px;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.product-add-to-cart .remove_from_wishlist:hover {
    background-color: #ff0000;
}
.wishlist-items-wrapper .button {
    margin-bottom: 0px;
}
td.wishlist-empty {
    font-size: 18px;
}
/* Ukrycie nagłówków tabeli */
.wishlist_table thead {
    display: none;
}

/* Responsywność - 3 kolumny na tablecie */
@media (max-width: 1024px) {
    .wishlist-items-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsywność - 2 kolumny na telefonie */
@media (max-width: 600px) {
    .wishlist-items-wrapper {
        grid-template-columns: repeat(2, 1fr);
		gap: 10px;
		padding: 5px;
    }
.wishlist-items-wrapper td.product-thumbnail {
	max-width: 200px;
	width: 130px;
	}
.wishlist-items-wrapper .product-thumbnail {
    height: 200px; 
	}
}


/*************** MOBILE STYLES ***************/

@media (max-width: 48em) 	{
	.category-filter-row {
        padding: 0px 0;
    }
	.medium-flex-wrap .flex-col {
        padding-bottom: 1px;
        padding-top: 1px;
    }
    .term-description {
        text-align: center;
        width: 100%;    
        margin: 0 auto;
    }

    .footer-wrapper p {
        margin-bottom: 2px;        
    }

    .product-thumbnails .is-nav-selected a img, 
    .product-thumbnails a:hover img {
        transform: none !important;
    }

    .product-thumbnails img {
        margin-bottom: 0 !important;
    }
	.yith-wcwl-wishlistaddedbrowse:not(.wishlist-popup .yith-wcwl-wishlistaddedbrowse) {
		margin-block-end: 0.2em;
	}
}
