/* =========================================================
   HOMEPAGE STYLES
   • Hero slider (1903x450 banners)
   • Category grid
   • Stats section (animated counters)
   • CTA split cards
   ========================================================= */

/* ==================== HERO ==================== */
.hc-hero {
	position: relative;
	width: 100%;
	background: var(--hc-purple-dark);
	overflow: hidden;
	isolation: isolate;
}

.hc-hero__slider {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 1;
}

.hc-hero__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	color: var(--hc-white);
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s var(--hc-ease), visibility 0s 0.6s;
	overflow: hidden;
}
.hc-hero__slide[data-active="true"] {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.6s var(--hc-ease), visibility 0s;
}

.hc-hero__slide--1 {
	background: linear-gradient(135deg, #4A2870 0%, #6B3F95 50%, #F26522 100%);
}
.hc-hero__slide--2 {
	background: linear-gradient(135deg, #2D1845 0%, #4A2870 100%);
}
.hc-hero__slide--3 {
	background: linear-gradient(135deg, #D14E0F 0%, #F26522 50%, #FF8A4C 100%);
}

.hc-hero__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.5;
}
.hc-hero__pattern { width: 100%; height: 100%; }

.hc-hero__content {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	align-items: center;
	gap: 2rem;
	width: 100%;
	position: relative;
	z-index: 2;
	padding-top: clamp(1.5rem, 4vw, 3rem);
	padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

.hc-hero__text {
	display: flex;
	flex-direction: column;
	gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.hc-hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	align-self: flex-start;
	background: rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: var(--hc-white);
	padding: 0.5rem 1.125rem;
	border-radius: var(--hc-radius-full);
	font-family: var(--hc-font-display);
	font-size: var(--hc-text-xs);
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.hc-hero__sparkle { color: var(--hc-yellow); }

.hc-hero__title {
	font-family: var(--hc-font-display);
	font-size: var(--hc-text-5xl);
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.04em;
	display: flex;
	flex-direction: column;
	gap: 0.1em;
	color: var(--hc-white);
	margin: 0;
}
.hc-hero__title span {
	font-weight: 400;
	font-size: 0.55em;
	opacity: 0.7;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}
.hc-hero__title strong { font-weight: 800; }

.hc-hero__subtitle {
	font-size: var(--hc-text-lg);
	color: rgba(255, 255, 255, 0.9);
	max-width: 480px;
	line-height: 1.5;
}

.hc-hero__cta { margin-top: 0.5rem; }

/* Хаотичні великі % на правій частині */
.hc-hero__visual {
	position: relative;
	height: 100%;
	min-height: 240px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hc-hero__percent {
	position: absolute;
	font-family: var(--hc-font-display);
	font-weight: 800;
	color: rgba(255, 255, 255, 0.20);
	line-height: 1;
	user-select: none;
}
.hc-hero__percent--1 {
	top: 5%;
	right: 50%;
	font-size: clamp(6rem, 14vw, 14rem);
	transform: rotate(-8deg);
	color: rgba(255, 210, 0, 0.30);
}
.hc-hero__percent--2 {
	top: 20%;
	right: 10%;
	font-size: clamp(8rem, 18vw, 18rem);
	transform: rotate(6deg);
}
.hc-hero__percent--3 {
	bottom: 5%;
	right: 30%;
	font-size: clamp(4rem, 10vw, 10rem);
	transform: rotate(-15deg);
	color: rgba(255, 138, 76, 0.40);
}

.hc-hero__circle {
	position: absolute;
	right: -10%;
	width: 70%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 210, 0, 0.20) 0%, transparent 70%);
	z-index: -1;
}

/* === Slider Nav === */
.hc-hero__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.20);
	border-radius: var(--hc-radius-full);
	color: var(--hc-white);
	z-index: 5;
	transition: all var(--hc-duration);
}
.hc-hero__nav:hover { background: var(--hc-orange); border-color: var(--hc-orange); }
.hc-hero__nav--prev { left: var(--hc-page-padding); }
.hc-hero__nav--next { right: var(--hc-page-padding); }

.hc-hero__dots {
	position: absolute;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 0.5rem;
	z-index: 5;
}
.hc-hero__dot {
	width: 10px;
	height: 10px;
	border-radius: var(--hc-radius-full);
	background: rgba(255, 255, 255, 0.40);
	transition: all var(--hc-duration);
}
.hc-hero__dot[data-active="true"] {
	width: 32px;
	background: var(--hc-white);
}

/* ==================== SECTION HEADERS ==================== */
.hc-section-header {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.hc-section-header--with-link {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1rem;
	flex-wrap: wrap;
}

.hc-section--cream { background: var(--hc-off-white); }

/* ==================== CATEGORIES ==================== */
.hc-categories {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1rem;
}

.hc-category-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.875rem;
	padding: 1.5rem 1rem;
	background: var(--hc-white);
	border: 1.5px solid var(--hc-gray-100);
	border-radius: var(--hc-radius-lg);
	color: var(--hc-ink);
	text-align: center;
	transition: all var(--hc-duration) var(--hc-ease);
	position: relative;
	overflow: hidden;
}
.hc-category-card:hover {
	transform: translateY(-4px);
	border-color: var(--hc-orange);
	box-shadow: var(--hc-shadow-md);
	color: var(--hc-ink);
}
.hc-category-card::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--hc-orange);
	transform: scaleX(0);
	transition: transform var(--hc-duration) var(--hc-ease);
}
.hc-category-card:hover::before { transform: scaleX(1); }

