/* Front page - Pet Shop Fereshteh (hand-coded, no Elementor) */

.psf-home {
	--psf-brand: #4d0f5c;
	--psf-brand-2: #6d1b7b;
	--psf-ink: #2b2b2b;
	--psf-muted: #6f6f76;
	--psf-line: #ece6ef;
	--psf-surface: #fff;
	--psf-bg: #f7f5f8;
	display: block;
	background: var(--psf-surface);
	color: var(--psf-ink);
}

.psf-home .psf-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}

.psf-home section {
	margin: 0;
}

/* ---------- shared bits ---------- */

.psf-section {
	padding: 42px 0 6px;
}

.psf-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.psf-section__head h2,
.psf-brands__title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	color: var(--psf-ink);
}

.psf-more {
	flex: 0 0 auto;
	color: var(--psf-brand);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.psf-more:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.psf-btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background .15s, color .15s;
}

.psf-btn--light {
	background: #fff;
	color: var(--psf-brand);
}

.psf-btn--light:hover {
	background: #ffe9b8;
	color: var(--psf-brand);
}

/* ---------- hero ---------- */

.psf-hero {
	position: relative;
	overflow: hidden;
	background: var(--psf-bg);
	/* break out of the theme's content container so the slider is edge to edge */
	width: 100vw;
	max-width: 100vw;
	margin-inline-start: calc(50% - 50vw);
	margin-inline-end: calc(50% - 50vw);
}

.psf-hero--mobile {
	display: none;
}

.psf-hero__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.psf-hero__track::-webkit-scrollbar {
	display: none;
}

.psf-hero__slide {
	flex: 0 0 100%;
	scroll-snap-align: center;
	line-height: 0;
}

.psf-hero__slide img {
	width: 100%;
	height: auto;
	display: block;
	/* desktop banners are 2000x623 */
	aspect-ratio: 2000 / 623;
	object-fit: cover;
}

.psf-home .psf-hero__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	line-height: 0;
	cursor: pointer;
	opacity: .85;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
	transition: opacity .15s, transform .15s;
}

.psf-home .psf-hero__nav:hover {
	opacity: 1;
}

.psf-home .psf-hero__nav svg {
	width: 30px;
	height: 30px;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4));
}

.psf-home .psf-hero__nav--prev {
	inset-inline-end: 10px;
}

.psf-home .psf-hero__nav--next {
	inset-inline-start: 10px;
}

.psf-hero__dots {
	position: absolute;
	inset-inline: 0;
	bottom: 18px;
	display: flex;
	justify-content: center;
	gap: 7px;
}

/* Qualified + explicit box: the theme's bare-button rules add padding and a
   min-height, which stretched these into ovals. */
.psf-home .psf-hero__dots button {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 8px;
	height: 8px;
	min-width: 0;
	min-height: 0;
	padding: 0;
	border: 1px solid #fff;
	border-radius: 50%;
	background: transparent;
	line-height: 0;
	cursor: pointer;
	transition: background .15s;
}

.psf-home .psf-hero__dots button[aria-selected="true"] {
	background: #fff;
}

/* ---------- quick links ---------- */

.psf-quick {
	padding: 26px 0 6px;
}

.psf-quick__list {
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.psf-quick__list a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 10px 4px;
	color: var(--psf-ink);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: color .15s;
}

.psf-quick__list a:hover {
	color: var(--psf-brand);
}

.psf-quick__icon {
	display: grid;
	place-items: center;
	width: 112px;
	height: 112px;
	transition: transform .15s;
}

.psf-quick__list a:hover .psf-quick__icon {
	transform: translateY(-3px);
}

.psf-quick__icon img {
	display: block;
	width: 84px;
	height: 84px;
	object-fit: contain;
}

/* ---------- product rows ---------- */

.psf-rowbox {
	padding: 22px 20px;
	background: var(--psf-bg);
	border-radius: 22px;
}

.psf-row {
	position: relative;
}

.psf-row__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	/* no scroll-snap here: it fights the arrow animation by pulling each frame
	   back to the nearest snap point. The hero keeps its snapping. */
	padding-bottom: 6px;
	scrollbar-width: none;
}

.psf-row__track::-webkit-scrollbar {
	display: none;
}

