/* ==========================================================================
   Ecolux — Shop grid ("Shop the panels, straight from the room")
   Child-theme override styles. Scoped under .ecolux-shop.
   ========================================================================== */

/* The archsan theme paints a decorative vertical-line overlay
   (.content-lines*) absolutely positioned ON TOP of the content, and it
   captures pointer events — which blocks clicks on the shop's filter pills
   and product cards. It's purely decorative, so let clicks pass through.
   This stylesheet only loads on the shop/archive, so the override is scoped. */
/*.content-lines-wrapper,*/
/*.content-lines-inner,*/
/*.content-lines {*/
/*	pointer-events: none !important;*/
/*}*/

/* Note: the header navigation dropdown fixes live in menu.css, which is
   loaded site-wide (not just on the shop) so every page's menu behaves the
   same. */

.ecolux-shop {
	--ecolux-ink: #2b2b2b;
	--ecolux-muted: #6f7378;
	--ecolux-line: #e4e0d9;
	--ecolux-gold: #b8985a;
	--ecolux-sand: #9a8b76;
	--ecolux-radius: 6px;

	padding: 64px 20px 96px;
	background: #fff;
	color: var(--ecolux-ink);
	-webkit-font-smoothing: antialiased;
}

.ecolux-shop *,
.ecolux-shop *::before,
.ecolux-shop *::after {
	box-sizing: border-box;
}

.ecolux-shop__inner {
	max-width: 1200px;
	margin: 0 auto;
}

/* ---- Header ------------------------------------------------------------- */
.ecolux-shop__head {
	max-width: 640px;
	margin-bottom: 40px;
}

.ecolux-shop__eyebrow {
	margin: 0 0 14px;
	font-family: 'Barlow', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--ecolux-sand);
}

.ecolux-shop__title {
	margin: 0 0 18px;
	font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	font-weight: 500;
	font-size: clamp(2.4rem, 5vw, 3.75rem);
	line-height: 1.06;
	letter-spacing: 0.01em;
	color: var(--ecolux-ink);
}

.ecolux-shop__lead {
	margin: 0;
	font-family: 'Barlow', sans-serif;
	font-size: 1.02rem;
	line-height: 1.65;
	color: var(--ecolux-muted);
}

/* ---- Filter pills ------------------------------------------------------- */
.ecolux-shop__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 40px;
}

.ecolux-pill {
	appearance: none;
	cursor: pointer;
	border: 1px solid var(--ecolux-line);
	background: #fff;
	color: var(--ecolux-ink);
	font-family: 'Barlow', sans-serif;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1;
	padding: 11px 20px;
	border-radius: 999px;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ecolux-pill:hover {
	border-color: var(--ecolux-ink);
}

.ecolux-pill.is-active {
	background: var(--ecolux-ink);
	border-color: var(--ecolux-ink);
	color: #fff;
}

.ecolux-pill:focus-visible {
	outline: 2px solid var(--ecolux-gold);
	outline-offset: 2px;
}

/* ---- Grid --------------------------------------------------------------- */
.ecolux-shop__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.ecolux-shop__empty {
	grid-column: 1 / -1;
	font-family: 'Barlow', sans-serif;
	color: var(--ecolux-muted);
}

/* Cards being filtered out — class + !important so no theme/Elementor
   global rule (e.g. a { display: … }) can keep them visible. */
.ecolux-shop .ecolux-card.ecolux-hidden {
	display: none !important;
}

/* Subtle fade-in as cards re-appear when switching filters */
.ecolux-shop__grid .ecolux-card {
	animation: ecolux-card-in 0.35s ease both;
}

@keyframes ecolux-card-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}

/* ---- Card --------------------------------------------------------------- */
.ecolux-card {
	position: relative;
	display: block;
	border-radius: var(--ecolux-radius);
	color: #fff;
	background: #ece9e3;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	aspect-ratio: 4 / 3;
}

.ecolux-card:hover {
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.ecolux-card__media {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
	border-radius: var(--ecolux-radius);
}

.ecolux-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.ecolux-card:hover .ecolux-card__img {
	transform: scale(1.07);
}

/* Gradient so text stays legible over any image */
.ecolux-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.22) 34%, rgba(0, 0, 0, 0) 62%);
	pointer-events: none;
}

.ecolux-card__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	display: block;
	padding: 22px 22px 20px;
	color: #fff;
	text-decoration: none;
	border-radius: 0 0 var(--ecolux-radius) var(--ecolux-radius);
}

