/*
Theme Name: Editorx

WooCommerce styles override
*/

/*--------------------------------------------------------------
# Global
--------------------------------------------------------------*/
.quantity{
    width: 135px;
	display: flex;
    align-items: center;
    justify-content: center;
	border: 1px solid var(--theme--form-border-color);
    border-radius: var(--theme--button-border-radius);
}

.quantity input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
}

.quantity button[type="button"]{
	border: unset;
    color: #000;
	padding: 10px;
	background: transparent;
}

.quantity input[type=number] {
	border: 0px;
	width: 45px;
	height: 45px;
	padding: 0px;
	text-align: center;
	appearance: textfield;
  	-moz-appearance: textfield;
}

/*--------------------------------------------------------------
# Product Card
--------------------------------------------------------------*/
.products{
    margin: 0px;
    padding: 0px;
    display: grid;
    list-style: none;
    grid-row-gap: 30px;
    grid-column-gap: 30px;
}

.products.columns-6{
    grid-template-columns: repeat(6, 1fr);
}

.products.columns-5{
    grid-template-columns: repeat(5, 1fr);
}

.products.columns-4{
    grid-template-columns: repeat(4, 1fr);
}

.products.columns-3{
    grid-template-columns: repeat(3, 1fr);
}

.products.columns-2{
    grid-template-columns: repeat(2, 1fr);
}

@media screen and (max-width: 992px) {
	.products.columns-6{
		grid-template-columns: repeat(3, 1fr);
	}

	.products.columns-5{
		grid-template-columns: repeat(3, 1fr);
	}

	.products.columns-4{
		grid-template-columns: repeat(3, 1fr);
	}

	.products.columns-3{
		grid-template-columns: repeat(3, 1fr);
	}

	.products.columns-2{
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 768px) {
	.products.columns-6{
		grid-template-columns: repeat(2, 1fr);
	}

	.products.columns-5{
		grid-template-columns: repeat(2, 1fr);
	}

	.products.columns-4{
		grid-template-columns: repeat(2, 1fr);
	}

	.products.columns-3{
		grid-template-columns: repeat(2, 1fr);
	}

	.products.columns-2{
		grid-template-columns: repeat(1, 1fr);
	}
}

.products .product{
	display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
	position: relative;
}

.products .product a{
	display: flex;
    flex-direction: column;
	text-decoration: none;
}

.products .product h2{
	font-size: 16px;
    text-transform: capitalize;
    font-family: var(--theme--body-fonts);
	line-height: 1.2;
    margin-bottom: 10px;
    margin-top: 10px;
	color: #1b1a1a;
}

.products .product img{
    position: relative;
    vertical-align: bottom;
}

.products .product .price{
	display: flex;
    align-items: center;
    justify-content: center;
    gap: 7.5px;
    margin-bottom: 12px;
}

.products .product .price ins{
    background: unset;
}

.products .product .button{
	color: var(--theme--button-text-color);
	background: var(--theme--primary-color);
	border: 1px solid var(--theme--primary-color);
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
    text-transform: uppercase;
	width: 100%;
}

.products .product .button.loading{
	opacity: 0.5;
}

.products .product .added_to_cart.wc-forward,
.product-gallery-summary .added_to_cart.wc-forward{
    display: none !important;
}

.products.text-center .product .button,
.products .product.text-center .button{
    margin: 0 auto;
}

.products.text-center .product .star-rating,
.products .product.text-center .star-rating{
    margin: 5px auto;
}

.products .product .star-rating{
    margin-top: 5px;
    margin-bottom: 5px;
}

.products .product .onsale{
	top: 10px;
    left: 10px;
    z-index: 101;
    font-size: 12px;
    padding: 0 10px;
    width: fit-content;
    position: absolute;
    text-transform: uppercase;
	color: var(--theme--button-text-color);
    background: var(--theme--primary-color);
}

/*---------------------------------------------
                Pagination
----------------------------------------------*/
.woocommerce-pagination{
    margin: 30px 0;
    padding-top: 30px;
    border-top: 1px solid var(--theme--form-border-color);
}

.woocommerce-pagination .page-numbers{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    list-style: none;
    margin: 0px;
    padding: 0px;
}

.woocommerce-pagination ul li .page-numbers{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    position: relative;
    text-decoration: none;
    color: var(--theme--primary-color);
    border-radius: var(--theme--button-border-radius);
    border: 1px solid var(--theme--form-border-color);
}

.woocommerce-pagination ul li .page-numbers.current,
.woocommerce-pagination ul li .page-numbers:hover{
    color: var(--theme--button-text-color);
    background: var(--theme--primary-color);
    border-color: var(--theme--primary-color);
}

.woocommerce-pagination ul li .next,
.woocommerce-pagination ul li .prev{
    text-indent: -100px;
    overflow: hidden;
    position: relative;
}

.woocommerce-pagination ul li .prev::after{
    top: 0;
    left: 0;
	content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--theme--primary-color);
    -webkit-mask-image: url(../../public/images/arrow-left.svg);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 20px;
}

