/* ==========================================================================
   APP Editorial Lookbook — Stół wigilijny (Luxury Editorial / Dior Maison)
   Ładowane wyłącznie na stronach zawierających shortcode [app_lookbook_set].
   ========================================================================== */

:root {
	--app-lb-black: #121212;
	--app-lb-ivory: #F6F4F0;
	--app-lb-ceramics: #D2C8BC;
	--app-lb-moss: #505A4C;
	--app-lb-grey: #B5B5B4;
	--app-lb-white: #FFFFFF;
	--app-lb-font-serif: 'Cinzel', Georgia, serif;
	--app-lb-font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
	--app-lb-sticky-top: 0px;
}

/* --------------------------------------------------------------------------
   1. Editorial Hero
   -------------------------------------------------------------------------- */
.app-lb-hero {
	background-color: var(--app-lb-black);
	color: var(--app-lb-ivory);
}

.app-lb-hero .ux-banner,
.app-lb-hero .banner {
	min-height: 70vh;
}

.app-lb-hero-eyebrow {
	font-family: var(--app-lb-font-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--app-lb-ceramics);
	margin-bottom: 16px;
}

.app-lb-hero-title {
	font-family: var(--app-lb-font-serif);
	font-size: clamp(32px, 4.4vw, 60px);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: 0.06em;
	color: var(--app-lb-ivory);
	margin: 0 0 20px;
}

.app-lb-hero-manifesto {
	font-family: var(--app-lb-font-sans);
	font-size: clamp(15px, 1.3vw, 18px);
	font-weight: 300;
	line-height: 1.7;
	color: var(--app-lb-ivory);
	opacity: 0.92;
	max-width: 620px;
	margin: 0 auto;
}

/* --------------------------------------------------------------------------
   2. Drobna nawigacja powrotna + Statyczny pasek rozdziałów
   -------------------------------------------------------------------------- */
.app-lb-breadcrumbs-bar {
	background-color: var(--app-lb-white);
	border-bottom: 1px solid var(--app-lb-ceramics);
	padding: 12px 20px;
}

.app-lb-breadcrumbs {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	font-family: var(--app-lb-font-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #666666;
}

.app-lb-bc-link {
	color: var(--app-lb-black);
	text-decoration: none;
	transition: color 0.2s ease;
}

.app-lb-bc-link:hover,
.app-lb-bc-link:focus-visible {
	color: var(--app-lb-moss);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.app-lb-bc-sep {
	color: var(--app-lb-grey);
}

.app-lb-bc-current {
	color: var(--app-lb-moss);
}

.app-lb-chapters-section {
	position: relative;
	z-index: 2;
	background-color: var(--app-lb-ivory);
	border-top: 1px solid var(--app-lb-ceramics);
	border-bottom: 1px solid var(--app-lb-ceramics);
	padding: 0 !important;
}

.app-lb-chapters {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 26px;
	padding: 15px 20px;
	margin: 0;
	list-style: none;
}

.app-lb-chapters a {
	position: relative;
	display: inline-block;
	font-family: var(--app-lb-font-sans);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--app-lb-black);
	text-decoration: none;
	padding: 6px 2px;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.app-lb-chapters a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background-color: var(--app-lb-moss);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.25s ease;
}

.app-lb-chapters a:hover,
.app-lb-chapters a:focus-visible,
.app-lb-chapters a.is-active {
	color: var(--app-lb-moss);
}

.app-lb-chapters a.is-active {
	font-weight: 600;
}

.app-lb-chapters a:hover::after,
.app-lb-chapters a.is-active::after {
	transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   3. Sekcje Lookbookowe (układ asymetryczny 7/12 + 5/12)
   -------------------------------------------------------------------------- */
.app-lb-section {
	padding-top: 72px !important;
	padding-bottom: 72px !important;
	border-bottom: 1px solid var(--app-lb-ceramics);
	background-color: var(--app-lb-white);
	scroll-margin-top: calc(var(--app-lb-sticky-top, 0px) + 24px);
}

.app-lb-anchor {
	display: block;
	height: 0;
	scroll-margin-top: calc(var(--app-lb-sticky-top, 0px) + 28px);
}

.app-lb-section--ivory {
	background-color: var(--app-lb-ivory);
}

.app-lb-row {
	align-items: flex-start;
}

.app-lb-col-media .banner,
.app-lb-col-media .ux-banner {
	border: 1px solid var(--app-lb-ceramics);
	background-color: var(--app-lb-ivory);
}

.app-lb-col-content {
	display: flex;
	flex-direction: column;
}

.app-lb-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
	font-family: var(--app-lb-font-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--app-lb-moss);
}

.app-lb-meta-divider {
	display: inline-block;
	width: 28px;
	height: 1px;
	background-color: var(--app-lb-ceramics);
}

.app-lb-set-heading {
	font-family: var(--app-lb-font-serif);
	font-size: clamp(26px, 2.4vw, 34px);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 0.04em;
	color: var(--app-lb-black);
	margin: 0 0 16px;
}

.app-lb-set-desc {
	font-family: var(--app-lb-font-sans);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.75;
	color: #363636;
	margin: 0 0 28px;
}

/* --------------------------------------------------------------------------
   4. Lista produktów w secie [app_lookbook_set]
   -------------------------------------------------------------------------- */
.app-lb-set {
	font-family: var(--app-lb-font-sans);
	color: var(--app-lb-black);
}

.app-lb-items {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--app-lb-ceramics);
}

