/* ============================================
   FoodRescue: Дніпро - Основные стили
   Глубокая терракотово-тыквенная тема
   Цветовая гамма: Темная тыква, корица, карамель
   Оптимизированные размеры для читаемости
   Адаптивная верстка для телефонов, планшетов и ноутбуков
============================================ */

/* CSS Variables - Волшебная палитра */
:root {
    /* Основные цвета - морская волна */
    --primary-color: #2AA9A0;        /* Изумрудно-бирюзовый */
    --primary-dark: #1E7A73;          /* Глубокая морская волна */
    --primary-light: #6BC5C0;         /* Нежная бирюза */
    --primary-superlight: #E0F2F1;    /* Морская пена */

    /* Вторичные цвета - персик и фиолетовый */
    --secondary-color: #FF9F7C;       /* Спелый персик */
    --secondary-dark: #E67A5E;        /* Закатный персик */
    --secondary-light: #FFB99A;        /* Нежный персик */

    /* Фиолетовые акценты */
    --purple-color: #9B7CB9;          /* Лавандовый фиолетовый */
    --purple-dark: #7A5A9A;            /* Глубокий фиолетовый */
    --purple-light: #B89FD3;            /* Сиреневый */

    /* Фоновые цвета - глубокие с переливами */
    --bg-primary: #0A1A2F;             /* Глубокий индиго */
    --bg-secondary: #1A2F3F;           /* Ночное море */
    --bg-tertiary: #2A3F4F;            /* Сумеречный */
    --card-bg: #0F1F2F;                 /* Темный фон карточек */

    /* Текст - высокая читаемость */
    --text-primary: #FFFFFF;            /* Белый */
    --text-secondary: #E0E0E0;          /* Светло-серый */
    --text-tertiary: #B0C4D9;           /* Голубовато-серый */
    --text-light: #8A9AA8;              /* Приглушенный серый */

    /* Акцентные цвета */
    --accent-green: #48BB78;            /* Зеленый для успеха (НЕ ТРОГАЕМ) */
    --accent-orange: #ED8936;           /* Оранжевый для предупреждений */
    --accent-red: #F56565;              /* Красный для ошибок */
    --accent-cyan: #4299E1;             /* Голубой для информации */

    /* Кнопки */
    --button-primary: #2AA9A0;           /* Морская волна */
    --button-hover: #1E7A73;             /* Глубокая морская волна */
    --button-secondary: #FF9F7C;         /* Персиковый */
    --button-purple: #9B7CB9;            /* Фиолетовый */
    --button-success: #48BB78;            /* Зеленый (НЕ ТРОГАЕМ) */
    --button-danger: #F56565;             /* Красный */

    /* Границы и тени */
    --border-color: rgba(42, 169, 160, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 3px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.5);
    --shadow-2xl: 0 16px 32px rgba(0, 0, 0, 0.6);

    /* Статусы */
    --success-color: #48BB78;            /* Зеленый (НЕ ТРОГАЕМ) */
    --warning-color: #ED8936;            /* Оранжевый */
    --danger-color: #F56565;              /* Красный */
    --info-color: #4299E1;                /* Голубой */

    /* Градиенты - ВОЛШЕБНЫЕ ПЕРЕЛИВЫ */
    --gradient-primary: linear-gradient(135deg, #2AA9A0, #FF9F7C, #9B7CB9);
    --gradient-ocean: linear-gradient(135deg, #2AA9A0, #6BC5C0, #B0E0E6);
    --gradient-peach: linear-gradient(135deg, #FF9F7C, #FFB99A, #FFD7C4);
    --gradient-purple: linear-gradient(135deg, #9B7CB9, #B89FD3, #D8BFD8);
    --gradient-sunset: linear-gradient(135deg, #FF9F7C, #9B7CB9, #2AA9A0);
    --gradient-magic: linear-gradient(135deg, #2AA9A0, #9B7CB9, #FF9F7C);
    --gradient-success: linear-gradient(135deg, #48BB78, #68D391);  /* Зеленый (НЕ ТРОГАЕМ) */

    /* Закругления - компактные */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-xl: 14px;
    --radius-2xl: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Анимации */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 2px;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography - оптимизированные размеры */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 0.875rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

h4 {
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
    color: var(--text-primary);
}

p {
    margin-bottom: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9375rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9375rem;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ========== HEADER / NAVIGATION - КОМПАКТНЫЙ ========== */
.navbar {
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.95) 0%, rgba(62, 42, 31, 0.95) 100%);
    border-bottom: 1px solid rgba(230, 126, 34, 0.2);
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-radius: var(--radius-md);
    background-color: rgba(44, 24, 16, 0.9);
    border: 1px solid rgba(230, 126, 34, 0.3);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    background-color: rgba(44, 24, 16, 0.95);
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: rgba(44, 24, 16, 0.85);
    border: 1px solid rgba(230, 126, 34, 0.2);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.2), rgba(167, 123, 85, 0.2));
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    text-decoration: none;
    transform: translateY(-1px);
}

.nav-links a.active {
    font-weight: 700;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.25), rgba(167, 123, 85, 0.25));
    border-color: var(--primary-color);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

/* Мобильное меню для телефонов */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.98) 0%, rgba(62, 42, 31, 0.98) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 999;
    border-bottom: 1px solid rgba(230, 126, 34, 0.2);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(230, 126, 34, 0.15);
    font-weight: 600;
    transition: var(--transition);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.15), rgba(167, 123, 85, 0.15));
    border-radius: var(--radius-md);
}

/* Main Content - меньше отступ сверху */
main {
    margin-top: 70px;
    padding: 1.5rem 0;
    min-height: calc(100vh - 70px);
}

/* ========== CARDS - КОМПАКТНЫЕ ========== */
.card {
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.95), rgba(62, 42, 31, 0.95));
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(230, 126, 34, 0.15);
    transition: var(--transition);
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: rgba(230, 126, 34, 0.3);
}

/* Статистические карточки */
.stats-card {
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.95), rgba(62, 42, 31, 0.95));
    border: 1px solid rgba(230, 126, 34, 0.2);
    padding: 1rem;
}

.stats-card::before {
    background: var(--gradient-success);  /* Зеленый (НЕ ТРОГАЕМ) */
}

/* Главные карточки с меню */
.featured-card {
    background: linear-gradient(135deg, #3E2A1F, #2C1810);
    border: 1px solid var(--primary-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
}

.featured-card::before {
    background: var(--gradient-primary);
    height: 4px;
}

/* Buttons - компактные */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.4s;
}

.btn:hover:not(:disabled)::after {
    transform: translateX(100%);
}

/* ========== НОВЫЕ ГРАДИЕНТНЫЕ КНОПКИ ========== */
.btn-gradient-primary {
    background: linear-gradient(135deg, #2AA9A0, #1E7A73, #2AA9A0);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 169, 160, 0.3);
}

.btn-gradient-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(42, 169, 160, 0.5);
}

.btn-gradient-secondary {
    background: linear-gradient(135deg, #FF9F7C, #E67A5E, #FF9F7C);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 159, 124, 0.3);
}

.btn-gradient-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 159, 124, 0.5);
}

.btn-gradient-purple {
    background: linear-gradient(135deg, #9B7CB9, #7A5A9A, #9B7CB9);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(155, 124, 185, 0.3);
}

.btn-gradient-purple:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 124, 185, 0.5);
}

