/*
 * Component styles: buttons, cards, badges, variant selectors.
 * These map 1:1 to the components we designed and approved in the
 * mockup phase (Imagine widget previews), now written as real,
 * reusable CSS classes used across every template.
 */

/* ---------- Buttons ---------- */

.zlz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	border: none;
	transition: background-color 0.15s ease, transform 0.1s ease;
}

.zlz-btn:active {
	transform: scale(0.98);
}

.zlz-btn--primary {
	background-color: var(--zlz-primary);
	color: #fff;
}
.zlz-btn--primary:hover {
	background-color: var(--zlz-primary-dark);
}

.zlz-btn--outline {
	background: transparent;
	color: var(--zlz-primary);
	border: 1.5px solid var(--zlz-primary);
}
.zlz-btn--outline:hover {
	background: #F8F3FF;
}

.zlz-btn--orange {
	background-color: var(--zlz-accent-orange);
	color: #fff;
}

.zlz-btn--whatsapp {
	background-color: #25D366;
	color: #fff;
}

.zlz-btn--disabled {
	background: #2A2444;
	color: #6B5F8C;
	cursor: not-allowed;
}

.zlz-btn--block {
	width: 100%;
}

/* ---------- Badges ---------- */

.zlz-badge {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 14px;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.3px;
}

