/*
Theme Name: Fabrika Teplits

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
 */
ul.products {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	margin-left: -12px;
	margin-right: -12px;
}

ul.products li.product {
	width: 100%;
	position: relative;
	margin-bottom: 2em;
	padding-left: 12px;
	padding-right: 12px;
}

ul.products li.product img {
	display: block;
}

ul.products li.product .button {
	display: block;
}

bdi{
	white-space: nowrap;
}

.related.products .product-tumbnail{
	aspect-ratio: 1/1;
}

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

	ul.products li.product {
		width: 30.79667%;
}


	ul.products.columns-1 li.product {
		float: none;
		width: 100%;
	}

	ul.products.columns-2 li.product {
		width: 48.1%;
	}

	ul.products.columns-3 li.product {
		width: 30.79667%;
	}

	ul.products.columns-4 li.product {
		width: 22.15%;
	}

	ul.products.columns-5 li.product {
		width: 16.96%;
	}

	ul.products.columns-6 li.product {
		width: 13.49333%;
	}
}

/**
 * Single product
 */
.single-product div.product {
	position: relative;
}

.single-product div.product .woocommerce-product-gallery {
	position: relative;
	width: 100%;
	padding-left: 12px;
	padding-right: 12px;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	position: absolute;
	top: 1em;
	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;
	padding-left: 5px;
	padding-right: 5px;
}

.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;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image{
	text-align: center;
}

.single-product div.product .price{
	margin-bottom: 15px;
}

.single-product div.product .cart{
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 15px;
}

.single-product div.product .cart input.qty {
	max-width: 70px;
	margin-right: 12px;
	height: 54px;
}

.single-product div.product .product_meta{
	font-size: 14px;
}

.woocommerce-variation-add-to-cart{
	display: flex;
}

table.variations{
	width: 100%;

}

table.variations th {
	vertical-align: top;
	text-align: left;
	line-height: 1.1;
}

table.variations th label{
	display: flex;
	padding-right: 10px;
}

table.variations th label .variation_name_label{
	white-space: nowrap;
}

.reset_variations{
	font-size: 12px;
}

.summary.entry-summary {
    width: 100%;
	padding-left: 12px;
	padding-right: 12px;
}

.stock:empty::before {
	display: none;
}

.stock.in-stock {
	color: #0f834d;
}

.stock.out-of-stock {
	color: #e2401c;
}

.woocommerce-breadcrumb{
	font-size: 12px;
}

/**
 * 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
 */

/**
 * 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 ul.tabs {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: left;
	display: flex;
	gap: 2px;
	margin-bottom: -1px;
}

.woocommerce-tabs ul.tabs li {
	display: block;
	margin: 0;
	position: relative;
	padding: 12px 45px;
	border: 1px solid #e2e2e2;
	background: #fff;
}

.woocommerce-tabs ul.tabs li a {
	padding: 5px 0;
	display: block;
	font-weight: 700;
	font-size: 24px;
}

.woocommerce-tabs ul.tabs li.active {
	border-bottom: none;
}
.woocommerce-tabs ul.tabs li.active a {
	color: #85b223;
}

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

.related.products{
	margin-top: 30px;
}

.related.products h2{
	margin-bottom: 15px;
}

/**
 * Password strength meter
 */

.product_title{
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 15px;
}

.slick-prev:before, .slick-next:before {
    color: #009345;
}

.woocommerce-product-gallery__trigger {
    background: url('./img/zoom.svg') center / contain no-repeat;
    width: 40px;
    height: 40px;
}

.woocommerce-product-gallery__trigger span{
	display: none;
}

.woocommerce-Price-amount.amount{
	font-weight: 700;
	font-size: 22px;
	color: #009345;
}

.sku_wrapper{
	display: none;
}

.single_add_to_cart_button{
	background-color: #009345;
	color: #ffffff;
	border-radius: 0;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
}

.single_add_to_cart_button:hover{
	background-color: #009345;
	color: #f7e30c;
}

.woocommerce-Tabs-panel {
    background-color: transparent;
    border: 1px solid #e2e2e2;
    box-shadow: none;
    margin-bottom: 0;
    border-radius: 0;
    padding: 25px 17px;
}

.product-video{
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	margin-left: -12px;
	margin-right: -12px;
	margin-bottom: 30px;
}

.product-video__half{
	width: 100%;
	padding-left: 12px;
	padding-right: 12px;
	margin-bottom: 24px;
}

.product-video__half iframe{
	width: 100%;
	aspect-ratio: 16/9;
}

