/* ═══════════════════════════════════════════════════════
   NUANSA RINDU — fashion.css
   ═══════════════════════════════════════════════════════ */

.fashion-page {
	background: var(--cream);
}

/* ── PAGE HERO ────────────────────────────────────────── */
.fashion-hero {
	position: relative;
	height: 100vh;
	min-height: 600px;
	display: flex;
	align-items: flex-end;
	padding: 0 60px 80px;
	overflow: hidden;
}
.fashion-hero-bg {
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, #c8b090, #8a7058, #4a3820, #1a0e06);
}
.fashion-hero-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.65;
}
.fashion-hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom, rgba(26, 5, 0, 0.6) 0%, transparent 20%),
		linear-gradient(to top, rgba(26, 5, 0, 0.85) 0%, rgba(26, 5, 0, 0) 60%);
}
.fashion-hero-content {
	position: relative;
	z-index: 2;
	max-width: 600px;
}
.fashion-hero-label {
	font-size: 0.62rem;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--gold-lt);
	margin-bottom: 20px;
	display: block;
	opacity: 0;
	animation: fadeUp 0.9s 0.2s forwards;
}
.fashion-hero-title {
	font-family: var(--font-display);
	font-size: clamp(2.8rem, 5vw, 4.5rem);
	font-weight: 300;
	color: #f5f0e8;
	line-height: 1.1;
	margin-bottom: 22px;
	opacity: 0;
	animation: fadeUp 0.9s 0.38s forwards;
}
.fashion-hero-title em {
	font-style: italic;
	color: var(--gold);
	display: block;
}
.fashion-hero-desc {
	font-size: 0.84rem;
	color: rgba(245, 240, 232, 0.8);
	line-height: 1.85;
	max-width: 440px;
	opacity: 0;
	animation: fadeUp 0.9s 0.54s forwards;
}

/* ── INTRO SECTION ────────────────────────────────────── */
.fashion-intro {
	padding: 100px 60px;
	background: var(--warm);
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
}
.fashion-intro-text h2 {
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 3vw, 2.8rem);
	font-weight: 300;
	color: var(--brown);
	line-height: 1.2;
	margin-bottom: 24px;
}
.fashion-intro-text p {
	font-size: 0.84rem;
	color: var(--muted);
	line-height: 1.9;
	margin-bottom: 16px;
}
.fashion-intro-visual {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3px;
	aspect-ratio: 1;
}
.fi-cell {
	overflow: hidden;
	position: relative;
}
.fi-cell:first-child {
	grid-column: span 2;
	aspect-ratio: 2/1;
}
.fi-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
	display: block;
}
.fi-cell:hover .fi-img {
	transform: scale(1.04);
}

/* ── ESSENTIALS SECTION (SWIPEABLE SLIDER) ────────────── */
.fashion-essentials {
	padding: 100px 60px 100px;
	background: var(--cream);
}
.essentials-header {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: flex-end;
	margin-bottom: 40px;
}
.essentials-header h2 {
	font-family: var(--font-display);
	font-size: clamp(1.8rem, 3vw, 2.8rem);
	font-weight: 300;
	color: var(--brown);
	line-height: 1.2;
	margin-bottom: 16px;
}
.essentials-header-right {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

/* Konfigurasi Slider & Tombol Melayang */
.essentials-slider-wrapper {
	position: relative;
	width: 100%;
}
.ess-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 48px;
	height: 48px;
	background: #1a1008;
	border: 1px solid var(--gold);
	color: var(--gold);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	outline: none;
}
.ess-btn:hover {
	background: var(--gold);
	color: var(--cream);
	transform: translateY(-50%) scale(1.1);
	box-shadow: 0 6px 20px rgba(196, 163, 90, 0.3);
}
.ess-btn svg {
	width: 20px;
	height: 20px;
}
.ess-btn.prev-btn {
	left: -24px;
}
.ess-btn.next-btn {
	right: -24px;
}

.essentials-items {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 20px;
}
.essentials-items::-webkit-scrollbar {
	display: none;
}

.ess-item {
	flex: 0 0 calc(25% - 3px);
	scroll-snap-align: start;
	position: relative;
	overflow: hidden;
	cursor: grab;
	aspect-ratio: 3/4;
	background: var(--brown);
}
.ess-item:active {
	cursor: grabbing;
}
.ess-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.8;
	transition:
		transform 0.6s ease,
		opacity 0.4s;
	display: block;
	pointer-events: none;
}
.ess-item:hover .ess-img {
	transform: scale(1.05);
	opacity: 0.95;
}
.ess-info {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 24px 16px;
	background: linear-gradient(
		to top,
		rgba(26, 5, 0, 0.85) 0%,
		transparent 100%
	);
	pointer-events: none;
}
.ess-name {
	font-family: var(--font-display);
	font-size: 1.1rem;
	color: #f5f0e8;
	margin-bottom: 4px;
}
.ess-detail {
	font-size: 0.62rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold-lt);
}

/* ess bg fallbacks */
.ess-bg-1 {
	background: linear-gradient(160deg, #c8b890, #8a8060, #4a4030);
}
.ess-bg-2 {
	background: linear-gradient(160deg, #7890a0, #485868, #182030);
}
.ess-bg-3 {
	background: linear-gradient(160deg, #c0a070, #806040, #402010);
}
.ess-bg-4 {
	background: linear-gradient(160deg, #8a9880, #506048, #182018);
}
.ess-bg-5 {
	background: linear-gradient(160deg, #b89870, #786040, #382010);
}

/* ── KEYFRAMES ────────────────────────────────────────── */
@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(28px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
	.fashion-hero,
	.fashion-intro,
	.fashion-essentials {
		padding-left: 32px;
		padding-right: 32px;
	}
	.fashion-intro {
		grid-template-columns: 1fr;
		gap: 48px;
	}
	.essentials-header {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.ess-item {
		flex: 0 0 calc(33.333% - 2.6px);
	}
}
@media (max-width: 768px) {
	.ess-item {
		flex: 0 0 calc(50% - 2px);
	}
	.ess-btn {
		display: none;
	} /* Menyembunyikan tombol melayang pada layar sentuh karena user bisa men-swipe langsung */
}
@media (max-width: 480px) {
	.fashion-hero {
		padding: 0 20px 48px;
		height: 85vh;
	}
	.fashion-intro,
	.fashion-essentials {
		padding-left: 20px;
		padding-right: 20px;
	}
	.essentials-header {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}
	.ess-item {
		flex: 0 0 calc(75% - 2px);
	}
}