.woocommerce-pagination ul li .next::after{
    top: 0;
    left: 0;
	content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--theme--primary-color);
    -webkit-mask-image: url(../../public/images/arrow-right.svg);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 20px;
}

.woocommerce-pagination ul li:hover .prev::after,
.woocommerce-pagination ul li:hover .next::after{
    background-color: var(--theme--button-text-color);
}

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

.single-product__content{
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 30px;
}

.single-product__content .summary{
	flex: 1 1 40%;
	width: 40%;
}

.single-product__content .single-product__main{
	flex: 1 1 60%;
	width: 60%;
}

.single-product .product .woocommerce-product-gallery {
	position: relative;
	float: left;
}

.single-product .product .woocommerce-product-gallery .flex-viewport{
	border: 1px solid var(--theme--form-border-color);
}

.single-product .product .woocommerce-product-gallery .flex-viewport figure{
	margin: 0px;
}

.single-product__content .woocommerce-product-gallery__wrapper img{
	max-width: 100%;
}

.single-product .product .woocommerce-product-gallery .flex-control-thumbs {
	display: flex;
    align-items: center;
    justify-content: center;
    max-width: calc( 100% - 30px );
    gap: 10px;
    list-style: none;
    margin: 15px auto;
    padding: 0px;
}

.single-product .product .woocommerce-product-gallery .flex-control-thumbs li {
	list-style: none;
	cursor: pointer;
	float: left;
	border: 1px solid var(--theme--form-border-color);
}

.single-product .product .woocommerce-product-gallery .flex-control-thumbs li img {
	opacity: 0.5;
}

.single-product .product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
	opacity: 1;
}

.single-product .product .woocommerce-product-gallery .flex-control-thumbs li:hover img {
	opacity: 1;
}

.single-product .product .woocommerce-product-gallery .flex-control-thumbs li img{
	width: 100%;
	position: relative;
	vertical-align: bottom;
}

.single-product .product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
	color: #000;
    position: absolute;
    top: 15px;
    right: 15px;
    display: block;
    height: 2em;
    width: 2em;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -khtml-border-radius: 3px;
    -moz-border-radius: 3px;
    z-index: 9;
    text-align: center;
    text-indent: -999px;
    overflow: hidden;
    background-color: #fefefe;
    text-decoration: none;
}

.single-product .product .woocommerce-product-gallery .woocommerce-product-gallery__trigger::after {
    top: 0;
    left: 0;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--theme--primary-color);
    -webkit-mask-image: url(../../public/images/search.svg);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 20px;
    opacity: 1;
}

.single-product__content .single-product__main .onsale{
    z-index: 10;
    display: flex;
    font-size: 14px;
	position: absolute;
    align-items: center;
    width: fit-content;
    padding: 2px 15px;
	top: 15px;
    left: 15px;
    color: var(--theme--button-text-color);
    background: var(--theme--primary-color);
}

.single-product__content button[name="add-to-cart"]{
	width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    margin: 20px 0;
}

.single-product .woocommerce-message{
	display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    background: #fafafa;
    padding: 10px;
    margin-bottom: 30px;
}

.single-product .price ins,
.single-product .price bdi{
	background: unset;
}

/*--------------------------------------------------------------
# Account
--------------------------------------------------------------*/
.woocommerce-account.logged-in .entry-content>.woocommerce{
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 30px;
}

.woocommerce-MyAccount-navigation{
    flex: 0 0 25%;
    padding: 0 15px;
    border: 1px solid var(--theme--form-border-color);
}

.woocommerce-MyAccount-content{
    flex: 1 1;
    padding: 30px;
}

.woocommerce-MyAccount-navigation > ul{
    margin: 0px;
    padding: 0px;
    list-style: none;
}

.woocommerce-MyAccount-navigation > ul li {
	list-style: none;
    border-top: 1px solid var(--theme--form-border-color);
}

.woocommerce-MyAccount-navigation > ul li:first-child{
    border-top: 0px;
}

.woocommerce-MyAccount-navigation > ul li a{
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: var(--theme--base-color);
}

.woocommerce-MyAccount-navigation > ul li.is-active a {
	color: var(--theme--primary-color);
}

/* Password
--------------------------------------------- */
.woocommerce-password-strength {
	margin-top: 15px;
	padding-bottom: 10px;
	margin-bottom: 10px;
	position: relative;
}

.woocommerce-password-strength::before {
	content: '';
	display: block;
	height: 4px;
	width: 100%;
	background-color: #c2c2c2;
	position: absolute;
	left: 0;
	bottom: 0;
}

