/* ========== БАЗОВЫЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #FFFFFF;
    color: #1A1A1A;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== ХЕДЕР ========== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #EAEAEA;
    position: sticky;
    top: 0;
    background: #FFFFFF;
    z-index: 100;
    transition: all 0.3s ease;
    gap: 12px;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: #1A1A1A;
    white-space: nowrap;
}

.nav-desktop {
    display: none;
}

.nav-desktop a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: #D4AF37;
}

.nav-mobile {
    display: flex;
    gap: 16px;
    margin-left: auto;
    margin-right: 16px;
}

.nav-mobile a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-mobile a:hover,
.nav-mobile a.active {
    color: #D4AF37;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-phone {
    display: none;
    color: #1A1A1A;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.desktop-cart {
    display: none;
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #D4AF37;
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorites-header {
    position: relative;
    display: flex;
    align-items: center;
}

.favorites-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: #D4AF37;
    color: white;
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Меню пользователя */
.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1A1A1A;
    border: none;
    padding: 6px 12px 6px 8px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-menu-btn:hover {
    background: #333;
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: #D4AF37;
    color: #1A1A1A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    color: white;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background: #1A1A1A;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-top: 8px;
    overflow: hidden;
    display: none;
    z-index: 1000;
}

.user-dropdown.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #EAEAEA;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #333;
    color: #D4AF37;
}

.dropdown-divider {
    margin: 6px 0;
    border: none;
    border-top: 1px solid #333;
}

.logout-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.logout-btn:hover {
    background: #333;
    color: #F44336;
}

.login-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.login-link:hover {
    color: #D4AF37;
}

@media (min-width: 769px) {
    .header {
        padding: 16px 40px;
    }
    .logo {
        font-size: 24px;
    }
    .nav-mobile {
        display: none;
    }
    .nav-desktop {
        display: flex;
        gap: 32px;
    }
    .header-phone {
        display: block;
    }
    .desktop-cart {
        display: block;
    }
}

/* ========== НИЖНЯЯ ПАНЕЛЬ ========== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid #EAEAEA;
    padding: 8px 16px;
    z-index: 1000;
    justify-content: space-around;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    font-size: 10px;
    color: #666;
    transition: color 0.2s;
    position: relative;
}

.bottom-nav-item.active {
    color: #D4AF37;
}

.bottom-nav-icon {
    width: 20px;
    height: 20px;
}

.cart-badge-mobile {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #D4AF37;
    color: white;
    font-size: 9px;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 70px;
    }
}

/* ========== ФУТЕР ========== */
.footer {
    background: #F9F9F9;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1A1A1A;
}

.footer-text {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 8px;
}

.footer-link {
    text-decoration: none;
    color: #666;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #D4AF37;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #EAEAEA;
    font-size: 12px;
    color: #999;
}

@media (min-width: 769px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

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

/* ========== АНИМАЦИИ ========== */
@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

.cart-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #28A745;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    z-index: 1100;
    font-size: 13px;
    animation: fadeOut 2s forwards;
}