/* ==========================================
   MINI WISHLIST COMPONENT
   Padronizado com Mini Cart
   ========================================== */

/* Sidebar Container - Exact match to Mini Cart */
.mini-wishlist-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}

.mini-wishlist-sidebar.active {
    transform: translateX(0);
}

/* Header - Match Mini Cart */
.mini-wishlist-header {
    background: var(--color-marsala);
    color: #fff;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color-sand);
    flex-shrink: 0;
}

.mini-wishlist-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
}

.mini-wishlist-close {
    font-size: 1.25rem;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    color: #fff;
    border: none;
    cursor: pointer;
}

.mini-wishlist-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Body & Items - Match Mini Cart */
.mini-wishlist-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.mini-wishlist-items {
    flex: 1;
    overflow-y: auto !important;
    padding: 0.75rem;
    background: #fdfdfd;
    scrollbar-width: thin;
    scrollbar-color: var(--color-marsala) transparent;
}

.mini-wishlist-items::-webkit-scrollbar {
    width: 4px !important;
    display: block !important;
}

.mini-wishlist-items::-webkit-scrollbar-track {
    background: transparent !important;
}

.mini-wishlist-items::-webkit-scrollbar-thumb {
    background-color: var(--color-marsala) !important;
    border-radius: 10px;
}

.mini-wishlist-items::after {
    content: '';
    display: block;
    height: 1rem;
}

/* Empty State */
.empty-wishlist {
    text-align: center;
    padding: 100px 40px;
    color: #999;
}

.empty-wishlist i {
    font-size: 6rem;
    color: var(--color-sand);
    opacity: 0.3;
    margin-bottom: 2rem;
    display: block;
}

.empty-wishlist h3 {
    font-size: 1.5rem;
    color: var(--color-marsala);
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.empty-wishlist p {
    font-size: 1.1rem;
    color: #999;
    margin: 0;
}

/* Item Styles - Match Mini Cart */
.mini-wishlist-item {
    display: grid;
    grid-template-columns: 75px 1fr;
    gap: 0.75rem;
    padding: 0.85rem;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mini-wishlist-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--color-sand);
}

.mini-wishlist-item img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    background: #f8f8f8;
    border-radius: 6px;
    padding: 5px;
    align-self: center;
}

.mini-wishlist-item .item-content-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 0.5rem;
    row-gap: 0.25rem;
    align-items: center;
}

.mini-wishlist-item .item-details {
    display: contents;
}

.mini-wishlist-item .item-details h4 {
    grid-row: 1;
    grid-column: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-marsala);
    margin: 0;
    line-height: 1.2;
    align-self: end;
}

.mini-wishlist-item .item-remove {
    grid-row: 1;
    grid-column: 2;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    justify-self: end;
}

.mini-wishlist-item .item-remove:hover {
    color: #d32f2f;
    background: rgba(211, 47, 47, 0.1);
}

.mini-wishlist-item .item-price {
    grid-row: 2;
    grid-column: 1;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-marsala);
    margin: 0;
    align-self: start;
}

/* Footer & Buttons - Match Mini Cart */
.mini-wishlist-footer {
    padding: 0.75rem;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
    flex-shrink: 0;
}

.wishlist-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
}

.btn-add-all-to-cart,
.btn-clear-wishlist {
    padding: 0.65rem;
    font-size: 0.8rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 4px;
}

.btn-add-all-to-cart {
    background: var(--color-marsala);
    color: #fff;
    border: 1px solid var(--color-marsala);
}

.btn-add-all-to-cart:hover {
    background: var(--color-cabernet);
    border-color: var(--color-cabernet);
}

.btn-clear-wishlist {
    background: transparent;
    color: #666;
    border: 1px solid #ccc;
}

.btn-clear-wishlist:hover {
    color: #d32f2f;
    border-color: #d32f2f;
    background: #fff0f0;
}

/* Backdrop */
.mini-wishlist-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.mini-wishlist-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Responsive */
@media (max-width: 500px) {
    .mini-wishlist-sidebar {
        width: 100%;
    }
}

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Ensure smooth transitions */
.mini-wishlist-item {
    animation: fadeIn 0.3s ease-in;
}