.btn-gradient-magic {
    background: var(--gradient-magic);
    background-size: 200% 200%;
    animation: gradientMove 5s ease infinite;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 169, 160, 0.3);
}

.btn-gradient-magic:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(155, 124, 185, 0.4);
}

.btn-gradient-success {
    background: linear-gradient(135deg, #48BB78, #2F855A, #48BB78);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.btn-gradient-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.5);
}

.btn-gradient-danger {
    background: linear-gradient(135deg, #F56565, #C53030, #F56565);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

.btn-gradient-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 101, 101, 0.5);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ========== СТАТИСТИКА - ТЕМНЫЙ ФОН С ГРАДИЕНТОМ ========== */
.stats-gradient {
    background: linear-gradient(145deg, #0F1F2F 0%, #1A2F3F 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(42, 169, 160, 0.2) !important;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
}

.stats-gradient:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(155, 124, 185, 0.3) !important;
    border-color: rgba(255, 159, 124, 0.3) !important;
}

.stats-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-magic);
    opacity: 0.7;
}

.stats-gradient .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    background: var(--gradient-magic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    filter: drop-shadow(0 0 8px rgba(42, 169, 160, 0.5));
}

.stats-gradient .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 15px rgba(42, 169, 160, 0.7);
}

.stats-gradient .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== ПУСТЫЕ СОСТОЯНИЯ - ЭФФЕКТ СВЕЧЕНИЯ ========== */
.empty-state-glow {
    background: linear-gradient(145deg, #0A1A2F 0%, #1A2F3F 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.7), 0 0 30px rgba(42, 169, 160, 0.2) !important;
    border-radius: var(--radius-lg);
    padding: 3rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: glowPulse 3s ease-in-out infinite;
}

.empty-state-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(42, 169, 160, 0.1) 0%, transparent 70%);
    animation: rotateSlow 20s linear infinite;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.7), 0 0 30px rgba(42, 169, 160, 0.2); }
    50% { box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.7), 0 0 50px rgba(155, 124, 185, 0.3); }
}

.empty-state-glow .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: var(--gradient-magic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(42, 169, 160, 0.5));
}

.empty-state-glow h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(42, 169, 160, 0.5);
}

.empty-state-glow p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 300px;
    margin: 0 auto 1.5rem;
}

/* ========== БЫСТРЫЕ ДЕЙСТВИЯ - КАРТОЧКИ С АНИМАЦИЕЙ ========== */
.quick-action-card {
    background: linear-gradient(145deg, #0F1F2F 0%, #1A2F3F 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.quick-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-magic);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.quick-action-card:hover::before {
    transform: translateX(0);
}

.quick-action-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(42, 169, 160, 0.3);
    border-color: rgba(255, 159, 124, 0.3) !important;
}

.quick-action-card .action-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    background: var(--gradient-magic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    transition: transform 0.3s ease;
}

.quick-action-card:hover .action-icon {
    transform: scale(1.1) rotate(5deg);
}

.quick-action-card h3 {
    font-size: 1rem;
    color: white;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.quick-action-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

/* Адаптивность для быстрых действий */
@media (max-width: 1023px) {
    .quick-actions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.875rem;
    }
}

@media (max-width: 767px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .quick-action-card {
        padding: 1rem;
    }

    .quick-action-card .action-icon {
        font-size: 2rem;
    }
}

@media (max-width: 479px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* ========== СКАНИРОВАНИЕ - КАРТОЧКИ С ПУЛЬСАЦИЕЙ ========== */
.scan-card {
    background: linear-gradient(145deg, #0F1F2F 0%, #1A2F3F 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.scan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: var(--gradient-magic);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.scan-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.scan-card .scan-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    background: var(--gradient-magic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(42, 169, 160, 0.3)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(42, 169, 160, 0.7)); }
}

.scan-card h3 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.5rem;
}

.scan-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.scan-timestamp {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.scan-timestamp i {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* ========== ЧЕРНЫЙ СПИСОК - КРАСНЫЕ АКЦЕНТЫ ========== */
.blacklist-card {
    background: linear-gradient(145deg, #0A0F1A 0%, #1A1F2A 100%) !important;
    border: 1px solid rgba(245, 101, 101, 0.2) !important;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.blacklist-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F56565, #FC8181, #F56565);
    opacity: 0.8;
}

.blacklist-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(245, 101, 101, 0.15);
    border-color: rgba(245, 101, 101, 0.4) !important;
}

.blacklist-icon {
    color: #F56565;
    font-size: 1.5rem;
    margin-right: 0.5rem;
    filter: drop-shadow(0 0 8px rgba(245, 101, 101, 0.5));
}

.blacklist-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(245, 101, 101, 0.1);
    transition: all 0.2s ease;
}

.blacklist-item:hover {
    background: rgba(245, 101, 101, 0.05);
    transform: translateX(5px);
}

.blacklist-item:last-child {
    border-bottom: none;
}

.blacklist-item .user-info {
    flex: 1;
}

.blacklist-item .user-name {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.blacklist-item .user-reason {
    color: #F56565;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blacklist-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(245, 101, 101, 0.15);
    color: #F56565;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(245, 101, 101, 0.3);
}

/* ========== ОБЩИЕ УЛУЧШЕНИЯ ДЛЯ ИКОНОК ========== */
.icon-gradient {
    background: var(--gradient-magic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    filter: drop-shadow(0 0 5px rgba(42, 169, 160, 0.3));
}

.icon-white {
    color: white !important;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

/* Primary Button - Тыквенный */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

/* Secondary Button - Коричный */
.btn-secondary {
    background: var(--gradient-peach);
    color: var(--text-primary);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.btn-secondary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

/* Success Button - Зеленый (НЕ ТРОГАЕМ) */
.btn-success {
    background: linear-gradient(135deg, var(--accent-green), #68D391);
    color: white;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(72, 187, 120, 0.25);
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, var(--accent-red), #FC8181);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 62, 62, 0.25);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover:not(:disabled) {
    background: rgba(230, 126, 34, 0.15);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(230, 126, 34, 0.2);
    box-shadow: none;
}

.btn-ghost:hover:not(:disabled) {
    background: rgba(230, 126, 34, 0.1);
    border-color: var(--text-tertiary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ========== DASHBOARD GRID - АДАПТИВНЫЙ ========== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dashboard-grid .card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.dashboard-grid .card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.dashboard-grid .card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.dashboard-grid .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.dashboard-grid .btn {
    margin-top: auto;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Главная секция меню */
.main-menu-section {
    grid-column: 1 / -1;
    margin-bottom: 1.5rem;
}

.main-menu-section .card {
    background: linear-gradient(135deg, #3E2A1F, #2C1810);
    border: 1px solid var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
    padding: 1.5rem;
}

/* ========== АДАПТИВНАЯ СЕТКА ДЛЯ КАРТОЧЕК ТОВАРОВ ========== */
.items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.25rem;
}

.item-card {
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.95), rgba(62, 42, 31, 0.95));
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(230, 126, 34, 0.15);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    height: 100%;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(230, 126, 34, 0.3);
}

.item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.item-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: linear-gradient(135deg, #4F3829, #3E2A1F);
}

.item-info {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom, transparent, rgba(62, 42, 31, 0.3));
}

.item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    line-height: 1.3;
}

.item-description {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.625rem;
    line-height: 1.4;
    flex-grow: 1;
}

.item-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(230, 126, 34, 0.15);
}

.original-price {
    text-decoration: line-through;
    color: var(--text-tertiary);
    font-size: 0.75rem;
}

.discount-price {
    color: var(--accent-green);
    font-size: 1.125rem;
    font-weight: 700;
}

.discount-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--gradient-peach);
    color: var(--text-primary);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.75rem;
    z-index: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Единый стиль для кнопок действий в карточках */
.item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.item-actions .btn {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
}

/* ========== HOW IT WORKS SECTION - АДАПТИВНАЯ ========== */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.how-it-works-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.95), rgba(62, 42, 31, 0.95));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(230, 126, 34, 0.15);
    transition: var(--transition);
}

.how-it-works-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(230, 126, 34, 0.3);
}

