/* Glass UI styles - scoped for product page */
/* Keep strict geometry (no rounded corners) removed where needed for glass aesthetic */
* {
	box-sizing: border-box;
}

.glass-svg-filters {
	position: absolute;
	width: 0;
	height: 0;
	pointer-events: none
}

.glass-lens {
	position: fixed;
	transform: translate(-50%, -50%);
	pointer-events: none;
	z-index: 1000;
	border-radius: 2px;
}

.glass-controls {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.02);
	backdrop-filter: blur(20px);
	border: 1px solid var(--border);
	color: var(--text);
	font-size: 11px;
	width: 260px;
	z-index: 2000;
	transition: all 0.3s ease;
	font-family: 'Inter', Arial, sans-serif
}

.glass-controls.collapsed {
	width: auto
}

.glass-controls.collapsed .controls-content {
	display: none
}

.glass-controls-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 12px;
	cursor: pointer;
	user-select: none
}

.glass-controls-header:hover {
	background: rgba(255, 255, 255, 0.05)
}

.glass-controls h3 {
	margin: 0;
	font-size: 11px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	opacity: 0.8
}

.glass-controls-toggle {
	font-size: 16px;
	line-height: 1;
	opacity: 0.6;
	transition: transform 0.3s ease
}

.glass-controls.collapsed .glass-controls-toggle {
	transform: rotate(180deg)
}

.controls-content {
	padding: 0 12px 12px 12px
}

.glass-controls .control-group {
	margin-bottom: 12px
}

.glass-controls .control-group label {
	display: flex;
	justify-content: space-between;
	font-size: 10px;
	margin-bottom: 6px;
	opacity: 0.7
}

.glass-controls input[type=range] {
	width: 100%;
	height: 2px;
	-webkit-appearance: none;
	appearance: none;
	background: rgba(255, 255, 255, 0.1);
	outline: none;
	border-radius: 0
}

.glass-controls input[type=range]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 12px;
	height: 12px;
	background: var(--text);
	cursor: pointer;
	border-radius: 0
}

.glass-controls input[type=range]::-moz-range-thumb {
	width: 12px;
	height: 12px;
	background: var(--text);
	cursor: pointer;
	border: none;
	border-radius: 0
}

.glass-value {
	opacity: 0.9;
	font-weight: 500;
	font-size: 10px
}

/* Make sure the image container doesn't overflow the lens */
.image-container {
	position: relative
}

/* Apply the physics-based svg filter to glass cards so the card refracts the backdrop */
/* Note: SVG filter is applied via JS when ready. CSS blur is the base/fallback. */
.glass-card {
	background: rgba(255, 255, 255, 0.05);
	/* Enhanced visibility */
}

@media (max-width:768px) {
	.glass-controls {
		right: 12px;
		left: auto;
		width: 220px
	}
}