/**
 * Pishtazan Shop Core — widget styles.
 *
 * Colors, radii, shadows and fonts come ONLY from the theme's --pz-* tokens
 * (docs/pishtazan-shop/CONTRACT.md), so every preset restyles the widgets.
 * The fallbacks after each token keep the widgets usable under another
 * theme. Logical properties make the layout RTL-first and LTR-safe.
 */

.pz-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.pz-hp {
	position: absolute !important;
	inset-inline-start: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.pz-icon {
	width: 1.25em;
	height: 1.25em;
	flex: 0 0 auto;
	vertical-align: middle;
}

.pz-empty {
	padding: 1.5rem;
	border: 1px dashed var(--pz-border, #e5e7eb);
	border-radius: var(--pz-radius, 12px);
	color: var(--pz-muted, #6b7280);
	text-align: center;
	font-family: var(--pz-font, inherit);
}

/* -----------------------------------------------------------------
 * Buttons / badges / section head / price / rating
 * ----------------------------------------------------------------- */
.pz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.7em 1.4em;
	border: 1px solid transparent;
	border-radius: var(--pz-radius-sm, 8px);
	font-family: var(--pz-font, inherit);
	font-size: 0.95em;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.pz-btn:hover,
.pz-btn:focus-visible {
	filter: brightness(0.92);
}

.pz-btn:focus-visible,
.pz-search__input:focus-visible,
.pz-newsletter__input:focus-visible {
	outline: 2px solid var(--pz-accent, #f59e0b);
	outline-offset: 2px;
}

.pz-btn--primary {
	background: var(--pz-primary, #e11d2a);
	color: var(--pz-primary-ink, #fff);
}

.pz-btn--light {
	background: var(--pz-surface, #fff);
	color: var(--pz-text, #111827);
}

.pz-btn .pz-icon--chevron {
	width: 1em;
	height: 1em;
}

.pz-btn.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.pz-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25em;
	padding: 0.2em 0.6em;
	border-radius: var(--pz-radius-sm, 8px);
	background: var(--pz-bg, #f3f4f6);
	color: var(--pz-text, #111827);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.5;
	white-space: nowrap;
}

.pz-badge--sale {
	background: var(--pz-primary, #e11d2a);
	color: var(--pz-primary-ink, #fff);
}

.pz-badge--condition {
	background: var(--pz-bg, #f3f4f6);
	border: 1px solid var(--pz-border, #e5e7eb);
	color: var(--pz-secondary, #0a5c36);
}

.pz-section {
	font-family: var(--pz-font, inherit);
	color: var(--pz-text, #111827);
}

.pz-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	margin-block-end: 1.25rem;
}

.pz-section__title {
	margin: 0;
	padding-inline-start: 0.75rem;
	border-inline-start: 4px solid var(--pz-secondary, #0a5c36);
	font-size: 1.35rem;
	line-height: 1.4;
}

.pz-section__subtitle {
	margin: 0.25rem 0 0;
	padding-inline-start: calc(0.75rem + 4px);
	color: var(--pz-muted, #6b7280);
	font-size: 0.9rem;
}

.pz-section__more {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	color: var(--pz-text, #111827);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.pz-section__more:hover {
	color: var(--pz-primary, #e11d2a);
}

[dir="ltr"] .pz-section__more .pz-icon,
[dir="ltr"] .pz-btn .pz-icon--chevron {
	transform: scaleX(-1);
}

.pz-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5em;
	color: var(--pz-primary, #e11d2a);
	font-weight: 800;
}

.pz-price__old {
	color: var(--pz-muted, #6b7280);
	font-size: 0.85em;
	font-weight: 400;
}

.pz-rating {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	color: var(--pz-muted, #6b7280);
	font-size: 0.8rem;
}

.pz-rating__stars {
	position: relative;
	display: inline-block;
	font-size: 0.9rem;
	line-height: 1;
	letter-spacing: 1px;
	color: var(--pz-border, #e5e7eb);
}

.pz-rating__stars::before {
	content: "★★★★★";
}

.pz-rating__stars::after {
	content: "★★★★★";
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	width: var(--pz-rating, 0%);
	overflow: hidden;
	color: var(--pz-accent, #f59e0b);
	white-space: nowrap;
}

/* -----------------------------------------------------------------
 * Hero slider
 * ----------------------------------------------------------------- */
.pz-hero {
	position: relative;
	overflow: hidden;
	min-height: clamp(260px, 38vw, 460px);
	border-radius: var(--pz-radius, 12px);
	background: var(--pz-footer-bg, #111827);
	color: var(--pz-primary-ink, #fff);
	font-family: var(--pz-font, inherit);
	isolation: isolate;
}

.pz-hero__track {
	position: absolute;
	inset: 0;
}

.pz-hero__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0.6s;
}

.pz-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.pz-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -1;
}

.pz-hero__content {
	max-width: min(32rem, 90%);
	padding: clamp(1.25rem, 4vw, 3rem);
}

.pz-hero__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.6rem, 4vw, 2.8rem);
	font-weight: 900;
	line-height: 1.3;
}

.pz-hero__text {
	margin: 0 0 1.5rem;
	font-size: clamp(0.95rem, 1.6vw, 1.2rem);
	line-height: 1.8;
	opacity: 0.92;
}

.pz-hero__features {
	position: absolute;
	inset-block: 0;
	inset-inline-end: clamp(1rem, 3vw, 2.5rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pz-hero__feature {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.9rem;
}

.pz-hero__feature .pz-icon {
	width: 2rem;
	height: 2rem;
}

.pz-hero__feature strong,
.pz-hero__feature small {
	display: block;
}

.pz-hero__feature small {
	opacity: 0.85;
}

.pz-hero__dots {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 1rem;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

.pz-hero__dot {
	width: 0.6rem;
	height: 0.6rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--pz-surface, #fff);
	opacity: 0.5;
	cursor: pointer;
	transition: width 0.2s ease, opacity 0.2s ease;
}

.pz-hero__dot.is-active {
	width: 1.5rem;
	opacity: 1;
}

@media (max-width: 767px) {
	.pz-hero__features {
		display: none;
	}
}

/* -----------------------------------------------------------------
 * Grids (categories, products, posts, banners, trust)
 * ----------------------------------------------------------------- */
.pz-cats__grid,
.pz-products--grid .pz-products__list,
.pz-posts__grid,
.pz-banners,
.pz-trust {
	display: grid;
	grid-template-columns: repeat(var(--pz-cols, 4), minmax(0, 1fr));
	gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

@media (max-width: 1024px) {
	.pz-cats__grid {
		grid-template-columns: repeat(min(var(--pz-cols, 6), 4), minmax(0, 1fr));
	}

	.pz-products--grid .pz-products__list,
	.pz-trust {
		grid-template-columns: repeat(min(var(--pz-cols, 4), 3), minmax(0, 1fr));
	}

	.pz-posts__grid {
		grid-template-columns: repeat(min(var(--pz-cols, 3), 2), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.pz-cats__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.pz-products--grid .pz-products__list,
	.pz-trust {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pz-posts__grid,
	.pz-banners {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 420px) {
	.pz-cats__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Category tiles */
.pz-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem 0.75rem;
	border: 1px solid var(--pz-border, #e5e7eb);
	border-radius: var(--pz-radius, 12px);
	background: var(--pz-surface, #fff);
	color: var(--pz-text, #111827);
	text-align: center;
	text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pz-cat:hover,
.pz-cat:focus-visible {
	box-shadow: var(--pz-shadow, 0 8px 24px rgba(0, 0, 0, 0.08));
	transform: translateY(-2px);
}

.pz-cat__media {
	display: grid;
	place-items: center;
	width: 100%;
	aspect-ratio: 1;
	max-width: 7.5rem;
}

.pz-cat__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pz-cat__placeholder {
	width: 3rem;
	height: 3rem;
	color: var(--pz-muted, #6b7280);
}

.pz-cat__name {
	font-weight: 700;
	font-size: 0.95rem;
}

.pz-cat__count {
	color: var(--pz-muted, #6b7280);
	font-size: 0.8rem;
}

/* -----------------------------------------------------------------
 * Product card
 * ----------------------------------------------------------------- */
.pz-products {
	padding: clamp(1rem, 2vw, 1.5rem);
	border-radius: var(--pz-radius, 12px);
	background: var(--pz-surface, #fff);
}

.pz-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 0.9rem;
	border: 1px solid var(--pz-border, #e5e7eb);
	border-radius: var(--pz-radius, 12px);
	background: var(--pz-surface, #fff);
	color: var(--pz-text, #111827);
	font-family: var(--pz-font, inherit);
	transition: box-shadow 0.2s ease;
}

.pz-card:hover {
	box-shadow: var(--pz-shadow, 0 8px 24px rgba(0, 0, 0, 0.08));
}

.pz-card__sale {
	position: absolute;
	inset-block-start: 0.75rem;
	inset-inline-end: 0.75rem;
	z-index: 1;
}

.pz-card__actions {
	position: absolute;
	inset-block-start: 0.75rem;
	inset-inline-start: 0.75rem;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.pz-card__media {
	display: block;
	aspect-ratio: 1;
}

.pz-card__media img,
.pz-card__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.pz-card__title {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 3.2em;
}

.pz-card__title a {
	color: inherit;
	text-decoration: none;
}

.pz-card__title a:hover {
	color: var(--pz-primary, #e11d2a);
}

.pz-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.pz-card__price {
	font-size: 1.05rem;
}

.pz-card__cart {
	margin-block-start: auto;
	width: 100%;
}

.pz-card__cart.is-added {
	background: var(--pz-secondary, #0a5c36);
}

/* Carousel */
.pz-products--carousel {
	position: relative;
}

.pz-products--carousel .pz-products__list {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--pz-cols, 4) - 1) * 1rem) / var(--pz-cols, 4));
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.pz-products--carousel .pz-products__list::-webkit-scrollbar {
	display: none;
}

.pz-products--carousel .pz-card {
	scroll-snap-align: start;
}

.pz-products__nav {
	display: flex;
	justify-content: flex-end;
	gap: 0.5rem;
	margin-block-start: 0.75rem;
}

.pz-products__prev,
.pz-products__next {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid var(--pz-border, #e5e7eb);
	border-radius: 999px;
	background: var(--pz-surface, #fff);
	color: var(--pz-text, #111827);
	cursor: pointer;
}

.pz-products__next .pz-icon {
	transform: scaleX(-1);
}

[dir="ltr"] .pz-products__prev .pz-icon {
	transform: scaleX(-1);
}

[dir="ltr"] .pz-products__next .pz-icon {
	transform: none;
}

@media (max-width: 1024px) {
	.pz-products--carousel .pz-products__list {
		grid-auto-columns: calc((100% - 2rem) / 3);
	}
}

@media (max-width: 767px) {
	.pz-products--carousel .pz-products__list {
		grid-auto-columns: 46%;
	}
}

/* -----------------------------------------------------------------
 * Deal countdown
 * ----------------------------------------------------------------- */
.pz-deal {
	display: grid;
	grid-template-columns: auto 9rem 1fr auto;
	align-items: center;
	gap: clamp(1rem, 2vw, 2rem);
	padding: clamp(1rem, 2vw, 1.5rem);
	border-radius: var(--pz-radius, 12px);
	background: color-mix(in srgb, var(--pz-primary, #e11d2a) 8%, var(--pz-surface, #fff));
	color: var(--pz-text, #111827);
	font-family: var(--pz-font, inherit);
}

.pz-deal__timer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.pz-deal__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.35em 1em;
	border-radius: 999px;
	background: var(--pz-primary, #e11d2a);
	color: var(--pz-primary-ink, #fff);
	font-weight: 800;
	font-size: 0.9rem;
}

.pz-countdown {
	display: flex;
	gap: 0.5rem;
	direction: rtl;
}

.pz-countdown__box {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 3.4rem;
	padding: 0.5rem 0.4rem;
	border-radius: var(--pz-radius-sm, 8px);
	background: var(--pz-surface, #fff);
	box-shadow: var(--pz-shadow, 0 4px 12px rgba(0, 0, 0, 0.06));
}

.pz-countdown__box b {
	font-size: 1.4rem;
	line-height: 1.2;
}

.pz-countdown__box small {
	color: var(--pz-muted, #6b7280);
	font-size: 0.75rem;
}

.pz-deal__media img,
.pz-deal__img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.pz-deal__title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
}

.pz-deal__title a {
	color: inherit;
	text-decoration: none;
}

.pz-deal__text {
	margin: 0 0 0.75rem;
	color: var(--pz-muted, #6b7280);
	font-size: 0.9rem;
}

.pz-deal.is-ended .pz-countdown {
	opacity: 0.5;
}

@media (max-width: 900px) {
	.pz-deal {
		grid-template-columns: 7rem 1fr;
	}

	.pz-deal__timer,
	.pz-deal__btn {
		grid-column: 1 / -1;
	}
}

/* -----------------------------------------------------------------
 * Promo banners
 * ----------------------------------------------------------------- */
.pz-banners {
	font-family: var(--pz-font, inherit);
}

.pz-banner {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(160px, 18vw, 220px);
	overflow: hidden;
	border-radius: var(--pz-radius, 12px);
	background: var(--pz-secondary, #0a5c36);
	color: var(--pz-primary-ink, #fff);
	isolation: isolate;
}

.pz-banner__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -1;
}

.pz-banner__content {
	max-width: 60%;
	padding: clamp(1rem, 2.5vw, 2rem);
}

.pz-banner__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.2rem, 2.2vw, 1.75rem);
	font-weight: 900;
	line-height: 1.4;
}

.pz-banner__text {
	margin: 0 0 1rem;
	opacity: 0.9;
}

/* -----------------------------------------------------------------
 * Trust strip
 * ----------------------------------------------------------------- */
.pz-trust {
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--pz-font, inherit);
}

.pz-trust__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem;
	border: 1px solid var(--pz-border, #e5e7eb);
	border-radius: var(--pz-radius, 12px);
	background: var(--pz-surface, #fff);
	color: var(--pz-text, #111827);
}

.pz-trust__icon {
	width: 2.25rem;
	height: 2.25rem;
	color: var(--pz-secondary, #0a5c36);
}

.pz-trust__title,
.pz-trust__text {
	display: block;
}

.pz-trust__title {
	font-size: 0.95rem;
}

.pz-trust__text {
	color: var(--pz-muted, #6b7280);
	font-size: 0.8rem;
}

/* -----------------------------------------------------------------
 * Latest posts
 * ----------------------------------------------------------------- */
.pz-posts {
	padding: clamp(1rem, 2vw, 1.5rem);
	border-radius: var(--pz-radius, 12px);
	background: var(--pz-surface, #fff);
}

.pz-post {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--pz-border, #e5e7eb);
	border-radius: var(--pz-radius, 12px);
	background: var(--pz-surface, #fff);
}

.pz-post__media {
	display: block;
	aspect-ratio: 16 / 9;
	background: var(--pz-bg, #f3f4f6);
}

.pz-post__media img,
.pz-post__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pz-post__body {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.5rem;
	padding: 0.9rem;
}

.pz-post__title {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.7;
}

.pz-post__title a {
	color: var(--pz-text, #111827);
	text-decoration: none;
}

.pz-post__cat {
	justify-self: start;
}

.pz-post__date {
	justify-self: end;
	color: var(--pz-muted, #6b7280);
	font-size: 0.8rem;
}

/* -----------------------------------------------------------------
 * Newsletter
 * ----------------------------------------------------------------- */
.pz-newsletter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	border-radius: var(--pz-radius, 12px);
	background: var(--pz-secondary, #0a5c36);
	color: var(--pz-primary-ink, #fff);
	font-family: var(--pz-font, inherit);
}

.pz-newsletter__intro {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.pz-newsletter__icon {
	width: 3rem;
	height: 3rem;
}

.pz-newsletter__title {
	margin: 0 0 0.25rem;
	font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.pz-newsletter__text {
	margin: 0;
	opacity: 0.85;
	font-size: 0.9rem;
}

.pz-newsletter__form {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	flex: 1 1 22rem;
	max-width: 34rem;
	overflow: hidden;
	border-radius: var(--pz-radius-sm, 8px);
	background: var(--pz-surface, #fff);
}

.pz-newsletter__input {
	flex: 1 1 12rem;
	min-width: 0;
	padding: 0.85rem 1rem;
	border: 0;
	background: transparent;
	color: var(--pz-text, #111827);
	font: inherit;
	text-align: start;
}

.pz-newsletter__btn {
	border-radius: 0;
}

.pz-newsletter__msg {
	flex: 1 0 100%;
	margin: 0;
	padding: 0 1rem;
	color: var(--pz-text, #111827);
	font-size: 0.85rem;
}

.pz-newsletter__msg:empty {
	display: none;
}

.pz-newsletter__form.is-success .pz-newsletter__msg {
	padding-block: 0.5rem;
	color: var(--pz-secondary, #0a5c36);
}

.pz-newsletter__form.is-error .pz-newsletter__msg {
	padding-block: 0.5rem;
	color: var(--pz-primary, #e11d2a);
}

/* -----------------------------------------------------------------
 * Header widgets: logo, search, links, mini-cart, nav
 * ----------------------------------------------------------------- */
.pz-logo {
	display: inline-flex;
	align-items: center;
	color: var(--pz-text, #111827);
	text-decoration: none;
}

.pz-logo__img {
	display: block;
	max-height: var(--pz-logo-height, 56px);
	width: auto;
}

.pz-logo__text {
	font-family: var(--pz-font, inherit);
	font-size: 1.4rem;
	font-weight: 900;
}

.pz-search {
	position: relative;
	width: 100%;
	font-family: var(--pz-font, inherit);
}

.pz-search__form {
	display: flex;
	overflow: hidden;
	border: 1px solid var(--pz-border, #e5e7eb);
	border-radius: var(--pz-radius-sm, 8px);
	background: var(--pz-bg, #f3f4f6);
}

.pz-search__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.7rem 1rem;
	border: 0;
	background: transparent;
	color: var(--pz-text, #111827);
	font: inherit;
}

.pz-search__input::-webkit-search-cancel-button {
	display: none;
}

.pz-search__submit {
	display: grid;
	place-items: center;
	width: 3rem;
	border: 0;
	background: var(--pz-text, #111827);
	color: var(--pz-surface, #fff);
	cursor: pointer;
}

.pz-search__results {
	position: absolute;
	inset-inline: 0;
	inset-block-start: calc(100% + 0.35rem);
	z-index: 1000;
	max-height: min(70vh, 32rem);
	overflow-y: auto;
	padding: 0.5rem;
	border: 1px solid var(--pz-border, #e5e7eb);
	border-radius: var(--pz-radius, 12px);
	background: var(--pz-surface, #fff);
	box-shadow: var(--pz-shadow, 0 12px 32px rgba(0, 0, 0, 0.12));
}

.pz-search__group-title {
	margin: 0.25rem 0.5rem;
	color: var(--pz-muted, #6b7280);
	font-size: 0.8rem;
	font-weight: 700;
}

.pz-search__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem;
	border-radius: var(--pz-radius-sm, 8px);
	color: var(--pz-text, #111827);
	text-decoration: none;
}

.pz-search__item:hover,
.pz-search__item.is-active {
	background: var(--pz-bg, #f3f4f6);
}

.pz-search__item img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: var(--pz-radius-sm, 8px);
}

.pz-search__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
}

.pz-search__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.9rem;
}

.pz-search__price {
	color: var(--pz-primary, #e11d2a);
	font-size: 0.85rem;
	font-weight: 700;
}

.pz-search__date {
	color: var(--pz-muted, #6b7280);
	font-size: 0.8rem;
}

.pz-search__empty {
	margin: 0;
	padding: 1rem;
	color: var(--pz-muted, #6b7280);
	text-align: center;
}

.pz-search__all {
	display: block;
	margin-block-start: 0.35rem;
	padding: 0.6rem;
	border-block-start: 1px solid var(--pz-border, #e5e7eb);
	color: var(--pz-primary, #e11d2a);
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.pz-header-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--pz-text, #111827);
	font-family: var(--pz-font, inherit);
	font-size: 0.85rem;
	text-decoration: none;
}

.pz-header-link:hover {
	color: var(--pz-primary, #e11d2a);
}

.pz-header-link__icon {
	position: relative;
	display: inline-grid;
	place-items: center;
}

.pz-header-link__icon .pz-icon {
	width: 1.6rem;
	height: 1.6rem;
}

.pz-header-link__text {
	display: flex;
	flex-direction: column;
	line-height: 1.4;
}

.pz-minicart__count,
.pz-wishlist__count {
	position: absolute;
	inset-block-start: -0.45rem;
	inset-inline-end: -0.55rem;
	min-width: 1.15rem;
	height: 1.15rem;
	padding: 0 0.25rem;
	border-radius: 999px;
	background: var(--pz-primary, #e11d2a);
	color: var(--pz-primary-ink, #fff);
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 1.15rem;
	text-align: center;
}

.pz-minicart__count[data-count="0"] {
	display: none;
}

.pz-minicart__total {
	color: var(--pz-muted, #6b7280);
	font-size: 0.8rem;
}

@media (max-width: 767px) {
	.pz-header-link__text {
		display: none;
	}
}

/* Nav menu + mega menu */
.pz-nav {
	position: relative;
	font-family: var(--pz-font, inherit);
}

.pz-nav__toggle {
	display: none;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--pz-border, #e5e7eb);
	border-radius: var(--pz-radius-sm, 8px);
	background: var(--pz-surface, #fff);
	color: var(--pz-text, #111827);
	font: inherit;
	cursor: pointer;
}

.pz-nav__list,
.pz-nav .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pz-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 1.25rem;
}

.pz-nav .menu-item {
	position: relative;
	display: flex;
	align-items: center;
}

.pz-nav .menu-item > a {
	display: block;
	padding: 0.65rem 0;
	color: var(--pz-text, #111827);
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
}

.pz-nav .menu-item > a:hover,
.pz-nav .current-menu-item > a {
	color: var(--pz-primary, #e11d2a);
}

.pz-nav__sub-toggle {
	width: 1.5rem;
	height: 1.5rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--pz-muted, #6b7280);
	cursor: pointer;
}

.pz-nav__sub-toggle::before {
	content: "";
	display: block;
	width: 0.4rem;
	height: 0.4rem;
	margin: auto;
	border-inline-end: 2px solid currentColor;
	border-block-end: 2px solid currentColor;
	transform: rotate(45deg);
}

.pz-nav .sub-menu {
	position: absolute;
	inset-block-start: 100%;
	inset-inline-start: 0;
	z-index: 999;
	display: none;
	min-width: 13rem;
	padding: 0.5rem;
	border: 1px solid var(--pz-border, #e5e7eb);
	border-radius: var(--pz-radius, 12px);
	background: var(--pz-surface, #fff);
	box-shadow: var(--pz-shadow, 0 12px 32px rgba(0, 0, 0, 0.12));
}

.pz-nav .sub-menu .menu-item > a {
	padding: 0.45rem 0.6rem;
	font-weight: 500;
}

.pz-nav .sub-menu .sub-menu {
	inset-block-start: 0;
	inset-inline-start: 100%;
}

.pz-nav .menu-item:hover > .sub-menu,
.pz-nav .menu-item:focus-within > .sub-menu,
.pz-nav .menu-item.is-open > .sub-menu {
	display: block;
}

/* Mega menu: `pz-mega` items (or every top-level item with mega_all). */
.pz-nav__list > .pz-mega,
.pz-nav--mega-all .pz-nav__list > .menu-item {
	position: static;
}

.pz-nav__list > .pz-mega > .sub-menu,
.pz-nav--mega-all .pz-nav__list > .menu-item > .sub-menu {
	inset-inline: 0;
	width: 100%;
	padding: 1.25rem;
}

.pz-nav__list > .pz-mega:hover > .sub-menu,
.pz-nav__list > .pz-mega:focus-within > .sub-menu,
.pz-nav__list > .pz-mega.is-open > .sub-menu,
.pz-nav--mega-all .pz-nav__list > .menu-item:hover > .sub-menu,
.pz-nav--mega-all .pz-nav__list > .menu-item:focus-within > .sub-menu,
.pz-nav--mega-all .pz-nav__list > .menu-item.is-open > .sub-menu {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
	gap: 0.5rem 1.5rem;
}

.pz-nav__list > .pz-mega > .sub-menu > .menu-item,
.pz-nav--mega-all .pz-nav__list > .menu-item > .sub-menu > .menu-item {
	flex-direction: column;
	align-items: stretch;
}

.pz-nav__list > .pz-mega > .sub-menu > .menu-item > a,
.pz-nav--mega-all .pz-nav__list > .menu-item > .sub-menu > .menu-item > a {
	font-weight: 700;
	border-block-end: 1px solid var(--pz-border, #e5e7eb);
}

.pz-nav__list > .pz-mega .sub-menu .sub-menu,
.pz-nav--mega-all .pz-nav__list .sub-menu .sub-menu {
	position: static;
	display: block;
	min-width: 0;
	padding: 0.25rem 0 0;
	border: 0;
	box-shadow: none;
}

.pz-nav__list > .pz-mega .pz-nav__sub-toggle,
.pz-nav--mega-all .sub-menu .pz-nav__sub-toggle {
	display: none;
}

@media (max-width: 1024px) {
	.pz-nav__toggle {
		display: inline-flex;
	}

	.pz-nav__list {
		display: none;
		position: absolute;
		inset-block-start: calc(100% + 0.35rem);
		inset-inline: 0;
		z-index: 999;
		flex-direction: column;
		align-items: stretch;
		min-width: min(20rem, 90vw);
		max-height: 75vh;
		overflow-y: auto;
		padding: 0.75rem;
		border: 1px solid var(--pz-border, #e5e7eb);
		border-radius: var(--pz-radius, 12px);
		background: var(--pz-surface, #fff);
		box-shadow: var(--pz-shadow, 0 12px 32px rgba(0, 0, 0, 0.12));
	}

	.pz-nav.is-open .pz-nav__list {
		display: flex;
	}

	.pz-nav .menu-item {
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.pz-nav .sub-menu,
	.pz-nav .menu-item:hover > .sub-menu,
	.pz-nav__list > .pz-mega:hover > .sub-menu,
	.pz-nav--mega-all .pz-nav__list > .menu-item:hover > .sub-menu {
		position: static;
		display: none;
		flex: 1 0 100%;
		width: 100%;
		padding: 0 0.75rem 0 0;
		border: 0;
		box-shadow: none;
	}

	.pz-nav .menu-item.is-open > .sub-menu {
		display: block !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pz-hero__slide,
	.pz-cat,
	.pz-card,
	.pz-hero__dot {
		transition: none;
	}
}

/* -----------------------------------------------------------------
 * Contact form (pishtazan_shop_contact_form / [pishtazan_contact_form])
 * ----------------------------------------------------------------- */
.pz-contact {
	font-family: var(--pz-font, inherit);
	color: var(--pz-text, #111827);
}

.pz-contact__title {
	margin: 0 0 1rem;
	font-size: 1.25em;
}

.pz-contact__form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.pz-contact__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin: 0;
}

.pz-contact__field--subject,
.pz-contact__field--message,
.pz-contact__hint,
.pz-contact__submit {
	grid-column: 1 / -1;
}

.pz-contact__field label {
	font-weight: 600;
	font-size: 0.92em;
}

.pz-contact__req {
	color: var(--pz-secondary, #e11d2a);
}

.pz-contact__input {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--pz-border, #e5e7eb);
	border-radius: var(--pz-radius-sm, 8px);
	background: var(--pz-surface, #fff);
	color: inherit;
	font: inherit;
	text-align: start;
}

.pz-contact__input:focus-visible {
	outline: 2px solid var(--pz-accent, #f59e0b);
	outline-offset: 1px;
	border-color: var(--pz-primary, #e11d2a);
}

.pz-contact__hint {
	margin: 0;
	color: var(--pz-muted, #6b7280);
	font-size: 0.85em;
}

.pz-contact__submit {
	justify-self: start;
	min-width: 10rem;
}

.pz-contact__notice {
	margin: 0 0 1rem;
	padding: 0.8rem 1rem;
	border-radius: var(--pz-radius-sm, 8px);
	border-inline-start: 4px solid currentColor;
}

.pz-contact__notice--success {
	background: color-mix(in srgb, currentColor 10%, transparent);
	color: var(--pz-primary, #15803d);
}

.pz-contact__notice--error {
	background: color-mix(in srgb, currentColor 10%, transparent);
	color: var(--pz-secondary, #b91c1c);
}

.pz-contact__notice p,
.pz-contact__notice ul {
	margin: 0;
}

.pz-contact__notice ul {
	margin-block-start: 0.4rem;
	padding-inline-start: 1.2rem;
}

@media (max-width: 640px) {
	.pz-contact__form {
		grid-template-columns: 1fr;
	}
}

/* Post without a featured image */
.pz-post__placeholder {
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--pz-surface, #f5f6f7), var(--pz-border, #e6e8eb));
	color: var(--pz-muted, #8a9099);
}