.woocommerce-password-strength::after {
	content: '';
	display: block;
	height: 4px;
	position: absolute;
	left: 0;
	bottom: 0;
}

.woocommerce-password-strength.short::after {
	background-color: #f44336;
	width: 25%;
}

.woocommerce-password-strength.bad::after {
	background-color: #ff9800;
	width: 50%;
}

.woocommerce-password-strength.good::after {
	background-color: #2196F3;
	width: 75%;
}

.woocommerce-password-strength.strong::after {
	background-color: #4CAF50;
	width: 100%;
}

/*--------------------------------------------------------------
# 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-thumbnail{
	text-align: left;
}

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

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

table.shop_table_responsive tr td.product-remove a {
	text-align: left;
    background: var(--theme--primary-color);
    width: 30px;
    height: 30px;
    display: flex;
    color: var(--theme--button-text-color);
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: var(--theme--button-border-radius);
}

table.shop_table_responsive tr td.product-thumbnail img{
	width: 120px;
	position: relative;
	vertical-align: bottom;
	border: 1px solid var(--theme--form-border-color);
}

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

/*--------------------------------------------------------------
# Cart
--------------------------------------------------------------*/
.woocommerce-cart table {
    border-collapse: collapse;
}

.woocommerce-cart-form th {
    border-left: 0;
    border-right: 0;
    border-top: 0;
    text-transform: uppercase;
    background-color: transparent;
}

.woocommerce-cart-form tr{
    border: 1px solid var(--theme--form-border-color);
}

.woocommerce-cart-form th,
.woocommerce-cart-form td{
    padding: 15px;
    text-align: left;
}

.cart--action-buttons td{
    width: 100%;
    padding: 15px 0;
    display: table-cell;
}

.cart-collaterals{
	max-width: 420px;
    float: right;
    width: 100%;
    display: block;
    padding: 30px;
    background: #f9f9f9;
}

.cart-collaterals .button{
	width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce-cart-form .actions .coupon{
	display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 380px;
    position: relative;
    width: 100%;
    float: left;
}

.woocommerce-cart-form .actions button[name="update_cart"]{
    float: right;
    margin-top: 6px;
	display: inline-block;
    background: var(--theme--secondary-color);
    border-color: var(--theme--secondary-color);
}

.woocommerce-cart-form .actions .coupon label {
    display: none;
}

.woocommerce-cart-form .actions .coupon button{
	background: var(--theme--secondary-color);
    border-color: var(--theme--secondary-color);
	min-width: fit-content;
    position: absolute;
    right: 7px;
}


/*--------------------------------------------------------------
# Checkout
--------------------------------------------------------------*/
.block-order__review{
    float: right;
	max-width: 420px;
    background: #f9f9f9;
    padding: 30px;
}

.woocommerce-checkout-review-order-table tr th:first-child,
.woocommerce-checkout-review-order-table tr td:first-child{
	text-align: left;
}

.woocommerce-checkout-review-order-table tr th:last-child,
.woocommerce-checkout-review-order-table tr td:last-child{
	text-align: right;
}

.block-order__review .wc_payment_methods{
	margin: 0px;
	padding: 0px;
	list-style: none;
}

.wc_payment_methods .woocommerce-info{
	list-style: none;
    margin: 0px 0 20px;
    padding: 15px;
}

.block-order__review button[name="woocommerce_checkout_place_order"]{
	width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*--------------------------------------------------------------
# General WooCommerce components
--------------------------------------------------------------*/

/* 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;
    align-items: center;
    justify-content: flex-start;
	background: #fafafa;
    gap: 25px;
	margin-top: 25px;
	margin-bottom: 20px;
}

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

.woocommerce-tabs ul.tabs li:hover::after,
.woocommerce-tabs ul.tabs li.active::after{
	content: "";
	bottom: 0px;
	width: 100%;
	height: 2px;
	position: absolute;
	background: var(--theme--primary-color);
}

.woocommerce-tabs ul.tabs li a {
	padding: 15px;
	display: block;
	font-weight: bold;
	color: var(--theme--base-color);
	text-decoration: none;
}

.woocommerce-tabs ul.tabs li.active a {
	color: var(--theme--primary-color);;
}

.woocommerce-tabs .panel h2:first-of-type {
	display: none;
}

/* 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-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
	clear: both;
	background-color: #fefefe;
}


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

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

@media screen and (max-width: 768px) {
	.single-product__content{
		flex-direction: column;
	}

	.single-product__content .summary,
	.single-product__content .single-product__main{
		width: 100%;
		flex: 1 1 100%;
	}

	.woocommerce-cart-form th,
	.woocommerce-cart-form td{
		padding: 10px 15px;
	}

	.woocommerce-cart-form .actions .coupon{
		max-width: unset;
	}

	.woocommerce-cart-form .actions button[name="update_cart"]{
		margin-bottom: 20px;
		min-width: 300px;
	}
}
