/* =========================================================
   PRODUCTS ARCHIVE / SHOP
   ========================================================= */

.products-archive {
	padding: 4rem 0 5rem;
	background: #faf9f5;
}

.products-archive__header {
	text-align: center;
	margin-bottom: 3rem;
}

.products-archive__title {
	margin: 0;
	color: #005f3c;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.2;
}

.products-archive__accent {
	width: 60px;
	height: 3px;
	margin: 1rem auto 0;
	background: #c6a23a;
	border-radius: 999px;
}

.products-archive__description {
	max-width: 720px;
	margin: 1rem auto 0;
	color: #666;
	line-height: 1.7;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.products-archive__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.products-archive__count {
	color: #666;
	font-size: .95rem;
}

.products-archive__sorting select {
	min-width: 170px;
	padding: .55rem 2rem .55rem .75rem;
	border: 1px solid #ddd;
	border-radius: .4rem;
	background: #fff;
}


/* =========================================================
   PRODUCTS GRID
   ========================================================= */

.products-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
	align-items: stretch;
	width: 100%;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.products-grid .product-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: none;
	min-width: 0;
	height: 100%;
	margin: 0;
	background: #fff;
	border: 1px solid rgba(0, 95, 60, .08);
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
	transition:
		transform .25s ease,
		box-shadow .25s ease;
}

.products-grid .product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 14px 35px rgba(0, 0, 0, .10);
}


/* =========================================================
   PRODUCT IMAGE — 9:12
   ========================================================= */

.product-card__image-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 9 / 12;
	overflow: hidden;
	background: #f3f1eb;
}

.product-card__image-link {
	display: block;
	width: 100%;
	height: 100%;
}

.product-card__image {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	object-position: center;
	margin: 0 !important;
	transition: transform .4s ease;
}

.products-grid .product-card:hover .product-card__image {
	transform: scale(1.035);
}


/* =========================================================
   SALE BADGE
   ========================================================= */

.product-card__badge {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	height: 48px;
	padding: .35rem .7rem;
	border-radius: 50%;
	background: #a79b00;
	color: #fff;
	font-size: .78rem;
	font-weight: 700;
}


/* =========================================================
   PRODUCT CONTENT
   ========================================================= */

.product-card__content {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	padding: 1.35rem 1.35rem 1.5rem;
}

.product-card__category {
	margin-bottom: .45rem;
	color: #777;
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.product-card__category a {
	color: inherit;
	text-decoration: none;
}

.product-card__title {
	margin: 0 0 .7rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.product-card__title a {
	color: #174f3b;
	text-decoration: none;
}

.product-card__title a:hover {
	color: #008656;
}

.product-card__description {
	margin-bottom: 1.2rem;
	color: #666;
	font-size: .92rem;
	line-height: 1.6;
}


/* =========================================================
   PRICE + ADD TO CART
   ========================================================= */

.product-card__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: auto;
}

.product-card__price {
	font-size: 1.05rem;
	font-weight: 700;
	white-space: nowrap;
}

.product-card__price del {
	margin-right: .3rem;
	color: #999;
	font-size: .85rem;
	font-weight: 400;
}

.product-card__price ins {
	color: #8c7900;
	text-decoration: none;
}

.product-card__add-to-cart {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: .65rem 1rem;
	border: 0 !important;
	border-radius: .55rem;
	background: linear-gradient(90deg, #008656 4%, #0258be 80%) !important;
	color: #fff !important;
	font-size: .88rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
}

.product-card__add-to-cart:hover,
.product-card__add-to-cart:focus {
	color: #fff !important;
	opacity: .92;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.products-pagination {
	margin-top: 3rem;
	text-align: center;
}

.products-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	margin: 0 .2rem;
	padding: 0 .65rem;
	border-radius: .45rem;
	background: #fff;
	color: #174f3b;
	text-decoration: none;
}

.products-pagination .page-numbers.current {
	background: #008656;
	color: #fff;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

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

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

	.products-archive {
		padding: 3rem 0 4rem;
	}

	.products-archive__top {
		align-items: flex-start;
		flex-direction: column;
	}

	.products-archive__sorting {
		width: 100%;
	}

	.products-archive__sorting select {
		width: 100%;
	}

	.product-card__bottom {
		align-items: stretch;
		flex-direction: column;
	}

	.product-card__add-to-cart {
		width: 100%;
	}

}


/* =========================================================
   FINAL MOBILE PRODUCTS GRID OVERRIDE
   Keeps mobile at ONE full-width column.
   ========================================================= */

@media (max-width: 767px) {

	main#main .products-archive .container-site .products-grid {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		grid-auto-columns: auto !important;
		width: 100% !important;
		gap: 24px !important;
	}

	main#main .products-archive .container-site .products-grid .product-card {
		display: flex !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		float: none !important;
		margin: 0 !important;
	}

	main#main .products-archive .container-site .products-grid .product-card__image-wrap {
		width: 100% !important;
	}

	main#main .products-archive .container-site .products-grid .product-card__image-link {
		display: block !important;
		width: 100% !important;
		height: 100% !important;
	}

	main#main .products-archive .container-site .products-grid .product-card__image {
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		object-fit: contain !important;
	}

	main#main .products-archive .container-site .products-grid .product-card__content {
		width: 100% !important;
	}

}