.ecolux-card__cat {
	display: block;
	margin-bottom: 7px;
	font-family: 'Barlow', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.72);
}

.ecolux-card__title {
	display: block;
	margin-bottom: 8px;
	font-family: 'Barlow', sans-serif;
	font-size: 1.12rem;
	font-weight: 600;
	line-height: 1.25;
	color: #fff;
}

.ecolux-card__price {
	display: block;
	font-family: 'Barlow', sans-serif;
	font-size: 0.98rem;
	font-weight: 500;
	color: #fff;
}

.ecolux-card__price .woocommerce-Price-amount {
	color: #fff;
}

/* Sale: struck-through original in muted grey, sale price in gold */
.ecolux-card__price del {
	opacity: 1;
	margin-right: 8px;
	text-decoration: line-through;
	color: rgba(255, 255, 255, 0.55);
	font-weight: 400;
}

.ecolux-card__price del .woocommerce-Price-amount {
	color: rgba(255, 255, 255, 0.55);
}

.ecolux-card__price ins {
	text-decoration: none;
	color: var(--ecolux-gold);
}

.ecolux-card__price ins .woocommerce-Price-amount {
	color: var(--ecolux-gold);
}

/* ---- Hotspot ------------------------------------------------------------ */
.ecolux-shop .ecolux-spot {
	position: absolute;
	left: 50%;
	top: 46%;
	z-index: 4;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

.ecolux-shop .ecolux-dot {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: rgba(184, 152, 90, 0.4);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9) inset;
}

.ecolux-shop .ecolux-dot::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 12px;
	height: 12px;
	margin: -6px 0 0 -6px;
	border-radius: 50%;
	background: #fff;
}

.ecolux-shop .ecolux-dot::before {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.65);
	animation: ecolux-spot-pulse 2s ease-out infinite;
}

@keyframes ecolux-spot-pulse {
	0%   { transform: scale(0.6); opacity: 1; }
	100% { transform: scale(1.6); opacity: 0; }
}

.ecolux-shop .ecolux-spot-card {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 14px);
	transform: translateX(-50%) translateY(6px);
	min-width: 210px;
	background: #fff;
	color: #141414;
	text-align: left;
	padding: 0.9rem 1rem;
	border-radius: 6px;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
	z-index: 6;
}

.ecolux-shop .ecolux-spot-card::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -7px;
	border: 7px solid transparent;
	border-top-color: #fff;
}

.ecolux-shop .ecolux-spot:hover .ecolux-spot-card,
.ecolux-shop .ecolux-spot:focus .ecolux-spot-card,
.ecolux-shop .ecolux-spot:focus-within .ecolux-spot-card {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

.ecolux-shop .ecolux-spot-name {
	display: block;
	font-family: 'Barlow', sans-serif;
	font-weight: 600;
	font-size: 0.95rem;
	margin-bottom: 0.25rem;
	color: #141414;
}

.ecolux-shop .ecolux-spot-price {
	display: block;
	font-family: 'Barlow', sans-serif;
	font-size: 0.9rem;
	color: #8a6d3b;
	margin-bottom: 0.5rem;
}

.ecolux-shop .ecolux-spot-price del {
	color: #999;
	margin-right: 0.35rem;
	font-weight: 400;
}

.ecolux-shop .ecolux-spot-price del .woocommerce-Price-amount {
	color: #999;
}

.ecolux-shop .ecolux-spot-price ins {
	text-decoration: none;
	color: #8a6d3b;
}

.ecolux-shop .ecolux-spot-price ins .woocommerce-Price-amount {
	color: #8a6d3b;
}

.ecolux-shop .ecolux-spot-link {
	display: inline-block;
	font-family: 'Barlow', sans-serif;
	font-size: 0.85rem;
	color: #141414;
	text-decoration: none;
	border-bottom: 1px solid #c9a86a;
	padding-bottom: 2px;
	transition: color 0.25s ease;
}

.ecolux-shop .ecolux-spot-link:hover {
	color: #8a6d3b;
}

/* Reduced motion: stop the pulsing ring */
@media (prefers-reduced-motion: reduce) {
	.ecolux-shop .ecolux-dot::before {
		animation: none;
	}
}

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
	.ecolux-shop__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.ecolux-shop {
		padding: 44px 16px 72px;
	}

	.ecolux-shop__grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}