/* Product archives — 3 columns and clearer cards. */

body.woocommerce.archive .products.has-ccols,
body.woocommerce.post-type-archive-product .products.has-ccols,
body.woocommerce.tax-product_cat .products.has-ccols,
body.woocommerce.tax-product_tag .products.has-ccols {
	--porto-el-ccol: 3;
}

@media (min-width: 768px) {
	body.woocommerce.archive .products.has-ccols:not(.list),
	body.woocommerce.post-type-archive-product .products.has-ccols:not(.list),
	body.woocommerce.tax-product_cat .products.has-ccols:not(.list),
	body.woocommerce.tax-product_tag .products.has-ccols:not(.list) {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}

	body.woocommerce.archive .products.has-ccols:not(.list) > .product-col,
	body.woocommerce.post-type-archive-product .products.has-ccols:not(.list) > .product-col,
	body.woocommerce.tax-product_cat .products.has-ccols:not(.list) > .product-col,
	body.woocommerce.tax-product_tag .products.has-ccols:not(.list) > .product-col {
		width: 100% !important;
		max-width: none !important;
		flex: none !important;
	}
}

@media (max-width: 767px) {
	body.woocommerce.archive .products.has-ccols:not(.list),
	body.woocommerce.post-type-archive-product .products.has-ccols:not(.list),
	body.woocommerce.tax-product_cat .products.has-ccols:not(.list),
	body.woocommerce.tax-product_tag .products.has-ccols:not(.list) {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	body.woocommerce.archive .products.has-ccols:not(.list) > .product-col,
	body.woocommerce.post-type-archive-product .products.has-ccols:not(.list) > .product-col,
	body.woocommerce.tax-product_cat .products.has-ccols:not(.list) > .product-col,
	body.woocommerce.tax-product_tag .products.has-ccols:not(.list) > .product-col {
		width: 100% !important;
		max-width: none !important;
		flex: none !important;
	}
}

body.woocommerce .products.has-ccols.list,
body.woocommerce .products.has-ccols.product-list {
	grid-template-columns: 1fr !important;
}

body.woocommerce.archive .product-col,
body.woocommerce.post-type-archive-product .product-col,
body.woocommerce.tax-product_cat .product-col,
body.woocommerce.tax-product_tag .product-col {
	padding-bottom: 8px;
}

body.woocommerce.archive .product-col .porto-tb-featured-image,
body.woocommerce.post-type-archive-product .product-col .porto-tb-featured-image,
body.woocommerce.tax-product_cat .product-col .porto-tb-featured-image,
body.woocommerce.tax-product_tag .product-col .porto-tb-featured-image {
	background: #f6f6f6;
	border-radius: 10px;
	overflow: hidden;
}

body.woocommerce.archive .product-col .porto-tb-featured-image img,
body.woocommerce.post-type-archive-product .product-col .porto-tb-featured-image img,
body.woocommerce.tax-product_cat .product-col .porto-tb-featured-image img,
body.woocommerce.tax-product_tag .product-col .porto-tb-featured-image img {
	object-fit: contain;
	width: 100%;
	aspect-ratio: 1;
	transition: transform 0.35s ease;
}

body.woocommerce.archive .product-col:hover .porto-tb-featured-image img,
body.woocommerce.post-type-archive-product .product-col:hover .porto-tb-featured-image img,
body.woocommerce.tax-product_cat .product-col:hover .porto-tb-featured-image img,
body.woocommerce.tax-product_tag .product-col:hover .porto-tb-featured-image img {
	transform: scale(1.04);
}

body.tax-product_cat .product-col .tb-meta-product_cat {
	display: none !important;
}

body.woocommerce.archive .product-col .post-title,
body.woocommerce.post-type-archive-product .product-col .post-title,
body.woocommerce.tax-product_cat .product-col .post-title,
body.woocommerce.tax-product_tag .product-col .post-title {
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7em;
}

body.woocommerce.archive .product-col .post-title a,
body.woocommerce.post-type-archive-product .product-col .post-title a,
body.woocommerce.tax-product_cat .product-col .post-title a,
body.woocommerce.tax-product_tag .product-col .post-title a {
	color: #222529;
}

body.woocommerce.archive .product-col .post-title a:hover,
body.woocommerce.post-type-archive-product .product-col .post-title a:hover,
body.woocommerce.tax-product_cat .product-col .post-title a:hover,
body.woocommerce.tax-product_tag .product-col .post-title a:hover {
	color: #a22523;
}

body.woocommerce.archive .product-col .tb-woo-rating:empty,
body.woocommerce.post-type-archive-product .product-col .tb-woo-rating:empty,
body.woocommerce.tax-product_cat .product-col .tb-woo-rating:empty,
body.woocommerce.tax-product_tag .product-col .tb-woo-rating:empty {
	display: none;
	margin: 0;
}

body.woocommerce.archive .product-col .tb-woo-price,
body.woocommerce.post-type-archive-product .product-col .tb-woo-price,
body.woocommerce.tax-product_cat .product-col .tb-woo-price,
body.woocommerce.tax-product_tag .product-col .tb-woo-price {
	font-size: 1.05rem;
	font-weight: 700;
	color: #222529;
	margin-top: 4px;
}

body.woocommerce.archive .product-col .porto-tb-addcart.cs-bottom,
body.woocommerce.post-type-archive-product .product-col .porto-tb-addcart.cs-bottom,
body.woocommerce.tax-product_cat .product-col .porto-tb-addcart.cs-bottom,
body.woocommerce.tax-product_tag .product-col .porto-tb-addcart.cs-bottom {
	opacity: 1;
	visibility: visible;
	transform: none;
	background-color: #a22523;
}

.gr-archive-cta {
	display: inline-flex;
	align-items: center;
	margin-top: 8px;
	padding: 6px 0 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #a22523;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.gr-archive-cta:hover,
.gr-archive-cta:focus {
	color: #7d1c1a;
	border-bottom-color: #7d1c1a;
}

body.woocommerce.archive .widget_product_categories .product-categories li,
body.woocommerce.post-type-archive-product .widget_product_categories .product-categories li,
body.woocommerce.tax-product_cat .widget_product_categories .product-categories li {
	padding: 3px 0;
	line-height: 1.45;
}

body.woocommerce.archive .widget_product_categories .current-cat > a,
body.woocommerce.post-type-archive-product .widget_product_categories .current-cat > a,
body.woocommerce.tax-product_cat .widget_product_categories .current-cat > a {
	color: #a22523;
	font-weight: 700;
}

body.woocommerce.archive .shop-loop-before,
body.woocommerce.post-type-archive-product .shop-loop-before,
body.woocommerce.tax-product_cat .shop-loop-before {
	align-items: center;
	margin-bottom: 1.25rem;
}

@media (max-width: 575px) {
	body.woocommerce.archive .products.has-ccols:not(.list),
	body.woocommerce.post-type-archive-product .products.has-ccols:not(.list),
	body.woocommerce.tax-product_cat .products.has-ccols:not(.list),
	body.woocommerce.tax-product_tag .products.has-ccols:not(.list) {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px;
	}

	body.woocommerce.archive .product-col .post-title,
	body.woocommerce.post-type-archive-product .product-col .post-title,
	body.woocommerce.tax-product_cat .product-col .post-title {
		font-size: 0.82rem;
		min-height: 2.4em;
	}
}
