* {
   /* margin: 0;
   // padding: 0;
   // box-sizing: border-box;
    font-family: Arial, sans-serif;*/
}

body {
    background-color: #f8f8f8;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Шапка */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 40px;
}

.user-actions a {
    margin-left: 15px;
    color: #333;
    text-decoration: none;
}

.user-actions a:hover {
    color: #ff4e4e;
}

/* Стили для страниц авторизации и профиля */
.auth-page {
    padding: 40px 0;
    min-height: 70vh;
    //display: flex;
    align-items: center;
}

.auth-container {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 90%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF4E4E;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 40px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me,
.agree-terms {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me input,
.agree-terms input {
    width: auto;
    margin: 0;
}

.forgot-password {
    color: #FF4E4E;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-switch a {
    color: #FF4E4E;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.social-auth {
    margin-top: 25px;
    text-align: center;
}

.social-auth p {
    margin-bottom: 15px;
    color: #666;
}

.social-buttons, .primary-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn, .btn-primary {
    padding: 12px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.social-btn:hover {
    border-color: #FF4E4E;
    color: #FF4E4E;
}

.social-btn.google:hover {
    border-color: #DB4437;
    color: #DB4437;
}

.social-btn.vk:hover {
    border-color: #4A76A8;
    color: #4A76A8;
}

.social-btn.yandex:hover {
    border-color: #FFCC00;
    color: #FFCC00;
}

.btn-primary.in:hover {
    border-color: #DB4437;
    color: #DB4437;
}

/* Страница профиля */
.profile-page {
    padding: 20px 0 40px;
}

.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 20px;
}

.profile-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.user-info {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.user-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
}

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

.change-avatar {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: #FF4E4E;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info h3 {
    margin-bottom: 5px;
    color: #333;
}

.user-info p {
    color: #666;
    font-size: 14px;
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.menu-item:hover,
.menu-item.active {
    background: #FFF0F0;
    color: #FF4E4E;
}

.menu-item i {
    width: 20px;
    text-align: center;
}

.profile-content {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    margin-bottom: 25px;
    color: #333;
}

.profile-form,
.security-form,
.notifications-form {
    max-width: 500px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Стили для заказов */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
}

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

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

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

.order-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-delivered {
    background: #E8F5E8;
    color: #4CAF50;
}

.status-processing {
    background: #FFF3CD;
    color: #FF9800;
}

.status-cancelled {
    background: #FFEBEE;
    color: #F44336;
}

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

.empty-orders,
.empty-favorites {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-orders i,
.empty-favorites i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

/* Стили для избранного */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* Стили для адресов */
.addresses-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.address-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
}

.address-card h4 {
    margin-bottom: 10px;
    color: #333;
}

.address-card p {
    margin-bottom: 5px;
    color: #666;
}

.address-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-edit,
.btn-delete {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-edit:hover {
    border-color: #FF4E4E;
    color: #FF4E4E;
}

.btn-delete:hover {
    border-color: #F44336;
    color: #F44336;
}

.btn-add-address {
    width: 100%;
    padding: 15px;
    border: 2px dashed #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-address:hover {
    border-color: #FF4E4E;
    color: #FF4E4E;
}

/* Стили для уведомлений */
.notification-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}

/* Toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #FF4E4E;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    //width: 90%;
    max-width: 400px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal, .close-modal-edit {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-modal, .close-modal-edit:hover {
    color: #333;
}

.current-price {
    font-size: 18px;
    font-weight: bold;
    color: #FF4E4E;
}

.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    
	.container {
        width: 95%;
    }

    /* Шапка */
    .header-top {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .logo {
        order: 1;
        width: 30%;
    }

    .logo img {
        height: 30px;
    }
	
	.user-actions {
        order: 2;
        width: 70%;
        text-align: right;
    }

    .user-actions a {
        margin-left: 10px;
        font-size: 0; /* Скрываем текст, оставляем иконки */
    }

    .user-actions a i {
        font-size: 18px;
        margin-left: 5px;
    }
	
	.auth-container {
        margin: 20px;
        padding: 20px;
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
        margin-bottom: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .favorites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .auth-container {
        margin: 10px;
        padding: 15px;
    }

    .favorites-grid {
        grid-template-columns: 1fr;
    }

    .social-buttons, .primary-buttons {
        flex-direction: column;
    }
	
	
}