.hc-category-card__emoji {
	font-size: 2.5rem;
	line-height: 1;
}

.hc-category-card__name {
	font-family: var(--hc-font-display);
	font-size: var(--hc-text-sm);
	font-weight: 600;
	color: var(--hc-ink);
}

/* ==================== PRODUCTS ==================== */
.hc-products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

.hc-product {
	background: var(--hc-white);
	border-radius: var(--hc-radius-lg);
	overflow: hidden;
	border: 1.5px solid var(--hc-gray-100);
	transition: all var(--hc-duration) var(--hc-ease);
	display: flex;
	flex-direction: column;
}
.hc-product:hover {
	transform: translateY(-4px);
	border-color: var(--hc-orange);
	box-shadow: var(--hc-shadow-md);
}

.hc-product__media {
	position: relative;
	aspect-ratio: 1;
	background: var(--hc-gray-50);
}

.hc-product__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
	padding: 2rem 2rem 0.5rem;
	box-sizing: border-box;
}

.hc-product__placeholder svg {
	width: 100%;
	height: 100%;
}

.hc-product__period {
	position: absolute;
	top: 0.625rem;
	left: 0.625rem;
	right: 0.625rem;
	font-size: 0.65rem;
	color: var(--hc-gray-500);
	background: rgba(255, 255, 255, 0.9);
	padding: 0.25rem 0.5rem;
	border-radius: var(--hc-radius-sm);
	text-align: center;
}

.hc-product__badge {
	position: absolute;
	top: 0.625rem;
	right: 0.625rem;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 56px;
	min-height: 56px;
	padding: 0.4rem 0.5rem;
	background: var(--hc-orange);
	color: var(--hc-white);
	border-radius: var(--hc-radius-full);
	font-family: var(--hc-font-display);
	line-height: 1;
	box-shadow: 0 4px 12px rgba(242, 101, 34, 0.40);
	transform: translateY(28px);
}
.hc-product__badge-label {
	font-size: 0.55rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	margin-bottom: 0.15rem;
}
.hc-product__badge strong {
	font-size: 1.1rem;
	font-weight: 700;
}

.hc-product__name {
	font-family: var(--hc-font-display);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--hc-ink);
	padding: 1rem 1rem 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	min-height: 3em;
	line-height: 1.3;
	margin: 0;
}

.hc-product__price {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	padding: 0 1rem 1.25rem;
	flex-wrap: wrap;
}

.hc-product__price-old {
	font-size: 0.85rem;
	color: var(--hc-gray-500);
	text-decoration: line-through;
	text-decoration-thickness: 1.5px;
	font-weight: 500;
}

.hc-product[data-tone="orange"] .hc-product__price-new strong { color: var(--hc-orange); }
.hc-product[data-tone="purple"] .hc-product__price-new strong { color: var(--hc-purple); }
.hc-product[data-tone="green"]  .hc-product__price-new strong { color: var(--hc-success); }

