/* ==========================================================================
   ARCHIVE GRID — WooCommerce shop + product taxonomy archives
   (templates/shop.php).
   These pages render the SHARED approved product card component
   (.product-card.rcs-card, templates/parts/product-card.php) — the same
   component as the homepage rails. This file adapts ONLY the surrounding
   archive grid/container. The card itself is NOT restyled here.
   It also neutralizes the legacy vertical-card overrides in
   commerce-overrides.css for the shared card, so the approved card keeps
   its exact approved look (flex row, 17px radius, no shadow) in archives.
   ========================================================================== */

/* Mobile-first: ONE approved horizontal card per row (320px–767px). */
.rch-template .rch-shop-page .rch-shop-grid {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 12px !important;
}

/* Neutralize legacy vertical-card overrides for the shared approved card. */
.rch-template .rch-shop-page .rch-shop-grid .product-card.rcs-card {
	display: flex !important;
	width: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 0 4px !important;
	padding: 10px 10px 14px !important;
	gap: 10px !important;
	background: #fff !important;
	border: 1px solid rgba(0, 196, 255, .35) !important;
	border-radius: 17px !important;
	box-shadow: none !important;
	overflow: visible !important;
}

/* Tablet: two approved cards per row. */
@media (min-width: 768px) {
	.rch-template .rch-shop-page .rch-shop-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 16px !important;
	}
}

/* Desktop: three approved cards per row — same comfortable card width as
   the homepage rail. */
@media (min-width: 1366px) {
	.rch-template .rch-shop-page .rch-shop-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		gap: 20px !important;
	}
}
