/* ============================================
   СТИЛИ ЛИЧНОГО КАБИНЕТА - МИНИМАЛИЗМ
   ============================================ */

/* Основные стили */
.woocommerce-account {
    background: #fafafa;
    min-height: 100vh;
}

.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content {
    background: white;
    border-radius: 12px;
/*     box-shadow: 0 2px 20px rgba(0,0,0,0.04); */
}

/* Навигация */
.woocommerce-MyAccount-navigation {
    width: 280px;
    padding: 0;
    border: none;
}

.account-header {
    padding: 30px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.user-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 600;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    text-align: center;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px;
    color: #000;
}

.user-email {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 20px 0;
    list-style: none;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0;
    border: none;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: #f9f9f9;
    color: #000;
    border-left-color: #000;
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    background: #f9f9f9;
    color: #000;
    border-left-color: #000;
    font-weight: 600;
}

.menu-icon {
    margin-right: 12px;
    opacity: 0.7;
}

.menu-label {
    font-size: 14px;
}

/* Контент */
.woocommerce-MyAccount-content {
    width: calc(100% - 320px);
    padding: 40px;
    border: none;
}

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

.dashboard-header {
    margin-bottom: 40px;
    text-align: center;
}

.dashboard-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
    letter-spacing: -0.5px;
}

