/*
Theme Name: bilansky-farm
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;
}

ul.products li.product {
	list-style: none;
	position: relative;
	margin-bottom: 2em;
}

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

@media screen and (min-width: 48em) {
/* 	ul.products li.product {
			width: 30.79667%;
			float: left;
			margin-right: 3.8%;
	}

	ul.products li.product.first {
			clear: both;
	}

	ul.products li.product.last {
			margin-right: 0;
	}

	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%;
	} */
}



/* Cart Items */
.site-header-cart .widget_shopping_cart .cart_list {
	padding: 0;
	margin: 0;
	list-style: none;
}

.site-header-cart .widget_shopping_cart .mini_cart_item {
	padding: 15px 0;
	border-bottom: 1px solid #eee;
	position: relative;
	display: flex;
	align-items: center;
	gap: 15px;
}

.site-header-cart .widget_shopping_cart .mini_cart_item:last-child {
	border-bottom: none;
}

/* Cart Total */
.site-header-cart .widget_shopping_cart .total {
	padding: 20px 0;
	margin: 20px 0;
	border-top: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	font-weight: bold;
}

/* Cart Buttons */
.site-header-cart .widget_shopping_cart .buttons {
	display: flex;
	gap: 10px;
	padding: 20px 0;
}

.site-header-cart .widget_shopping_cart .buttons a {
	flex: 1;
	padding: 12px 20px;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	transition: all 0.2s ease;
}

.site-header-cart .widget_shopping_cart .buttons a.wc-forward {
	background: #f5f5f5;
	color: #333;
}

.site-header-cart .widget_shopping_cart .buttons a.checkout {
	background: #333;
	color: #fff;
}

/* Empty Cart Message */
.site-header-cart .widget_shopping_cart .woocommerce-mini-cart__empty-message {
	text-align: center;
	padding: 40px 0;
	color: #666;
}


/* Button Styles */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce input.button {
	background-color: #ebe9eb;
	color: #515151;
	padding: 0.618em 1em;
	border-radius: 3px;
	font-weight: 700;
	border: 0;
	text-decoration: none;
	cursor: pointer;
	display: inline-block;
	transition: all 0.2s ease-in-out;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background-color: #dfdcde;
}

.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt {
	background-color: #333;
	color: #fff;
}

.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background-color: #444;
}

/**
 * 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: #FF8A00;
}

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;
	right: 0; /* Changed to right for RTL */
	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: #ffd700;
	opacity: 1;
}

p.stars.selected a.active::before {
	content: "\53";
	color: #ffd700;
	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: #ffd700;
	opacity: 1;
}



.site-header-cart {
	position: relative;
}


.widget_shopping_cart_content {
	position: relative;
}


.woocommerce-mini-cart-item {
	display: flex;
	align-items: center;
	padding: 15px 0;
	border-bottom: 1px solid #eee;
	position: relative;
}


.woocommerce-mini-cart-item .quantity {
	display: block;
	font-size: 0.875em;
	color: #666;
}


.woocommerce-mini-cart__total {
	padding: 20px 0;
	margin: 20px 0;
	border-top: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	font-weight: bold;
}


.woocommerce-mini-cart__buttons {
	display: flex;
	gap: 10px;
}

.woocommerce-mini-cart__buttons .button {
	flex: 1;
	text-align: center;
	padding: 12px;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	transition: all 0.2s ease;
}

.woocommerce-mini-cart__buttons .button:first-child {
	background: #f5f5f5;
	color: #333;
}

.woocommerce-mini-cart__buttons .button.checkout {
	background: #333;
	color: #fff;
}


.woocommerce-mini-cart__empty-message {
	text-align: center;
	padding: 40px 0;
	color: #666;
}




body.mini-cart-open {
	overflow: hidden;
}


.cart-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.site-header-cart .cart-contents {
    text-decoration: none;
    position: relative;
    display: flex;
    align-items: center;
    color: inherit;
}

.cart-contents svg {
    width: 24px;
    height: 24px;
}


.cart-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

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


.widget_shopping_cart {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    z-index: 999;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
}

.widget_shopping_cart.active {
    left: 0;
}


.close-mini-cart {
  position: relative;
    top: 0;
    left: 0;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.close-mini-cart:hover {
    background-color: rgba(0,0,0,0.1);
}


.woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-mini-cart-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}



.woocommerce-mini-cart__total {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}


.woocommerce-mini-cart__buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.woocommerce-mini-cart__buttons .button {
    flex: 1;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.woocommerce-mini-cart__buttons .checkout {
    background: #333;
    color: white;
}

.woocommerce-mini-cart__buttons .wc-forward:not(.checkout) {
    background: #f5f5f5;
    color: #333;
}


.woocommerce-mini-cart__empty-message {
    text-align: center;
    padding: 30px 0;
    color: #666;
}


@media (max-width: 480px) {
    .widget_shopping_cart {
        width: 100%;
        left: -100%;
    }
}


body.mini-cart-open {
    overflow: hidden;
}

.shoping_cart_overlay{
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0, 0, 0, 0.5);
		z-index: 998;
}
.shoping_cart_overlay.active{
		display: block;
}


.widgets_shopping_cart_title {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.widget_shopping_cart {
	padding: 0.5rem;
}


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

.product-add-to-cart form.cart button.single_add_to_cart_button.button.alt{
	transition: background 0.3s ease;
}

a,button{
	cursor: pointer;
}

.register-subscriptions{
	margin-top: 6rem;
}
