/* ==========================================================================
   Premium Scrub — shop / category archives
   ========================================================================== */

/* Header */
.post-type-archive-product .woocommerce-products-header .woocommerce-products-header__title,
.post-type-archive-product h1.woocommerce-products-header__title,
.post-type-archive-product .ast-woo-product-archive-title,
.tax-product_cat .woocommerce-products-header__title,
.tax-product_cat h1.page-title,
.tax-product_cat .ast-woo-product-archive-title,
.woocommerce-page.archive h1.page-title {
	font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
	font-weight: 600 !important;
	font-size: clamp(2rem, 3.5vw, 2.75rem) !important;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: #111111 !important;
	margin: 0 0 12px !important;
	text-transform: none !important;
}

/* Breadcrumb — match PDP muted style */
.post-type-archive-product .woocommerce-breadcrumb,
.tax-product_cat .woocommerce-breadcrumb,
.post-type-archive-product .ast-breadcrumbs,
.tax-product_cat .ast-breadcrumbs,
.post-type-archive-product .ast-breadcrumbs-wrap,
.tax-product_cat .ast-breadcrumbs-wrap,
.post-type-archive-product nav.woocommerce-breadcrumb,
.tax-product_cat nav.woocommerce-breadcrumb {
	font-family: 'Inter', sans-serif !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	letter-spacing: 0.01em;
	line-height: 1.45;
	color: #767676 !important;
	margin: 0 0 20px !important;
}

.post-type-archive-product .woocommerce-breadcrumb a,
.tax-product_cat .woocommerce-breadcrumb a,
.post-type-archive-product .ast-breadcrumbs a,
.tax-product_cat .ast-breadcrumbs a {
	color: #767676 !important;
	-webkit-text-fill-color: #767676 !important;
	text-decoration: none !important;
	font-size: 12px !important;
}

.post-type-archive-product .woocommerce-breadcrumb a:hover,
.tax-product_cat .woocommerce-breadcrumb a:hover {
	color: #111111 !important;
	-webkit-text-fill-color: #111111 !important;
}

/* Category filter tabs */
.ps-shop-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 4px;
	margin: 0 0 28px;
	padding: 0 0 4px;
	list-style: none;
	border-bottom: 1px solid #e5e5e5;
}

.ps-shop-filters__item {
	margin: 0;
	padding: 0;
}

.ps-shop-filters__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border: 0;
	background: transparent;
	color: #767676 !important;
	-webkit-text-fill-color: #767676 !important;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none !important;
	line-height: 1.2;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ps-shop-filters__link:hover {
	color: #111111 !important;
	-webkit-text-fill-color: #111111 !important;
}

.ps-shop-filters__link.is-active {
	color: #111111 !important;
	-webkit-text-fill-color: #111111 !important;
	border-bottom-color: #111111;
}

.ps-shop-filters__link.is-disabled {
	color: #b0b0b0 !important;
	-webkit-text-fill-color: #b0b0b0 !important;
	cursor: not-allowed;
	pointer-events: none;
}

.ps-shop-filters__soon {
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #9a9a9a;
}

/* Toolbar: result count + sorting */
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: #767676;
	margin: 0 0 20px !important;
}

.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
	margin: 0 0 20px !important;
}

.woocommerce .woocommerce-ordering select,
.woocommerce-page .woocommerce-ordering select,
.woocommerce .woocommerce-ordering .orderby {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	min-width: 200px;
	padding: 12px 40px 12px 14px !important;
	border: 1px solid #e5e5e5 !important;
	border-radius: 0 !important;
	background-color: #ffffff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23111111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 14px center !important;
	background-size: 12px 8px !important;
	color: #111111 !important;
	font-family: 'Inter', sans-serif !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	box-shadow: none !important;
	cursor: pointer;
}

.woocommerce .woocommerce-ordering select:focus,
.woocommerce-page .woocommerce-ordering select:focus {
	outline: none;
	border-color: #111111 !important;
}

/* Product grid — reuse featured-scrubs spacing */
.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products.ps-featured-scrubs--shop {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 32px !important;
	align-items: stretch;
	margin: 0 0 40px !important;
	padding: 0 !important;
	list-style: none !important;
	clear: both;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
	display: none !important;
	content: none !important;
}

.woocommerce ul.products li.product,
.woocommerce ul.products li.ps-product-card,
ul.products.ps-featured-scrubs--shop > li {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	clear: none !important;
}

/* Shop cards: solid black ATC for ajax Add to Cart (View Product keeps outline via homepage). */
.post-type-archive-product .ps-product-card__atc.add_to_cart_button,
.tax-product_cat .ps-product-card__atc.add_to_cart_button,
.post-type-archive-product .ps-product-card a.button.ps-product-card__atc.add_to_cart_button,
.tax-product_cat .ps-product-card a.button.ps-product-card__atc.add_to_cart_button {
	background: #111111 !important;
	border-color: #111111 !important;
	color: #ffffff !important;
	-webkit-text-fill-color: currentColor !important;
}

.post-type-archive-product .ps-product-card__atc.add_to_cart_button:hover,
.tax-product_cat .ps-product-card__atc.add_to_cart_button:hover,
.post-type-archive-product .ps-product-card a.button.ps-product-card__atc.add_to_cart_button:hover,
.tax-product_cat .ps-product-card a.button.ps-product-card__atc.add_to_cart_button:hover {
	background: #333333 !important;
	border-color: #333333 !important;
	color: #ffffff !important;
	-webkit-text-fill-color: currentColor !important;
}

/* Ensure View Product fill always tracks color (never stuck white-on-white). */
.post-type-archive-product .ps-product-card__atc,
.tax-product_cat .ps-product-card__atc,
.post-type-archive-product .ps-product-card a.ps-product-card__atc,
.tax-product_cat .ps-product-card a.ps-product-card__atc {
	-webkit-text-fill-color: currentColor !important;
}

@media (max-width: 1100px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products,
	ul.products.ps-featured-scrubs--shop {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 544px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products,
	ul.products.ps-featured-scrubs--shop {
		grid-template-columns: 1fr !important;
		gap: 28px !important;
	}

	.ps-shop-filters {
		gap: 4px;
	}

	.ps-shop-filters__link {
		padding: 10px 12px;
		font-size: 12px;
	}
}
