/**
 * LAKASG Wishlist — frontend styles (v2.9.0)
 *
 * All selectors scoped to .lakasg-wl-* classes. No global resets.
 */

/* ============================================================================
   Heart button
   ============================================================================ */
.lakasg-wl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 14px;
	border: 1px solid #d0d5db;
	border-radius: 999px;
	background: #fff;
	color: #333;
	font: inherit;
	cursor: pointer;
	transition: background-color 150ms, color 150ms, border-color 150ms, transform 100ms;
	line-height: 1;
}
.lakasg-wl-btn:hover { color: #d33; border-color: #d33; }
.lakasg-wl-btn:active { transform: scale(0.97); }
.lakasg-wl-btn:disabled { opacity: 0.55; cursor: wait; }

/* Icon-only (circle) shape */
.lakasg-wl-btn--icon {
	width: 40px; height: 40px;
	padding: 0;
	border-radius: 50%;
}
.lakasg-wl-btn--icon .lakasg-wl-btn-label { display: none; }

/* Text-link style (strip the chrome) */
.lakasg-wl-btn--link {
	background: transparent !important;
	border: 0 !important;
	padding: 4px 0 !important;
	border-radius: 0;
}
.lakasg-wl-btn--link:hover {
	text-decoration: underline;
}

/* Icons */
.lakasg-wl-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Saved state: fill the icon */
.lakasg-wl-btn.is-saved svg { fill: currentColor; }

/* Plus-to-check icon swap */
.lakasg-wl-btn--icon-plus .lakasg-icon-check { display: none; }
.lakasg-wl-btn--icon-plus.is-saved .lakasg-icon-plus { display: none; }
.lakasg-wl-btn--icon-plus.is-saved .lakasg-icon-check { display: inline-block; }

/* Just-added pulse */
.lakasg-wl-btn.lakasg-just-added {
	animation: lakasg-wl-pulse 400ms ease-out;
}
@keyframes lakasg-wl-pulse {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.12); }
	100% { transform: scale(1); }
}

/* ============================================================================
   Counter
   ============================================================================ */
