﻿/* wwwroot/css/account.css */
.account-page {
    padding: 2rem 0;
    min-height: 60vh;
    background: var(--bg-secondary);
}

.account-page__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.account-page__content {
    flex: 1;
    min-width: 0;
}

.account-page__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .account-page__inner {
        flex-direction: column;
        padding: 0 1rem;
    }
}

/* ===== ADDRESSES ===== */
.address-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    gap: 1rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px dashed var(--border);
}

.address-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.address-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 1.25rem;
}

.address-card--default {
    border-color: var(--primary);
}

.address-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.address-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.address-card__line {
    font-size: 0.85rem;
    color: #616161;
    margin: 0 0 0.3rem 0;
}

.address-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

/* ===== ORDERS LIST (مخصوص لیست سفارش‌های کاربر) ===== */
.orders-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    gap: 0.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px dashed var(--border);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    display: block;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

    .order-card:hover {
        border-color: var(--primary);
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    }

.order-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.order-card__items {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.order-card__item-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
}

    .order-card__item-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.order-card__more {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.order-card__footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #616161;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}
/* اضافه به wwwroot/css/account.css */

.loyalty-balance-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 14px;
    padding: 1.5rem;
}

.loyalty-balance-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.loyalty-balance-card__label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.loyalty-balance-card__value {
    font-size: 1.6rem;
    font-weight: 800;
}

.loyalty-history {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.loyalty-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

.loyalty-history-item__desc {
    font-weight: 600;
    font-size: 0.88rem;
}

.loyalty-history-item__points {
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.loyalty-history-item__points--positive {
    color: #2e7d32;
}

.loyalty-history-item__points--negative {
    color: #c62828;
}