/**
 * Modern graphical layer — refined luxury atmosphere
 */

/* ========== TYPOGRAPHY DEPTH ========== */
.orang-section-title {
	font-weight: 700;
	letter-spacing: 0.02em;
}

.orang-section-subtitle {
	letter-spacing: 0.01em;
}

.orang-section--dark .orang-section-subtitle {
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.orang-section--light .orang-section-subtitle {
	text-shadow: none;
}

/* ========== SCROLL REVEAL ========== */
.orang-reveal {
	opacity: 0;
	transform: translateY(28px);
	transition:
		opacity 0.7s var(--ease-premium),
		transform 0.7s var(--ease-premium);
}

.orang-reveal.orang-reveal--left {
	transform: translateX(32px);
}

.orang-reveal.orang-reveal--right {
	transform: translateX(-32px);
}

.orang-reveal.is-visible {
	opacity: 1;
	transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
	.orang-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ========== SECTION DIVIDERS — intentional dark/light transitions ========== */
.front-page .orang-section {
	position: relative;
}

.single-product .orang-section {
	position: relative;
}

/* Curve extends from the OUTGOING section so it inherits the correct background */
.front-page .orang-section--light:has(+ .orang-section--dark)::after,
.front-page .orang-section--dark:has(+ .orang-section--light)::after,
.single-product .orang-section--light:has(+ .orang-section--dark)::after,
.single-product .orang-section--dark:has(+ .orang-section--light)::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 48px;
	transform: translateY(50%);
	clip-path: ellipse(78% 100% at 50% 0%);
	z-index: 2;
	pointer-events: none;
}

.front-page .orang-section--light:has(+ .orang-section--dark)::after {
	background: var(--section-bg, var(--light-bg-primary));
}

.front-page .orang-section--dark:has(+ .orang-section--light)::after {
	background: var(--dark-section-bg, var(--dark-bg-primary));
}

/* ========== HERO — showroom dark luxury ========== */
.hero-graphical {
	position: relative;
	overflow: hidden;
	background: var(--gradient-hero-mesh) !important;
	padding-top: var(--space-8);
	padding-bottom: var(--space-8);
}

.hero-atmosphere::after {
	content: '';
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
	opacity: 0.2;
	pointer-events: none;
	z-index: 0;
}

.hero-container {
	position: relative;
	z-index: 2;
}

.hero-atmosphere {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 1;
}

.hero-shape {
	position: absolute;
	border-radius: 50%;
	filter: blur(72px);
	opacity: 0.35;
	animation: hero-float 18s var(--ease-premium) infinite alternate;
}

.hero-shape--1 {
	width: 280px;
	height: 280px;
	top: -6%;
	right: 8%;
	background: radial-gradient(circle, rgba(237, 174, 25, 0.1), transparent 70%);
}

.hero-shape--2 {
	width: 220px;
	height: 220px;
	bottom: 12%;
	left: 10%;
	background: radial-gradient(circle, rgba(242, 188, 40, 0.07), transparent 70%);
	animation-delay: -5s;
	animation-duration: 22s;
}

.hero-shape--3 {
	width: 140px;
	height: 140px;
	top: 42%;
	left: 48%;
	background: radial-gradient(circle, rgba(212, 160, 23, 0.06), transparent 70%);
	animation-delay: -9s;
	animation-duration: 16s;
}

@keyframes hero-float {
	0% { transform: translate(0, 0) scale(1); }
	100% { transform: translate(16px, -12px) scale(1.04); }
}

.hero-gallery-main {
	border-radius: var(--radius-card);
	box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
}

.hero-gallery-main::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		145deg,
		rgba(17, 17, 17, 0.1) 0%,
		rgba(237, 174, 25, 0.04) 50%,
		rgba(17, 17, 17, 0.15) 100%
	);
	pointer-events: none;
	z-index: 2;
}

.hero-gallery-main__img {
	transition: transform 0.6s var(--ease-premium);
}

.hero-gallery:hover .hero-gallery-main__img {
	transform: scale(1.02);
}

.hero-graphical .hero-product-title a {
	color: var(--text-light-primary);
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
	letter-spacing: 0.02em;
}

.hero-graphical .hero-product-subtitle {
	color: var(--accent-primary);
	font-weight: 500;
}

/* ========== BUTTONS — refined, not flashy ========== */
.btn-premium-primary,
.orang-btn--primary,
.single_add_to_cart_button,
.woocommerce button.button.alt,
.add_to_cart_button {
	border-radius: 12px !important;
	padding: 14px 32px !important;
	font-weight: 600 !important;
}

.btn-premium-primary:hover,
.orang-btn--primary:hover,
.single_add_to_cart_button:hover,
.woocommerce button.button.alt:hover,
.add_to_cart_button:hover {
	transform: translateY(-2px) !important;
}

/* ========== PRODUCT CARDS — tactile depth on light zones ========== */
.orang-section--light .orang-product-card {
	position: relative;
}

.orang-section--light .orang-product-card__link {
	background: var(--card-cream);
	border-radius: var(--radius-card);
	overflow: hidden;
	position: relative;
	border: 1px solid var(--light-border);
	box-shadow: var(--shadow-md);
	transition: all 0.4s var(--ease-premium);
	padding: var(--space-4);
}

.orang-section--light .orang-product-card__link::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: var(--radius-card);
	background: linear-gradient(145deg, rgba(237, 174, 25, 0.05), rgba(212, 160, 23, 0.02));
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
	z-index: 1;
}

