/* Afarin Store — Homepage */

.af-home-page-view .site-main--home,
.af-home-page-view .site-content {
	padding: 0;
	max-width: none;
}

.af-home {
	--af-primary: #2eb8c9;
	--af-primary-dark: #239aad;
	--af-primary-soft: rgba(46, 184, 201, 0.1);
	--af-accent: #b83d52;
	--af-accent-dark: #962f43;
	--af-secondary: #7a1530;
	--af-deals: var(--af-accent);
	--af-deals-dark: var(--af-accent-dark);
	--af-text: #1e293b;
	--af-muted: #64748b;
	--af-border: #e8edf2;
	--af-white: #ffffff;
	--af-surface: #ffffff;
	--af-radius: 8px;
	--af-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
	font-family: inherit;
	color: var(--af-text);
	overflow: hidden;
	background:
		radial-gradient(ellipse 90% 55% at 100% 0%, rgba(46, 184, 201, 0.06), transparent 58%),
		radial-gradient(ellipse 80% 50% at 0% 100%, rgba(184, 61, 82, 0.04), transparent 54%),
		#f7f9fb;
	position: relative;
	isolation: isolate;
}

/* ── SECTION PATTERNS (disabled — blur layers hurt scroll performance) ── */
.af-home-pattern {
	display: none;
}

.af-home-section {
	position: relative;
	z-index: 1;
	isolation: isolate;
}

.af-home-section__inner {
	position: relative;
	z-index: 1;
}

.af-home *,
.af-home *::before,
.af-home *::after {
	box-sizing: border-box;
}

.af-home-wrap {
	width: min(100% - 32px, 1320px);
	margin-inline: auto;
}

.af-home-section-title {
	margin: 0;
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	font-weight: 800;
	color: var(--af-text);
}

.af-home-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 28px;
	margin-bottom: 28px;
}

.af-home-section__head--center {
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.af-home-section__intro {
	min-width: 0;
}

.af-home-section__title-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.af-home-section__title-stack--center {
	align-items: center;
	position: relative;
	padding: 4px 24px 8px;
}

.af-home-section__title-stack--center::before {
	content: '';
	position: absolute;
	inset: 50% auto auto 50%;
	transform: translate(-50%, -50%);
	width: min(220px, 70vw);
	height: 88px;
	border-radius: 50%;
	background: radial-gradient(ellipse, rgba(46, 184, 201, 0.14) 0%, transparent 72%);
	pointer-events: none;
	z-index: 0;
}

.af-home-section__title-stack--center > * {
	position: relative;
	z-index: 1;
}

.af-home-section__eyebrow {
	display: inline-block;
	margin: 8px 0 0;
	padding: 0;
	color: var(--af-muted);
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1.65;
	letter-spacing: 0;
}

.af-home-section__title-stack--center .af-home-section__eyebrow {
	display: block;
}

.af-home-section__title-line {
	position: relative;
	display: inline-block;
	max-width: 100%;
	padding-bottom: 0.1em;
}

.af-home-section__title-stroke {
	position: absolute;
	inset-inline: -5%;
	bottom: 0.04em;
	z-index: 0;
	width: 110%;
	height: 0.62em;
	min-height: 14px;
	max-height: 24px;
	color: var(--af-primary);
	pointer-events: none;
	overflow: visible;
}

.af-home-section__title-stroke-a,
.af-home-section__title-stroke-b {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.af-home-section__title-stroke-a {
	stroke-width: 7;
	opacity: 0.32;
}

.af-home-section__title-stroke-b {
	stroke-width: 4;
	opacity: 0.55;
}

.af-home-section__title-line--accent .af-home-section__title-stroke {
	color: var(--af-accent);
}

.af-home-section__title-line > :not(.af-home-section__title-stroke) {
	position: relative;
	z-index: 1;
}

.af-home-section__title {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2.15rem);
	font-weight: 900;
	line-height: 1.22;
	color: var(--af-text);
}

.af-home-section__title-rule,
.af-home-section__tag {
	display: none;
}

.af-home-section__subtitle {
	margin: 10px 0 0;
	max-width: 52ch;
	font-size: 0.94rem;
	line-height: 1.75;
	color: var(--af-muted);
}

.af-home-section__head--center .af-home-section__subtitle {
	margin-inline: auto;
}

.af-home-section__more {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--af-primary-soft);
	color: var(--af-primary-dark);
	text-decoration: none;
	font-size: 0.86rem;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: none;
	transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.af-home-section__more--accent {
	background: rgba(184, 61, 82, 0.1);
	color: var(--af-accent-dark);
}

.af-home-section__more--dark {
	background: rgba(30, 41, 59, 0.08);
	color: var(--af-text);
}

.af-home-section__more::after {
	content: '←';
	font-size: 0.92em;
	line-height: 1;
	opacity: 0.75;
}

.af-home-section__more:hover {
	transform: translateY(-1px);
	background: var(--af-primary);
	color: #fff;
}

.af-home-section__more--accent:hover {
	background: var(--af-accent);
	color: #fff;
}

.af-home-section__more--dark:hover {
	background: var(--af-text);
	color: #fff;
}

.af-home-section__title-mark {
	color: var(--af-primary-dark);
	font-weight: 900;
}

.af-home-trend__title-wrap,
.af-home-skincare__title-wrap,
.af-home-face-makeup__title-wrap {
	position: relative;
}

.af-home-mid-banner__link {
	position: relative;
}

.af-home-mid-banner__overlay {
	position: absolute;
	inset: auto 24px 24px auto;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	max-width: min(100% - 48px, 420px);
	padding: 16px 20px;
	border-radius: 16px;
	background: rgba(15, 23, 42, 0.72);
	color: #fff;
	backdrop-filter: blur(6px);
}

.af-home-mid-banner__title {
	font-size: 1.1rem;
	font-weight: 900;
}

.af-home-mid-banner__subtitle {
	font-size: 0.9rem;
	line-height: 1.6;
	opacity: 0.92;
}

.af-home-mid-banner__cta {
	display: inline-flex;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--af-primary);
	font-size: 0.82rem;
	font-weight: 800;
}

