/* Основные стили личного кабинета */
.account-page {
    padding: 30px 0 60px;
}

.breadcrumbs {
    background: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumbs ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
}

.breadcrumbs li {
    margin-right: 10px;
    color: #6c757d;
}

.breadcrumbs li:after {
    content: '/';
    margin-left: 10px;
    color: #6c757d;
}

.breadcrumbs li:last-child:after {
    display: none;
}

.breadcrumbs a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #0056b3;
}

/* Макет личного кабинета */
.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Боковая панель */
.account-sidebar {
    position: relative;
}

.profile-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f8f9fa;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-edit {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.avatar-edit:hover {
    background: #0056b3;
}

.profile-info h3 {
    font-size: 18px;
    margin: 0 0 5px;
    color: #212529;
}

.profile-email {
    font-size: 14px;
    color: #6c757d;
    margin: 0 0 10px;
}

.profile-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.profile-rating .stars {
    color: #ffc107;
}

.profile-rating .rating-value {
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
}

/* Меню аккаунта */
.account-menu {
    background: white;
    border-radius: 8px;
    padding: 15px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.account-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.account-menu li {
    margin-bottom: 5px;
}

.account-menu li:last-child {
    margin-bottom: 0;
    border-top: 1px solid #f8f9fa;
    padding-top: 10px;
    margin-top: 10px;
}

.account-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.account-menu a:hover {
    color: #007bff;
    background: rgba(0,123,255,0.05);
}

.account-menu a.active {
    color: #007bff;
    background: rgba(0,123,255,0.05);
    font-weight: 500;
}

.account-menu a.active:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #007bff;
    border-radius: 0 3px 3px 0;
}

.account-menu i {
    width: 24px;
    text-align: center;
    margin-right: 10px;
    font-size: 16px;
}

.account-menu .badge {
    margin-left: auto;
    background: #007bff;
    color: white;
    font-size: 12px;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Основное содержимое */
.account-content {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f8f9fa;
}

.account-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #212529;
}

.search-box {
    position: relative;
    width: 250px;
}

.search-box input {
    width: 100%;
    padding: 8px 15px 8px 35px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-box .search-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.stat-icon.primary {
    background: #007bff;
}

.stat-icon.success {
    background: #28a745;
}

.stat-icon.warning {
    background: #ffc107;
}

.stat-icon.danger {
    background: #dc3545;
}

.stat-info h3 {
    font-size: 24px;
    margin: 0 0 5px;
    color: #212529;
}

.stat-info p {
    font-size: 14px;
    margin: 0;
    color: #6c757d;
}

/* Секции аккаунта */
.account-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 18px;
    margin: 0;
    color: #212529;
}

.view-all {
    font-size: 14px;
}

/* Карточки заказов */
.orders-list {
    display: grid;
    gap: 15px;
}

.order-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.order-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.order-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 15px;
}

.order-id {
    font-weight: 600;
    color: #212529;
}

.order-date {
    font-size: 14px;
    color: #6c757d;
}

