/**
 * WrickX Wishlist Styles
 * Version: 1.0
 */

/* ===================================
   WISHLIST BUTTON STYLES
   =================================== */

.wrickx-wishlist-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.wrickx-wishlist-btn:hover {
    border-color: #d94b46;
    background: #fff5f5;
}

.wrickx-wishlist-btn.active {
    border-color: #d94b46;
    background: #d94b46;
}

.wrickx-wishlist-btn .wrickx-wishlist-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0.2);
    transition: filter 0.3s ease;
}

.wrickx-wishlist-btn:hover .wrickx-wishlist-icon,
.wrickx-wishlist-btn.active .wrickx-wishlist-icon {
    filter: brightness(0) invert(1);
}

.wrickx-wishlist-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===================================
   WISHLIST PAGE - LOGIN REQUIRED
   =================================== */

.wrickx-wishlist-login-required {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.wrickx-wishlist-empty-icon {
    margin-bottom: 24px;
    color: #d94b46;
}

.wrickx-wishlist-empty-icon svg {
    width: 80px;
    height: 80px;
    opacity: 0.8;
}

.wrickx-wishlist-login-required h2,
.wrickx-wishlist-empty h2 {
    font-size: 28px;
    margin: 0 0 16px 0;
    color: #1f2937;
}

.wrickx-wishlist-login-required p,
.wrickx-wishlist-empty p {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.wrickx-login-button,
.wrickx-wishlist-empty .button {
    display: inline-block;
    background: #d94b46;
    color: white !important;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s ease;
    border: none;
}

.wrickx-login-button:hover,
.wrickx-wishlist-empty .button:hover {
    background: #c43d38;
}

/* ===================================
   WISHLIST PAGE - EMPTY STATE
   =================================== */

.wrickx-wishlist-empty {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

/* ===================================
   WISHLIST PAGE - PRODUCTS GRID
   =================================== */

.wrickx-wishlist-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.wrickx-wishlist-title {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.wrickx-wishlist-count {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 32px;
}

.wrickx-wishlist-products {
    display: grid;
    gap: 24px;
}

.wrickx-wishlist-item {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 20px;
    padding: 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: box-shadow 0.3s ease;
}

.wrickx-wishlist-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.wrickx-wishlist-item-image {
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    background: #f9fafb;
}

.wrickx-wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wrickx-wishlist-item-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.wrickx-wishlist-item-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.wrickx-wishlist-item-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wrickx-wishlist-item-title a:hover {
    color: #d94b46;
}

.wrickx-wishlist-item-price {
    font-size: 20px;
    font-weight: 700;
    color: #d94b46;
}

.wrickx-wishlist-item-price del {
    font-size: 16px;
    color: #9ca3af;
    margin-right: 8px;
}

.wrickx-wishlist-item-stock {
    font-size: 14px;
}

.wrickx-wishlist-item-stock .in-stock {
    color: #10b981;
    font-weight: 500;
}

.wrickx-wishlist-item-stock .out-of-stock {
    color: #ef4444;
    font-weight: 500;
}

.wrickx-wishlist-item-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    align-items: flex-end;
}

.wrickx-wishlist-item-actions .button,
.wrickx-wishlist-item-actions .wrickx-add-to-cart {
    background: #d94b46;
    color: white !important;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.wrickx-wishlist-item-actions .button:hover,
.wrickx-wishlist-item-actions .wrickx-add-to-cart:hover {
    background: #c43d38;
}

.wrickx-remove-from-wishlist {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.wrickx-remove-from-wishlist:hover {
    background: #fef2f2;
    color: #ef4444;
    border-color: #ef4444;
}

.wrickx-remove-from-wishlist svg {
    width: 16px;
    height: 16px;
}

.wrickx-remove-from-wishlist:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .wrickx-wishlist-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .wrickx-wishlist-item-image {
        width: 100%;
        height: 200px;
        margin: 0 auto;
    }
    
    .wrickx-wishlist-item-details {
        text-align: center;
    }
    
    .wrickx-wishlist-item-actions {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    
    .wrickx-wishlist-title {
        font-size: 24px;
    }
    
    .wrickx-wishlist-container {
        padding: 24px 16px;
    }
}

@media (max-width: 480px) {
    .wrickx-wishlist-item-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .wrickx-wishlist-item-actions .button,
    .wrickx-wishlist-item-actions .wrickx-add-to-cart,
    .wrickx-remove-from-wishlist {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes wishlistFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wrickx-wishlist-item {
    animation: wishlistFadeIn 0.3s ease;
}

.wrickx-wishlist-item:nth-child(1) { animation-delay: 0s; }
.wrickx-wishlist-item:nth-child(2) { animation-delay: 0.05s; }
.wrickx-wishlist-item:nth-child(3) { animation-delay: 0.1s; }
.wrickx-wishlist-item:nth-child(4) { animation-delay: 0.15s; }
.wrickx-wishlist-item:nth-child(5) { animation-delay: 0.2s; }