/* ── HERO ── */
.af-home-hero {
	position: relative;
	z-index: 1;
	width: 100%;
	background: #0f172a;
}

.af-home-hero__frame {
	position: relative;
}

.af-home-hero__swiper {
	width: 100%;
}

.af-home-hero__slide {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 21 / 7;
	min-height: 220px;
	max-height: 520px;
	overflow: hidden;
}

.af-home-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.8s ease;
}

.af-home-hero__image--mobile {
	display: none;
}

.af-home-hero__slide:hover .af-home-hero__image {
	transform: scale(1.03);
}

.af-home-hero__caption {
	position: absolute;
	inset: auto auto 10% 0;
	width: min(100% - 48px, 520px);
	margin-inline: 24px;
	padding: 24px 28px;
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.55));
	backdrop-filter: blur(8px);
	color: #fff;
}

.af-home-hero__title {
	margin: 0 0 8px;
	font-size: clamp(1.4rem, 3vw, 2.2rem);
	font-weight: 900;
	line-height: 1.3;
}

.af-home-hero__subtitle {
	margin: 0;
	font-size: clamp(0.95rem, 1.5vw, 1.1rem);
	opacity: 0.92;
}

.af-home-hero__pagination {
	bottom: 18px !important;
}

.af-home-hero__pagination .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: rgba(255, 255, 255, 0.45);
	opacity: 1;
}

.af-home-hero__pagination .swiper-pagination-bullet-active {
	width: 28px;
	border-radius: 999px;
	background: var(--af-primary);
}

/* ── CATEGORIES ── */
.af-home-cats {
	padding: 40px 0 16px;
}

.af-home-cats .af-home-section__head {
	margin-bottom: 32px;
}

.af-home-cats .af-home-section__more {
	margin-top: 8px;
}

.af-home-cats__slider-wrap,
.af-home-deals__slider-wrap,
.af-home-skincare__slider-wrap,
.af-home-face-makeup__slider-wrap,
.af-home-trend__slider-wrap,
.af-home-perfume__slider-wrap,
.af-home-hair__slider-wrap,
.af-home-electric__slider-wrap {
	min-width: 0;
}

