/* ========================================
   Wishlist Page Styles
   ======================================== */

.wishlist-section {
    padding: 60px 20px;
    background: #ffffff;
    min-height: 100vh;
}

.wishlist-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.wishlist-header {
    text-align: center;
    margin-bottom: 50px;
    animation: slideDown 0.6s ease-out;
}

.wishlist-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.wishlist-subtitle {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Wishlist Content */
.wishlist-content {
    min-height: 400px;
    margin-bottom: 40px;
}

/* Wishlist Products Grid */
.wishlist-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Product Card in Wishlist */
.wishlist-product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.wishlist-product-card:hover {
    border-color: #c41e3a;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.1);
    transform: translateY(-4px);
}

/* Product Image */
.wishlist-product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}

/* Product Info */
.wishlist-product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.wishlist-product-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.4;
    min-height: 2.8em;
}

.wishlist-product-name a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wishlist-product-name a:hover {
    color: #c41e3a;
}

.wishlist-product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.5;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #c41e3a;
    margin-bottom: 15px;
}

/* Product Actions */
.wishlist-product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-add-to-cart-wish {
    flex: 1;
    min-width: 120px;
    padding: 10px 12px;
    background: #c41e3a;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
}

.btn-add-to-cart-wish:hover {
    background: #a01729;
    transform: scale(1.02);
}

.btn-remove-wish {
    width: 40px;
    height: 40px;
    padding: 0;
    background: #f5f5f5;
    color: #c41e3a;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-wish:hover {
    background: #c41e3a;
    color: white;
    border-color: #c41e3a;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-spinner i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    color: #c41e3a;
}

/* Empty Wishlist */
.empty-wishlist {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    text-align: center;
}

.empty-wishlist-content {
    max-width: auto;
}

.empty-wishlist-content i {
    font-size: 4rem;
    color: #e0e0e0;
    margin-bottom: 20px;
    display: block;
}

.empty-wishlist-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.empty-wishlist-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Wishlist Actions */
.wishlist-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.wishlist-actions .btn {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wishlist-actions .btn-outline-secondary {
    background: white;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}

.wishlist-actions .btn-outline-secondary:hover {
    background: #1a1a1a;
    color: white;
}

.wishlist-actions .btn-danger {
    background: #e74c3c;
    color: white;
    border: 2px solid #e74c3c;
}

.wishlist-actions .btn-danger:hover {
    background: #c0392b;
    border-color: #c0392b;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.wishlist-product-card {
    animation: fadeIn 0.4s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wishlist-products {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }

    .wishlist-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .wishlist-section {
        padding: 40px 15px;
    }

    .wishlist-products {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }

    .wishlist-title {
        font-size: 1.8rem;
    }

    .wishlist-subtitle {
        font-size: 0.9rem;
    }

    .wishlist-header {
        margin-bottom: 30px;
    }

    .wishlist-product-image {
        height: 200px;
    }

    .wishlist-product-info {
        padding: 15px;
    }

    .wishlist-product-actions {
        flex-direction: row;
    }

    .btn-remove-wish {
        width: 100%;
    }

    .wishlist-actions {
        flex-direction: column;
    }

    .wishlist-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .wishlist-products {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .wishlist-title {
        font-size: 1.5rem;
    }

    .wishlist-product-image {
        height: 150px;
    }

    .wishlist-product-info {
        padding: 12px;
    }

    .wishlist-product-name {
        font-size: 0.9rem;
    }

    .wishlist-product-price {
        font-size: 1.1rem;
    }

    .btn-add-to-cart-wish {
        font-size: 0.8rem;
        padding: 8px 10px;
        min-width: 60px;
        flex: 1;
    }

    .btn-add-to-cart-wish .product-text {
        display: none;
    }

    .btn-remove-wish {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .empty-wishlist-content i {
        font-size: 3rem;
    }

    .empty-wishlist-content h2 {
        font-size: 1.4rem;
    }
}