.dashboard-header p {
    color: #888;
    font-size: 16px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.dashboard-card .wishlist-actions .button{
	padding: 1.2rem 2.4rem;
	color: #ffffff;
	background: #000000;
}
.dashboard-card .wishlist-actions .remove-from-wishlist{
	font-size: 1.6rem;
	color: red;
	text-decoration: underline;
}
.dashboard-card .wishlist-actions{
	margin-top: 2rem;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #000;
}

.view-all {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.view-all:hover {
    color: #000;
}

/* Заказы */
.recent-orders {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.order-number {
    font-weight: 600;
    color: #000;
}

.order-date {
    font-size: 13px;
    color: #888;
}

.order-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.order-status.processing {
    background: #e3f2fd;
    color: #1565c0;
}

.order-status.on-hold {
    background: #fff3e0;
    color: #f57c00;
}

.order-total {
    font-weight: 600;
    color: #000;
}

.order-details {
    font-size: 13px;
    color: #666;
    text-decoration: none;
}

.order-details:hover {
    color: #000;
}

/* Избранное */
.wishlist-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wishlist-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 15px;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.wishlist-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.wishlist-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px;
    color: #000;
}

.wishlist-price {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.wishlist-actions .button {
    padding: 6px 12px;
    font-size: 12px;
    background: #000;
    color: white;
    border: none;
    border-radius: 6px;
}

.wishlist-actions .button:hover {
    background: #333;
}

/* Недавно просмотренные */
.recently-viewed-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.recent-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.recent-item:hover img {
    opacity: 0.8;
}

/* Рекомендации */
.recommendations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.recommendation-item {
    text-align: center;
}

.recommendation-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.recommendation-item h4 {
    font-size: 14px;
    margin: 0 0 5px;
    color: #000;
}

.recommendation-item p {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin: 0 0 10px;
}

.btn-small {
    display: inline-block;
    padding: 6px 15px;
    background: #000;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.btn-small:hover {
    background: #333;
    color: white;
}

/* Кнопки */
.woocommerce-MyAccount-navigation .btn, .woocommerce-MyAccount-content .btn{
    display: inline-block;
    padding: 12px 25px;
    background: #000;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #333;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-secondary {
    background: #f0f0f0;
    color: #000;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Формы */
.woocommerce-form {
    max-width: 500px;
    margin: 0 auto;
}

.woocommerce-form-row {
    margin-bottom: 25px;
}

.woocommerce-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.woocommerce-Input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.woocommerce-Input:focus {
    outline: none;
    border-color: #000;
    background: white;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

.woocommerce-Button {
    padding: 14px 30px;
    background: #000;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.woocommerce-Button:hover {
    background: #333;
}

/* Таблица заказов */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-orders-table thead {
    background: #f9f9f9;
}

.woocommerce-orders-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #000;
    border-bottom: 2px solid #f0f0f0;
}

.woocommerce-orders-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.woocommerce-orders-table tbody tr:hover {
    background: #f9f9f9;
}

/* Wishlist Page */
.wishlist-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #000;
}

/* Адаптив */
@media (max-width: 992px) {
    .woocommerce-MyAccount-navigation,
    .woocommerce-MyAccount-content {
        float: none;
        width: 100%;
    }
    
    .woocommerce-MyAccount-navigation {
        margin-bottom: 30px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .woocommerce-MyAccount-content {
        padding: 25px;
    }
    
    .order-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .recently-viewed-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .woocommerce-MyAccount-content {
        padding: 20px;
    }
    
    .dashboard-header h2 {
        font-size: 24px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .view-all {
        align-self: flex-end;
    }
}

/* Статистика пользователя */
.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* YITH Wishlist адаптация */
.wishlist_table {
    margin: 0;
}

.wishlist_table thead th {
    background: #f9f9f9;
    padding: 15px;
    font-weight: 600;
}

.wishlist_table tbody td {
    padding: 20px 15px;
    vertical-align: middle;
}

.product-thumbnail img {
    max-width: 80px;
    border-radius: 8px;
}

.product-name a {
    color: #000;
    font-weight: 500;
    text-decoration: none;
}

.product-name a:hover {
    color: #333;
}

.product-price {
    font-weight: 600;
    color: #000;
}

.product-add-to-cart a.button {
    background: #000;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
}

.product-add-to-cart a.button:hover {
    background: #333;
}

.product-remove a.remove_from_wishlist {
    color: #ff4444;
    font-size: 20px;
}

.product-remove a.remove_from_wishlist:hover {
    color: #cc0000;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-card {
    animation: fadeIn 0.5s ease-out;
}

/* Интерактивные элементы */
.woocommerce-MyAccount-navigation ul li a {
    position: relative;
    overflow: hidden;
}

.woocommerce-MyAccount-navigation ul li a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.03);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.woocommerce-MyAccount-navigation ul li a:hover::after {
    transform: translateX(0);
}

/* Кастомные поля аккаунта */
.custom-account-field {
    margin-bottom: 25px;
}

.custom-account-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.custom-account-field input,
.custom-account-field select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.custom-account-field input:focus,
.custom-account-field select:focus {
    outline: none;
    border-color: #000;
    background: white;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

/* Сообщения */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    border: none;
    border-left: 4px solid;
}

.woocommerce-message {
    background: #e8f5e9;
    border-left-color: #4caf50;
    color: #2e7d32;
}

.woocommerce-error {
    background: #ffebee;
    border-left-color: #f44336;
    color: #c62828;
}

.woocommerce-info {
    background: #e3f2fd;
    border-left-color: #2196f3;
    color: #1565c0;
}

/* Загрузка */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #000;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ВСЕХ СТРАНИЦ
   ============================================ */

/* Страница заказов */
.account-orders-page {
    padding: 0;
}

.page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}

.page-header p {
    color: #888;
    font-size: 16px;
}

.orders-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.orders-filter select,
.orders-filter input {
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.orders-filter select {
    min-width: 180px;
}

.search-orders {
    display: flex;
    flex: 1;
    max-width: 300px;
}

.search-orders input {
    flex: 1;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.search-btn {
    padding: 10px 15px;
    background: #000;
    color: white;
    border: 1px solid #000;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

.orders-table-wrapper {
    overflow-x: auto;
}

.account-orders-table {
    width: 100%;
    border-collapse: collapse;
}

.account-orders-table thead {
    background: #f9f9f9;
}

.account-orders-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #000;
    border-bottom: 2px solid #f0f0f0;
}

.account-orders-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.account-orders-table tbody tr:hover {
    background: #f9f9f9;
}

.order-number-link {
    color: #000;
    font-weight: 500;
    text-decoration: none;
}

.order-number-link:hover {
    color: #333;
    text-decoration: underline;
}

.order-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-processing {
    background: #e3f2fd;
    color: #1565c0;
}

.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-on-hold {
    background: #fff3e0;
    color: #f57c00;
}

.status-cancelled {
    background: #ffebee;
    color: #c62828;
}

.status-refunded {
    background: #f3e5f5;
    color: #7b1fa2;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    background: #000;
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}

.btn-small:hover {
    background: #333;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state svg {
    margin-bottom: 20px;
    color: #ccc;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #666;
}

.empty-state p {
    color: #888;
    margin-bottom: 20px;
}

/* Страница деталей заказа */
.order-details-page {
    padding: 0;
}

.order-details-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    margin-bottom: 15px;
}

.back-link:hover {
    color: #000;
}

.order-date {
    color: #888;
    font-size: 14px;
}

.order-status-badge.large {
    padding: 8px 16px;
    font-size: 14px;
}

.order-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.order-info-card,
.address-card,
.order-items-card,
.order-notes-card,
.order-actions-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.order-info-card h3,
.address-card h3,
.order-items-card h3,
.order-notes-card h3,
.order-actions-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-item .label {
    font-size: 13px;
    color: #888;
    margin-bottom: 5px;
}

.info-item .value {
    font-size: 14px;
    color: #000;
    font-weight: 500;
}

.total-amount {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.address-card address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 15px;
}

.contact-info,
.shipping-method,
.shipping-date {
    margin-top: 10px;
    font-size: 14px;
}

.contact-info strong,
.shipping-method strong,
.shipping-date strong {
    color: #666;
}

.woocommerce-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #000;
    border-bottom: 2px solid #f0f0f0;
}

.woocommerce-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.product-info {
    margin-bottom: 10px;
}

.product-link {
    color: #000;
    font-weight: 500;
    text-decoration: none;
}

.product-link:hover {
    color: #333;
    text-decoration: underline;
}

.product-quantity {
    font-size: 13px;
    color: #888;
}

.notes-timeline {
    border-left: 2px solid #f0f0f0;
    padding-left: 20px;
    margin-left: 10px;
}

.note-item {
    position: relative;
    margin-bottom: 20px;
}

.note-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #000;
}

.note-content {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.note-date {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

/* Страница загрузок */
.downloads-page {
    padding: 0;
}

.downloads-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-size: 14px;
    color: #666;
}

.downloads-filter {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    min-width: 150px;
}

.search-downloads {
    display: flex;
    flex: 1;
    max-width: 300px;
}

.search-downloads input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
}

#download-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.download-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

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

.file-icon {
    flex-shrink: 0;
    color: #666;
}

.file-info {
    flex: 1;
}

.file-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #000;
}

.product-name {
    font-size: 14px;
    color: #888;
}

.product-link {
    color: #666;
    text-decoration: none;
}

.product-link:hover {
    color: #000;
}

.file-actions {
    flex-shrink: 0;
}

.download-btn {
    padding: 8px 16px;
    font-size: 14px;
}

.download-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 14px;
    color: #000;
    font-weight: 500;
}