.lakasg-wl-counter {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	color: inherit;
	text-decoration: none;
	line-height: 1;
}
.lakasg-wl-counter svg {
	width: 22px;
	height: 22px;
	transition: color 150ms;
}
.lakasg-wl-counter-badge {
	position: absolute;
	top: -4px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: #d33;
	color: #fff;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* ============================================================================
   Page wrapper
   ============================================================================ */
.lakasg-wl-page {
	box-sizing: border-box;
}
.lakasg-wl-page *,
.lakasg-wl-page *::before,
.lakasg-wl-page *::after {
	box-sizing: border-box;
}
.lakasg-wl-pageheader h2 {
	font-size: 1.75rem;
	margin: 0 0 20px;
	display: flex;
	align-items: baseline;
	gap: 10px;
}
.lakasg-wl-pageheader-count {
	color: #888;
	font-size: 1rem;
	font-weight: 400;
}

/* ============================================================================
   Empty state
   ============================================================================ */
.lakasg-wl-empty {
	text-align: center;
	padding: 60px 20px;
	border: 1px dashed #d0d5db;
	border-radius: 8px;
}
.lakasg-wl-empty-message {
	font-size: 1rem;
	color: #555;
	margin: 0 0 20px;
}
.lakasg-wl-empty-btn {
	display: inline-block;
	padding: 10px 22px;
	background: #111;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 500;
	transition: background-color 150ms;
}
.lakasg-wl-empty-btn:hover {
	background: #333;
	color: #fff;
}

/* ============================================================================
   Item list / grid
   ============================================================================ */
.lakasg-wl-items { margin-bottom: 24px; }

/* List layout */
.lakasg-wl-layout-list .lakasg-wl-items {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.lakasg-wl-layout-list .lakasg-wl-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px;
	background: #fff;
	border: 1px solid #e4e7ea;
	border-radius: 6px;
	position: relative;
}
.lakasg-wl-layout-list .lakasg-wl-item-imgwrap {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: 4px;
	overflow: hidden;
	display: block;
}
.lakasg-wl-layout-list .lakasg-wl-item-imgwrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.lakasg-wl-layout-list .lakasg-wl-item-body {
	flex: 1 1 auto;
	min-width: 0;
}

/* Grid layout */
.lakasg-wl-layout-grid .lakasg-wl-items {
	display: grid;
	grid-template-columns: repeat(var(--lakasg-wl-cols, 3), minmax(0, 1fr));
	gap: 20px;
}
@media (max-width: 1024px) {
	.lakasg-wl-layout-grid .lakasg-wl-items {
		grid-template-columns: repeat(var(--lakasg-wl-cols-t, 2), minmax(0, 1fr));
	}
}
@media (max-width: 600px) {
	.lakasg-wl-layout-grid .lakasg-wl-items {
		grid-template-columns: repeat(var(--lakasg-wl-cols-m, 1), minmax(0, 1fr));
	}
}
.lakasg-wl-layout-grid .lakasg-wl-item {
	background: #fff;
	border: 1px solid #e4e7ea;
	border-radius: 6px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: relative;
}
.lakasg-wl-layout-grid .lakasg-wl-item-imgwrap {
	aspect-ratio: 1 / 1;
	border-radius: 4px;
	overflow: hidden;
	display: block;
}
.lakasg-wl-layout-grid .lakasg-wl-item-imgwrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Shared item styles */
.lakasg-wl-item-name {
	display: block;
	font-weight: 600;
	color: #111;
	text-decoration: none;
	margin-bottom: 4px;
	overflow-wrap: anywhere;
}
.lakasg-wl-item-name:hover { color: #2271b1; }
.lakasg-wl-item-price {
	color: #555;
	font-size: 0.95rem;
	margin-bottom: 6px;
}
.lakasg-wl-item-view {
	font-size: 0.85rem;
	color: #2271b1;
	text-decoration: none;
}
.lakasg-wl-item-view:hover { text-decoration: underline; }

/* Remove × button — small circle in the corner */
.lakasg-wl-item-remove {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 0;
	background: rgba(0, 0, 0, 0.05);
	color: #666;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background-color 150ms, color 150ms;
}
.lakasg-wl-item-remove:hover {
	background: #d33;
	color: #fff;
}

/* Item fade-out when removing */
.lakasg-wl-item.is-removing {
	opacity: 0;
	transform: translateX(-8px);
	transition: opacity 200ms, transform 200ms;
	pointer-events: none;
}

/* ============================================================================
   Action bar
   ============================================================================ */
.lakasg-wl-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}
.lakasg-wl-whatsapp,
.lakasg-wl-openform {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border: 0;
	border-radius: 4px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 150ms, filter 150ms;
}
.lakasg-wl-whatsapp {
	background: #25d366;
	color: #fff;
}
.lakasg-wl-openform {
	background: #111;
	color: #fff;
}
.lakasg-wl-whatsapp:hover,
.lakasg-wl-openform:hover {
	filter: brightness(1.08);
}
.lakasg-wl-clear {
	background: transparent;
	color: #888;
	border: 0;
	padding: 12px 8px;
	cursor: pointer;
	font: inherit;
	text-decoration: underline;
	margin-left: auto;
}
.lakasg-wl-clear:hover {
	color: #d33;
}

/* ============================================================================
   Inline quote form
   ============================================================================ */
.lakasg-wl-form {
	margin-top: 30px;
	padding: 24px;
	background: #f9fafb;
	border: 1px solid #e4e7ea;
	border-radius: 8px;
}
.lakasg-wl-form-title {
	margin: 0 0 6px;
	font-size: 1.25rem;
}
.lakasg-wl-form-subtitle {
	margin: 0 0 18px;
	color: #666;
	font-size: 0.95rem;
}
.lakasg-wl-form-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin-bottom: 18px;
}
.lakasg-wl-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.lakasg-wl-field--full { grid-column: 1 / -1; }
.lakasg-wl-field > span {
	font-size: 0.875rem;
	font-weight: 500;
}
.lakasg-wl-field input,
.lakasg-wl-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d0d5db;
	border-radius: 4px;
	background: #fff;
	font: inherit;
	color: inherit;
	transition: border-color 150ms, box-shadow 150ms;
}
.lakasg-wl-field input:focus,
.lakasg-wl-field textarea:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}
.lakasg-wl-field.has-error input,
.lakasg-wl-field.has-error textarea {
	border-color: #d33;
}

