/*
 * Petshop design system — "orange cat" palette, light and dark.
 * Tokens first, then the homepage (ps-*), then the skin over Betheme/builder/WooCommerce markup.
 * Dark mode: <html data-theme="dark">, set before paint by petshop_ui_theme_init().
 */

@font-face {
	font-family: IRANSansX;
	src: url("../fonts/iransansx/IRANSansXVFaNum.woff2") format("woff2-variations"), url("../fonts/iransansx/IRANSansXVFaNum.woff2") format("woff2");
	font-weight: 100 1000;
	font-style: normal;
	font-display: swap;
}

body, button, input, select, textarea { font-family: var(--ps-font); }

:root {
	--ps-bg: #fff9f3;
	--ps-surface: #ffffff;
	--ps-surface-2: #fff1e4;
	--ps-border: #f1e2d3;
	--ps-ink: #2a1c12;
	--ps-text: #5e4a3b;
	--ps-muted: #95806f;
	--ps-primary: #f07a1a;
	--ps-primary-600: #d8630a;
	--ps-primary-soft: #ffe7d1;
	--ps-on-primary: #ffffff;
	--ps-sage: #4f8f6a;
	--ps-peach: #ffe4cd;
	--ps-sage-soft: #e1efe5;
	--ps-sky: #dcebf8;
	--ps-butter: #ffedc2;
	--ps-invert-bg: #2a1c12;
	--ps-invert-fg: #fff9f3;
	--ps-footer: #22170f;
	--ps-icon-filter: none;
	--ps-shadow-sm: 0 1px 2px rgba(90, 50, 20, .06), 0 4px 14px -6px rgba(120, 60, 10, .14);
	--ps-shadow: 0 1px 2px rgba(90, 50, 20, .06), 0 18px 40px -18px rgba(120, 60, 10, .28);
	--ps-radius: 22px;
	--ps-radius-sm: 14px;
	--ps-font: IRANSansX, Tahoma, sans-serif;
	/* Type scale: 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 48 */
	--ps-fs-xs: 0.75rem;
	--ps-fs-sm: 0.875rem;
	--ps-fs-base: 1rem;
	--ps-fs-lg: 1.125rem;
	--ps-fs-xl: 1.25rem;
	--ps-fs-2xl: 1.5rem;
	--ps-fs-3xl: 1.875rem;
	--ps-fs-4xl: 2.25rem;
	--ps-fs-5xl: 3rem;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--ps-bg: #14100c;
	--ps-surface: #1e1712;
	--ps-surface-2: #29201a;
	--ps-border: #3a2d24;
	--ps-ink: #fbf1e7;
	--ps-text: #d9c7b7;
	--ps-muted: #a6917f;
	--ps-primary: #ff8c36;
	--ps-primary-600: #ffa25c;
	--ps-primary-soft: #3a2415;
	--ps-on-primary: #1b0f06;
	--ps-sage: #86c49f;
	--ps-peach: #3a281c;
	--ps-sage-soft: #1d2a22;
	--ps-sky: #1b2631;
	--ps-butter: #332a16;
	--ps-invert-bg: #fbf1e7;
	--ps-invert-fg: #1b130d;
	--ps-footer: #0e0b08;
	--ps-icon-filter: invert(1) hue-rotate(180deg); /* flips lightness, keeps the orange paw orange */
	--ps-shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
	--ps-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
	color-scheme: dark;
}

/* ---------- Base ---------- */

html body,
html body #Wrapper,
html body #Content {
	background-color: var(--ps-bg);
	color: var(--ps-text);
}
body { transition: background-color .25s ease, color .25s ease; }
/* overflow-x:hidden on both html and body (Theme Options CSS) made body a second scroll box */
html:root, html body, html body.rtl { overflow-x: clip !important; overflow-y: visible !important; }
::selection { background: var(--ps-primary); color: var(--ps-on-primary); }
html body :focus-visible { outline: 2px solid var(--ps-primary); outline-offset: 2px; }
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6 { color: var(--ps-ink); }
html body a { color: var(--ps-ink); }
html body a:hover { color: var(--ps-primary-600); }

/* ---------- Primitives ---------- */

.ps-container { max-width: 1320px; margin-inline: auto; padding-inline: 20px; }
.ps-eyebrow { display: inline-block; font-size: var(--ps-fs-sm); font-weight: 700; color: var(--ps-primary-600); margin-bottom: 6px; }
.ps-pill {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
	background: var(--ps-surface); color: var(--ps-ink); font-size: var(--ps-fs-sm); font-weight: 700; box-shadow: var(--ps-shadow-sm);
}
.ps-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ps-sage); box-shadow: 0 0 0 4px var(--ps-sage-soft); }

html body .ps-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
	border: 0; border-radius: 999px; font: 700 var(--ps-fs-base)/1 var(--ps-font); text-decoration: none; cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
html body .ps-btn:hover { transform: translateY(-1px); }
html body .ps-btn--primary { background: var(--ps-primary); color: var(--ps-on-primary); box-shadow: 0 10px 22px -10px var(--ps-primary); }
html body .ps-btn--primary:hover { background: var(--ps-primary-600); color: var(--ps-on-primary); }
html body .ps-btn--dark { background: var(--ps-invert-bg); color: var(--ps-invert-fg); }
html body .ps-btn--ghost { background: transparent; color: var(--ps-ink); box-shadow: inset 0 0 0 1.5px var(--ps-border); }
html body .ps-btn--ghost:hover { color: var(--ps-ink); box-shadow: inset 0 0 0 1.5px var(--ps-primary); }
html body .ps-btn--sm { min-height: 40px; padding: 0 18px; font-size: var(--ps-fs-sm); }

.ps-tone-peach { background: var(--ps-peach); }
.ps-tone-sage { background: var(--ps-sage-soft); }
.ps-tone-sky { background: var(--ps-sky); }
.ps-tone-butter { background: var(--ps-butter); }

/* ---------- Sections ---------- */

