/* ============================================================
   Stofstalen Archief — archief + lightbox
   ============================================================ */

/* ---- Pagina achtergrond + padding ---- */
.stofstalen-archief-page,
.stofstalen-archief-page body,
.stofstalen-archief-page .main,
.stofstalen-archief-page .all-products {
	background-color: #fcf7f4;
}

.stofstalen-archief-page .all-products__content {
	width: 80%;
	max-width: 80%;
	margin-left: auto;
	margin-right: auto;
	padding-left: unset;
	padding-right: unset;
}

.stofstalen-archief-page #stofstalen-grid {
	padding: unset;
}

/* ---- Groepfilter transitions ---- */
.stofstalen-archief-page .child-categories li > a {
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* ---- Groepfilter active state ---- */
.stofstalen-archief-page .child-categories li.active > a,
.stofstalen-archief-page .child-categories li.active > a:hover {
	background-color: #a18168 !important;
	border-color: #a18168 !important;
	color: #ffffff !important;
}

/* ---- Child-categories scroll gradient kleur aanpassen aan achtergrond ---- */
.stofstalen-archief-page .child-categories-wrap::before,
.stofstalen-archief-page .child-categories-wrap::after {
	background: linear-gradient(to right, #fcf7f4, transparent);
}
.stofstalen-archief-page .child-categories-wrap::after {
	background: linear-gradient(to left, #fcf7f4, transparent);
}

/* ---- Grid fade-in bij laden ---- */
@keyframes stofstalen-fade-in {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

#stofstalen-grid li {
	animation: stofstalen-fade-in 0.35s ease both;
}

#stofstalen-grid li:nth-child(1)   { animation-delay: 0.00s; }
#stofstalen-grid li:nth-child(2)   { animation-delay: 0.03s; }
#stofstalen-grid li:nth-child(3)   { animation-delay: 0.06s; }
#stofstalen-grid li:nth-child(4)   { animation-delay: 0.09s; }
#stofstalen-grid li:nth-child(5)   { animation-delay: 0.12s; }
#stofstalen-grid li:nth-child(6)   { animation-delay: 0.15s; }
#stofstalen-grid li:nth-child(7)   { animation-delay: 0.18s; }
#stofstalen-grid li:nth-child(8)   { animation-delay: 0.21s; }
#stofstalen-grid li:nth-child(n+9) { animation-delay: 0.24s; }

/* ---- Product kaartjes ---- */
.stofstalen-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	text-align: left;
}

.stofstalen-card__img-wrap {
	position: relative;
	overflow: hidden;
	border-radius: 6px;
	background: #f0ece6;
	aspect-ratio: 1;
	transition: transform 0.2s;
}

.stofstalen-card:hover .stofstalen-card__img-wrap {
	transform: scale(1.02);
}

.stofstalen-card__img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.stofstalen-card__no-img {
	width: 100%;
	height: 100%;
	background: #e8e0d6;
}

.stofstalen-card__info {
	padding: 10px 4px 4px;
}

.stofstalen-card__info .woocommerce-loop-product__title {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #2b2b2b !important;
	margin: 0 0 2px !important;
	padding: 0 !important;
	line-height: 1.3 !important;
}

.stofstalen-card__group {
	font-size: 11px;
	color: #999;
	display: block;
}

/* ---- Lightbox ---- */
.stofstalen-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0,0,0,0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s;
}

.stofstalen-lightbox.is-open {
	opacity: 1;
	pointer-events: all;
}

.stofstalen-lightbox__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
}

.stofstalen-lightbox__inner img {
	max-width: 88vw;
	max-height: 82vh;
	object-fit: contain;
	border-radius: 4px;
	display: block;
}

.stofstalen-lightbox__meta {
	margin-top: 16px;
	display: flex;
	gap: 10px;
	align-items: center;
}

.stofstalen-lightbox__number {
	font-size: 18px;
	font-weight: 700;
	color: #fff;
}

.stofstalen-lightbox__group {
	font-size: 12px;
	color: rgba(255,255,255,0.5);
	background: rgba(255,255,255,0.1);
	padding: 3px 10px;
	border-radius: 12px;
}

.stofstalen-lightbox__close,
.stofstalen-lightbox__prev,
.stofstalen-lightbox__next {
	position: fixed;
	background: rgba(255,255,255,0.1);
	border: none;
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s;
	line-height: 1;
}

.stofstalen-lightbox__close  { top: 20px; right: 20px; width: 40px; height: 40px; font-size: 18px; }
.stofstalen-lightbox__prev   { top: 50%; transform: translateY(-50%); left: 16px;  width: 48px; height: 48px; font-size: 32px; }
.stofstalen-lightbox__next   { top: 50%; transform: translateY(-50%); right: 16px; width: 48px; height: 48px; font-size: 32px; }

.stofstalen-lightbox__close:hover,
.stofstalen-lightbox__prev:hover,
.stofstalen-lightbox__next:hover { background: rgba(255,255,255,0.22); }
