/*!
Theme Name: ecommerce
*
*	Стили для arhive-product
* 
* 
* 
*/

.site-main {
	display: flex;
	flex-direction: column;
	background-color: var(--bg1);
	gap: 2em;
}

.woocommerce-breadcrumb {
    font-size: var(--h6);
    font-weight: 500;
    text-transform: uppercase;
}

.page-title {
	font-size: var(--h4);
	color: var(--elem_color1);
	text-transform: uppercase;
}

.archive-header {
	display: flex;
	padding: 1em 0;
}

.archive-cat-block {
	display: flex;
	flex-direction: row;
	gap: 10px;
	flex-wrap: wrap;
}

.archive-cat-block__text-block {
	position: absolute;
}

.archive-cat-block__wrap {
	width: 30vw;
}

.archive-cat-block__image {
	height: 100%;
    min-width: 100%;
    object-fit: cover;
}

.ecproduct {
	display: flex;
	flex-flow: row wrap;
	gap: 1rem;
}

.ecproduct__item {
	overflow: hidden;
	position: relative;
	padding: 1.5em;
    background-color: white;
    box-shadow: 0 0 100px rgb(198 198 198 / 37%);
    border-radius: 1em;
	transition: 0.3s;
}

.ecproduct__item:hover {
	box-shadow: 0 0 50px rgb(198 198 198 / 80%);
}

.eccolumns-4 > .ecproduct__item {
	width: calc((100% - 3rem) / 4);
}

.eccolumns-3 > .ecproduct__item {
	width: calc((100% - 2rem) / 3);
}

a.ecproduct__link {
	height: 100%;
    display: flex;
    flex-direction: column;
	transition: 0.5s all ease;
	gap: 1em;
}

a.ecproduct__link:hover .ecproduct__desc-wrapper > * {
	color: var(--light-blue);
}

.ecproduct__title {
	display: flex;
	/*font-size: var(--h5);*/
	font-weight: 500;
	padding-bottom: 1em;
	color: var(--elem_color1);
}

.ecproduct__contentproduct-img {

}

.ecproduct__desc-wrapper {
    display: flex;
    flex-direction: column;
}

.ecproduct__desc-wrapper > * {
	transition: 0.5s all ease;
}

.price {
	/*font-size: var(--h5);*/
	font-weight: 600;
	display: flex;
	padding-bottom: 0.5em;
	justify-content: space-between;
	align-items: baseline;
/*	color: var(--elem_color1);*/
}

.price > del {
	color: #999;
	order: 2;
}

.price > ins {

}

/*************sale*****************/

.onsale {
    position: absolute;
    top: 12em;
    right: 0;
    background: #fb0000;
    color: var(--text_color1);
    padding: 1em 3em 1rem 1em;
    clip-path: polygon(100.00% 0.00%, 80% 50%, 100.00% 100%, 0.00% 100%, 0.00% 0.00%);
    border-radius: 6px 0 0 6px;
    font-size: var(--h8);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: rotate(100grad);
    transform-origin: right top;
    width: 12em;
    height: 4em;
    font-weight: 700;

}

/*************widgets**************/

.ecwidget {
	display: flex;
	flex-flow: column wrap;
	font-size: var(--h5);
	font-weight: 500;
}

.ecwidget__container {
	width: 100%;
	display: flex;
    flex-direction: column;
    padding-bottom: 1em;
}

.ecwidget__container div.wc-block-product-filter-chips__items {
	display: flex;
	justify-content: space-between;
    gap: 1em;
}

.ecwidget__container div.wc-block-product-filter-chips__items button {
	display: flex;
	flex: 1;
	justify-content: center;
	color: var(--text_color2);
    background-color: var(--elem_color2);
    border-radius: 6px;
    border: 0;
    font-size: var(--h6);
    font-weight: 500;
}

.ecwidget__container div.wc-block-product-filter-chips__items button:hover,
header.wc-block-product-filters__overlay-header button:hover {
	color: var(--text_color1);
    background-color: var(--hovlink_color2);
}

.ecwidget__container>.wc-block-product-categories {
	margin: 0;
}

.ecwidget__container ul {
	display: flex;
    justify-content: center;
}

.ecwidget__container ul>li {
	display: flex;
    padding: 0 2em;
}

.ecwidget__container ul>li a {
	padding: 1em 2.5em;
	color: var(--text_color2);
    background-color: var(--elem_color2);
    border-radius: 6px;
    width: 100%;
    height: 100%;
    align-content: center;
}

.ecwidget__container ul>li a:hover,
.ecwidget__container ul>li a.active-category {
	color: var(--text_color1);
    background-color: var(--hovlink_color2);
}

