/* Wishlist Page Styles - Flipkart Style */

.wishlist-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px;
}

.wishlist-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

/* Left Sidebar - Reuse profile sidebar styles */
.wishlist-sidebar-left {
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 112px;
}

.sidebar-user-greeting {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.user-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mobitez-purple) 0%, var(--mobitez-purple-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.user-greeting-text {
    font-size: 16px;
    font-weight: 500;
    color: #212121;
}

.sidebar-section {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #212121;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-link:hover {
    background: #f5f5f5;
    color: var(--mobitez-purple);
}

.sidebar-link i:first-child {
    width: 20px;
    color: #878787;
}

.sidebar-link i:last-child {
    margin-left: auto;
    font-size: 12px;
    color: #878787;
}

.sidebar-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    font-size: 12px;
    font-weight: 600;
    color: #878787;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-section-title i {
    width: 20px;
    color: #878787;
}

.sidebar-submenu {
    padding: 0;
}

.sidebar-submenu-item {
    display: block;
    padding: 12px 20px 12px 52px;
    color: #212121;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-submenu-item:hover {
    background: #f5f5f5;
    color: var(--mobitez-purple);
}

.sidebar-submenu-item.active {
    background: #f3e5f5;
    color: var(--mobitez-purple);
    border-left-color: var(--mobitez-purple);
    font-weight: 500;
}

.sidebar-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: none;
    border: none;
    color: #212121;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.sidebar-logout-btn:hover {
    background: #f5f5f5;
    color: #f44336;
}

.sidebar-logout-btn i {
    width: 20px;
    color: #878787;
}

/* Right Main Content */
.wishlist-main-content {
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

.wishlist-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.wishlist-title {
    font-size: 18px;
    font-weight: 500;
    color: #212121;
    margin: 0;
}

.wishlist-content {
    margin-top: 24px;
}

/* Empty Wishlist */
.empty-wishlist {
    text-align: center;
    padding: 60px 20px;
}

.empty-wishlist-icon {
    font-size: 64px;
    color: #e0e0e0;
    margin-bottom: 16px;
}

.empty-wishlist h2 {
    font-size: 20px;
    font-weight: 500;
    color: #212121;
    margin-bottom: 8px;
}

.empty-wishlist p {
    font-size: 14px;
    color: #878787;
    margin-bottom: 24px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: var(--mobitez-purple);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--mobitez-purple-dark);
}

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

.wishlist-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    background: white;
    transition: box-shadow 0.2s;
    position: relative;
}

.wishlist-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-item-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #878787;
    transition: all 0.2s;
    z-index: 10;
}

.wishlist-item-remove:hover {
    background: #ff6161;
    color: white;
}

.wishlist-item-image-wrapper {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 4px;
    padding: 8px;
}

.wishlist-item-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.wishlist-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.wishlist-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #212121;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-item-name:hover {
    color: var(--mobitez-purple);
}

.wishlist-item-price-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wishlist-item-price {
    font-size: 18px;
    font-weight: 500;
    color: #212121;
}

.wishlist-item-original-price {
    font-size: 14px;
    color: #878787;
    text-decoration: line-through;
}

.wishlist-item-discount {
    font-size: 13px;
    color: #388e3c;
    font-weight: 500;
}

.wishlist-item-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.wishlist-item-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.wishlist-item-btn-add {
    background: linear-gradient(135deg, var(--mobitez-orange) 0%, var(--mobitez-orange-dark) 100%);
    color: white;
}

.wishlist-item-btn-add:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--mobitez-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-spinner p {
    font-size: 14px;
    color: #878787;
    margin: 0;
}

/* Responsive */
@media (max-width: 968px) {
    .wishlist-layout {
        grid-template-columns: 1fr;
    }

    .wishlist-sidebar-left {
        position: relative;
        top: 0;
    }

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

    .wishlist-item-image-wrapper {
        width: 100%;
        height: 200px;
    }

    .wishlist-item-details {
        width: 100%;
    }
}

/* Mobile - Hide sidebar menu (keep it in hamburger menu only) */
@media (max-width: 768px) {
    .wishlist-sidebar-left {
        display: none !important;
    }

    .wishlist-main-content {
        width: 100% !important;
        max-width: 100% !important;
    }
}