/* Custom CSS for Tea Shop */

:root {
    --primary-color: #28a745;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

/* Sticky footer */
html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 160px; /* Отступ для современного navbar с отступами и белым пространством */
    display: flex;
    flex-direction: column;
}

/* Убираем отступ для админ-панели */
body.admin-body {
    padding-top: 0 !important;
    display: block !important; /* Убираем flex для админки */
    flex-direction: unset !important;
}

.main-content {
    flex: 1 0 auto;
    padding-top: 2rem; /* Дополнительный отступ для контента */
}

.content-wrapper {
    padding: 1.5rem 0; /* Отступы от банера и меню */
}

/* Дополнительные отступы для страниц */
.container {
    padding-top: 1rem;
}

/* Специальные отступы для разных страниц */
.catalog-page .container,
.product-detail-page .container,
.cart-page .container,
.checkout-page .container,
.order-success-page .container {
    padding-top: 2rem;
}

footer {
    flex-shrink: 0;
}

/* Admin panel styles */
.admin-sidebar {
    min-height: 100vh;
    background-color: #343a40;
}

.admin-main {
    margin-top: 0;
    padding-top: 0;
}

/* Remove all top padding and margins from admin content */
.admin-main .pt-3,
.admin-main .pt-4,
.admin-main .pt-5 {
    padding-top: 0 !important;
}

.admin-main .mt-3,
.admin-main .mt-4,
.admin-main .mt-5 {
    margin-top: 0 !important;
}

