/**
 * Petopia products page — Figma Products-Desktop.pdf / products-mobile.pdf
 * Scoped to body.petopia-products-page
 */

body.petopia-products-page {
	--pp-blue: #003bd1;
	--pp-pink: #ff3b81;
	--pp-text: #121212;
	--pp-muted: #666666;
	--pp-border: rgba(0, 0, 0, 0.08);
	--pp-surface: #f2f5ff;
	--pp-panel: #eef2ff;
	--pp-white: #ffffff;
	--pp-container: 1318px;
	--pp-gutter: 16px;
	--pp-radius-xl: 30px;
	--pp-radius-lg: 24px;
	--pp-radius-md: 20px;
	--pp-radius-sm: 14px;
	--pp-radius-xs: 12px;
	--pp-shadow: 0 4px 24px rgba(0, 59, 209, 0.06);
	--pp-font: dana, "danaFaNum", Tahoma, sans-serif;
}

body.petopia-products-page .site-content {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

body.petopia-products-page .petopia-products-entry {
	margin: 0;
	padding: 0;
}

body.petopia-products-page .petopia-products-content {
	width: 100%;
	max-width: none;
	padding: 0;
}

body.petopia-products-page .petopia-products__page-decor {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 6;
	pointer-events: none;
	line-height: 0;
}

body.petopia-products-page .whb-header {
	z-index: 5 !important;
	background-color: #ffffff !important;
}

body.petopia-products-page .whb-main-header {
	background-color: transparent !important;
}

body.petopia-products-page .whb-general-header.whb-with-bg,
body.petopia-products-page .whb-general-header.whb-row {
	background: transparent !important;
	background-color: transparent !important;
}

body.petopia-products-page .whb-general-header.whb-with-bg::before {
	display: none !important;
	content: none !important;
}

body.petopia-products-page .petopia-products__hero-ellipse {
	display: block;
	width: min(380px, 55vw);
	height: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	border: none;
	object-fit: contain;
	pointer-events: none;
	transform: translate(20%, 0);
	transform-origin: top right;
}

body.petopia-products-page .sidebar-container,
body.petopia-products-page .wd-sidebar {
	display: none !important;
}

body.petopia-products-page .page-title,
body.petopia-products-page .wd-page-title {
	display: none !important;
}

body.petopia-products-page .petopia-products {
	position: relative;
	color: var(--pp-text);
	font-family: var(--pp-font);
	padding: 24px 0 64px;
	background: var(--pp-white);
	overflow-x: clip;
}

body.petopia-products-page .petopia-products__container {
	width: min(100% - (var(--pp-gutter) * 2), var(--pp-container));
	margin-inline: auto;
}

/* ─── Breadcrumb ─── */
body.petopia-products-page .petopia-products__breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
	font-size: 14px;
	font-weight: 500;
	color: var(--pp-muted);
}

body.petopia-products-page .petopia-products__breadcrumb a {
	color: var(--pp-muted);
	text-decoration: none;
}

body.petopia-products-page .petopia-products__breadcrumb a:hover {
	color: var(--pp-blue);
}

body.petopia-products-page .petopia-products__breadcrumb [aria-current="page"] {
	color: var(--pp-blue);
	font-weight: 700;
}

/* ─── Layout ─── */
body.petopia-products-page .petopia-products__layout {
	display: grid;
	grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

/* ─── Sidebar filters ─── */
body.petopia-products-page .petopia-products__filters--sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

body.petopia-products-page .petopia-products__filter-toggles {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 18px 20px;
	border-radius: var(--pp-radius-md);
	background: var(--pp-surface);
}

body.petopia-products-page .petopia-products__toggle {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	user-select: none;
}

body.petopia-products-page .petopia-products__toggle input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

body.petopia-products-page .petopia-products__toggle-track {
	position: relative;
	flex-shrink: 0;
	width: 44px;
	height: 24px;
	border-radius: 999px;
	background: #d5ddf5;
	transition: background 0.2s ease;
}

body.petopia-products-page .petopia-products__toggle-track::after {
	content: "";
	position: absolute;
	top: 3px;
	right: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--pp-white);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
	transition: transform 0.2s ease;
}

body.petopia-products-page .petopia-products__toggle input:checked + .petopia-products__toggle-track {
	background: var(--pp-blue);
}

body.petopia-products-page .petopia-products__toggle input:checked + .petopia-products__toggle-track::after {
	transform: translateX(-20px);
}

