/* LD Liste de souhaits — styles front */

/* Bouton d'ajout (boutique + fiche produit) */
.ldls-button {
	display: inline-flex;
	align-items: center;
	gap: .4em;
	margin-top: .5em;
	padding: .45em .9em;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 4px;
	color: #444;
	cursor: pointer;
	font-size: .9em;
	line-height: 1.2;
	transition: color .15s ease, border-color .15s ease, opacity .15s ease;
}

.ldls-button .ldls-heart {
	color: #bbb;
	transition: color .15s ease, transform .15s ease;
}

.ldls-button:hover {
	color: #c0392b;
}

.ldls-button.is-active {
	color: #c0392b;
	border-color: #c0392b;
}

.ldls-button.is-active .ldls-heart {
	color: #c0392b;
	transform: scale( 1.15 );
}

.ldls-button.is-loading {
	opacity: .55;
	pointer-events: none;
}

/* Compteur (en-tête / menu) */
.ldls-count {
	display: inline-flex;
	align-items: center;
	gap: .35em;
	text-decoration: none;
	color: inherit;
}

.ldls-count .ldls-heart {
	color: #c0392b;
}

.ldls-count-value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.6em;
	height: 1.6em;
	padding: 0 .4em;
	background: #c0392b;
	color: #fff;
	border-radius: 999px;
	font-size: .75em;
	font-weight: 600;
	line-height: 1;
}

.ldls-menu-count {
	margin-left: .3em;
}

/* Page liste de souhaits */
.ldls-page .ldls-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 240px, 1fr ) );
	gap: 1.25rem;
}

.ldls-item {
	display: flex;
	flex-direction: column;
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.ldls-item-thumb {
	position: relative;
	display: block;
}

.ldls-item-thumb img {
	width: 100%;
	height: auto;
	display: block;
}

.ldls-badge {
	position: absolute;
	top: .5rem;
	left: .5rem;
	background: #c0392b;
	color: #fff;
	font-size: .8em;
	font-weight: 600;
	padding: .2em .5em;
	border-radius: 4px;
}

.ldls-item-body {
	display: flex;
	flex-direction: column;
	gap: .4rem;
	padding: .85rem;
	flex: 1;
}

.ldls-item-title {
	font-weight: 600;
	text-decoration: none;
	color: inherit;
}

.ldls-item-savings {
	margin: 0;
	color: #c0392b;
	font-size: .9em;
}

.ldls-item-actions {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	padding-top: .4rem;
}

.ldls-remove {
	background: none;
	border: none;
	color: #888;
	cursor: pointer;
	font-size: .85em;
	padding: .2em .4em;
}

.ldls-remove:hover {
	color: #c0392b;
}

.ldls-oos {
	color: #888;
	font-style: italic;
}

.ldls-empty {
	text-align: center;
	padding: 2rem 0;
}

.ldls-empty p {
	margin-bottom: 1rem;
}
