/* Sri Herbals — shop catalog + shared product cards */

body.woocommerce-shop .site-main,
body.tax-product_cat .site-main,
.woocommerce-page .woocommerce {
	background: transparent;
}

.woocommerce-products-header {
	display: none !important;
}

.sri-shop-hero {
	position: relative;
	isolation: isolate;
	margin: 0 0 1.75rem;
	padding: 2rem 0 1.25rem;
	overflow: hidden;
}

.sri-shop-hero__pattern {
	position: absolute;
	inset: -6%;
	opacity: 0.04;
	background-repeat: repeat;
	background-size: 240px auto;
	pointer-events: none;
	z-index: 0;
}

.sri-shop-hero__inner {
	position: relative;
	z-index: 1;
	width: min(1180px, calc(100% - 2rem));
	margin: 0 auto 1.35rem;
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 1.5rem 2rem;
	align-items: end;
}

.sri-shop-hero__eyebrow {
	display: inline-block;
	margin: 0 0 0.55rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #315c45;
}

.sri-shop-hero__title {
	margin: 0 0 0.55rem;
	font-family: var(--sri-serif, "Cormorant Garamond", serif);
	font-size: clamp(1.85rem, 3.5vw, 2.6rem);
	font-weight: 700;
	line-height: 1.15;
	color: #123b2a;
}

.sri-shop-hero__lead {
	margin: 0;
	color: #5a655c;
	font-size: 1rem;
	line-height: 1.6;
	max-width: 36rem;
}

.sri-shop-trust {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem 1rem;
}

.sri-shop-trust li {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: #315c45;
}

.sri-shop-trust__ico {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #eef3ec;
	border: 1px solid rgba(184, 149, 85, 0.3);
	color: #123b2a;
	flex-shrink: 0;
}

.sri-shop-cats {
	position: relative;
	z-index: 1;
	width: min(1180px, calc(100% - 2rem));
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.sri-shop-cats__pill {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0.4rem 1rem;
	border-radius: 999px;
	border: 1px solid rgba(18, 59, 42, 0.14);
	background: #fff;
	color: #123b2a;
	text-decoration: none;
	font-size: 0.84rem;
	font-weight: 700;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sri-shop-cats__pill.is-active,
.sri-shop-cats__pill:hover {
	background: #123b2a;
	border-color: #123b2a;
	color: #fff;
}

.sri-shop-cats__pill--muted {
	opacity: 0.72;
	cursor: default;
}

/* Shared product card */
.sri-pcard {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid rgba(18, 59, 42, 0.08);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(18, 59, 42, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	height: 100%;
	box-sizing: border-box;
}

.sri-pcard:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(18, 59, 42, 0.1);
}

.sri-pcard__top {
	position: relative;
	background: #f5f7f2;
}

.sri-pcard__badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 2;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.sri-pcard__badge--best {
	background: #123b2a;
	color: #fff;
}

.sri-pcard__badge--new {
	background: #d9783a;
	color: #fff;
}

.sri-pcard__veg {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	width: 18px;
	height: 18px;
	border: 1.5px solid #2f7d32;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.sri-pcard__veg-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2f7d32;
}

.sri-pcard__media {
	display: block;
	aspect-ratio: 1 / 1;
	text-decoration: none;
}

.sri-pcard__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 1rem;
	box-sizing: border-box;
}

.sri-pcard__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 0.85rem 1rem 1.05rem;
	text-align: left;
	gap: 0.2rem;
}

.sri-pcard__name {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.3;
	color: #1a1a1a;
}

.sri-pcard__name a {
	color: inherit;
	text-decoration: none;
}

.sri-pcard__name a:hover {
	color: #315c45;
}

.sri-pcard__weight {
	margin: 0;
	font-size: 0.84rem;
	color: #7a857e;
	font-weight: 600;
}

.sri-pcard__price {
	margin: 0.35rem 0 0.55rem;
	font-size: 1.2rem;
	font-weight: 800;
	color: #121212;
	font-variant-numeric: tabular-nums;
}

.sri-pcard__price del {
	opacity: 0.45;
	margin-right: 0.4rem;
	font-size: 0.82em;
	font-weight: 600;
}

.sri-pcard__price ins {
	text-decoration: none;
	font-weight: 800;
}

.sri-pcard__price .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
}

.sri-pcard__controls {
	margin-bottom: 0.65rem;
}

.sri-pcard__qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid rgba(18, 59, 42, 0.16);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.sri-pcard__qty-btn {
	width: 34px;
	height: 34px;
	border: 0;
	background: #f4f6f2;
	color: #123b2a;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}

.sri-pcard__qty-btn:hover {
	background: #e7eee8;
}

.sri-pcard__qty-input {
	width: 42px;
	height: 34px;
	border: 0;
	border-left: 1px solid rgba(18, 59, 42, 0.12);
	border-right: 1px solid rgba(18, 59, 42, 0.12);
	text-align: center;
	font-weight: 700;
	font-size: 0.9rem;
	color: #123b2a;
	-moz-appearance: textfield;
	appearance: textfield;
}

.sri-pcard__qty-input::-webkit-outer-spin-button,
.sri-pcard__qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.sri-pcard__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin-top: auto;
}

.sri-pcard__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 42px;
	padding: 0.45rem 0.55rem;
	border-radius: 10px;
	font-size: 0.78rem;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	box-sizing: border-box;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
	white-space: nowrap;
}

.sri-pcard__btn.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.sri-pcard__btn--add {
	background: #123b2a;
	color: #fff;
	border-color: #123b2a;
}

.sri-pcard__btn--add:hover {
	background: #315c45;
	border-color: #315c45;
	color: #fff;
}

.sri-pcard__btn--buy {
	background: #fff;
	color: #123b2a;
	border-color: #123b2a;
}

.sri-pcard__btn--buy:hover {
	background: #eef3ec;
	color: #123b2a;
}

/* Woo loop uses our cards */
.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 1.25rem !important;
	margin: 0 0 2rem !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	display: none !important;
}

.woocommerce ul.products li.product.sri-pcard,
.woocommerce ul.products li.sri-pcard {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Popup single product card */
.sri-welcome__products .sri-welcome__grid {
	display: grid;
	grid-template-columns: minmax(0, 320px);
	justify-content: center;
	gap: 1rem;
}

.sri-welcome__products .sri-pcard {
	max-width: 320px;
	width: 100%;
	margin: 0 auto;
}

@media (max-width: 1100px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 900px) {
	.sri-shop-hero__inner {
		grid-template-columns: 1fr;
	}

	.sri-shop-trust {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 640px) {
	.sri-shop-trust {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sri-pcard__actions {
		grid-template-columns: 1fr;
	}

	.sri-pcard__btn {
		min-height: 44px;
	}
}

@media (max-width: 480px) {
	.woocommerce ul.products {
		grid-template-columns: 1fr !important;
		gap: 1rem !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sri-pcard {
		transition: none;
	}
}