.app-lb-item {
	display: grid;
	grid-template-columns: 24px 64px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 14px 10px;
	border-bottom: 1px solid var(--app-lb-ceramics);
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.app-lb-item:hover,
.app-lb-item.is-highlighted {
	background-color: var(--app-lb-ivory);
}

.app-lb-section--ivory .app-lb-item:hover,
.app-lb-section--ivory .app-lb-item.is-highlighted {
	background-color: var(--app-lb-white);
}

.app-lb-item.is-highlighted {
	box-shadow: inset 3px 0 0 var(--app-lb-moss);
}

.app-lb-item.is-unavailable {
	opacity: 0.6;
}

/* Minimalistyczny checkbox */
.app-lb-item-check-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
}

.app-lb-item-check {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1px solid var(--app-lb-black);
	border-radius: 0;
	background-color: var(--app-lb-white);
	cursor: pointer;
	position: relative;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.app-lb-item-check:checked {
	background-color: var(--app-lb-moss);
	border-color: var(--app-lb-moss);
}

.app-lb-item-check:checked::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid var(--app-lb-white);
	border-width: 0 1.5px 1.5px 0;
	transform: rotate(45deg);
}

.app-lb-item-check:disabled {
	border-color: var(--app-lb-grey);
	background-color: var(--app-lb-ivory);
	cursor: not-allowed;
}

/* Miniatura 64x64 */
.app-lb-item-thumb {
	display: block;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border: 1px solid var(--app-lb-ceramics);
	background-color: var(--app-lb-ivory);
	flex-shrink: 0;
}

.app-lb-thumb-img {
	display: block;
	width: 64px !important;
	height: 64px !important;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.app-lb-item:hover .app-lb-thumb-img,
.app-lb-item.is-highlighted .app-lb-thumb-img {
	transform: scale(1.05);
}

/* Nazwa i opis */
.app-lb-item-info {
	min-width: 0;
}

.app-lb-item-title {
	display: inline-block;
	font-family: var(--app-lb-font-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--app-lb-black);
	text-decoration: none;
	transition: color 0.2s ease;
}

.app-lb-item-title:hover,
.app-lb-item.is-highlighted .app-lb-item-title {
	color: var(--app-lb-moss);
}

.app-lb-item-note {
	display: block;
	margin-top: 3px;
	font-size: 11px;
	color: var(--app-lb-moss);
}

/* Cena jednostkowa brutto */
.app-lb-item-price {
	font-family: var(--app-lb-font-sans);
	font-size: 14px;
	font-weight: 500;
	color: var(--app-lb-black);
	white-space: nowrap;
	text-align: right;
}

.app-lb-item-price del {
	color: var(--app-lb-grey);
	font-size: 12px;
	margin-right: 4px;
}

.app-lb-item-price ins {
	text-decoration: none;
}

/* Podsumowanie i CTA */
.app-lb-summary {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 4px 14px;
}

.app-lb-summary-label {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--app-lb-black);
}

.app-lb-selected-count {
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: none;
	color: #555555;
	margin-left: 4px;
}

.app-lb-total-price {
	font-family: var(--app-lb-font-serif);
	font-size: 20px;
	font-weight: 600;
	color: var(--app-lb-black);
	white-space: nowrap;
}

.app-lb-actions {
	padding-top: 4px;
}

