/* ========================================
   WISHLIST STYLES - The Original Lab
   Diseño coherente con el resto del sitio
   ======================================== */

:root {
    --wl-primary: #1a1a2e;
    --wl-accent: #2319de;
    --wl-accent-light: #4f46e5;
    --wl-text: #1f2937;
    --wl-text-light: #6b7280;
    --wl-bg: #f8fafc;
    --wl-white: #ffffff;
    --wl-border: #e5e7eb;
    --wl-success: #10b981;
    --wl-error: #ef4444;
    --wl-warning: #f59e0b;
    --wl-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --wl-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --wl-radius: 12px;
    --wl-radius-lg: 16px;
}

/* ===== CONTAINER ===== */
.wish_insignia__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    min-height: 60vh;
}

/* ===== BREADCRUMB ===== */
.wish_insignia__breadcrumb {
    background: var(--wl-primary);
    padding: 1rem 0;
    margin: 0;
    width: 100%;
}

.wish_insignia__breadcrumb-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.wish_insignia__breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.wish_insignia__breadcrumb a:hover {
    color: #fff;
}

.wish_insignia__breadcrumb-separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.25rem;
}

.wish_insignia__breadcrumb-current {
    color: #fff;
    font-weight: 600;
}

/* ===== HEADER ===== */
.wish_insignia__header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2.5rem 0;
    position: relative;
}

.wish_insignia__header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--wl-accent);
    border-radius: 2px;
}

.wish_insignia__header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--wl-primary);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.wish_insignia__header p {
    font-size: 1rem;
    color: var(--wl-text-light);
    margin: 0;
}

/* ===== COLLECTION/LIST ===== */
.wish_insignia__collection {
    background: var(--wl-white);
    border-radius: var(--wl-radius-lg);
    box-shadow: var(--wl-shadow);
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid var(--wl-border);
}

.wish_insignia__collection-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--wl-primary) 0%, #2d2d4a 100%);
    color: white;
    flex-wrap: wrap;
    gap: 1rem;
}

.wish_insignia__collection-title h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wish_insignia__collection-title h2::before {
    content: '♥';
    color: var(--wl-error);
}

.wish_insignia__collection-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 0.75rem;
    font-weight: 400;
}

.wish_insignia__collection-actions {
    display: flex;
    gap: 0.5rem;
}

/* ===== PRODUCT GRID ===== */
.wish_insignia__product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

/* ===== PRODUCT CARD ===== */
.wish_insignia__product-card {
    background: var(--wl-white);
    border-radius: var(--wl-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--wl-border);
}

.wish_insignia__product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wl-shadow-lg);
    border-color: var(--wl-accent);
}

.wish_insignia__product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--wl-bg);
}

.wish_insignia__product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.wish_insignia__product-card:hover .wish_insignia__product-image img {
    transform: scale(1.05);
}

.wish_insignia__remove-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    background: var(--wl-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: var(--wl-text-light);
    font-size: 0.75rem;
}

.wish_insignia__remove-btn:hover {
    background: var(--wl-error);
    color: white;
    transform: rotate(90deg);
}

.wish_insignia__product-info {
    padding: 1.25rem;
}

.wish_insignia__product-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--wl-accent);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
}