.how-it-works-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.how-it-works-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.how-it-works-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Статистические блоки */
.stats-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg,
        rgba(10, 26, 47, 0.95),
        rgba(26, 47, 63, 0.95)) !important;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(42, 169, 160, 0.2);
    transition: var(--transition);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-primary);
}

.stats-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(155, 124, 185, 0.3);
    border-color: rgba(255, 159, 124, 0.3) !important;
}

.stats-item .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #2AA9A0, #FF9F7C, #9B7CB9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.stats-item .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 10px rgba(42, 169, 160, 0.5);
}

.stats-item .stat-label {
    font-size: 0.95rem;
    color: #E0E0E0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Главный заголовок секции */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid rgba(230, 126, 34, 0.2);
}

.section-header h2 {
    margin-bottom: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    position: relative;
    padding-left: 0.75rem;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    border-radius: 1.5px;
}

/* Map Container - компактный */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(230, 126, 34, 0.2);
    position: relative;
    z-index: 1;
}

/* Leaflet Map Styles */
.leaflet-container {
    font-family: inherit;
    background: var(--bg-tertiary);
}

.leaflet-control-zoom {
    border: 1px solid rgba(230, 126, 34, 0.2) !important;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.95), rgba(62, 42, 31, 0.95)) !important;
    box-shadow: var(--shadow-md) !important;
    border-radius: var(--radius-sm) !important;
    margin-top: 80px !important;
    overflow: hidden;
}

.leaflet-control-zoom a {
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.95), rgba(62, 42, 31, 0.95)) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid rgba(230, 126, 34, 0.2) !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    font-size: 16px !important;
}

.leaflet-control-zoom a:hover {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.2), rgba(167, 123, 85, 0.2)) !important;
}

.leaflet-popup-content {
    color: var(--text-primary);
    font-family: inherit;
    padding: 0.75rem !important;
    font-size: 0.875rem;
}

.leaflet-popup-content-wrapper {
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.98), rgba(62, 42, 31, 0.95)) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(230, 126, 34, 0.2) !important;
    box-shadow: var(--shadow-md) !important;
    border-radius: var(--radius-md) !important;
    padding: 0 !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* QR Code - компактный */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.95), rgba(62, 42, 31, 0.95));
    border-radius: var(--radius-lg);
    margin: 1.5rem auto;
    max-width: 400px;
    border: 1px solid rgba(230, 126, 34, 0.2);
    box-shadow: var(--shadow-md);
}

.qr-code {
    max-width: 200px;
    margin: 1.5rem 0;
    cursor: pointer;
    transition: var(--transition);
    border: 8px solid #2C1810;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    background: #2C1810;
    padding: 0.75rem;
}

.qr-code:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-xl);
}

.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.qr-modal.active {
    display: flex;
}

.qr-modal img {
    max-width: 70%;
    max-height: 70%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 12px solid #2C1810;
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Form Containers - компактные */
.form-container {
    max-width: 400px;
    margin: 2rem auto;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.98), rgba(62, 42, 31, 0.95));
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(230, 126, 34, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

/* Notifications - компактные */
.notification {
    position: fixed;
    top: 80px;
    right: 1rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md);
    z-index: 1001;
    animation: slideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid;
    color: white;
    font-weight: 600;
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.notification.success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.95), rgba(104, 211, 145, 0.95));
    border-color: var(--accent-green);
}

.notification.error {
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.95), rgba(252, 129, 129, 0.95));
    border-color: var(--accent-red);
}

.notification.info {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.95), rgba(102, 177, 255, 0.95));
    border-color: var(--info-color);
}

.notification.warning {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.95), rgba(251, 211, 141, 0.95));
    border-color: var(--warning-color);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Role Selection - компактный */
.role-selection {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 1.5rem;
}

.role-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
}

.role-card {
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.98), rgba(62, 42, 31, 0.95));
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.role-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(230, 126, 34, 0.3);
}

.role-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.role-card:hover .role-icon {
    transform: scale(1.05);
}

.role-card h2 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.role-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.5;
    font-size: 0.875rem;
}

/* Tables - компактные */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--text-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(230, 126, 34, 0.2);
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.98), rgba(62, 42, 31, 0.95));
    box-shadow: var(--shadow-sm);
    font-size: 0.875rem;
}

thead {
    background: var(--gradient-primary);
}

th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 700;
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
}

td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(230, 126, 34, 0.15);
    color: var(--text-secondary);
    background: transparent;
    transition: var(--transition);
}

tbody tr {
    transition: var(--transition);
}

tbody tr:hover {
    background: linear-gradient(90deg, rgba(230, 126, 34, 0.1), rgba(167, 123, 85, 0.1));
}

/* Badges - компактные */
.badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid;
}

.badge-success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.2), rgba(104, 211, 145, 0.2));
    color: var(--accent-green);
    border-color: var(--accent-green);
}

.badge-warning {
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.2), rgba(251, 211, 141, 0.2));
    color: var(--warning-color);
    border-color: var(--warning-color);
}

.badge-danger {
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.2), rgba(252, 129, 129, 0.2));
    color: var(--danger-color);
    border-color: var(--danger-color);
}

.badge-info {
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.2), rgba(102, 177, 255, 0.2));
    color: var(--info-color);
    border-color: var(--info-color);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }

.mt-1 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.75rem; }
.mt-3 { margin-top: 1.125rem; }
.mt-4 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.75rem; }
.mb-3 { margin-bottom: 1.125rem; }
.mb-4 { margin-bottom: 1.5rem; }

.p-1 { padding: 0.375rem; }
.p-2 { padding: 0.75rem; }
.p-3 { padding: 1.125rem; }
.p-4 { padding: 1.5rem; }

/* Счетчик корзины - компактный */
.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--accent-red);
    color: white;
    border-radius: 9px;
    font-size: 0.6875rem;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: middle;
    animation: pulse 2s infinite;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Стили для сердечек избранного - компактные */
.favorite-icon {
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2C1810;
    border: 1px solid rgba(230, 126, 34, 0.2);
    color: var(--text-tertiary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.favorite-icon:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.15), rgba(252, 129, 129, 0.15));
    border-color: var(--accent-red);
    color: var(--accent-red);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.favorite-icon.favorited {
    color: var(--accent-red);
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.15), rgba(252, 129, 129, 0.15));
    border-color: var(--accent-red);
}

/* Forms - компактные */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid rgba(230, 126, 34, 0.2);
    border-radius: var(--radius-md);
    background: #2C1810;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
    font-family: inherit;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.5);
    background: #3E2A1F;
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