.af-home-cats__swiper,
.af-home-deals__swiper,
.af-home-skincare__swiper,
.af-home-face-makeup__swiper,
.af-home-trend__swiper,
.af-home-perfume__swiper,
.af-home-hair__swiper,
.af-home-electric__swiper {
	width: 100%;
	min-width: 0;
	overflow: hidden;
}

.af-home-cats__swiper .swiper-slide {
	width: auto;
	height: auto;
}

.af-home-deals__swiper .swiper-slide,
.af-home-skincare__swiper .swiper-slide,
.af-home-face-makeup__swiper .swiper-slide,
.af-home-trend__swiper .swiper-slide,
.af-home-perfume__swiper .swiper-slide,
.af-home-hair__swiper .swiper-slide,
.af-home-electric__swiper .swiper-slide {
	height: auto;
}

.af-home-page-view .af-product-card__prices {
	align-items: end;
	align-self: end;
}

.af-home-cats__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	text-decoration: none;
	color: inherit;
}

.af-home-cats__name {
	display: block;
	max-width: clamp(112px, 12.5vw, 156px);
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.45;
	text-align: center;
	color: var(--af-text);
	transition: color 0.25s ease;
}

.af-home-cats__item:hover .af-home-cats__name {
	color: var(--af-primary-dark);
}

.af-home-cats__thumb {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(112px, 12.5vw, 156px);
	height: clamp(112px, 12.5vw, 156px);
	border-radius: 50%;
	padding: 5px;
	background: var(--af-surface);
	box-shadow:
		0 8px 24px rgba(46, 184, 201, 0.12),
		inset 0 0 0 1px var(--af-border);
	transition: box-shadow 0.35s ease;
}

.af-home-cats__ring {
	position: absolute;
	inset: -3px;
	border-radius: 50%;
	border: 2px solid var(--af-primary);
	opacity: 0;
	transform: scale(0.94);
	transition: opacity 0.35s ease;
	z-index: 0;
}

.af-home-cats__ring::after {
	display: none;
}

.af-home-cats__item:hover .af-home-cats__ring {
	opacity: 0.5;
	animation: af-cat-pulse 2s ease-in-out infinite;
}

.af-home-cats__item:hover .af-home-cats__thumb {
	box-shadow: 0 12px 32px rgba(46, 184, 201, 0.2);
}

.af-home-cats__thumb img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--af-white);
	background: var(--af-white);
	transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.af-home-cats__item:hover .af-home-cats__thumb img {
	transform: scale(1.08);
}

@keyframes af-cat-pulse {

	0%,
	100% {
		transform: scale(0.96);
		opacity: 0.35;
	}

	50% {
		transform: scale(1.04);
		opacity: 0.55;
	}
}

/* ── OTHER CATEGORIES (image tiles) ── */
.af-home-other-cats {
	padding: 12px 0 28px;
}

.af-home-other-cats__grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px;
}

.af-home-other-cats__item {
	display: block;
	flex: 0 0 180px;
	width: 180px;
	height: 180px;
	border: 1px solid var(--af-border);
	border-radius: var(--af-radius);
	overflow: hidden;
	background: var(--af-white);
	box-shadow: var(--af-shadow);
	transition: border-color 0.25s ease;
}

.af-home-other-cats__item:hover {
	border-color: var(--af-primary);
}

.af-home-other-cats__item img {
	display: block;
	width: 180px;
	height: 180px;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.af-home-other-cats__item:hover img {
	transform: scale(1.06);
}

/* ── AMAZING DEALS ── */
.af-home-deals {
	padding: 28px 0;
}

.af-home-deals__panel {
	padding: 22px 22px 20px;
	background: var(--af-white);
	border: 1px solid var(--af-border);
	border-radius: calc(var(--af-radius) + 4px);
	box-shadow: var(--af-shadow);
	overflow: hidden;
}

.af-home-deals__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	flex-wrap: wrap;
	margin-bottom: 20px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--af-border);
}

.af-home-deals__intro {
	position: relative;
	flex: 1 1 220px;
	min-width: 0;
}