.psf-pcard {
	position: relative;
	flex: 0 0 clamp(150px, 19%, 230px);
	display: flex;
	flex-direction: column;
	padding: 12px;
	background: var(--psf-surface);
	border: 1px solid var(--psf-line);
	border-radius: 16px;
	transition: box-shadow .15s, transform .15s;
}

.psf-pcard:hover {
	box-shadow: 0 10px 26px rgba(77, 15, 92, .10);
	transform: translateY(-2px);
}

.psf-pcard__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.psf-pcard__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	border-radius: 12px;
	background: #fff;
}

.psf-pcard__name {
	display: block;
	margin: 12px 2px 8px;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.7;
	/* keep every card's price on the same line */
	min-height: 4.6em;
	overflow: hidden;
}

.psf-pcard__price {
	margin: auto 2px 2px;
	font-size: 14px;
	font-weight: 700;
	color: var(--psf-brand);
}

.psf-pcard__price .cfp-tel {
	color: var(--psf-brand-2);
	text-decoration: none;
	direction: ltr;
	display: inline-block;
}

.psf-pcard__badge {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	z-index: 1;
	display: grid;
	place-items: center;
	min-width: 46px;
	height: 46px;
	padding: 0 8px;
	border-radius: 50%;
	background: #d92b2b;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	line-height: 1.3;
}

.psf-pcard__badge.is-featured {
	background: #d92b2b;
}

.psf-row__dots {
	display: flex;
	justify-content: center;
	gap: 7px;
	margin-top: 16px;
}

.psf-home .psf-row__dots button {
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 8px;
	height: 8px;
	min-width: 0;
	min-height: 0;
	padding: 0;
	border: 1px solid #fff;
	border-radius: 50%;
	background: transparent;
	line-height: 0;
	cursor: pointer;
	transition: background .15s;
}

.psf-home .psf-row__dots button[aria-selected="true"] {
	background: #fff;
}

/* the theme sets position:relative on bare buttons, so qualify the selector */
.psf-home .psf-row__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--psf-line);
	border-radius: 50%;
	background: #fff;
	color: var(--psf-brand);
	line-height: 0;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .10);
	transition: background .15s, color .15s, opacity .15s;
}

.psf-home .psf-row__nav:hover {
	background: var(--psf-brand);
	color: #fff;
}

/* The rows point outward, unlike the hero arrows which point inward. */
.psf-home .psf-row__nav svg {
	transform: rotate(180deg);
}

/* The track is RTL, so inset-inline-start is the RIGHT edge. "Next" moves the
   carousel forward, which in RTL means travelling leftwards — so it belongs on
   the left (inset-inline-end) and "previous" on the right. */
.psf-home .psf-row__nav--prev {
	inset-inline-start: -8px;
}

.psf-home .psf-row__nav--next {
	inset-inline-end: -8px;
}

.psf-home .psf-row__nav[hidden] {
	display: none;
}

/* ---------- offers strip ---------- */

.psf-offers {
	margin-top: 34px;
	padding: 26px 0;
}

.psf-offers__inner {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	gap: 22px;
	align-items: center;
	padding: 46px 30px;
	background: var(--psf-brand);
	border-radius: 26px;
}

.psf-offers__aside {
	text-align: center;
}

.psf-offers__title {
	margin: 0 0 26px;
	color: #fff;
	font-size: 40px;
	font-weight: 800;
	line-height: 1.5;
}

.psf-offers__title span {
	display: block;
}

.psf-btn--ghost {
	border: 2px solid rgba(255, 255, 255, .85);
	background: transparent;
	color: #fff;
}

.psf-btn--ghost:hover {
	background: #fff;
	color: var(--psf-brand);
}

.psf-offers__row .psf-row__nav {
	border-color: transparent;
}

/* ---------- banners & promos ---------- */

.psf-banners,
.psf-promos {
	padding: 30px 0 6px;
}

.psf-banners__grid,
.psf-promos__grid {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.psf-banners__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.psf-promos__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.psf-banners__grid a,
.psf-promos__grid a {
	display: block;
	overflow: hidden;
	border-radius: 18px;
	line-height: 0;
}

.psf-banners__grid img,
.psf-promos__grid img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform .3s;
}

.psf-banners__grid a:hover img,
.psf-promos__grid a:hover img {
	transform: scale(1.03);
}

/* ---------- brands ---------- */