.ps-home { overflow-x: clip; }
.ps-section { padding-block: 56px; }
.ps-section--tight { padding-block: 28px; }
.ps-section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.ps-section__head--center { justify-content: center; text-align: center; }
html body .ps-section__title { margin: 0; font-size: clamp(var(--ps-fs-2xl), 2.4vw, var(--ps-fs-3xl)); line-height: 1.5; font-weight: 700; }
.ps-section__tools { display: flex; align-items: center; gap: 8px; }
html body .ps-link-more { font-size: var(--ps-fs-sm); font-weight: 700; color: var(--ps-primary-600); text-decoration: none; white-space: nowrap; margin-inline-end: 8px; }
html body .ps-link-more::after { content: " ←"; }
.ps-rail-btn {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
	background: var(--ps-surface); border: 1px solid var(--ps-border); color: var(--ps-ink);
}
.ps-rail-btn:hover { border-color: var(--ps-primary); color: var(--ps-primary); }
.ps-rail-btn svg, .ps-card__cart svg, .ps-sp svg, .ps-benefits svg, .ps-pet__img--all svg, .ps-theme-toggle svg {
	width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Hero ---------- */

.ps-hero { padding-block: 24px 12px; }
.ps-hero__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; }
.ps-hero__main {
	position: relative; display: flex; align-items: center; min-height: 460px; overflow: hidden; isolation: isolate;
	border-radius: 32px; background: #fde3cb;
}
.ps-hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 15% 60%; }
/* Fade the photo into the copy side so text stays readable at any width. */
.ps-hero__main::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(to left, #fde3cb 0%, #fde3cb 38%, rgba(253, 227, 203, .75) 52%, rgba(253, 227, 203, 0) 70%);
}
.ps-hero__copy { width: min(560px, 58%); padding: 40px 48px; }
html body .ps-hero__title { margin: 16px 0 12px; font-size: clamp(var(--ps-fs-3xl), 3.4vw, var(--ps-fs-5xl)); line-height: 1.5; font-weight: 800; letter-spacing: 0; color: #2a1c12; }
.ps-hero__title mark { background: none; color: #d8630a; position: relative; white-space: nowrap; }
.ps-hero__title mark::after {
	content: ""; position: absolute; inset-inline: 0; bottom: .08em; height: .22em; z-index: -1;
	background: rgba(240, 122, 26, .22); border-radius: 999px;
}
.ps-hero__lead { max-width: 480px; margin: 0 0 24px; font-size: var(--ps-fs-base); line-height: 2.1; color: #5e4a3b; }
.ps-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
html body .ps-hero .ps-btn--ghost { color: #2a1c12; box-shadow: inset 0 0 0 1.5px rgba(42, 28, 18, .22); }
html body .ps-hero .ps-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #d8630a; }
.ps-hero .ps-pill { background: #fff; color: #2a1c12; }
.ps-hero__stats { display: flex; gap: 28px; margin: 30px 0 0; padding: 0; list-style: none; }
.ps-hero__stats li { display: flex; flex-direction: column; gap: 2px; padding-inline-start: 12px; border-inline-start: 3px solid #f07a1a; }
.ps-hero__stats strong { font-size: var(--ps-fs-lg); color: #2a1c12; }
.ps-hero__stats span { font-size: var(--ps-fs-sm); color: #8a6f5a; }

.ps-hero__side { display: grid; gap: 18px; }
html body .ps-hero__tile {
	position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; overflow: hidden;
	padding: 22px; border-radius: 28px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
html body .ps-hero__tile:hover { transform: translateY(-3px); box-shadow: var(--ps-shadow); }
.ps-hero__tile-text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; align-self: stretch; justify-content: space-between; }
.ps-hero__tile strong { font-size: var(--ps-fs-xl); line-height: 1.6; color: var(--ps-ink); }
.ps-hero__tile .ps-eyebrow { margin: 0; }
.ps-hero__tile img { width: 168px; height: 168px; flex: none; margin: -24px; object-fit: cover; -webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent); mask-image: radial-gradient(closest-side, #000 74%, transparent); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.ps-hero__tile:hover img { transform: rotate(-3deg) scale(1.08); }

/* ---------- Shop by pet ---------- */

.ps-pets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
html body .ps-pet {
	display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 12px 20px;
	border-radius: var(--ps-radius); text-align: center; text-decoration: none; color: var(--ps-ink);
	transition: transform .2s ease, box-shadow .2s ease;
}
html body .ps-pet:hover { transform: translateY(-4px); box-shadow: var(--ps-shadow); color: var(--ps-ink); }
.ps-pet__img {
	display: grid; place-items: center; width: 116px; height: 116px; margin-bottom: 10px; overflow: hidden;
	border-radius: 50%; border: 4px solid var(--ps-surface); box-shadow: var(--ps-shadow-sm); background: var(--ps-surface);
}
.ps-pet__img img { width: 100%; height: 100%; object-fit: cover; }
.ps-pet__img--all { color: var(--ps-primary); }
.ps-pet__img--all svg { width: 52px; height: 52px; stroke-width: 1.4; }
.ps-pet__name { font-size: var(--ps-fs-lg); font-weight: 700; }
.ps-pet__meta { font-size: var(--ps-fs-sm); color: var(--ps-muted); }

/* ---------- Benefits ---------- */

.ps-benefits {
	display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 8px; list-style: none;
	background: var(--ps-surface); border: 1px solid var(--ps-border); border-radius: var(--ps-radius);
}
.ps-benefits li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.ps-benefits li + li { border-inline-start: 1px dashed var(--ps-border); }
.ps-benefits__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 16px; background: var(--ps-primary-soft); color: var(--ps-primary-600); }
.ps-benefits__icon svg { width: 24px; height: 24px; }
.ps-benefits strong { display: block; font-size: var(--ps-fs-base); color: var(--ps-ink); }
.ps-benefits small { display: block; font-size: var(--ps-fs-sm); color: var(--ps-muted); }

/* ---------- Categories ---------- */

.ps-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
/* Tinted bento cards: the tone matches the image backdrop, so the product floats on the card. */
html body .ps-cat {
	position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
	min-height: 176px; padding: 22px; overflow: hidden; text-decoration: none; border-radius: 28px;
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5); transition: transform .3s ease, box-shadow .3s ease;
}
html body .ps-cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(90% 80% at 100% 0%, rgb(255 255 255 / .7), transparent 60%); }
html body .ps-cat:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5), var(--ps-shadow); }
.ps-cat--wide { grid-column: span 2; min-height: 216px; }
.ps-cat__text { position: relative; z-index: 1; max-width: 55%; }
.ps-cat__text strong { display: block; font-size: var(--ps-fs-lg); font-weight: 800; color: var(--ps-ink); line-height: 1.6; }
.ps-cat--wide .ps-cat__text strong { font-size: var(--ps-fs-xl); }
.ps-cat__text small { display: inline-block; margin-top: 8px; padding: 3px 12px; border-radius: 999px; background: rgb(255 255 255 / .6); backdrop-filter: blur(8px); font-size: var(--ps-fs-xs); font-weight: 600; color: var(--ps-text); }
.ps-cat__go {
	position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	background: var(--ps-surface); color: var(--ps-ink); box-shadow: var(--ps-shadow-sm); transition: background .25s ease, color .25s ease, translate .25s ease;
}
.ps-cat__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ps-cat:hover .ps-cat__go { background: var(--ps-primary); color: var(--ps-on-primary); translate: -4px 0; }
.ps-cat__img { position: absolute; inset-inline-end: -8px; bottom: -14px; width: 168px; aspect-ratio: 1; pointer-events: none; }
.ps-cat--wide .ps-cat__img { width: 236px; inset-inline-end: 4px; bottom: -22px; }
.ps-cat__img img { width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent); mask-image: radial-gradient(closest-side, #000 74%, transparent); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.ps-cat:hover .ps-cat__img img { transform: scale(1.08) rotate(-3deg); }
/* Dark mode keeps the light pastel cards (the images have light backdrops), slightly dimmed, like the hero. */
[data-theme="dark"] :is(.ps-cat, .ps-hero__tile) {
	--ps-peach: #ffe4cd; --ps-sage-soft: #e1efe5; --ps-sky: #dcebf8; --ps-butter: #ffedc2;
	--ps-ink: #2a1c12; --ps-text: #5e4a3b; --ps-surface: #fff; filter: brightness(.9);
}

/* ---------- Product card ---------- */

.ps-card {
	position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden;
	background: var(--ps-surface); border: 1px solid var(--ps-border); border-radius: var(--ps-radius);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ps-card:hover { transform: translateY(-4px); box-shadow: var(--ps-shadow); border-color: transparent; }
.ps-card__media { position: relative; display: block; margin: 8px; border-radius: 16px; overflow: hidden; background: var(--ps-surface-2); aspect-ratio: 1; }
.ps-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ps-card:hover .ps-card__media img { transform: scale(1.05); }
.ps-card__badge {
	position: absolute; top: 10px; inset-inline-start: 10px; padding: 4px 10px; border-radius: 999px;
	background: var(--ps-primary); color: var(--ps-on-primary); font-size: var(--ps-fs-xs); font-weight: 700;
}
.ps-card__badge--muted { background: var(--ps-invert-bg); color: var(--ps-invert-fg); }
.ps-card__body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 6px 16px 16px; }
.ps-card__brand { font-size: var(--ps-fs-xs); color: var(--ps-muted); }
html body .ps-card__title { margin: 0 0 8px; font-size: var(--ps-fs-sm); line-height: 1.9; font-weight: 700; }
html body .ps-card__title a {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 3.8em; color: var(--ps-ink); text-decoration: none;
}
.ps-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.ps-card__price { font-size: var(--ps-fs-base); font-weight: 700; color: var(--ps-ink); }
.ps-card__price del { color: var(--ps-muted); font-weight: 400; font-size: var(--ps-fs-xs); }
.ps-card__price ins { text-decoration: none; }
html body .ps-card__cart.button {
	display: grid; place-items: center; flex: none; width: 42px; height: 42px; min-height: 0; margin: 0; padding: 0;
	border-radius: 14px; background: var(--ps-primary-soft); color: var(--ps-primary-600); box-shadow: none;
}
html body .ps-card__cart.button:hover { background: var(--ps-primary); color: var(--ps-on-primary); }
html body .ps-card__cart.loading { opacity: .6; }
html body .ps-card__cart.added { background: var(--ps-sage); color: #fff; }
.ps-card .added_to_cart { display: none; }

.ps-rail {
	display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 18px) / 5); gap: 18px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 18px;
}
.ps-rail::-webkit-scrollbar { display: none; }
.ps-rail > * { scroll-snap-align: start; }
.ps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- Promos ---------- */

.ps-promos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
html body .ps-promo {
	position: relative; display: block; min-height: 280px; overflow: hidden; border-radius: 28px; text-decoration: none;
	isolation: isolate;
}
.ps-promo.ps-tone-sage { background: #dcebdf; }
.ps-promo.ps-tone-butter { background: #ffe9b8; }
.ps-promo img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: left center; transition: transform .5s ease; }
.ps-promo:hover img { transform: scale(1.04); }
.ps-promo__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 50%; padding: 36px 32px; }
.ps-promo__copy strong { font-size: clamp(var(--ps-fs-xl), 2vw, var(--ps-fs-2xl)); line-height: 1.6; color: #2a1c12; }
.ps-promo .ps-eyebrow { color: #a24c08; margin: 0; }
html body .ps-promo .ps-btn--dark { background: #2a1c12; color: #fff9f3; }

/* ---------- Brands ---------- */

.ps-brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
html body .ps-brands a {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
	background: var(--ps-surface); border: 1px solid var(--ps-border); color: var(--ps-ink); font-weight: 700; font-size: var(--ps-fs-sm); text-decoration: none;
}
html body .ps-brands a:hover { border-color: var(--ps-primary); color: var(--ps-primary-600); }
.ps-brands small { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--ps-surface-2); color: var(--ps-muted); font-size: var(--ps-fs-xs); text-align: center; }

/* ---------- Tips ---------- */

.ps-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
html body .ps-tip { display: block; padding: 26px; border-radius: var(--ps-radius); text-decoration: none; color: var(--ps-text); transition: transform .2s ease; }
html body .ps-tip:hover { transform: translateY(-4px); color: var(--ps-text); }
.ps-tip__num { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 12px; background: var(--ps-surface); color: var(--ps-primary-600); font-weight: 700; }
.ps-tip strong { display: block; margin-bottom: 8px; font-size: var(--ps-fs-lg); color: var(--ps-ink); }
.ps-tip p { margin: 0; font-size: var(--ps-fs-sm); line-height: 2; }

/* ---------- Club ---------- */

.ps-club { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 340px; overflow: hidden; border-radius: 32px; background: #fff1e3; isolation: isolate; }
.ps-club img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.ps-club__copy { padding: 44px; }
html body .ps-club__copy h2 { margin: 0 0 10px; font-size: clamp(var(--ps-fs-2xl), 2.4vw, var(--ps-fs-3xl)); line-height: 1.6; color: #2a1c12; }
.ps-club__copy p { margin: 0 0 22px; color: #5e4a3b; line-height: 2; }
.ps-club .ps-eyebrow { color: #a24c08; }
.ps-club__actions { display: flex; flex-wrap: wrap; gap: 10px; }
html body .ps-club .ps-btn--ghost { color: #2a1c12; box-shadow: inset 0 0 0 1.5px rgba(42, 28, 18, .25); }

/* ---------- Theme toggle ---------- */

.ps-theme-toggle {
	position: fixed; z-index: 90; inset-inline-start: 18px; bottom: 18px;
	display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; cursor: pointer;
	background: var(--ps-surface); color: var(--ps-ink); border: 1px solid var(--ps-border); box-shadow: var(--ps-shadow-sm);
}
.ps-theme-toggle--header { position: static; align-self: center; margin-inline: 6px; box-shadow: none; }
.ps-theme-toggle:hover { color: var(--ps-primary); border-color: var(--ps-primary); }
.ps-icon-sun, [data-theme="dark"] .ps-icon-moon { display: none; }
[data-theme="dark"] .ps-icon-sun { display: block; }

/* =========================================================
 * Skin over Betheme, builder templates and WooCommerce
 * ========================================================= */

/* Store notice */
html body .woocommerce-store-notice, html body p.demo_store { background: var(--ps-primary) !important; color: var(--ps-on-primary) !important; }
html body .woocommerce-store-notice a { color: inherit !important; text-decoration: underline; }

/* Header */
html body .mfn-header-tmpl .mcb-section { background-color: var(--ps-surface) !important; }
html body .mfn-header-tmpl section.mcb-section-51hv3zwq { box-shadow: 0 1px 0 var(--ps-border) !important; }
html body .mfn-header-tmpl .mfn-header-mainmenu > li > a.mfn-menu-link { font-weight: 700; }
html body .mfn-header-tmpl .mfn-header-mainmenu > li > a .menu-label { color: var(--ps-ink) !important; }
html body .mfn-header-tmpl .mfn-header-mainmenu > li.current-menu-item > a .menu-label,
html body .mfn-header-tmpl .mfn-header-mainmenu > li > a:hover .menu-label { color: var(--ps-primary-600) !important; }
html body .mfn-header-tmpl .mcb-section .mcb-wrap .mcb-item-tbq8mc2f .mfn-header-menu > li.mfn-menu-li > a.mfn-menu-link { background-color: var(--ps-primary); border-radius: 999px; }
html body .mfn-header-tmpl .mcb-item-tbq8mc2f .mfn-header-menu > li.mfn-menu-li > a .menu-label { color: var(--ps-on-primary) !important; }
html body .mfn-header-tmpl form input.field {
	background-color: var(--ps-surface-2) !important; border-color: var(--ps-surface-2) !important; border-radius: 999px !important; color: var(--ps-ink);
}
html body .mfn-header-tmpl form input.field:focus { border-color: var(--ps-primary) !important; background-color: var(--ps-surface) !important; }
html body .mfn-header-tmpl .icon-wrapper img, html body .mfn-header-tmpl .logo-wrapper img { filter: var(--ps-icon-filter); }
html body .mfn-header-tmpl .desc-wrapper { color: var(--ps-ink); }
html body .mfn-header-tmpl .header-cart-count, html body .mfn-header-tmpl .header-wishlist-count { background: var(--ps-primary); color: var(--ps-on-primary); }
html body .mfn-header-tmpl .mfn-submenu, html body .mfn-header-tmpl .mfn-megamenu-wrapper,
html body .mfn-live-search-box { background-color: var(--ps-surface) !important; border-radius: 0 0 var(--ps-radius-sm) var(--ps-radius-sm); }
html body .mfn-header-tmpl .mfn-submenu a.mfn-menu-link { color: var(--ps-text) !important; }
html body .mfn-header-tmpl .mcb-item-tbq8mc2f .mfn-header-menu li.mfn-menu-li ul.mfn-submenu li.mfn-menu-li a.mfn-menu-link:hover { background-color: var(--ps-surface-2); color: var(--ps-primary-600) !important; }

/* Buttons and forms */
html body .button, html body button.button, html body input[type="submit"], html body .wc-forward,
html body .woocommerce a.button, html body .woocommerce button.button, html body .single_add_to_cart_button, html body #place_order {
	background-color: var(--ps-primary); color: var(--ps-on-primary); border-radius: 999px; font-weight: 700; border-color: transparent;
}
html body .button:hover, html body input[type="submit"]:hover, html body .woocommerce a.button:hover,
html body .woocommerce button.button:hover, html body .single_add_to_cart_button:hover { background-color: var(--ps-primary-600); color: var(--ps-on-primary); }
html body input[type="text"], html body input[type="email"], html body input[type="tel"], html body input[type="password"],
html body input[type="number"], html body input[type="search"], html body textarea, html body select {
	background-color: var(--ps-surface); color: var(--ps-ink); border: 1px solid var(--ps-border); border-radius: var(--ps-radius-sm); box-shadow: none;
}
html body .woocommerce form .form-row .input-text, html body .woocommerce form .form-row select, html body .woocommerce form .form-row textarea {
	background-color: var(--ps-surface); color: var(--ps-ink); border-color: var(--ps-border); border-radius: var(--ps-radius-sm);
}
html body input:focus, html body textarea:focus, html body select:focus,
html body .woocommerce form .form-row .input-text:focus { border-color: var(--ps-primary); }
html body .select2-container--default .select2-selection--single { background: var(--ps-surface); border-color: var(--ps-border); border-radius: var(--ps-radius-sm); }

/* Shop archive cards */
html body ul.products li.product {
	padding: 8px 8px 16px; background: var(--ps-surface); border: 1px solid var(--ps-border); border-radius: var(--ps-radius);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
html body ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--ps-shadow); border-color: transparent; }
html body ul.products li.product .image_frame { border: 0; border-radius: 16px; overflow: hidden; background: var(--ps-surface-2); }
html body.woocommerce-page ul.products li.product .image_wrapper img,
html body .woocommerce ul.products li.product .image_wrapper img { aspect-ratio: 1; width: 100%; height: auto; object-fit: cover; background: var(--ps-surface-2); }
html body ul.products li.product .mfn-li-product-row-title,
html body ul.products li.product .mfn-li-product-row-price { padding-inline: 8px; }
html body ul.products li.product .title { margin: 10px 0 4px; font-size: var(--ps-fs-sm); line-height: 1.9; }
html body ul.products li.product .title a { color: var(--ps-ink); }
html body ul.products li.product .price, html body .woocommerce div.product p.price, html body .woocommerce div.product span.price { color: var(--ps-ink); font-weight: 700; }
html body .image_frame .image_wrapper .image_links { border-radius: 999px; background: var(--ps-surface); box-shadow: var(--ps-shadow-sm); }
html body .image_frame .image_wrapper .image_links a { color: var(--ps-ink); }
html body .image_frame .image_wrapper .image_links a:hover { color: var(--ps-primary); background: transparent; }
html body .image_frame .image_wrapper .mask::after { background: rgba(42, 28, 18, .08); }
html body span.onsale { background: var(--ps-primary); color: var(--ps-on-primary); border-radius: 999px; }

/* Shop toolbar, sidebar filters, pagination, breadcrumbs */
html body .woocommerce-breadcrumb, html body .mfn-woo-breadcrumbs, html body .breadcrumbs { color: var(--ps-muted); }
html body .widget { color: var(--ps-text); }
html body .widget-title, html body .widget h3, html body .widget h4 { color: var(--ps-ink); font-weight: 700; }
html body .woocommerce-pagination ul li a, html body .woocommerce-pagination ul li span,
html body .mfn-pagination a, html body .pager_wrapper a, html body .pages a, html body .pages span {
	border-radius: 12px; background: var(--ps-surface); color: var(--ps-ink); border: 1px solid var(--ps-border);
}
html body .woocommerce-pagination ul li span.current, html body .pages .page.active, html body .pages span.current { background: var(--ps-primary); color: var(--ps-on-primary); border-color: transparent; }

/* Single product */
html body .woocommerce div.product .product_title { color: var(--ps-ink); font-size: clamp(var(--ps-fs-2xl), 2.4vw, var(--ps-fs-3xl)); line-height: 1.6; }
html body .woocommerce div.product div.images img, html body .woocommerce-product-gallery__image { border-radius: var(--ps-radius); }
html body .woocommerce-product-gallery { border-radius: var(--ps-radius); overflow: hidden; }
html body .quantity input.qty, html body .quantity .quantity-change { background: var(--ps-surface-2); color: var(--ps-ink); border-color: var(--ps-border); }
html body .woocommerce-tabs, html body .woocommerce div.product .woocommerce-tabs ul.tabs { background: transparent; }
html body .woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--ps-muted); font-weight: 700; }
html body .woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ps-primary-600); }
html body .woocommerce div.product .woocommerce-tabs ul.tabs li.active::after,
html body .woocommerce div.product .woocommerce-tabs ul.tabs li.active a::after { background: var(--ps-primary); border-color: var(--ps-primary); }
html body .woocommerce-Tabs-panel { color: var(--ps-text); }
/* Brand slot falls back to the WooCommerce placeholder when a brand has no logo. */
html body .woocommerce div.product img[src*="woocommerce-placeholder"] { display: none; }

/* Notices, tables, cart/checkout */
html body .woocommerce-message, html body .woocommerce-info, html body .woocommerce-error {
	background: var(--ps-surface); color: var(--ps-text); border-radius: var(--ps-radius-sm); border-color: var(--ps-primary);
}
html body table, html body table td, html body table th { border-color: var(--ps-border); color: var(--ps-text); }
html body table th { color: var(--ps-ink); }
html body .woocommerce .cart_totals, html body .woocommerce-checkout-review-order, html body #order_review,
html body .woocommerce-MyAccount-navigation, html body .wc-block-cart, html body .wc-block-components-sidebar {
	border-radius: var(--ps-radius);
}

/* Footer */
html body .mfn-footer-tmpl .mcb-section { background-color: var(--ps-footer) !important; }
html body .mfn-footer-tmpl .mcb-wrap-inner-4yyaemu8 { background: linear-gradient(120deg, #3a2312, #2a1a0e) !important; border: 1px solid rgba(240, 122, 26, .25); border-radius: 28px !important; }
html body .mfn-footer-tmpl .mcb-column-inner { background-color: transparent !important; }
html body .mfn-footer-tmpl .mfn-icon-2 { color: var(--ps-primary) !important; border-color: rgba(255, 255, 255, .08) !important; }
html body .mfn-footer-tmpl .button { background-color: rgba(255, 255, 255, .06) !important; border-color: transparent !important; color: var(--ps-primary) !important; }
html body .mfn-footer-tmpl a { color: #e6d6c8; }
html body .mfn-footer-tmpl a:hover { color: #ff9a4d; }

/* Icon boxes (shared intro section): the icon font renders huge without an explicit size */
html body .column_icon_box_2 .icon-wrapper { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: rgba(240, 122, 26, .14); }
html body .column_icon_box_2 .icon-wrapper i { font-size: var(--ps-fs-2xl) !important; line-height: 1; color: var(--ps-primary); }

/* Secondary actions keep the outline style next to the orange add-to-cart */
html body .mfn-wish-button.button { background: transparent; color: var(--ps-ink); box-shadow: inset 0 0 0 1.5px var(--ps-border); }
html body .mfn-wish-button.button:hover, html body .mfn-wish-button.button.loved { background: var(--ps-primary-soft); color: var(--ps-primary-600); }
html body .mfn-wish-button.button svg path { stroke: currentColor; }
html body .mfn-product-brands .mfn-brand-name { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--ps-primary-soft); color: var(--ps-primary-600); font-weight: 700; font-size: var(--ps-fs-sm); }

/* Surfaces that Theme Options / builder paint with fixed light colours */
[data-theme="dark"] body :is(.flex-viewport, .woocommerce-product-gallery__image, .mfn-product-gg-img, .flex-control-thumbs li img,
	.mfn-woocommerce-tabs-nav, ul.products li.product .image_frame, .quantity a.quantity-change, #Action_bar, #Side_slide,
	.mfn-cart-holder, .mfn-header-login, .mfn-live-search-box, .mfn-megamenu-wrapper, .mfn-submenu) {
	background-color: var(--ps-surface-2) !important; border-color: var(--ps-border) !important;
}
[data-theme="dark"] body :is(.mfn-cart-holder, .mfn-header-login, .mfn-cart-holder *) { color: var(--ps-text); }
[data-theme="dark"] body .mfn-woocommerce-tabs-nav a { color: var(--ps-muted) !important; }
[data-theme="dark"] body .mfn-woocommerce-tabs-nav .active a, [data-theme="dark"] body .mfn-woocommerce-tabs-nav a.active { color: var(--ps-primary) !important; }

/* FAQ accordions as cards */
html body .mfn-toggle, html body .mfn-toggle .mfn-toggle-item { border: 0 !important; }
html body .mfn-toggle .mfn-toggle-item { margin-bottom: 12px; background: var(--ps-surface); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--ps-border); overflow: hidden; }
html body .mfn-toggle .mfn-toggle-item.active { box-shadow: inset 0 0 0 1.5px var(--ps-primary); }
html body .mfn-toggle .toggle-bar::before, html body .mfn-toggle .toggle-bar::after { display: none; }

html:root { background-color: var(--ps-bg); }
html body #Subheader { background-color: var(--ps-surface-2); }
html body #Subheader .title { color: var(--ps-ink); }
html body .mfn-footer-tmpl .mcb-wrap-inner-4yyaemu8 .button { background-color: var(--ps-primary) !important; color: var(--ps-on-primary) !important; border-radius: 999px; }
[data-theme="dark"] body .quantity input.qty { background-color: var(--ps-surface-2) !important; color: var(--ps-ink) !important; }
[data-theme="dark"] body #Content .icon-wrapper img[src$=".svg"] { filter: var(--ps-icon-filter); }

/* Builder content in dark mode: neutralise light backgrounds and dark text set per element. */
[data-theme="dark"] body #Content .mcb-section:not([style*="background-image"]) { background-color: var(--ps-bg) !important; }
[data-theme="dark"] body #Content .mcb-wrap-inner { background-color: transparent !important; }
[data-theme="dark"] body #Content .mcb-section :is(h1, h2, h3, h4, h5, h6, .title, .title a) { color: var(--ps-ink) !important; }
[data-theme="dark"] body #Content .mcb-section :is(p, li, .desc, .desc-wrapper, span:not(.ps-card__badge)) { color: var(--ps-text); }

/* =========================================================
 * Header: compact search, icon buttons (unified search panel replaces the category button)
 * ========================================================= */

html body .mfn-header-tmpl .mcb-item-tbq8mc2f,
html body .mfn-header-tmpl .mfn-live-search-box,
html body .mfn-header-tmpl .mfn-header-icon-0 { display: none !important; }
html body .mfn-header-tmpl .mcb-item-lg308uq { flex: 0 1 680px; max-width: 680px; margin-inline: 24px auto; }
html body .mfn-header-tmpl .column_header_search .form-searchform { position: relative; }
html body .mfn-header-tmpl .column_header_search input.field {
	height: 48px; padding-inline-start: 48px !important; cursor: text; font-size: var(--ps-fs-sm);
	border-radius: 14px !important; border: 1px solid transparent !important;
}
html body .mfn-header-tmpl .column_header_search .icon_search { right: 16px !important; left: auto !important; z-index: 2; width: 20px; height: 20px; top: 0 !important; bottom: 0 !important; transform: none !important; margin: auto 0 !important; }
html body .mfn-header-tmpl .column_header_search .mfn-close-icon { display: none; }

/* Icon-only buttons; the visible label stays for screen readers via aria-label/title. */
html body .mfn-header-tmpl .mcb-section .mfn-header-icon-box:is(.mfn-header-wishlist-link, .mfn-header-cart-link) .desc-wrapper {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
html body .mfn-header-tmpl .mfn-header-icon-box:is(.mfn-header-wishlist-link, .mfn-header-cart-link, .mfn-search-button),
html body .ps-theme-toggle--header {
	display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 14px; transition: background-color .15s ease;
}
html body .mfn-header-tmpl .mfn-header-icon-box:is(.mfn-header-wishlist-link, .mfn-header-cart-link, .mfn-search-button):hover,
html body .ps-theme-toggle--header:hover { background: var(--ps-surface-2); }
html body .mfn-header-tmpl .mfn-header-icon-box .icon-wrapper { position: relative; margin: 0 !important; }
html body .mfn-header-tmpl .mfn-header-icon-box .icon-wrapper img { width: 22px; height: 22px; }
html body .mfn-header-tmpl :is(.header-cart-count, .header-wishlist-count) {
	position: absolute; top: -8px !important; inset-inline-end: -10px !important; right: auto !important; min-width: 18px; height: 18px;
	padding: 0 5px; border-radius: 999px; font-size: var(--ps-fs-xs); line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--ps-surface);
}
/* Account: outlined "login" button, like a store's sign-in entry point. */
html body .mfn-header-tmpl .mcb-item-0vv39u1i .mfn-header-link {
	gap: 8px; height: 44px; padding: 0 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--ps-border);
}
html body .mfn-header-tmpl .mcb-item-0vv39u1i .mfn-header-link:hover { box-shadow: inset 0 0 0 1px var(--ps-primary); }
html body .mfn-header-tmpl .mfn-header-link .desc-wrapper { font-size: var(--ps-fs-sm); font-weight: 700; white-space: nowrap; }
html body .mfn-header-tmpl .mcb-item-0vv39u1i { display: flex; align-items: center; }
html body .mfn-header-tmpl .mcb-item-0vv39u1i::after { content: ""; width: 1px; height: 24px; margin-inline: 10px 4px; background: var(--ps-border); }

html body .ps-theme-toggle--header { margin: 0; border: 0; background: transparent; }

/* Utility row repeated the hero/benefits copy; header stays two rows: logo+search, then nav. */
html body .mfn-header-tmpl .mcb-section-wcoy9n4b { display: none !important; }
html body .mfn-header-tmpl .mcb-section-p088of34 { padding-block: 10px !important; }
html body .mfn-header-tmpl .mcb-section-51hv3zwq { padding-block: 0 !important; }
html body .mfn-header-tmpl .mcb-section-51hv3zwq .column_header_menu { flex: 1; }
html body .mfn-header-tmpl .mcb-section-51hv3zwq .mfn-header-mainmenu { justify-content: flex-start; }
html body .mfn-header-tmpl .mcb-section-51hv3zwq .section_wrapper { justify-content: flex-start; align-items: center; gap: 4px; min-height: 52px; }
html body .mfn-header-tmpl .mcb-section-51hv3zwq .mfn-header-mainmenu > li > a.mfn-menu-link { padding-block: 14px; font-size: var(--ps-fs-sm); }
/* Search triggers: header field (desktop/tablet) and a bar under the mobile logo row, each with a category chip. */
html body .mfn-header-tmpl .mcb-item-qfpaepj5 { display: none !important; }
.ps-catchip {
	position: absolute; top: 50%; left: 6px; z-index: 2; translate: 0 -50%; direction: rtl;
	max-width: 46%; padding: 0 12px; height: 34px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	border: 0; border-radius: 10px; background: var(--ps-surface); color: var(--ps-text); box-shadow: var(--ps-shadow-sm);
	font: 700 var(--ps-fs-xs)/34px var(--ps-font); cursor: pointer; pointer-events: auto;
}
.ps-catchip::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-start: 8px; translate: 0 -2px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; rotate: 45deg; opacity: .6; }
.ps-catchip.is-set { background: var(--ps-primary-soft); color: var(--ps-primary-600); box-shadow: none; }
/* The builder header lays out LTR, so field padding and icon use physical sides. */
html body .mfn-header-tmpl .column_header_search input.field { direction: rtl; padding: 0 48px 0 140px !important; }
html body .mfn-header-tmpl .mcb-item-lg308uq.hide-tablet { display: block !important; }

/* Space for the mobile bar is reserved in CSS, so injecting it later does not push the page down. */
html body .mfn-header-tmpl .mfn-header-mobile-section .section_wrapper { position: relative; padding-bottom: 56px !important; }
.ps-msearch {
	position: absolute; z-index: 2; left: 0; right: 0; bottom: 6px; pointer-events: auto; direction: rtl;
	display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 0; border-radius: 12px;
	background: var(--ps-surface-2); color: var(--ps-muted); font: 400 var(--ps-fs-sm)/1 var(--ps-font); text-align: start; cursor: pointer;
}
.ps-msearch .ps-catchip { position: static; translate: none; flex: none; margin-inline-start: auto; margin-inline-end: -8px; height: 32px; line-height: 32px; }
.ps-msearch > span:first-of-type { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ps-msearch svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1240px) { .ps-msearch { display: none; } }

/* =========================================================
 * Shop archive (builder template): title band, sidebar, filters, cards
 * ========================================================= */

html body .mcb-section-73e521424 {
	padding-block: 28px 30px !important; margin-bottom: 28px;
	background: radial-gradient(60% 120% at 90% 0%, var(--ps-primary-soft), transparent 70%), var(--ps-surface-2) !important;
}
html body .mcb-section-73e521424 .mcb-wrap-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
html body .mcb-section-73e521424 .column_product_breadcrumbs { order: -1; }
html body .mcb-section-73e521424 .mcb-column { align-self: stretch; width: 100%; }
html body .mcb-section-73e521424 .mcb-column * { text-align: start !important; justify-content: flex-start; }
html body .mcb-section-73e521424 .section_wrapper { border: 0 !important; }
html body .mcb-section-73e521424 .mcb-item-b50603357 { display: none; }
html body .mcb-section-73e521424 :is(h1, h2, .title) { margin: 0; font-size: clamp(var(--ps-fs-2xl), 3vw, var(--ps-fs-4xl)) !important; line-height: 1.5 !important; font-weight: 800 !important; }
html body .woocommerce-breadcrumb { font-size: var(--ps-fs-sm); color: var(--ps-muted); }
html body .woocommerce-breadcrumb a { color: var(--ps-muted); }
html body .woocommerce-breadcrumb span { margin-inline: 6px; opacity: .5; }

html body .mcb-wrap-5c386ad63 > .mcb-wrap-inner {
	position: sticky; top: 90px; padding: 18px !important; border-radius: var(--ps-radius);
	background: var(--ps-surface); border: 1px solid var(--ps-border);
}
html body .mcb-wrap-5c386ad63 .column_heading :is(h1, h2, h3, h4, h5, h6, p) { margin: 0 0 8px; font-size: var(--ps-fs-base) !important; font-weight: 800; color: var(--ps-ink); }
html body .mfn-megamenu-menu.mfn-mm-menu-vertical li a {
	justify-content: space-between; padding: 9px 12px !important; margin-bottom: 2px; border-radius: 12px; background: transparent !important;
	color: var(--ps-text) !important; font-size: var(--ps-fs-sm); font-weight: 700; text-align: start;
}
html body .mfn-megamenu-menu.mfn-mm-menu-vertical li a:hover,
html body .mfn-megamenu-menu.mfn-mm-menu-vertical li.current-menu-item > a { background: var(--ps-surface-2) !important; color: var(--ps-primary-600) !important; }
html body .mfn-megamenu-menu.mfn-mm-menu-vertical .label-wrapper { flex: 1; justify-content: flex-start !important; text-align: start !important; }
html body .mfn-megamenu-menu.mfn-mm-menu-vertical .menu-label { text-align: start; }
html body .mfn-megamenu-menu.mfn-mm-menu-vertical .menu-sub { order: 2; font-size: var(--ps-fs-xs); color: var(--ps-muted); }
html body .mfn-megamenu-menu.mfn-mm-menu-vertical .sub-menu { padding-inline-start: 12px; border-inline-start: 2px solid var(--ps-border); margin-inline-start: 12px; }
html body .mfn-megamenu-menu.mfn-mm-menu-vertical .sub-menu a { font-weight: 400; font-size: var(--ps-fs-sm); }
html body .mcb-item-93de7d26a { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--ps-border); }
html body .mcb-item-93de7d26a :is(h4, h5, h6, .mfn-filter-title, .title) { color: var(--ps-ink); font-weight: 800; font-size: var(--ps-fs-sm); }
html body .mcb-item-93de7d26a :is(label, li) { color: var(--ps-text); font-size: var(--ps-fs-sm); }
html body :is(.mcb-item-93de7d26a, .woocommerce) input[type="checkbox"] { accent-color: var(--ps-primary); width: 17px; height: 17px; }
html body .mcb-item-93de7d26a :is(.ui-slider-range, .noUi-connect, .mfn-slider-range) { background: var(--ps-primary) !important; }
html body .woocommerce-result-count { color: var(--ps-muted); font-size: var(--ps-fs-sm); }
html body .woocommerce-ordering select, html body .mfn-woo-list-options select { border-radius: 12px; font-size: var(--ps-fs-sm); }

/* Card footer: price beside a compact add-to-cart icon (WooCommerce's own AJAX button). */
html body ul.products li.product { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-content: start; column-gap: 8px; }
html body ul.products li.product > * { grid-column: 1 / -1; min-width: 0; }
html body ul.products li.product > .mfn-li-product-row-price { grid-column: 1; align-self: center; margin: 0; }
html body ul.products li.product > .mfn-after-shop-loop-item { grid-column: 2; display: flex !important; align-items: center; margin: 0; padding-inline-end: 8px; }
html body ul.products li.product .mfn-after-shop-loop-item .mfn-wish-button,
html body ul.products li.product .mfn-after-shop-loop-item .added_to_cart { display: none; }
html body ul.products li.product .mfn-after-shop-loop-item .button {
	display: block !important; position: relative; width: 42px; height: 42px; min-height: 0; margin: 0; padding: 0; overflow: hidden;
	border-radius: 14px; background: var(--ps-primary-soft); color: transparent !important; font-size: 0; box-shadow: none;
}
html body ul.products li.product .mfn-after-shop-loop-item .button::before {
	content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; background: var(--ps-primary-600);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.5L21 8H6.2'/%3E%3Ccircle cx='10' cy='20.5' r='1.3'/%3E%3Ccircle cx='17' cy='20.5' r='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 11.2a2 2 0 0 0 2 1.6h7.7a2 2 0 0 0 2-1.5L21 8H6.2'/%3E%3Ccircle cx='10' cy='20.5' r='1.3'/%3E%3Ccircle cx='17' cy='20.5' r='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body ul.products li.product .mfn-after-shop-loop-item .button:hover { background: var(--ps-primary); }
html body ul.products li.product .mfn-after-shop-loop-item .button:hover::before { background: var(--ps-on-primary); }
html body ul.products li.product .mfn-after-shop-loop-item .button.added { background: var(--ps-sage); }
html body ul.products li.product .mfn-after-shop-loop-item .button.added::before { background: #fff; }
html body ul.products li.product .mfn-after-shop-loop-item .button.loading { opacity: .6; }
html body ul.products li.product .mfn-after-shop-loop-item .button.loading::after { display: none; }
html body ul.products li.product .title { font-weight: 700; }
html body ul.products li.product .title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.8em; }
html body ul.products li.product .price { font-size: var(--ps-fs-base); }
html body ul.products li.product .image_frame { background: #fff; }

/* ---------- Search panel ---------- */

.ps-sp { position: fixed; inset: 0; z-index: 9999; }
.ps-sp[hidden] { display: none; }
html.ps-sp-open:root { overflow: hidden !important; }
.ps-sp__backdrop { position: absolute; inset: 0; background: rgba(20, 12, 6, .16); animation: ps-fade .15s ease; }
/* Desktop: the dropdown sits exactly over the header field (JS sets top/left/width) and grows down from it,
   so the field and its dropdown read as one control. */
.ps-sp__box {
	position: absolute; top: 14px; left: 50%; translate: -50% 0; width: min(720px, calc(100vw - 32px)); max-height: min(600px, calc(100vh - 28px));
	display: flex; flex-direction: column; overflow: hidden; direction: rtl; text-align: right;
	background: var(--ps-surface); color: var(--ps-text); container-type: inline-size;
	border-radius: 14px; box-shadow: 0 0 0 1px var(--ps-border), 0 22px 44px -18px rgba(60, 30, 10, .32); animation: ps-drop .16s ease;
}
.ps-sp__box[style*="left"] { translate: none; }
@keyframes ps-fade { from { opacity: 0; } }
@keyframes ps-drop { from { opacity: 0; } }

/* Input row mirrors the header field: same height, icon on the right, category chip on the left. */
.ps-sp__form { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px 0 6px; border-bottom: 1px solid var(--ps-border); }
.ps-sp__form > svg { flex: none; width: 20px; height: 20px; color: var(--ps-muted); }
html body .ps-sp__form input[type="search"] {
	flex: 1; min-width: 0; height: 46px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
	color: var(--ps-ink); font: 400 var(--ps-fs-sm) var(--ps-font); text-align: right; outline: none;
}
.ps-sp__form input::-webkit-search-cancel-button { display: none; }
.ps-sp__scope {
	display: inline-flex; align-items: center; gap: 4px; flex: none; max-width: 46%; height: 34px; padding: 0 12px;
	border-radius: 10px; background: var(--ps-surface-2); color: var(--ps-text); font-size: var(--ps-fs-xs); font-weight: 700; white-space: nowrap;
}
.ps-sp__scope > span { overflow: hidden; text-overflow: ellipsis; }
.ps-sp__scope.is-set { background: var(--ps-primary-soft); color: var(--ps-primary-600); padding-inline-end: 4px; }
.ps-sp__scope button, .ps-sp__close {
	display: grid; place-items: center; flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 8px;
	background: transparent; color: inherit; font-size: var(--ps-fs-xs); cursor: pointer;
}
.ps-sp__scope button[hidden] { display: none; }
.ps-sp__close { display: none; width: 36px; height: 36px; font-size: var(--ps-fs-base); color: var(--ps-muted); }
.ps-sp__close:hover, .ps-sp__scope button:hover { background: rgba(0, 0, 0, .06); color: var(--ps-ink); }
.ps-sp.is-loading .ps-sp__form > svg { animation: ps-pulse .8s ease-in-out infinite alternate; color: var(--ps-primary); }
@keyframes ps-pulse { to { opacity: .3; } }

/* Body: category rail on the right, content on the left. */
.ps-sp__body { display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: 0; flex: 1; }
.ps-sp__cats { display: flex; flex-direction: column; padding: 8px 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; background: var(--ps-bg); border-left: 1px solid var(--ps-border); }
.ps-sp__cat {
	position: relative; display: flex; align-items: center; justify-content: flex-start !important; gap: 10px; width: 100%; min-width: 0;
	padding: 7px 14px; border: 0; border-radius: 0; background: transparent; color: var(--ps-text);
	font: 400 var(--ps-fs-sm)/1.7 var(--ps-font); text-align: right; cursor: pointer;
}
.ps-sp__cat > span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ps-sp__cat:hover, .ps-sp__cat.is-hover { background: var(--ps-surface); color: var(--ps-ink); }
.ps-sp__cat.is-active { color: var(--ps-primary-600); font-weight: 700; }
.ps-sp__cat.is-active::before { content: ""; position: absolute; right: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px 0 0 3px; background: var(--ps-primary); }
.ps-sp__cat-img { display: grid; place-items: center; flex: none; width: 28px; height: 28px; overflow: hidden; border-radius: 8px; background: var(--ps-surface-2); color: var(--ps-primary); }
.ps-sp__cat-img img { width: 100%; height: 100%; object-fit: cover; }
.ps-sp__cat-img svg { width: 16px; height: 16px; }

.ps-sp__pane { min-width: 0; padding: 14px 18px 18px; overflow-y: auto; scrollbar-width: thin; }
.ps-sp__view[hidden], .ps-sp__results[hidden], .ps-sp__recent[hidden], .ps-sp__empty[hidden], .ps-sp__all[hidden] { display: none; }
html body .ps-sp__h {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px;
	font-size: var(--ps-fs-sm); font-weight: 700; line-height: 1.6; color: var(--ps-muted); text-align: right;
}
.ps-sp__h + * { margin-bottom: 20px; }
.ps-sp__h a, .ps-sp__h button { border: 0; background: none; padding: 0; color: var(--ps-primary-600); font: 700 var(--ps-fs-xs) var(--ps-font); text-decoration: none; cursor: pointer; }
.ps-sp__h a::after { content: " ←"; }
.ps-sp__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-sp__chips:empty { display: none; }
html body .ps-sp__chip {
	display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--ps-border);
	background: var(--ps-surface); color: var(--ps-text); font-size: var(--ps-fs-xs); text-decoration: none;
}
html body .ps-sp__chip:hover { border-color: var(--ps-primary); color: var(--ps-primary-600); }
[data-recent] .ps-sp__chip::before {
	content: ""; width: 14px; height: 14px; margin-left: 6px; background: currentColor; opacity: .5;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Subcategory links: compact two-column list with thumbnails. */
.ps-sp__subs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
html body .ps-sp__sub {
	display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px;
	color: var(--ps-ink); font-size: var(--ps-fs-sm); font-weight: 700; line-height: 1.6; text-align: right; text-decoration: none;
}
html body .ps-sp__sub:hover { background: var(--ps-surface-2); color: var(--ps-primary-600); }
.ps-sp__sub img { flex: none; width: 40px; height: 40px; object-fit: cover; border-radius: 8px; background: var(--ps-surface-2); }
.ps-sp__sub > span { min-width: 0; }
.ps-sp__sub small { display: block; font-size: var(--ps-fs-xs); font-weight: 400; color: var(--ps-muted); }

/* Live results: matching categories as rows, then products, hairline separated. */
.ps-sp__results > .ps-sp__chips { display: block; margin: 0 0 6px; }
html body .ps-sp__results .ps-sp__chip--cat {
	display: flex; height: auto; padding: 9px 6px; border: 0; border-radius: 10px; font-size: var(--ps-fs-sm); color: var(--ps-ink);
}
html body .ps-sp__results .ps-sp__chip--cat::before {
	content: ""; flex: none; width: 18px; height: 18px; margin-left: 10px; background: var(--ps-muted);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3.5' y='3.5' width='7' height='7' rx='2'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='2'/%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='2'/%3E%3Crect x='13.5' y='13.5' width='7' height='7' rx='2'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3.5' y='3.5' width='7' height='7' rx='2'/%3E%3Crect x='13.5' y='3.5' width='7' height='7' rx='2'/%3E%3Crect x='3.5' y='13.5' width='7' height='7' rx='2'/%3E%3Crect x='13.5' y='13.5' width='7' height='7' rx='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body .ps-sp__results .ps-sp__chip--cat::after { content: "دسته‌بندی"; margin-right: auto; font-size: var(--ps-fs-xs); color: var(--ps-muted); }
html body .ps-sp__results .ps-sp__chip--cat:hover { background: var(--ps-surface-2); }
.ps-sp__list { display: grid; grid-template-columns: 1fr; margin: 0 0 14px; padding: 6px 0 0; list-style: none; border-top: 1px solid var(--ps-border); }
.ps-sp__results > .ps-sp__chips:empty + .ps-sp__list { border-top: 0; padding-top: 0; }
.ps-sp__list li + li { border-top: 1px solid var(--ps-border); }
html body .ps-sp__item { display: flex; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 10px; text-decoration: none; color: var(--ps-ink); text-align: right; }
html body .ps-sp__item:hover { background: var(--ps-surface-2); color: var(--ps-ink); }
.ps-sp__item-img { flex: none; width: 52px; height: 52px; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--ps-border); }
.ps-sp__item-img img { width: 100%; height: 100%; object-fit: cover; }
.ps-sp__item-text { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.ps-sp__item-text strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--ps-fs-sm); font-weight: 700; line-height: 1.8; }
.ps-sp__item-price { flex: none; font-size: var(--ps-fs-sm); font-weight: 700; color: var(--ps-ink); white-space: nowrap; }
.ps-sp__item-price del { display: block; color: var(--ps-muted); font-weight: 400; font-size: var(--ps-fs-xs); }
.ps-sp__item-price ins { text-decoration: none; }
.ps-sp__empty { margin: 4px 0 14px; padding: 16px; border-radius: 12px; background: var(--ps-surface-2); font-size: var(--ps-fs-sm); line-height: 2; }
html body .ps-sp__all { display: flex; width: 100%; min-height: 42px; border-radius: 10px; font-size: var(--ps-fs-sm); }

@container (min-width: 760px) {
	.ps-sp__list { grid-template-columns: 1fr 1fr; column-gap: 16px; }
	.ps-sp__list li + li { border-top: 0; }
	.ps-sp__subs { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
 * Content pages, blog and articles
 * ========================================================= */

.page-template-template-page #Subheader, .blog #Subheader, .category #Subheader, .single-post #Subheader { display: none; }
.ps-page { padding-bottom: 64px; }
.ps-page-head {
	padding-block: 36px 40px; margin-bottom: 36px;
	background: radial-gradient(60% 120% at 90% 0%, var(--ps-primary-soft), transparent 70%), var(--ps-surface-2);
}
/* Reading pages: title band lines up with the prose column. */
.page-template-template-page .ps-page-head .ps-container, .single-post .ps-page-head .ps-container { max-width: 820px; }
.ps-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; font-size: var(--ps-fs-sm); color: var(--ps-muted); }
.ps-crumbs a { color: var(--ps-muted) !important; text-decoration: none; }
.ps-crumbs a:hover { color: var(--ps-primary-600) !important; }
.ps-crumbs a::after { content: "/"; margin-inline-start: 6px; opacity: .5; }
html body .ps-page-head__title { margin: 0; font-size: clamp(var(--ps-fs-2xl), 3vw, var(--ps-fs-4xl)); line-height: 1.5; font-weight: 800; }
.ps-page-head__lead { max-width: 680px; margin: 8px 0 0; font-size: var(--ps-fs-base); line-height: 2; color: var(--ps-text); }

/* Long-form reading: Persian needs generous line-height and a ~70ch measure. */
.ps-prose { max-width: 780px; margin-inline: auto; font-size: var(--ps-fs-base); line-height: 2.15; color: var(--ps-text); text-align: start; }
.ps-prose > * + * { margin-top: 1.1em; }
.ps-prose p { margin: 0; }
.ps-prose p + p { margin-top: 1em; }
html body .ps-prose :is(h2, h3) { margin: 1.9em 0 .5em; line-height: 1.6; font-weight: 800; letter-spacing: 0; }
html body .ps-prose h2 { font-size: clamp(var(--ps-fs-xl), 2vw, var(--ps-fs-2xl)); }
html body .ps-prose h3 { font-size: var(--ps-fs-lg); }
html body .ps-prose > :is(h2, h3):first-child { margin-top: 0; }
.ps-prose :is(ul, ol) { margin: 1em 0; padding-inline-start: 1.4em; padding-inline-end: 0; }
.ps-prose li { margin-bottom: .4em; padding-inline-start: .2em; }
.ps-prose li::marker { color: var(--ps-primary); font-weight: 700; }
.ps-prose strong { color: var(--ps-ink); }
html body .ps-prose a:not(.ps-btn) { color: var(--ps-primary-600); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ps-prose__lead { font-size: var(--ps-fs-lg); line-height: 2.1; color: var(--ps-ink); }
.ps-prose__updated { margin-top: 2.5em !important; padding-top: 1em; border-top: 1px dashed var(--ps-border); font-size: var(--ps-fs-sm); color: var(--ps-muted); }
.ps-prose--wide { max-width: none; }

/* Page building blocks (used in page content as plain HTML). */
.ps-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.ps-split img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: var(--ps-shadow); }
.ps-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ps-stats li { margin: 0; padding: 22px; border-radius: var(--ps-radius); background: var(--ps-surface); border: 1px solid var(--ps-border); text-align: center; }
.ps-stats li::marker { content: none; }
.ps-stats strong { display: block; font-size: var(--ps-fs-3xl); line-height: 1.4; color: var(--ps-primary-600); }
.ps-stats span { font-size: var(--ps-fs-sm); color: var(--ps-muted); }
.ps-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ps-cards > * { margin: 0; padding: 24px; border-radius: var(--ps-radius); line-height: 2; }
html body .ps-cards h3 { margin: 0 0 6px; font-size: var(--ps-fs-lg); }
.ps-cards p { margin: 0; font-size: var(--ps-fs-sm); }
html body .ps-cards a { font-weight: 700; color: var(--ps-ink); text-decoration: none; direction: ltr; unicode-bidi: isolate; }
.ps-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 28px 32px; border-radius: 28px; background: var(--ps-invert-bg); color: var(--ps-invert-fg); }
html body .ps-cta :is(h2, h3, strong) { margin: 0; color: var(--ps-invert-fg); font-size: var(--ps-fs-xl); }
.ps-cta p { margin: 4px 0 0 !important; color: var(--ps-invert-fg); opacity: .8; font-size: var(--ps-fs-sm); }
.ps-faq { display: grid; gap: 10px; }
.ps-faq details { border-radius: 18px; background: var(--ps-surface); box-shadow: inset 0 0 0 1px var(--ps-border); }
.ps-faq details[open] { box-shadow: inset 0 0 0 1.5px var(--ps-primary); }
.ps-faq summary {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px;
	list-style: none; cursor: pointer; font-weight: 700; color: var(--ps-ink); line-height: 1.8;
}
.ps-faq summary::-webkit-details-marker { display: none; }
.ps-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--ps-surface-2); color: var(--ps-primary-600); font-size: var(--ps-fs-lg); transition: transform .2s ease; }
.ps-faq details[open] summary::after { transform: rotate(45deg); }
.ps-faq details > p { margin: 0; padding: 0 22px 20px; }

/* Blog */
.ps-tabs { display: flex; gap: 8px; margin-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
html body .ps-tabs a { flex: none; padding: 9px 18px; border-radius: 999px; background: var(--ps-surface); border: 1px solid var(--ps-border); color: var(--ps-ink); font-size: var(--ps-fs-sm); font-weight: 700; text-decoration: none; }
html body .ps-tabs a:hover { border-color: var(--ps-primary); }
html body .ps-tabs a[aria-current] { background: var(--ps-invert-bg); border-color: transparent; color: var(--ps-invert-fg); }
.ps-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ps-post { display: flex; flex-direction: column; overflow: hidden; background: var(--ps-surface); border: 1px solid var(--ps-border); border-radius: var(--ps-radius); transition: transform .2s ease, box-shadow .2s ease; }
.ps-post:hover { transform: translateY(-4px); box-shadow: var(--ps-shadow); }
.ps-post__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ps-surface-2); }
.ps-post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ps-post:hover .ps-post__media img { transform: scale(1.04); }
.ps-post__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 22px; }
.ps-post__meta { display: flex; align-items: center; gap: 10px; font-size: var(--ps-fs-xs); color: var(--ps-muted); }
html body .ps-post__cat { padding: 3px 10px; border-radius: 999px; background: var(--ps-primary-soft); color: var(--ps-primary-600); font-weight: 700; text-decoration: none; }
html body .ps-post__title { margin: 0; font-size: var(--ps-fs-lg); line-height: 1.8; font-weight: 800; }
html body .ps-post__title a { color: var(--ps-ink); text-decoration: none; }
html body .ps-post__title a:hover { color: var(--ps-primary-600); }
.ps-post__excerpt { margin: 0; font-size: var(--ps-fs-sm); line-height: 2; color: var(--ps-text); }
.ps-empty { padding: 40px; border-radius: var(--ps-radius); background: var(--ps-surface); text-align: center; }
.ps-pagination .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
html body .ps-pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--ps-surface); border: 1px solid var(--ps-border); color: var(--ps-ink); text-decoration: none; }
html body .ps-pagination .page-numbers.current { background: var(--ps-primary); border-color: transparent; color: var(--ps-on-primary); }

