/**
 * Lista čekanja – frontend popup
 */

:root {
	--lc-primary: #3b4528;
	--lc-secondary: #c37136;
	--lc-neutral: #fffaf4;
	--lc-dark: #434343;
	--lc-gray: #71737e;
	--lc-white: #ffffff;
	--lc-radius: 16px;
	--lc-radius-sm: 10px;
	--lc-shadow: 0 24px 64px rgba(59, 69, 40, 0.18);
	--lc-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Learn more link on card */
.lc-learn-more {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: 100%;
	margin-top: 14px;
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--lc-dark);
	cursor: pointer;
	text-align: left;
}

a.lc-learn-more {
	text-decoration: none;
	color: inherit;
}

.lc-learn-more:hover,
.lc-learn-more:focus-visible {
	outline: none;
}

.lc-online-available {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	width: 100%;
	margin-top: 10px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--lc-dark);
}

.lc-online-available__icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.lc-online-available__icon {
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.lc-card-extras {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
}

.lc-learn-more__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.lc-card-popup-trigger {
	cursor: pointer;
}

.shop-cosmetics-card__btn-icon--waitlist,
.lc-product-cta__icon.shop-cosmetics-card__btn-icon--waitlist {
	filter: brightness(0) invert(1);
}

.lc-modal--product .lc-modal__product-btn .shop-cosmetics-card__btn-icon,
.lc-modal--product .lc-modal__product-btn .lc-product-cta__icon:not(.shop-cosmetics-card__btn-icon--waitlist) {
	filter: brightness(0) invert(1);
}

/* Overlay */
@keyframes lc-overlay-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes lc-overlay-out {
	from { opacity: 1; }
	to { opacity: 0; }
}

@keyframes lc-modal-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes lc-modal-out {
	from {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
	to {
		opacity: 0;
		transform: translateY(12px) scale(0.97);
	}
}

.lc-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.lc-overlay[aria-hidden="false"] {
	display: flex;
	animation: lc-overlay-in 0.38s var(--lc-ease) forwards;
}

.lc-overlay.is-closing {
	animation: lc-overlay-out 0.28s ease-in forwards;
}

.lc-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(26, 28, 22, 0.55);
}

.lc-modal {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 920px;
	max-height: calc(100vh - 40px);
	overflow: auto;
	background: var(--lc-white);
	border-radius: var(--lc-radius);
	box-shadow: var(--lc-shadow);
	transform-origin: center center;
}

.lc-overlay[aria-hidden="false"] .lc-modal {
	animation: lc-modal-in 0.42s var(--lc-ease) forwards;
}

.lc-overlay.is-closing .lc-modal {
	animation: lc-modal-out 0.28s ease-in forwards;
}

.lc-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: var(--lc-dark);
	cursor: pointer;
	transition: background 0.2s, transform 0.2s var(--lc-ease);
}

.lc-modal__close:hover,
.lc-modal__close:focus-visible {
	background: #e2ddd4;
	color: #1a1a1a;
	transform: scale(1.05);
	outline: none;
}

/* Product modal */
.lc-modal--product .lc-modal__grid {
	display: grid;
	grid-template-columns: minmax(280px, 390px) 1fr;
	gap: 0;
	min-height: 420px;
}

.lc-modal__media {
	background: var(--lc-neutral);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
}

.lc-modal__image {
	display: block;
	width: 100%;
	max-width: 320px;
	height: auto;
	object-fit: contain;
	border-radius: var(--lc-radius-sm);
}

.lc-modal__body {
	padding: 40px 36px 36px;
	display: flex;
	flex-direction: column;
}

.lc-modal__title {
	margin: 0 0 12px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 600;
	color: var(--lc-primary);
}

.lc-modal__short {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--lc-gray);
}

.lc-modal__long {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--lc-dark);
	flex: 1;
}

.lc-modal__long p {
	margin: 0 0 10px;
}

/* -------------------------------------------------------------------------
   Cene — kartica, paket, popup
   ------------------------------------------------------------------------- */

.lc-prices {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 10px;
}

.lc-prices__regular {
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 16px;
	color: var(--lc-price-regular, var(--lc-gray));
	text-decoration: line-through;
}

.lc-prices__sale {
	font-family: inherit;
	font-weight: 600;
	line-height: 1.2;
	color: var(--lc-price-sale, var(--lc-dark));
	text-transform: uppercase;
}

.lc-prices--featured .lc-prices__sale,
.lc-savings--featured {
	color: var(--lc-price-sale, var(--lc-secondary));
}