.zlz-badge--new     { background: var(--zlz-accent-green); color: #fff; }
.zlz-badge--hot      { background: var(--zlz-accent-orange); color: #fff; }
.zlz-badge--rare     { background: var(--zlz-accent-teal); color: #fff; }
.zlz-badge--soldout  { background: #ECE9F2; color: #6b6478; }
.zlz-badge--wholesale{ background: #E9F2DD; color: #4D7029; }
.zlz-badge--keychain-available {
	position: absolute;
	top: 6px;
	right: 6px;
	font-size: 14px;
	background: #fff;
	border-radius: 50%;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* ---------- Product card ---------- */

.zlz-card {
	background: #fff;
	border: 0.5px solid #E5E1ED;
	border-radius: 14px;
	overflow: hidden;
	position: relative;
}

.zlz-card__image {
	width: 100%;
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #F2F0F7;
}

.zlz-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.zlz-card__body {
	padding: 8px 10px 10px;
}

.zlz-card__title {
	font-size: 12px;
	font-weight: 500;
	margin-bottom: 2px;
}

.zlz-card__price {
	font-size: 11px;
	color: #6b6478;
}

.zlz-card--soldout .zlz-card__image img {
	opacity: 0.5;
}
.zlz-card--soldout .zlz-card__title,
.zlz-card--soldout .zlz-card__price {
	color: #b0abc0;
}

/* ---------- Variant selector (Figure / Keychain) ---------- */
/* This restyles WooCommerce's native variation <select> + radio fallback
 * into the card UI we designed, via JS that reads the <select> options
 * and renders these cards instead (see assets/js/main.js initVariantCards). */

.zlz-variant-option {
	border: 1.5px solid #E5E1ED;
	border-radius: 10px;
	padding: 12px 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.zlz-variant-option.is-active {
	border-color: var(--zlz-primary);
	background: #F8F3FF;
}

.zlz-variant-option__left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.zlz-variant-option__icon {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	background: #F2F0F7;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}

.zlz-variant-option__name {
	font-size: 13px;
	font-weight: 500;
}

.zlz-variant-option__meta {
	font-size: 11px;
	color: #6b6478;
}

.zlz-variant-option__price {
	font-size: 13px;
	font-weight: 500;
}

/* ---------- Filter pills (Shop / Collection pages) ---------- */

.zlz-filter-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 20px;
	border: 0.5px solid #E5E1ED;
	font-size: 12px;
	color: #6b6478;
	cursor: pointer;
	white-space: nowrap;
}

.zlz-filter-pill.is-active {
	border: 1.5px solid var(--zlz-primary);
	background: #F8F3FF;
	color: #5B2A9E;
	font-weight: 500;
}

/* ---------- Free shipping progress bar (Cart page) ---------- */

.zlz-shipping-bar {
	background: #F8F3FF;
	border-radius: 10px;
	padding: 12px 14px;
}

.zlz-shipping-bar__label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #5B2A9E;
	margin-bottom: 8px;
}

.zlz-shipping-bar__track {
	height: 6px;
	background: #E0D4FA;
	border-radius: 4px;
}

.zlz-shipping-bar__fill {
	height: 100%;
	background: var(--zlz-primary);
	border-radius: 4px;
	transition: width 0.3s ease;
}

/* ---------- Global "Added to Cart" popup ---------- */

.zlz-cart-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
}

.zlz-cart-popup.is-open {
	display: flex;
}

.zlz-cart-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(31, 27, 46, 0.55);
	backdrop-filter: blur(2px);
}

.zlz-cart-popup__box {
	position: relative;
	background: #fff;
	border-radius: 18px;
	padding: 32px 28px 28px;
	width: 92%;
	max-width: 360px;
	text-align: center;
	box-shadow: 0 20px 60px rgba(31, 27, 46, 0.25);
	animation: zlzCartPopupIn 0.18s ease;
}

@keyframes zlzCartPopupIn {
	from { opacity: 0; transform: translateY(8px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.zlz-cart-popup__close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	color: #a29cb5;
	cursor: pointer;
	padding: 6px;
}

.zlz-cart-popup__close:hover {
	color: #271C2C;
}

.zlz-cart-popup__title {
	font-size: 17px;
	font-weight: 700;
	color: #271C2C;
	margin-bottom: 16px;
	text-align: left;
}

.zlz-cart-popup__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 18px;
}

.zlz-cart-popup__actions .zlz-btn {
	justify-content: center;
}

/* ---------- Mini cart contents ---------- */

.zlz-mini-cart {
	text-align: left;
	max-height: 320px;
	overflow-y: auto;
}

.zlz-mini-cart__loading,
.zlz-mini-cart__empty {
	color: #6b6478;
	font-size: 13px;
	text-align: center;
	padding: 16px 0;
}

.zlz-mini-cart__items {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.zlz-mini-cart__item {
	display: flex;
	align-items: center;
	gap: 12px;
}

.zlz-mini-cart__thumb {
	width: 48px;
	height: 48px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #F2F0F7;
}

.zlz-mini-cart__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.zlz-mini-cart__info {
	flex: 1;
	min-width: 0;
}

.zlz-mini-cart__name {
	font-size: 13px;
	font-weight: 600;
	color: #271C2C;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.zlz-mini-cart__meta {
	font-size: 12px;
	color: #6b6478;
	margin-top: 2px;
}

.zlz-mini-cart__line-total {
	font-size: 13px;
	font-weight: 600;
	color: #271C2C;
	white-space: nowrap;
}

.zlz-mini-cart__subtotal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #EFEDF5;
	font-size: 14px;
	color: #271C2C;
}



/* --------------------------------------------------------------------------
 * Homepage Surprise Pack teaser — positive, experience-led and deterministic.
 * -------------------------------------------------------------------------- */
.zlz-sp-home {
	position: relative;
	overflow: hidden;
	padding: 70px 0;
	background: linear-gradient(180deg, #FFFFFF 0%, var(--zlz-cream, #FFF9F2) 100%);
	isolation: isolate;
}

.zlz-sp-home__inner {
	position: relative;
	z-index: 2;
}

.zlz-sp-home__header {
	max-width: 720px;
	margin: 0 auto 22px;
	text-align: center;
}

.zlz-sp-home__eyebrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 5px 12px;
	border: 1px solid rgba(217, 83, 128, .28);
	border-radius: 999px;
	background: rgba(217, 83, 128, .08);
	color: var(--zlz-accent-pink, #D95380);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
}

.zlz-sp-home__header h2 {
	margin-top: 12px;
	color: var(--zlz-text, #271C2C);
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.05;
	letter-spacing: -.025em;
}

.zlz-sp-home__header p {
	max-width: 580px;
	margin: 10px auto 0;
	color: #6B6478;
	font-size: 15px;
}

.zlz-character-marquee--surprise-home {
	max-width: 920px;
	margin: 0 auto 20px;
}

.zlz-sp-home__card {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
	gap: 28px;
	align-items: center;
	max-width: 1040px;
	margin: 0 auto;
	padding: 34px;
	border: 1px solid rgba(123, 63, 228, .14);
	border-radius: 26px;
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 22px 54px rgba(39, 28, 44, .09);
}

.zlz-sp-home__dispatch {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 5px 11px;
	border-radius: 999px;
	background: rgba(59, 184, 176, .12);
	color: #247D78;
	font-size: 11px;
	font-weight: 600;
}

.zlz-sp-home__copy h3 {
	margin-top: 13px;
	color: var(--zlz-text, #271C2C);
	font-size: clamp(27px, 3vw, 38px);
	line-height: 1.06;
}

.zlz-sp-home__copy > p {
	max-width: 540px;
	margin-top: 10px;
	color: #6B6478;
	font-size: 14px;
	line-height: 1.65;
}

.zlz-sp-home__benefits {
	display: grid;
	gap: 8px;
	margin: 18px 0 20px;
	padding: 0;
	list-style: none;
}

.zlz-sp-home__benefits li {
	position: relative;
	padding-left: 24px;
	color: var(--zlz-text, #271C2C);
	font-size: 13px;
	font-weight: 500;
}

.zlz-sp-home__benefits li::before {
	content: '✓';
	position: absolute;
	left: 0;
	top: 0;
	color: var(--zlz-accent-teal, #3BB8B0);
	font-weight: 700;
}

.zlz-sp-home__cta {
	min-height: 48px;
	padding-inline: 20px;
}

.zlz-sp-home__packs {
	display: grid;
	gap: 10px;
}

.zlz-sp-home__pack {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) auto;
	gap: 13px;
	align-items: center;
	min-height: 82px;
	padding: 13px 15px;
	border: 1px solid #E8E0EA;
	border-radius: 16px;
	background: #FFFFFF;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.zlz-sp-home__pack:hover,
.zlz-sp-home__pack:focus-visible {
	transform: translateY(-2px);
	border-color: var(--zlz-primary, #7B3FE4);
	box-shadow: 0 12px 26px rgba(123, 63, 228, .12);
	outline: none;
}

.zlz-sp-home__pack.is-featured {
	border-color: rgba(240, 156, 57, .52);
	background: rgba(240, 156, 57, .07);
}

.zlz-sp-home__pack-count {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border-radius: 14px;
	background: rgba(123, 63, 228, .09);
	color: var(--zlz-primary, #7B3FE4);
	font-size: 25px;
	font-weight: 700;
}

.zlz-sp-home__pack-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.zlz-sp-home__pack-copy small {
	color: #7A7080;
	font-size: 11px;
	font-weight: 500;
}

.zlz-sp-home__pack-copy strong {
	color: var(--zlz-text, #271C2C);
	font-size: 18px;
	font-weight: 700;
}

.zlz-sp-home__pack-arrow {
	color: var(--zlz-primary, #7B3FE4);
	font-size: 20px;
	font-weight: 700;
}

.zlz-decor-character--surprise-home-left {
	left: max(-54px, calc(50% - 690px));
	bottom: -22px;
	width: 150px;
	transform: rotate(-5deg);
	opacity: .78;
}

.zlz-decor-character--surprise-home-right {
	right: max(-42px, calc(50% - 690px));
	top: 92px;
	width: 126px;
	transform: rotate(8deg);
	opacity: .76;
}

@media (max-width: 900px) {
	.zlz-sp-home__card {
		grid-template-columns: 1fr;
		max-width: 720px;
	}
	.zlz-decor-character--surprise-home-left,
	.zlz-decor-character--surprise-home-right {
		opacity: .42;
	}
}

@media (max-width: 640px) {
	.zlz-sp-home {
		padding: 50px 0;
	}
	.zlz-sp-home__header h2 {
		font-size: 32px;
	}
	.zlz-sp-home__card {
		gap: 24px;
		padding: 22px 18px;
		border-radius: 20px;
	}
	.zlz-sp-home__copy h3 {
		font-size: 28px;
	}
	.zlz-sp-home__pack {
		grid-template-columns: 48px minmax(0, 1fr) auto;
		min-height: 72px;
		padding: 11px 12px;
	}
	.zlz-sp-home__pack-count {
		width: 48px;
		height: 48px;
		font-size: 22px;
	}
	.zlz-decor-character--surprise-home-left {
		left: -34px;
		bottom: -8px;
		width: 88px;
		opacity: .5;
	}
	.zlz-decor-character--surprise-home-right {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zlz-sp-home__pack {
		transition: none;
	}
}

/* Homepage collection discovery header. */
.zlz-categories { overflow: hidden; }
.zlz-categories__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 8px;
}
.zlz-categories__header h2 { margin-top:4px; font-size:clamp(24px,3vw,34px); }
.zlz-section__viewall { color:var(--zlz-primary,#7B3FE4); font-size:13px; font-weight:700; white-space:nowrap; }