.af-home-deals__title {
	margin: 0;
	font-size: clamp(1.35rem, 2.4vw, 1.85rem);
	font-weight: 900;
	line-height: 1.3;
	color: var(--af-text);
}

.af-home-deals .af-home-section__eyebrow {
	color: var(--af-accent-dark);
}

.af-home-deals__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	flex-shrink: 0;
}

.af-home-deals__countdown {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 10px 6px 12px;
	border-radius: 14px;
	background: var(--af-bg, #f7f9fb);
	border: 1px solid var(--af-border);
}

.af-home-deals__countdown-label {
	flex: 0 0 auto;
	font-size: 0.72rem;
	font-weight: 800;
	color: var(--af-muted);
	white-space: nowrap;
}

.af-home-deals__timer {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.af-home-deals__timer-item {
	min-width: 42px;
	padding: 5px 6px 4px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid var(--af-border);
	text-align: center;
}

.af-home-deals__timer-value {
	display: block;
	font-size: 0.95rem;
	font-weight: 900;
	line-height: 1;
	color: var(--af-accent-dark);
	font-variant-numeric: tabular-nums;
}

.af-home-deals__timer-label {
	display: block;
	margin-top: 2px;
	font-size: 0.58rem;
	font-weight: 700;
	color: var(--af-muted);
	line-height: 1;
}

.af-home-deals__timer-sep {
	font-size: 0.9rem;
	font-weight: 800;
	line-height: 1;
	color: var(--af-muted);
	opacity: 0.7;
	padding-bottom: 10px;
}

.af-home-deals__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--af-accent);
	color: #fff;
	text-decoration: none;
	font-size: 0.84rem;
	font-weight: 800;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(184, 61, 82, 0.22);
	transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.af-home-deals__more svg {
	display: none;
}

.af-home-deals__more:hover {
	transform: translateY(-1px);
	background: var(--af-accent-dark);
	box-shadow: 0 6px 18px rgba(184, 61, 82, 0.28);
}

.af-home-deals__slider-wrap {
	margin-inline: -4px;
}

/* ── PROMO BANNERS ── */
.af-home-banners {
	padding: 20px 0;
}

.af-home-banners__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.af-home-banners__item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: calc(var(--af-radius) + 2px);
	aspect-ratio: 4 / 5;
	box-shadow: var(--af-shadow);
}

.af-home-banners__item picture {
	display: block;
	width: 100%;
	height: 100%;
}

.af-home-banners__image {
	width: 100%;
	height: 100%;
	transition: transform 0.35s ease;
}

.af-home-banners__item:hover .af-home-banners__image {
	transform: scale(1.05);
}

/* ── TREND, SKINCARE & FACE MAKEUP SLIDERS ── */
.af-home-skincare {
	padding: 16px 0 20px;
}

.af-home-perfume,
.af-home-trend,
.af-home-face-makeup,
.af-home-hair,
.af-home-electric,
.af-home-brands {
	padding: 16px 0 20px;
}

.af-home-perfume__head,
.af-home-skincare__head,
.af-home-face-makeup__head,
.af-home-trend__head,
.af-home-hair__head,
.af-home-electric__head,
.af-home-brands__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 16px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--af-border);
}

.af-home-perfume__title-wrap,
.af-home-skincare__title-wrap,
.af-home-face-makeup__title-wrap,
.af-home-trend__title-wrap,
.af-home-hair__title-wrap,
.af-home-electric__title-wrap,
.af-home-brands__title-wrap {
	position: relative;
	min-width: 0;
}

.af-home-perfume__title,
.af-home-skincare__title,
.af-home-face-makeup__title,
.af-home-trend__title,
.af-home-hair__title,
.af-home-electric__title,
.af-home-brands__title {
	margin: 0;
	font-size: clamp(1.45rem, 2.6vw, 2rem);
	font-weight: 900;
	line-height: 1.28;
	color: var(--af-text);
}

.af-home-face-makeup .af-home-section__eyebrow {
	color: var(--af-accent-dark);
}

.af-home-product-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: -4px 0 20px;
}

.af-home-product-chips__link {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--af-primary-soft);
	color: var(--af-primary-dark);
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1.3;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.af-home-product-chips__link:hover {
	background: var(--af-primary);
	color: #fff;
	transform: translateY(-1px);
}

