/*
 Theme Name:   Storefront Child
 Author:       Sergey Ganzha
 Author URI:
 Template:  storefront
*/

/* Відображення кнопок з варіаціями */
.wc-loop-attrs {
    display: flex;
    flex-wrap: wrap; 
    gap: 5px;
}

.wc-loop-attrs .attr-btn {
    flex: 1 1 auto;   
    min-width: 80px;  
    max-width: 100%; 
}

.wc-loop-attrs .attr-btn:only-child {
    flex: 1 1 100%;
}

.cart-contents .woocommerce-Price-amount {
    display: none !important;
}


.price {
    margin:0!important;
}

ul.products li.product {
    display: flex;
    flex-direction: column;
    height: 100%;
}

ul.products li.product a.woocommerce-LoopProduct-link {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.bottom-block {
    margin-top: auto; 
    display: flex;
    flex-direction: column;
    gap: 5px; 
}

.onsale {
  margin: auto;
  text-align: center;
  white-space: nowrap;
}

.woocommerce-loop-product__title {
    margin-top: 0!important;
}

a {
    outline: none !important;
}

.description_tab, .reviews_tab {
    text-align: center !important;
}

ul.products li.product {
    clear: none !important;
}

/*Меню*/
@media(max-width: 995px) {
    ul.menu li a {
        font-size: 14px!important;
    }
}

/*Вимикаємо підказки*/
[data-wvstooltip]:before, [data-wvstooltip]:after {
  content: none !important;
}


/* button wishlist */

ul.products li.product .tinvwl_add_to_wishlist_button {
    margin-top: 0 !important;
    margin-bottom: 10px;
    /* border: 2px solid; */
    color: black;
    padding: .6180469716em 1.41575em;
    width: 100%;
}

/* button add to cart */
.add_to_cart_button,
.product_type_simple {
    width: 100%;
}

.tinvwl_add_to_wishlist-text {
    color: #000;
}

ul.products li.product .tinvwl_add_to_wishlist_button {
    border:none !important;
}

/* font */

body {
    /* font-family: 'Open Sans', sans-serif; */
    font-size: 16px;
    font-display: swap !important;

}

/* header */

.menu-item a {
    color: #000 !important;

}

.menu-item a:active,
.menu-item a:hover {
    color: #ff8a43 !important;
    font-weight: bold;
}

.woocommerce-active .site-header .site-header-cart {
    width: 1.5% !important; /*перебили стильродительского элемента*/
    padding: 0 !important;/*перебили стильродительского элемента*/
    margin: 0 !important;/*перебили стильродительского элемента*/
}

@media (max-width:956px) {

    .main-navigation ul.menu>li>a, .main-navigation ul.nav-menu>li>a {
        font-size: 13px!important;
        padding:10px!important;
    }
}

@media (max-width:845px) {
    .main-navigation ul.menu>li>a, .main-navigation ul.nav-menu>li>a{
        font-size: 12px!important;
        padding:8px!important;
    }
}


.cart-contents {
    position: relative; 
    display: inline-block; 
}

/* Зелений для "В наявності" */
.product-stock-status.in-stock {
    color: #3fa008!important; /* яскраво-зелений */
    font-weight: bold;
}

/* Червоний для "Немає в наявності" */
.product-stock-status.out-of-stock {
    color: #dc3545 !important;
    font-weight: bold;
}

/*Відображення варіативних товарів*/



.wc-loop-attrs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.attr-btn {
    background-color: #eeee22;
    color: #000;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;

    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    padding: 10px 16px !important;
    transition: none !important; 
}


.attr-btn:focus,
.attr-btn:active,
.attr-btn.active {
    font-size: 14px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    transform: none !important;
    outline: none !important;
}

.wc-loop-attrs .attr-btn:hover {
    border: 1px solid #000;
}


/* Стилі для лічильника товарів в кошику */
.cart-contents .count {
    position: absolute;
    top: 10px; 
    right: -10px; 
    background-color: #ff8a43; 
    color: #ffffff;
    opacity: 100% !important;
    font-size: 12px!important; 
    font-weight: bold!important;
    border-radius: 50%;
    padding: 2px 6px; 
    line-height: 1; 
    min-width: 20px; 
    text-align: center; 
    z-index: 10; 
}

.wishlist_products_counter {
    position: relative; 
    display: inline-block;
}


/*Відображення рекомендованих товарів горизонтально*/

.recommended-products-wrapper {
	margin-top: 30px;
    margin-bottom: 30px;
}

.recommended-products-wrapper ul.products::before {
	content: none !important;
	display: none !important;
}


.recommended-products ul.products{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.recommended-products ul.products li.product {
    width: 80%!important;
}


@media (max-width: 768px) {
	.recommended-products ul.products{
		display: flex;
        flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		gap: 16px;
		padding-bottom: 10px;

	}

	.recommended-products ul.products li.product{
		/* width: 80%!important; */
		scroll-snap-align: start;
		flex-shrink: 0;
	}

  
}

/* Стилі для лічильника товарів в списку бажань*/
.wishlist_products_counter_number {
    position: absolute;
    top: -16px;  
    right: -10px; 
    background-color: #333; 
    color: white;
    border-radius: 50%;  
    padding: 2px 6px;  
    font-size: 12px; 
    font-weight: bold; 
    min-width: 20px;  
    text-align: center; 
    line-height: 1; 
}

/*Картка товару*/

.woocommerce-tabs ul.tabs li.active::after {
    right: 15px!important;
}

li.additional_information_tab {
    text-align: center!important;
}

/*Відступ в повідомленні (картка товару)*/

.button.wc-forward {
    margin-top: 15px;
    margin-left: 0!important;
}

@media (max-width:476px) {
    .button.wc-forward {
        float:left!important;
    }
}

/* Сторінка чекаута */
.woocommerce-input-wrapper textarea {
    text-align: center;
}

.woocommerce-terms-and-conditions {
    overflow: scroll;
}
@media (max-width:768px) {
    .order-total th, .shop_table tr th.product-name {
        display:none!important;
    }
}
/* .site-header-cart .widget_shopping_cart {

    width: 170%;

} */

/*Кнопка наверх*/
@media (max-width:768px) {
    .dashicons-arrow-up-alt2 {
    bottom: 80px!important;
}
}

#menu-item-2147480007 {
    float: right;
    margin-right: -63px;
}

/* .site-branding .site-title a {
    font-weight: 700;
    font-size: 20px;
} */

.tinv-wishlist .tinvwl_add_to_wishlist_button.tinvwl-icon-heart::before,
.woocommerce ul.products li.product a.tinvwl-button.tinvwl_add_to_wishlist_button.tinvwl-icon-heart::before,
.woocommerce-page ul.products li.product a.tinvwl-button.tinvwl-icon-heart.tinvwl_add_to_wishlist_button::before,
a.wishlist_products_counter.top_wishlist-heart::before,
span.wishlist_products_counter.top_wishlist-heart::before,
a.sidr-class-wishlist_products_counter.sidr-class-top_wishlist-heart::before {

    font-size: 26px;
    margin-right: 0;
}

.wishlist_products_counter_number {
    position: absolute;
}

.main-navigation ul li a,
.site-title a,
ul.menu li a,
.site-branding h1 a,
button.menu-toggle,
button.menu-toggle:hover,
.handheld-navigation .dropdown-toggle {
    color: black;
}

.site-header-cart .cart-contents::after {
    color: #fe9408;
}




/* menu categories */

.product-categories li {
    padding: 10px 0;
}

.product-categories li a {
    text-decoration: none !important;
    font-weight: normal !important;
    font-size: 16px !important;

}

.product-categories li a:active,
.product-categories li a:hover {
    color: #fe9408;
    font-weight: bold !important;
}

.widget .widget-title,
.widget .widgettitle {

    color: #fe9408;
    font-weight: bold;

}



/* .widget_product_categories ul li::marker {

    content: "😍" !important;
    font-size: 20px;
}

li.cat-item:nth-child(1)::marker {
    content: "🔥" !important;
    font-size: 25px !important;

}


li.cat-item:nth-child(1)>a:nth-child(1) {
    font-weight: bold !important;

} */

/* .widget_product_categories ul li::before {
    -webkit-font-smoothing: none;
    -moz-osx-font-smoothing: none;
    font-style: none;
    font-variant: none;
    font-weight: none;
    line-height: none;
    font-family: "none";
    font-weight: none;
    line-height: none;
    content: "";
} */

/*  */

#block-25 {
    margin: 10px 0 !important;
}

