/* Кастомные стили для личного кабинета */
/*.profile-container {*/
/*    max-width: 1200px;*/
/*    margin: 0 auto;*/
/*    padding: 20px;*/
/*    box-sizing: border-box;*/
/*}*/

/*.profile-row {*/
/*    display: flex;*/
/*    flex-wrap: wrap;*/
/*    gap: 2rem;*/
/*    margin-bottom: 2rem;*/
/*}*/

/*.profile-col-left {*/
/*    flex: 1 1 40%;*/
/*    min-width: 300px;*/
/*}*/

/*.profile-col-right {*/
/*    flex: 1 1 55%;*/
/*    min-width: 300px;*/
/*}*/

/*.profile-col-full {*/
/*    flex: 1 1 100%;*/
/*}*/

/* Карточка профиля / корзины / заказов */
.profile-card {
    background: rgba(117, 117, 117, 0.1);
    backdrop-filter: blur(5px);
    /*border: 1px solid rgba(255, 255, 255, 0.3);*/
    border-radius: 12px;
    padding: 25px;
    color: white;
    box-sizing: border-box;
    height: fit-content;
}

.profile-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

/* Аватар */
.avatar-container {
    text-align: center;
    margin-bottom: 20px;
}

.avatar-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
}

/* Поля формы (как в фильтре) */
.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="file"] {
    width: 100%;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.profile-form input[type="file"] {
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.profile-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Ошибки формы */
.form-error {
    color: #ffb3b3;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin-top: -10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Кнопка сохранения (как .btn-shop) */
.profile-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    /*border: 1px solid white;*/
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.3s;
    cursor: pointer;
    width: 100%;
    text-align: center;
    border: none;
}

.profile-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Заказы — аккордеон через details */
.order-item {
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: background 0.5s;
}

.order-summary {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.1rem;
    list-style: none; /* убирает стандартный маркер */
}

.order-item:hover {
    backdrop-filter: blur(20px);
    box-shadow:  2px 2px 20px rgba(245, 245, 245, 0.61);
}

.order-summary::-webkit-details-marker {
    display: none; /* скрываем стандартный треугольник */
}

.order-summary::before {
    content: '▶';
    display: inline-block;
    margin-right: 10px;
    transition: transform 0.2s;
    color: rgba(255, 255, 255, 0.7);
}

details[open] .order-summary::before {
    transform: rotate(90deg);
}

.order-content {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.profile-table th {
    text-align: left;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-table a {
    color: white;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
}

.profile-table a:hover {
    border-bottom: 1px solid white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-row {
        flex-direction: column;
    }
    .profile-col-left,
    .profile-col-right {
        flex: 1 1 100%;
    }
}

/* Контейнер для центрирования формы */
.login-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Карточка авторизации */
.login-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 30px;
    color: white;
    box-sizing: border-box;
}

.login-card h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 2rem;
    text-align: center;
}
/* Обёртка для поля с иконкой */
.form-label {
    position: relative;
}
/* Поля формы (как в профиле) */
.form-label input[type="text"],
.form-label input[type="password"],
.login-form input[type="email"] {

    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Кнопка входа */
.login-btn {
    /*display: inline-block;*/
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.3s;
    cursor: pointer;
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Ссылки под формой */
.login-links {
    text-align: center;
    margin-bottom: 25px;
}

.login-links a {
    color: white;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
    margin: 0 10px;
    transition: border-bottom 0.3s;
}

.login-links a:hover {
    border-bottom: 1px solid white;
}

/* Разделитель */
.login-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.login-divider::before,
.login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.login-divider::before {
    left: 0;
}

.login-divider::after {
    right: 0;
}

.login-divider span {
    background: transparent;
    padding: 0 10px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Кнопки соцсетей */
.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.social-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Ошибки формы */
.form-error {
    color: #ffb3b3;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin-top: -10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 480px) {
    .social-buttons {
        flex-direction: column;
    }
    .social-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Контейнер для центрирования формы */
.registration-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Карточка регистрации */
.registration-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 30px;
    color: white;
    box-sizing: border-box;
}

.registration-card h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 2rem;
    text-align: center;
}

/* Flex-сетка для полей */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.form-group {
    flex: 1 1 calc(50% - 20px);
    min-width: 250px;
    margin: 0 10px 20px;
    box-sizing: border-box;
}

/* Поля формы */
.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form input[type="password"],
.registration-form input[type="tel"]{
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    box-sizing: border-box;
    margin-top: 5px;
}

.registration-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Кнопка регистрации */
.registration-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.3s;
    cursor: pointer;
    width: 100%;
    text-align: center;
    /*border: none;*/
    margin-top: 10px;
}

.registration-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Ошибки формы */
.form-error {
    color: #ffb3b3;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 8px;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 600px) {
    .form-group {
        flex: 1 1 100%;
        margin: 0 0 15px;
    }
}

/* Контейнер для всех уведомлений */
.notifications-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: auto;
    max-width: 90%;
    pointer-events: none; /* чтобы клики проходили сквозь контейнер, но не сквозь сами уведомления */
}

/* Само уведомление */
.notification {
    pointer-events: auto; /* возвращаем возможность взаимодействия */
    padding: 15px 40px 15px 20px;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: slideIn 0.3s ease-out forwards;
    min-width: 300px;
    text-align: center;
    border-left: 4px solid transparent;
}

/* Типы уведомлений */
.notification-success {
    border-left-color: rgba(110, 40, 167, 0.7);
    background-color: #faf0ff;
    color: #1c0046;
}

.notification-error {
    border-left-color: #dc3545;
    background-color: #fff5f5;
    color: #721c24;
}

/* Кнопка закрытия */
.notification-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: inherit;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

/* Анимация появления */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация исчезновения (будет добавлена через JS) */
.notification.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

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

/*КОРЗИНА*/
/* Общий контейнер корзины */
.basket-container {
    max-width: 600px;
    margin: 0 auto;
    background: whitesmoke;
    border-radius: 12px;
    padding: 20px;
}

/* Элемент корзины (один товар) */
.basket-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.basket-item:last-child {
    border-bottom: none;
}

.basket-item-header {
    margin-bottom: 10px;
}

.basket-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Строка с количеством, ценой и удалением */
.basket-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

/* Блок управления количеством */
.basket-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    border-radius: 6px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

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

.quantity-input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: #fff;
}

/* Блок с ценой */
.basket-price-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
}

