/* =======================
   Muscleforce Wishlist
   Layout indipendente
   ======================= */

/* Container */
.mf-wishlist-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Riga prodotto */
.mf-wishlist-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 20px;
    background: #f7f8fc;
    border-radius: 12px;
    padding: 15px 20px;
    transition: transform 0.15s ease;
}


/* Thumbnail */
.mf-wishlist-thumb img {
    width: 100%;
    max-width: 100px;
    border-radius: 8px;
    object-fit: cover;
}

/* Dettagli */
.mf-wishlist-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.mf-wishlist-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}
.mf-wishlist-title a {
    text-decoration: none;
    color: #243574;
}
.mf-wishlist-title a:hover {
    color: #1a2658;
}
.mf-wishlist-price {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

/* Azioni */
.mf-wishlist-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mf-btn {
    display: inline-block;
    text-align: center;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.mf-btn.view {
    background: #243574;
    color: #fff;
}
.mf-btn.view:hover {
    background: #1a2658;
}
.mf-btn.remove {
    background: #b33;
    color: #fff;
}
.mf-btn.remove:hover {
    background: #922;
}


.mf-btn.view a, .mf-btn.remove a{
    text-decoration:none !important;
}


/* Messaggi */
.mf-wishlist-msg {
    font-size: 15px;
    padding: 10px;
    background: #f7f8fc;
    border-radius: 8px;
}


.mf-wishlist-wrap a {
    border: 1px solid var(--ast-global-color-0);
    border-radius: 8px;
    padding: 5px 15px;
    margin-top: 20px;
    display: table;
    color: var(--ast-global-color-0);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.mf-wishlist-wrap a:hover {
    background: var(--ast-global-color-0);
    color: #fff;                /* testo bianco su hover */
}


.mf-wishlist-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Contenuto del popup */
.mf-wishlist-popup-content {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}


/* Bottone chiusura */
.mf-wishlist-popup-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}
.mf-wishlist-popup-close:hover {
  color: #000;
}

/* Spinner centrato nel popup */
.mf-wishlist-popup .mf-loader-init {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
}

.mf-wishlist-popup .mf-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #243574; /* colore brand */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}




/* Responsive */
@media (max-width: 768px) {
    .mf-wishlist-row {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
    }
    .mf-wishlist-actions {
        flex-direction: row;
        grid-column: 1 / -1;
    }
}
