/* ===== Account Page Styles ===== */

.account-main {
    padding: 40px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
    min-height: calc(100vh - 200px);
}

.account-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar */
.account-sidebar {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar i {
    font-size: 30px;
    color: white;
}

.user-info h3 {
    font-size: 16px;
    color: #2c1810;
    margin-bottom: 3px;
}

.user-info p {
    font-size: 13px;
    color: #888;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.account-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.account-nav .nav-item:hover {
    background: #f5f5f5;
    color: #e42b26;
}

.account-nav .nav-item.active {
    background: linear-gradient(135deg, #e42b26 0%, #ff6b35 100%);
    color: white;
}

.account-nav .nav-item i {
    width: 20px;
    text-align: center;
}

.account-nav .logout-btn {
    margin-top: 15px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.account-nav .logout-btn:hover {
    background: #fff5f5;
    color: #e74c3c;
}

/* Main Content */
.account-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #2c1810;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.content-section h2 i {
    color: #e42b26;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-icon.orders-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stat-icon.wishlist-icon {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.stat-icon.cart-icon {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
}

.stat-icon.spent-icon {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.stat-info h3 {
    font-size: 1.5rem;
    color: #2c1810;
    margin-bottom: 3px;
}

.stat-info p {
    font-size: 13px;
    color: #888;
}

/* Recent Orders */
.recent-orders {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #2c1810;
}

.section-header h3 i {
    color: #e42b26;
}

.view-all {
    color: #e42b26;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-all:hover {
    text-decoration: underline;
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.order-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: #e42b26;
}

.order-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.order-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.order-details h4 {
    font-size: 15px;
    color: #2c1810;
    margin-bottom: 5px;
}

.order-details p {
    font-size: 13px;
    color: #888;
}

.order-meta {
    text-align: right;
}

.order-total {
    font-size: 16px;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 5px;
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.confirmed {
    background: #e8f5e9;
    color: #27ae60;
}

.order-status.processing {
    background: #fff3e0;
    color: #f39c12;
}

.order-status.shipped {
    background: #e3f2fd;
    color: #2196f3;
}

.order-status.delivered {
    background: #e8f5e9;
    color: #27ae60;
}

.order-status.cancelled {
    background: #ffebee;
    color: #e74c3c;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    color: #ddd;
}

/* Wishlist Grid */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.wishlist-item {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wishlist-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.wishlist-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.wishlist-item-info {
    padding: 15px;
}

.wishlist-item-info h4 {
    font-size: 14px;
    color: #2c1810;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-item-info .price {
    font-weight: 700;
    color: #27ae60;
}

.wishlist-item-actions {
    display: flex;
    gap: 10px;
    padding: 0 15px 15px;
}

.wishlist-item-actions button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-to-cart {
    background: linear-gradient(135deg, #e42b26 0%, #ff6b35 100%);
    color: white;
}

.btn-remove-wishlist {
    background: #f5f5f5;
    color: #666;
}

/* Account Form */
.account-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #e42b26;
    box-shadow: 0 0 0 4px rgba(228, 43, 38, 0.1);
}

.radio-group {
    display: flex;
    gap: 25px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #e42b26 0%, #ff6b35 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(228, 43, 38, 0.3);
}

/* Addresses Grid */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.address-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.address-card:hover {
    border-color: #e42b26;
}

.address-card.default {
    border-color: #27ae60;
}

.address-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #e42b26;
    color: white;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

.address-card h4 {
    font-size: 15px;
    color: #2c1810;
    margin-bottom: 8px;
}

.address-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.address-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.address-actions button {
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-address {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f5f5f5;
    border: 2px dashed #ccc;
    border-radius: 10px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-address:hover {
    border-color: #e42b26;
    color: #e42b26;
    background: #fff5f5;
}

.section-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* Responsive */
@media (max-width: 992px) {
    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .addresses-grid {
        grid-template-columns: 1fr;
    }

    .order-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .order-meta {
        text-align: center;
    }
}