@media (max-width: 600px) {
	.lakasg-wl-form-grid { grid-template-columns: 1fr; }
}

.lakasg-wl-form-items-preview {
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #e4e7ea;
	border-radius: 4px;
	margin-bottom: 18px;
	font-size: 0.9rem;
}
.lakasg-wl-form-items-preview p { margin: 0 0 8px; font-weight: 600; }
.lakasg-wl-form-items-preview ul {
	margin: 0;
	padding-left: 18px;
	color: #555;
}
.lakasg-wl-form-items-preview li { margin-bottom: 2px; }

.lakasg-wl-form-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}
.lakasg-wl-form-submit {
	padding: 12px 22px;
	border: 0;
	border-radius: 4px;
	background: #111;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
}
.lakasg-wl-form-submit:disabled { opacity: 0.6; cursor: wait; }
.lakasg-wl-form-cancel {
	padding: 12px 16px;
	background: transparent;
	color: #666;
	border: 0;
	cursor: pointer;
	font: inherit;
	text-decoration: underline;
}

.lakasg-wl-form-status:empty { display: none; }
.lakasg-wl-form-status {
	margin-top: 14px;
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 0.9rem;
}
.lakasg-wl-form-status.is-success {
	background: #e6f4ea;
	color: #1e6c2c;
}
.lakasg-wl-form-status.is-error {
	background: #fdecea;
	color: #a12622;
}

.lakasg-wl-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px; height: 1px;
	overflow: hidden;
}

/* ============================================================================
   Undo toast
   ============================================================================ */
.lakasg-wl-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	background: #111;
	color: #fff;
	padding: 12px 16px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	z-index: 9999;
	font-size: 0.9rem;
	animation: lakasg-toast-in 200ms ease-out;
}
@keyframes lakasg-toast-in {
	from { opacity: 0; transform: translate(-50%, 10px); }
	to   { opacity: 1; transform: translate(-50%, 0); }
}
.lakasg-wl-toast-undo {
	background: transparent;
	color: #fff;
	border: 0;
	padding: 4px 10px;
	border-radius: 4px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
}
.lakasg-wl-toast-undo:hover {
	background: rgba(255, 255, 255, 0.15);
	text-decoration: none;
}

/* Login nudge after guest-add */
.lakasg-wl-login-nudge {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: #fff;
	border: 1px solid #e4e7ea;
	border-radius: 8px;
	padding: 16px 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	z-index: 9998;
	max-width: 320px;
	font-size: 0.9rem;
	animation: lakasg-toast-in 200ms ease-out;
}
.lakasg-wl-login-nudge a {
	color: #2271b1;
	font-weight: 600;
}
.lakasg-wl-login-nudge-close {
	position: absolute;
	top: 6px; right: 8px;
	background: transparent;
	border: 0;
	color: #999;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
}

/* Bundle wishlist item display — keeps normal products unchanged */
.lakasg-wl-item--bundle {
	align-items: flex-start;
}
.lakasg-wl-item-titleline {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding-right: 32px;
}
.lakasg-wl-bundle-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 8px;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.lakasg-wl-bundle-price {
	font-weight: 700;
}
.lakasg-wl-bundle-products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin-top: 10px;
}
.lakasg-wl-bundle-product {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	padding: 7px;
	border: 1px solid #edf0f2;
	border-radius: 6px;
	background: #f9fafb;
}
.lakasg-wl-bundle-product img {
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	object-fit: cover;
	border-radius: 4px;
}
.lakasg-wl-bundle-product-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.lakasg-wl-bundle-product-name {
	font-size: 12px;
	font-weight: 600;
	color: #1f2937;
	line-height: 1.25;
	overflow-wrap: anywhere;
}
.lakasg-wl-bundle-product-note {
	font-size: 11px;
	color: #6b7280;
	line-height: 1.25;
	overflow-wrap: anywhere;
}
.lakasg-wl-layout-grid .lakasg-wl-bundle-products {
	grid-template-columns: 1fr;
}
@media (max-width: 600px) {
	.lakasg-wl-layout-list .lakasg-wl-item--bundle {
		align-items: flex-start;
	}
	.lakasg-wl-bundle-products {
		grid-template-columns: 1fr;
	}
}
