/* Современный дизайн SakevaMarket с анимациями и градиентами */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Основные цвета - минималистичная палитра */
    --primary-purple: #7c3aed;
    --primary-purple-dark: #581c87;
    --primary-purple-light: #c4b5fd;
    --secondary-purple: #faf5ff;
    --accent-purple: #a855f7;
    
    /* Градиенты - упрощенные */
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #581c87 100%);
    --gradient-secondary: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%);
    --gradient-hero: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #7c3aed 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    --gradient-button: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    --gradient-button-hover: linear-gradient(135deg, #581c87 0%, #7c3aed 100%);
    
    /* Текст - контрастный */
    --text-dark: #000000;
    --text-light: #4b5563;
    --text-white: #ffffff;
    --text-muted: #6b7280;
    
    /* Фоны - минималистичные */
    --bg-white: #ffffff;
    --bg-gray: #f9fafb;
    --bg-dark: #000000;
    --bg-glass: rgba(0, 0, 0, 0.05);
    --bg-glass-dark: rgba(0, 0, 0, 0.1);
    
    /* Границы */
    --border-light: #e2e8f0;
    --border-red: #fecaca;
    --border-glass: rgba(255, 255, 255, 0.2);
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.3);
    --shadow-glow-hover: 0 0 30px rgba(124, 58, 237, 0.5);
    
    /* Радиусы */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Анимации */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
    position: relative;
}