.hc-product__price-new {
	display: inline-flex;
	align-items: baseline;
	gap: 0.2rem;
	font-family: var(--hc-font-display);
}
.hc-product__price-new strong {
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}
.hc-product__price-new span {
	font-size: 0.75rem;
	font-weight: 600;
	color: inherit;
	opacity: 0.7;
}

/* ==================== PROMOTIONS PAGINATION ==================== */
.hc-promo-pagination {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	margin-top: clamp(2rem, 4vw, 3rem);
}

.hc-promo-more {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	border: 2px solid var(--hc-gray-300);
	background: var(--hc-white);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	cursor: pointer;
	transition: all var(--hc-duration) var(--hc-ease);
	color: var(--hc-ink);
}
.hc-promo-more svg {
	color: var(--hc-gray-500);
	transition: color var(--hc-duration);
}
.hc-promo-more span {
	font-family: var(--hc-font-display);
	font-size: 0.8rem;
	font-weight: 600;
	text-align: center;
	line-height: 1.3;
	max-width: 90px;
}
.hc-promo-more:hover {
	border-color: var(--hc-orange);
	box-shadow: var(--hc-shadow-md);
	transform: translateY(-2px);
}
.hc-promo-more:hover svg {
	color: var(--hc-orange);
}
.hc-promo-more.is-loading {
	pointer-events: none;
	opacity: 0.6;
}

.hc-promo-pages {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.hc-promo-page {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1.5px solid var(--hc-gray-300);
	background: var(--hc-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--hc-font-display);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--hc-ink);
	cursor: pointer;
	transition: all var(--hc-duration) var(--hc-ease);
}
.hc-promo-page:hover {
	border-color: var(--hc-orange);
	color: var(--hc-orange);
}
.hc-promo-page[data-active="true"] {
	background: var(--hc-orange);
	border-color: var(--hc-orange);
	color: var(--hc-white);
}
.hc-promo-page--next {
	border-color: var(--hc-gray-300);
}
.hc-promo-page--next svg {
	color: var(--hc-ink);
	transition: color var(--hc-duration);
}
.hc-promo-page--next:hover svg {
	color: var(--hc-orange);
}

#hc-promotions-grid {
	transition: opacity 0.3s var(--hc-ease);
}
#hc-promotions-grid.is-loading {
	opacity: 0.4;
	pointer-events: none;
}

/* ==================== STATS ==================== */
.hc-stats-section {
	background: linear-gradient(180deg, var(--hc-white) 0%, var(--hc-off-white) 100%);
}

.hc-stats {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}

.hc-stats__text { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.hc-stats__text p { color: var(--hc-gray-500); max-width: 460px; }

.hc-stats__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
}

.hc-stat-card {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.75rem 1.25rem;
	background: var(--hc-white);
	border: 1.5px solid var(--hc-gray-100);
	border-radius: var(--hc-radius-lg);
	transition: all var(--hc-duration);
	position: relative;
	overflow: hidden;
}
.hc-stat-card:hover { transform: translateY(-4px); box-shadow: var(--hc-shadow-md); }

.hc-stat-card__icon {
	color: var(--hc-purple);
	margin-bottom: 0.5rem;
}
.hc-stat-card--orange .hc-stat-card__icon { color: var(--hc-orange); }
.hc-stat-card--purple .hc-stat-card__icon { color: var(--hc-purple); }

.hc-stat-card__num {
	font-family: var(--hc-font-display);
	font-size: clamp(2.5rem, 5vw, 3.5rem);
	font-weight: 800;
	line-height: 1;
	color: var(--hc-ink);
	letter-spacing: -0.03em;
}
.hc-stat-card--orange .hc-stat-card__num { color: var(--hc-orange); }
.hc-stat-card--purple .hc-stat-card__num { color: var(--hc-purple); }

.hc-stat-card__label {
	font-size: var(--hc-text-sm);
	color: var(--hc-gray-500);
	font-weight: 500;
}

/* ==================== CTA SPLIT ==================== */
.hc-cta-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}