.af-home-section.af-home-face-makeup .af-home-product-chips__link {
	background: rgba(184, 61, 82, 0.1);
	color: var(--af-accent-dark);
}

.af-home-section.af-home-face-makeup .af-home-product-chips__link:hover {
	background: var(--af-accent);
	color: #fff;
}

.af-home-skincare__more,
.af-home-face-makeup__more,
.af-home-trend__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--af-primary);
	color: #fff;
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 800;
	box-shadow: 0 6px 20px rgba(46, 184, 201, 0.28);
	transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.af-home-face-makeup__more {
	background: var(--af-accent);
	box-shadow: 0 6px 20px rgba(184, 61, 82, 0.24);
}

.af-home-skincare__more svg,
.af-home-face-makeup__more svg,
.af-home-trend__more svg {
	display: none;
}

.af-home-skincare__more:hover,
.af-home-face-makeup__more:hover,
.af-home-trend__more:hover {
	transform: translateY(-2px);
	background: var(--af-primary-dark);
	box-shadow: 0 8px 24px rgba(46, 184, 201, 0.32);
}

.af-home-face-makeup__more:hover {
	background: var(--af-accent-dark);
	box-shadow: 0 8px 24px rgba(184, 61, 82, 0.32);
}

/* ── MID BANNER ── */
.af-home-mid-banner {
	padding: 8px 0 12px;
}

.af-home-mid-banner--full {
	padding: 0;
}

.af-home-mid-banner--full .af-home-section__inner {
	max-width: none;
	padding: 0;
}

.af-home-mid-banner__grid {
	display: grid;
	gap: 16px;
}

.af-home-mid-banner--full .af-home-mid-banner__grid {
	grid-template-columns: 1fr;
}

.af-home-mid-banner--dual .af-home-mid-banner__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.af-home-mid-banner__item {
	display: block;
	overflow: hidden;
	border-radius: 16px;
	box-shadow: var(--af-shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.af-home-mid-banner--full .af-home-mid-banner__item {
	box-shadow: none;
}

.af-home-mid-banner__item:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}

.af-home-mid-banner--full .af-home-mid-banner__item:hover {
	transform: none;
	box-shadow: none;
}

.af-home-mid-banner__item picture,
.af-home-mid-banner__item .af-home-banners__image {
	display: block;
	width: 100%;
	height: clamp(140px, 18vw, 240px);
	object-fit: cover;
	border-radius: inherit;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.af-home-mid-banner--dual .af-home-mid-banner__item picture,
.af-home-mid-banner--dual .af-home-mid-banner__item .af-home-banners__image {
	height: clamp(120px, 16vw, 200px);
}

.af-home-mid-banner__item:hover .af-home-banners__image {
	transform: scale(1.04);
}

/* ── BEST SELLERS ── */
.af-home-bestsellers {
	padding: 18px 0 24px;
}

.af-home-bestsellers__panel {
	padding: clamp(20px, 2.5vw, 28px);
	border-radius: 22px;
	background: #fff;
	border: 1px solid var(--af-border);
	box-shadow: 0 16px 42px rgba(15, 23, 42, 0.07);
}

.af-home-bestsellers__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 24px;
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--af-border);
}

.af-home-bestsellers__title-wrap {
	position: relative;
	display: flex;
	align-items: flex-end;
	gap: 8px;
	min-width: 0;
}

.af-home-bestsellers__title {
	margin: 0;
	font-size: clamp(1.35rem, 2.4vw, 1.85rem);
	font-weight: 900;
	line-height: 1.3;
	color: var(--af-text);
}

.af-home-bestsellers .af-home-section__eyebrow {
	color: var(--af-accent-dark);
}

.af-home-bestsellers__title-icon {
	flex: 0 0 auto;
	margin-bottom: 4px;
	font-size: 1.2rem;
	line-height: 1;
}

.af-home-bestsellers__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: rgba(184, 61, 82, 0.1);
	color: var(--af-accent-dark);
	text-decoration: none;
	font-size: 0.86rem;
	font-weight: 700;
	white-space: nowrap;
	transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.af-home-bestsellers__more::after {
	content: '←';
	font-size: 0.92em;
	line-height: 1;
	opacity: 0.75;
}

