/**
 * Golf-themed cursor, motion, and hero slider polish.
 */

/* Smooth scroll */
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

/* Scroll progress fairway stripe */
.lux-scroll-fairway {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	z-index: 9999;
	transform-origin: left center;
	transform: scaleX(0);
	background: linear-gradient(90deg, var(--lux-green), var(--lux-green-bright), var(--lux-gold));
	pointer-events: none;
}

/* Golf ball cursor */
.lux-has-golf-cursor,
.lux-has-golf-cursor body {
	cursor: none !important;
}

.lux-has-golf-cursor a,
.lux-has-golf-cursor button,
.lux-has-golf-cursor input,
.lux-has-golf-cursor select,
.lux-has-golf-cursor textarea,
.lux-has-golf-cursor label {
	cursor: none !important;
}

.lux-has-golf-cursor .lux-ambient-panel,
.lux-has-golf-cursor .lux-ambient-panel * {
	cursor: auto !important;
}

.lux-golf-cursor,
.lux-golf-cursor-ring {
	position: fixed;
	top: 0;
	left: 0;
	pointer-events: none;
	z-index: 99999;
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.08s ease-out;
	will-change: transform;
}

.lux-golf-cursor.is-visible,
.lux-golf-cursor-ring.is-visible {
	opacity: 1;
}

.lux-golf-cursor {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #fff 0%, #f5f5f0 35%, #e8e8e0 100%);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25), inset -2px -2px 4px rgba(0, 0, 0, 0.08);
}

.lux-golf-cursor.is-pressed {
	transform: scale(0.85);
}

.lux-golf-cursor.is-hover {
	background: radial-gradient(circle at 35% 30%, #fff 0%, var(--lux-gold-light, #f5e6a8) 40%, var(--lux-gold) 100%);
	box-shadow: 0 0 12px rgba(201, 162, 39, 0.5);
}

.lux-golf-cursor-ring {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 2px solid rgba(26, 107, 74, 0.35);
}

.lux-golf-cursor-ring.is-hover {
	border-color: var(--lux-green);
	transform: scale(1.15);
}

.lux-golf-cursor-ring.is-pressed {
	border-color: var(--lux-gold);
}

.lux-click-ripple {
	position: fixed;
	width: 12px;
	height: 12px;
	margin: -6px 0 0 -6px;
	border-radius: 50%;
	border: 2px solid rgba(26, 107, 74, 0.45);
	pointer-events: none;
	z-index: 99998;
	animation: lux-ripple 0.65s ease-out forwards;
}

@keyframes lux-ripple {
	from {
		transform: scale(1);
		opacity: 0.8;
	}
	to {
		transform: scale(8);
		opacity: 0;
	}
}

/* Logo — override WooCommerce `.woocommerce img { max-width:100% }` on shop pages */
.lux-header .lux-header__logo-img,
.lux-mobile-nav .lux-header__logo-img,
.lux-footer .lux-footer__logo-img {
	display: block;
	height: 40px;
	width: auto;
	max-width: 200px;
	flex-shrink: 0;
}

.woocommerce .lux-header .lux-header__logo-img,
.woocommerce-page .lux-header .lux-header__logo-img,
.woocommerce .lux-mobile-nav .lux-header__logo-img,
.woocommerce-page .lux-mobile-nav .lux-header__logo-img,
.woocommerce .lux-footer .lux-footer__logo-img,
.woocommerce-page .lux-footer .lux-footer__logo-img {
	max-width: 200px;
	width: auto;
	height: 40px;
}

.lux-header__logo:hover .lux-header__logo-img {
	filter: brightness(1.05);
}

.lux-footer__logo-img {
	display: block;
	height: 44px;
	width: auto;
	max-width: 220px;
	flex-shrink: 0;
	margin-bottom: 0.85rem;
	opacity: 1;
}

.lux-footer__logo:hover .lux-footer__logo-img {
	opacity: 0.92;
}

/* Hero slider */
.lux-hero-pro__visual {
	min-height: 380px;
}

.lux-hero-slider {
	position: relative;
	border-radius: var(--lux-radius-lg);
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(201, 162, 39, 0.25);
	background: var(--lux-charcoal);
}

.lux-hero-slider::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
	pointer-events: none;
	z-index: 3;
}

.lux-hero-slider__viewport {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	min-height: 280px;
	overflow: hidden;
	background: var(--lux-charcoal);
}

.lux-hero-slider__track {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.lux-hero-slider__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0.6s;
}

.lux-hero-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
}

.lux-hero-slider__link {
	display: block;
	width: 100%;
	height: 100%;
}

.lux-hero-slider__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s ease;
}

.lux-hero-slider__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1.25rem 1.5rem;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
	color: #fff;
	z-index: 2;
}

.lux-hero-slider__kicker {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--lux-gold);
	margin-bottom: 0.25rem;
}

.lux-hero-slider__title {
	display: block;
	font-family: var(--lux-font-display);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
}

.lux-hero-slider__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	background: var(--lux-white);
	border-top: 1px solid var(--lux-gray-300);
}

.lux-hero-slider__btn {
	width: 36px;
	height: 36px;
	border: 1px solid var(--lux-gray-300);
	border-radius: 50%;
	background: var(--lux-white);
	color: var(--lux-green);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	transition: background var(--lux-transition), border-color var(--lux-transition);
}

.lux-hero-slider__btn:hover {
	background: var(--lux-green);
	border-color: var(--lux-green);
	color: #fff;
}

.lux-hero-slider__dots {
	display: flex;
	gap: 0.5rem;
}

.lux-hero-slider__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	padding: 0;
	background: var(--lux-gray-300);
	cursor: pointer;
	transition: transform 0.2s, background 0.2s;
}

.lux-hero-slider__dot.is-active {
	background: var(--lux-green);
	transform: scale(1.25);
}

.lux-hero-slider__glow {
	position: absolute;
	inset: -20%;
	background: radial-gradient(ellipse at 60% 40%, rgba(26, 107, 74, 0.2), transparent 60%);
	pointer-events: none;
	z-index: 0;
}

/* Golf motion on cards */
@media (prefers-reduced-motion: no-preference) {
	.lux-product-card,
	.lux-category-card {
		transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
	}

	.lux-product-card:hover,
	.lux-category-card:hover {
		transform: translateY(-4px) rotate(-0.3deg);
	}

	.lux-btn {
		transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	}

	.lux-btn:active {
		transform: scale(0.97);
	}
}

@media (max-width: 900px) {
	.lux-hero-pro__visual {
		min-height: 280px;
	}

	.lux-golf-cursor,
	.lux-golf-cursor-ring {
		display: none !important;
	}

	html.lux-has-golf-cursor,
	html.lux-has-golf-cursor body,
	html.lux-has-golf-cursor a,
	html.lux-has-golf-cursor button {
		cursor: auto !important;
	}
}
