/* woocommerce/product-collection: product cards with bold part numbers and
   prices (shop, homepage teaser, related parts). */
.pas-products .wc-block-product-template { gap: 20px; }
.pas-products--catalog .wc-block-product-template { row-gap: 32px; }
.pas-products .wc-block-product { display: flex; flex-direction: column; text-align: left; min-width: 0; }
.pas-products .wc-block-product > * { margin-block: 0; }

.pas-products .wc-block-components-product-image {
	position: relative; margin: 0 0 14px !important; aspect-ratio: 1; overflow: hidden;
	border-radius: var(--wp--custom--radius--base); border: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--tint);
}
.pas-products .wc-block-components-product-image a { display: block; height: 100%; }
.pas-products .wc-block-components-product-image img { width: 100%; height: 100% !important; object-fit: cover; transition: transform .35s ease; }
.pas-products .wc-block-product:hover .wc-block-components-product-image img { transform: scale(1.04); }
.pas-products .wc-block-product.outofstock .wc-block-components-product-image img { opacity: .55; filter: grayscale(.4); }
.pas-products .wc-block-components-product-sale-badge { top: 10px; left: 10px; right: auto; border: 0; border-radius: 999px; background: var(--wp--preset--color--error); color: #fff; font-size: 12.5px; font-weight: 600; padding: 4px 10px; }

.pas-products .pas-product-title {
	font-family: var(--wp--preset--font-family--body); font-size: 16px !important; font-weight: 600; line-height: 1.35;
	letter-spacing: 0; margin: 2px 0 8px !important; text-align: left;
}
.pas-products .pas-product-title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.pas-products .pas-product-title a:hover { text-decoration: underline; text-decoration-color: var(--wp--preset--color--primary); text-underline-offset: 3px; }

/* Part number: small uppercase label, bold display-font value */
.wc-block-components-product-sku {
	font-family: var(--wp--preset--font-family--body); font-size: 11.5px; font-weight: 600; letter-spacing: .08em;
	text-transform: uppercase; color: var(--wp--preset--color--muted); margin: 0 !important; text-align: left;
}
.wc-block-components-product-sku strong, .wc-block-components-product-sku .sku {
	font-family: var(--wp--preset--font-family--display); font-size: 16px; font-weight: 700; letter-spacing: .02em; text-transform: none;
	color: var(--wp--preset--color--navy); font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}

.pas-products .wc-block-components-product-stock-indicator { margin: 10px 0 0 !important; font-size: 13.5px; font-weight: 600; text-align: left; }

.pas-products .pas-product-foot { margin-top: auto !important; padding-top: 12px; gap: 8px 10px; align-items: flex-end; flex-wrap: nowrap; }
.pas-products .wp-block-woocommerce-product-price { margin: 0; min-width: 0; }
.pas-products .wc-block-components-product-price {
	display: flex; flex-direction: column; font-family: var(--wp--preset--font-family--display); font-size: 21px; line-height: 1.15;
	font-weight: 700; color: var(--wp--preset--color--navy); margin: 0 !important; text-align: left !important;
}
.pas-products .wc-block-components-product-price del { color: var(--wp--preset--color--muted); font-weight: 500; font-size: .7em; }
.pas-products .wc-block-components-product-price ins { text-decoration: none; }
.pas-products .woocommerce-price-suffix { font-family: var(--wp--preset--font-family--body); font-size: 12.5px; font-weight: 500; color: var(--wp--preset--color--muted); margin-top: 2px; }
.pas-products .wp-block-woocommerce-product-button { margin: 0 !important; flex-shrink: 0; }
.pas-products .wc-block-components-product-button__button {
	min-height: 44px; padding: 0 16px; font-size: 14px; border-radius: 999px; margin: 0;
	background: var(--wp--preset--color--primary); color: #fff; border: 0; font-weight: 600; white-space: nowrap; box-shadow: none;
}
.pas-products .wc-block-components-product-button__button:hover { background: var(--wp--preset--color--primary-hover); color: #fff; }
/* Variable products ("Select options") get the outline treatment */
.pas-products .product-type-variable .wc-block-components-product-button__button { background: #fff; color: var(--wp--preset--color--primary-deep); box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--primary); }
.pas-products .product-type-variable .wc-block-components-product-button__button:hover { background: var(--wp--preset--color--primary-soft); }
.pas-products .wc-block-components-product-button .added_to_cart { font-size: 13.5px; margin-top: 6px; }

/* Pagination */
.pas-products .wp-block-query-pagination { margin-top: 44px; gap: 6px; }
.pas-products .wp-block-query-pagination-numbers { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pas-products .wp-block-query-pagination .page-numbers,
.pas-products .wp-block-query-pagination-previous,
.pas-products .wp-block-query-pagination-next {
	min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 12px; margin: 0;
	border-radius: 999px; border: 1px solid var(--wp--preset--color--line); font-weight: 600; font-size: 15px; text-decoration: none; color: var(--wp--preset--color--contrast);
}
.pas-products .wp-block-query-pagination .page-numbers.current { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
.pas-products .wp-block-query-pagination .page-numbers.dots { border: 0; min-width: 24px; padding: 0; }

/* No results */
.pas-empty { text-align: center; padding: 48px 24px; border: 1.5px dashed rgb(201 211 227); border-radius: var(--wp--custom--radius--base); }
.pas-empty p { color: var(--wp--preset--color--muted); max-width: 520px; }

/* Homepage teaser: four across, two on tablets and phones */
.pas-products:not(.pas-products--catalog):not(.pas-products--related) .wc-block-product-template.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
	.pas-products .wc-block-product-template.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
	.pas-products .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 28px 12px; }
	.pas-products .pas-product-title { font-size: 15px !important; }
	.wc-block-components-product-sku strong, .wc-block-components-product-sku .sku { font-size: 15px; }
	.pas-products .wc-block-components-product-price { font-size: 19px; }
	.pas-products .pas-product-foot { flex-direction: column; align-items: stretch; }
	.pas-products .wc-block-components-product-button__button { width: 100%; }
}

/* Loading state (assets/js/shop-filters.js): the grid fades and a spinner
   shows while the results update. Delayed so quick responses don't flicker;
   the spinner is sticky so it stays in view on a long grid. */
.pas-shop-main { position: relative; }
.pas-shop-main .pas-products--catalog { transition: opacity .2s; }
.pas-shop-main.is-loading .pas-products--catalog { opacity: .45; pointer-events: none; transition-delay: .15s; }
.pas-shop-main::after {
	content: ""; position: sticky; bottom: 45vh; display: block; width: 44px; height: 44px; margin: -44px auto 0;
	border: 4px solid var(--wp--preset--color--primary-soft); border-top-color: var(--wp--preset--color--primary); border-radius: 50%;
	opacity: 0; pointer-events: none; transition: opacity .2s; animation: pas-spin .8s linear infinite;
}
.pas-shop-main.is-loading::after { opacity: 1; transition-delay: .15s; }
@keyframes pas-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.pas-shop-main::after { animation: none; border-color: var(--wp--preset--color--primary); border-style: dotted; }
}