.af-home-bestsellers__more svg {
	display: none;
}

.af-home-bestsellers__more:hover {
	background: var(--af-accent);
	color: #fff;
	transform: translateY(-1px);
}

.af-home-bestsellers__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.af-home-bestsellers__col {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.af-home-bestsellers__item {
	display: grid;
	grid-template-columns: 52px 34px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.af-home-bestsellers__item:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.af-home-bestsellers__item--gold {
	background: #fff8e8;
}

.af-home-bestsellers__item--silver {
	background: #f1f5f9;
}

.af-home-bestsellers__item--bronze {
	background: #fff1e8;
}

.af-home-bestsellers__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.06);
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
	overflow: hidden;
}

.af-home-bestsellers__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.af-home-bestsellers__rank {
	font-size: 1.35rem;
	font-weight: 900;
	line-height: 1;
	color: var(--af-accent-dark);
	font-variant-numeric: tabular-nums;
}

.af-home-bestsellers__name {
	font-size: 0.86rem;
	font-weight: 700;
	line-height: 1.65;
	color: var(--af-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── POPULAR BRANDS ── */
.af-home-brands__grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
	gap: 14px;
}

.af-home-brands__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 118px;
	padding: 22px 16px 18px;
	border: 1px solid rgba(46, 184, 201, 0.28);
	border-radius: 20px;
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
	box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	isolation: isolate;
	transition: border-color 0.22s ease;
}

.af-home-brands__glow {
	position: absolute;
	inset: auto -30% -55% -30%;
	height: 120px;
	border-radius: 50%;
	opacity: 1;
	filter: blur(18px);
	transform: translateY(-8px);
	pointer-events: none;
	z-index: 0;
}

.af-home-brands__card--tone-1 .af-home-brands__glow {
	background: rgba(46, 184, 201, 0.35);
}

.af-home-brands__card--tone-2 .af-home-brands__glow {
	background: rgba(184, 61, 82, 0.28);
}

.af-home-brands__card--tone-3 .af-home-brands__glow {
	background: rgba(99, 102, 241, 0.28);
}

.af-home-brands__card--tone-4 .af-home-brands__glow {
	background: rgba(16, 185, 129, 0.28);
}

.af-home-brands__name {
	position: relative;
	z-index: 1;
	max-width: 100%;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.5;
	text-align: center;
	color: var(--af-primary-dark);
}

.af-home-brands__card--tone-2 .af-home-brands__name {
	color: var(--af-accent-dark);
}

.af-home-brands__card--tone-3 .af-home-brands__name {
	color: #4338ca;
}

.af-home-brands__card--tone-4 .af-home-brands__name {
	color: #047857;
}

.af-home-brands__cta {
	position: relative;
	z-index: 1;
	margin-top: 2px;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--af-primary-dark);
	opacity: 1;
	transform: translateY(0);
}

.af-home-brands__card--tone-2 .af-home-brands__cta {
	color: var(--af-accent-dark);
}

.af-home-brands__card--tone-3 .af-home-brands__cta {
	color: #4338ca;
}

.af-home-brands__card--tone-4 .af-home-brands__cta {
	color: #047857;
}

.af-home-brands__card:hover {
	border-color: var(--af-primary);
}

.af-home-brands__card--tone-2:hover {
	border-color: var(--af-accent);
}

.af-home-brands__card--tone-3:hover {
	border-color: #6366f1;
}

.af-home-brands__card--tone-4:hover {
	border-color: #10b981;
}

/* ── ARTICLES ── */
.af-home-posts {
	padding: 16px 0 56px;
}

.af-home-posts__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
}

.af-home-posts__intro {
	max-width: 640px;
}

.af-home-posts__section-title {
	margin: 0;
	font-size: clamp(1.45rem, 2.6vw, 2rem);
	font-weight: 900;
	line-height: 1.25;
	color: var(--af-text);
}

.af-home-posts__subtitle {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.7;
	color: var(--af-muted);
}