.wish_insignia__product-name {
    font-size: 1rem;
    color: var(--wl-text);
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wish_insignia__product-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.wish_insignia__product-name a:hover {
    color: var(--wl-accent);
}

.wish_insignia__product-price {
    font-size: 1.25rem;
    color: var(--wl-primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.wish_insignia__old-price {
    font-size: 0.9rem;
    color: var(--wl-text-light);
    text-decoration: line-through;
    margin-left: 0.5rem;
    font-weight: 400;
}

.wish_insignia__product-actions {
    display: flex;
    gap: 0.5rem;
}

/* ===== BUTTONS ===== */
.wish_insignia__btn {
    padding: 0.625rem 1rem;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
}

.wish_insignia__btn--primary {
    background: var(--wl-accent);
    color: white;
    flex: 1;
}

.wish_insignia__btn--primary:hover {
    background: var(--wl-accent-light);
    transform: translateY(-1px);
}

.wish_insignia__btn--secondary {
    background: var(--wl-bg);
    color: var(--wl-text);
    border: 1px solid var(--wl-border);
    flex: 1;
}

.wish_insignia__btn--secondary:hover {
    background: var(--wl-border);
    border-color: var(--wl-text-light);
}

.wish_insignia__btn--icon {
    padding: 0.5rem;
    min-width: 36px;
    height: 36px;
    flex: none;
}

.wish_insignia__btn--danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--wl-error);
    border: 1px solid transparent;
}

.wish_insignia__btn--danger:hover {
    background: var(--wl-error);
    color: white;
}

/* ===== EMPTY STATES ===== */
.wish_insignia__empty,
.wish_insignia__empty-all {
    text-align: center;
    padding: 4rem 2rem;
}

.wish_insignia__empty i,
.wish_insignia__empty-all i {
    font-size: 4rem;
    color: var(--wl-border);
    margin-bottom: 1.5rem;
    display: block;
}

.wish_insignia__empty h3,
.wish_insignia__empty-all h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wl-primary);
    margin: 0 0 0.75rem 0;
}

.wish_insignia__empty p,
.wish_insignia__empty-all p {
    font-size: 1rem;
    color: var(--wl-text-light);
    margin: 0 0 2rem 0;
}

.wish_insignia__empty-all .wish_insignia__btn {
    margin: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
}

/* ===== ACTION BAR ===== */
.wish_insignia__action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-top: 1rem;
    border-top: 1px solid var(--wl-border);
    flex-wrap: wrap;
    gap: 1rem;
}

.wish_insignia__action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--wl-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.wish_insignia__action-link:hover {
    background: var(--wl-bg);
    color: var(--wl-accent);
}

.wish_insignia__action-link--danger {
    color: var(--wl-error);
}

.wish_insignia__action-link--danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--wl-error);
}

/* ===== MODALS ===== */
.wishlist-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wishlist-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.wishlist-modal {
    background: var(--wl-white);
    border-radius: var(--wl-radius-lg);
    max-width: 420px;
    width: 100%;
    padding: 2rem;
    box-shadow: var(--wl-shadow-lg);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.wishlist-modal-overlay.show .wishlist-modal {
    transform: scale(1) translateY(0);
}

.wishlist-modal h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.25rem 0;
    color: var(--wl-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wishlist-modal h3 i {
    color: var(--wl-error);
}

.wishlist-modal p {
    color: var(--wl-text-light);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

.wishlist-modal input[type="text"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--wl-border);
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wishlist-modal input[type="text"]:focus {
    outline: none;
    border-color: var(--wl-accent);
    box-shadow: 0 0 0 3px rgba(35, 25, 222, 0.1);
}

.wishlist-modal input[type="hidden"] {
    display: none;
}

.wishlist-modal-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.wishlist-modal-btn {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 0.9rem;
    border: none;
}

.wishlist-modal-btn.cancel {
    background: var(--wl-bg);
    color: var(--wl-text);
}

.wishlist-modal-btn.cancel:hover {
    background: var(--wl-border);
}

.wishlist-modal-btn.confirm {
    background: var(--wl-accent);
    color: white;
}

.wishlist-modal-btn.confirm:hover {
    background: var(--wl-accent-light);
}

.wishlist-modal-btn.danger {
    background: var(--wl-error);
    color: white;
}

.wishlist-modal-btn.danger:hover {
    background: #dc2626;
}

/* Modal Delete Product Preview */
.wishlist-modal .product-preview {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--wl-bg);
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.wishlist-modal .product-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.wishlist-modal .product-preview-info {
    flex: 1;
}

.wishlist-modal .product-preview-name {
    font-weight: 600;
    color: var(--wl-text);
    margin-bottom: 0.25rem;
}

.wishlist-modal .product-preview-list {
    font-size: 0.85rem;
    color: var(--wl-text-light);
}

/* ===== NOTIFICATIONS ===== */

.wishlist-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}


.wishlist-notification.show {
    transform: translateX(0);
}

.wishlist-notification.success {
    background: var(--wl-success);
}

.wishlist-notification.error {
    background: var(--wl-error);
}

.wishlist-notification.warning {
    background: var(--wl-warning);
    color: var(--wl-primary);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-icon {
    font-size: 1.25rem;
    font-weight: 700;
}

.notification-message {
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== DROPDOWN (for products page) ===== */
.wishlist-buttons-container {
    position: relative;
    display: inline-block;
}

.wishlist-dropdown-container {
    position: relative;
    display: none;
    width: 100%;
}

.btn-add-to-wishlist {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--wl-white);
    border: 2px solid var(--wl-border);
    color: var(--wl-text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
    font-family: inherit;
    width: 100%;
    justify-content: center;
}

.btn-add-to-wishlist:hover {
    border-color: var(--wl-error);
    color: var(--wl-error);
    background: rgba(239, 68, 68, 0.05);
}

.btn-add-to-wishlist.active {
    background: var(--wl-error);
    border-color: var(--wl-error);
    color: white;
}

.btn-add-to-wishlist i {
    font-size: 1rem;
    transition: transform 0.2s;
}

.btn-add-to-wishlist.active i {
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
}

.btn-add-to-wishlist-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--wl-white);
    border: 2px solid var(--wl-border);
    color: var(--wl-text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
    font-family: inherit;
    width: 100%;
    justify-content: center;
}

.btn-add-to-wishlist-dropdown:hover {
    border-color: var(--wl-error);
    color: var(--wl-error);
    background: rgba(239, 68, 68, 0.05);
}

.wishlist-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--wl-white);
    border: 1px solid var(--wl-border);
    border-radius: 10px;
    box-shadow: var(--wl-shadow-lg);
    z-index: 1000;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.wishlist-dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.wishlist-dropdown-header {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--wl-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--wl-primary);
}

.wishlist-dropdown-close {
    width: 26px;
    height: 26px;
    background: var(--wl-bg);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wl-text-light);
    transition: all 0.2s;
    font-size: 0.75rem;
}