.product-information{
	margin-bottom: 30px;
}

tr.product-information__grid td:first-child {
    width: 200px;
}

tr.product-information__grid td {
	padding: 5px;
	vertical-align: top;
}

.product-information__full td{
	padding: 12px 5px;
}

.archive .product-tumbnail{
	aspect-ratio: 1/1;
}

.woocommerce-products-header__title.page-title{
	font-size: 32px;
	font-weight: 700;
	margin-bottom: 30px;
	text-align: center;
}

.woocommerce-result-count{
	font-size: 14px;
	margin-bottom: 0;
}

.justify-between{
	justify-content: space-between;
}

.woocommerce-pagination{
	margin-top: 30px;
}

.woocommerce-pagination ul{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	padding-left: 0;
	list-style: none;
}

.woocommerce-message {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background-color: #ebf1de;
  padding: 15px 45px;
  margin-bottom: 45px;
}

.woocommerce-cart-form{
	font-size: 14px;
	line-height: 1.1;
}

table.woocommerce-cart-form__contents.shop_table thead tr {
    background-color: #ebf1de;
}

.shop_table td, .shop_table th {
    padding: 10px;
}

td.product-thumbnail{
	vertical-align: top;
}

.cart-collaterals{
	margin-top: 30px;
}

.cart-collaterals h2{
	margin-bottom: 15px;
}

.wc-proceed-to-checkout{
	margin-top: 30px;
}

#shipping_method {
  list-style: none;
  padding: 0;
  margin: 0;
}

#shipping_method li {
  margin-bottom: 12px;
  position: relative;
  cursor: pointer;
  user-select: none;
}

/* Приховуємо стандартний радіо-батон */
#shipping_method input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Кастомний радіо-батон */
#shipping_method label {
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  color: #222;
  font-size: 15px;
  line-height: 1.4;
  display: inline-block;
}

/* Кружок радіо кнопки */
#shipping_method label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  border: 2px solid #ccc;
  border-radius: 50%;
  background-color: white;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

/* Кружок при виборі (заповнений) */
#shipping_method input[type="radio"]:checked + label::before {
  border-color: #009345;
  background-color: #009345;
}

/* Внутрішній кружок при виборі */
#shipping_method input[type="radio"]:checked + label::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  width: 6px;
  background-color: white;
  border-radius: 50%;
}

/* При наведенні на label */
#shipping_method label:hover::before {
  border-color: #009345;
}

/* Додатково — щоб вказати вибраний рядок */
#shipping_method input[type="radio"]:checked + label {
  font-weight: 600;
  color: #009345;
}


.woocommerce-shipping-totals th{
	vertical-align: top;
}

textarea[name="order_comments"]{
	min-height: 100px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 11px;
}

#order_review_heading{
	margin-top: 30px;
	margin-bottom: 15px;
}

.woocommerce-checkout-review-order-table thead tr {
    background-color: #ebf1de;
}

.woocommerce-checkout-review-order-table .product-total{
	text-align: center;
	vertical-align: top;
}

.woocommerce-checkout-review-order-table .variation{
	display: flex;
	flex-wrap: wrap;
	font-size: 12px;
	margin-left: 15px;
}

.woocommerce-checkout-review-order-table .variation dt{
	width: 50%;
	padding-right: 8px;
}

.woocommerce-checkout-review-order-table .variation p{
	margin-bottom: 0;
}

.woocommerce-checkout-review-order-table tfoot th{
	text-align: right;
}

.woocommerce-checkout-review-order-table .cart-subtotal td{
	text-align: center;
}

.woocommerce-checkout-review-order-table .order-total td{
	text-align: center;
}

@media screen and (min-width: 992px) {
	.single-product div.product .woocommerce-product-gallery {
		width: 395px;
	}
	.summary.entry-summary{
		width: calc(100% - 395px);
		padding-left: 36px;
	}
	.single-product-vertical-menu-column{
		width: 25%;
	}
	.single-product-main-column{
		width: 75%;
	}
	.product_title{
		font-size: 28px;
	}
	.product-video__half{
		width: 50%;
		margin-bottom: 0;
	}
	.checkout.woocommerce-checkout .col2-set{
		display: flex;
		margin: 0 -12px;
	}
	.checkout.woocommerce-checkout .col-1{
		width: 50%;
		padding-left: 12px;
		padding-right: 12px;
	}
	.checkout.woocommerce-checkout .col-2{
		width: 50%;
		padding-left: 12px;
		padding-right: 12px;
	}
}