/* Plein Sud — Mes favoris (wishlist ShopBuilder brandée) */

.ps-wishlist__inner { max-width: var(--ps-content); margin: 0 auto; padding: 22px 20px 64px; box-sizing: border-box; }

.ps-wishlist__head { text-align: center; max-width: 640px; margin: 6px auto 30px; }
.ps-wishlist__eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ps-terracotta); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.ps-wishlist__eyebrow svg { width: 16px; height: 16px; flex: 0 0 auto; }
.ps-wishlist__title { font-family: var(--ps-font-heading); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; color: var(--ps-ink); margin: 0 0 12px; }
.ps-wishlist__sub { color: var(--ps-muted); font-size: 15px; line-height: 1.6; margin: 0; }

/* Conteneur : la table peut scroller horizontalement sur mobile */
.ps-wishlist__content { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --- Table ShopBuilder [rtsb_wishlist] brandée --- */
.rtsb-wishlist-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--ps-line); border-radius: var(--ps-radius); overflow: hidden; box-shadow: var(--ps-shadow-card); }
.rtsb-wishlist-table thead th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ps-muted); font-weight: 700; padding: 15px 18px; border-bottom: 1px solid var(--ps-line); background: var(--ps-cream-soft); white-space: nowrap; }
.rtsb-wishlist-table td { padding: 16px 18px; border-bottom: 1px solid var(--ps-line); vertical-align: middle; font-size: 14px; color: var(--ps-body); }
.rtsb-wishlist-table tbody tr:last-child td,
.rtsb-wishlist-table tr:last-child td { border-bottom: 0; }

/* Colonne produit : image + nom */
.rtsb-wl-product-info { min-width: 240px; }
.rtsb-wl-product-info a { color: var(--ps-ink); text-decoration: none; font-weight: 600; }
.rtsb-wl-product-info a:hover { color: var(--ps-gold-dark); }
.rtsb-wl-product-info img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; margin-right: 14px; vertical-align: middle; }

/* Prix / dispo */
.rtsb-wl-product-price { color: var(--ps-ink); font-weight: 600; white-space: nowrap; }
.rtsb-wl-product-price del { color: var(--ps-muted); font-weight: 400; margin-right: 6px; }
.rtsb-wl-product-availability { color: var(--ps-olive); font-weight: 600; white-space: nowrap; }

/* Bouton « Ajouter au panier » → pilule dorée */
.rtsb-wishlist-table .button,
.rtsb-wishlist-table .add_to_cart_button,
.rtsb-wishlist-table a.rtsb-wl-add-to-cart { display: inline-flex; align-items: center; justify-content: center; background: var(--ps-gold); color: #fff !important; border: 0; border-radius: var(--ps-radius-pill); padding: 9px 18px; font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.rtsb-wishlist-table .button:hover,
.rtsb-wishlist-table .add_to_cart_button:hover { background: var(--ps-gold-dark); }

/* Retirer (croix) */
.rtsb-wl-product-remove { text-align: center; }
.rtsb-wl-product-remove a,
.rtsb-wl-product-remove button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ps-cream); color: var(--ps-muted); border: 0; text-decoration: none; font-size: 16px; transition: background .15s, color .15s; }
.rtsb-wl-product-remove a:hover,
.rtsb-wl-product-remove button:hover { background: rgba(190, 94, 60, .12); color: var(--ps-terracotta); }

/* État vide : on masque l'en-tête de table et on centre le message */
.rtsb-wishlist-table:has(.rtsb-wl-empty-text) { border: none; box-shadow: none; background: transparent; }
.rtsb-wishlist-table:has(.rtsb-wl-empty-text) thead { display: none; }
.rtsb-wl-empty-text { text-align: center !important; color: var(--ps-muted); padding: 56px 20px !important; font-size: 15.5px; border: 1px dashed var(--ps-line) !important; border-radius: var(--ps-radius); background: var(--ps-cream-soft); }

.ps-wishlist__foot { margin-top: 26px; }
.ps-wishlist__foot .ps-btn-outline svg { width: 18px; height: 18px; flex: 0 0 auto; }

@media (max-width: 640px) {
	.ps-wishlist__head { margin-bottom: 22px; }
	.rtsb-wishlist-table td, .rtsb-wishlist-table thead th { padding: 12px 12px; }
}