#block-25 .wp-block-heading {
    font-size: 18px;
    font-weight: bold;
    background-color: #eeee22;
    padding: 10px 5px;
}

/* basic coll */

.col-full {
    max-width: 80% !important;
}

/* table */

/* table.shop_table.woocommerce-checkout-review-order-table thead tr th.product-name
th.product-name {
    width: 60%;

} */

table.additional_info tbody tr th {

    width: 50%;
}

 
@media only screen and (max-width : 768px) {
/*  .mobile-menu .cart-contents {
        display: none !important;
    } */
    ul.product-cats li img {
        margin: 0 auto;
        max-width: 100px !important;
    }

    ul.product-cats li {
        margin: 0 !important;

    }

    ul.product-cats li p {
        min-width: 100px;
        width: 150px;
    }

    ul.product-cats {
        margin: 0;

    }



    table.additional_info tbody th {
        display: block !important;
        width: 100% !important;
    }

    table.additional_info tbody td {
        text-align: left !important;
    }


    /* lang */

    .lang-item {
        display: inline-block;
        margin: 2rem 0 2rem 0.5rem;
    }


    #menu-item-7452 {
        display: inline-block;
        margin: 1.5rem 0;
    }
    #menu-item-7452 a {
        font-weight: bold;
    }

	

}
@media (max-width:767px) {
   /* header */

    .custom-header-top ,
    .header-icons{
        display: none !important;
    }

    .site-header-cart {
		display: none;
	}

}


