/* Reskin WooCommerce's default archive/loop markup to match brand — no template override, keeps ajax add-to-cart and all native behavior intact. */

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none;
	display: none;
}

/* Storefront renders a second .storefront-sorting wrapper (dropdown + result
   count + pagination) after the grid by default — redundant with the pill
   row + dropdown already shown above the grid. Hide only the one that comes
   after ul.products, leave the one before it (which holds our sort pills). */
.woocommerce ul.products ~ .storefront-sorting {
	display: none;
}
.woocommerce ul.products li.product {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(10, 30, 20, 0.04);
	transition: transform var(--transition-spring), box-shadow var(--transition-spring), border-color var(--transition-fluid);
	padding: 0 !important;
	margin: 0 !important;
	text-align: left !important;
	width: 100% !important;
	float: none !important;
	clear: none !important;
}
.woocommerce ul.products li.product:hover {
	transform: translateY(-5px);
	box-shadow: 0 14px 28px -14px rgba(10, 30, 20, 0.35);
	/* `transform` here makes this card its own stacking context, so its
	   quickview child's z-index:200 only outranks stuff INSIDE that
	   context — against page-level fixed elements (floating widget, sticky
	   header, both z-index:50) it's the CARD's own z-index that counts.
	   Without this, those fixed elements paint over part of the popup. */
	z-index: 60;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
	display: block;
	color: var(--ink);
	text-decoration: none;
}
.woocommerce ul.products li.product img {
	width: 100%;
	aspect-ratio: 4/3;
	object-fit: cover;
	display: block;
	/* li.product itself no longer clips (removed its overflow:hidden — a
	   position:fixed popover would otherwise use it as a containing block
	   the moment the card's :hover transform applies, see quickview.css),
	   so the image rounds its own top corners to match the card outline. */
	border-radius: 14px 14px 0 0 !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.3;
	margin: 12px 14px 6px;
	color: var(--ink);
}
.woocommerce ul.products li.product .price {
	display: block;
	margin: 0 14px 14px;
	font-family: ui-monospace, monospace;
	font-weight: 700;
	color: var(--accent-strong);
}
.woocommerce ul.products li.product .price del {
	color: var(--muted);
	font-weight: 400;
	opacity: 1;
}
.woocommerce span.onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--gold);
	color: var(--ink);
	font-size: 0.72rem;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	min-height: 0;
	min-width: 0;
	line-height: 1.6;
	text-transform: uppercase;
}
.woocommerce ul.products li.product .button.add_to_cart_button {
	margin: 0 14px 14px;
	width: calc(100% - 28px);
	background: var(--accent);
	color: var(--ink);
	border-radius: 8px;
	border: none;
	font-weight: 700;
	padding: 8px 12px;
	transition: background .18s ease;
}
.woocommerce ul.products li.product .button.add_to_cart_button:hover {
	background: var(--accent-strong);
}

/* Sort/result-count bar + pagination */
.woocommerce-ordering select,
.woocommerce-result-count {
	font-size: 0.9rem;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	color: var(--ink);
}
.woocommerce nav.woocommerce-pagination ul li .current {
	background: var(--accent);
	color: var(--ink);
}

/* Single product: stats line, warranty line, gift box, spec list */
.pcseal-stats-line {
	display: flex;
	gap: 16px;
	color: var(--muted);
	font-size: 0.85rem;
	margin: 4px 0 10px;
}
.pcseal-warranty {
	display: inline-block;
	background: var(--accent-tint);
	color: var(--accent-strong);
	font-weight: 700;
	font-size: 0.9rem;
	padding: 6px 14px;
	border-radius: 999px;
	margin: 8px 0;
}
.pcseal-gift-box {
	max-width: 480px;
	margin: 12px 0;
	padding: 12px 16px;
	background: var(--accent-tint);
	border: 1px solid var(--line);
	border-radius: 10px;
}
.pcseal-gift-box__title {
	display: block;
	color: var(--accent-strong);
	font-size: 0.9rem;
	margin-bottom: 4px;
}
.pcseal-gift-box__note {
	margin: 0;
	font-size: 0.9rem;
	color: var(--ink);
}
.pcseal-spec-list {
	list-style: none;
	max-width: 480px;
	margin: 16px 0;
	padding: 0;
}
.pcseal-spec-list li {
	position: relative;
	padding-left: 18px;
	margin: 8px 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--ink);
}
.pcseal-spec-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
}

/* Native WooCommerce price-filter widget, reskinned */
.widget_price_filter .price_slider_amount .button {
	background: var(--accent);
	border-radius: 8px;
	color: var(--ink);
}
.widget_price_filter .ui-slider .ui-slider-range,
.widget_price_filter .ui-slider .ui-slider-handle {
	background: var(--accent);
	border-color: var(--accent-strong);
}