.price-per-item {
    color: #777;
}

.item-total {
    color: #333;
    font-weight: 700;
}

/* Кнопка удаления */
.basket-remove .remove-link {
    display: inline-block;
    padding: 5px 10px;
    background: #ffebee;
    border-radius: 6px;
    transition: background 0.2s;
}

.basket-remove .remove-link:hover {
    background: #ffcdd2;
}

.basket-remove img {
    vertical-align: middle;
}

/* Пустая корзина */
.basket-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 1.2rem;
}

/* Подвал корзины (итоги) */
.basket-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.total-info {
    font-size: 1.1rem;
    color: #555;
}

.total-price {
    font-size: 1.5rem;
    color: #000;
    margin: 0;
}

/* Кнопка оформления заказа */
.checkout-btn {
    display: block;
    width: 50%;
    padding: 15px;
    background: #555;
    border: #131313;
    color: whitesmoke;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 20px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.checkout-btn:hover {
    background: rgba(0, 44, 91, 0.51);
}

/*Корзина на главной (выезжает)*/

/* Затемнение фона */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Активное состояние — показываем */
.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Панель корзины (выезжает справа) */
.cart-panel {
    position: fixed;
    top: 0;
    right: -100%; /* за экраном */
    width: 400px;
    max-width: 90%;
    height: 100%;
    background: whitesmoke;
    /*box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);*/
    z-index: 1003;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;

}

.cart-overlay.active .cart-panel {
    right: 0;
}

/* Кнопка закрытия */
.cart-panel-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 10px;
    line-height: 1;
}

/* Контейнер содержимого корзины (скроллится) */
.cart-panel-content {
    flex: 1;
    overflow-y: auto;
}

/* Значок корзины (триггер) */
.cart-trigger {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: red;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*ДЛЯ УЛЕТАЮЩЕЙ КОРЗИНЫ*/
.flying-item {
    position: fixed;
    z-index: 9999;
    pointer-events: none;  /* чтобы не мешал кликам */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 1s cubic-bezier(0.2, 1, 0.3, 1); /* плавная анимация */
    opacity: 0.9;
    background: transparent; /* фон прозрачный, чтобы была видна иконка */
    color: inherit;
    font-size: inherit;
}