.ps-article__meta { display: flex; justify-content: center; gap: 18px; margin: -12px 0 22px; font-size: var(--ps-fs-sm); color: var(--ps-muted); }
.ps-article__meta > * + *::before { content: "•"; margin-inline-end: 18px; opacity: .6; }
.ps-article__cover { max-width: 980px; margin: 0 auto 36px; }
.ps-article__cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 28px; }
.ps-article__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; max-width: 780px; margin: 44px auto 0; padding: 24px 28px; border-radius: var(--ps-radius); background: var(--ps-primary-soft); }
.ps-article__cta strong { display: block; color: var(--ps-ink); font-size: var(--ps-fs-base); }
.ps-article__cta p { margin: 4px 0 0; font-size: var(--ps-fs-sm); }
.ps-article .ps-section { margin-top: 40px; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
	html body .mfn-header-tmpl .mcb-item-0vv39u1i .desc-wrapper { display: none; }
	html body .mfn-header-tmpl .mcb-item-0vv39u1i .mfn-header-link { padding: 0; width: 44px; justify-content: center; }
	.ps-hero__layout { grid-template-columns: 1fr; }
	.ps-hero__side { grid-template-columns: 1fr 1fr; }
	.ps-rail { grid-auto-columns: calc((100% - 3 * 18px) / 4); }
	.ps-cats { grid-template-columns: repeat(3, 1fr); }
	.ps-cat--wide { grid-column: span 1; min-height: 176px; }
	.ps-cat--wide .ps-cat__text strong { font-size: var(--ps-fs-lg); }
	.ps-cat--wide .ps-cat__img { width: 168px; inset-inline-end: -8px; bottom: -14px; }
	.ps-benefits { grid-template-columns: repeat(2, 1fr); }
	.ps-benefits li:nth-child(3) { border-inline-start: 0; }
}

