/* ==========================================================================
   Personnalisation [yith_wcwl_wishlist]
   ========================================================================== */

/* Police et couleur de texte générales de la wishlist (valeur par défaut) */
.wishlist_table,
.wishlist-title-container {
	font-family: 'Inter', sans-serif !important;
	color: #ab5c5f !important;
}

/* Titre de la wishlist ("Ma liste de ...") */
.wishlist-title-container .wishlist-title h2 {
	font-family: 'Bowlby One SC', cursive !important;
	color: #c7b85b !important;
}

/* Nom des produits (spécificité renforcée pour battre le plugin YITH) */
table.wishlist_table.wishlist_view td.product-name a.wishlist-product-name {
	font-family: 'Inter', sans-serif !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	color: #AB5C5F !important;
}

/* Croix de suppression du produit */
.wishlist_table td.product-remove a.remove {
	color: #AB5C5F !important;
}

/* Fond des en-têtes de colonnes (th) */
.wishlist_table thead th {
	background-color: #c7b85b !important;
}

/* Fond des cellules et des lignes du tableau */
.wishlist_table td,
.wishlist_table tr,
.wishlist_table tbody {
	background-color: #fcf0ea !important;
}

/* Lignes séparées avec un petit espace et des coins arrondis (façon "carte") */
table.wishlist_table.wishlist_view {
	border-collapse: separate !important;
	border-spacing: 0 12px !important;
}

.wishlist_table tbody tr {
	box-shadow: 0 2px 8px rgba(171, 92, 95, 0.1);
}

table.wishlist_table.wishlist_view tbody tr td:first-child {
	border-top-left-radius: 8px !important;
	border-bottom-left-radius: 8px !important;
}

table.wishlist_table.wishlist_view tbody tr td:last-child {
	border-top-right-radius: 8px !important;
	border-bottom-right-radius: 8px !important;
}

/* Espacement intérieur des cellules */
.wishlist_table td {
	padding: 16px 20px !important;
}

/* Plus d'air autour de la croix (à gauche) et de l'icône panier (à droite) */
/* Spécificité renforcée (classe répétée) pour battre la règle padding:0 du plugin YITH */
table.wishlist_table.wishlist_view td.product-remove {
	padding-left: 24px !important;
}

table.wishlist_table.wishlist_view td.product-add-to-cart {
	padding-right: 24px !important;
}

/* Masquer l'en-tête du tableau (thead) */
.wishlist_table thead {
	display: none !important;
}

/* Icône panier : juste l'icône, pas de bouton rond derrière */
.wishlist_table .yith-wcwl-custom-cart-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	line-height: normal !important;
}

.wishlist_table .yith-wcwl-custom-cart-icon img {
	width: 20px;
	height: 20px;
	display: block;
}

/* ==========================================================================
   Version mobile (templates/wishlist-view-mobile.php - liste <ul>/<li>)
   ========================================================================== */

/* Police globale un peu plus petite en mobile */
.wishlist_table.mobile {
	font-size: 13px !important;
}

/* Fond de carte par produit */
.wishlist_table.mobile li {
	background-color: #fcf0ea !important;
	border-radius: 8px;
	padding: 16px !important;
	margin-bottom: 16px;
	position: relative;
	box-shadow: 0 2px 8px rgba(171, 92, 95, 0.1);
}

/* Croix de suppression : petite, en haut à droite de la carte */
.wishlist_table.mobile .product-remove {
	position: absolute;
	top: 12px;
	right: 12px;
	margin: 0;
}

.wishlist_table.mobile .product-remove a {
	color: #AB5C5F !important;
	font-size: 14px;
}

/* Ligne principale : image | infos | bouton panier */
.wishlist_table.mobile .wishlist-mobile-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-right: 24px; /* laisse de la place à la croix en haut à droite */
}

.wishlist_table.mobile .product-thumbnail {
	flex-shrink: 0;
	width: 60px;
}

.wishlist_table.mobile .product-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 6px;
}

.wishlist_table.mobile .wishlist-mobile-info {
	flex: 1;
	min-width: 0;
}

/* Nom du produit, plus compact en mobile */
.wishlist_table.mobile .product-name a.wishlist-product-name {
	font-family: 'Inter', sans-serif !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	color: #AB5C5F !important;
	display: inline-block;
	line-height: 1.3;
}

.wishlist_table.mobile .wishlist-product-variation {
	font-size: 12px !important;
	margin-top: 2px;
}

/* Prix + Stock sur une seule ligne, sous le nom */
.wishlist_table.mobile .wishlist-mobile-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
	font-size: 12px !important;
	color: #AB5C5F !important;
}

.wishlist_table.mobile .wishlist-mobile-stock {
	position: relative;
	padding-left: 10px;
}

.wishlist_table.mobile .wishlist-mobile-stock::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #AB5C5F;
}

.wishlist_table.mobile .wishlist-mobile-quantity,
.wishlist_table.mobile .wishlist-mobile-dateadded {
	font-size: 12px !important;
	margin-top: 4px;
}

/* Bouton panier : aligné tout à droite de la ligne, juste l'icône */
.wishlist_table.mobile .wishlist-mobile-cart {
	flex-shrink: 0;
	margin-left: auto;
}

/* Bouton panier mobile : juste l'icône, pas de fond orange */
.wishlist_table.mobile .yith-wcwl-custom-cart-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
}