/* ==========================================================================
   Drawer de favoritos: la lista. El armazon del panel (fondo, panel,
   cabecera, cerrar, vacio y el boton Ver catalogo) es el del pedido y vive
   en cart-drawer.css.
   ========================================================================== */

/* Favorites items list */
.fedelan-favorites-drawer__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Single favorites item */
.fedelan-favorites-drawer__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    position: relative;
    transition: opacity 0.2s ease-out, transform 0.2s ease-out, filter 0.2s ease-out;
}

.fedelan-favorites-drawer__item::after {
    content: none;
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    width: auto;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.06);
    transform: none;
}

.fedelan-favorites-drawer__item:last-child::after {
    display: none;
}

.fedelan-favorites-drawer__item--pending {
    opacity: 0.42;
    transform: scale(0.985);
    filter: saturate(0.72);
    pointer-events: none;
}

.fedelan-favorites-drawer__item-image {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    max-width: 72px;
    max-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Campo gris atras de la prenda, igual que en el pedido y el catalogo. */
    background-color: var(--fedelan-sand);
    overflow: hidden;
}

.fedelan-favorites-drawer__item-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.fedelan-favorites-drawer__item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    max-width: 100%;
    max-height: 100%;
}

.fedelan-favorites-drawer__item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    /* Lugar para el boton de quitar, que va en la esquina. */
    padding-right: 40px;
}

.fedelan-favorites-drawer__item-name {
    font-family: var(--fedelan-font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--fedelan-ink);
    text-decoration: none;
    text-transform: uppercase;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fedelan-favorites-drawer__item-name:hover {
    text-decoration: underline;
}

.fedelan-favorites-drawer__item-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin-top: 5px;
}

.fedelan-favorites-drawer__item-price {
    font-family: var(--fedelan-font-primary);
    font-size: 16px;
    font-weight: 400;
    color: var(--fedelan-ink);
    margin: 0;
    white-space: nowrap;
    line-height: 1;
    text-align: left;
}

.fedelan-favorites-drawer__item-meta {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.35;
    color: var(--fedelan-muted);
}

/* Agregar al pedido: abre el agregado rapido (compra.js). Es texto y no un
   boton lleno para no competir con el de la ficha; la zona sensible mide 44. */
.fedelan-favorites-drawer .fedelan-favorites-drawer__agregar,
.fedelan-favorites-drawer .fedelan-favorites-drawer__agregar:hover,
.fedelan-favorites-drawer .fedelan-favorites-drawer__agregar:focus {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 2px 0 -10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--fedelan-ink);
    font-family: var(--fedelan-font-primary);
    font-size: 14px;
    cursor: pointer;
}

/* Quitar: el icono mide 16, la zona sensible 44 (X9). */
.fedelan-favorites-drawer__item-remove {
    position: absolute;
    top: 4px;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    transition: background var(--fedelan-dur) var(--fedelan-ease);
    -webkit-tap-highlight-color: transparent;
}

.fedelan-favorites-drawer__item-remove:hover {
    opacity: 1;
}

.fedelan-favorites-drawer__item-remove svg {
    width: 16px;
    height: 16px;
    stroke: var(--fedelan-ink);
}