.lc-prices--card {
	margin: 10px 0 0;
}

.lc-prices--card .lc-prices__sale {
	font-size: 20px;
}

.lc-prices--package {
	margin-top: 24px;
}

.lc-prices--package .lc-prices__sale {
	font-size: 24px;
	line-height: 1.1;
}

.lc-savings {
	margin: 10px 0 20px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 16px;
	color: var(--lc-dark);
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.lc-prices--card + .lc-savings {
	margin-top: 6px;
	margin-bottom: 0;
	width: 100%;
}

.lc-prices--modal + .lc-savings {
	margin: -16px 0 24px;
	text-align: left;
}

.lc-prices--modal {
	margin: 4px 0 28px;
	justify-content: flex-start;
}

.lc-prices--modal .lc-prices__regular {
	font-size: 16px;
	line-height: 1.2;
}

.lc-prices--modal .lc-prices__sale {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: var(--lc-price-sale, var(--lc-primary));
}

.lc-modal__prices:empty {
	display: none;
}

.lc-modal__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 28px;
	border: 0;
	border-radius: 999px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.2s var(--lc-ease), box-shadow 0.2s, background 0.2s;
}

.lc-modal__cta--primary {
	background: var(--lc-primary);
	color: var(--lc-white);
	box-shadow: 0 8px 24px rgba(59, 69, 40, 0.22);
}

.lc-modal__cta--primary:hover {
	background: #455025;
	transform: translateY(-1px);
}

.lc-modal__cta.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

/* Waitlist modal */
.lc-modal--waitlist {
	max-width: 480px;
}

.lc-modal__waitlist-inner {
	padding: 36px 32px 32px;
}

.lc-modal__waitlist-head {
	text-align: center;
	margin-bottom: 28px;
}

.lc-modal__waitlist-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--lc-secondary) 12%, transparent);
	color: var(--lc-secondary);
}

.lc-modal__waitlist-title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 700;
	color: var(--lc-primary);
}

.lc-modal__waitlist-desc {
	width: calc(100% - 100px);
	max-width: 100%;
	margin: 0 auto 8px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--lc-gray);
}

/* Form */
.lc-form__field {
	margin-bottom: 14px;
}

.lc-form__label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--lc-dark);
}

.lc-form__hint {
	margin: 0;
	font-size: 11px;
	line-height: 1.4;
	color: var(--lc-gray);
}

.lc-form__hint--below {
	margin-top: 6px;
}

.lc-modal--waitlist .lc-form__input,
.lc-modal--waitlist .lc-phone-input {
	border: 1px solid color-mix(in srgb, var(--lc-dark) 14%, transparent);
	border-radius: 10px;
	background: var(--lc-white);
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.lc-modal--waitlist .lc-form__input:hover,
.lc-modal--waitlist .lc-phone-input:hover {
	border-color: color-mix(in srgb, var(--lc-dark) 22%, transparent);
}

.lc-modal--waitlist .lc-form__input:focus {
	outline: none;
	border-color: color-mix(in srgb, var(--lc-primary) 55%, transparent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--lc-primary) 10%, transparent);
}

.lc-phone-input {
	display: flex;
	align-items: stretch;
	width: 100%;
	overflow: hidden;
}

.lc-modal--waitlist .lc-phone-input:focus-within {
	border-color: color-mix(in srgb, var(--lc-primary) 55%, transparent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--lc-primary) 10%, transparent);
}

.lc-phone-input__prefix {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	padding: 12px 12px 12px 14px;
	border-right: 1px solid color-mix(in srgb, var(--lc-dark) 10%, transparent);
	background: color-mix(in srgb, var(--lc-neutral) 55%, var(--lc-white));
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--lc-dark);
	user-select: none;
}

.lc-phone-input__field {
	flex: 1;
	min-width: 0;
	padding: 12px 14px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.lc-phone-input__field:focus {
	outline: none;
	box-shadow: none;
}

.lc-form__input {
	width: 100%;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	color: var(--lc-dark);
	box-sizing: border-box;
}

.lc-form__input::placeholder {
	color: color-mix(in srgb, var(--lc-gray) 72%, transparent);
}

.lc-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 18px 0 16px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--lc-gray);
	cursor: pointer;
}

.lc-form__consent input {
	margin-top: 3px;
	flex-shrink: 0;
	accent-color: var(--lc-secondary);
}

.lc-form__consent a {
	color: var(--lc-secondary);
}

.lc-form.is-success .lc-form__field,
.lc-form.is-success .lc-form__consent,
.lc-form.is-success .lc-form__submit {
	display: none;
}