.orang-section--light .orang-product-card__link:hover::before {
	opacity: 1;
}

.orang-section--light .orang-product-card:not(.is-tilting):hover,
.orang-section--light .orang-product-card:not(.is-tilting) .orang-product-card__link:hover,
.orang-section--light .orang-product-card.is-tilting:hover,
.orang-section--light .orang-product-card.is-tilting .orang-product-card__link:hover {
	box-shadow: var(--shadow-lg);
	border-color: var(--accent-border);
}

.orang-section--light .orang-product-card:not(.is-tilting):hover,
.orang-section--light .orang-product-card:not(.is-tilting) .orang-product-card__link:hover {
	transform: translateY(-6px);
}

.orang-section--light .orang-product-card__media {
	border-radius: 16px;
	overflow: hidden;
	position: relative;
	background: var(--light-bg-elevated);
}

.orang-section--light .orang-product-card__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(42, 38, 34, 0.05) 100%);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.orang-section--light .orang-product-card__link:hover .orang-product-card__media::after {
	opacity: 1;
}

.orang-section--light .orang-product-card__link:hover .orang-product-card__img {
	transform: scale(1.05);
}

.orang-section--light .orang-product-card__body {
	position: relative;
	z-index: 2;
}

.homepage-best-sellers .best-seller-item .orang-product-card__link {
	background: var(--card-cream);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-md);
}

/* ========== CATEGORY CARDS — luxury hover ========== */
.homepage-categories-section .category-card {
	border-radius: var(--radius-card);
	overflow: hidden;
	transition: all 0.4s var(--ease-premium);
}

.homepage-categories-section .category-image-wrapper::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(237, 174, 25, 0.1), rgba(212, 160, 23, 0.06));
	opacity: 0;
	transition: opacity 0.4s ease;
}

.homepage-categories-section .category-card:hover .category-image-wrapper::after {
	opacity: 1;
}

.homepage-categories-section .category-card:hover {
	transform: translateY(-6px);
}

.homepage-categories-section .category-card:hover img {
	transform: scale(1.06);
}

.homepage-categories-section .category-image-wrapper img {
	transition: transform 0.5s var(--ease-premium);
}

/* ========== TESTIMONIALS — elegant cards ========== */
.homepage-reviews .home-review-card {
	position: relative;
	border-radius: 18px;
	box-shadow: var(--shadow-md);
	transition: all 0.35s var(--ease-premium);
}

.homepage-reviews .home-review-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
}

.homepage-reviews .home-review-card__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--accent-primary);
	color: var(--accent-button-text);
	font-weight: 700;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(237, 174, 25, 0.22);
	border: 2px solid rgba(250, 246, 241, 0.9);
}

/* ========== FEATURE / BLOG CARDS ========== */
.homepage-why-choose .why-choose-card,
.homepage-blog .home-blog-card {
	border-radius: var(--radius-card);
	transition: all 0.4s var(--ease-premium);
}

.homepage-featured-collection .featured-collection-spotlight__link {
	border-radius: var(--radius-card);
	box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
	border: 1px solid var(--dark-border);
	transition: transform 0.4s var(--ease-premium), box-shadow 0.4s ease;
}

.homepage-featured-collection .featured-collection-spotlight__link:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 52px rgba(0, 0, 0, 0.38);
}

/* ========== GALLERY — dark showroom ========== */
.homepage-gallery .home-gallery-grid {
	gap: var(--space-3);
}

.homepage-gallery .home-gallery-item {
	border-radius: var(--radius-card);
	overflow: hidden;
	border: 1px solid var(--dark-border);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
	transition: all 0.4s var(--ease-premium);
}

.homepage-gallery .home-gallery-item:hover {
	transform: scale(1.015);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
	border-color: var(--accent-border);
}

.homepage-gallery .home-gallery-item img {
	transition: transform 0.5s var(--ease-premium);
}

.homepage-gallery .home-gallery-item:hover img {
	transform: scale(1.05);
}

/* ========== HEADER — dark glass ========== */
.orang-header {
	background: rgba(17, 17, 17, 0.88) !important;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

/* ========== SECTION HEADER ACCENT ========== */
.orang-section-header {
	position: relative;
}

.orang-section-header::after {
	content: '';
	display: block;
	width: 48px;
	height: 2px;
	margin: var(--space-4) auto 0;
	border-radius: 2px;
	background: var(--accent-primary);
	opacity: 0.95;
}

.orang-section--dark .orang-section-header::after {
	background: var(--accent-primary);
}

/* ========== CARD TILT (JS-enhanced) ========== */
.orang-product-card.is-tilting,
.orang-product-card.is-tilting.orang-product-card__link,
.orang-product-card.is-tilting .orang-product-card__link {
	transition: transform 0.15s ease-out, box-shadow 0.4s var(--ease-premium);
}

@media (max-width: 768px) {
	.hero-graphical {
		padding-top: var(--space-6);
		padding-bottom: var(--space-6);
	}

	.hero-shape {
		opacity: 0.22;
	}

	.front-page .orang-section--light:has(+ .orang-section--dark)::after,
	.front-page .orang-section--dark:has(+ .orang-section--light)::after,
	.single-product .orang-section--light:has(+ .orang-section--dark)::after,
	.single-product .orang-section--dark:has(+ .orang-section--light)::after {
		height: 28px;
		transform: translateY(50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-shape {
		animation: none;
	}

	.hero-gallery-main__img,
	.orang-product-card__img,
	.category-image-wrapper img {
		transition: none !important;
	}
}
