/*
Theme Name: theme-lubava

WooCommerce styles override
*/

/**
* Shop tables
*/
table.shop_table_responsive thead {
	display: none;
}

table.shop_table_responsive tbody th {
	display: none;
}

table.shop_table_responsive tr td {
	display: block;
	text-align: right;
	clear: both;
}

table.shop_table_responsive tr td::before {
	content: attr(data-title) ": ";
	float: left;
}

table.shop_table_responsive tr td.product-remove a {
	text-align: left;
}

table.shop_table_responsive tr td.product-remove::before {
	display: none;
}

table.shop_table_responsive tr td.actions::before,
table.shop_table_responsive tr td.download-actions::before {
	display: none;
}

table.shop_table_responsive tr td.download-actions .button {
	display: block;
	text-align: center;
}

@media screen and (min-width: 48em) {

	table.shop_table_responsive thead {
		display: table-header-group;
	}

	table.shop_table_responsive tbody th {
		display: table-cell;
	}

	table.shop_table_responsive tr th,
	table.shop_table_responsive tr td {
		text-align: left;
	}

	table.shop_table_responsive tr td {
		display: table-cell;
	}

	table.shop_table_responsive tr td::before {
		display: none;
	}
}

/**
* Products
*/
.shop-content {
	display: grid;
	padding: 80px 0 20px;
}
@media screen and (min-width: 786px) {
	.shop-content {
		grid-template-columns: 200px 1fr;
		gap: 40px;
	}
	.product-filter-button {
		display: none!important;
	}
	.shop-content .widget-area {
		margin-top: 220px;
	}
}
.product-filter-button {
	display: block;
	grid-column: 1 / 3;
	width: 200px;
	height: 40px;
	background: black;
	color: #fff;
	cursor: pointer;
}
@media (max-width: 768px) {
	#secondary {
		position: fixed;
		top: 0;
		left: 0;
		width: 230px;
		height: 1000vh;
		padding: 160px 10px 0 10px;
		background: #fff;
		z-index: 9999;
		overflow-y: auto;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
	}

	#secondary.open {
		transform: translateX(0);
	}

	.filter-overlay {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100vw;
		height: 100vh;
		background: rgba(0, 0, 0, 0.3);
		z-index: 9998;
	}

	.filter-overlay.active {
		display: block;
	}

	.product-filter-button {
		display: inline-block;
		margin: 15px 0;
		padding: 8px 16px;
		background: #000;
		color: #fff;
		border: none;
		text-transform: uppercase;
		cursor: pointer;
		z-index: 1;
		position: relative;
	}
}

.shop-content .site-main .woocommerce-breadcrumb,
.shop-content .site-main .woocommerce-products-header,
.shop-content .site-main .woocommerce-result-count,
.shop-content .site-main .woocommerce-ordering {
	display: none!important;
}
ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 30px;
	padding: 0;
	margin: 0;
	list-style: none;
}

ul.products li.product {
	border: none;
	padding: 0;
	margin: 0;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	text-align: left;
	transition: all 0.3s ease;
}

ul.products li.product:hover {
	box-shadow: 0 0 10px rgba(0,0,0,0.07);
}

ul.products li.product img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

ul.products li.product .woocommerce-loop-product__title {
	font-size: 16px;
	text-transform: uppercase;
	margin: 15px 0 5px;
	font-weight: 400;
	letter-spacing: 1px;
	color: #000;
}

ul.products li.product .price {
	font-size: 14px;
	margin-bottom: 10px;
	color: #9D9FA3;
}

ul.products li.product .button {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid #000;
	background: transparent;
	color: #000;
	text-transform: uppercase;
	font-size: 12px;
	transition: all 0.3s ease;
}

ul.products li.product .button:hover {
	background: #000;
	color: #fff;
}
/**
* Filter
*/
.bapf_head {
	margin-bottom: 15px;
	padding-bottom: 5px;
	border-bottom: 1px solid #000;
}
/**
* Single product
*/
.product-layout .product-content {
	padding: 80px 0 20px;
}
.product-layout .product-content .site-main .product .product-container {
	display: grid;
	grid-gap: 40px;
}
@media (min-width: 768px) {
	.product-layout .product-content .site-main .product .product-container {
		grid-template-columns: 250px 1fr;
		grid-gap: 10px;
	}
}
#product-gallery-track {
	height: 100%;
}
#product-gallery .splide__slide {
	opacity: 0.4;
	transform: scale(0.8);
	transition: all 0.4s ease;
}

