/**
 * Baby Nola — shop / category archive.
 *
 * Styles the markup WooCommerce's own archive-product.php already prints
 * (ul.products, li.product, .price, .button.add_to_cart_button, .onsale) so
 * "Select options" and pagination keep working unmodified. Brand blue matches
 * the home page and product page (--brand: #3097fd / #1d7fce).
 *
 * @package BabyChild
 */

:root {
	--bss-shop-blue: #3097fd;
	--bss-shop-blue-dark: #1d7fce;
	--bss-shop-light-blue: #f1f8ff;
	--bss-shop-ink: #1f2530;
	--bss-shop-gray: #6b7280;
	--bss-shop-line: #ececf0;
	--bss-shop-radius: 16px;
}

body.woocommerce-shop .site-content,
body.tax-product_cat .site-content,
body.tax-product_tag .site-content {
	background: #fff;
}

/* ===== Hero ===== */
.bss-shop-hero {
	background: linear-gradient( 180deg, var( --bss-shop-light-blue ) 0%, #fff 100% );
	padding: 40px 20px 28px;
	text-align: center;
	border-bottom: 1px solid var( --bss-shop-line );
	margin-bottom: 32px;
}

.bss-shop-hero-inner {
	max-width: 720px;
	margin: 0 auto;
}

.bss-shop-title.bss-shop-title {
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-weight: 800;
	font-size: clamp( 28px, 5vw, 40px );
	color: var( --bss-shop-ink );
	margin: 0 0 10px;
	letter-spacing: -0.01em;
}

.bss-shop-tagline {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var( --bss-shop-gray );
	font-size: 16px;
	margin: 0 0 18px;
}

.bss-shop-trust {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.bss-shop-trust li {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 13.5px;
	font-weight: 600;
	color: var( --bss-shop-blue-dark );
	background: #fff;
	border: 1px solid var( --bss-shop-line );
	border-radius: 999px;
	padding: 7px 14px;
}

/* ===== Layout wrap ===== */
.bss-shop-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px 48px;
}

.bss-shop-wrap .woocommerce-notices-wrapper:empty {
	display: none;
}

.bss-shop-wrap .woocommerce-result-count,
.bss-shop-wrap .woocommerce-ordering {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var( --bss-shop-gray );
	font-size: 14px;
}

.bss-shop-wrap .woocommerce-ordering select {
	border-radius: 10px;
	border: 1px solid var( --bss-shop-line );
	padding: 8px 12px;
}

/* ===== Product grid ===== */
.bss-shop-wrap ul.products {
	display: grid !important;
	grid-template-columns: repeat( auto-fill, minmax( 240px, 1fr ) );
	gap: 24px;
	margin: 0 0 32px !important;
	padding: 0 !important;
	list-style: none !important;
}

.bss-shop-wrap ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	background: #fff;
	border: 1px solid var( --bss-shop-line );
	border-radius: var( --bss-shop-radius );
	padding: 18px 18px 22px;
	text-align: center;
	position: relative;
	transition: box-shadow .2s ease, transform .2s ease;
}

.bss-shop-wrap ul.products li.product:hover {
	box-shadow: 0 12px 28px rgba( 31, 37, 48, 0.08 );
	transform: translateY( -2px );
}

.bss-shop-wrap ul.products li.product a {
	text-decoration: none;
	color: inherit;
	display: block;
}

.bss-shop-wrap ul.products li.product img {
	border-radius: 12px;
	background: var( --bss-shop-light-blue );
	margin: 0 auto 14px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
	height: auto;
}

.bss-shop-wrap ul.products li.product .onsale {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var( --bss-shop-blue );
	color: #fff;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-weight: 700;
	font-size: 12px;
	border-radius: 999px;
	min-height: 0;
	min-width: 0;
	line-height: 1;
	padding: 6px 10px;
	top: auto;
	right: auto;
	margin: 0;
}

.bss-shop-wrap ul.products li.product .woocommerce-loop-product__title {
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-weight: 700;
	font-size: 16px;
	color: var( --bss-shop-ink );
	margin: 4px 0 6px;
}

.bss-shop-wrap ul.products li.product .price {
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	color: var( --bss-shop-blue-dark );
	font-weight: 700;
	display: block;
	margin-bottom: 14px;
}

.bss-shop-wrap ul.products li.product .price del {
	color: #9aa2ad;
	font-weight: 500;
	margin-right: 6px;
	opacity: 1;
}

.bss-shop-wrap ul.products li.product .price ins {
	text-decoration: none;
}

.bss-shop-wrap ul.products li.product .button {
	display: inline-block;
	background: var( --bss-shop-blue );
	color: #fff !important;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-weight: 700;
	font-size: 14px;
	border-radius: 999px;
	padding: 10px 22px;
	transition: background .15s ease;
}

.bss-shop-wrap ul.products li.product .button:hover {
	background: var( --bss-shop-blue-dark );
}

/* ===== Pagination ===== */
.bss-shop-wrap nav.woocommerce-pagination ul {
	border: none !important;
	gap: 6px;
	display: flex;
	justify-content: center;
}

.bss-shop-wrap nav.woocommerce-pagination ul li {
	border: none !important;
}

.bss-shop-wrap nav.woocommerce-pagination ul li a,
.bss-shop-wrap nav.woocommerce-pagination ul li span {
	border-radius: 10px !important;
	border: 1px solid var( --bss-shop-line ) !important;
	color: var( --bss-shop-ink ) !important;
}

.bss-shop-wrap nav.woocommerce-pagination ul li a:hover,
.bss-shop-wrap nav.woocommerce-pagination ul li span.current {
	background: var( --bss-shop-blue ) !important;
	color: #fff !important;
	border-color: var( --bss-shop-blue ) !important;
}