@media (max-width: 860px) {
	.ps-posts { grid-template-columns: 1fr 1fr; }
	.ps-split { grid-template-columns: 1fr; gap: 24px; }
	.ps-split img { order: -1; }
	.ps-sp__box { inset: 0 !important; width: 100% !important; max-height: none; border-radius: 0; translate: none; box-shadow: none; }
	.ps-sp__form { height: 56px; padding: 0 12px 0 6px; }
	.ps-sp__close { display: grid; }
	.ps-sp__body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
	.ps-sp__cats { flex-direction: row; gap: 6px; padding: 10px 12px; overflow-x: auto; overflow-y: hidden; border-left: 0; border-bottom: 1px solid var(--ps-border); scrollbar-width: none; }
	.ps-sp__cat { flex: none; width: auto; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--ps-surface); box-shadow: inset 0 0 0 1px var(--ps-border); white-space: nowrap; }
	.ps-sp__cat.is-active { box-shadow: inset 0 0 0 1.5px var(--ps-primary); }
	.ps-sp__cat.is-active::before { display: none; }
	.ps-sp__cat-img { width: 26px; height: 26px; border-radius: 50%; }
	.ps-sp__pane { padding: 14px 14px 24px; }
	.ps-hero__main { flex-direction: column; align-items: stretch; min-height: 0; }
	.ps-hero__img { position: static; height: 260px; object-position: 15% 60%; }
	.ps-hero__main::before { display: none; }
	.ps-hero__copy { width: auto; padding: 24px 22px 28px; }
	.ps-pets { grid-template-columns: repeat(2, 1fr); }
	.ps-rail { grid-auto-columns: calc((100% - 2 * 14px) / 2.3); gap: 14px; }
	.ps-grid, .ps-cats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
	.ps-promos, .ps-tips { grid-template-columns: 1fr; }
	.ps-club { grid-template-columns: 1fr; }
	.ps-club img { position: static; height: 220px; order: -1; }
	.ps-section { padding-block: 40px; }
}

