/* Переменные для одинакового стиля во всем магазине */
:root {
    --primary-color: #2563eb;
    --text-main: #1e293b;
    --bg-color: #f8fafc;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
}

/* СТИЛЬНЫЙ ХЕДЕР (как в каталоге) */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px); /* Эффект размытия */
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
}

header nav a {
    text-decoration: none;
    color: var(--text-main);
    margin-left: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

header nav a:hover {
    color: var(--primary-color);
}

/* КОНТЕЙНЕР КАБИНЕТА */
.account-container {
    max-width: 450px;
    margin: 60px auto; /* Снизил отступ, так как хедер теперь sticky */
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    text-align: center;
}

.account-container h1 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #0f172a;
    font-size: 2rem;
    font-weight: 800;
}

/* ФОРМА И ИНПУТЫ */
#accountForm {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#accountForm input {
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-size: 1rem;
    background: #f8fafc;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#accountForm input:focus {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* КНОПКА */
#accountForm button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

#accountForm button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

/* ПОПАП */
.popup {
    display: none;
    position: fixed;
    top: 30px;
    right: 30px;
    background: #10b981;
    color: white;
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
    z-index: 2000;
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* МОБИЛКА */
@media (max-width: 600px) {
    header {
        padding: 15px 20px;
    }
    .logo { font-size: 1.2rem; }
    header nav a { margin-left: 12px; font-size: 0.85rem; }

    .account-container {
        margin: 30px 15px;
        padding: 30px 20px;
    }
}

.checkout-warning {
    text-align: center;
    color: #d9534f; /* Можно сделать текст темно-красным, чтобы привлечь внимание */
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.suggestions-suggestions {
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: none;
    font-family: inherit;
}

.suggestions-suggestion {
    padding: 12px 16px;
    font-size: 14px;
    transition: background 0.2s;
}

.suggestions-suggestion:hover {
    background: #f5f5f5;
}

.suggestions-suggestion_selected {
    background: #eaeaea;
}

.suggestions-suggestion strong {
    color: #000;
}

.suggestions-promo {
    display: none !important;
}


/* Контейнер ссылки */
.cart-link {
    text-decoration: none;
    display: inline-block;
    padding: 10px;
}

/* Обертка для иконки и счетчика */
.cart-wrapper {
    position: relative; /* Чтобы счетчик позиционировался относительно иконки */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Размер самой иконки */
.cart-icon {
    font-size: 1.5rem; /* Размер эмодзи */
    transition: transform 0.2s ease;
}

/* Эффект при наведении */
.cart-link:hover .cart-icon {
    transform: scale(1.1);
}

/* Красный кружок со счетчиком */
.cart-badge {
    position: absolute;
    top: -8px;      /* Смещаем вверх */
    right: -10px;   /* Смещаем вправо */
    background-color: #ef4444; /* Ярко-красный */
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%; /* Делаем круглым */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 2px solid #fff; # Белая обводка, чтобы не сливалось с фоном
}

/* Если корзина пуста, можно скрывать счетчик через JS или оставить 0 */
#cart-count:empty {
    display: none;
}

const el = document.querySelector(".cart-icon");
el.style.transform = "scale(1.3)";
setTimeout(() => el.style.transform = "scale(1)", 200);



.burger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
}

/* Мобильная версия */
@media (max-width: 768px) {

    header {
        flex-direction: row;
        justify-content: space-between;
    }

    .burger {
        display: block;
    }

    header nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: white;
        width: 100%;
        display: none;
        flex-direction: column;
        padding: 20px;
    }

    header nav a {
        margin: 10px 0;
    }

    header nav.active {
        display: flex;
    }
}


@media (max-width: 768px) {

    .cat-grid {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 10px;
    }

    .cat-card {
        min-width: 180px;
        flex: 0 0 auto;
        padding: 20px;
    }
}