.app-lb-add-set-btn.button {
	width: 100%;
	margin: 0;
	padding: 16px 24px;
	min-height: 52px;
	background-color: var(--app-lb-black) !important;
	border: 1px solid var(--app-lb-black) !important;
	border-radius: 0 !important;
	color: var(--app-lb-ivory) !important;
	font-family: var(--app-lb-font-sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	transition: background-color 0.25s ease, border-color 0.25s ease, opacity 0.2s ease;
}

.app-lb-add-set-btn.button:hover:not(:disabled),
.app-lb-add-set-btn.button:focus-visible:not(:disabled) {
	background-color: var(--app-lb-moss) !important;
	border-color: var(--app-lb-moss) !important;
	color: var(--app-lb-white) !important;
}

.app-lb-add-set-btn.button:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.app-lb-add-set-btn.is-loading::before {
	content: "";
	width: 14px;
	height: 14px;
	border: 1.5px solid rgba(246, 244, 240, 0.35);
	border-top-color: var(--app-lb-ivory);
	border-radius: 50%;
	animation: app-lb-spin 0.7s linear infinite;
}

.app-lb-caption {
	margin: 10px 0 0;
	font-size: 12px;
	font-weight: 300;
	line-height: 1.5;
	color: #555555;
}

/* Komunikat zwrotny AJAX */
.app-lb-feedback {
	margin-top: 14px;
	padding: 12px 14px;
	border: 1px solid var(--app-lb-ceramics);
	background-color: var(--app-lb-ivory);
	font-size: 13px;
	line-height: 1.5;
	color: var(--app-lb-black);
}

.app-lb-feedback.is-success {
	border-color: var(--app-lb-moss);
}

.app-lb-feedback.is-error {
	border-color: #8b3a3a;
	background-color: #fdf6f6;
}

.app-lb-feedback-link {
	display: inline-block;
	margin-left: 8px;
	font-weight: 600;
	color: var(--app-lb-moss);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.app-lb-feedback-warnings {
	margin: 6px 0 0;
	padding-left: 18px;
	font-size: 12px;
	color: #6b4f3b;
}

.app-lb-admin-notice {
	padding: 12px 14px;
	border: 1px dashed var(--app-lb-moss);
	background-color: var(--app-lb-ivory);
	font-size: 13px;
	color: var(--app-lb-black);
}

/* --------------------------------------------------------------------------
   5. Podświetlanie i pulsowanie hotspotów na [ux_banner]
   -------------------------------------------------------------------------- */
.app-lb-section .hotspot-wrapper,
.app-lb-section .hotspot {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.app-lb-section .hotspot-wrapper.app-lb-hotspot-active {
	z-index: 25;
}

.app-lb-section .hotspot-wrapper.app-lb-hotspot-active .hotspot,
.app-lb-section .hotspot.app-lb-hotspot-active {
	transform: scale(1.22);
	background-color: var(--app-lb-moss) !important;
	color: var(--app-lb-white) !important;
	box-shadow: 0 0 0 0 rgba(80, 90, 76, 0.55);
	animation: app-lb-hotspot-pulse 1.35s ease-out infinite;
}

@keyframes app-lb-hotspot-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(80, 90, 76, 0.6);
	}
	70% {
		box-shadow: 0 0 0 14px rgba(80, 90, 76, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(80, 90, 76, 0);
	}
}

@keyframes app-lb-spin {
	to {
		transform: rotate(360deg);
	}
}

/* --------------------------------------------------------------------------
   6. Sekcja ekspercka z artykułem
   -------------------------------------------------------------------------- */
.app-lb-expert-section {
	background-color: var(--app-lb-ivory);
	border-bottom: 1px solid var(--app-lb-ceramics);
	padding-top: 76px !important;
	padding-bottom: 76px !important;
}

.app-lb-expert-card {
	max-width: 760px;
	margin: 0 auto;
	padding: 44px 40px;
	background-color: var(--app-lb-white);
	border: 1px solid var(--app-lb-ceramics);
	text-align: center;
}

.app-lb-expert-eyebrow {
	font-family: var(--app-lb-font-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--app-lb-moss);
	margin: 0 0 12px;
}

.app-lb-expert-title {
	font-family: var(--app-lb-font-serif);
	font-size: clamp(24px, 2.5vw, 34px);
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0.04em;
	color: var(--app-lb-black);
	margin: 0 0 18px;
}

.app-lb-expert-lead {
	font-family: var(--app-lb-font-sans);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.75;
	color: #363636;
	margin: 0 0 28px;
}

.app-lb-expert-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 30px;
	border: 1px solid var(--app-lb-black);
	background-color: var(--app-lb-black);
	color: var(--app-lb-ivory) !important;
	font-family: var(--app-lb-font-sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: background-color 0.25s ease, border-color 0.25s ease;
}

.app-lb-expert-cta:hover,
.app-lb-expert-cta:focus-visible {
	background-color: var(--app-lb-moss);
	border-color: var(--app-lb-moss);
	color: var(--app-lb-white) !important;
}

/* --------------------------------------------------------------------------
   7. Responsywność Mobile-First (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.app-lb-expert-section {
		padding-top: 48px !important;
		padding-bottom: 48px !important;
	}

	.app-lb-expert-card {
		padding: 28px 20px;
	}

	.app-lb-breadcrumbs-bar {
		padding: 10px 14px;
	}

	.app-lb-hero .ux-banner,
	.app-lb-hero .banner {
		min-height: 58vh;
	}

	.app-lb-chapters {
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		gap: 18px;
		padding: 12px 16px;
		scrollbar-width: none;
	}

	.app-lb-chapters::-webkit-scrollbar {
		display: none;
	}

	.app-lb-section {
		padding-top: 44px !important;
		padding-bottom: 48px !important;
		scroll-margin-top: calc(var(--app-lb-sticky-top, 0px) + 16px);
	}

	/* Na mobile zdjęcie z hotspotami ZAWSZE nad listą (nawet w parzystych setach) */
	.app-lb-row--reverse {
		display: flex !important;
		flex-direction: column-reverse !important;
	}

	.app-lb-col-media {
		margin-bottom: 24px;
	}

	.app-lb-item {
		grid-template-columns: 22px 54px minmax(0, 1fr);
		gap: 10px 12px;
		padding: 12px 6px;
	}

	.app-lb-item-thumb,
	.app-lb-thumb-img {
		width: 54px !important;
		height: 54px !important;
	}

	.app-lb-item-price {
		grid-column: 3;
		text-align: left;
		font-size: 13px;
	}
}