/* Remove padding from admin main container */
.admin-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Remove padding from admin top bar */
.admin-main .d-flex {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Force remove all spacing from admin panel */
body .admin-main * {
    margin-top: 0 !important;
}

body .admin-main > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove Bootstrap default spacing */
.admin-main .container-fluid,
.admin-main .row,
.admin-main .col-md-9,
.admin-main .col-lg-10 {
    margin: 0 !important;
    padding: 0 !important;
}

/* Address suggestions */
.address-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

/* DaData suggestions styling */
.suggestions-suggestions {
    border: 1px solid #dee2e6 !important;
    border-radius: 0 0 0.375rem 0.375rem !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    max-height: 200px !important;
    overflow-y: auto !important;
}

.suggestions-suggestion {
    padding: 10px 15px !important;
    border-bottom: 1px solid #f8f9fa !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.suggestions-suggestion:hover,
.suggestions-suggestion.suggestions-selected {
    background-color: #f8f9fa !important;
}

.suggestions-suggestion:last-child {
    border-bottom: none !important;
}

.address-suggestion {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.address-suggestion:hover,
.address-suggestion.active {
    background-color: #f8f9fa;
}

.address-suggestion:last-child {
    border-bottom: none;
}

.address-suggestion .suggestion-title {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.address-suggestion .suggestion-details {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Product cards */
.product-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.product-card:hover .card-title {
    color: var(--success-color);
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--success-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* ========== СОВРЕМЕННЫЕ КАРТОЧКИ ========== */

/* Базовые стили карточек */
.card {
    border: none;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
    border-radius: 20px 20px 0 0 !important;
    padding: 20px 24px;
}

.card-body {
    padding: 24px;
}

.card-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 20px 20px !important;
    padding: 16px 24px;
}

.card-img-top {
    border-radius: 20px 20px 0 0;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Специальные карточки */
.card-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-gradient .card-header,
.card-gradient .card-footer {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Карточки с тенями */
.card-shadow-sm {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card-shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ========== СОВРЕМЕННЫЕ КНОПКИ ========== */

/* Базовые стили кнопок */
.btn {
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    color: white;
}

/* Success button */
.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
}

/* Info button */
.btn-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.btn-info:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    color: white;
}

/* Warning button */
.btn-warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #dd6b20 0%, #c05621 100%);
    color: white;
}

/* Danger button */
.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
}

/* Secondary button */
.btn-secondary {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #718096 0%, #4a5568 100%);
    color: white;
}

/* Outline buttons */
.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #667eea;
    color: white;
}

.btn-outline-success {
    border: 2px solid #48bb78;
    color: #48bb78;
    background: transparent;
}

.btn-outline-success:hover {
    background: #48bb78;
    color: white;
}

/* Button sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* Icon buttons */
.btn i {
    margin-right: 8px;
}

.btn-sm i {
    margin-right: 4px;
}

/* ========== КАРТОЧКИ ТОВАРОВ И КАТЕГОРИЙ ========== */

/* Карточки товаров */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card .card-img-top {
    transition: transform 0.3s ease;
}

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

/* Карточки категорий */
.category-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: none; /* Отключаем анимацию при hover */
}

.category-card .card-img-top {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.category-card .card-img-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .card-img-top::after {
    opacity: 1;
}

.category-card:hover .card-img-top {
    transform: scale(1.1);
}

.category-card .card-body {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    z-index: 2;
}

.category-card .card-title {
    font-weight: 700;
    color: #1f2937;
    font-size: 1.25rem;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.category-card:hover .card-title {
    color: #10b981;
    transform: translateY(-2px);
    text-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.category-card:hover .card-title i {
    color: #10b981 !important;
    transform: scale(1.1) rotate(5deg);
    transition: all 0.3s ease;
}

.category-card .card-text {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.category-card:hover .card-text {
    color: #374151;
    transform: translateY(-1px);
}

.category-card .btn {
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.category-card .btn-outline-success {
    border: 2px solid #10b981;
    color: #10b981;
    background: transparent;
}

.category-card .btn-outline-success:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.category-card:hover .btn-outline-success {
    border-color: #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

/* Специальные эффекты для категорий */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669, #047857);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.category-card:hover::before {
    opacity: 1;
}

/* Анимация для карточек категорий */
@keyframes categoryFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.category-card:not(:hover) {
    animation: categoryFloat 3s ease-in-out infinite;
}

/* ========== СОВРЕМЕННЫЙ NAVBAR ========== */

.modern-navbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease, transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    padding: 0.75rem 0;
    margin-top: 1.5rem;
    border-radius: 15px;
    margin-left: 2rem;
    margin-right: 2rem;
    max-width: calc(100% - 4rem);
    top: 3rem !important; /* Отступ от баннера */
    position: fixed !important; /* Фиксированное позиционирование */
    z-index: 1040 !important; /* Выше контента, ниже баннера */
    width: calc(100% - 4rem) !important; /* Ширина с учетом отступов */
    border-top: none !important; /* Убираем верхнюю границу */
    margin-bottom: 0 !important; /* Убираем нижний отступ */
    border: none !important; /* Убираем все границы */
    outline: none !important; /* Убираем outline */
    opacity: 1;
    visibility: visible;
}

.modern-navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.modern-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.modern-navbar:hover::before {
    opacity: 1;
}

/* Современный бренд */
.modern-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.modern-brand:hover {
    transform: scale(1.05);
}

.brand-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    font-size: 1.8rem;
    background: linear-gradient(45deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: brandPulse 2s ease-in-out infinite;
}

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

.brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Современные навигационные ссылки */
.modern-nav-links {
    gap: 0.5rem;
}

.modern-link {
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem !important;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    overflow: hidden;
}

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

.modern-link:hover::before {
    left: 100%;
}

.modern-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.modern-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: white !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modern-link i {
    transition: transform 0.3s ease;
}

.modern-link:hover i {
    transform: scale(1.2);
}

/* Современные действия */
.modern-nav-actions {
    gap: 0.5rem;
}

.modern-cart {
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem !important;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

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

.modern-cart:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.modern-cart:hover .cart-badge {
    animation: badgeBounce 0.6s ease-in-out;
}

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

.modern-admin {
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem !important;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-admin:hover {
    color: white !important;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.modern-logout {
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem !important;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-logout:hover {
    color: white !important;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

/* Современный тогглер */
.modern-toggler {
    border: none;
    padding: 0.5rem;
    background: transparent;
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.toggler-icon {
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.modern-toggler:hover .toggler-icon {
    background: #10b981;
}

.modern-toggler[aria-expanded="true"] .toggler-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.modern-toggler[aria-expanded="true"] .toggler-icon:nth-child(2) {
    opacity: 0;
}

.modern-toggler[aria-expanded="true"] .toggler-icon:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Адаптивность для мобильных */
@media (max-width: 991.98px) {
    .modern-navbar {
        padding: 0.5rem 0;
        margin: 0.5rem 1rem;
        max-width: calc(100% - 2rem);
        border-radius: 15px;
        top: 4rem !important; /* Отступ от баннера на мобильных */
        width: calc(100% - 2rem) !important; /* Ширина с учетом отступов */
        transition: all 0.3s ease, transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease !important;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
        border: none !important;
        border-top: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Полное скрытие при скролле на мобильных */
    .modern-navbar.hidden {
        transform: translateY(-100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        margin-top: -100px !important; /* Дополнительный сдвиг для полного скрытия */
    }
    
    /* Убираем все возможные полоски на мобильных */
    .modern-navbar::before,
    .modern-navbar::after {
        display: none !important;
    }
}
    
    .modern-navbar .container {
        padding: 0 1rem;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    .modern-link,
    .modern-cart,
    .modern-admin,
    .modern-logout {
        padding: 0.5rem 1rem !important;
        margin: 0.25rem 0;
    }
    
    .cart-text,
    .modern-admin span,
    .modern-logout span {
        display: none;
    }
    
    /* Выравниваем действия по центру на мобильных */
    .modern-nav-actions {
        justify-content: center !important;
        align-items: center !important;
        gap: 0.75rem !important;
        flex-wrap: nowrap !important;
    }
    
    .modern-cart,
    .modern-admin,
    .modern-logout {
        flex-shrink: 0 !important;
        min-width: auto !important;
    }
}

@media (max-width: 576px) {
    .modern-navbar {
        margin: 0.25rem 0.5rem;
        max-width: calc(100% - 1rem);
        border-radius: 12px;
        top: 3.5rem !important; /* Отступ от баннера на маленьких экранах */
        width: calc(100% - 1rem) !important; /* Ширина с учетом отступов */
        transition: all 0.3s ease, transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease !important;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
        border: none !important;
        border-top: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Полное скрытие при скролле на маленьких экранах */
    .modern-navbar.hidden {
        transform: translateY(-100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        margin-top: -100px !important; /* Дополнительный сдвиг для полного скрытия */
    }
    
    /* Убираем все возможные полоски на маленьких экранах */
    .modern-navbar::before,
    .modern-navbar::after {
        display: none !important;
    }
    
    /* Дополнительные стили для маленьких экранов */
    .modern-nav-actions {
        gap: 0.5rem !important;
        justify-content: center !important;
    }
    
    .modern-cart,
    .modern-admin,
    .modern-logout {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.9rem;
    }
    
    .brand-text {
        font-size: 1rem;
    }
}

/* ========== МОБИЛЬНЫЙ МОНОЛИТНЫЙ НАВБАР ========== */
.mobile-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 0;
}

.mobile-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.mobile-brand-icon {
    font-size: 1.5rem;
    color: #10b981;
    margin-right: 0.5rem;
}

.mobile-logo {
    height: 32px;
    width: auto;
    border-radius: 6px;
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.mobile-action-btn i {
    font-size: 1.1rem;
}

.mobile-cart {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.mobile-cart:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

.mobile-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid #1a1a2e;
    animation: badgePulse 2s infinite;
}

.content-wrapper {
    padding: 0.5rem 0; /* Минимальные отступы на очень маленьких экранах */
}
    
    .modern-navbar .container {
        padding: 0 0.75rem;
    }
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ========== СОВРЕМЕННЫЙ ФУТЕР ========== */

.modern-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.04)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.footer-content {
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 2;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 1rem;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(45deg, #10b981, #059669);
    border-radius: 2px;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: #10b981;
    transform: translateX(5px);
}

.footer-link i {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-link:hover i {
    opacity: 1;
    color: #10b981;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: white;
    transform: translateX(5px);
}

.contact-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #10b981, #059669);
    border-radius: 50%;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: linear-gradient(45deg, #10b981, #059669);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
    color: white;
}

.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-text {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-weight: 500;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.newsletter-input:focus {
    outline: none;
    border-color: #10b981;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.newsletter-btn {
    padding: 0.75rem 1rem;
    background: linear-gradient(45deg, #10b981, #059669);
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.copyright-text {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.bottom-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.bottom-link:hover {
    color: #10b981;
}

/* Адаптивность футера */
@media (max-width: 768px) {
    .footer-content {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-social {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
        gap: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .footer-content {
        padding: 2rem 0 1rem;
    }
    
    .footer-title {
        font-size: 1.5rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
}

/* ========== СТИЛИ ДЛЯ КАТАЛОГА ========== */

.catalog-page {
    padding-bottom: 4rem;
    min-height: calc(100vh - 200px);
}

.catalog-container {
    padding-bottom: 3rem;
}

/* Стили для ссылок категорий */
.category-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #6b7280 !important;
    border: 1px solid transparent;
}

.category-link:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #10b981 !important;
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateX(5px);
}

.category-link.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transform: translateX(5px);
}

.category-link.active i {
    color: white !important;
}

.category-link i {
    transition: all 0.3s ease;
}

.category-link:hover i {
    transform: scale(1.1);
}

/* ========== СТИЛИ КОРЗИНЫ ========== */
.cart-page {
    min-height: calc(100vh - 200px);
    padding-bottom: 2rem;
}

.cart-item {
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(16, 185, 129, 0.2);
}

.cart-item-image img {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cart-item:hover .cart-item-image img {
    transform: scale(1.05);
}

.cart-item-details h6 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-details small {
    color: #6b7280;
}

.cart-item-total {
    color: #10b981;
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-item-actions .btn {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.cart-item-actions .btn:hover {
    transform: scale(1.1);
}

/* ========== СОВРЕМЕННЫЕ КНОПКИ КОЛИЧЕСТВА ========== */
.quantity-controls {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.quantity-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    color: #64748b;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.quantity-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.quantity-btn:hover::before {
    opacity: 1;
}

.quantity-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.quantity-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quantity-btn i {
    position: relative;
    z-index: 1;
}

.quantity-input {
    width: 60px;
    height: 36px;
    border: none;
    background: transparent;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
    outline: none;
    margin: 0 8px;
}

.quantity-input:focus {
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
}

/* Стили для кнопок количества (старые) */
.input-group .btn {
    border-radius: 6px;
    transition: all 0.3s ease;
    border-color: #d1d5db;
}

.input-group .btn:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
    transform: scale(1.05);
}

.input-group .form-control {
    border-radius: 6px;
    border-color: #d1d5db;
    text-align: center;
    font-weight: 600;
}

.input-group .form-control:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
}

/* Стили для итогового блока */
.cart-page .card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.cart-page .card-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    border: none;
    padding: 1.25rem;
}

.cart-page .card-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.25rem;
}

.cart-page .card-body {
    padding: 1.5rem;
}

.cart-page .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.cart-page .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Стили для пустой корзины */
.cart-page .text-center {
    padding: 4rem 2rem;
}

.cart-page .text-center i {
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.cart-page .text-center h3 {
    color: #374151;
    margin-bottom: 1rem;
}

.cart-page .text-center p {
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Адаптивность для корзины */
@media (max-width: 768px) {
    .cart-item {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .cart-item-image {
        margin-bottom: 1rem;
    }
    
    .cart-item-details {
        margin-bottom: 1rem;
    }
    
    .cart-page .card-body {
        padding: 1rem;
    }
    
    .cart-page .card-header {
        padding: 1rem;
    }
    
    /* Мобильные стили для кнопок количества */
    .quantity-controls {
        justify-content: center;
        margin: 0.5rem 0;
    }
    
    .quantity-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .quantity-input {
        width: 70px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    /* Мобильная компоновка товара в корзине */
    .cart-item .row {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item .col-md-2,
    .cart-item .col-md-4 {
        margin-bottom: 0.75rem;
    }
    
    .cart-item-actions {
        margin-top: 0.5rem;
    }
}

/* Мобильные стили для каталога */
@media (max-width: 768px) {
    .catalog-page {
        padding-bottom: 2rem; /* Уменьшенный отступ снизу на мобильных */
        min-height: calc(100vh - 150px); /* Меньшая минимальная высота */
    }
    
    .catalog-container {
        padding-bottom: 1.5rem; /* Уменьшенный отступ контейнера */
    }
}

/* Стили для каталога на маленьких экранах */
@media (max-width: 480px) {
    .catalog-page {
        padding-bottom: 1.5rem; /* Ещё меньший отступ на маленьких экранах */
        min-height: calc(100vh - 120px); /* Минимальная высота для маленьких экранов */
    }
    
    .catalog-container {
        padding-bottom: 1rem; /* Минимальный отступ контейнера */
    }
}

/* ========== СОВРЕМЕННЫЙ БЛОК СТАТИСТИКИ ========== */

.stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    opacity: 1 !important;
    visibility: visible !important;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.stat-card:hover .stat-number,
.stat-card:hover .stat-label,
.stat-card:hover .stat-description {
    opacity: 1;
    visibility: visible;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(5deg);
    color: white;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ffffff, #f0f9ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.stat-card:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 1;
    visibility: visible;
}

.stat-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin: 0;
    opacity: 1;
    visibility: visible;
}

/* Анимация появления - упрощённая */
.stat-card {
    animation: fadeInUp 0.8s ease-out forwards;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

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

/* Анимация счетчика */
.stat-number {
    transition: all 0.3s ease;
}

.stat-number.animate {
    animation: pulse 0.6s ease-in-out;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

/* Cart */
.cart-item {
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

/* ========== СОВРЕМЕННЫЕ ФОРМЫ ========== */

/* Базовые стили для форм */
.form-control {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.form-control:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-select {
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    padding: 12px 16px;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Floating labels */
.form-floating {
    position: relative;
}

.form-floating .form-control {
    padding-top: 24px;
    padding-bottom: 8px;
}

.form-floating label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 16px;
    pointer-events: none;
    border: 2px solid transparent;
    transform-origin: 0 0;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
    color: #6b7280;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* ========== СОВРЕМЕННЫЕ УВЕДОМЛЕНИЯ ========== */

/* Базовые стили алертов */
.alert {
    border-radius: 16px;
    border: none;
    padding: 16px 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: currentColor;
    opacity: 0.3;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-primary {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #3730a3;
    border-left: 4px solid #6366f1;
}

/* Анимация появления */
.alert.show {
    animation: slideInRight 0.5s ease-out;
}

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

/* Floating notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 320px;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification .btn-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

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

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--success-color) !important;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    /* Мобильные стили для категорий */
    .category-card {
        margin-bottom: 20px;
    }
    
    .category-card .card-img-top {
        height: 180px !important;
    }
    
    .category-card .card-title {
        font-size: 1.1rem;
    }
    
    .category-card .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    /* Мобильные стили для статистики */
    .stat-card {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .stat-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
        margin-bottom: 8px;
    }
    
    .stat-label {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .stat-description {
        font-size: 0.8rem;
    }
}

/* Custom Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

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

/* Wheel of Fortune */
.wheel-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 8px solid #333;
    transition: transform 3s cubic-bezier(0.23, 1, 0.32, 1);
}

.wheel-section {
    /* Стили теперь задаются через JavaScript */
}

/* Убираем старые стили для section-text */

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #333;
    z-index: 10;
}

/* Admin Panel */
.admin-sidebar {
    min-height: 100vh;
    background-color: #343a40;
}

.admin-sidebar .nav-link {
    color: #adb5bd;
    border-radius: 5px;
    margin: 2px 0;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--success-color);
    color: white;
}

/* Welcome Section */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Quick Stats Cards */
.border-left-primary {
    border-left: 4px solid #4e73df !important;
}

.border-left-success {
    border-left: 4px solid #1cc88a !important;
}

.border-left-info {
    border-left: 4px solid #36b9cc !important;
}

.border-left-warning {
    border-left: 4px solid #f6c23e !important;
}

.text-xs {
    font-size: 0.7rem;
}

.text-gray-300 {
    color: #dddfeb !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

/* Удаляем дублирующие стили статистики */

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* ========== СОВРЕМЕННЫЕ ТАБЛИЦЫ ========== */

/* Базовые стили таблиц */
.table {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: white;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 20px;
    position: relative;
}

.table thead th:first-child {
    border-top-left-radius: 16px;
}

.table thead th:last-child {
    border-top-right-radius: 16px;
}

.table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid #f1f5f9;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 16px;
}

.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 16px;
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table td {
    padding: 16px 20px;
    vertical-align: middle;
    border: none;
    font-size: 14px;
    color: #374151;
}

/* Стили для таблиц в админке */
.admin-main .table {
    font-size: 13px;
}

.admin-main .table th,
.admin-main .table td {
    padding: 12px 16px;
}

/* Responsive таблицы */
.table-responsive {
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Специальные стили для таблиц */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-striped tbody tr:nth-of-type(odd):hover {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* ========== СОВРЕМЕННЫЕ БЕЙДЖИ ========== */

.badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.bg-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
}

.bg-primary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
}

.bg-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%) !important;
}

/* ========== СОВРЕМЕННЫЕ МОДАЛЬНЫЕ ОКНА ========== */

.modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
    border-radius: 24px 24px 0 0;
    padding: 24px 32px;
}

.modal-title {
    font-weight: 700;
    font-size: 20px;
    color: #1f2937;
}

.modal-body {
    padding: 32px;
    background: white;
}

.modal-footer {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 24px 24px;
    padding: 20px 32px;
}

.modal-backdrop {
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.4);
}

/* Анимация модальных окон */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(45deg, #28a745, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.border-radius-custom {
    border-radius: 15px;
}

/* Running Banner Styles */
.running-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050; /* Выше навбара */
    overflow: hidden;
    white-space: nowrap;
    border-radius: 0;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0;
    padding: 0;
    height: 40px; /* Фиксированная высота */
    line-height: 40px; /* Центрирование по вертикали */
}

.banner-content {
    display: flex;
    animation: scroll 20s linear infinite;
    width: 200%; /* Двойная ширина для плавного перехода */
}

.banner-text {
    flex: 0 0 50%; /* Каждый текст занимает половину */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    font-weight: 600;
    font-size: 14px;
    height: 40px; /* Высота как у баннера */
    line-height: 40px; /* Центрирование по вертикали */
}

.banner-text i {
    animation: bounce 2s infinite;
}

/* Анимация прокрутки */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Анимация подпрыгивания иконки */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    body {
        padding-top: 120px; /* Отступ для мобильного navbar с отступом от баннера */
    }
    
    .content-wrapper {
        padding: 1rem 0; /* Меньшие отступы на мобильных */
    }
    
    .banner-text {
        font-size: 12px;
        padding: 0 10px;
    }
    
    .banner-content {
        animation-duration: 15s; /* Быстрее на мобильных */
    }
}

/* Пауза анимации при наведении */
.running-banner:hover .banner-content {
    animation-play-state: paused;
}

/* Стили для разных типов баннеров */
.running-banner.alert-success {
    background: linear-gradient(90deg, #28a745, #20c997, #28a745);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.running-banner.alert-info {
    background: linear-gradient(90deg, #17a2b8, #6f42c1, #17a2b8);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.running-banner.alert-warning {
    background: linear-gradient(90deg, #ffc107, #fd7e14, #ffc107);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.running-banner.alert-danger {
    background: linear-gradient(90deg, #dc3545, #e83e8c, #dc3545);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

.running-banner.alert-primary {
    background: linear-gradient(90deg, #007bff, #6610f2, #007bff);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
}

/* Анимация градиента */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Убираем отступы между баннером и меню */
/* .navbar.fixed-top стили перенесены в .modern-navbar */

/* Убираем отступы у alert в баннере */
.running-banner.alert {
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

/* Дополнительные правила для устранения зазора */
.running-banner {
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

/* .navbar стили перенесены в .modern-navbar */

/* Убираем полоску на десктопе */
@media (min-width: 992px) {
    .modern-navbar {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
        border: none !important;
        border-top: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
        margin-top: 1.5rem !important;
        border-radius: 15px !important;
        transition: all 0.3s ease, transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease !important;
    }
    
    .modern-navbar::before,
    .modern-navbar::after {
        display: none !important;
    }
    
    /* Убираем все возможные полоски */
    .navbar.navbar-expand-lg.modern-navbar.fixed-top {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
        border: none !important;
        border-top: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
        margin-top: 1.5rem !important;
        border-radius: 15px !important;
        transition: all 0.3s ease, transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease !important;
    }
    
    /* Полное скрытие при скролле */
    .modern-navbar.hidden {
        transform: translateY(-100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* Дополнительные стили для полного скрытия на мобильных */
@media (max-width: 991.98px) {
    /* Убираем все возможные полоски на мобильных */
    .navbar.navbar-expand-lg.modern-navbar.fixed-top {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%) !important;
        border: none !important;
        border-top: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
        transition: all 0.3s ease, transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease !important;
    }
    
    /* Максимально агрессивное скрытие на мобильных */
    .modern-navbar.hidden {
        transform: translateY(-150%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        margin-top: -150px !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}

/* Убираем все возможные отступы */
/* body .navbar.fixed-top стили перенесены в .modern-navbar */

body .running-banner {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

/* Максимально агрессивные правила для устранения зазора */
.running-banner.alert.alert-success,
.running-banner.alert.alert-info,
.running-banner.alert.alert-warning,
.running-banner.alert.alert-danger,
.running-banner.alert.alert-primary {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    height: 40px !important;
    line-height: 40px !important;
}

/* .navbar.navbar-expand-lg.navbar-dark.bg-dark.fixed-top стили перенесены в .modern-navbar */

/* Стили для большого логотипа */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 15px 0;
    flex-direction: column;
    text-align: center;
}

/* Адаптивные стили для navbar-brand */
@media (max-width: 768px) {
    .navbar-brand {
        flex-direction: row;
        text-align: left;
        padding: 0.25rem 0;
    }
}


.navbar-brand img,
.logo-img {
    max-height: 100px; /* Максимальная высота логотипа */
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease; /* Плавная анимация */
}

/* Специальные стили для логотипа */
.logo-img {
    max-height: 100px;
    min-height: 40px;
    width: auto;
    object-fit: contain;
    background: transparent; /* Убираем фон */
    border-radius: 8px; /* Легкое скругление */
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Стили для навигационных ссылок */
.navbar-nav .nav-link {
    color: #ecf0f1 !important;
    font-weight: 500;
    padding: 10px 15px !important;
    margin: 0 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: #3498db !important;
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    color: #3498db !important;
    background-color: rgba(52, 152, 219, 0.2);
}

/* Стили для кнопки корзины */
.navbar-nav .btn-cart {
    background: transparent;
    border: none;
    color: #ecf0f1;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 50px;
    text-align: center;
}

.navbar-nav .btn-cart:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
    transform: translateY(-2px);
}

.navbar-nav .btn-cart .badge {
    background-color: #f39c12;
    color: #2c3e50;
    font-weight: bold;
    animation: pulse 2s infinite;
    font-size: 0.7em;
    padding: 2px 6px;
}

/* Стили для иконок навигации */
.navbar-nav .nav-link i {
    font-size: 1.2em;
    width: 20px;
    text-align: center;
}

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

/* Star Rating Styles */
.star-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.star-rating .star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #ffc107;
}

.star-rating .star:hover ~ .star {
    color: #ddd;
}

/* Order Success Page Styles */
.order-details {
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.delivery-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.next-steps .step {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
    height: 100%;
}

.actions .btn {
    min-width: 200px;
    margin: 5px;
    transition: all 0.3s ease;
}

.actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.actions .btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

.actions .btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Responsive adjustments for order success page */
@media (max-width: 768px) {
    .actions .btn {
        min-width: 150px;
        margin: 3px;
    }
    
    .actions .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .next-steps .step {
        margin-bottom: 15px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    body {
        padding-top: 90px; /* Ещё более компактный отступ для маленьких экранов */
    }
    
    .content-wrapper {
        padding: 0.75rem 0; /* Ещё меньшие отступы на маленьких экранах */
    }
    
    .navbar.navbar-expand-lg.navbar-dark.bg-dark.fixed-top {
        min-height: 60px; /* Компактная высота на мобильных */
        padding: 0.5rem 0; /* Уменьшенные отступы */
    }
    
    .navbar-brand {
        padding: 0.25rem 0; /* Минимальные отступы для бренда */
        flex-direction: row; /* Горизонтальное расположение */
        text-align: left;
    }
    
    .navbar-brand img,
    .logo-img {
        max-height: 40px; /* Очень компактный логотип на мобильных */
        margin-right: 0.5rem;
    }
    
    .navbar-brand .navbar-text {
        font-size: 1rem; /* Меньший размер текста */
        margin: 0;
    }
    
    /* Компактная навигация */
    .navbar-nav {
        padding: 0.5rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        margin: 0.1rem 0;
    }
    
    /* Компактная кнопка корзины */
    .navbar-nav .btn-cart {
        padding: 0.4rem 0.6rem;
        min-width: 40px;
    }
    
    .navbar-nav .btn-cart .badge {
        font-size: 0.6em;
        padding: 1px 4px;
    }
}

/* Дополнительная адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    body {
        padding-top: 70px; /* Компактный отступ для очень маленьких экранов */
    }
    
    .navbar.navbar-expand-lg.navbar-dark.bg-dark.fixed-top {
        min-height: 50px; /* Очень компактная высота на маленьких экранах */
        padding: 0.25rem 0; /* Минимальные отступы */
    }
    
    .navbar-brand {
        padding: 0.1rem 0; /* Минимальные отступы */
    }
    
    .navbar-brand img,
    .logo-img {
        max-height: 30px; /* Очень маленький логотип на маленьких экранах */
        margin-right: 0.25rem;
    }
    
    .navbar-brand .navbar-text {
        font-size: 0.9rem; /* Еще меньший размер текста */
    }
    
    /* Очень компактная навигация */
    .navbar-nav .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Очень компактная кнопка корзины */
    .navbar-nav .btn-cart {
        padding: 0.3rem 0.5rem;
        min-width: 35px;
    }
    
    .navbar-nav .btn-cart .badge {
        font-size: 0.5em;
        padding: 1px 3px;
    }
}

/* ========== УЛУЧШЕННАЯ АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ ========== */

/* Общие улучшения для мобильных */
@media (max-width: 768px) {
    /* Контейнеры */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Карточки товаров */
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
    
    /* Кнопки */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .btn-group .btn {
        width: auto;
        margin-bottom: 0;
    }
    
    /* Формы */
    .form-control,
    .form-select {
        padding: 0.75rem;
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* Таблицы */
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem;
        vertical-align: middle;
    }
    
    /* Модальные окна */
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-content {
        border-radius: 10px;
    }
    
    /* Навигация */
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
        border-radius: 8px;
    }
    
    /* Футер */
    footer {
        text-align: center;
    }
    
    footer .col-md-4 {
        margin-bottom: 2rem;
    }
    
    /* Херо секция */
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    /* Еще более компактные кнопки */
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Компактные формы */
    .form-control,
    .form-select {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    /* Компактные карточки */
    .card-body {
        padding: 0.75rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    /* Компактные таблицы */
    .table th,
    .table td {
        padding: 0.3rem;
        font-size: 0.8rem;
    }
    
    /* Компактная навигация */
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Компактный футер */
    footer {
        padding: 2rem 0;
    }
    
    footer h5 {
        font-size: 1.1rem;
    }
    
    footer p {
        font-size: 0.9rem;
    }
}

/* Адаптивность для админ-панели */
@media (max-width: 768px) {
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: -250px;
        width: 250px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .admin-sidebar.show {
        left: 0;
    }
    
    .admin-main {
        margin-left: 0;
        width: 100%;
    }
    
    .admin-main .container-fluid {
        padding: 1rem;
    }
    
    /* Кнопки в админке */
    .admin-main .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .admin-main .btn-group {
        width: 100%;
    }
    
    .admin-main .btn-group .btn {
        flex: 1;
        margin-bottom: 0;
    }
    
    /* Таблицы в админке */
    .admin-main .table-responsive {
        border: none;
    }
    
    .admin-main .table {
        font-size: 0.8rem;
    }
    
    .admin-main .table th,
    .admin-main .table td {
        padding: 0.4rem;
        white-space: nowrap;
    }
    
    /* Удаляем дублирующие стили статистики */
}

/* Адаптивность для форм добавления/редактирования товаров */
@media (max-width: 768px) {
    .product-form .row {
        margin: 0;
    }
    
    .product-form .col-md-6,
    .product-form .col-md-4,
    .product-form .col-md-8 {
        padding: 0;
        margin-bottom: 1rem;
    }
    
    .product-form .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    .product-form .d-flex {
        flex-direction: column;
    }
    
    .product-form .d-flex .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .product-form .d-flex .btn:last-child {
        margin-bottom: 0;
    }
}

/* Адаптивность для корзины */
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item .cart-item-image {
        margin-bottom: 1rem;
    }
    
    .cart-item .cart-item-details {
        margin-bottom: 1rem;
    }
    
    .cart-item .cart-item-actions {
        width: 100%;
    }
    
    .cart-item .cart-item-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Адаптивность для страницы товара */
@media (max-width: 768px) {
    .product-detail .row {
        margin: 0;
    }
    
    .product-detail .col-md-6 {
        padding: 0;
        margin-bottom: 1rem;
    }
    
    .product-detail .product-image {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .product-detail .product-info {
        text-align: center;
    }
    
    .product-detail .product-actions {
        width: 100%;
    }
    
    .product-detail .product-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Адаптивность для чекаута */
@media (max-width: 768px) {
    .checkout-form .row {
        margin: 0;
    }
    
    .checkout-form .col-md-6,
    .checkout-form .col-md-4 {
        padding: 0;
        margin-bottom: 1rem;
    }
    
    .checkout-form .form-group {
        margin-bottom: 1rem;
    }
    
    .checkout-form .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Адаптивность для колеса фортуны */
@media (max-width: 768px) {
    .wheel-container {
        width: 300px;
        height: 300px;
    }
    
    .wheel {
        border-width: 6px;
    }
    
    .wheel-pointer {
        border-left-width: 12px;
        border-right-width: 12px;
        border-top-width: 24px;
    }
}

/* Адаптивность для очень маленьких экранов - колесо фортуны */
@media (max-width: 480px) {
    .wheel-container {
        width: 250px;
        height: 250px;
    }
    
    .wheel {
        border-width: 4px;
    }
    
    .wheel-pointer {
        border-left-width: 10px;
        border-right-width: 10px;
        border-top-width: 20px;
    }
}

/* ========== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ КОМПАКТНОГО NAVBAR ========== */

/* Скрываем текст бренда на очень маленьких экранах */
@media (max-width: 360px) {
    .navbar-brand .navbar-text {
        display: none;
    }
    
    .navbar-brand img,
    .logo-img {
        max-height: 25px;
    }
    
    .navbar.navbar-expand-lg.navbar-dark.bg-dark.fixed-top {
        min-height: 45px;
    }
    
    body {
        padding-top: 60px;
    }
}

/* Улучшенная кнопка-гамбургер */
@media (max-width: 768px) {
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
        border: 1px solid rgba(255,255,255,0.3);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.1rem rgba(255,255,255,0.25);
    }
    
    .navbar-toggler-icon {
        width: 1.2em;
        height: 1.2em;
    }
}

/* Компактное выпадающее меню */
@media (max-width: 768px) {
    .navbar-collapse {
        background-color: rgba(52, 58, 64, 0.95);
        border-radius: 8px;
        margin-top: 0.5rem;
        padding: 0.5rem;
        backdrop-filter: blur(10px);
    }
    
    .navbar-nav .nav-link {
        border-radius: 6px;
        margin: 0.1rem 0;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(52, 152, 219, 0.2);
    }
}
