/*
 * Shop the Look — vizuelni jezik po uzoru na Massimo Dutti:
 * ecru pozadina, crno-bijeli kontrast, tanke linije bez sjenki,
 * elegantan serif naslov + tracked uppercase sans za labele,
 * puno zraka, kvadratni uglovi, suptilne hover invert tranzicije.
 */

.stl-section {
	--stl-bg: #FAF8F3;
	--stl-ink: #1A1A18;
	--stl-line: #DEDACC;
	--stl-accent: #8A7458;
	--stl-muted: #756F63;
	--stl-white: #FFFFFF;

	background: var(--stl-bg);
	color: var(--stl-ink);
	padding: 72px 0;
	margin-top: 48px;
	border-top: 1px solid var(--stl-line);
	font-family: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
}

.stl-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 32px;
}

.stl-header {
	text-align: center;
	margin-bottom: 48px;
}

.stl-eyebrow {
	display: inline-block;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--stl-accent);
	font-weight: 600;
	margin-bottom: 12px;
}

.stl-heading {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-weight: 600;
	font-size: 38px;
	line-height: 1.15;
	margin: 0;
	letter-spacing: 0.01em;
}

.stl-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 56px;
	align-items: start;
}

/* ---------- Hero image + hotspots ---------- */

.stl-hero {
	position: relative;
	overflow: hidden;
	background: #EFEBE1;
}

.stl-hero img {
	display: block;
	width: 100%;
	height: auto;
}

.stl-dot {
	position: absolute;
	width: 30px;
	height: 30px;
	margin: -15px 0 0 -15px;
	border-radius: 50%;
	background: var(--stl-white);
	border: 1px solid var(--stl-ink);
	color: var(--stl-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: transform 0.2s ease, background 0.2s ease;
	box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.stl-dot::before {
	content: '';
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.7);
	animation: stl-pulse 2.4s ease-out infinite;
}

@keyframes stl-pulse {
	0%   { transform: scale(0.7); opacity: 0.9; }
	70%  { transform: scale(1.25); opacity: 0; }
	100% { opacity: 0; }
}

.stl-dot-plus {
	font-size: 15px;
	line-height: 1;
	font-weight: 400;
	transform: translateY(-1px);
}

.stl-dot:hover,
.stl-dot.is-active {
	background: var(--stl-ink);
	color: var(--stl-white);
	transform: scale(1.08);
}

.stl-popover {
	position: absolute;
	transform: translate(-50%, calc(-100% - 18px));
	width: 220px;
	background: var(--stl-white);
	border: 1px solid var(--stl-line);
	z-index: 5;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.stl-popover.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(-50%, calc(-100% - 10px));
}

/* ---------- Product rail (right column, list on hero) ---------- */

.stl-rail {
	display: flex;
	flex-direction: column;
}

.stl-rail-list {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	border-top: 1px solid var(--stl-line);
}

.stl-rail-list > li {
	border-bottom: 1px solid var(--stl-line);
}

.stl-rail-list .stl-card {
	display: flex;
	flex-direction: row;
	gap: 18px;
	padding: 18px 0;
}

.stl-rail-list .stl-card-image img {
	width: 84px;
	height: 106px;
	object-fit: cover;
	display: block;
}

/* ---------- Shared product card ---------- */

.stl-card {
	display: flex;
	flex-direction: column;
}

.stl-card-image {
	display: block;
	overflow: hidden;
}

.stl-card--compact img {
	width: 100%;
	aspect-ratio: 3/4;
	object-fit: cover;
}

.stl-card-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	flex: 1;
}

.stl-card--compact .stl-card-body {
	padding-top: 10px;
}

.stl-card-title {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--stl-ink);
	text-decoration: none;
	font-weight: 500;
	line-height: 1.4;
}

.stl-card-title:hover {
	color: var(--stl-accent);
}

.stl-card-price {
	font-size: 13px;
	color: var(--stl-muted);
}

.stl-card-price ins {
	text-decoration: none;
	color: var(--stl-ink);
}

.stl-card-price del {
	color: var(--stl-muted);
	opacity: 0.7;
	margin-right: 6px;
}

.stl-quick-add {
	margin-top: 6px;
	align-self: flex-start;
	background: transparent;
	border: 1px solid var(--stl-ink);
	color: var(--stl-ink);
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 9px 16px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
	font-family: inherit;
}

.stl-quick-add:hover {
	background: var(--stl-ink);
	color: var(--stl-white);
}

.stl-quick-add.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.stl-quick-add.is-added {
	background: var(--stl-ink);
	color: var(--stl-white);
	border-color: var(--stl-ink);
}

/* ---------- Add-all button ---------- */

.stl-add-all {
	width: 100%;
	background: var(--stl-ink);
	color: var(--stl-white);
	border: 1px solid var(--stl-ink);
	font-size: 12px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 17px 20px;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s ease, color 0.2s ease;
}

.stl-add-all:hover {
	background: transparent;
	color: var(--stl-ink);
}

.stl-add-all.is-loading {
	opacity: 0.6;
	pointer-events: none;
}

.stl-add-all.is-added {
	background: var(--stl-accent);
	border-color: var(--stl-accent);
	color: var(--stl-white);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.stl-section {
		padding: 48px 0;
	}
	.stl-inner {
		padding: 0 20px;
	}
	.stl-heading {
		font-size: 30px;
	}
	.stl-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.stl-dot {
		width: 26px;
		height: 26px;
		margin: -13px 0 0 -13px;
	}
	.stl-rail-list {
		flex-direction: row;
		overflow-x: auto;
		border-top: none;
		gap: 16px;
		padding-bottom: 8px;
		-webkit-overflow-scrolling: touch;
	}
	.stl-rail-list > li {
		border-bottom: none;
		flex: 0 0 150px;
	}
	.stl-rail-list .stl-card {
		flex-direction: column;
		padding: 0;
	}
	.stl-rail-list .stl-card-image img {
		width: 100%;
		height: 190px;
	}
	.stl-popover {
		width: 180px;
	}
}
