/* Pet City catalog — Scandinavian + functional. Tokens from the mark: teal, orange, ink. */

.petcity-catalog,
.petcity-product,
.home ul.products {
	--pc-ink: #1c2740;
	--pc-muted: #5a6476;
	--pc-paper: #eef2f0;
	--pc-card: #fff;
	--pc-line: #d7ddd9;
	--pc-teal: #0c7c7c;
	--pc-teal-ink: #065858;
	--pc-orange: #e07a2f;
	--pc-focus: #0c7c7c;
}

.petcity-catalog .site-content,
.petcity-catalog .ast-container {
	color: var(--pc-ink);
}

.pc-hub {
	display: grid;
	gap: 0.75rem;
	margin: 1rem 0 2rem;
}

.pc-hub__card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	min-height: 72px;
	padding: 1rem 1.15rem;
	border: 1px solid var(--pc-line, #d7ddd9);
	border-radius: 12px;
	background: #fff;
	color: var(--pc-ink, #1c2740);
	text-decoration: none;
}

.pc-hub__card span {
	color: var(--pc-muted, #5a6476);
	font-size: 0.875rem;
}

.pc-hub__card:hover,
.pc-hub__card:focus-visible {
	border-color: var(--pc-teal, #0c7c7c);
}

@media (min-width: 700px) {
	.pc-hub {
		grid-template-columns: 1fr 1fr;
	}
}

.petcity-catalog h1,
.petcity-catalog .woocommerce-products-header__title {
	font-size: 1.75rem;
	letter-spacing: -0.02em;
	margin: 0 0 0.35rem;
}

.petcity-catalog .woocommerce-result-count {
	color: var(--pc-muted);
	font-size: 0.875rem;
}

.petcity-catalog .woocommerce-ordering select {
	min-height: 44px;
	border: 1px solid var(--pc-line);
	border-radius: 8px;
	padding: 0 0.75rem;
	background: var(--pc-card);
	color: var(--pc-ink);
}

.pc-subcats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1rem;
}

.petcity-catalog .pc-chip,
.petcity-catalog .pc-subcats a,
.pc-card-chips span,
.pc-product-chips span {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-height: 32px;
	padding: 0.2rem 0.65rem;
	border: 1px solid var(--pc-line);
	border-radius: 999px;
	background: var(--pc-card);
	color: var(--pc-ink);
	font-size: 0.75rem;
	line-height: 1.2;
	text-decoration: none;
}

.pc-chip:hover,
.pc-chip:focus-visible {
	border-color: var(--pc-teal);
	color: var(--pc-teal-ink);
}

.pc-chip--on {
	background: var(--pc-teal);
	border-color: var(--pc-teal);
	color: #fff;
}

.pc-chip__count,
.pc-filter a span {
	color: var(--pc-muted);
	font-variant-numeric: tabular-nums;
}

.pc-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1rem;
}

.pc-filter-toggle,
.pc-filters__close {
	min-height: 44px;
	padding: 0 1rem;
	border: 1px solid var(--pc-ink);
	border-radius: 8px;
	background: var(--pc-ink);
	color: #fff;
	font-size: 0.9375rem;
}

.pc-filters__close {
	background: transparent;
	color: var(--pc-ink);
}

.pc-active {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

.pc-clear {
	font-size: 0.8125rem;
	color: var(--pc-teal-ink);
}

.pc-filters {
	position: fixed;
	inset: 0 auto 0 0;
	width: min(22rem, 92vw);
	z-index: 1200;
	background: var(--pc-card);
	border-right: 1px solid var(--pc-line);
	padding: 1rem 1rem 2rem;
	overflow: auto;
	transform: translateX(-105%);
	transition: transform 180ms ease;
}

.pc-filters.is-open {
	transform: translateX(0);
}

.pc-filters__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75rem;
}

.pc-filters__title,
.pc-filter summary,
.widget .pc-filters__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 650;
	color: var(--pc-ink);
}

.pc-filter {
	border-top: 1px solid var(--pc-line);
	padding: 0.35rem 0;
}

.pc-filter summary {
	cursor: pointer;
	list-style: none;
	min-height: 44px;
	display: flex;
	align-items: center;
}

.pc-filter summary::-webkit-details-marker {
	display: none;
}

.pc-filter ul {
	list-style: none;
	margin: 0 0 0.5rem;
	padding: 0;
}

.petcity-catalog .pc-filter a,
.petcity-catalog .widget .pc-filter a {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 40px;
	align-items: center;
	padding: 0.15rem 0;
	color: var(--pc-ink) !important;
	text-decoration: none;
	font-size: 0.9375rem;
	background: none;
}

.pc-filter a.is-on {
	color: var(--pc-teal-ink);
	font-weight: 650;
}

.pc-filter-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(28, 39, 64, 0.35);
	z-index: 1190;
}

@media (max-width: 921px) {
	.petcity-catalog #secondary {
		display: none;
	}
}