body.petopia-products-page .petopia-products__toggle-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--pp-text);
	line-height: 1.4;
}

body.petopia-products-page .petopia-products__filter-panel {
	border-radius: var(--pp-radius-md);
	background: var(--pp-white);
	border: 1px solid var(--pp-border);
	overflow: hidden;
}

body.petopia-products-page .petopia-products__filter-panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 18px 20px;
	border: none;
	background: transparent;
	color: var(--pp-blue);
	font-family: var(--pp-font);
	font-size: 16px;
	font-weight: 800;
	text-align: right;
	cursor: pointer;
}

body.petopia-products-page .petopia-products__filter-panel-body {
	padding: 0 20px 18px;
}

body.petopia-products-page .petopia-products__filter-panel-body[hidden] {
	display: none;
}

body.petopia-products-page .petopia-products__chevron {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

body.petopia-products-page .petopia-products__filter-panel-head.is-open .petopia-products__chevron,
body.petopia-products-page .petopia-products__accordion-item.is-open > .petopia-products__accordion-trigger .petopia-products__chevron {
	transform: rotate(-135deg);
}

body.petopia-products-page .petopia-products__chevron--sm {
	width: 8px;
	height: 8px;
}

/* ─── Category accordion ─── */
body.petopia-products-page .petopia-products__accordion {
	display: flex;
	flex-direction: column;
}

body.petopia-products-page .petopia-products__accordion-item {
	border-top: 1px solid var(--pp-border);
}

body.petopia-products-page .petopia-products__accordion-item--nested {
	border-top: 0;
}

body.petopia-products-page .petopia-products__accordion-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 16px 0;
	border: none;
	background: transparent;
	color: var(--pp-text);
	font-family: var(--pp-font);
	font-size: 15px;
	font-weight: 700;
	text-align: right;
	cursor: pointer;
}

body.petopia-products-page .petopia-products__accordion-trigger--nested {
	padding: 8px 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--pp-text);
}

body.petopia-products-page .petopia-products__accordion-panel {
	padding-bottom: 12px;
}

body.petopia-products-page .petopia-products__accordion-item--nested > .petopia-products__accordion-panel {
	padding-bottom: 6px;
	padding-right: 8px;
}

body.petopia-products-page .petopia-products__accordion-panel[hidden] {
	display: none;
}

body.petopia-products-page .petopia-products__subcat-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

body.petopia-products-page .petopia-products__subcat-list--depth-3,
body.petopia-products-page .petopia-products__subcat-list--depth-4 {
	gap: 8px;
	margin-top: 6px;
}

body.petopia-products-page .petopia-products__subcat-link {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--pp-blue);
	text-decoration: none;
	line-height: 1.5;
}

body.petopia-products-page .petopia-products__subcat-link--parent {
	margin-bottom: 4px;
	font-size: 13px;
	opacity: 0.85;
}

body.petopia-products-page .petopia-products__subcat-list--depth-3 .petopia-products__subcat-link,
body.petopia-products-page .petopia-products__subcat-list--depth-4 .petopia-products__subcat-link {
	font-size: 13px;
}

body.petopia-products-page .petopia-products__subcat-link:hover,
body.petopia-products-page .petopia-products__subcat-link.is-active {
	font-weight: 800;
}

/* ─── Brand list ─── */
body.petopia-products-page .petopia-products__brand-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

body.petopia-products-page .petopia-products__brand-link {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--pp-text);
	text-decoration: none;
}

body.petopia-products-page .petopia-products__brand-radio {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border: 2px solid #c5cee8;
	border-radius: 50%;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.petopia-products-page .petopia-products__brand-link.is-active .petopia-products__brand-radio,
body.petopia-products-page .petopia-products__brand-link:hover .petopia-products__brand-radio {
	border-color: var(--pp-blue);
	box-shadow: inset 0 0 0 4px var(--pp-blue);
}

/* ─── Toolbar ─── */
body.petopia-products-page .petopia-products__toolbar {
	margin-bottom: 24px;
}

body.petopia-products-page .petopia-products__toolbar-mobile {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

body.petopia-products-page .petopia-products__filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	min-height: 44px;
	padding: 10px 18px;
	border: 2px solid var(--pp-blue);
	border-radius: 999px;
	background: var(--pp-white);
	color: var(--pp-blue);
	font-family: var(--pp-font);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

body.petopia-products-page .petopia-products__filter-icon {
	width: 18px;
	height: 18px;
	background:
		linear-gradient(var(--pp-blue), var(--pp-blue)) center 2px / 14px 2px no-repeat,
		linear-gradient(var(--pp-blue), var(--pp-blue)) center 8px / 10px 2px no-repeat,
		linear-gradient(var(--pp-blue), var(--pp-blue)) center 14px / 14px 2px no-repeat;
}

body.petopia-products-page .petopia-products__sort-select-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
	justify-content: flex-end;
}

body.petopia-products-page .petopia-products__sort-select-label {
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--pp-muted);
	white-space: nowrap;
}

