/* Shop archive */
.shop-archive {
	background: #fff;
}

.shop-archive-hero {
	background: linear-gradient(180deg, #f2fbf4 0%, #ffffff 100%);
	padding: 36px 0 28px;
	border-bottom: 1px solid #e8efe9;
}

.shop-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #6b7c72;
	margin-bottom: 18px;
}

.shop-breadcrumb a {
	color: #157347;
	text-decoration: none;
	font-weight: 500;
}

.shop-breadcrumb a:hover {
	text-decoration: underline;
}

.shop-kicker {
	color: #67da48;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	margin: 0 0 8px;
}

.shop-archive-heading h1 {
	margin: 0 0 10px;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 700;
	color: #16352b;
}

.shop-desc {
	margin: 0;
	max-width: 640px;
	color: #55665d;
	font-size: 15px;
	line-height: 1.6;
}

.shop-archive-body {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 32px;
	padding-top: 36px;
	padding-bottom: 64px;
}

.shop-cats {
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: sticky;
	top: 20px;
	align-self: start;
}

.shop-cat-chip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid #e5eee8;
	background: #fff;
	color: #16352b;
	text-decoration: none;
	font-size: 14px;
	font-weight: 550;
	transition: 0.2s ease;
}

.shop-cat-chip span {
	display: inline-flex;
	min-width: 24px;
	height: 24px;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #f2fbf4;
	color: #157347;
	font-size: 12px;
	font-weight: 600;
}

.shop-cat-chip:hover,
.shop-cat-chip.is-active {
	background: #157347;
	border-color: #157347;
	color: #fff;
}

.shop-cat-chip:hover span,
.shop-cat-chip.is-active span {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 22px;
	flex-wrap: wrap;
}

.shop-result-count {
	margin: 0;
	font-size: 14px;
	color: #55665d;
	font-weight: 500;
}

.woocommerce-ordering select {
	padding: 10px 14px;
	border-radius: 8px;
	border: 1px solid #e5eee8;
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	color: #16352b;
}

.shop-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.shop-grid-item {
	margin: 0;
	list-style: none;
}

.shop-grid .product-card {
	height: 100%;
	padding: 16px;
	border: 1px solid #eef3f0;
	border-radius: 14px;
	background: #fff;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.shop-grid .product-card:hover {
	box-shadow: 0 12px 28px rgba(21, 115, 71, 0.1);
	transform: translateY(-2px);
}

.shop-grid .product-img-wrap {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f2fbf4;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 12px;
}

.shop-grid .product-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.shop-empty {
	text-align: center;
	padding: 48px 20px;
	border: 1px dashed #d7e5dc;
	border-radius: 14px;
	background: #f8fcf9;
}

.shop-empty p {
	margin: 0 0 16px;
	color: #55665d;
}

.woocommerce-pagination {
	margin-top: 36px;
}

.woocommerce-pagination ul {
	display: flex;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-pagination .page-numbers {
	display: inline-flex;
	min-width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	border: 1px solid #e5eee8;
	color: #16352b;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

.woocommerce-pagination .page-numbers.current,
.woocommerce-pagination .page-numbers:hover {
	background: #157347;
	border-color: #157347;
	color: #fff;
}

/* Single product buy actions (Woo form) */
.sp-detail .shop-breadcrumb {
	margin-top: 20px;
}

.sp-buy-actions form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	width: 100%;
}

.sp-buy-actions .quantity {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.sp-buy-actions .quantity .qty {
	width: 72px;
	height: 44px;
	border: 1px solid #dfe8e3;
	border-radius: 8px;
	padding: 0 10px;
	font-family: inherit;
	font-size: 15px;
	text-align: center;
}

.sp-buy-actions .single_add_to_cart_button {
	height: 44px;
	padding: 0 18px;
	border: none;
	border-radius: 8px;
	background: #67da48;
	color: #123528;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
}

.sp-buy-actions .single_add_to_cart_button:hover {
	background: #57c53b;
}

.sp-gallery-cart {
	margin-top: 6px;
	padding: 12px 16px;
	background: #f2fbf4;
	border: 1px solid #157347;
	border-radius: 8px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
}

.sp-gallery-cart-price {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	margin-right: auto;
}

.sp-gallery-cart-price .price,
.sp-gallery-cart-price .amount {
	font-size: 16px;
	font-weight: 700;
	color: #157347;
	line-height: 1.2;
}

.sp-gallery-cart-price del {
	opacity: 0.65;
	font-weight: 500;
	font-size: 13px;
	margin-right: 6px;
}

.sp-gallery-cart-price del .amount {
	font-size: 13px;
	font-weight: 500;
	color: #6b7280;
}

.sp-gallery-cart-price ins {
	text-decoration: none;
}

.sp-gallery-cart-price em {
	font-style: normal;
	font-size: 12px;
	font-weight: 600;
	color: #67da48;
}

.sp-gallery-cart form.cart {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 14px;
	margin: 0;
}

.sp-gallery-cart .quantity {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.sp-gallery-cart .quantity::before {
	content: "Qty.";
	font-size: 14px;
	font-weight: 600;
	color: #16352b;
	white-space: nowrap;
}

.sp-gallery-cart .quantity .qty {
	width: 72px;
	height: 40px;
	border: 1px solid #c9d9d0;
	border-radius: 4px;
	padding: 0 8px;
	font-family: inherit;
	font-size: 14px;
	text-align: center;
	background: #fff;
	color: #16352b;
}

.sp-gallery-cart .quantity .qty:focus {
	border-color: #157347;
	outline: none;
}

.sp-gallery-cart .single_add_to_cart_button {
	flex: 0 0 auto;
	min-width: 120px;
	height: 40px;
	padding: 0 20px;
	border: none;
	border-radius: 4px;
	background: #157347;
	color: #fff;
	font-weight: 700;
	font-family: inherit;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s ease;
	white-space: nowrap;
}

.sp-gallery-cart .single_add_to_cart_button:hover {
	background: #67da48;
	color: #123528;
}

.sp-gallery-cart .variations,
.sp-gallery-cart table.variations {
	width: 100%;
	margin: 0 0 10px;
}

.sp-gallery-cart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 14px;
	margin: 0;
}

.sp-quote-form .card-heading,
.sp-quote-card .card-heading {
	color: #157347;
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 18px;
}

.sp-quote-form label.row {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 14px;
}

.sp-quote-form label.row span {
	font-size: 13px;
	color: #16352b;
	font-weight: 600;
}

.sp-quote-form input,
.sp-quote-form select,
.sp-quote-form textarea {
	width: 100%;
	padding: 12px 14px;
	border-radius: 8px;
	border: 1px solid #e6e6e6;
	background: #fbfcfd;
	font-size: 14px;
	font-family: inherit;
	color: #222;
}

.sp-quote-form textarea {
	min-height: 100px;
	resize: vertical;
}

.sp-short p:last-child {
	margin-bottom: 0;
}

.sp-tab-panel .sp-spec-table {
	width: 100%;
}

@media (max-width: 1100px) {
	.shop-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.shop-archive-body {
		grid-template-columns: 1fr;
	}

	.shop-cats {
		flex-direction: row;
		flex-wrap: wrap;
		position: static;
	}

	.shop-cat-chip {
		flex: 1 1 auto;
	}

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

@media (max-width: 560px) {
	.shop-grid {
		grid-template-columns: 1fr;
	}
}