.af-home-posts__more {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: rgba(30, 41, 59, 0.08);
	color: var(--af-text);
	font-size: 0.86rem;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.af-home-posts__more::after {
	content: '←';
	font-size: 0.92em;
	line-height: 1;
	opacity: 0.75;
}

.af-home-posts__more svg {
	display: none;
}

.af-home-posts__more:hover {
	transform: translateY(-1px);
	background: var(--af-text);
	border-color: var(--af-text);
	color: var(--af-white);
}

.af-home-posts__layout {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	align-items: stretch;
}

.af-home-posts__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 16px;
	border: 1px solid var(--af-border);
	background: var(--af-white);
	box-shadow: var(--af-shadow);
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.af-home-posts__card:hover {
	transform: translateY(-4px);
	border-color: rgba(46, 184, 201, 0.35);
	box-shadow: 0 16px 36px rgba(46, 184, 201, 0.12);
}

.af-home-posts__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
}

.af-home-posts__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.af-home-posts__card:hover .af-home-posts__media img {
	transform: scale(1.06);
}

.af-home-posts__media-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.35) 100%);
	opacity: 0.85;
	pointer-events: none;
}

.af-home-posts__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px 18px;
}

.af-home-posts__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

.af-home-posts__category {
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--af-primary-soft);
	color: var(--af-primary-dark);
	font-size: 0.72rem;
	font-weight: 700;
	text-decoration: none;
}

.af-home-posts__date {
	color: var(--af-muted);
	font-size: 0.78rem;
}

.af-home-posts__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.45;
}

.af-home-posts__title a {
	color: var(--af-text);
	text-decoration: none;
}

.af-home-posts__title a:hover {
	color: var(--af-primary-dark);
}