body.petopia-products-page .petopia-products__sort-select {
	flex: 1 1 auto;
	min-width: 0;
	max-width: min(168px, 48vw);
	height: 44px;
	padding-block: 10px;
	padding-inline-start: 14px;
	padding-inline-end: 34px;
	border: none;
	border-radius: var(--pp-radius-xs);
	background-color: var(--pp-surface);
	color: var(--pp-blue);
	font-family: var(--pp-font);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, var(--pp-blue) 50%),
		linear-gradient(135deg, var(--pp-blue) 50%, transparent 50%);
	background-position: left 12px center, left 18px center;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	direction: rtl;
}

body.petopia-products-page .petopia-products__toolbar-desktop {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

body.petopia-products-page .petopia-products__result-count {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--pp-muted);
}

body.petopia-products-page .petopia-products__sort-tabs {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

body.petopia-products-page .petopia-products__sort-label {
	font-size: 14px;
	font-weight: 700;
	color: var(--pp-text);
	margin-inline-end: 4px;
}

body.petopia-products-page .petopia-products__sort-tab {
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--pp-muted);
	text-decoration: none;
	transition: color 0.2s ease, background 0.2s ease;
}

body.petopia-products-page .petopia-products__sort-tab:hover {
	color: var(--pp-blue);
}

body.petopia-products-page .petopia-products__sort-tab.is-active {
	color: var(--pp-blue);
	font-weight: 800;
}

/* ─── Product grid ─── */
body.petopia-products-page .petopia-products__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	align-items: stretch;
}

body.petopia-products-page .petopia-products__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: var(--pp-radius-md);
	background: var(--pp-surface);
	box-shadow: var(--pp-shadow);
	overflow: hidden;
}

body.petopia-products-page .petopia-products__card-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px 18px 10px;
	background: var(--pp-surface);
	text-decoration: none;
}

body.petopia-products-page .petopia-products__card-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: var(--pp-radius-sm);
	overflow: hidden;
}

body.petopia-products-page .petopia-products__card-media img,
body.petopia-products-page .petopia-products__card-media .petopia-products__product-media {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain !important;
	border-radius: var(--pp-radius-sm) !important;
}

body.petopia-products-page .petopia-products__card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
	padding: 12px 18px 18px;
}

body.petopia-products-page .petopia-products__card-title {
	margin: 0;
	min-height: calc(1.55em * 2);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.55;
}

body.petopia-products-page .petopia-products__card-title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	color: var(--pp-text);
	text-decoration: none;
}

body.petopia-products-page .petopia-products__card-brand {
	margin: 0;
	font-size: 12px;
	font-weight: 500;
	color: var(--pp-muted);
}

body.petopia-products-page .petopia-products__card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
}

body.petopia-products-page .petopia-products__card-price {
	font-size: 15px;
	font-weight: 800;
	color: var(--pp-blue);
}

body.petopia-products-page .petopia-products__card-price .woocommerce-Price-amount {
	font-family: inherit !important;
}

body.petopia-products-page .petopia-products__unavailable-price {
	display: inline-block;
	font-family: var(--pp-font) !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--pp-pink) !important;
}

body.petopia-products-page .petopia-products__card-fav {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
}

body.petopia-products-page .petopia-products__card-fav a {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	text-decoration: none;
	line-height: 0;
}

body.petopia-products-page .petopia-products__icon-heart {
	display: block;
	width: 30px;
	height: 30px;
}

/* ─── Buttons ─── */
body.petopia-products-page .petopia-products__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	border-radius: var(--pp-radius-xs);
	border: 2px solid transparent;
	font-family: var(--pp-font);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.petopia-products-page .petopia-products__btn--cart {
	width: 100%;
	margin-top: 4px;
	background: var(--pp-blue);
	color: var(--pp-white);
	border: 2px solid transparent;
	box-sizing: border-box;
}

body.petopia-products-page .petopia-products__btn--cart:hover {
	background: #0030b0;
	color: var(--pp-white);
}