.order-status {
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.order-status.completed {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.order-status.processing {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.order-status.cancelled {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.order-price {
    margin-left: auto;
    font-weight: 600;
    color: #212529;
}

.order-body {
    padding: 20px;
}

.order-products {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.product-preview {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.product-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.product-info h4 {
    font-size: 16px;
    margin: 0 0 5px;
    color: #212529;
}

.product-info p {
    font-size: 14px;
    margin: 0;
    color: #6c757d;
}

.order-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Рекомендуемые товары */
.recommended-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Таблица заказов */
.orders-filters {
    margin-bottom: 20px;
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.filter-tab {
    padding: 8px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tab.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.filter-tab:hover:not(.active) {
    border-color: #007bff;
    color: #007bff;
}

.date-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.date-filter label {
    font-size: 14px;
    color: #6c757d;
}

.date-filter input {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.orders-table {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.table-header {
    display: grid;
    grid-template-columns: 100px 100px 1fr 120px 150px;
    padding: 15px 20px;
    background: #f8f9fa;
    font-weight: 600;
    color: #212529;
    border-bottom: 1px solid #eee;
}

.table-row {
    display: grid;
    grid-template-columns: 100px 100px 1fr 120px 150px;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.table-row:last-child {
    border-bottom: none;
}

.order-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.order-link:hover {
    text-decoration: underline;
}

.status-badge {
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
    display: inline-block;
}

.status-badge.completed {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-badge.processing {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.status-badge.cancelled {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: none;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #f8f9fa;
    color: #007bff;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.page-nav, .page-number {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background: white;
    color: #007bff;
    cursor: pointer;
    transition: all 0.3s;
}

.page-nav.disabled {
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-number {
    font-weight: 500;
}

.page-number.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.page-number:hover:not(.active), .page-nav:hover:not(.disabled) {
    background: #f8f9fa;
    border-color: #007bff;
}

.page-dots {
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: #6c757d;
}

/* Настройки профиля */
.settings-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.settings-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 15px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s;
}

.settings-tab.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 500;
}

.settings-tab:hover:not(.active) {
    color: #0056b3;
}

.settings-content {
    display: none;
}

.settings-content.active {
    display: block;
}

.profile-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.form-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #007bff;
    outline: none;
}

.avatar-upload {
    display: flex;
    gap: 20px;
    align-items: center;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f8f9fa;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Вкладки контента */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Адаптивность */
@media (max-width: 992px) {
    .account-layout {
        grid-template-columns: 1fr;
    }
    
    .account-sidebar {
        margin-bottom: 30px;
    }
    
    .order-header {
        gap: 10px;
    }
    
    .order-price {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .account-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .table-header, .table-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .col-actions {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .order-actions .btn {
        width: 100%;
    }
    
    .avatar-upload {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .settings-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }
}
/* Стили для модального окна авторизации */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.auth-container {
    background: white;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    padding: 30px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.auth-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.auth-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 16px;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-tab.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 500;
}

.auth-content {
    display: none;
}

.auth-content.active {
    display: block;
}

.auth-form .form-group {
    margin-bottom: 15px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

.btn-block {
    display: block;
    width: 100%;
}

.forgot-password {
    display: inline-block;
    margin-top: 5px;
    font-size: 13px;
    color: #007bff;
}

.social-auth {
    margin-top: 20px;
    text-align: center;
}

.social-auth p {
    margin-bottom: 15px;
    color: #6c757d;
    position: relative;
}

.social-auth p:before,
.social-auth p:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #eee;
}

.social-auth p:before {
    left: 0;
}

.social-auth p:after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 4px;
    font-weight: 500;
}

.btn-social.vk {
    background: #4a76a8;
    color: white;
}

.btn-social.yandex {
    background: #FFCC00;
    color: #000;
}

.btn-social img {
    height: 16px;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 8px;
}

.checkbox-group label {
    font-weight: normal;
    margin-bottom: 0;
}
/* Удаляем этот блок, так как селектор не используется */
/* .section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
} */

/* Оставляем эти селекторы, так как они могут быть полезны */
.product-badge.new {
    background-color: var(--accent);
}

.product-badge.discount {
    background-color: var(--success);
}

.old-price {
    font-size: 1rem;
    color: var(--gray);
    text-decoration: line-through;
}
/* Дополнения к существующим стилям */
.account-section {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 25px 30px;
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.3rem;
    color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state i {
    font-size: 3rem;
    color: var(--gray);
    margin-bottom: 15px;
}

.empty-state h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--gray);
    margin-bottom: 20px;
}

.support-options {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .support-options {
        grid-template-columns: repeat(3, 1fr);
    }
}

.support-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.support-card:hover {
    transform: translateY(-5px);
}



.support-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.support-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Темная тема */
[data-theme="dark"] .account-section,
[data-theme="dark"] .support-card,
[data-theme="dark"] .stat-card {
    background-color: var(--light);
    color: var(--dark);
}

[data-theme="dark"] .account-menu a {
    color: var(--dark);
}

[data-theme="dark"] .account-menu a:hover {
    background-color: var(--primary-light);
}