#product-gallery .splide__slide.is-active {
	opacity: 1;
	transform: scale(1.1);
	z-index: 2;
	width: 140%;
}
#product-gallery .splide__slide img {
	display: block;
	height: 100%;
	width: 100%;
	object-fit: cover;
}
button.splide__arrow.splide__arrow--prev {
	top: 100%;
	border-radius: 0;
	background-color: transparent;
	background-image: url(https://lubavasokol.com/wp-content/uploads/2025/04/left.png);
	background-size: contain;
}
button.splide__arrow.splide__arrow--next {
	top: 100%;
	border-radius: 0;
	background-color: transparent;
	background-image: url(https://lubavasokol.com/wp-content/uploads/2025/04/right.png);
	background-size: contain;
}
button.splide__arrow svg {
	fill: transparent;
}
.product-layout .product-content .product_meta,
.product-layout .product-content .woocommerce-breadcrumb {
	display: none!important;
}
.product-layout .product-content .site-main .product .woocommerce-product-gallery {
	float: none;
}
.product-layout .product-content .site-main .product .summary .product_title {
	margin-bottom: 15px;
	font-size: 24px;
}
.product-layout .product-content .site-main .product .summary .price {
	margin-bottom: 30px;
	font-size: 24px;
	color: #9D9FA3;
}
.product-layout .product-content .site-main .product .summary .woocommerce-variation-add-to-cart {
	display: flex;
	gap: 12px;
	align-items: stretch;
	margin: 20px 0;
	max-width: 400px;
}
form.cart {
	display: flex;
	gap: 15px;
}
.product-layout .product-content .site-main .product .summary form.cart .quantity {
	display: none!important;
	flex: 0 0 80px;
}

.product-layout .product-content .site-main .product .summary form.cart .quantity input.qty {
	width: 100%;
	padding: 10px;
	font-size: 16px;
	border: 1px solid #999;
	border-radius: 4px;
	text-align: center;
}

.product-layout .product-content .site-main .product .summary form.cart .single_add_to_cart_button {
	flex: 1;
	padding: 15px 15px;
	font-size: 16px;
	font-weight: 500;
	background: #000;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.3s ease;
}

.product-layout .product-content .site-main .product .summary form.cart .single_add_to_cart_button:hover {
	background: #333;
}
.woocommerce-tabs.wc-tabs-wrapper {
	margin-top: 60px;
}
a.reset_variations {
	display: none;
}
.variations {
	margin-bottom: 24px; /* відступ від блоку вниз */
}

.variations th .woo-selected-variation-item-name, .woo-variation-swatches.wvs-show-label .variations th label {
	margin: 0px!important;
}
.variations tr {
	display: flex;
	flex-direction: column;
	margin-bottom: 20px; /* відступ між Color та Size */
}

.variations .label {
	font-weight: bold;
	font-size: 14px;
	text-align: left;
	margin-bottom: 6px;
}

.variations .woo-selected-variation-item-name {
	display: inline-block;
	margin-left: 4px;
	font-weight: normal;
}
.variations .value {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.color-variable-items-wrapper {
	background: url(https://lubavasokol.com/wp-content/uploads/2025/05/color-variable.svg);
	background-size: 100%;
	background-repeat: no-repeat;
}
.color-variable-items-wrapper .variable-item {
	width: 40px!important;
	height: 40px!important;
	margin: 0!important;
	padding: 0!important;
	-webkit-box-shadow: none!important;
	box-shadow: none!important;
	clip-path: polygon(33% 6%, 33% 67%, 95% 67%, 64% 97%, 3% 97%, 3% 36%);
}
.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item).color-variable-item.selected:not(.no-stock) .variable-item-contents:before {
	display: none!important;
}



.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item) {
	background-color: transparent;
	-webkit-box-shadow: none;
	box-shadow: none;
}
.single-product div.product {
	position: relative;
}
@media screen and (min-width: 786px) {
	.single-product div.product {
		margin-left: 200px;
	}
}
.single-product div.product .woocommerce-product-gallery {
	position: relative;
	float: left;
}
.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 2em;
	right: 1em;
	display: block;
	z-index: 99;
}
.single-product div.product .woocommerce-product-gallery .flex-viewport {
	margin-bottom: 1em;
}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
	margin: 0;
	padding: 0;
}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
	list-style: none;
	cursor: pointer;
	float: left;
}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img {
	opacity: 0.5;
}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
	opacity: 1;
}
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li:hover img {
	opacity: 1;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li {
	width: 48.1%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-2 .flex-control-thumbs li:nth-child(2n+1) {
	clear: both;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li {
	width: 30.79667%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-3 .flex-control-thumbs li:nth-child(3n+1) {
	clear: both;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
	width: 22.15%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n) {
	margin-right: 0;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(4n+1) {
	clear: both;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li {
	width: 16.96%;
}

.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n) {
	margin-right: 0;
}
.single-product div.product .woocommerce-product-gallery.woocommerce-product-gallery--columns-5 .flex-control-thumbs li:nth-child(5n+1) {
	clear: both;
}
.stock:empty::before {
	display: none;
}
.stock.in-stock {
	color: #0f834d;
}
.stock.out-of-stock {
	color: #e2401c;
}
/**
* Checkout
*/
@media screen and (min-width: 768px) {

	.col2-set .form-row-first {
		float: left;
		margin-right: 3.8%;
	}

	.col2-set .form-row-last {
		float: right;
		margin-right: 0;
	}

	.col2-set .form-row-first,
	.col2-set .form-row-last {
		width: 48.1%;
	}
}

/**
* General WooCommerce components
*/

.wc-block-components-sidebar-layout {
	max-width: 1200px;
	margin: 0 auto !important;
	padding: 70px 15px 50px !important;
}
.wc-block-components-sidebar-layout thead,
.wc-block-components-sidebar-layout h2.wp-block-woocommerce-cart-order-summary-heading-block.wc-block-cart__totals-title,
.wc-block-components-sidebar-layout .wp-block-woocommerce-cart-order-summary-totals-block,
.wc-block-components-sidebar-layout .wp-block-woocommerce-cart-order-summary-block,
.wc-block-components-sidebar-layout .wc-block-cart-item__prices,
.wc-block-components-sidebar-layout .wc-block-components-product-metadata,
.wc-block-components-sidebar-layout .wc-block-components-quantity-selector {
	display: none;
}
.wc-block-cart table.wc-block-cart-items, .wc-block-cart table.wc-block-cart-items td, .wc-block-cart table.wc-block-cart-items th {
	margin: 0!important;
}
a.wc-block-components-product-name {
	font-weight: 700;
	color: #000;
}
.is-large.wc-block-cart .wc-block-cart-items,
.is-large.wc-block-cart .wc-block-cart-items td {
	border-top: none!important;
}
a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained {
	padding: 7px!important;
	border: 1px solid #000;
	color: #000;
}
a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:hover {
	background: #000;
	color: #fff;
}
tr.wc-block-cart-items__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.wc-block-components-sidebar.wc-block-cart__sidebar.wp-block-woocommerce-cart-totals-block {
	display: flex;
	justify-content: center;
	align-items: center;
}
.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
	max-width: 1200px;
	margin: 0 auto;
	padding: 100px 15px;
}
.woocommerce-cart .wp-block-woocommerce-empty-cart-block h2.wp-block-heading,
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-product-new {
	display: none;
}
.woocommerce-cart .wp-block-woocommerce-empty-cart-block h2.wp-block-heading.wc-block-cart__empty-cart__title {
	display: block;
}

/**
* Header cart
*/
.site-header-cart {
	position: relative;
	margin: 0;
	padding: 0;
}

.site-header-cart .cart-contents {
	text-decoration: none;
}

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

.site-header-cart .product_list_widget {
	margin: 0;
	padding: 0;
}

/**
* Star rating
*/
.star-rating {
	overflow: hidden;
	position: relative;
	height: 1.618em;
	line-height: 1.618;
	width: 5.3em;
	font-family: star;
	font-weight: 400;
}

.star-rating::before {
	content: "\53\53\53\53\53";
	opacity: 0.25;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
}

.star-rating span {
	overflow: hidden;
	float: left;
	top: 0;
	left: 0;
	position: absolute;
	padding-top: 1.5em;
}

.star-rating span::before {
	content: "\53\53\53\53\53";
	top: 0;
	position: absolute;
	left: 0;
	color: #4169e1;
}

p.stars a {
	position: relative;
	height: 1em;
	width: 1em;
	text-indent: -999em;
	display: inline-block;
	text-decoration: none;
	margin-right: 1px;
	font-weight: 400;
}

p.stars a::before {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 1em;
	height: 1em;
	line-height: 1;
	font-family: star;
	content: "\53";
	color: #404040;
	text-indent: 0;
	opacity: 0.25;
}

p.stars a:hover ~ a::before {
	content: "\53";
	color: #404040;
	opacity: 0.25;
}

p.stars:hover a::before {
	content: "\53";
	color: #4169e1;
	opacity: 1;
}

p.stars.selected a.active::before {
	content: "\53";
	color: #4169e1;
	opacity: 1;
}

p.stars.selected a.active ~ a::before {
	content: "\53";
	color: #404040;
	opacity: 0.25;
}

p.stars.selected a:not(.active)::before {
	content: "\53";
	color: #4169e1;
	opacity: 1;
}

/**
* Tabs
*/
.woocommerce-tabs .tabs {
	display: none;
}
.woocommerce-tabs ul.tabs {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: left;
}

.woocommerce-tabs ul.tabs li {
	display: block;
	margin: 0;
	position: relative;
}

.woocommerce-tabs ul.tabs li a {
	padding: 1em 0;
	display: block;
}

.woocommerce-tabs .panel h2:first-of-type {
	margin-bottom: 1em;
}

/**
* Password strength meter
*/
.woocommerce-password-strength {
	text-align: right;
}

.woocommerce-password-strength.strong {
	color: #0f834d;
}

.woocommerce-password-strength.short {
	color: #e2401c;
}

.woocommerce-password-strength.bad {
	color: #e2401c;
}

.woocommerce-password-strength.good {
	color: #3d9cd2;
}

/**
* Forms
*/
.form-row.woocommerce-validated input.input-text {
	box-shadow: inset 2px 0 0 #0f834d;
}

.form-row.woocommerce-invalid input.input-text {
	box-shadow: inset 2px 0 0 #e2401c;
}

.required {
	color: #f00;
}

/**
* Notices
*/
.woocommerce-info {
	display: flex;
	align-items: center;
	height: 50vh;
	font-size: 28px;
	background-color: transparent!important;
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
	clear: both;
}
.woocommerce-message {
	display: none!important;
}

.woocommerce-info,
.woocommerce-noreviews,
p.no-comments {
	background-color: #3d9cd2;
}

.woocommerce-error {
	background-color: #e2401c;
}

.demo_store {
	position: fixed;
	left: 0;
	bottom: 0;
	right: 0;
	margin: 0;
	padding: 1em;
	background-color: #3d9cd2;
	z-index: 9999;
}

@media screen and (min-width: 48em) {

	/**
	* Header cart
	*/
	.site-header-cart .widget_shopping_cart {
		position: absolute;
		top: 100%;
		width: 100%;
		z-index: 999999;
		left: -999em;
		display: block;
		box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	}

	.site-header-cart:hover .widget_shopping_cart,
	.site-header-cart.focus .widget_shopping_cart {
		left: 0;
		display: block;
	}
}

/**
* WooCommerce widgets
*/

/**
* WooCommerce Price Filter
*/
.widget_price_filter .price_slider {
	margin-bottom: 1.5em;
}

.widget_price_filter .price_slider_amount {
	text-align: right;
	line-height: 2.4;
}

.widget_price_filter .price_slider_amount .button {
	float: left;
}

.widget_price_filter .ui-slider {
	position: relative;
	text-align: left;
}

.widget_price_filter .ui-slider .ui-slider-handle {
	position: absolute;
	z-index: 2;
	width: 1em;
	height: 1em;
	cursor: ew-resize;
	outline: none;
	background: #4169e1;
	box-sizing: border-box;
	margin-top: -0.25em;
	opacity: 1;
}

.widget_price_filter .ui-slider .ui-slider-handle:last-child {
	margin-left: -1em;
}

.widget_price_filter .ui-slider .ui-slider-handle:hover,
.widget_price_filter .ui-slider .ui-slider-handle.ui-state-active {
	box-shadow: 0 0 0 0.25em rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider .ui-slider-range {
	position: absolute;
	z-index: 1;
	display: block;
	border: 0;
	background: #4169e1;
}

.widget_price_filter .price_slider_wrapper .ui-widget-content {
	background: rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider-horizontal {
	height: 0.5em;
}

.widget_price_filter .ui-slider-horizontal .ui-slider-range {
	height: 100%;
}