body.petopia-products-page .petopia-products__btn--cart.is-added,
body.petopia-products-page .petopia-products__btn--cart.added {
	background: #fff !important;
	color: #ff3b81 !important;
	border-color: #ff3b81 !important;
}

body.petopia-products-page .petopia-products__btn--cart.is-added:hover,
body.petopia-products-page .petopia-products__btn--cart.added:hover {
	background: #fff !important;
	color: #e63574 !important;
	border-color: #e63574 !important;
}

body.petopia-products-page .petopia-products__btn--cart.loading {
	opacity: 0.65;
	pointer-events: none;
}

body.petopia-products-page .petopia-products__btn--primary {
	background: var(--pp-blue);
	color: var(--pp-white);
}

body.petopia-products-page .petopia-products__btn--outline {
	background: var(--pp-white);
	color: var(--pp-blue);
	border-color: var(--pp-blue);
}

/* ─── Pagination ─── */
body.petopia-products-page .petopia-products__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 36px;
}

body.petopia-products-page .petopia-products__page {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 6px;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
	color: var(--pp-muted);
	text-decoration: none;
	background: var(--pp-white);
	border: 1px solid var(--pp-border);
}

body.petopia-products-page .petopia-products__page.is-current {
	background: var(--pp-blue);
	color: var(--pp-white);
	border-color: var(--pp-blue);
}

body.petopia-products-page .petopia-products__page--nav {
	color: var(--pp-blue);
	border-color: transparent;
	background: transparent;
	font-size: 22px;
	line-height: 1;
}

body.petopia-products-page .petopia-products__page--dots {
	border: none;
	background: transparent;
}

/* ─── Empty state ─── */
body.petopia-products-page .petopia-products__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 48px 24px;
	border-radius: var(--pp-radius-md);
	background: var(--pp-surface);
	text-align: center;
}

/* ─── Mobile filter drawer ─── */
body.petopia-products-page .petopia-products__overlay {
	position: fixed;
	inset: 0;
	z-index: 500;
	background: rgba(0, 0, 0, 0.45);
}

body.petopia-products-page .petopia-products__overlay[hidden],
body.petopia-products-page .petopia-products__drawer[hidden] {
	display: none;
}

body.petopia-products-page .petopia-products__drawer {
	position: fixed;
	inset-block: 0;
	inset-inline-end: 0;
	z-index: 510;
	width: min(100%, 360px);
	background: var(--pp-white);
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
	overflow-y: auto;
}

body.petopia-products-page .petopia-products__filters--drawer {
	padding: 20px 18px 24px;
}

body.petopia-products-page .petopia-products__filters-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

body.petopia-products-page .petopia-products__filters-title {
	margin: 0;
	font-size: 18px;
	font-weight: 800;
	color: var(--pp-blue);
}

body.petopia-products-page .petopia-products__filters-close {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: var(--pp-surface);
	color: var(--pp-blue);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

body.petopia-products-page .petopia-products__filters-actions {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

body.petopia-products-page .petopia-products__filters-actions .petopia-products__btn {
	flex: 1;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
	body.petopia-products-page .petopia-products__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	body.petopia-products-page .petopia-products__filters--sidebar {
		display: none;
	}

	body.petopia-products-page .petopia-products__toolbar-mobile {
		display: flex;
	}

	body.petopia-products-page .petopia-products__toolbar-desktop {
		display: none;
	}

	body.petopia-products-page .petopia-products__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
}

@media (max-width: 767px) {
	body.petopia-products-page .petopia-products__hero-ellipse {
		width: min(320px, 78vw);
		transform: translate(15%, 0);
		transform-origin: top right;
	}

	body.petopia-products-page .petopia-products {
		padding-top: 12px;
	}

	body.petopia-products-page .petopia-products__breadcrumb {
		margin-bottom: 16px;
		font-size: 13px;
	}

	body.petopia-products-page .petopia-products__card-title {
		font-size: 13px;
	}

	body.petopia-products-page .petopia-products__card-body {
		padding: 10px 14px 14px;
	}

	body.petopia-products-page .petopia-products__btn--cart {
		min-height: 40px;
		font-size: 12px;
		line-height: 1.15;
		padding-inline: 12px;
		white-space: nowrap;
	}
}

@media (min-width: 1025px) {
	body.petopia-products-page .petopia-products__drawer,
	body.petopia-products-page .petopia-products__overlay {
		display: none !important;
	}
}