.hc-cta-card {
	position: relative;
	display: block;
	border-radius: var(--hc-radius-xl);
	padding: clamp(2rem, 4vw, 3rem);
	color: var(--hc-white);
	overflow: hidden;
	transition: transform var(--hc-duration) var(--hc-ease);
	min-height: 280px;
}
.hc-cta-card:hover { transform: translateY(-4px); color: var(--hc-white); }

.hc-cta-card--orange { background: linear-gradient(135deg, #F26522 0%, #D14E0F 100%); }
.hc-cta-card--purple { background: linear-gradient(135deg, #4A2870 0%, #2D1845 100%); }

.hc-cta-card__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 60%;
}

.hc-cta-card__kicker {
	font-family: var(--hc-font-display);
	font-size: var(--hc-text-xs);
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}

.hc-cta-card h3 {
	color: var(--hc-white);
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	letter-spacing: -0.02em;
	margin: 0;
}

.hc-cta-card p {
	color: rgba(255, 255, 255, 0.85);
	font-size: var(--hc-text-base);
	line-height: 1.5;
	margin: 0;
	max-width: 320px;
}

.hc-cta-card__arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.75rem;
	font-family: var(--hc-font-display);
	font-size: var(--hc-text-base);
	font-weight: 600;
	color: var(--hc-white);
	transition: gap var(--hc-duration);
}
.hc-cta-card:hover .hc-cta-card__arrow { gap: 0.875rem; }

.hc-cta-card__bg {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	width: auto;
	z-index: 1;
	opacity: 0.7;
}

/* ==================== FRONT PAGE SECTION SPACING ==================== */
.home .hc-section {
	padding-top: clamp(1.5rem, 3vw, 3rem);
	padding-bottom: clamp(1.5rem, 3vw, 3rem);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
	.hc-hero__content { grid-template-columns: 1fr; }
	.hc-hero__visual { display: none; }
	.hc-hero__title { font-size: clamp(2rem, 6vw, 3.5rem); }
	.hc-stats { grid-template-columns: 1fr; }
	.hc-cta-split { grid-template-columns: 1fr; }
	.hc-products { grid-template-columns: repeat(2, 1fr); }

	/* Декоративні банери сторінок — коротші на планшеті */
	.hc-hero--page .hc-hero__slider {
		aspect-ratio: unset;
		min-height: 220px;
		max-height: 260px;
	}
}

@media (max-width: 640px) {
	/* ── Пагінація акцій ── */
	.hc-promo-more { width: 110px; height: 110px; }
	.hc-promo-more span { font-size: 0.7rem; max-width: 70px; }
	.hc-promo-more svg { width: 20px; height: 20px; }
	.hc-promo-page { width: 36px; height: 36px; font-size: 0.8rem; }

	/* ── Головний слайдер ── */
	.hc-hero__slider {
		aspect-ratio: 4 / 1;
		min-height: unset;
		max-height: unset;
	}
	.hc-hero__content {
		padding-top: 1.25rem;
		padding-bottom: 1.25rem;
	}
	.hc-hero__title {
		font-size: clamp(1.5rem, 6vw, 2.25rem);
	}
	.hc-hero__subtitle {
		font-size: 0.875rem;
		max-width: 100%;
		line-height: 1.45;
	}
	.hc-hero__kicker {
		font-size: 0.65rem;
		padding: 0.35rem 0.8rem;
	}
	.hc-hero__nav { display: none; }
	.hc-hero__dots { bottom: 0.625rem; gap: 0.375rem; }
	.hc-hero__dot { width: 7px; height: 7px; }
	.hc-hero__dot[data-active="true"] { width: 20px; }

	/* ── Декоративні банери сторінок ── */
	.hc-hero--page .hc-hero__slider {
		aspect-ratio: unset;
		min-height: 160px;
		max-height: 200px;
	}

	/* ── Решта ── */
	.hc-stats__cards { grid-template-columns: 1fr; }
	.hc-categories { grid-template-columns: repeat(2, 1fr); }
	.hc-cta-card__inner { max-width: 100%; }
	.hc-cta-card__bg { opacity: 0.25; }
}

@media (max-width: 380px) {
	.hc-products { grid-template-columns: 1fr; }
	.hc-hero--page .hc-hero__slider { min-height: 130px; max-height: 160px; }
}