table.additional_info tbody tr td {
    background-color: #f8f8f8 !important;
}

/* .product-remove,
.product-thumbnail,
.product-name,
.product-price,
.product-quantity,
.product-subtotal {
    width: auto !important;
} */


/* checkout */



.woocommerce-shipping-fields {
    display: none;
}

/* thank you */

div.woocommerce-column:nth-child(2) {
    display: none;
}

/* title at home page */

.entry-header .entry-title {
    display: none;
}

/* footer */

a.ast-builder-social-element span svg {
    width: 60px;
    padding: 10px;
}

/* product */

.share_links {
    list-style: none;
    display: flex;
}

.share_links li {
    padding: 0 10px;
}

.block_share {
    display: flex;
    align-items: center;
}

p+h2,
p+header h2,
p+h3,
p+h4,
ul+h2,
ul+header h2,
ul+h3,
ul+h4,
ol+h2,
ol+header h2,
ol+h3,
ol+h4,
table+h2,
table+header h2,
table+h3,
table+h4,
blockquote+h2,
blockquote+header h2,
blockquote+h3,
blockquote+h4,
form+h2,
form+header h2,
form+h3,
form+h4 {
    margin-top: 1em !important;
}



/* link */

.active {
    font-size: 18px !important;
    font-weight: bold !important;
    background-color: #f2f24cc4 !important;
}

.lang-item a {
    font-size: 18px;
    font-weight: bold;
    background-color: #e6e6e3c4;
    color: #000;


}



@media only screen and (max-width : 1280px) {

    /* link */

    .active,
    .lang-item a {
        font-size: 14px !important;

    }

    .primary-navigation .menu a {
        font-size: 14px;
    }

    .secondary-navigation div ul li a {
        font-size: 12px;
    }

    .lang-item a {
        padding: 10px !important;
    }


}

@media only screen and (max-width : 1100px) {
	 .active,
    .lang-item a {
        font-size: 13px !important;

    }

    .primary-navigation .menu a {
        font-size: 13px;
    }

    .secondary-navigation div ul li a {
        font-size: 11px;
    }

    .lang-item a {
        padding: 10px !important;
    }
}


@media only screen and (max-width : 995px) {

    .secondary-navigation div ul li a {
        font-size: 10px !important;
    }

    .primary-navigation .menu a {
        font-size: 10px;
    }

    .col-full {
        max-width: 100% !important;
    }

    .site-header-cart .widget_shopping_cart {
        width: 105%;
    }

    #menu-item-2147480007 {
        float: none;

    }

    /* header */

    
    .search-field {
        width: 50%;
    }

    .search-submit{
        font-size: 14px;
    }



}

/* stock */



p.instock {
    color: #3fa008;
    font-weight: bold;
}



p.outofstock {
    color: #da1616;
    font-weight: bold;
}

p.onorder,
.available-on-backorder {
    font-weight: bold;
    color: #fda206;
}



/* blog */



.katalog ul {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    list-style: none !important;
}

.katalog ul li {
    width: 300px;
    overflow: hidden;
    height: auto;
    padding: 10px;
}


.title_blog {
    font-size: 20px;
    font-weight: bold;
    color: #323131 !important;
    font-style: italic;
    text-align: center !important;
}

.pagination .page-numbers,
.woocommerce-pagination .page-numbers {
    /* font-size: 1.5rem; */
    padding: 15px;
    font-weight: bold;
}

/* page thank you */