.psf-brands {
	padding: 44px 0 10px;
}

.psf-brands__title {
	margin-bottom: 18px;
}

.psf-brands__list {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.psf-brands__list a {
	display: grid;
	place-items: center;
	padding: 14px;
	background: #fff;
	border: 1px solid var(--psf-line);
	border-radius: 14px;
	transition: border-color .15s, box-shadow .15s;
}

.psf-brands__list a:hover {
	border-color: var(--psf-brand);
	box-shadow: 0 8px 20px rgba(77, 15, 92, .08);
}

.psf-brands__list img {
	max-width: 100%;
	height: 52px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .75;
	transition: filter .2s, opacity .2s;
}

.psf-brands__list a:hover img,
.psf-brands__list a:focus-visible img {
	filter: grayscale(0);
	opacity: 1;
}

/* ---------- about ---------- */

.psf-about {
	margin-top: 44px;
	padding: 40px 0 50px;
}

.psf-about__media {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 22px;
}

.psf-about__media img {
	width: 100%;
	height: 100%;
	max-height: 320px;
	display: block;
	object-fit: cover;
	border-radius: 22px;
}

.psf-about__panel {
	padding: 34px 40px 26px;
	background: var(--psf-bg);
	border-radius: 22px;
}

.psf-about__text {
	position: relative;
	overflow: hidden;
	/* collapsed height; the toggle swaps this for the full height */
	/* No transition here on purpose: animating max-height needs animation frames,
	   which some engines (and reduced-motion setups) skip, leaving the panel stuck
	   half-open. The toggle is instant and always lands correctly. */
	max-height: 8.4em;
}

.psf-about__panel.is-open .psf-about__text {
	max-height: 120em;
}

/* fade the clipped edge while collapsed */
.psf-about__text::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 2.4em;
	background: linear-gradient(to bottom, rgba(247, 245, 248, 0), var(--psf-bg));
	pointer-events: none;
}

.psf-about__panel.is-open .psf-about__text::after {
	display: none;
}

.psf-about__text p {
	margin: 0 0 14px;
	color: #5c5c66;
	font-size: 15px;
	line-height: 2.15;
	text-align: justify;
}

.psf-home .psf-about__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 14px;
	padding: 8px 0 0;
	border: 0;
	background: transparent;
	color: var(--psf-brand);
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.psf-home .psf-about__toggle svg {
	transition: transform .25s;
}

.psf-about__panel.is-open .psf-about__toggle svg {
	transform: rotate(180deg);
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
	.psf-quick__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.psf-quick__icon {
		width: 96px;
		height: 96px;
	}

	.psf-quick__icon img {
		width: 70px;
		height: 70px;
	}

	.psf-banners__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.psf-brands__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.psf-offers__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.psf-about__panel {
		padding: 26px 22px 20px;
	}

	.psf-about__media {
		gap: 12px;
	}

	.psf-home .psf-row__nav {
		display: none;
	}
}

@media (max-width: 767px) {
	.psf-hero--desktop {
		display: none;
	}

	.psf-hero--mobile {
		display: block;
	}

	.psf-hero__slide img {
		/* the mobile banners are 1150x609, not square */
		aspect-ratio: 1150 / 609;
	}

	.psf-quick__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
	}

	.psf-quick__icon {
		width: 82px;
		height: 82px;
	}

	.psf-quick__icon img {
		width: 60px;
		height: 60px;
	}

	.psf-quick__list a {
		font-size: 12.5px;
	}

	/* reserve two lines so a wrapping label doesn't make its row taller */
	.psf-quick__label {
		display: block;
		min-height: 2.6em;
	}

	.psf-section__head h2,
	.psf-brands__title,
	.psf-about__text h2 {
		font-size: 18px;
	}

	.psf-pcard {
		flex-basis: 62vw;
		max-width: 240px;
	}

	.psf-promos__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.psf-about__media {
		grid-template-columns: minmax(0, 1fr);
	}

	.psf-brands__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.psf-offers__inner {
		padding: 30px 16px;
		border-radius: 18px;
	}

	.psf-offers__title {
		font-size: 28px;
	}

	.psf-home .psf-hero__nav {
		width: 34px;
		height: 34px;
	}

	.psf-home .psf-hero__nav svg {
		width: 20px;
		height: 20px;
	}
}
