/* ---------- Fonts ---------- */
/* Saira: headings (card titles, sidebar heading) + price. Manrope: body copy
   (category/eyebrow text, category names, pills) + buttons. Both loaded via
   Google Fonts in class-wc-coa-shop.php; these are the fallback stacks in
   case that request is blocked. */
.wc-coa-shop-sidebar-title,
.wc-coa-shop-card-title,
.wc-coa-shop-price-label,
.wc-coa-shop-price-value {
	font-family: 'Saira', Arial, sans-serif;
}
.wc-coa-shop-card-eyebrow,
.wc-coa-shop-cat-name,
.wc-coa-shop-cat-count,
.wc-coa-shop-pill,
.wc-coa-shop-clear,
.wc-coa-shop-atc .button {
	font-family: 'Manrope', Arial, sans-serif;
}

/* ---------- Layout: sidebar (categories) + product grid ---------- */
.wc-coa-shop-layout {
	display: flex;
	align-items: flex-start;
	gap: 2em;
}
.wc-coa-shop-sidebar {
	flex: 0 0 260px;
	width: 260px;
	background: #F7EDE4;
	border-radius: 14px;
	padding: 1.5em;
	box-sizing: border-box;
	align-self: stretch;
}
.wc-coa-shop-products {
	flex: 1 1 0;
	min-width: 0;
}
@media (max-width: 800px) {
	.wc-coa-shop-layout {
		flex-direction: column;
	}
	.wc-coa-shop-sidebar {
		width: 100%;
		flex-basis: auto;
	}
}

/* ---------- Sidebar contents ---------- */
.wc-coa-shop-sidebar-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 1em;
}
.wc-coa-shop-sidebar-title {
	margin: 0;
	font-size: 1.1em;
}
.wc-coa-shop-clear {
	background: none;
	border: none;
	padding: 0;
	color: #8a6b3f;
	font-size: 0.85em;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
}
.wc-coa-shop-clear:hover {
	color: #5c4a2a;
}
.wc-coa-shop-cats {
	/* Full height — every category listed, no internal scrollbar. */
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6em;
}
.wc-coa-shop-cat label {
	display: flex;
	align-items: center;
	gap: 0.6em;
	cursor: pointer;
	font-size: 0.95em;
}
.wc-coa-shop-cat-checkbox {
	flex: 0 0 auto;
}
.wc-coa-shop-cat-name {
	flex: 1 1 auto;
	color: #2c2620;
}
.wc-coa-shop-cat-count {
	color: #9a8f85;
	font-size: 0.88em;
}
.wc-coa-shop-cat--empty .wc-coa-shop-cat-name {
	color: #8a8078;
}
.wc-coa-shop-cat-none {
	color: #8a8078;
	font-size: 0.9em;
}

/* ---------- Product grid: fixed 3-up on desktop ---------- */
.wc-coa-shop-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75em;
}
@media (max-width: 1000px) {
	.wc-coa-shop-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
@media (max-width: 640px) {
	.wc-coa-shop-grid {
		grid-template-columns: 1fr !important;
	}
}
.wc-coa-shop-empty {
	color: #7a7168;
	padding: 2em 0;
}

/* ---------- Product card ---------- */
.wc-coa-shop-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.wc-coa-shop-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	border-color: #e3ddd6;
	transform: translateY(-2px);
}
.wc-coa-shop-card-image {
	display: block;
	background: #f2f0ee;
	aspect-ratio: 1 / 1;
	overflow: hidden;
}
.wc-coa-shop-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.wc-coa-shop-card-body {
	padding: 1.25em 1.4em 1.5em;
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}
.wc-coa-shop-card-eyebrow {
	margin: 0;
	color: #6f7d4f;
	font-size: 0.85em;
	font-weight: 600;
}
.wc-coa-shop-card-title {
	margin: 0;
	font-size: 1.4em;
	line-height: 1.25;
}
.wc-coa-shop-card-title a {
	color: #1f1b16;
	text-decoration: none;
	/* Clamp the product name to 2 lines max, with an ellipsis if it's longer. */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-clamp: 2;
	overflow: hidden;
}
.wc-coa-shop-card-title a:hover {
	text-decoration: underline;
}
.wc-coa-shop-card-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin: 0.3em 0 0.2em;
}
.wc-coa-shop-pill {
	border: 1px solid #e3ddd6;
	border-radius: 999px;
	padding: 0.35em 0.9em;
	font-size: 0.85em;
	color: #4a4038;
	background: #fff;
}
.wc-coa-shop-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	margin-top: 0.6em;
	flex-wrap: wrap;
}
.wc-coa-shop-card-price {
	display: flex;
	flex-direction: column;
	gap: 0.1em;
	min-width: 0;
}
.wc-coa-shop-price-label {
	color: #9a8f85;
	font-size: 0.82em;
}
/* Old (struck-through) price on top, current price underneath — not side by
   side, so a long price pair never pushes the button off the card. */
.wc-coa-shop-price-old {
	font-size: 0.85em;
	font-weight: 400;
	color: #a89c90;
	text-decoration: line-through;
}
.wc-coa-shop-price-value {
	font-size: 1.15em;
	font-weight: 700;
	color: #1f1b16;
	text-decoration: none;
}

/* ---------- Add to cart / Select options button ----------
 * WooCommerce's own text label ("Add to cart" for simple products, "Select
 * options" for variable products) shown at a small font size — keeps the
 * pill compact on the card without overflowing — on a #6A8B48 background
 * with #FFF9F8 text, matching the COA page's buttons. */
.wc-coa-shop-atc {
	flex: 0 0 auto;
}
.wc-coa-shop-atc .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #6A8B48 !important;
	color: #FFF9F8 !important;
	text-decoration: none;
	border-radius: 999px;
	padding: 0.55em 1.1em;
	border: none;
	line-height: 1.2;
	font-size: 0.78em;
	font-weight: 600;
	white-space: nowrap;
}
.wc-coa-shop-atc .button:hover {
	background: #597639 !important;
	color: #FFF9F8 !important;
}
.wc-coa-shop-atc .added_to_cart {
	display: block;
	margin-top: 0.4em;
	font-size: 0.82em;
	text-align: center;
	font-family: 'Manrope', Arial, sans-serif;
}
