/* Account Page Styles */

/* Account Dashboard */
.account-dashboard {
    padding: 60px 0;
}

.account-header {
    margin-bottom: 40px;
}

.account-welcome {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.account-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--color-secondary, #c9a980);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 2rem;
    font-weight: 600;
}

.account-welcome-text h1 {
    margin-bottom: 5px;
    font-size: 2rem;
}

.account-welcome-text p {
    color: var(--color-text, #666);
}

.account-tabs {
    display: flex;
    border-bottom: 1px solid var(--color-border, #e5e5e5);
    margin-bottom: 30px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.account-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.account-tab {
    padding: 15px 25px;
    font-weight: 500;
    color: var(--color-text, #666);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.account-tab:hover {
    color: var(--color-dark, #111);
}

.account-tab.active {
    color: var(--color-dark, #111);
    border-bottom-color: var(--color-secondary, #c9a980);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--color-white, #fff);
    border-radius: var(--radius-md, 8px);
    padding: 25px;
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.05));
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.08));
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full, 50%);
    background-color: var(--color-light, #f8f8f8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--color-secondary, #c9a980);
    font-size: 1.25rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--color-dark, #111);
}

.stat-label {
    color: var(--color-text, #666);
    font-size: 0.9rem;
}

/* Orders Table */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.orders-table th {
    text-align: left;
    padding: 15px;
    background-color: var(--color-light, #f8f8f8);
    border-bottom: 1px solid var(--color-border, #e5e5e5);
    font-weight: 600;
    color: var(--color-dark, #111);
}

.orders-table td {
    padding: 15px;
    border-bottom: 1px solid var(--color-border, #e5e5e5);
}

.orders-table tr:last-child td {
    border-bottom: none;
}

.orders-table tr:hover td {
    background-color: var(--color-light, #f8f8f8);
}

.order-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.8rem;
    font-weight: 500;
}

.status-delivered {
    background-color: #e6f7ed;
    color: #2ecc71;
}

.status-processing {
    background-color: #e9f4fd;
    color: #3498db;
}

.status-canceled {
    background-color: #fde9e9;
    color: #e74c3c;
}

/* Address Cards */
.address-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.address-card {
    background-color: var(--color-white, #fff);
    border-radius: var(--radius-md, 8px);
    padding: 20px;
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.05));
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border, #e5e5e5);
}

.address-card:hover {
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.08));
}

.address-type {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--color-light, #f8f8f8);
    border-radius: var(--radius-sm, 4px);
    font-size: 0.8rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.address-default {
    background-color: var(--color-secondary, #c9a980);
    color: white;
}

.address-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.address-action-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--color-light, #f8f8f8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text, #666);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.address-action-btn:hover {
    background-color: var(--color-dark, #111);
    color: white;
}

.address-content {
    line-height: 1.6;
}

.address-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.address-details, .address-contact {
    color: var(--color-text, #666);
    margin-bottom: 10px;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.payment-card {
    background-color: var(--color-white, #fff);
    border-radius: var(--radius-md, 8px);
    padding: 20px;
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.05));
    position: relative;
    border: 1px solid var(--color-border, #e5e5e5);
    transition: all 0.3s ease;
}

.payment-card:hover {
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.08));
}

.payment-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.payment-card-logo {
    width: 40px;
    height: 30px;
    background-color: var(--color-light, #f8f8f8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    border-radius: var(--radius-sm, 4px);
}

.payment-card-logo i {
    font-size: 1rem;
    color: var(--color-primary, #0a0a0a);
}

.payment-card-type {
    font-weight: 600;
}

.payment-card-number {
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.payment-card-name {
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 5px;
    color: var(--color-text, #666);
}

.payment-card-expiry {
    font-size: 0.8rem;
    color: var(--color-text, #666);
}

.payment-card-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

/* Account Settings */
.account-settings {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group {
    display: flex;
    gap: 15px;
}

.input-group .form-group {
    flex: 1;
}

/* Wishlist */
.wishlist-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wishlist-item {
    background-color: var(--color-white, #fff);
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.05));
    transition: all 0.3s ease;
    position: relative;
}

.wishlist-item:hover {
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.08));
    transform: translateY(-5px);
}

.tab-content#wishlist .wishlist-item .wishlist-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.wishlist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.wishlist-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

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

.wishlist-content {
    padding: 15px;
}

.wishlist-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wishlist-price {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-secondary, #c9a980);
}

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

.wishlist-btn {
    flex: 1;
    padding: 8px 5px;
    font-size: 0.8rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 50px 0;
}

.empty-state i {
    font-size: 3rem;
    color: var(--color-border, #e5e5e5);
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--color-text, #666);
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Bottom Actions */
.account-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border, #e5e5e5);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--color-white, #fff);
    border-radius: var(--radius-md, 8px);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--color-light, #f8f8f8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text, #666);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--color-dark, #111);
    color: white;
}

.btn-full {
    width: 100%;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .account-tab {
        padding: 15px 20px;
    }
}

@media (max-width: 768px) {
    .account-dashboard {
        padding: 40px 0;
    }
    
    .input-group {
        flex-direction: column;
        gap: 0;
    }
    
    .account-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .account-actions button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .account-tab {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .account-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .account-welcome-text h1 {
        font-size: 1.5rem;
    }
    
    .orders-table {
        display: block;
        overflow-x: auto;
    }
}