﻿/* WooCommerce My Account Page Styles */

/* Main Container */
.my-account-page {
    background: #F8F9FA;
    min-height: 100vh;
    padding: 30px 0;
}

/* Header Styles */
.my-account-header {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.my-account-header .page-title {
    color: var(--secondary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'iranyekan', sans-serif;
}

.my-account-header .breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.my-account-header .breadcrumb-link {
    color: #8E98A8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.my-account-header .breadcrumb-link:hover {
    color: var(--primary-color);
}

.my-account-header .current-page {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Navigation Styles */
.my-account-navigation {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.woocommerce-MyAccount-navigation {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 10px;
}

.woocommerce-MyAccount-navigation a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: #8E98A8;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'iranyekan', sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.woocommerce-MyAccount-navigation a:hover {
    background: #F8F9FA;
    color: var(--secondary-color);
    transform: translateX(-5px);
}

.woocommerce-MyAccount-navigation a.is-active {
    background: var(--secondary-color);
    color: white;
}

.woocommerce-MyAccount-navigation a i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Content Styles */
.my-account-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Dashboard Styles */
.dashboard-welcome {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.welcome-message {
    display: flex;
    align-items: center;
    gap: 20px;
}

.welcome-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.welcome-text h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
}

.welcome-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

.dashboard-description {
    margin-bottom: 30px;
}

.description-card {
    background: #F8F9FA;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 18px;
    flex-shrink: 0;
}

.card-content p {
    margin: 0;
    color: #6C757D;
    line-height: 1.6;
}

.dashboard-actions {
    margin-top: 30px;
}

.dashboard-action-card {
    background: white;
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
    height: 100%;
}

.dashboard-action-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(var(--primary-rgb), 0.2);
    text-decoration: none;
    color: inherit;
}

.action-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 24px;
    margin-bottom: 15px;
}

.action-content h4 {
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.action-content p {
    color: #8E98A8;
    margin: 0;
    font-size: 14px;
}

/* Form Styles */
.login-register-container {
    max-width: 1200px;
    margin: 0 auto;
}

.login-form-container,
.register-form-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    margin: 0 auto 20px;
}

.form-header h2 {
    color: var(--secondary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-header p {
    color: #8E98A8;
    margin: 0;
    font-size: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 14px;
}

.form-group .required {
    color: #EB4343;
}

.form-group .form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E9ECEF;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'iranyekan', sans-serif;
    transition: all 0.3s ease;
    background: #FFFFFF;
}

.form-group .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.form-check-label {
    color: #6C757D;
    font-size: 14px;
    margin: 0;
}

.form-text {
    font-size: 12px;
    color: #8E98A8;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.forgot-password-link {
    color: #8E98A8;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #E9ECEF;
}

/* Edit Account Styles */
.edit-account-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background: #F8F9FA;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.section-title i {
    color: var(--primary-color);
    font-size: 24px;
}

/* Orders Table Styles */
.orders-container {
    max-width: 100%;
}

.orders-header {
    text-align: center;
    margin-bottom: 30px;
}

.orders-header h2 {
    color: var(--secondary-color);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.orders-header p {
    color: #8E98A8;
    margin: 0;
    font-size: 16px;
}

.orders-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.account-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.account-orders-table thead {
    background: #F8F9FA;
}

.account-orders-table th {
    padding: 20px 15px;
    text-align: right;
    font-weight: 700;
    color: var(--secondary-color);
    border-bottom: 2px solid #E9ECEF;
    font-size: 14px;
}

.account-orders-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #E9ECEF;
    vertical-align: middle;
}

.account-orders-table tbody tr:hover {
    background: #F8F9FA;
}

.order-number-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.order-number-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.order-date {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6C757D;
    font-size: 14px;
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    display: inline-block;
}

.status-completed {
    background: #D4EDDA;
    color: #155724;
}

.status-processing {
    background: #FFF3CD;
    color: #856404;
}

.status-on-hold {
    background: #F8D7DA;
    color: #721C24;
}

.status-cancelled {
    background: #F8D7DA;
    color: #721C24;
}

.status-failed {
    background: #F8D7DA;
    color: #721C24;
}

.order-total {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 14px;
}

.order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.order-action-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.order-action-btn:hover {
    transform: translateY(-1px);
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.pagination-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* No Orders Message */
.no-orders-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.no-orders-icon {
    width: 100px;
    height: 100px;
    background: #F8F9FA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8E98A8;
    font-size: 48px;
    margin: 0 auto 30px;
}

.no-orders-message h3 {
    color: var(--secondary-color);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.no-orders-message p {
    color: #8E98A8;
    font-size: 16px;
    margin-bottom: 30px;
}

.browse-products-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.browse-products-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-info {
    background: #E3F2FD;
    color: #0D47A1;
    border: 1px solid #BBDEFB;
}

/* Additional Form Styles */
.lost-password-container,
.reset-password-container {
    max-width: 600px;
    margin: 0 auto;
}

.lost-password-message,
.reset-password-message {
    margin-bottom: 30px;
}

.back-to-login-link {
    color: #8E98A8;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.back-to-login-link:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.edit-address-container {
    max-width: 800px;
    margin: 0 auto;
}

.edit-address-form {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* WooCommerce Form Field Overrides */
.woocommerce form .form-row label {
    display: block;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 14px;
}

.woocommerce form .form-row .required {
    color: #EB4343;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E9ECEF;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'iranyekan', sans-serif;
    transition: all 0.3s ease;
    background: #FFFFFF;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.woocommerce form .form-row .woocommerce-error {
    color: #EB4343;
    background: #F8D7DA;
    border: 1px solid #F5C6CB;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 5px;
    font-size: 14px;
}

.woocommerce form .form-row .woocommerce-message {
    color: #155724;
    background: #D4EDDA;
    border: 1px solid #C3E6CB;
    padding: 10px 15px;
    border-radius: 8px;
    margin-top: 5px;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .my-account-page {
        padding: 20px 0;
    }
    
    .my-account-header {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .my-account-header .page-title {
        font-size: 24px;
    }
    
    .my-account-content {
        padding: 20px;
    }
    
    .dashboard-welcome {
        padding: 20px;
    }
    
    .welcome-message {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .welcome-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .description-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .card-icon {
        margin: 0 auto;
    }
    
    .login-form-container,
    .register-form-container {
        padding: 30px 20px;
    }
    
    .form-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .orders-table-container {
        overflow-x: auto;
    }
    
    .account-orders-table {
        min-width: 600px;
    }
    
    .account-orders-table th,
    .account-orders-table td {
        padding: 15px 10px;
        font-size: 13px;
    }
    
    .order-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .order-action-btn {
        width: 100%;
        text-align: center;
    }
    
    .edit-address-form {
        padding: 20px;
    }
    
    .lost-password-container,
    .reset-password-container {
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .dashboard-action-card {
        padding: 20px;
    }
    
    .action-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .action-content h4 {
        font-size: 16px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .no-orders-message {
        padding: 40px 20px;
    }
    
    .no-orders-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
    }
    
    .no-orders-message h3 {
        font-size: 20px;
    }
}