.woocommerce-notice--success {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

/* responsive table checkout */

@media screen and (max-width: 600px) {

    .woocommerce-page table.shop_table,
    .woocommerce-page table.shop_table thead,
    .woocommerce-page table.shop_table tbody,
    .woocommerce-page table.shop_table th,
    .woocommerce-page table.shop_table td,
    .woocommerce-page table.shop_table tr {
        display: block;
        min-width: 320px;
    }
}

.woocommerce table.cart thead th.product-name,
.woocommerce table.cart thead th.product-price,
.woocommerce table.cart thead th.product-quantity {
    display: none;
}

.woocommerce input.input-text.qty {
    width: 4em;
}

/* product categoties on shop page */

ul.product-cats {
    display: flex;
    flex-wrap: wrap;
}


ul.product-cats li {
    list-style: none;
    margin: 0 1rem 1rem 1rem;
    text-align: center;
    /* position: relative; */

}

li.category p {
    width: 150px;
    margin-top: 15px;
}
li.category p a {
    color: #000;
}


.site-header-cart .cart-contents {
    font-size: 18px!important;
    padding: 1.618em 0;
    display: flex;
    position: relative;
    background-color: rgba(0,0,0,0);
    height: auto;
    width: auto;
    text-indent: 0;
    justify-content: flex-start;
}


ul.product-cats li img {
    margin: 0 auto;
    max-width: 150px;
}

/* loader */

/* .mask{
    width: 100%;
    height: 100%;
    background-color: white;
    position: fixed;
    top: 0;
    z-index: 9999;
    transition: 0.6s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader{
    width: 75px;
    height: 75px;
    border: 10px solid #FF8000;
    border-radius: 50%;
    border-left-color: #F5DA81;
    animation: loader 1.3s linear infinite;
}

@keyframes loader {
    100% {
        transform: rotate(360deg);
    }
}

.hide{
    opacity: 0;
} */

li.cat-item-984:nth-child(1),
li.category:nth-child(1) {
    display: none;
}

/* стилі для товарів у статтях */

.product-block {
    /* border: 1px solid #ddd; */
    padding: 10px;
    margin: 10px 0;
    text-align: center;
}


.product-block img {
    width: 300px !important;
    height: auto !important;
    margin: 0 auto !important;
}

.product-block .product-name {
    margin-top: 10px !important;
}

/* клас для виводу товарів при створенні статті */

.flex {
    display: flex;
}

img {
    width:100%;
}


@media only screen and (max-width : 768px) {
    .flex {
        display: block;
    }
}

/* стилі для виводуу постів підкатегорій  */
/* Контейнер для сітки постів */
.custom-post-grid {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

/* Стилі для кожного поста в сітці */
.custom-post-summary {
    width: 300px;
    overflow: hidden;
    height: auto;
    padding: 10px;
}

/* Стилизуємо зображення поста */
.custom-post-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* .custom-post-thumbnail {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%;

} */

/* .custom-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
   
} */

/* Стилизуємо заголовок поста */
/* .custom-entry-header {
    text-align: center;
    padding: 10px 0;
} */



.custom-entry-title {
    font-size: 20px;
    font-weight: bold;
    color: #323131 !important;
    font-style: italic;
    text-align: center !important;
    margin-top: 10px;
}

/* .custom-entry-title:hover {
    text-decoration: underline;
} */


/* стилі для хедера */

.custom-header-top {
    display: flex;
    justify-content: flex-end;

}

.header-phone {
    display: flex;
    align-items: center;
    padding: 0 40px 10px 20px;

}

.header-phone i {
    margin-right: 10px;
    color: #f38d3e;
    /* Колір іконки телефону */
}

.header-search {
    display: flex;
    align-items: center;
}

.header-icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    padding: 1.618em;
}


.header-icons a {
    color: #333;
    /* Колір іконок */
    font-size: 18px;
}

.site-branding {
    width: auto !important;
}

/*==================================================фильтрация*/
/* Контейнер сортировки */
.custom-sorting-wrapper {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
}

/* Стили для селекта сортировки */
.woocommerce-ordering select {
    background-color: #f8f9fa;
    border: 2px solid #ddd;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Тінь для виділення */
}

/* Ховер и фокус */
.woocommerce-ordering select:hover,
.woocommerce-ordering select:focus {
    border-color: #0073aa;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 115, 170, 0.3); /* Яскравіша тінь при фокусі */
    outline: none; /* Прибрати стандартне обведення при фокусі */
}

/* Стрелка селекта */
.woocommerce-ordering {
    position: relative;
}

.woocommerce-ordering select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16"><path fill="%230073aa" d="M7 10l5 5 5-5z"></path></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 30px;
}
