/* ===================================
   NexMart - Account & Wishlist CSS
   User account, profile, orders, wishlist
   =================================== */

/* ===================================
   1. ACCOUNT PAGE
   =================================== */
.account-page {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Container already defined in violet-theme.css */

.account-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
}

/* Account Sidebar */
.account-sidebar {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.user-profile {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    font-weight: 700;
}

.user-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.user-email {
    font-size: 13px;
    color: #999;
}

.account-menu {
    list-style: none;
}

.account-menu li {
    margin-bottom: 5px;
}

.account-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.account-menu a:hover {
    background: #f8f9ff;
    color: #667eea;
}

.account-menu a.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    font-weight: 600;
}

.account-menu i {
    font-size: 18px;
    width: 20px;
}

/* Account Content */
.account-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Account Sections */
.account-section {
    display: none;
}

.account-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.account-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.account-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.account-subtitle {
    color: #666;
    font-size: 14px;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e8ebff;
}

.info-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: white;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #667eea;
}

.info-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.info-card-label {
    font-size: 13px;
    color: #666;
}

/* Profile Form */
.profile-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-save {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

.btn-cancel {
    padding: 12px 30px;
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #f8f9fa;
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.order-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.order-id {
    font-weight: 700;
    color: #333;
    font-size: 16px;
}

.order-date {
    color: #999;
    font-size: 13px;
}

.order-status {
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.delivered {
    background: #d4edda;
    color: #155724;
}

.order-status.processing {
    background: #cfe2ff;
    color: #084298;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-items {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.order-total span {
    color: #667eea;
}

.order-actions {
    display: flex;
    gap: 10px;
}

.btn-track,
.btn-details {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-track {
    background: #667eea;
    color: white;
    border: none;
}

.btn-track:hover {
    background: #5568d3;
}

.btn-details {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-details:hover {
    background: #f8f9ff;
}

/* Addresses */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.address-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.address-card.default {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.address-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.address-name {
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.address-details {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.address-actions {
    display: flex;
    gap: 10px;
}

.btn-edit,
.btn-remove {
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #667eea;
    color: white;
    border: none;
}

.btn-remove {
    background: white;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.btn-add-address {
    width: 100%;
    padding: 40px;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.btn-add-address:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.btn-add-address i {
    font-size: 32px;
    color: #667eea;
}

/* ===================================
   2. WISHLIST PAGE
   =================================== */
.wishlist-page {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Container already defined in violet-theme.css */

.wishlist-header {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wishlist-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.wishlist-count {
    color: #999;
    font-size: 14px;
}

.wishlist-actions button {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* Wishlist Grid */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.wishlist-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.wishlist-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.wishlist-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.wishlist-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.wishlist-remove:hover {
    background: #e74c3c;
    color: white;
    transform: scale(1.1);
}

.wishlist-item-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-item-info {
    padding: 20px;
}

.wishlist-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-item-price {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 15px;
}

.wishlist-item-actions {
    display: flex;
    gap: 10px;
}

.btn-add-cart {
    flex: 1;
    padding: 10px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: #5568d3;
}

.btn-view {
    padding: 10px 15px;
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 8px;
    cursor: pointer;
}

/* Empty Wishlist */
.empty-wishlist {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.empty-wishlist-icon {
    font-size: 100px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-wishlist h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.empty-wishlist p {
    color: #666;
    margin-bottom: 25px;
}

/* ===================================
   3. RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .account-container {
        grid-template-columns: 250px 1fr;
    }
    
    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .account-container {
        grid-template-columns: 1fr;
    }
    
    .account-sidebar {
        position: static;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .addresses-grid {
        grid-template-columns: 1fr;
    }
    
    .wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .account-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .account-page,
    .wishlist-page {
        padding: 20px 0;
    }
    
    .account-content,
    .account-sidebar {
        padding: 15px;
    }
    
    .wishlist-grid {
        grid-template-columns: 1fr;
    }
    
    .wishlist-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