/* Selection controls */
.form-control[type="checkbox"],
.form-control[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
}

/* File upload */
.form-control[type="file"] {
    padding: 0.375rem;
    background: transparent;
}

/* Textarea */
textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Select dropdown */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23D4B69B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px 12px;
    padding-right: 2.5rem;
}

/* Form validation states */
.form-control.is-valid {
    border-color: var(--accent-green);
}

.form-control.is-invalid {
    border-color: var(--accent-red);
}

/* Form help text */
.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* Custom form elements */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-check-label {
    margin-bottom: 0;
}

/* Form row layout */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}

.form-col {
    flex: 1 0 0%;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

/* Анимация загрузки - компактная */
.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(230, 126, 34, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s ease-in-out infinite;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Плавный скролл */
html {
    scroll-behavior: smooth;
}

/* Сетка для статистики - компактная */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Эмфасис для главного меню - компактный */
.menu-emphasis {
    background: linear-gradient(135deg, #3E2A1F 0%, #2C1810 100%);
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Quantity Selector - компактный */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    padding: 0;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.quantity-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--text-tertiary);
    box-shadow: none;
}

.quantity-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid rgba(230, 126, 34, 0.2);
    border-radius: var(--radius-md);
    background: #2C1810;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: var(--transition);
    padding: 0;
    -moz-appearance: textfield;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ========== АДАПТИВНЫЕ СТИЛИ ДЛЯ КАРТОЧЕК ТОВАРОВ ========== */

/* Настольные компьютеры (большие экраны) - 4 карточки */
@media (min-width: 1200px) {
    .items-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Ноутбуки (1024px - 1199px) - 4 карточки */
@media (max-width: 1199px) {
    .items-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Планшеты (768px - 1023px) - 4 карточки */
@media (max-width: 1023px) {
    .items-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.875rem;
    }

    .item-image {
        height: 130px;
    }

    .item-info {
        padding: 0.875rem;
    }

    .item-title {
        font-size: 0.9rem;
    }

    .item-description {
        font-size: 0.75rem;
    }

    .discount-price {
        font-size: 1.0625rem;
    }
}

/* Большие телефоны (480px - 767px) - 2 карточки в ряд */
@media (max-width: 767px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .item-image {
        height: 120px;
    }

    .item-info {
        padding: 0.75rem;
    }

    .item-title {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .item-description {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .item-price {
        padding-top: 0.5rem;
    }

    .discount-price {
        font-size: 1rem;
    }

    .original-price {
        font-size: 0.7rem;
    }

    .item-actions {
        margin-top: 0.5rem;
    }

    .item-actions .btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }

    .discount-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Маленькие телефоны (до 479px) - 2 карточки в ряд */
@media (max-width: 479px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .item-image {
        height: 100px;
    }

    .item-info {
        padding: 0.4rem;
    }

    .item-title {
        font-size: 0.8rem;
    }

    .item-description {
        font-size: 0.65rem;
        margin-bottom: 0.375rem;
    }

    .discount-price {
        font-size: 0.9375rem;
    }

    .item-actions .btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.375rem;
    }
}

/* ========== АДАПТИВНЫЕ СТИЛИ ДЛЯ DASHBOARD GRID И HOW IT WORKS ========== */

/* Десктопы (≥1200px) - 4 в ряд */
@media (min-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .how-it-works-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Ноутбуки (1024px - 1199px) - 4 в ряд */
@media (max-width: 1199px) {
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .how-it-works-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Планшеты (768px - 1023px) - 4 в ряд (меньше отступы) */
@media (max-width: 1023px) {
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }

    .dashboard-grid .card {
        padding: 0.875rem;
    }

    .dashboard-grid .card h3 {
        font-size: 0.9rem;
    }

    .dashboard-grid .card p {
        font-size: 0.8rem;
    }

    .dashboard-grid .stat-value {
        font-size: 1.5rem;
    }

    .how-it-works-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .how-it-works-item {
        padding: 1rem 0.75rem;
    }

    .how-it-works-icon {
        font-size: 2rem;
    }

    .how-it-works-item h3 {
        font-size: 1rem;
    }

    .how-it-works-item p {
        font-size: 0.8rem;
    }
}

/* Большие телефоны (480px - 767px) - 4 в ряд */
@media (max-width: 767px) {
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .dashboard-grid .card {
        padding: 0.75rem;
    }

    .dashboard-grid .card h3 {
        font-size: 0.8rem;
        margin-bottom: 0.375rem;
    }

    .dashboard-grid .card p {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .dashboard-grid .stat-value {
        font-size: 1.25rem;
        margin: 0.375rem 0;
    }

    .dashboard-grid .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .how-it-works-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }

    .how-it-works-item {
        padding: 0.875rem 0.5rem;
    }

    .how-it-works-icon {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .how-it-works-item h3 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .how-it-works-item p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

/* Маленькие телефоны (до 479px) - 2 в ряд */
@media (max-width: 479px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .dashboard-grid .card {
        padding: 0.625rem;
    }

    .dashboard-grid .card h3 {
        font-size: 0.75rem;
    }

    .dashboard-grid .card p {
        font-size: 0.7rem;
    }

    .dashboard-grid .stat-value {
        font-size: 1.125rem;
    }

    .dashboard-grid .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }

    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .how-it-works-item {
        padding: 0.75rem 0.5rem;
    }

    .how-it-works-icon {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .how-it-works-item h3 {
        font-size: 0.8rem;
        margin-bottom: 0.375rem;
    }

    .how-it-works-item p {
        font-size: 0.7rem;
        line-height: 1.3;
    }
}

/* Очень маленькие телефоны (до 360px) - 2 в ряд (еще меньше) */
@media (max-width: 360px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.375rem;
    }

    .dashboard-grid .card {
        padding: 0.5rem;
    }

    .dashboard-grid .card h3 {
        font-size: 0.7rem;
    }

    .dashboard-grid .card p {
        font-size: 0.65rem;
    }

    .dashboard-grid .stat-value {
        font-size: 1rem;
    }

    .how-it-works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.375rem;
    }

    .how-it-works-item {
        padding: 0.625rem 0.375rem;
    }

    .how-it-works-icon {
        font-size: 1.25rem;
    }

    .how-it-works-item h3 {
        font-size: 0.75rem;
    }

    .how-it-works-item p {
        font-size: 0.65rem;
    }
}

/* ========== CART SPECIFIC STYLES ========== */

/* Cart Container */
.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Cart Items Section */
.cart-items-card {
    margin-bottom: 1.5rem;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-clear-cart {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Cart Item */
.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: var(--transition);
}

.cart-item:hover {
    background: rgba(230, 126, 34, 0.05);
}

.cart-item-image {
    position: relative;
}

.cart-item-image .item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.item-image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-info .item-title {
    margin: 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.item-cafe {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.cart-item-info .price-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cart-item-info .original-price {
    text-decoration: line-through;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.cart-item-info .discount-price {
    color: var(--danger-color);
    font-weight: bold;
    font-size: 1rem;
}

.cart-item-info .discount-badge {
    background: var(--danger-color);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.available-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.available-quantity {
    font-weight: bold;
    color: var(--text-primary);
}

/* Quantity Controls in Cart */
.cart-item-controls .quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-controls .quantity-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-display {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
    font-size: 1rem;
}

/* Cart Item Total */
.cart-item-total {
    text-align: right;
    min-width: 120px;
}

.item-total-price {
    font-weight: bold;
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.btn-remove-item {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Important Info Card */
.important-info-card {
    background: linear-gradient(135deg, #3E2A1F, #2C1810);
    margin-top: 1rem;
}

.important-info-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.important-info-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    list-style-type: none;
}

.important-info-list li {
    margin-bottom: 0.375rem;
    position: relative;
}

.important-info-list li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -1.25rem;
}

/* Empty Cart */
.empty-state-card {
    background: linear-gradient(135deg,
        rgba(10, 26, 47, 0.95),
        rgba(26, 47, 63, 0.95)) !important;
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    background: linear-gradient(135deg, #2AA9A0, #FF9F7C, #9B7CB9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.empty-state-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.empty-state-description {
    color: #E0E0E0;
    font-size: 0.95rem;
    max-width: 300px;
    margin: 0 auto;
}

/* Order Summary */
.order-summary-card {
    position: sticky;
    top: 20px;
    margin-bottom: 1rem;
}

.order-summary-details {
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.savings-amount {
    color: var(--success-color);
    font-weight: bold;
}

.summary-divider {
    border-top: 2px solid var(--border-color);
    margin: 1rem 0;
    padding-top: 1rem;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.125rem;
    font-weight: bold;
}

.total-amount {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Time Slot Notice */
.time-slot-notice {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #2C1810;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Terms Agreement */
.terms-agreement {
    margin-bottom: 1.5rem;
}

.terms-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.terms-list {
    margin: 0.5rem 0 0 1.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    list-style-type: none;
}

.terms-list li {
    margin-bottom: 0.25rem;
    position: relative;
}

.terms-list li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: -1rem;
}

/* Checkout Button */
.btn-checkout {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.checkout-notice {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ========== RESPONSIVE CART STYLES ========== */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .cart-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .order-summary-card {
        position: static;
    }
}

/* Mobile Landscape (480px - 767px) */
@media (max-width: 767px) {
    .cart-item {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 0.75rem;
    }

    .cart-item-controls {
        grid-column: 1;
        grid-row: 2;
    }

    .cart-item-total {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .cart-item-image .item-image,
    .item-image-placeholder {
        width: 70px;
        height: 70px;
    }

    .important-info-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    .info-icon {
        font-size: 1.5rem;
    }

    .cart-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .btn-clear-cart {
        width: 100%;
    }

    .empty-cart-actions {
        flex-direction: column;
    }

    .empty-cart-actions .btn {
        width: 100%;
    }
}

/* Mobile Portrait (до 480px) */
@media (max-width: 480px) {
    .cart-item {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 0.5rem;
        text-align: center;
    }

    .cart-item-image,
    .cart-item-info,
    .cart-item-controls,
    .cart-item-total {
        grid-column: 1;
    }

    .cart-item-image {
        display: flex;
        justify-content: center;
    }

    .cart-item-info {
        align-items: center;
    }

    .cart-item-controls {
        justify-content: center;
    }

    .cart-item-total {
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .cart-item-image .item-image,
    .item-image-placeholder {
        width: 60px;
        height: 60px;
    }

    .cart-item-info .item-title {
        font-size: 0.9375rem;
    }

    .item-cafe {
        font-size: 0.8125rem;
    }

    .cart-item-info .discount-price {
        font-size: 0.9375rem;
    }

    .cart-item-info .original-price {
        font-size: 0.8125rem;
    }

    .item-total-price {
        font-size: 1rem;
    }

    .available-info {
        font-size: 0.8125rem;
    }
}

/* Very Small Phones (до 360px) */
@media (max-width: 360px) {
    .cart-item {
        padding: 0.75rem;
    }

    .cart-item-image .item-image,
    .item-image-placeholder {
        width: 50px;
        height: 50px;
    }

    .cart-item-info .item-title {
        font-size: 0.875rem;
    }

    .item-cafe {
        font-size: 0.75rem;
    }

    .cart-item-info .discount-price {
        font-size: 0.875rem;
    }

    .cart-item-info .original-price {
        font-size: 0.75rem;
    }

    .cart-item-info .discount-badge {
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
    }

    .quantity-display {
        min-width: 25px;
        font-size: 0.875rem;
    }

    .cart-item-controls .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }

    .item-total-price {
        font-size: 0.9375rem;
    }

    .btn-remove-item {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* ========== ОБЩИЕ АДАПТИВНЫЕ СТИЛИ ========== */

/* Планшеты (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    .role-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
    }

    .nav-links {
        gap: 0.25rem;
    }

    .nav-links a {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 1.375rem;
    }

    /* Адаптивные карточки */
    .card {
        padding: 1rem;
    }

    .stats-item {
        padding: 0.875rem;
    }

    .stats-item .stat-value {
        font-size: 1.5rem;
    }

    .map-container {
        height: 350px;
    }

    /* Адаптивные таблицы */
    table {
        font-size: 0.8125rem;
    }

    th, td {
        padding: 0.625rem 0.75rem;
    }
}

/* Телефоны (до 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 0.875rem;
    }

    /* Навигация для мобильных */
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .nav-content {
        gap: 1rem;
    }

    .logo {
        font-size: 1.125rem;
        padding: 0.375rem 0.75rem;
    }

    /* Основной контент */
    main {
        margin-top: 70px;
        padding: 1rem 0;
    }

    h1 {
        font-size: 1.75rem;
        margin-bottom: 0.875rem;
    }

    h2 {
        font-size: 1.375rem;
        margin-bottom: 0.75rem;
    }

    h3 {
        font-size: 1.125rem;
        margin-bottom: 0.625rem;
    }

    h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    /* Карточки */
    .role-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card {
        padding: 1rem;
        margin-bottom: 0.875rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Кнопки */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    /* Карта */
    .map-container {
        height: 300px;
    }

    /* Формы */
    .form-container {
        margin: 1.5rem auto;
        padding: 1.25rem;
        max-width: 100%;
    }

    .form-row {
        flex-direction: column;
    }

    .form-col {
        width: 100%;
        margin-bottom: 1rem;
        padding-right: 0;
        padding-left: 0;
    }

    /* Уведомления */
    .notification {
        top: 70px;
        right: 0.75rem;
        left: 0.75rem;
        max-width: calc(100% - 1.5rem);
        padding: 0.75rem 1rem;
    }

    /* Таблицы для мобильных */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* QR код */
    .qr-container {
        padding: 1.25rem;
        margin: 1.25rem auto;
    }

    .qr-code {
        max-width: 180px;
    }

    /* Статистика */
    .stats-item .stat-value {
        font-size: 1.375rem;
    }
}

/* Маленькие телефоны (до 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .role-card {
        padding: 1.25rem;
    }

    .role-icon {
        font-size: 2rem;
    }

    .logo {
        font-size: 1rem;
        padding: 0.25rem 0.5rem;
    }

    .logo-icon {
        font-size: 1.25rem;
    }

    .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-item {
        padding: 0.75rem;
    }

    .stats-item .stat-value {
        font-size: 1.25rem;
    }

    .form-container {
        padding: 1rem;
        margin: 1rem auto;
    }

    .card {
        padding: 0.875rem;
    }

    .notification {
        top: 65px;
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }

    .mobile-nav {
        top: 65px;
        padding: 0.75rem;
    }

    .mobile-nav a {
        padding: 0.875rem;
        font-size: 0.875rem;
    }
}

/* Очень маленькие телефоны (до 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }

    .logo {
        font-size: 0.875rem;
    }

    .btn {
        font-size: 0.6875rem;
        padding: 0.4rem 2rem;
    }

    .card {
        padding: 0.75rem;
    }

    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* Ландшафтная ориентация телефонов */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar {
        padding: 0.5rem 0;
    }

    .mobile-nav {
        max-height: 70vh;
        overflow-y: auto;
    }

    .role-selection {
        min-height: auto;
        padding: 2rem 1rem;
    }

    .map-container {
        height: 250px;
    }

    .qr-container {
        min-height: auto;
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .btn, .nav-links, .mobile-menu-btn, .mobile-nav {
        display: none !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
        break-inside: avoid;
        padding: 1rem !important;
    }

    .qr-code {
        max-width: 150px !important;
        break-inside: avoid;
    }

    main {
        margin-top: 0;
        padding: 0;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* Поддержка темной темы для карт и других элементов */
@media (prefers-color-scheme: dark) {
    .leaflet-container {
        background: var(--bg-tertiary);
    }

    .leaflet-popup-content-wrapper {
        background: linear-gradient(135deg, rgba(44, 24, 16, 0.98), rgba(62, 42, 31, 0.95)) !important;
        color: var(--text-primary) !important;
    }
    /* ========== OPTIMIZED CART STYLES ========== */
.cart-container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Улучшаем отступы для маленьких экранов */
@media (max-width: 768px) {
    .container {
        padding: 0 0.75rem;
    }

    .card {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.625rem;
    }

    .card {
        padding: 0.875rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.125rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }

    .card {
        padding: 0.75rem;
    }

    h1 {
        font-size: 1.375rem;
    }

    h3 {
        font-size: 1rem;
    }
}

/* Предотвращаем горизонтальный скролл */
body {
    overflow-x: hidden;
}

main {
    overflow-x: hidden;
}
/* ========== FIXED BOTTOM NAVIGATION ========== */

/* Основные стили для нижней навигации */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.98) 0%, rgba(62, 42, 31, 0.98) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(230, 126, 34, 0.2);
    z-index: 1000;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.5);
}

.bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    min-width: 60px;
    position: relative;
    flex: 1;
    max-width: 80px;
}

.bottom-nav-item:hover {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.15), rgba(167, 123, 85, 0.15));
    text-decoration: none;
    transform: translateY(-2px);
}

.bottom-nav-item.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.2), rgba(167, 123, 85, 0.2));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.bottom-nav-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    transition: transform 0.2s ease;
}

.bottom-nav-item:hover .bottom-nav-icon {
    transform: scale(1.1);
}

.bottom-nav-label {
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
}

.bottom-nav-badge {
    position: absolute;
    top: 5px;
    right: 10px;
    background: var(--accent-red);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: pulse 2s infinite;
}

/* Анимация для активного состояния */
@keyframes navItemPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.bottom-nav-item.active .bottom-nav-icon {
    animation: navItemPulse 2s infinite;
}

/* Адаптивность для main при наличии bottom-nav */
@media (max-width: 768px) {
    main {
        margin-bottom: 70px !important;
        padding-bottom: 1rem !important;
    }

    .bottom-nav {
        display: block;
    }

    /* Увеличиваем отступы для контента чтобы не перекрывалось */
    .container {
        padding-bottom: 1rem;
    }

    /* Особые стили для страниц с длинным контентом */
    .cart-container,
    .items-grid,
    .dashboard-grid {
        margin-bottom: 1rem;
    }

    /* Улучшаем доступность для интерактивных элементов */
    .bottom-nav-item {
        padding: 0.5rem;
        min-height: 56px;
    }

    /* Увеличиваем размер иконок на очень маленьких экранах */
    @media (max-width: 360px) {
        .bottom-nav-icon {
            font-size: 1.1rem;
        }

        .bottom-nav-label {
            font-size: 0.625rem;
        }

        .bottom-nav-item {
            padding: 0.375rem;
            min-width: 55px;
        }
    }
}

/* Стили для landscape ориентации */
@media (max-height: 500px) and (orientation: landscape) {
    .bottom-nav {
        padding: 0.25rem 0;
    }

    .bottom-nav-item {
        min-height: 48px;
    }

    .bottom-nav-icon {
        font-size: 1.1rem;
        margin-bottom: 0.125rem;
    }

    .bottom-nav-label {
        font-size: 0.625rem;
    }

    main {
        margin-bottom: 60px !important;
    }
}

/* Стили для очень маленьких экранов */
@media (max-width: 320px) {
    .bottom-nav-content {
        padding: 0 0.25rem;
    }

    .bottom-nav-item {
        padding: 0.375rem 0.25rem;
        min-width: 50px;
    }

    .bottom-nav-icon {
        font-size: 1rem;
    }

    .bottom-nav-label {
        font-size: 0.6rem;
    }

    .bottom-nav-badge {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
        top: 3px;
        right: 5px;
    }
}

/* Плавное появление нижнего меню */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.bottom-nav {
    animation: slideUp 0.3s ease-out;
}

/* Эффект нажатия для мобильных */
@media (hover: none) and (pointer: coarse) {
    .bottom-nav-item:active {
        background: linear-gradient(135deg, rgba(230, 126, 34, 0.25), rgba(167, 123, 85, 0.25));
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* Скрываем нижнее меню на некоторых страницах */
body.no-bottom-nav .bottom-nav {
    display: none !important;
}

body.no-bottom-nav main {
    margin-bottom: 0 !important;
}
/* ========== QUICK ACTIONS GRID - АДАПТИВНЫЙ ========== */

/* Десктопы (≥1200px) - 4 в ряд */
@media (min-width: 1200px) {
    .quick-actions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Ноутбуки (1024px - 1199px) - 4 в ряд */
@media (max-width: 1199px) {
    .quick-actions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Планшеты (768px - 1023px) - 4 в ряд */
@media (max-width: 1023px) {
    .quick-actions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

/* Большие телефоны (480px - 767px) - 2 в ряд */
@media (max-width: 767px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .quick-action-card {
        padding: 1rem;
    }

    .quick-action-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .quick-action-card h3 {
        font-size: 0.9rem;
    }

    .quick-action-card p {
        font-size: 0.8rem;
    }
}

/* Маленькие телефоны (до 479px) - 2 в ряд */
@media (max-width: 479px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .quick-action-card {
        padding: 0.75rem;
    }

    .quick-action-icon {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .quick-action-card h3 {
        font-size: 0.85rem;
    }

    .quick-action-card p {
        font-size: 0.75rem;
    }
}

/* Очень маленькие телефоны (до 360px) - 2 в ряд */
@media (max-width: 360px) {
    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .quick-action-card {
        padding: 0.5rem;
    }

    .quick-action-icon {
        font-size: 1.5rem;
        margin-bottom: 0.375rem;
    }

    .quick-action-card h3 {
        font-size: 0.8rem;
    }

    .quick-action-card p {
        font-size: 0.7rem;
    }
}

/* ========== DASHBOARD GRID АДАПТИВНОСТЬ ========== */

/* Десктопы (≥1200px) - 4 в ряд */
@media (min-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Ноутбуки (1024px - 1199px) - 4 в ряд */
@media (max-width: 1199px) {
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Планшеты (768px - 1023px) - 4 в ряд */
@media (max-width: 1023px) {
    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Большие телефоны (480px - 767px) - 2 в ряд */
@media (max-width: 767px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Маленькие телефоны (до 479px) - 2 в ряд */
@media (max-width: 479px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Очень маленькие телефоны (до 360px) - 2 в ряд */
@media (max-width: 360px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
}
/* ========== АДАПТИВНЫЕ ЗАКАЗЫ ========== */
.desktop-table {
    display: block;
}

.mobile-order-cards {
    display: none;
}

.order-card {
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.95), rgba(62, 42, 31, 0.95));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.order-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.order-card-cancelled {
    opacity: 0.8;
    background: #2C1810;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1), rgba(167, 123, 85, 0.1));
    border-bottom: 1px solid var(--border-color);
}

.order-card-id {
    display: flex;
    flex-direction: column;
}

.order-id-label {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-id-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.order-card-body {
    padding: 1rem;
}

.order-card-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--border-color);
}

.info-row {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.1rem;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.order-card-items {
    margin-bottom: 1rem;
}

.items-label {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.5rem;
}

.items-list {
    background: rgba(44, 24, 16, 0.5);
    border-radius: var(--radius-md);
    padding: 0.5rem;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.item-row:last-child {
    border-bottom: none;
}

.item-name {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.item-quantity {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(230, 126, 34, 0.15);
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
}

.order-card-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 2px solid var(--border-color);
}

.total-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.total-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
}

.order-card-footer {
    padding: 1rem;
    background: rgba(44, 24, 16, 0.5);
    border-top: 1px solid var(--border-color);
}

.btn-block {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
}

/* Адаптивные переключения */
@media (max-width: 768px) {
    .desktop-table {
        display: none;
    }

    .mobile-order-cards {
        display: block;
    }
}

@media (max-width: 480px) {
    .order-card-info {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .order-id-value {
        font-size: 1rem;
    }

    .total-value {
        font-size: 1rem;
    }

    .item-name {
        font-size: 0.8rem;
    }
}

/* Улучшенные стили для десктопной таблицы */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.95), rgba(62, 42, 31, 0.95));
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.orders-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
    color: var(--text-primary);
    padding: 1rem;
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.orders-table tr:hover {
    background: rgba(230, 126, 34, 0.05);
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.order-item {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.order-total {
    font-weight: 700;
    color: var(--primary-color);
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.badge-warning {
    background: rgba(237, 137, 54, 0.2);
    color: #ED8936;
}

.badge-info {
    background: rgba(66, 153, 225, 0.2);
    color: #4299E1;
}

.badge-success {
    background: rgba(72, 187, 120, 0.2);
    color: #48BB78;
}

.badge-danger {
    background: rgba(229, 62, 62, 0.2);
    color: #F56565;
}

.btn-sm {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    border-radius: var(--radius-md);
}

@media (max-width: 1024px) {
    .tablet-show {
        display: none;
    }
}

/* ========== УЛУЧШЕНИЯ ВИДИМОСТИ ИКОНОК ========== */
.fa, .fas, .far, .fab, .material-icons, [class*="icon"] {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.icon-white, .text-white i, .btn i, .nav-links i {
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.stats-gradient i, .quick-action-card i, .scan-card i {
    background: var(--gradient-magic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(42, 169, 160, 0.5));
}

.empty-state-glow i {
    background: var(--gradient-magic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(155, 124, 185, 0.5));
}

.blacklist-card i {
    color: #F56565 !important;
    filter: drop-shadow(0 0 8px rgba(245, 101, 101, 0.5));
}

/* ========== УНИВЕРСАЛЬНЫЙ ДИЗАЙН КАРТОЧЕК ТОВАРОВ ========== */

.items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

/* Карточка товара - стиль как в примере */
.item-card {
    background: linear-gradient(135deg, #1A2F3F 0%, #0F1F2F 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(42, 169, 160, 0.3);
}

/* Изображение товара */
.item-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: linear-gradient(135deg, #2AA9A0, #9B7CB9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Контейнер с информацией */
.item-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Заголовок и количество */
.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.item-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.3;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-quantity-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(42, 169, 160, 0.15);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border: 1px solid rgba(42, 169, 160, 0.2);
}

.item-quantity-badge i {
    color: var(--primary-color);
    font-size: 0.7rem;
}

.available-qty {
    color: white;
    font-weight: 600;
    margin-left: 0.1rem;
}

/* Описание */
.item-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.2rem;
}

/* Цены */
.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-block {
    display: flex;
    flex-direction: column;
}

.original-price {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.discount-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #F56565;
    line-height: 1.2;
}

.discount-percent {
    background: rgba(72, 187, 120, 0.15);
    color: #48BB78;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

/* ========== БЕЙДЖИ НА ИЗОБРАЖЕНИИ ========== */

.discount-badge {
    position: absolute;
    top: 100px;
    right: 30px;
    background: linear-gradient(135deg, #F56565, #ED8936);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(245, 101, 101, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.favorite-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
    cursor: pointer;
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.7);
}

.favorite-btn i {
    font-size: 0.9rem;
}

.favorite-btn .fas.fa-heart {
    color: #F56565;
    filter: drop-shadow(0 0 5px rgba(245, 101, 101, 0.5));
}

.cafe-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cafe-badge i {
    color: var(--primary-color);
    font-size: 0.65rem;
}

/* ========== УПРАВЛЕНИЕ КОЛИЧЕСТВОМ ========== */

.quantity-section {
    margin-top: 0.5rem;
}

.quantity-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.quantity-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.quantity-buttons {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.2rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-quantity {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #2AA9A0, #1E7A73);
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-quantity:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(42, 169, 160, 0.4);
}

.btn-quantity:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: linear-gradient(135deg, #4a5568, #2d3748);
}

.quantity-display {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    font-size: 0.9rem;
    color: white;
}

/* Кнопка заказа */
.order-btn {
    width: 100%;
    padding: 0.6rem 0;
    font-size: 0.85rem;
    border-radius: 30px;
    background: linear-gradient(135deg, #2AA9A0, #1E7A73);
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(42, 169, 160, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.order-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(42, 169, 160, 0.4);
}

.order-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #4a5568, #2d3748);
}

.order-btn i {
    font-size: 0.8rem;
}

/* ========== АДАПТИВНОСТЬ ========== */

@media (max-width: 1200px) {
    .items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .item-image {
        height: 130px;
    }
}

@media (max-width: 576px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .item-image {
        height: 110px;
    }

    .item-info {
        padding: 0.75rem;
    }

    .item-title {
        font-size: 0.9rem;
    }

    .discount-price {
        font-size: 1rem;
    }

    .btn-quantity {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 400px) {
    .items-grid {
        grid-template-columns: 1fr;
    }

    .item-image {
        height: 140px;
    }
}

/* ========== УНИВЕРСАЛЬНОЕ МОДАЛЬНОЕ ОКНО ДЛЯ ФОТО (стиль из home.html) ========== */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.98);
    overflow: auto;
}

.photo-modal-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(80vw, 80vh);
    height: min(80vw, 80vh);
    max-width: 600px;
    max-height: 600px;
    border: 4px solid var(--primary-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(42, 169, 160, 0.5);
    background: linear-gradient(135deg, #1a2f3f, #0a1a2f);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-modal-content {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.photo-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.photo-modal-close:hover {
    color: var(--danger-color);
    transform: rotate(90deg);
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--danger-color);
}

.photo-modal-caption {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1.2rem;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    pointer-events: none;
}

/* Мобильная адаптация модального окна */
@media (max-width: 768px) {
    .photo-modal-frame {
        width: 90vw;
        height: 90vw;
        max-width: 400px;
        max-height: 400px;
        border-width: 3px;
    }

    .photo-modal-close {
        top: 10px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }

    .photo-modal-caption {
        font-size: 1rem;
        bottom: 20px;
        padding: 15px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .photo-modal-frame {
        width: 95vw;
        height: 95vw;
    }

    .photo-modal-close {
        top: 5px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }

    .photo-modal-caption {
        font-size: 0.9rem;
        bottom: 15px;
        padding: 10px;
    }
}

/* Анимация появления */
@keyframes photoModalZoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.1);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.photo-modal-frame {
    animation: photoModalZoomIn 0.3s ease;
}

/* ========== СТИЛИ ДЛЯ СТРАНИЦЫ ТОВАРА ========== */
.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    animation: fadeInMagic 0.6s ease;
}

/* Хлебные крошки */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.breadcrumb-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.breadcrumb-link:hover {
    color: var(--primary-color);
    background: rgba(42, 169, 160, 0.1);
}

.breadcrumb-separator {
    color: var(--text-tertiary);
    font-size: 1.2rem;
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

/* Сетка */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ========== ФОТО В РАМКЕ ========== */
.product-image-section {
    position: relative;
}

.product-image-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #1A2F3F 0%, #0F1F2F 100%);
    border: 4px solid var(--primary-color);
    box-shadow: 0 20px 40px rgba(42, 169, 160, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.product-image-frame:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(42, 169, 160, 0.4);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.product-image-frame:hover .product-image {
    transform: scale(1.1);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2AA9A0, #1E7A73);
    color: white;
    font-size: 4rem;
}

.product-image-placeholder i {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

/* Бейдж скидки */
.product-discount-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #F56565, #ED8936);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.2rem;
    z-index: 10;
    box-shadow: 0 10px 20px rgba(245, 101, 101, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

/* Кнопка избранного */
.product-favorite-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
}

.product-favorite-btn:hover {
    transform: scale(1.15);
    background: rgba(0, 0, 0, 0.7);
    border-color: var(--danger-color);
}

.product-favorite-btn .fas.fa-heart {
    color: #ef4444;
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.5));
}

/* Миниатюры */
.product-thumbnails {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.product-thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.product-thumbnail:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(42, 169, 160, 0.3);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========== ИНФОРМАЦИЯ О ТОВАРЕ ========== */
.product-info-section {
    background: linear-gradient(135deg, rgba(26, 47, 63, 0.5), rgba(15, 31, 47, 0.5));
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Статус наличия */
.product-availability {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
}

.availability-badge.in-stock {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.availability-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.product-cafe-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: rgba(42, 169, 160, 0.15);
    border-radius: 30px;
    color: var(--primary-color);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(42, 169, 160, 0.2);
}

.product-cafe-link:hover {
    background: rgba(42, 169, 160, 0.25);
    transform: translateX(3px);
}

/* Заголовок */
.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Описание */
.product-description {
    margin-bottom: 2rem;
}

.product-description h3 {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.product-description p {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Цены */
.product-prices {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(42, 169, 160, 0.1), rgba(255, 159, 124, 0.1));
    border-radius: 20px;
    border: 1px solid rgba(42, 169, 160, 0.2);
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.original-price-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.original-price-label {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.original-price {
    color: var(--text-secondary);
    text-decoration: line-through;
    font-size: 1.1rem;
}

.discount-price-block {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discount-price-label {
    color: var(--text-secondary);
    font-size: 1rem;
}

.discount-price {
    color: #F56565;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.savings-block {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.3rem;
    padding: 0.3rem 0.8rem;
    background: rgba(72, 187, 120, 0.15);
    border-radius: 20px;
    color: #48BB78;
    font-size: 0.9rem;
    border: 1px solid rgba(72, 187, 120, 0.2);
}

.discount-percent-large {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #F56565, #ED8936);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 20px rgba(245, 101, 101, 0.3);
}

/* Количество */
.product-quantity-section {
    margin-bottom: 2rem;
}

.product-quantity-section h3 {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0 0 1rem 0;
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.3rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #2AA9A0, #1E7A73);
    color: white;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(42, 169, 160, 0.3);
}

.quantity-btn:hover:not(:disabled) {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(42, 169, 160, 0.4);
}

.quantity-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: linear-gradient(135deg, #4a5568, #2d3748);
}

.quantity-display {
    font-size: 1.3rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
    color: white;
}

/* Кнопки */
.add-to-cart-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 30px;
    background: linear-gradient(135deg, #2AA9A0, #1E7A73);
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(42, 169, 160, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(42, 169, 160, 0.4);
}

.add-to-cart-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.book-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 30px;
    background: linear-gradient(135deg, #FF9F7C, #FF7C9F);
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 159, 124, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.book-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 159, 124, 0.4);
}

.out-of-stock-message {
    text-align: center;
    padding: 2rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.out-of-stock-message i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.out-of-stock-message p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Информация о кафе */
.cafe-info-card {
    background: linear-gradient(135deg, rgba(26, 47, 63, 0.8), rgba(15, 31, 47, 0.8));
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cafe-info-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(42, 169, 160, 0.2);
}

.cafe-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cafe-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #2AA9A0, #FF9F7C);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.cafe-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cafe-info-title {
    flex: 1;
}

.cafe-info-title h4 {
    margin: 0;
    color: white;
    font-size: 1.1rem;
}

.cafe-rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cafe-info-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cafe-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cafe-detail-item i {
    width: 16px;
    color: var(--primary-color);
}

.cafe-info-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cafe-items-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cafe-view-link {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.cafe-info-card:hover .cafe-view-link {
    transform: translateX(5px);
}

/* ========== ПОХОЖИЕ ТОВАРЫ ========== */
.similar-items-section {
    margin-top: 3rem;
}

.similar-items-section h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.similar-items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .similar-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.similar-item-card {
    background: linear-gradient(135deg, #1A2F3F 0%, #0F1F2F 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.similar-item-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(42, 169, 160, 0.3);
}

.similar-item-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.similar-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.similar-item-card:hover .similar-item-image img {
    transform: scale(1.1);
}

.similar-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2AA9A0, #1E7A73);
    color: white;
    font-size: 2rem;
}

.similar-item-discount {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #F56565, #ED8936);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(245, 101, 101, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.similar-item-info {
    padding: 0.8rem;
}

.similar-item-info h4 {
    margin: 0 0 0.4rem 0;
    color: white;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.similar-item-price {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
}

.similar-original-price {
    color: var(--text-tertiary);
    font-size: 0.7rem;
    text-decoration: line-through;
}

.similar-discount-price {
    color: #F56565;
    font-weight: 600;
    font-size: 0.9rem;
}

.similar-item-availability {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.similar-item-availability i {
    color: var(--primary-color);
}