.wishlist-dropdown-close:hover {
    background: var(--wl-error);
    color: white;
}

.wishlist-dropdown-lists {
    max-height: 200px;
    overflow-y: auto;
}

.wishlist-dropdown-loading {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--wl-text-light);
}

.wishlist-dropdown-loading i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--wl-border);
}

.wishlist-dropdown-loading p {
    margin: 0 0 0.25rem 0;
    font-weight: 500;
}

.wishlist-dropdown-loading small {
    font-size: 0.8rem;
    color: var(--wl-text-light);
}

.wishlist-list-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--wl-bg);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wishlist-list-item:hover {
    background: var(--wl-bg);
}

.wishlist-list-item:last-child {
    border-bottom: none;
}

.wishlist-list-name {
    font-size: 0.9rem;
    color: var(--wl-text);
    font-weight: 500;
}

.wishlist-list-item.added {
    background: rgba(16, 185, 129, 0.1);
}

.wishlist-list-item.added .wishlist-list-name {
    color: var(--wl-success);
}

.wishlist-list-item.added::after {
    content: '✓';
    color: var(--wl-success);
    font-weight: bold;
}

.wishlist-dropdown-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--wl-border);
}

.wishlist-create-new-btn {
    width: 100%;
    padding: 0.625rem 1rem;
    background: var(--wl-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: inherit;
}

.wishlist-create-new-btn:hover {
    background: var(--wl-accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .wishlist-notification {
        right: 10px;
        left: 10px;
        top: 10px;
    }
    .wish_insignia__container {
        padding: 1.5rem 1rem 3rem;
    }

    .wish_insignia__header h1 {
        font-size: 2rem;
    }

    .wish_insignia__collection-title {
        padding: 1rem;
    }

    .wish_insignia__collection-title h2 {
        font-size: 1.1rem;
    }

    .wish_insignia__product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .wish_insignia__action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .wish_insignia__action-link {
        justify-content: center;
    }

    .wishlist-modal {
        padding: 1.5rem;
        margin: 1rem;
    }

    .wishlist-modal-buttons {
        flex-direction: column-reverse;
    }

    .wishlist-modal-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .wish_insignia__header h1 {
        font-size: 1.75rem;
    }

    .wish_insignia__product-grid {
        grid-template-columns: 1fr;
    }

    .wish_insignia__product-actions {
        flex-direction: column;
    }

    .wish_insignia__btn {
        width: 100%;
    }
}