/* Wishlist Page Styles */
.wishlist-section {
    background-color: #f9f9f9;
    min-height: 80vh;
    padding: 60px 0;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: #f5f5f5;
    color: #3b82f6;
}

.mobile-menu-toggle i {
    display: block;
}

/* Mobile Account Header */
.mobile-account-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.mobile-user-info {
    display: flex;
    align-items: center;
}

.mobile-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    border: 2px solid #f0f0f0;
}

.mobile-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-user-details h5 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 2px 0;
    color: #1f2937;
}

.mobile-user-details p {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

/* Account Sidebar */
.account-sidebar {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    position: sticky;
    top: 20px;
}

.account-user {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.account-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid #f0f0f0;
}

.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.account-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.account-info p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.account-menu {
    display: flex;
    flex-direction: column;
}

.account-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    margin-bottom: 5px;
}

.account-menu-item i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.account-menu-item:hover {
    background-color: #f5f5f5;
    color: #3b82f6;
}

.account-menu-item.active {
    background-image: linear-gradient(to right, #3b82f6, #0d9488);
    color: white;
}

.account-menu-item.logout {
    margin-top: 20px;
    color: #ef4444;
}

.account-menu-item.logout:hover {
    background-color: #fef2f2;
}

/* Wishlist Content */
.wishlist-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.wishlist-header {
    margin-bottom: 30px;
}

.wishlist-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.wishlist-header p {
    color: #666;
    margin: 0;
}

/* Wishlist Actions */
.wishlist-actions {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.wishlist-count {
    color: #666;
}

/* Wishlist Items */
.wishlist-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wishlist-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.wishlist-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.wishlist-item-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.wishlist-item-image img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s;
}

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

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 1;
}

.item-category {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 5px;
    text-transform: capitalize;
}

.item-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.item-title a:hover {
    color: #3b82f6;
}

.rating-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.item-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.85rem;
    color: #666;
}

.item-date {
    color: #666;
}

.item-status {
    display: flex;
    align-items: center;
    gap: 5px;
}

.item-status.in-stock {
    color: #10b981;
}

.item-status.out-of-stock {
    color: #ef4444;
}

.wishlist-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.original-price {
    font-size: 0.9rem;
    color: #888;
    text-decoration: line-through;
}

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

/* Empty Wishlist */
.empty-wishlist {
    padding: 50px 0;
}

.empty-wishlist-icon {
    color: #ccc;
}

/* Share Wishlist */
.share-wishlist .card {
    border: 1px dashed #3b82f6;
    border-radius: 10px;
    background-color: #f0f7ff;
    margin-top: 30px;
}

.share-wishlist .card-title {
    color: #3b82f6;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Recently Viewed Section */
.recently-viewed {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-image: linear-gradient(to right, #3b82f6, #0d9488);
}

/* Product Cards - Small */
.product-card.small {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    height: 100%;
}

.product-card.small:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image-container {
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 1;
}

.product-badge.sale {
    background-color: #ef4444;
    color: white;
}

.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.product-action-btn:hover {
    background-color: #3b82f6;
    color: white;
}

.product-info {
    padding: 15px;
}

.product-category {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 5px;
    text-transform: capitalize;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.product-price {
    font-weight: 700;
    color: #333;
}

.product-original-price {
    font-size: 0.85rem;
    color: #888;
    text-decoration: line-through;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .account-sidebar {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Show mobile account header */
    .mobile-account-header {
        display: flex;
    }
    
    /* Hide desktop sidebar on mobile */
    .account-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        z-index: 1000;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    /* Ensure avatar images are visible in mobile sidebar */
    .account-sidebar .account-avatar img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        max-width: 100% !important;
        height: auto !important;
    }
    
    .account-sidebar.active {
        left: 0;
    }
    
    /* Mobile overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Close button for mobile sidebar */
    .mobile-sidebar-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #666;
        cursor: pointer;
        padding: 5px;
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    
    .mobile-sidebar-close:hover {
        background-color: #f5f5f5;
        color: #ef4444;
    }

    .wishlist-item {
        padding: 15px;
    }
    
    .wishlist-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .wishlist-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .wishlist-buttons .btn {
        width: 100%;
    }
    
    .share-buttons {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .wishlist-section {
        padding: 30px 0;
    }
    
    .wishlist-content {
        padding: 20px 15px;
    }
    
    .wishlist-header h2 {
        font-size: 1.5rem;
    }
    
    .item-title {
        font-size: 1rem;
    }
    
    .current-price {
        font-size: 1rem;
    }
}