/* Favourite Page Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #7b5244 0%, #5a3d32 100%);
    color: white;
    padding: 60px 0 40px;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

/* Wishlist Section */
.wishlist-section {
    padding: 40px 0 80px;
    min-height: 50vh;
}

/* Wishlist Header */
.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

@media (max-width: 768px) {
    .wishlist-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

.wishlist-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--main-black-color);
}

.wishlist-header h2 span {
    color: var(--main-color);
}

.clear-wishlist {
    padding: 12px 24px;
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-wishlist:hover {
    background: #dc3545;
    color: white;
}

/* Wishlist Grid */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

/* Wishlist Item */
.wishlist-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    animation: fadeInUp 0.3s ease;
}

.wishlist-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wishlist-item .item-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #f9f9f9;
}

.wishlist-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.wishlist-item:hover .item-image img {
    transform: scale(1.05);
}

.wishlist-item .remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    font-size: 16px;
}

.wishlist-item .remove-btn:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
}

.wishlist-item .item-details {
    padding: 20px;
}

.wishlist-item .rating {
    color: orange;
    font-size: 14px;
    margin-bottom: 8px;
}

.wishlist-item .item-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--main-black-color);
    margin-bottom: 10px;
    text-transform: capitalize;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-item .item-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 15px;
}

.wishlist-item .item-actions {
    display: flex;
    gap: 10px;
}

.wishlist-item .btn-move-cart {
    flex: 1;
    padding: 12px;
    background: var(--main-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wishlist-item .btn-move-cart:hover {
    background: #5a3d32;
}

.wishlist-item .btn-view {
    padding: 12px 16px;
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.wishlist-item .btn-view:hover {
    background: var(--opac-main-color);
}

/* Empty Wishlist */
.empty-wishlist {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.empty-wishlist i {
    font-size: 120px;
    margin-bottom: 30px;
    color: #ddd;
}

.empty-wishlist h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #666;
}

.empty-wishlist p {
    font-size: 16px;
    margin-bottom: 30px;
}

.btn-browse {
    display: inline-block;
    padding: 15px 40px;
    background: var(--main-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-browse:hover {
    background: #5a3d32;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 82, 68, 0.3);
}