/*.ecwidget__title {
	background: var(--gray);
    color: var(--dark-blue);
    padding: 0.5rem;
}*/

.ecwidget__att-container {
	padding: 0.5rem;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

.ecwidget__item > a:hover {
	color: var(--light-blue);
}

.ecwidget__item-chosen {

}

.ecwidget__cancel {
	display: flex;
    justify-content: center;
    background: var(--gray);
    color: var(--dark-blue);
    padding: 0.5rem;
    margin-bottom: 1rem;
    font-size: var(--h7);
	transition: 0.5s all ease;
}

a.ecwidget__cancel:visited {
	color: var(--dark-blue);
}

a.ecwidget__cancel:hover {
	background: #b5b5b5;
}

/***********sorting***************/
.wc-block-catalog-sorting {
	display: flex;
    flex-direction: column;
}

.sorting {
	display: flex;
    flex-direction: column;
    position: relative;
}

.sorting__select {
    text-transform: uppercase;
    font-weight: 700;
    color: var(--dark-blue);
    line-height: 1.5;
    padding: 0.5rem 1.5rem 0.5rem 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--gray);
    border: 0;
    position: relative;
   	display: flex;
}

.sorting:after {
	content: "";
    display: block;
    border-style: solid;
    border-width: 6px;
    border-color: var(--dark-blue) transparent transparent transparent;
    pointer-events: none;
    position: absolute;
    top: 50%;
    right: 0.5rem;
    margin-top: -3px;
}

.sorting__select > * {

}




.wp-block-woocommerce-filter-wrapper {
	display: flex;
}

.wc-blocks-filter-wrapper {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.wp-block-heading {
	font-size: var(--h6);
}

.wp-block-woocommerce-attribute-filter {
	display: flex;
	flex-direction: column;
}


@media (max-width: 980px) {

	.eccolumns-4 > .ecproduct__item,
	.eccolumns-3 > .ecproduct__item {
		width: calc((100% - 1rem) / 2);
	}

}


@media (max-width: 600px) {

	.eccolumns-4 > .ecproduct__item,
	.eccolumns-3 > .ecproduct__item {
		width: 100%;
	}

	.archive-loop, .ecwidget, .ecwidget__cancel {
	    /*width: 100%;*/
	}


	.ecwidget {
		gap: 0;
		/*font-size: var(--h5);*/
	}

	.ecwidget footer.wc-block-product-filters__overlay-footer {
		display: none;
	}

	.ecwidget__cancel {
		margin: 1rem 0;
		font-size: var(--h5);
	}

	.ecwidget__container {
		width: 100%;
	}

	.ecwidget__container ul {
		flex-direction: column;
	    gap: 1em;
	}

	.ecwidget__container ul>li {
		padding: 0;
	}

	.ecwidget__container ul>li a {
		display: flex;
	    justify-content: center;
	}

	.ecwidget__container div.wc-block-product-filter-chips__items button {
		flex: 1 40%;
	    font-size: var(--h6);
	}

	div.ecwidget__container .wc-block-product-filters__overlay {
		z-index: 9999999;
	}

	header.wc-block-product-filters__overlay-header {
		padding: 2em 2em 1em;
	}

	header.wc-block-product-filters__overlay-header button {
		padding: 0.5em;
		border-radius: 6px;
	}

	header.wc-block-product-filters__overlay-header button:hover {
		background-color: var(--hovlink_color2);
		color: var(--text_color1);
	}

	div.ecwidget__container .wc-block-product-filters__overlay {
		font-size: var(--h5);
	}

	.ecwidget__container .wc-block-product-filters__open-overlay {
		display: flex;
		font-size: var(--h5);
	    font-weight: 500;
	}

	.ecwidget__att-container{
		display: flex;
	    justify-content: space-around;
	    flex-wrap: wrap;
	}

	.ecwidget__item {
		min-width: 30vw;
	    display: flex;
	    justify-content: center;
	}

	section.related {
		width: 90vw;
		margin: 0 auto;
	}

	section.up-sells {
		width: 90vw;
		margin: 0 auto;
	}

	section.up-sells > .eccolumns-4 > .ecproduct__item,
	section.up-sells > .eccolumns-3 > .ecproduct__item {
		width: calc(50% - 1rem);
	}

	section.up-sells > .eccolumns-4 > .ecproduct__item > a > div.ecproduct__desc-wrapper,
	section.up-sells > .eccolumns-3 > .ecproduct__item > a > div.ecproduct__desc-wrapper {
	    font-size: var(--h6);
	}

	.price {
		flex-direction: column;
	}

}