@media (max-width: 560px) {
	html body ul.products li.product .mfn-after-shop-loop-item { padding-inline-end: 4px; }
	html body ul.products li.product .mfn-after-shop-loop-item .button { width: 34px; height: 34px; border-radius: 11px; }
	html body ul.products li.product .mfn-after-shop-loop-item .button::before { width: 17px; height: 17px; }
	html body ul.products li.product .price { font-size: var(--ps-fs-sm) !important; white-space: normal; }
	html body ul.products li.product .title { font-size: var(--ps-fs-sm); }
	.ps-posts { grid-template-columns: 1fr; }
	.ps-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
	.ps-stats li { padding: 14px 6px; }
	.ps-stats strong { font-size: var(--ps-fs-2xl); }
	.ps-page-head { padding-block: 22px 26px; margin-bottom: 24px; }
	.ps-prose { font-size: var(--ps-fs-base); }
	.ps-cta, .ps-article__cta { padding: 22px; }
	.ps-article__cover img { aspect-ratio: 4 / 3; border-radius: 20px; }
	.ps-container { padding-inline: 16px; }
	.ps-hero { padding-top: 12px; }
	.ps-hero__main { border-radius: 24px; }
	.ps-hero__img { height: 210px; }
	.ps-hero__stats { gap: 16px; }
	.ps-hero__stats strong { font-size: var(--ps-fs-base); }
	.ps-hero__actions .ps-btn { flex: 1; }
	html body .ps-hero__tile { padding: 14px; border-radius: 20px; flex-direction: column-reverse; align-items: flex-start; }
	.ps-hero__tile img { width: calc(100% + 28px); height: auto; aspect-ratio: 4 / 3; margin: -14px -14px -4px; }
	.ps-hero__tile strong { font-size: var(--ps-fs-base); }
	.ps-section__head { flex-wrap: wrap; align-items: center; }
	.ps-rail-btn { display: none; }
	.ps-benefits { grid-template-columns: 1fr; }
	.ps-benefits li + li { border-inline-start: 0; border-top: 1px dashed var(--ps-border); }
	html body .ps-cat, html body .ps-cat--wide { min-height: 0; padding: 14px; border-radius: 22px; }
	.ps-cat__img, .ps-cat--wide .ps-cat__img { position: relative; inset: auto; order: -1; width: calc(100% + 28px); margin: -14px -14px -2px; }
	.ps-cat__text { max-width: none; padding-inline-end: 38px; }
	.ps-cat__text strong, .ps-cat--wide .ps-cat__text strong { font-size: var(--ps-fs-sm); }
	.ps-cat__text small { margin-top: 4px; font-size: var(--ps-fs-xs); }
	.ps-cat__go { position: absolute; bottom: 14px; inset-inline-end: 14px; width: 32px; height: 32px; }
	.ps-card__body { padding: 4px 12px 12px; }
	html body .ps-card__title { font-size: var(--ps-fs-sm); }
	.ps-card__price { font-size: var(--ps-fs-sm); }
	html body .ps-card__cart.button { width: 36px; height: 36px; border-radius: 12px; }
	.ps-hero__title mark { white-space: normal; }
	html body .ps-cat:first-child { grid-column: span 2; min-height: 156px; }
	.ps-cat:first-child .ps-cat__img { position: absolute; width: 180px; margin: 0; inset-inline-end: -6px; bottom: -18px; }
	.ps-cat:first-child .ps-cat__text { max-width: 50%; padding: 0; }
	.ps-cat:first-child .ps-cat__text strong { font-size: var(--ps-fs-lg); }
	.ps-cat:first-child .ps-cat__go { position: relative; inset: auto; }
	.ps-brands { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px; }
	.ps-brands li { flex: none; }
	.ps-promo__copy { width: 52%; padding: 22px 18px; gap: 8px; }
	.ps-promo__copy strong { font-size: var(--ps-fs-lg); }
	html body .ps-promo { min-height: 220px; }
	.ps-club__copy { padding: 26px 22px 30px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Logo: orange paw mark + live Persian wordmark */
html body .logo-wrapper, html body .text-logo #logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
html body .logo-wrapper img, .petshop-logo-mark { width: auto !important; height: 40px !important; max-width: none !important; margin: 0 !important; flex: none; }
.petshop-logo-text { font-size: var(--ps-fs-2xl); font-weight: 800; line-height: 1; color: var(--ps-ink); white-space: nowrap; }
#Footer .petshop-logo-text, .mfn-footer-tmpl .petshop-logo-text { color: var(--ps-invert-fg); }
@media (max-width: 767px) {
	html body .logo-wrapper img, .petshop-logo-mark { height: 32px !important; }
	.petshop-logo-text { font-size: var(--ps-fs-xl); }
}