/* Анимированный фон */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
    radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(196, 181, 253, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Боковая панель */
.sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 350px;
    height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #dc2626 100%);
    color: var(--text-white);
    transition: left var(--transition-normal);
    z-index: 1000;
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(124, 58, 237, 0.3);
    overflow-y: auto;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
    radial-gradient(circle at 30% 20%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.sidebar.open {
    left: 0;
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from {
        left: -350px;
        opacity: 0;
    }
    to {
        left: 0;
        opacity: 1;
    }
}

.sidebar-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(124, 58, 237, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.025em;
}

.sidebar-toggle {
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.3);
    color: var(--text-white);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.sidebar-toggle:hover {
    background: rgba(124, 58, 237, 0.4);
    border-color: rgba(124, 58, 237, 0.5);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.sidebar-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Формы авторизации */
.auth-panel {
    margin-bottom: 2rem;
}

.auth-form {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid rgba(124, 58, 237, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.auth-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: var(--radius-lg);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-white);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.auth-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
    transform: translateY(-1px);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.auth-switch a {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.auth-switch a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-purple);
    transition: width var(--transition-fast);
}

.auth-switch a:hover::after {
    width: 100%;
}

.auth-switch a:hover {
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

/* Панель пользователя */
.user-panel {
    text-align: center;
}

.user-info {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 38, 38, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.user-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.user-info p {
    color: var(--accent-purple);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Кнопки */
.btn-primary {
    background: var(--gradient-button);
    color: var(--text-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 0.875rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--gradient-button-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-hover);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(220, 38, 38, 0.2);
    color: var(--text-white);
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 100%;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: rgba(124, 58, 237, 0.4);
    border-color: rgba(124, 58, 237, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.btn-admin {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: var(--text-dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 100%;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-admin::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left var(--transition-slow);
}

.btn-admin:hover::before {
    left: 100%;
}

.btn-admin:hover {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
}

/* Основной контент */
.main-content {
    margin-left: 0;
    transition: none; /* Убираем переход, так как не сдвигаем контент */
    min-height: 100vh;
    position: relative;
}

/* Убираем сдвиг контента при открытии боковой панели */
.main-content.sidebar-open {
    margin-left: 0; /* Не сдвигаем контент */
}

/* Заголовок */
.header {
    background: transparent;
    backdrop-filter: none;
    padding: 1.5rem 2rem;
    box-shadow: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: none;
}

/* ПРИНУДИТЕЛЬНО фиксируем кнопку меню в левом верхнем углу - НИКОГДА не сдвигается */
.menu-toggle {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    transition: opacity var(--transition-fast); /* Только opacity, никаких transform */
    color: var(--primary-purple);
    box-shadow: var(--shadow-sm);
    position: fixed !important;
    left: 2rem !important;
    top: 2rem !important;
    z-index: 200;
    opacity: 1;
    visibility: visible;
    transform: none !important; /* ПРИНУДИТЕЛЬНО убираем все transform */
}

/* Скрываем кнопку меню когда открыта боковая панель - ТОЛЬКО через opacity */
body.sidebar-open .menu-toggle {
    opacity: 0;
    visibility: hidden;
}

/* Убираем все правила с transform - кнопка НИКОГДА не сдвигается */
body:not(.sidebar-open) .menu-toggle {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important; /* ПРИНУДИТЕЛЬНО никаких transform */
}

.menu-toggle:hover {
    background: var(--primary-purple);
    color: var(--text-white);
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.025em;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed; /* Изменяем на fixed для стабильности */
    left: 50%; /* Центрируем */
    top: 2rem; /* Фиксированная позиция сверху */
    transform: translateX(-50%); /* Центрируем по горизонтали */
    z-index: 200; /* Высокий z-index чтобы быть поверх панели */
}

.header-actions {
    display: flex;
    gap: 1rem;
    position: fixed; /* Изменяем на fixed для стабильности */
    right: 2rem;
    top: 2rem; /* Фиксированная позиция сверху */
    z-index: 4000; /* Очень высокий z-index чтобы быть поверх уведомлений */
    transform: none; /* Убираем transform */
}

.btn-cart {
    background: rgba(124, 58, 237, 0.95);
    backdrop-filter: blur(15px);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(124, 58, 237, 0.4);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.btn-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn-cart:hover::before {
    left: 100%;
}

.btn-cart:hover {
    background: rgba(88, 28, 135, 0.95);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-hover);
}

/* Кнопка Feedback */
.btn-feedback {
    background: rgba(59, 130, 246, 0.95);
    backdrop-filter: blur(15px);
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.btn-feedback::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.btn-feedback:hover::before {
    left: 100%;
}

.btn-feedback:hover {
    background: rgba(37, 99, 235, 0.95);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-hover);
}

/* Секция героя */
.hero {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #7c3aed 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
    animation: heroBackground 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes heroBackground {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #dc2626;
    margin: 1rem auto 0;
    border-radius: 2px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 400;
    line-height: 1.5;
}

.hero-cta {
    /* Убираем анимацию - элементы должны появляться сразу */
}

.hero-cta .btn-primary {
    background: #7c3aed;
    border: 2px solid #7c3aed;
    color: #ffffff;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-cta .btn-primary:hover {
    background: #581c87;
    border-color: #581c87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Секция товаров */
.products-section {
    padding: 6rem 2rem;
    background: #ffffff;
    position: relative;
    color: #000000;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: #000000;
    position: relative;
    letter-spacing: -0.025em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #dc2626;
    border-radius: 2px;
}

@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 80px;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Карточка товара */
.product-card {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid #e5e7eb;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #dc2626;
}


@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--bg-gray);
    transition: transform var(--transition-normal);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #000000;
    letter-spacing: -0.025em;
}

.product-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #dc2626;
}

.product-category {
    background: #faf5ff;
    color: #7c3aed;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #c4b5fd;
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease-out;
}

/* Модальное окно корзины */
.cart-modal {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.1);
}

/* Заголовок корзины */
.cart-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.cart-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #7c3aed;
    border-radius: 2px;
}

/* Товары в корзине */
.cart-items {
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    border: 2px solid #e5e7eb;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #7c3aed;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-right: 1.5rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-size: 1.125rem;
    color: #7c3aed;
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #7c3aed;
    background: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 700;
    color: #7c3aed;
}

.quantity-btn:hover {
    background: #7c3aed;
    color: #ffffff;
    transform: scale(1.1);
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    color: #000000;
}

.quantity-input:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.remove-item-btn {
    background: #7c3aed;
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.remove-item-btn:hover {
    background: #581c87;
    transform: scale(1.1);
}

/* Итого */
.cart-total {
    background: #f9fafb;
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
}

.total-price {
    font-size: 2rem;
    font-weight: 800;
    color: #7c3aed;
}

/* Форма заказа */
.order-form {
    background: #ffffff;
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.order-form h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.order-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: #7c3aed;
    border-radius: 1px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #000000;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all var(--transition-fast);
    font-family: inherit;
    color: #000000;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Действия заказа */
.order-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.order-actions .btn-secondary {
    flex: 1;
    margin-right: 1rem;
    background: #6b7280;
    color: #ffffff;
    border: 2px solid #6b7280;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.order-actions .btn-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 114, 128, 0.3);
}

.order-actions .btn-primary {
    flex: 2;
    background: #7c3aed;
    color: #ffffff;
    border: 2px solid #7c3aed;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.125rem;
}

.order-actions .btn-primary:hover {
    background: #581c87;
    border-color: #581c87;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

/* Пустая корзина */
.cart-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #f9fafb;
    border-radius: var(--radius-xl);
    border: 2px solid #e5e7eb;
    margin: 2rem 0;
}

.cart-empty i {
    font-size: 5rem;
    margin-bottom: 2rem;
    color: #dc2626;
}

.cart-empty h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #000000;
    font-weight: 700;
}

.cart-empty p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #6b7280;
    font-weight: 500;
}

/* Кнопка "В корзину" */
.btn-add-to-cart {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #dc2626;
    color: #ffffff;
    border: 2px solid #dc2626;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 1rem;
}

.btn-add-to-cart:hover {
    background: #991b1b;
    border-color: #991b1b;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
}

.btn-add-to-cart:disabled {
    background: #9ca3af;
    border-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-add-to-cart:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Сток товара */
.product-stock {
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

.stock-available {
    color: #10b981;
    font-weight: 600;
}

.stock-unavailable {
    color: var(--primary-purple);
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-gray);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    z-index: 1;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--primary-red);
    color: var(--text-white);
    transform: scale(1.1);
}

.modal-body {
    padding: 3rem;
}

/* Уведомления */
.notifications {
    position: fixed;
    top: 8rem;
    right: 2rem;
    z-index: 3000;
}

.notification {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-xl);
    max-width: 450px;
    animation: slideInRight 0.4s ease-out;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-red);
}

.notification.success::before {
    background: #10b981;
}

.notification.error::before {
    background: var(--primary-red);
}

.notification.warning::before {
    background: #f59e0b;
}

.notification.info::before {
    background: #3b82f6;
}

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

/* Утилиты */
.hidden {
    display: none !important;
}

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

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }

/* Footer */
.footer {
    background: var(--gradient-hero);
    color: var(--text-white);
    padding: 2rem 0;
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(220, 38, 38, 0.3);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(220, 38, 38, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.footer .container {
    position: relative;
    z-index: 2;
}

.footer p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.footer a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer a:hover {
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
    transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        left: -100%;
    }
    
    .main-content.sidebar-open {
        margin-left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .header {
        padding: 1rem;
    }
    
    .menu-toggle {
        left: 1rem;
        top: 1rem;
        padding: 0.5rem;
        font-size: 1rem;
    }
    
    .page-title {
        font-size: 1.5rem;
        top: 1rem;
    }
    
    .header-actions {
        right: 1rem;
        bottom: 2rem;
    }
    
    .notifications {
        top: 6rem;
        right: 1rem;
        left: 1rem;
    }
    
    .notification {
        max-width: none;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 4rem 1rem;
        min-height: 60vh;
    }
    
    .products-section {
        padding: 4rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-card {
        margin: 0 0.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-body {
        padding: 2rem;
    }
}
/* Стили для кнопки торговца */
.btn-trader {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-left: 0.5rem;
}

.btn-trader::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-trader:hover::before {
    left: 100%;
}

.btn-trader:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Стили для кнопки курьера */
.btn-kurer {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-left: 0.5rem;
}

.btn-kurer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-kurer:hover::before {
    left: 100%;
}

.btn-kurer:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Фильтры товаров */
.products-filters {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all var(--transition-fast);
    font-family: inherit;
    color: #000000;
    background: #ffffff;
}

.search-input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    transform: translateY(-1px);
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #dc2626;
    font-size: 1.25rem;
    pointer-events: none;
}

.category-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all var(--transition-fast);
    font-family: inherit;
    color: #000000;
    background: #ffffff;
    cursor: pointer;
}

.category-select:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    transform: translateY(-1px);
}

.category-select option {
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .products-filters {
        flex-direction: column;
        gap: 1rem;
    }

    .filter-group {
        min-width: auto;
    }
}

/* Модальное окно Feedback */
.feedback-title {
    font-size: 2rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 0.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.feedback-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #dc2626;
    border-radius: 2px;
}

.feedback-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.feedback-form {
    max-width: 500px;
    margin: 0 auto;
}

.feedback-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.feedback-actions .btn-secondary {
    background: #6b7280;
    color: #ffffff;
    border: 2px solid #6b7280;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.feedback-actions .btn-secondary:hover {
    background: #4b5563;
    border-color: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 114, 128, 0.3);
}

@media (max-width: 768px) {
    .feedback-actions {
        flex-direction: column;
    }

    .feedback-actions .btn-secondary,
    .feedback-actions .btn-primary {
        width: 100%;
    }
}

/* Стили для отображения товаров в заказах курьера */
.order-items {
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(220, 38, 38, 0.1);
}

.order-items h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.items-list .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.item-name {
    font-weight: 500;
    color: var(--text-dark);
    flex: 1;
}

.item-quantity {
    font-weight: 600;
    color: var(--primary-purple);
    margin: 0 1rem;
}

.item-price {
    font-weight: 600;
    color: var(--text-dark);
}

/* Стили для товаров в модальном окне */
.order-items-modal {
    margin: 1rem 0;
}

.order-items-modal strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.items-list-modal {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    padding: 0.75rem;
}

.items-list-modal .item-modal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.items-list-modal .item-modal:last-child {
    border-bottom: none;
}

.items-list-modal .item-name {
    font-weight: 500;
    color: var(--text-dark);
    flex: 1;
}

.items-list-modal .item-quantity {
    font-weight: 600;
    color: var(--primary-red);
    margin: 0 1rem;
}

.items-list-modal .item-price {
    font-weight: 600;
    color: var(--text-dark);
}