.lc-form.is-success .lc-form__message {
	margin: 0;
	padding: 16px 18px;
	font-size: 15px;
}

.lc-form__success-followup {
	margin-top: 16px;
	text-align: center;
}

.lc-form__success-followup[hidden] {
	display: none;
}

.lc-form__success-note {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--lc-gray);
}

.lc-form__success-link {
	color: var(--lc-secondary);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--lc-secondary) 45%, transparent);
	text-underline-offset: 3px;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.lc-form__success-link:hover,
.lc-form__success-link:focus-visible {
	color: var(--lc-primary);
	text-decoration-color: var(--lc-primary);
}

.lc-form__message {
	display: block;
	min-height: 0;
	margin: 14px 0 0;
	padding: 12px 14px;
	border-radius: var(--lc-radius-sm);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	text-align: center;
}

.lc-form__message[hidden] {
	display: none;
}

.lc-form__message.is-success {
	color: #1b4332;
	background: color-mix(in srgb, #2d6a4f 12%, var(--lc-white));
}

.lc-form__message.is-error {
	color: #9b2226;
	background: color-mix(in srgb, #c92a2a 10%, var(--lc-white));
}

/* Waitlist submit — isti hover kao shop dugme */
.lc-modal--waitlist .lc-form__submit.shop-btn {
	position: relative;
	overflow: hidden;
	width: 100%;
	margin-top: 4px;
	padding: 14px 28px;
	border: 0;
	border-radius: 30px;
	background-color: var(--lc-primary);
	color: var(--lc-white);
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: 18px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(82, 97, 43, 0.22);
	transition:
		background-color 0.35s ease,
		color 0.35s ease,
		transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
		box-shadow 0.35s ease;
}

.lc-modal--waitlist .lc-form__submit.shop-btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: -120%;
	width: 55%;
	height: 100%;
	background: linear-gradient(
		105deg,
		transparent 0%,
		rgba(255, 255, 255, 0.28) 45%,
		rgba(255, 255, 255, 0.12) 55%,
		transparent 100%
	);
	transform: skewX(-18deg);
	transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}

.lc-modal--waitlist .lc-form__submit.shop-btn:hover,
.lc-modal--waitlist .lc-form__submit.shop-btn:focus-visible {
	background-color: #455025;
	color: var(--lc-white);
	transform: translateY(-3px) scale(1.03);
	box-shadow: 0 12px 32px rgba(82, 97, 43, 0.38);
}

.lc-modal--waitlist .lc-form__submit.shop-btn:hover::before,
.lc-modal--waitlist .lc-form__submit.shop-btn:focus-visible::before {
	left: 140%;
}

.lc-modal--waitlist .lc-form__submit.shop-btn:active {
	transform: translateY(-1px) scale(1.01);
	box-shadow: 0 6px 18px rgba(82, 97, 43, 0.3);
}

.lc-modal--waitlist .lc-form__submit.shop-btn.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

body.lc-scroll-lock {
	overflow: hidden;
}

@media (max-width: 767px) {
	.lc-overlay {
		align-items: flex-end;
		padding: 0;
	}

	.lc-modal--product .lc-modal__grid {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.lc-modal__media {
		padding: 20px 20px 12px;
	}

	.lc-modal__image {
		max-width: 220px;
	}

	.lc-modal__body {
		padding: 20px 20px 28px;
	}

	.lc-modal__title {
		font-size: 22px;
		padding-right: 36px;
	}

	.lc-prices--modal .lc-prices__sale {
		font-size: 22px;
	}

	.lc-prices--modal {
		margin-bottom: 24px;
	}

	.lc-modal__long {
		font-size: 14px;
		max-height: 28vh;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.lc-modal__cta {
		width: 100%;
	}

	.lc-modal--waitlist,
	.lc-modal--product {
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 16px 16px 0 0;
	}

	.lc-modal__close {
		top: 10px;
		right: 10px;
		background: rgba(255, 255, 255, 0.96);
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	}

	.lc-modal__waitlist-inner {
		padding: 28px 20px 24px;
		padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	}
}

@media (max-width: 767px) {
	.lc-overlay[aria-hidden="false"] {
		animation: lc-overlay-in 0.32s var(--lc-ease) forwards;
	}

	.lc-overlay[aria-hidden="false"] .lc-modal {
		animation: lc-modal-sheet-in 0.38s var(--lc-ease) forwards;
	}
}

@keyframes lc-modal-sheet-in {
	from {
		opacity: 0;
		transform: translateY(100%);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