.af-home-posts__excerpt {
	margin: 0;
	color: var(--af-muted);
	font-size: 0.86rem;
	line-height: 1.75;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.af-home-posts__read {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	color: var(--af-primary-dark);
	font-size: 0.82rem;
	font-weight: 800;
	text-decoration: none;
}

.af-home-posts__read svg {
	display: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
	.af-home-banners {
		padding: 14px 0;
	}

	.af-home-banners__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.af-home-banners__item {
		aspect-ratio: 2 / 1.5;
		border-radius: 12px;
		box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
	}

	.af-home-bestsellers__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.af-home-brands__grid {
		grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
		gap: 12px;
	}
}

@media (max-width: 767px) {

	.af-home-hero__slide {
		aspect-ratio: 16 / 9;
		min-height: 180px;
	}

	.af-home-hero__slide--has-mobile .af-home-hero__image--desktop {
		display: none;
	}

	.af-home-hero__slide--has-mobile .af-home-hero__image--mobile {
		display: block;
	}

	.af-home-hero__caption {
		display: none;
	}

	.af-home-hero__pagination {
		bottom: 8px !important;
	}

	.af-home-cats__thumb {
		width: 96px;
		height: 96px;
	}

	.af-home-cats__name {
		max-width: 96px;
		font-size: 0.82rem;
	}

	.af-home-section__head {
		flex-direction: column;
		align-items: stretch;
		margin-bottom: 18px;
	}

	.af-home-section__head--center {
		align-items: center;
		text-align: center;
	}

	.af-home-section__head--center .af-home-section__more {
		align-self: center;
	}

	.af-home-section__more {
		align-self: flex-end;
		width: auto;
		min-height: 0;
		padding: 5px 12px;
		font-size: 0.74rem;
		gap: 5px;
		line-height: 1.2;
	}

	.af-home-skincare__more,
	.af-home-face-makeup__more,
	.af-home-trend__more,
	.af-home-bestsellers__more,
	.af-home-posts__more {
		align-self: flex-end;
		width: auto;
		min-height: 0;
		padding: 5px 12px;
		font-size: 0.74rem;
		gap: 5px;
		line-height: 1.2;
	}

	.af-home-posts__head {
		align-items: stretch;
	}

	.af-home-deals__head {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"intro more"
			"countdown countdown";
		align-items: center;
		gap: 8px 10px;
		margin-bottom: 12px;
		padding-bottom: 12px;
	}

	.af-home-deals__meta {
		display: contents;
	}

	.af-home-deals__intro {
		grid-area: intro;
		flex: unset;
	}

	.af-home-deals__countdown {
		grid-area: countdown;
		width: 100%;
		flex: unset;
		min-width: 0;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 8px 10px;
		gap: 8px;
		text-align: center;
	}

	.af-home-deals__timer {
		margin-inline-start: 0;
		justify-content: center;
		width: 100%;
	}

	.af-home-deals__countdown-label {
		font-size: 0.66rem;
		text-align: center;
		width: 100%;
	}

	.af-home-deals__more {
		grid-area: more;
		align-self: center;
		padding: 7px 11px;
		font-size: 0.75rem;
	}

	.af-home-deals__timer-item {
		min-width: 34px;
		padding: 4px 5px 3px;
	}

	.af-home-deals__timer-value {
		font-size: 0.82rem;
	}

	.af-home-deals__timer-label {
		font-size: 0.52rem;
		margin-top: 1px;
	}

	.af-home-deals__timer-sep {
		padding-bottom: 8px;
		font-size: 0.78rem;
	}

	.af-home-deals__panel {
		padding: 14px 12px 12px;
	}

	.af-home-deals {
		padding: 16px 0;
	}

	.af-home-deals__title {
		font-size: 1.05rem;
		line-height: 1.3;
	}

	.af-home-posts__layout {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.af-home-mid-banner--dual .af-home-mid-banner__grid {
		grid-template-columns: 1fr;
	}

	.af-home-mid-banner__item picture,
	.af-home-mid-banner__item .af-home-banners__image {
		height: clamp(120px, 34vw, 180px);
	}

	.af-home-mid-banner--full .af-home-mid-banner__item picture,
	.af-home-mid-banner--full .af-home-mid-banner__item .af-home-banners__image {
		height: clamp(120px, 34vw, 160px);
	}

	.af-home-bestsellers__head {
		align-items: stretch;
	}

	.af-home-bestsellers__more {
		align-self: flex-end;
	}

	.af-home-bestsellers__grid {
		grid-template-columns: 1fr;
	}

	.af-home-brands__head {
		margin-bottom: 18px;
		padding-bottom: 18px;
	}

	.af-home-brands__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.af-home-brands__card {
		min-height: 108px;
		padding: 18px 12px 16px;
		border-radius: 16px;
	}

	.af-home-brands__name {
		font-size: 0.84rem;
	}

	.af-home-brands__cta {
		opacity: 1;
		transform: none;
		font-size: 0.68rem;
	}
}

@media (max-width: 479px) {
	.af-home-wrap {
		width: min(100% - 24px, 1320px);
	}

	.af-home-deals__panel {
		padding: 12px 10px 10px;
	}

	.af-home-deals__countdown-label {
		display: none;
	}

	.af-home-deals__timer-label {
		display: none;
	}

	.af-home-deals__timer-sep {
		padding-bottom: 0;
	}

	.af-home-deals__timer-item {
		min-width: 30px;
		padding: 5px 4px;
	}

	.af-home-deals__more {
		padding: 6px 10px;
		font-size: 0.72rem;
	}

	.af-home-posts__more {
		justify-content: center;
		align-self: flex-end;
		width: auto;
	}

	.af-home-posts__layout {
		grid-template-columns: 1fr;
	}

	.af-home-section__more {
		justify-content: center;
		align-self: flex-end;
		width: auto;
		min-height: 0;
		padding: 5px 11px;
		font-size: 0.72rem;
	}

	.af-home-mid-banner__image {
		height: 150px;
	}

	.af-home-mid-banner--full .af-home-mid-banner__image {
		height: 120px;
	}

	.af-home-bestsellers__panel {
		padding: 16px 14px;
		border-radius: 16px;
	}

	.af-home-bestsellers__item {
		grid-template-columns: 48px 30px minmax(0, 1fr);
		padding: 9px 10px;
	}

	.af-home-bestsellers__thumb {
		width: 48px;
		height: 48px;
	}

	.af-home-bestsellers__rank {
		font-size: 1.2rem;
	}

	.af-home-bestsellers__name {
		font-size: 0.8rem;
	}
}