@media (min-width: 922px) {
	.pc-filter-toggle,
	.pc-filters__close,
	.pc-filter-backdrop,
	.pc-filters-mobile {
		display: none;
	}

	.petcity-catalog .widget .pc-filters {
		position: static;
		width: auto;
		transform: none;
		border: 0;
		padding: 0;
		overflow: visible;
	}
}

/* Cards — home widget + archives + related */
ul.products {
	--pc-ink: #1c2740;
	--pc-muted: #5a6476;
	--pc-paper: #eef2f0;
	--pc-card: #fff;
	--pc-line: #d7ddd9;
	--pc-teal: #0c7c7c;
}

ul.products {
	align-items: stretch;
}

ul.products li.product,
ul.products li.product.remove-featured-img-padding {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--pc-card);
	border: 1px solid var(--pc-line);
	border-radius: 12px;
	padding: 0.75rem 0.75rem 1rem !important;
	box-shadow: none;
}

ul.products li.product .astra-shop-summary-wrap {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 0.65rem 0.15rem 0.15rem !important;
	margin: 0;
}

ul.products li.product .astra-shop-thumbnail-wrap,
ul.products li.product .woocommerce-loop-product__link {
	display: block;
}

ul.products li.product img {
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: contain;
	background: var(--pc-paper);
	border-radius: 8px;
	margin: 0 0 0.65rem;
}

ul.products li.product .ast-woo-product-category,
ul.products li.product .ast-woo-product-category a,
ul.products li.product .woocommerce-loop-product__categories {
	display: none !important;
}

ul.products li.product .pc-brand {
	margin: 0 0 0.15rem;
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--pc-teal-ink, #065858);
}

ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2 {
	font-size: 0.95rem;
	line-height: 1.3;
	letter-spacing: -0.01em;
	margin: 0 0 0.4rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.5em;
}

ul.products li.product .pc-card-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin: 0 0 0.5rem;
}

ul.products li.product .price {
	margin-top: auto;
	font-size: 1rem;
	font-weight: 700;
	color: var(--pc-ink);
}

ul.products li.product .button,
ul.products li.product a.button {
	min-height: 44px;
	width: 100%;
	margin-top: 0.65rem;
	border: 0;
	border-radius: 8px;
	background: var(--pc-teal, #0c7c7c);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: none;
}

ul.products li.product .button:hover,
ul.products li.product .button:focus-visible {
	background: #065858;
	color: #fff;
}

ul.products li.product .ast-on-card-button {
	display: none;
}

/* Hide raw middot short-desc Elementor still prints above the spec list. */
.petcity-product .pc-hide-middot,
.petcity-product .elementor-widget-woocommerce-product-short-description.pc-hide-middot,
.petcity-product .elementor-widget-woocommerce-product-content.pc-hide-middot,
.petcity-product .elementor-widget-theme-post-content.pc-hide-middot,
.petcity-product .elementor-widget-theme-post-excerpt.pc-hide-middot,
.petcity-product .elementor-element-de675b3.elementor-widget-woocommerce-product-content {
	display: none !important;
}

/* Single product */
.petcity-product .pc-product-chips,
.petcity-product .pc-specs {
	--pc-ink: #1c2740;
	--pc-muted: #5a6476;
	--pc-line: #d7ddd9;
	--pc-paper: #eef2f0;
	--pc-teal: #0c7c7c;
}

.petcity-product .pc-product-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1rem;
}

.petcity-product .pc-specs {
	display: grid;
	gap: 0.35rem 1rem;
	margin: 0 0 1.25rem;
	padding: 0.85rem 0 0;
	border-top: 1px solid var(--pc-line);
}

.petcity-product .pc-spec {
	display: grid;
	grid-template-columns: 8.5rem 1fr;
	gap: 0.5rem;
	font-size: 0.9375rem;
}

.petcity-product .pc-spec dt {
	margin: 0;
	color: var(--pc-muted);
	font-weight: 500;
}

.petcity-product .pc-spec dd {
	margin: 0;
	color: var(--pc-ink);
}

.petcity-product .pc-trust {
	margin: 0.75rem 0 0;
	font-size: 0.8125rem;
	color: var(--pc-muted);
}

.petcity-product .single_add_to_cart_button,
.petcity-product .elementor-add-to-cart .button {
	min-height: 48px;
	border-radius: 8px;
	background: #0c7c7c;
	border-color: #0c7c7c;
}

.petcity-product .quantity .qty {
	min-height: 48px;
}

.petcity-product .elementor-widget-image img {
	background: #eef2f0;
	border-radius: 12px;
	padding: 0.5rem;
}

.petcity-catalog a:focus-visible,
.petcity-product a:focus-visible,
.petcity-catalog button:focus-visible,
.petcity-product button:focus-visible,
ul.products a:focus-visible,
ul.products button:focus-visible {
	outline: 2px solid var(--pc-focus, #0c7c7c);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.pc-filters {
		transition: none;
	}
}

/* Scoped — a global .screen-reader-text here re-clips Astra's skip link. */
.pc-chip .screen-reader-text,
.pc-active .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