.expired {
    color: #f44336;
}

.expired-badge {
    display: inline-block;
    padding: 2px 6px;
    background: #ffebee;
    color: #c62828;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 5px;
}

.download-description {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* Страница редактирования аккаунта */
.edit-account-page {
    padding: 0;
}

.account-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.settings-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.settings-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

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

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

.form-help {
    font-size: 13px;
    color: #888;
    margin-top: 5px;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 40px;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.password-strength {
    margin-top: 10px;
}

.strength-meter {
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-bar {
    height: 100%;
    width: 0;
    background: #f44336;
    transition: width 0.3s ease, background 0.3s ease;
}

.strength-text {
    font-size: 12px;
    color: #888;
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 20px;
}

.current-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.current-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-controls {
    flex: 1;
}

.upload-input {
    display: none;
}

.btn-text {
    background: none;
    border: none;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    margin-left: 10px;
}

.btn-text:hover {
    color: #000;
}

.checkbox-group {
    margin: 15px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-custom {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #000;
    font-size: 14px;
}

.checkbox-text {
    flex: 1;
}

.notifications-settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.danger-zone {
    padding: 20px;
    background: #ffebee;
    border-radius: 8px;
    border: 1px solid #ffcdd2;
}

.danger-zone .btn-danger {
    background: #f44336;
    color: white;
}

.danger-zone .btn-danger:hover {
    background: #d32f2f;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* Страница адресов */
.edit-address-page {
    padding: 0;
}

.address-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.address-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
}

.address-tab:hover {
    background: #f9f9f9;
    color: #000;
}

.address-tab.active {
    background: #000;
    color: white;
}

.address-form-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.address-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.action-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.action-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
    text-align: left;
    padding: 10px 15px;
}

.save-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.radio-custom {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.radio-label input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    background: #000;
    border-radius: 50%;
}

.radio-text {
    flex: 1;
}

.default-shipping {
    margin-top: 10px;
}

/* Уведомления */
.birthday-notification,
.new-features-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.birthday-notification h4,
.new-features-notice h4 {
    color: white;
    margin-bottom: 10px;
    font-size: 18px;
}

.birthday-notification p,
.new-features-notice p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 15px;
}

.new-features-notice ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.new-features-notice li {
    margin-bottom: 5px;
    color: rgba(255,255,255,0.9);
}

.dismiss-notice {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.dismiss-notice:hover {
    background: rgba(255,255,255,0.3);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard-card,
.settings-section,
.action-card,
.download-card,
.order-info-card,
.address-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Интерактивные элементы */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Загрузка */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #000;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .address-form-grid {
        grid-template-columns: 1fr;
    }
    
    .account-settings-grid {
        grid-template-columns: 1fr;
    }
    
    .order-details-grid {
        grid-template-columns: 1fr;
    }
    
    .order-info-grid {
        grid-template-columns: 1fr;
    }
    
    .downloads-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .order-details-page .page-header {
        flex-direction: column;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .avatar-upload {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .upload-controls {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .orders-filter,
    .downloads-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-orders,
    .search-downloads {
        max-width: 100%;
    }
    
    .address-tabs {
        flex-direction: column;
    }
    
    .address-tab {
        justify-content: center;
    }
}
body{
	min-height: auto!important;
}

.recently-viewed-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.recent-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.recent-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.recent-item img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.recent-item-info {
    margin-top: 10px;
}

.recent-item-info h4 {
    font-size: 14px;
    margin: 5px 0;
}

.recent-item-info h4 a {
    color: #333;
    text-decoration: none;
}

.recent-item-info h4 a:hover {
    color: #007cba;
}

.recent-item-info .price {
    font-size: 14px;
    font-weight: bold;
    color: #4CAF50;
}

@media (max-width: 768px) {
    .recently-viewed-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .recently-viewed-items {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   СТИЛИ ДЛЯ СТРАНИЦЫ НЕДАВНО ПРОСМОТРЕННЫХ ТОВАРОВ
   ============================================ */

/* Основные стили страницы */
.woocommerce-MyAccount-content .recently-viewed-products {
    padding: 20px 0 40px;
}

/* Заголовок страницы */
.woocommerce-MyAccount-content .recently-viewed-products h2 {
    font-size: 28px;
    color: #333;
    font-weight: 600;
    margin: 0 0 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    text-align: center;
}

/* Сетка товаров */
.recently-viewed-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 0;
}

/* Карточка товара */
.recently-viewed-products .product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recently-viewed-products .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-color: #ddd;
}

/* Изображение товара */
.recently-viewed-products .product-image {
    display: block;
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
    aspect-ratio: 1 / 1;
}

.recently-viewed-products .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.recently-viewed-products .product-card:hover .product-image img {
    transform: scale(1.03);
}

/* Информация о товаре */
.recently-viewed-products .product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.recently-viewed-products .product-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: #333;
    flex-grow: 1;
}

.recently-viewed-products .product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.recently-viewed-products .product-title a:hover {
    color: #e11b1b;
}

/* Цена товара */
.recently-viewed-products .product-price {
    margin: 0 0 15px;
    font-size: 18px;
    font-weight: 700;
    color: #e11b1b;
}

.recently-viewed-products .woocommerce-Price-amount {
    color: inherit;
}

/* Блок действий с товаром */
.recently-viewed-products .product-actions {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* Стили для блока добавления в корзину */
.recently-viewed-products .add_to_cart_inline {
    border: none !important;
    padding: 0 !important;
    margin: 0 0 10px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.recently-viewed-products .add_to_cart_inline .woocommerce-Price-amount {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.recently-viewed-products .add_to_cart_inline .button {
    background: #333 !important;
    color: white !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    transition: all 0.3s ease !important;
}

.recently-viewed-products .add_to_cart_inline .button:hover {
    background: #e11b1b !important;
    transform: translateY(-1px);
}

/* Кнопка избранного */
.recently-viewed-products .yith-add-to-wishlist-button-block {
    text-align: center;
}

.recently-viewed-products .yith-wcwl-add-to-wishlist-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f8f8f8;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.recently-viewed-products .yith-wcwl-add-to-wishlist-button:hover {
    background: #fff;
    color: #e11b1b;
    border-color: #e11b1b;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(225, 27, 27, 0.1);
}

.recently-viewed-products .yith-wcwl-icon {
    width: 18px;
    height: 18px;
}

.recently-viewed-products .yith-wcwl-add-to-wishlist-button--added .yith-wcwl-icon {
    fill: #e11b1b !important;
}

.recently-viewed-products .yith-wcwl-add-to-wishlist-button__label {
    font-size: 13px;
}

/* Для списка товаров (альтернативный вариант) */
.recently-viewed-products .product {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
}

.recently-viewed-products .product a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.recently-viewed-products .product img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.recently-viewed-products .product h3 {
    font-size: 16px;
    margin: 0 0 10px;
    color: #333;
    font-weight: 500;
}

.recently-viewed-products .product .price {
    font-size: 18px;
    font-weight: 700;
    color: #e11b1b;
}

/* ============================================
   АДАПТИВНЫЕ СТИЛИ
   ============================================ */

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
    .recently-viewed-products .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 25px;
    }
    
    .recently-viewed-products .product-info {
        padding: 15px;
    }
    
    .woocommerce-MyAccount-content .recently-viewed-products h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }
}

/* Большие мобильные (576px - 767px) */
@media (max-width: 767px) {
    .recently-viewed-products .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .recently-viewed-products .product-title {
        font-size: 15px;
    }
    
    .recently-viewed-products .product-price {
        font-size: 16px;
    }
    
    .recently-viewed-products .add_to_cart_inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .recently-viewed-products .add_to_cart_inline .button {
        width: 100%;
        text-align: center;
    }
    
    .woocommerce-MyAccount-content .recently-viewed-products h2 {
        font-size: 22px;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
}

/* Мобильные телефоны (до 575px) */
@media (max-width: 575px) {
    .recently-viewed-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .recently-viewed-products .product-card {
        border-radius: 10px;
    }
    
    .recently-viewed-products .product-info {
        padding: 12px;
    }
    
    .recently-viewed-products .product-title {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .recently-viewed-products .product-price {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .recently-viewed-products .product-actions {
        padding-top: 10px;
    }
    
    .recently-viewed-products .yith-wcwl-add-to-wishlist-button {
        padding: 6px 12px;
        font-size: 12px;
        gap: 5px;
    }
    
    .recently-viewed-products .yith-wcwl-icon {
        width: 16px;
        height: 16px;
    }
    
    .woocommerce-MyAccount-content .recently-viewed-products h2 {
        font-size: 20px;
        margin-bottom: 15px;
        text-align: left;
    }
    
    .woocommerce-MyAccount-content {
        padding: 15px;
    }
}

/* Очень маленькие экраны (до 375px) */
@media (max-width: 375px) {
    .recently-viewed-products .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .recently-viewed-products .add_to_cart_inline .button {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
    
    .recently-viewed-products .yith-wcwl-add-to-wishlist-button__label {
        font-size: 12px;
    }
}

/* Пустая страница */
.recently-viewed-products:empty::before {
    content: "Вы еще не просматривали товары";
    display: block;
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #777;
    background: #f9f9f9;
    border-radius: 10px;
    border: 2px dashed #ddd;
    margin: 20px 0;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recently-viewed-products .product-card {
    animation: fadeIn 0.4s ease-out;
}

/* Улучшение для скринридеров */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.recently-viewed-products .product{
	max-width: 40rem;
}