/**
 * Peti Food – WooCommerce overrides
 * Loaded only on WooCommerce pages.
 */

.woocommerce .petifood-wrap .container {
	padding-top: 1rem;
	padding-bottom: 2rem;
}

/**
 * Shop loops: CSS Grid — must override WooCommerce classic float widths (22%/30%/etc.)
 * so rows fill 1→2→3 columns without empty “holes”, including RTL archives.
 */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
	display: none !important;
	content: none !important;
}

@media (min-width: 640px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.woocommerce ul.products > li.product,
.woocommerce-page ul.products > li.product,
.woocommerce ul.products > li.product-category,
.woocommerce-page ul.products > li.product-category {
	float: none !important;
	clear: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	min-width: 0;
	position: relative;
	/* WC layout sets padding:0 on li.product — restore card padding (Tailwind p-4) */
	padding: 1rem !important;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

/* Product rows: text column grows so price/footer aligns across cards */
.woocommerce ul.products > li.product > .flex-1,
.woocommerce-page ul.products > li.product > .flex-1 {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

/* Archive loop — add-to-cart CTA (override WooCommerce .button display/padding) */
.woocommerce ul.products a.petifood-loop-add-to-cart,
.woocommerce-page ul.products a.petifood-loop-add-to-cart,
.petifood-basket-page a.petifood-loop-add-to-cart {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.5rem;
	width: 100%;
	min-height: 2.75rem;
	padding: 0.625rem 1rem !important;
	border: none !important;
	border-radius: 0.75rem;
	background: linear-gradient(135deg, var(--petifood-primary, #6ee619) 0%, var(--petifood-primary-dark, #5bc215) 100%) !important;
	background-image: linear-gradient(135deg, var(--petifood-primary, #6ee619) 0%, var(--petifood-primary-dark, #5bc215) 100%) !important;
	color: #fff !important;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.35;
	text-align: center !important;
	text-decoration: none !important;
	text-shadow: none !important;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(110, 230, 25, 0.32);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.woocommerce ul.products a.petifood-loop-add-to-cart .pf-loop-atc-label,
.petifood-basket-page a.petifood-loop-add-to-cart .pf-loop-atc-label {
	line-height: 1.35;
	white-space: nowrap;
}

.woocommerce ul.products a.petifood-loop-add-to-cart .pf-loop-atc-icon,
.woocommerce-page ul.products a.petifood-loop-add-to-cart .pf-loop-atc-icon,
.petifood-basket-page a.petifood-loop-add-to-cart .pf-loop-atc-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	font-size: 1.125rem;
	line-height: 1;
	border-radius: 9999px;
	background-color: rgba(255, 255, 255, 0.22);
}

.woocommerce ul.products a.petifood-loop-add-to-cart:hover,
.woocommerce-page ul.products a.petifood-loop-add-to-cart:hover,
.petifood-basket-page a.petifood-loop-add-to-cart:hover {
	background: linear-gradient(135deg, var(--petifood-primary-dark, #5bc215) 0%, #4da812 100%) !important;
	background-image: linear-gradient(135deg, var(--petifood-primary-dark, #5bc215) 0%, #4da812 100%) !important;
	color: #fff !important;
	filter: none;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(110, 230, 25, 0.4);
}

.woocommerce ul.products a.petifood-loop-add-to-cart:active,
.woocommerce-page ul.products a.petifood-loop-add-to-cart:active,
.petifood-basket-page a.petifood-loop-add-to-cart:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(110, 230, 25, 0.28);
}

.woocommerce ul.products a.petifood-loop-add-to-cart:focus,
.woocommerce-page ul.products a.petifood-loop-add-to-cart:focus,
.petifood-basket-page a.petifood-loop-add-to-cart:focus {
	outline: none;
}

.woocommerce ul.products a.petifood-loop-add-to-cart:focus-visible,
.woocommerce-page ul.products a.petifood-loop-add-to-cart:focus-visible,
.petifood-basket-page a.petifood-loop-add-to-cart:focus-visible {
	outline: 2px solid var(--petifood-primary, #6ee619);
	outline-offset: 2px;
}

html.dark .woocommerce ul.products a.petifood-loop-add-to-cart,
html.dark .woocommerce-page ul.products a.petifood-loop-add-to-cart,
html.dark .petifood-basket-page a.petifood-loop-add-to-cart {
	box-shadow: 0 4px 16px rgba(110, 230, 25, 0.24);
}

html.dark .woocommerce ul.products a.petifood-loop-add-to-cart:hover,
html.dark .woocommerce-page ul.products a.petifood-loop-add-to-cart:hover,
html.dark .petifood-basket-page a.petifood-loop-add-to-cart:hover {
	box-shadow: 0 6px 20px rgba(110, 230, 25, 0.3);
}

/* AJAX add-to-cart: «مشاهده سبد» must not widen the card / page on mobile */
.woocommerce ul.products a.added_to_cart,
.woocommerce-page ul.products a.added_to_cart {
	display: none !important;
}

/* Subcategories (first cells in the loop): valid <li> items + predictable images */
.woocommerce ul.products > li.product-category > a,
.woocommerce-page ul.products > li.product-category > a {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	border-radius: 1rem;
	overflow: hidden;
	background-color: rgb(249 250 251);
	border: 1px solid rgb(243 244 246);
}

html.dark .woocommerce ul.products > li.product-category > a,
html.dark .woocommerce-page ul.products > li.product-category > a {
	background-color: rgb(17 24 39);
	border-color: rgb(55 65 81);
}

.woocommerce ul.products > li.product-category img,
.woocommerce-page ul.products > li.product-category img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: cover;
}

.woocommerce ul.products > li.product-category .woocommerce-loop-category__title {
	margin: 0;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	text-align: center;
}

/* Single product: price — no strike/underline; regular (del) smaller, sale (ins) prominent */
body.single-product .petifood-single-product .pf-single-product-price {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.25rem 0.5rem;
	max-width: 100%;
	min-width: 0;
	font-size: 1.875rem;
	font-weight: 800;
	line-height: 1.2;
}

body.single-product .petifood-single-product .pf-single-product-price del,
body.single-product .petifood-single-product .pf-single-product-price ins {
	text-decoration: none;
}

body.single-product .petifood-single-product .pf-single-product-price del,
body.single-product .petifood-single-product .pf-single-product-price del .woocommerce-Price-amount {
	font-size: 0.875rem;
	font-weight: 500;
	color: rgb(107 114 128);
}

html.dark .petifood-single-product .pf-single-product-price del,
html.dark .petifood-single-product .pf-single-product-price del .woocommerce-Price-amount,
body.dark .petifood-single-product .pf-single-product-price del,
body.dark .petifood-single-product .pf-single-product-price del .woocommerce-Price-amount {
	color: rgb(156 163 175);
}

body.single-product .petifood-single-product .pf-single-product-price ins,
body.single-product .petifood-single-product .pf-single-product-price ins .woocommerce-Price-amount {
	font-size: 1.875rem;
	font-weight: 800;
	color: inherit;
}

/* Quantity: hide native number spinners (custom +/- buttons are used) */
body.single-product .petifood-single-product .pf-qty-input {
	min-width: 3rem;
	max-width: 5rem;
	-moz-appearance: textfield;
	appearance: textfield;
}

body.single-product .petifood-single-product .pf-qty-input::-webkit-outer-spin-button,
body.single-product .petifood-single-product .pf-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

@media (min-width: 640px) {
	body.single-product .petifood-single-product .pf-add-to-cart-form {
		min-width: 12rem;
		max-width: 28rem;
	}
}

/* Archive sidebar: unified filter list styles (custom blocks + Woo layered nav) */
.petifood-shop-filter-widgets :is(.petifood-shop-filter-list, .woocommerce-widget-layered-nav-list) {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.petifood-shop-filter-widgets :is(.petifood-shop-filter-list, .woocommerce-widget-layered-nav-list) ul {
	margin-top: 0.25rem;
	padding-inline-start: 0.75rem;
}

.petifood-shop-filter-widgets :is(.petifood-shop-filter-list, .woocommerce-widget-layered-nav-list) > li {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 0.35rem;
}

.petifood-shop-filter-widgets :is(.petifood-shop-filter-list, .woocommerce-widget-layered-nav-list) > li > a,
.petifood-shop-filter-widgets :is(.petifood-shop-filter-list, .woocommerce-widget-layered-nav-list) > li > span:not(.count),
.petifood-shop-filter-widgets .widget_product_categories ul li > a {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.5rem;
	text-decoration: none;
	color: inherit;
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.45;
	padding-block: 0.15rem;
}

.petifood-shop-filter-widgets :is(.petifood-shop-filter-list, .woocommerce-widget-layered-nav-list) > li > span:not(.count) {
	cursor: default;
	opacity: 0.55;
	pointer-events: none;
}

.petifood-shop-filter-widgets :is(.petifood-shop-filter-list, .woocommerce-widget-layered-nav-list) > li .count,
.petifood-shop-filter-widgets .widget_product_categories ul .count {
	font-size: 0.8125rem;
	font-weight: 400;
	opacity: 0.75;
	flex-shrink: 0;
	align-self: center;
	margin-inline-start: auto;
	padding-inline-start: 0.25rem;
}

.petifood-shop-filter-widgets :is(.petifood-shop-filter-list, .woocommerce-widget-layered-nav-list) > li > a::before,
.petifood-shop-filter-widgets :is(.petifood-shop-filter-list, .woocommerce-widget-layered-nav-list) > li > span:not(.count)::before,
.petifood-shop-filter-widgets .widget_product_categories ul li > a::before {
	content: "";
	flex-shrink: 0;
	inline-size: 1.125rem;
	block-size: 1.125rem;
	margin-block-start: 0.2rem;
	border: 2px solid rgb(209 213 219);
	border-radius: 0.25rem;
	background-color: rgb(255 255 255);
	box-sizing: border-box;
	transition:
		border-color 0.15s ease,
		background-color 0.15s ease,
		box-shadow 0.15s ease;
}

html.dark .petifood-shop-filter-widgets :is(.petifood-shop-filter-list, .woocommerce-widget-layered-nav-list) > li > a::before,
html.dark .petifood-shop-filter-widgets :is(.petifood-shop-filter-list, .woocommerce-widget-layered-nav-list) > li > span:not(.count)::before,
html.dark .petifood-shop-filter-widgets .widget_product_categories ul li > a::before {
	border-color: rgb(75 85 99);
	background-color: rgb(17 24 39);
}

.petifood-shop-filter-widgets :is(.petifood-shop-filter-list, .woocommerce-widget-layered-nav-list) > li:is(.chosen, .woocommerce-widget-layered-nav-list__item--chosen) > :is(a, span:not(.count))::before,
.petifood-shop-filter-widgets .widget_product_categories ul li.current-cat > a::before {
	content: "" !important;
	font-family: inherit !important;
	font-weight: inherit !important;
	font-style: normal !important;
	speak: never;
	position: static !important;
	inset: auto !important;
	margin: 0 !important;
	margin-block-start: 0.2rem !important;
	line-height: normal !important;
	color: inherit !important;
	border-color: var(--petifood-primary-dark, #5bc215);
	background-color: var(--petifood-primary, #6ee619);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23171825' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.3l2.7 2.8L9.9 3.3'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 0.7rem auto;
}

.petifood-shop-filter-widgets :is(.petifood-shop-filter-list, .woocommerce-widget-layered-nav-list) > li:is(.chosen, .woocommerce-widget-layered-nav-list__item--chosen) > a:hover::before,
.petifood-shop-filter-widgets .widget_product_categories ul li.current-cat > a:hover::before {
	filter: brightness(0.92);
}

.petifood-shop-filter-widgets :is(.petifood-shop-filter-list, .woocommerce-widget-layered-nav-list) > li:is(.chosen, .woocommerce-widget-layered-nav-list__item--chosen) > a,
.petifood-shop-filter-widgets .widget_product_categories ul li.current-cat > a {
	font-weight: 600;
}

/* Price filter widget: RTL-friendly layout + theme-aligned slider */
.petifood-shop-filter-widgets .widget_price_filter form.pf-wc-price-filter-form {
	max-width: 100%;
}

.petifood-shop-filter-widgets .widget_price_filter .price_slider_wrapper {
	margin-block-start: 0.25rem;
}

.petifood-shop-filter-widgets .widget_price_filter .pf-wc-price-slider-wrap .price_slider {
	display: block !important;
	margin-block-end: 1rem;
	min-block-size: 0.5rem;
}

.petifood-shop-filter-widgets .widget_price_filter .price_slider_amount,
.petifood-shop-filter-widgets .widget_price_filter .pf-wc-price-slider-amount {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	float: none;
	text-align: start;
	line-height: 1.5;
	font-size: 0.875rem;
	clear: none;
}

/* WC JS absolutely positions these on the slider handles — keep them for logic, hide visually */
.petifood-shop-filter-widgets .widget_price_filter .pf-wc-price-input {
	position: absolute !important;
	inline-size: 1px !important;
	block-size: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.petifood-shop-filter-widgets .widget_price_filter .pf-wc-price-label {
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding-block: 0.25rem;
	font-size: clamp(0.6875rem, 2.8vw, 0.8125rem);
	font-weight: 600;
	color: rgb(55 65 81);
	font-variant-numeric: tabular-nums;
	line-height: 1.4;
	text-align: center;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.petifood-shop-filter-widgets .widget_price_filter .pf-wc-price-label::-webkit-scrollbar {
	display: none;
}

.petifood-shop-filter-widgets .widget_price_filter .pf-wc-price-range-values {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	white-space: nowrap;
}

.petifood-shop-filter-widgets .widget_price_filter .pf-wc-price-label .from,
.petifood-shop-filter-widgets .widget_price_filter .pf-wc-price-label .to {
	font-weight: 700;
	white-space: nowrap;
}

.petifood-shop-filter-widgets .widget_price_filter .pf-wc-price-label-sep {
	flex-shrink: 0;
	opacity: 0.55;
}

html.dark .petifood-shop-filter-widgets .widget_price_filter .pf-wc-price-label {
	color: rgb(209 213 219);
}

.petifood-shop-filter-widgets .widget_price_filter .price_slider_amount .button,
.petifood-shop-filter-widgets .widget_price_filter .price_slider_amount .pf-wc-price-filter-submit {
	float: none;
	display: inline-block;
	width: 100%;
	margin: 0;
	padding: 0.5rem 0.875rem;
	font-weight: 600;
	border-radius: 0.75rem;
	background-color: var(--petifood-primary, #6ee619);
	border: 1px solid var(--petifood-primary-dark, #5bc215);
	color: rgb(23 23 27);
	transition: filter 0.15s ease;
}

.petifood-shop-filter-widgets .widget_price_filter .price_slider_amount .button:hover,
.petifood-shop-filter-widgets .widget_price_filter .price_slider_amount .pf-wc-price-filter-submit:hover {
	filter: brightness(0.95);
}

.petifood-shop-filter-widgets .widget_price_filter .ui-slider.ui-slider-horizontal {
	position: relative;
	margin-inline: 0.5rem;
	margin-block: 0.5rem 0.25rem;
	block-size: 0.25rem !important;
	border: none !important;
	background: transparent !important;
}

.petifood-shop-filter-widgets .widget_price_filter .ui-slider .ui-slider-handle {
	inline-size: 1rem !important;
	block-size: 1rem !important;
	border-radius: 9999px !important;
	border: 2px solid rgb(23 23 27) !important;
	background-color: rgb(255 255 255) !important;
	top: 50% !important;
	margin-block-start: 0 !important;
	transform: translateY(-50%);
	cursor: ew-resize;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.petifood-shop-filter-widgets .widget_price_filter .ui-slider .ui-slider-range {
	background-color: var(--petifood-primary, #6ee619) !important;
	border-radius: 9999px;
}

.petifood-shop-filter-widgets .widget_price_filter .price_slider_wrapper .ui-widget-content,
.petifood-shop-filter-widgets .widget_price_filter .ui-slider-horizontal .ui-widget-header {
	background-color: rgb(229 231 235) !important;
	border: none !important;
	border-radius: 9999px;
}

html.dark .petifood-shop-filter-widgets .widget_price_filter .price_slider_wrapper .ui-widget-content,
html.dark .petifood-shop-filter-widgets .widget_price_filter .ui-slider-horizontal .ui-widget-header {
	background-color: rgb(55 65 81) !important;
}

html.dark .petifood-shop-filter-widgets .widget_price_filter .ui-slider .ui-slider-handle {
	border-color: rgb(229 231 235) !important;
	background-color: rgb(17 24 39) !important;
}

.petifood-shop-filter-widgets .widget_layered_nav_filters ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.petifood-shop-filter-widgets .petifood-shop-filter-list > li > a {
	flex: 1 1 auto;
}

.petifood-shop-filter-widgets .petifood-shop-filter-list--nested {
	margin-top: 0.25rem;
	padding-inline-start: 0.75rem;
	width: 100%;
	flex: 1 1 100%;
}

.petifood-shop-filter-widgets .petifood-shop-filter-list > li:has(.petifood-shop-filter-list--nested) {
	flex-wrap: wrap;
}

/* Brand filter: logo + name alongside checkbox */
.petifood-shop-filter-widgets .petifood-brand-filter-link {
	align-items: center;
}

.petifood-shop-filter-widgets .petifood-brand-filter-logo {
	flex-shrink: 0;
	inline-size: 2rem;
	block-size: 2rem;
	object-fit: contain;
	border-radius: 0.375rem;
	background-color: rgb(249 250 251);
	border: 1px solid rgb(243 244 246);
	padding: 0.125rem;
	box-sizing: border-box;
}

.petifood-shop-filter-widgets .petifood-brand-filter-logo--placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgb(156 163 175);
}

.petifood-shop-filter-widgets .petifood-brand-filter-logo--placeholder .material-symbols-outlined {
	font-size: 1.25rem;
	line-height: 1;
}

html.dark .petifood-shop-filter-widgets .petifood-brand-filter-logo {
	background-color: rgb(31 41 55);
	border-color: rgb(55 65 81);
}

html.dark .petifood-shop-filter-widgets .petifood-brand-filter-logo--placeholder {
	color: rgb(107 114 128);
}

.petifood-shop-filter-widgets .petifood-brand-filter-name {
	min-width: 0;
	flex: 1 1 auto;
}

/* Widget titles: same typography for Woo widgets and custom filter blocks */
.petifood-shop-filter-widgets .widget-title {
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: normal;
}

.petifood-shop-filter-widgets .widget_product_categories ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.petifood-shop-filter-widgets .widget_product_categories ul ul {
	margin-top: 0.25rem;
	padding-inline-start: 0.75rem;
}

/* --------------------------------------------------------------------------
   Shop archive toolbar — result count + catalog ordering
   -------------------------------------------------------------------------- */
.petifood-shop-toolbar .result-count-wrapper .woocommerce-result-count {
	margin: 0;
	padding: 0;
	font-size: inherit;
	line-height: 1.5;
	color: inherit;
}

.petifood-catalog-ordering {
	margin: 0;
	display: flex;
	align-items: center;
}

.catalog-ordering-wrapper .petifood-catalog-orderby,
.catalog-ordering-wrapper select.orderby {
	min-width: 11rem;
	max-width: 100%;
	box-sizing: border-box;
	font-family: 'Vazirmatn', 'Plus Jakarta Sans', sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.5;
	color: #1e293b;
	background-color: #f9fafb;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%2394a3b8' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	padding: 0.5rem 2.25rem 0.5rem 1rem;
	cursor: pointer;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

html.dark .catalog-ordering-wrapper .petifood-catalog-orderby,
html.dark .catalog-ordering-wrapper select.orderby {
	color: #f3f4f6;
	background-color: #1f2937;
	border-color: #374151;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%239ca3af' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

.catalog-ordering-wrapper .petifood-catalog-orderby:hover,
.catalog-ordering-wrapper select.orderby:hover {
	border-color: #d1d5db;
	background-color: #f3f4f6;
}

html.dark .catalog-ordering-wrapper .petifood-catalog-orderby:hover,
html.dark .catalog-ordering-wrapper select.orderby:hover {
	border-color: #4b5563;
	background-color: #111827;
}

.catalog-ordering-wrapper .petifood-catalog-orderby:focus,
.catalog-ordering-wrapper select.orderby:focus {
	border-color: var(--petifood-primary, #6ee619);
	box-shadow: 0 0 0 3px rgba(110, 230, 25, 0.15);
	background-color: #fff;
}

html.dark .catalog-ordering-wrapper .petifood-catalog-orderby:focus,
html.dark .catalog-ordering-wrapper select.orderby:focus {
	background-color: #0f172a;
}

.catalog-ordering-wrapper .petifood-catalog-orderby:focus-visible,
.catalog-ordering-wrapper select.orderby:focus-visible {
	outline: none;
}

@media (max-width: 639px) {
	.catalog-ordering-wrapper {
		width: 100%;
	}

	.catalog-ordering-wrapper .petifood-catalog-ordering {
		flex: 1;
		min-width: 0;
	}

	.catalog-ordering-wrapper .petifood-catalog-orderby,
	.catalog-ordering-wrapper select.orderby {
		width: 100%;
		min-width: 0;
	}
}

/* --------------------------------------------------------------------------
   Product category: intro description + bottom «محتوای زیر محصولات»
   Justified copy; centered images with theme-aligned frames.
   -------------------------------------------------------------------------- */
.petifood-product-cat-rich-content p,
.petifood-product-cat-rich-content li {
	text-align: justify;
	text-justify: inter-word;
}

.petifood-product-cat-rich-content h1,
.petifood-product-cat-rich-content h2,
.petifood-product-cat-rich-content h3,
.petifood-product-cat-rich-content h4,
.petifood-product-cat-rich-content h5,
.petifood-product-cat-rich-content h6 {
	text-align: start;
}

/* Paragraphs that only wrap an image: center (no full-width justify on image line) */
.petifood-product-cat-rich-content p:has(img) {
	text-align: center;
}

.petifood-product-cat-rich-content img,
.petifood-product-cat-rich-content .wp-block-image img {
	display: block;
	width: auto;
	max-width: min(100%, 42rem);
	height: auto;
	margin: 1.25rem auto;
	clear: both;
	float: none;
	border-radius: 0.75rem;
	border: 1px solid #e5e7eb;
	box-shadow:
		0 1px 3px rgba(15, 23, 42, 0.06),
		0 0 0 1px rgba(110, 230, 25, 0.12);
	object-fit: contain;
	background-color: #f9fafb;
}

html.dark .petifood-product-cat-rich-content img,
html.dark .petifood-product-cat-rich-content .wp-block-image img {
	border-color: #374151;
	background-color: #1f2937;
	box-shadow:
		0 1px 3px rgba(0, 0, 0, 0.25),
		0 0 0 1px rgba(110, 230, 25, 0.18);
}

.petifood-product-cat-rich-content figure.wp-block-image,
.petifood-product-cat-rich-content .wp-caption,
.petifood-product-cat-rich-content figure.aligncenter {
	margin: 1.25rem auto;
	max-width: 100%;
	text-align: center;
}

.petifood-product-cat-rich-content .wp-caption-text {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: rgb(107 114 128);
	text-align: center;
}

html.dark .petifood-product-cat-rich-content .wp-caption-text {
	color: rgb(156 163 175);
}

/* Rich typography: headings hierarchy (intro + bottom SEO content) */
.petifood-product-cat-rich-content > *:first-child {
	margin-top: 0;
}

.petifood-product-cat-rich-content > *:last-child {
	margin-bottom: 0;
}

.petifood-product-cat-rich-content h1 {
	margin: 2rem 0 1rem;
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: rgb(17 24 39);
	border-bottom: 3px solid var(--petifood-primary, #6ee619);
	padding-bottom: 0.5rem;
}

.petifood-product-cat-rich-content h2 {
	margin: 1.75rem 0 0.875rem;
	font-size: clamp(1.35rem, 1.15rem + 0.65vw, 1.65rem);
	font-weight: 800;
	line-height: 1.3;
	color: rgb(17 24 39);
	position: relative;
	padding-inline-start: 0.85rem;
}

.petifood-product-cat-rich-content h2::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.2em;
	bottom: 0.2em;
	width: 4px;
	border-radius: 999px;
	background: linear-gradient(
		180deg,
		var(--petifood-primary, #6ee619),
		var(--petifood-primary-dark, #5bc215)
	);
}

.petifood-product-cat-rich-content h3 {
	margin: 1.5rem 0 0.65rem;
	font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.3rem);
	font-weight: 700;
	line-height: 1.35;
	color: rgb(31 41 55);
}

.petifood-product-cat-rich-content h4 {
	margin: 1.25rem 0 0.5rem;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.4;
	color: rgb(55 65 81);
}

.petifood-product-cat-rich-content h5,
.petifood-product-cat-rich-content h6 {
	margin: 1rem 0 0.4rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.45;
	color: rgb(75 85 99);
	text-transform: none;
}

html.dark .petifood-product-cat-rich-content h1,
html.dark .petifood-product-cat-rich-content h2,
html.dark .petifood-product-cat-rich-content h3 {
	color: rgb(243 244 246);
}

html.dark .petifood-product-cat-rich-content h4 {
	color: rgb(229 231 235);
}

html.dark .petifood-product-cat-rich-content h5,
html.dark .petifood-product-cat-rich-content h6 {
	color: rgb(209 213 219);
}

/* Paragraphs & inline rhythm */
.petifood-product-cat-rich-content p {
	margin: 0 0 1rem;
}

.petifood-product-cat-rich-content a {
	color: var(--petifood-primary-dark, #5bc215);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.petifood-product-cat-rich-content a:hover {
	color: var(--petifood-primary, #6ee619);
	text-decoration-color: transparent;
}

html.dark .petifood-product-cat-rich-content a {
	color: rgb(163 230 53);
}

html.dark .petifood-product-cat-rich-content a:hover {
	color: rgb(190 242 100);
}

.petifood-product-cat-rich-content strong,
.petifood-product-cat-rich-content b {
	font-weight: 800;
	color: rgb(17 24 39);
}

html.dark .petifood-product-cat-rich-content strong,
html.dark .petifood-product-cat-rich-content b {
	color: rgb(243 244 246);
}

/* Lists */
.petifood-product-cat-rich-content ul {
	margin: 0 0 1.25rem;
}

.petifood-product-cat-rich-content ul {
	list-style: none;
	padding-inline-start: 0;
}

.petifood-product-cat-rich-content ul > li {
	position: relative;
	padding-inline-start: 1.35rem;
	margin-bottom: 0.5rem;
}

.petifood-product-cat-rich-content ul > li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0.15rem;
	top: 0.55em;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: linear-gradient(
		135deg,
		var(--petifood-primary, #6ee619),
		var(--petifood-primary-dark, #5bc215)
	);
	box-shadow: 0 0 0 2px rgba(110, 230, 25, 0.2);
}

.petifood-product-cat-rich-content ol {
	list-style-position: outside;
	padding-inline-start: 1.5rem;
	margin: 0 0 1.25rem;
}

.petifood-product-cat-rich-content ol > li {
	margin-bottom: 0.5rem;
	padding-inline-start: 0.35rem;
}

.petifood-product-cat-rich-content ol > li::marker {
	font-weight: 800;
	color: var(--petifood-primary-dark, #5bc215);
}

html.dark .petifood-product-cat-rich-content ol > li::marker {
	color: rgb(163 230 53);
}

.petifood-product-cat-rich-content li > ul,
.petifood-product-cat-rich-content li > ol {
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}

/* Block quote & code */
.petifood-product-cat-rich-content blockquote {
	margin: 1.5rem 0;
	padding: 1rem 1.25rem;
	border-radius: 0.75rem;
	border-inline-start: 4px solid var(--petifood-primary, #6ee619);
	background: linear-gradient(
		90deg,
		rgba(110, 230, 25, 0.08),
		rgba(249, 250, 251, 0.9)
	);
	font-style: normal;
	color: rgb(55 65 81);
}

html.dark .petifood-product-cat-rich-content blockquote {
	background: linear-gradient(
		90deg,
		rgba(110, 230, 25, 0.12),
		rgba(31 41 55, 0.95)
	);
	color: rgb(209 213 219);
}

.petifood-product-cat-rich-content code {
	font-size: 0.9em;
	padding: 0.12em 0.45em;
	border-radius: 0.35rem;
	background: rgb(243 244 246);
	border: 1px solid rgb(229 231 235);
}

html.dark .petifood-product-cat-rich-content code {
	background: rgb(55 65 81);
	border-color: rgb(75 85 99);
	color: rgb(243 244 246);
}

.petifood-product-cat-rich-content pre {
	margin: 1.25rem 0;
	padding: 1rem 1.15rem;
	overflow-x: auto;
	border-radius: 0.75rem;
	background: rgb(17 24 39);
	color: rgb(243 244 246);
	font-size: 0.875rem;
	line-height: 1.6;
	border: 1px solid rgb(55 65 81);
}

.petifood-product-cat-rich-content pre code {
	background: transparent;
	border: 0;
	padding: 0;
	color: inherit;
}

.petifood-product-cat-rich-content hr {
	margin: 2rem 0;
	border: 0;
	height: 1px;
	background: linear-gradient(
		90deg,
		transparent,
		rgb(209 213 219) 15%,
		rgb(209 213 219) 85%,
		transparent
	);
}

html.dark .petifood-product-cat-rich-content hr {
	background: linear-gradient(
		90deg,
		transparent,
		rgb(75 85 99) 15%,
		rgb(75 85 99) 85%,
		transparent
	);
}

/* Tables: scroll wrappers + Gutenberg figure share overflow/scrollbar */
.petifood-rich-table-scroll,
.petifood-product-cat-rich-content figure.wp-block-table,
.petifood-product-cat-rich-content .wp-block-table {
	margin: 1.75rem 0;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--petifood-primary, #6ee619) rgb(243 244 246);
	border-radius: 0.875rem;
}

.petifood-rich-table-scroll::-webkit-scrollbar,
.petifood-product-cat-rich-content figure.wp-block-table::-webkit-scrollbar,
.petifood-product-cat-rich-content .wp-block-table::-webkit-scrollbar {
	height: 8px;
}

.petifood-rich-table-scroll::-webkit-scrollbar-thumb,
.petifood-product-cat-rich-content figure.wp-block-table::-webkit-scrollbar-thumb,
.petifood-product-cat-rich-content .wp-block-table::-webkit-scrollbar-thumb {
	background: var(--petifood-primary, #6ee619);
	border-radius: 999px;
}

.petifood-rich-table-scroll::-webkit-scrollbar-track,
.petifood-product-cat-rich-content figure.wp-block-table::-webkit-scrollbar-track,
.petifood-product-cat-rich-content .wp-block-table::-webkit-scrollbar-track {
	background: rgb(243 244 246);
	border-radius: 999px;
}

html.dark .petifood-rich-table-scroll,
html.dark .petifood-product-cat-rich-content figure.wp-block-table,
html.dark .petifood-product-cat-rich-content .wp-block-table {
	scrollbar-color: var(--petifood-primary, #6ee619) rgb(31 41 55);
}

html.dark .petifood-rich-table-scroll::-webkit-scrollbar-track,
html.dark .petifood-product-cat-rich-content figure.wp-block-table::-webkit-scrollbar-track,
html.dark .petifood-product-cat-rich-content .wp-block-table::-webkit-scrollbar-track {
	background: rgb(31 41 55);
}

.petifood-product-cat-rich-content figure.wp-block-table,
.petifood-product-cat-rich-content .wp-block-table {
	width: 100% !important;
}

.petifood-product-cat-rich-content .wp-block-table table,
.petifood-product-cat-rich-content table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	border-radius: 0.875rem;
	overflow: hidden;
	border: 1px solid rgb(229 231 235);
	box-shadow:
		0 1px 3px rgba(15, 23, 42, 0.06),
		0 4px 20px rgba(15, 23, 42, 0.04);
	background: rgb(255 255 255);
}

html.dark .petifood-product-cat-rich-content .wp-block-table table,
html.dark .petifood-product-cat-rich-content table {
	border-color: rgb(55 65 81);
	background: rgb(17 24 39);
	box-shadow:
		0 1px 3px rgba(0, 0, 0, 0.2),
		0 4px 24px rgba(0, 0, 0, 0.15);
}

/* Table surface (inside scroll wrapper or figure) */
.petifood-product-cat-rich-content thead th {
	padding: 0.85rem 1rem;
	text-align: start;
	font-weight: 800;
	font-size: 0.8125rem;
	text-transform: none;
	letter-spacing: 0.02em;
	color: rgb(255 255 255);
	background: linear-gradient(
		135deg,
		var(--petifood-primary-dark, #5bc215) 0%,
		var(--petifood-primary, #6ee619) 100%
	);
	border-bottom: none;
	vertical-align: middle;
	box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.petifood-product-cat-rich-content thead th:first-child {
	border-start-start-radius: 0.875rem;
}

.petifood-product-cat-rich-content thead th:last-child {
	border-start-end-radius: 0.875rem;
}

.petifood-product-cat-rich-content tbody td,
.petifood-product-cat-rich-content tbody th,
.petifood-product-cat-rich-content tfoot td {
	padding: 0.75rem 1rem;
	text-align: start;
	vertical-align: top;
	border-bottom: 1px solid rgb(243 244 246);
	color: rgb(55 65 81);
}

html.dark .petifood-product-cat-rich-content tbody td,
html.dark .petifood-product-cat-rich-content tbody th,
html.dark .petifood-product-cat-rich-content tfoot td {
	border-bottom-color: rgb(55 65 81);
	color: rgb(209 213 219);
}

.petifood-product-cat-rich-content tbody tr:nth-child(even) td,
.petifood-product-cat-rich-content tbody tr:nth-child(even) th {
	background: rgb(249 250 251 / 0.85);
}

html.dark .petifood-product-cat-rich-content tbody tr:nth-child(even) td,
html.dark .petifood-product-cat-rich-content tbody tr:nth-child(even) th {
	background: rgb(31 41 55 / 0.65);
}

.petifood-product-cat-rich-content tbody tr:last-child td,
.petifood-product-cat-rich-content tbody tr:last-child th {
	border-bottom: none;
}

.petifood-product-cat-rich-content tbody tr:hover td,
.petifood-product-cat-rich-content tbody tr:hover th {
	background: rgba(110, 230, 25, 0.08);
}

html.dark .petifood-product-cat-rich-content tbody tr:hover td,
html.dark .petifood-product-cat-rich-content tbody tr:hover th {
	background: rgba(110, 230, 25, 0.12);
}

/* Row headers in body */
.petifood-product-cat-rich-content tbody th {
	font-weight: 700;
	color: rgb(17 24 39);
	background: rgb(243 244 246 / 0.5);
}

html.dark .petifood-product-cat-rich-content tbody th {
	color: rgb(243 244 246);
	background: rgb(55 65 81 / 0.5);
}

/* Tables pasted without <thead>: first row as visual header */
.petifood-product-cat-rich-content table:not(:has(thead)) tbody tr:first-child th,
.petifood-product-cat-rich-content table:not(:has(thead)) tbody tr:first-child td {
	font-weight: 800;
	color: rgb(255 255 255);
	background: linear-gradient(
		135deg,
		var(--petifood-primary-dark, #5bc215) 0%,
		var(--petifood-primary, #6ee619) 100%
	);
	border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Bottom SEO block: comfortable reading width for long text (tables can still span full column) */
.petifood-product-cat-bottom-content {
	overflow-wrap: break-word;
}

@media (min-width: 1024px) {
	.petifood-product-cat-bottom-content {
		padding-inline: clamp(1.5rem, 3vw, 2.5rem);
	}
}

/* Shop archive pagination (AJAX filter updates this block) */
#petifood-shop-results .pagination-wrapper ul {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

#petifood-shop-results .pagination-wrapper ul li a,
#petifood-shop-results .pagination-wrapper ul li span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.75rem;
	transition: all 0.2s;
}

#petifood-shop-results .pagination-wrapper ul li a.page-numbers {
	border: 1px solid #e5e7eb;
	color: #4b5563;
}

#petifood-shop-results .pagination-wrapper ul li a.page-numbers:hover {
	background-color: #f9fafb;
}

#petifood-shop-results .pagination-wrapper ul li span.current {
	background-color: var(--color-primary, #6ee619);
	color: white;
	font-weight: bold;
	box-shadow: 0 10px 15px -3px rgba(110, 230, 25, 0.3);
}

html.dark #petifood-shop-results .pagination-wrapper ul li a.page-numbers {
	border-color: #374151;
	color: #d1d5db;
}

html.dark #petifood-shop-results .pagination-wrapper ul li a.page-numbers:hover {
	background-color: #1f2937;
}

/* AJAX shop filter loading state — subtle indicator on results only */
@keyframes petifood-shop-filter-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes petifood-shop-filter-progress {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(100%);
	}
}

#petifood-shop-results-inner.petifood-shop-loading {
	position: relative;
	overflow-x: clip;
}

#petifood-shop-results-inner.petifood-shop-loading::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 5;
	height: 3px;
	overflow: hidden;
	border-radius: 999px;
	pointer-events: none;
}

#petifood-shop-results-inner.petifood-shop-loading::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 6;
	height: 3px;
	overflow: hidden;
	border-radius: 999px;
	background: linear-gradient(
		90deg,
		transparent 0%,
		var(--petifood-primary, #6ee619) 50%,
		transparent 100%
	);
	animation: petifood-shop-filter-progress 0.9s ease-in-out infinite;
	pointer-events: none;
	will-change: transform;
}

#petifood-shop-results-inner.petifood-shop-loading .petifood-shop-toolbar {
	position: relative;
}

#petifood-shop-results-inner.petifood-shop-loading .petifood-shop-toolbar .result-count-wrapper::after {
	content: "";
	display: inline-block;
	vertical-align: middle;
	margin-inline-start: 0.5rem;
	inline-size: 1rem;
	block-size: 1rem;
	border: 2px solid rgba(110, 230, 25, 0.22);
	border-top-color: var(--petifood-primary, #6ee619);
	border-radius: 50%;
	animation: petifood-shop-filter-spin 0.65s linear infinite;
}

/* --------------------------------------------------------------------------
   Shop archive — mobile filter drawer + collapsible filter sections
   -------------------------------------------------------------------------- */
.petifood-shop-filter-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 2.5rem;
	padding: 0.4rem 0.85rem;
	border-radius: 0.75rem;
	border: 1px solid rgb(229 231 235);
	background: rgb(249 250 251);
	color: rgb(55 65 81);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	transition:
		color 0.2s ease,
		border-color 0.2s ease,
		background 0.2s ease,
		box-shadow 0.2s ease;
}

.petifood-shop-filter-toggle .material-icons-round {
	font-size: 1.125rem;
}

.petifood-shop-filter-toggle:hover {
	border-color: rgba(110, 230, 25, 0.45);
	color: rgb(22 101 52);
	box-shadow: 0 2px 8px rgba(110, 230, 25, 0.12);
}

.petifood-shop-filter-toggle[aria-expanded='true'] {
	border-color: rgba(110, 230, 25, 0.5);
	background: rgba(110, 230, 25, 0.1);
	color: rgb(22 101 52);
}

html.dark .petifood-shop-filter-toggle {
	border-color: rgb(55 65 81);
	background: rgb(31 41 55);
	color: rgb(209 213 219);
}

html.dark .petifood-shop-filter-toggle:hover,
html.dark .petifood-shop-filter-toggle[aria-expanded='true'] {
	border-color: rgba(190, 242, 100, 0.35);
	color: rgb(190 242 100);
}

.petifood-shop-filter-drawer {
	position: fixed;
	inset: 0;
	z-index: 10040;
	pointer-events: none;
	visibility: hidden;
	overflow: hidden;
	transition: visibility 0.35s linear;
}

.petifood-shop-filter-drawer.is-open {
	pointer-events: auto;
	visibility: visible;
}

body.petifood-shop-filter-drawer-active {
	overflow: hidden;
	touch-action: none;
}

.petifood-shop-filter-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, rgba(15, 23, 42, 0.55) 0%, rgba(22, 101, 52, 0.28) 100%);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.petifood-shop-filter-drawer.is-open .petifood-shop-filter-drawer__backdrop {
	opacity: 1;
}

.petifood-shop-filter-drawer__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: auto;
	right: 0;
	width: min(22.5rem, 92vw);
	max-width: 100%;
	display: flex;
	flex-direction: column;
	transform: translate3d(100%, 0, 0);
	transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
	will-change: transform;
	box-shadow: -12px 0 40px rgba(15, 23, 42, 0.14), -4px 0 0 rgba(110, 230, 25, 0.18);
	border-left: 1px solid rgba(110, 230, 25, 0.12);
}

.petifood-shop-filter-drawer.is-open .petifood-shop-filter-drawer__panel {
	transform: translate3d(0, 0, 0);
}

.petifood-shop-filter-drawer__card {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	margin: 0;
	border-radius: 0 !important;
	border: none !important;
	box-shadow: none !important;
	background: linear-gradient(180deg, #ffffff 0%, #f8faf8 48%, #f3f4f6 100%) !important;
}

html.dark .petifood-shop-filter-drawer__card {
	background: linear-gradient(180deg, #111827 0%, #0f172a 50%, #020617 100%) !important;
}

.petifood-shop-filter-drawer__card-head {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: -1.5rem -1.5rem 1rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid rgb(243 244 246);
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(8px);
}

html.dark .petifood-shop-filter-drawer__card-head {
	border-bottom-color: rgb(31 41 55);
	background: rgba(17, 24, 39, 0.85);
}

.petifood-shop-filter-drawer__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	color: rgb(17 24 39);
}

html.dark .petifood-shop-filter-drawer__title {
	color: rgb(243 244 246);
}

.petifood-shop-filter-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid rgb(229 231 235);
	border-radius: 0.75rem;
	background: rgb(255 255 255);
	color: rgb(75 85 99);
	transition:
		border-color 0.2s ease,
		color 0.2s ease,
		background 0.2s ease;
}

.petifood-shop-filter-drawer__close:hover {
	border-color: rgba(110, 230, 25, 0.45);
	color: rgb(22 101 52);
}

html.dark .petifood-shop-filter-drawer__close {
	border-color: rgb(55 65 81);
	background: rgb(31 41 55);
	color: rgb(209 213 219);
}

#petifood-shop-sidebar-inner {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.petifood-shop-filter-widget__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0;
}

.petifood-shop-filter-widget__head .widget-title {
	flex: 1 1 auto;
	margin-bottom: 0 !important;
}

.petifood-shop-filter-widget__toggle {
	display: none;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid rgb(229 231 235);
	border-radius: 0.5rem;
	background: rgb(249 250 251);
	color: rgb(75 85 99);
	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease;
}

.petifood-shop-filter-widget__toggle .material-icons-round {
	font-size: 1.25rem;
	transition: transform 0.25s ease;
}

.petifood-shop-filter-widget.is-open .petifood-shop-filter-widget__toggle .material-icons-round {
	transform: rotate(180deg);
}

html.dark .petifood-shop-filter-widget__toggle {
	border-color: rgb(55 65 81);
	background: rgb(31 41 55);
	color: rgb(209 213 219);
}

@media (max-width: 1023px) {
	.petifood-shop-filter-widget__head {
		cursor: pointer;
		padding-block: 0.15rem;
	}

	.petifood-shop-filter-widget__toggle {
		display: inline-flex;
	}

	.petifood-shop-filter-widget:not(.is-open) {
		padding-bottom: 0.75rem !important;
	}

	.petifood-shop-filter-widget:not(.is-open) .petifood-shop-filter-widget__body {
		display: none;
	}

	.petifood-shop-filter-widget.is-open .petifood-shop-filter-widget__body {
		padding-top: 0.75rem;
	}
}

@media (min-width: 1024px) {
	.petifood-shop-filter-drawer {
		position: static;
		inset: auto;
		z-index: auto;
		pointer-events: auto;
		visibility: visible;
		grid-column: span 1 / span 1;
	}

	.petifood-shop-filter-drawer__card-head {
		display: none;
	}

	.petifood-shop-filter-drawer__backdrop {
		display: none;
	}

	.petifood-shop-filter-drawer__panel {
		position: static;
		width: auto;
		transform: none !important;
	}

	.petifood-shop-filter-drawer__card {
		border-radius: 1rem !important;
		border: 1px solid rgb(243 244 246) !important;
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
		background: rgb(255 255 255) !important;
	}

	html.dark .petifood-shop-filter-drawer__card {
		border-color: rgb(31 41 55) !important;
		background: rgb(17 24 39) !important;
	}

	#petifood-shop-sidebar-inner {
		overflow: visible;
	}

	.petifood-shop-filter-widget__body {
		display: block !important;
		padding-top: 0.75rem;
	}
}
