/* BUELEC catalog product cards — modern bordered card, brand orange actions. */

/* Grid rhythm */
body.woocommerce ul.products {
	gap: 24px;
}

/* The card itself */
body.woocommerce ul.products li.product {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	padding: 18px 18px 16px;
	margin-bottom: 0;
	display: flex;
	flex-direction: column;
	transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

body.woocommerce ul.products li.product:hover {
	border-color: #d8d8d8;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
	transform: translateY(-4px);
}

/* Whole card clicks through to the product; make link a flex column */
body.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

/* Image area: contained, gentle zoom on hover */
body.woocommerce ul.products li.product img {
	margin: 0 auto 14px;
	max-height: 180px;
	width: auto;
	object-fit: contain;
	transition: transform .25s ease;
}

body.woocommerce ul.products li.product:hover img {
	transform: scale(1.05);
}

/* Sale badge: brand orange chip, top-left */
body.woocommerce ul.products li.product.sales-flash-overlay span.onsale,
body.woocommerce ul.products li.product span.onsale,
body.woocommerce span.onsale {
	position: absolute;
	top: 12px;
	left: 12px;
	right: auto;
	display: inline-block;
	width: auto;
	min-width: 0;
	max-width: none;
	white-space: nowrap;
	min-height: 0;
	line-height: 1.6;
	padding: 3px 10px;
	margin: 0;
	border-radius: 4px;
	background: #e8611a;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-align: center;
}

/* Title: two-line clamp so rows align */
body.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	color: #1a1a1a;
	margin: 0 0 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.9em;
}

/* Price: bold current, muted struck regular */
body.woocommerce ul.products li.product .price {
	font-size: 15px;
	font-weight: 700;
	color: #111;
	margin: 0 0 14px;
}

body.woocommerce ul.products li.product .price del {
	color: #999;
	font-weight: 400;
	margin-right: 6px;
}

body.woocommerce ul.products li.product .price ins {
	text-decoration: none;
}

/* Add to cart: full-width brand button pinned to card bottom */
body.woocommerce ul.products li.product .button {
	margin-top: auto;
	width: 100%;
	text-align: center;
	background: #e8611a;
	color: #fff;
	border-radius: 6px;
	padding: 12px 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	transition: background .2s ease;
}

body.woocommerce ul.products li.product .button:hover {
	background: #c94f10;
	color: #fff;
}

/* Hide the dangling "view cart" nub that WC appends after AJAX add */
body.woocommerce ul.products li.product a.added_to_cart {
	display: none;
}

/* Mobile: tighter padding, same card language */
@media (max-width: 768px) {
	body.woocommerce ul.products {
		gap: 14px;
	}

	body.woocommerce ul.products li.product {
		padding: 12px 12px 10px;
		border-radius: 8px;
	}

	body.woocommerce ul.products li.product img {
		max-height: 130px;
		margin-bottom: 10px;
	}

	body.woocommerce ul.products li.product .woocommerce-loop-product__title {
		font-size: 13px;
	}

	body.woocommerce ul.products li.product .price {
		font-size: 13px;
		margin-bottom: 10px;
	}

	body.woocommerce ul.products li.product .button {
		padding: 10px 6px;
		font-size: 11px;
	}
}