@media (max-width: 768px) {

    .footer-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer {
        padding: 40px 20px;
    }
}
.bottom-nav {
    display: none;
}
@media (max-width: 768px) {
    .bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #ffffff;
        display: flex;
        justify-content: space-around;
        align-items: flex-end; /* Выравнивание по нижней линии */
        padding: 10px 5px calc(10px + env(safe-area-inset-bottom));
        box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
        z-index: 1000;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    .nav-item {
        text-decoration: none;
        color: #666;
        display: flex;
        flex-direction: column;
        align-items: center;
        flex: 1;
        transition: all 0.2s ease;
    }

    /* Стиль "Стикера" */
    .nav-sticker {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
        font-size: 20px;
        margin-bottom: 6px;
        position: relative;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        transition: transform 0.2s cubic-bezier(0.17, 0.67, 0.83, 0.67);
    }

    /* Цвета для разных разделов */
    .blue   { background: linear-gradient(135deg, #60a5fa, #3b82f6); color: white; }
    .yellow { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: white; }
    .orange { background: linear-gradient(135deg, #fb923c, #f97316); color: white; }
    .cyan   { background: linear-gradient(135deg, #22d3ee, #0891b2); color: white; }
    .purple { background: linear-gradient(135deg, #a78bfa, #8b5cf6); color: white; }

    /* Эффект нажатия (стикер сжимается) */
    .nav-item:active .nav-sticker {
        transform: scale(0.85) translateY(2px);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-label {
        font-size: 9px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Бейдж корзины на стикере */
    .cart-badge {
        position: absolute;
        top: -6px;
        right: -6px;
        background: #ef4444;
        color: white;
        font-size: 10px;
        padding: 2px 5px;
        border-radius: 8px;
        border: 2px solid white;
        font-weight: bold;
    }

    body {
        padding-bottom: 85px;
    }
}

/* Автосвет: если на телефоне темная тема */
@media (prefers-color-scheme: dark) {
    .bottom-nav {
        background: #1a1a1a;
        box-shadow: 0 -5px 25px rgba(0,0,0,0.5);
    }
    .nav-label { color: #999; }
    .cart-badge { border-color: #1a1a1a; }
}

/* Состояние активной ссылки */
.nav-item.active .nav-sticker {
    transform: scale(1.15) translateY(-5px); /* Стикер "всплывает" */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    outline: 3px solid rgba(255, 255, 255, 0.5); /* Ободок */
}

.nav-item.active .nav-label {
    color: #000; /* Делаем текст активным */
    font-weight: 900;
}

/* Для темной темы */
@media (prefers-color-scheme: dark) {
    .nav-item.active .nav-label { color: #fff; }
}



header {
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    header.hide {
        transform: translateY(-100%);
    }
}

@import url('https://googleapis.com');

:root {
    --primary: #6366f1;
    --dark: #0f172a;
    --gray: #64748b;
    --glass: rgba(255, 255, 255, 0.8);
}

.account-layout {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* СТИЛЬ ФОРМЫ */
.account-main {
    flex: 1 1 500px;
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.04);
}

.modern-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.subtitle {
    color: var(--gray);
    margin-bottom: 35px;
    font-size: 16px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-form input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.modern-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.shiny-btn {
    width: 100%;
    padding: 16px;
    background: var(--dark);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.shiny-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

/* СТИЛЬ РЕКЛАМЫ (APPLE STYLE) */
.promo-sidebar {
    flex: 1 1 350px;
}

.modern-promo-card {
    position: relative;
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-image-wrapper {
    position: relative;
    height: 400px; /* Длинная картинка */
    overflow: hidden;
}

.promo-img-fit {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.8));
}

.promo-content-top {
    position: absolute;
    top: 20px;
    left: 20px;
}

.glass-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
}

.promo-content-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    color: white;
}

.promo-content-bottom h3 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 10px;
}

.promo-content-bottom h3 span {
    color: var(--primary);
}

.promo-content-bottom p {
    font-size: 15px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.promo-action {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.arrow-icon {
    width: 30px;
    height: 30px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* Ховер эффекты */
.promo-card-link:hover .modern-promo-card {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

.promo-card-link:hover .promo-img-fit {
    transform: scale(1.1);
}

.promo-card-link:hover .arrow-icon {
    transform: translateX(5px);
}

@media (max-width: 900px) {
    .account-layout { margin: 20px auto; }
    .promo-image-wrapper { height: 300px; }
}

.modern-popup {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: white;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    align-items: center;
    gap: 12px;
    animation: slideUp 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.popup-icon {
    background: #22c55e;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

@keyframes slideUp {
    from { bottom: -100px; opacity: 0; }
    to { bottom: 30px; opacity: 1; }
}
