* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(145deg, #f9fafb 0%, #f0f4f8 100%);
    color: #1a1a1a;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
}

/* ========== УЛУЧШЕННЫЙ НАВБАР ========== */
.navbar {
    background: #ffffff !important;
    backdrop-filter: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

.navbar-brand {
    margin-right: 40px;
}

.navbar-brand img {
    height: 60px;
    width: auto;
}

.nav-link {
    font-weight: 600;
    font-size: 15px;
    color: #333 !important;
    padding: 8px 18px !important;
    transition: all 0.2s;
}

.nav-link:hover {
    color: #6c3bd2 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: linear-gradient(90deg, #6c3bd2, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.2s;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Кнопка админа */
.nav-link.admin-link {
    background: #6c3bd2;
    color: white !important;
    border-radius: 25px;
    padding: 6px 18px !important;
}

.nav-link.admin-link:hover {
    background: #5a2cb8;
    transform: translateY(-2px);
}

.nav-link.admin-link::after {
    display: none;
}

/* Поиск */
.navbar form .form-control {
    border: 2px solid #6c3bd2;
    border-radius: 30px;
    padding: 10px 18px;
    font-size: 14px;
}

.navbar form .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(108, 59, 210, 0.1);
}

.navbar form button {
    background: #6c3bd2;
    border: none;
    border-radius: 30px;
    width: 45px;
    transition: all 0.2s;
}

.navbar form button:hover {
    background: #5a2cb8;
    transform: scale(1.05);
}

/* Корзина */
.navbar-nav .fa-shopping-cart {
    font-size: 20px;
}
.navbar-brand img {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s;
}

.navbar-brand img:hover {
    transform: scale(1.02);
}

/* Адаптивность */
@media (max-width: 991px) {
    .navbar-brand img {
        height: 50px;
    }
    
    .navbar form {
        margin: 15px 0;
    }
    
    .navbar form .form-control {
        width: 100% !important;
    }
}
/* ========== КНОПКИ ========== */
.btn-primary {
    background: linear-gradient(135deg, #6c3bd2 0%, #3b82f6 100%);
    border: none;
    border-radius: 40px;
    padding: 12px 32px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(108, 59, 210, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 59, 210, 0.3);
}

.btn-outline-dark {
    border: 1px solid #e0e0e0;
    color: #1a1a1a;
    border-radius: 40px;
    padding: 10px 24px;
    background: transparent;
    transition: all 0.2s;
}

.btn-outline-dark:hover {
    background: #6c3bd2;
    border-color: #6c3bd2;
    color: white;
}

/* ========== КАРТОЧКИ ТОВАРОВ ========== */
.product-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 40px rgba(108, 59, 210, 0.08);
    border-color: rgba(108, 59, 210, 0.2);
}

.product-img {
    height: 180px;
    background: #fafbfc;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.product-card:hover .product-img {
    background: #f5f0ff;
}

.product-img i {
    font-size: 56px;
    color: #cccccc;
    transition: all 0.3s;
}

.product-card:hover .product-img i {
    color: #6c3bd2;
    transform: scale(1.05);
}

.price {
    font-family: 'Space Grotesk', monospace;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #6c3bd2 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ========== КАТЕГОРИИ ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 24px;
}

.category-card {
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    padding: 24px 16px;
    text-align: center;
    transition: all 0.2s;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: #6c3bd2;
    box-shadow: 0 10px 25px rgba(108, 59, 210, 0.08);
}

.category-icon {
    background: linear-gradient(135deg, #f5f0ff 0%, #e0f0ff 100%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.category-icon i {
    font-size: 28px;
    color: #6c3bd2;
}

/* ========== ГЕРОЙ ========== */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #faf5ff 0%, #eff6ff 100%);
    border-radius: 0 0 48px 48px;
}

.hero h1 {
    font-family: 'Space Grotesk', monospace;
    font-size: 64px;
    font-weight: 700;
    background: linear-gradient(135deg, #6c3bd2 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

/* ========== ЗАГОЛОВКИ ========== */
.section-title {
    font-family: 'Space Grotesk', monospace;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #6c3bd2, #3b82f6);
    border-radius: 3px;
}

/* ========== КРАСИВЫЙ ВЫПАДАЮЩИЙ СПИСОК ========== */
.custom-select {
    position: relative;
    min-width: 200px;
}

.select-trigger {
    background: white;
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #1a2c3e;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border: 1px solid #e9ecef;
    transition: all 0.25s ease;
    gap: 12px;
}

.select-trigger:hover {
    border-color: #6c3bd2;
    box-shadow: 0 2px 8px rgba(108, 59, 210, 0.1);
}

.select-trigger i:first-child {
    color: #6c3bd2;
}

.select-arrow {
    transition: transform 0.25s ease;
    color: #adb5bd;
}

.custom-select.open .select-arrow {
    transform: rotate(180deg);
}

.select-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.custom-select.open .select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-options {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.select-options li {
    padding: 12px 16px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.15s;
    color: #444;
}

.select-options li i {
    width: 20px;
    font-size: 14px;
    color: #adb5bd;
}

.select-options li:hover {
    background: #f5f0ff;
    color: #6c3bd2;
}

.select-options li:hover i {
    color: #6c3bd2;
}

.select-options li.active {
    background: linear-gradient(135deg, #f5f0ff 0%, #e0f0ff 100%);
    color: #6c3bd2;
    font-weight: 500;
}

.select-options li.active i {
    color: #6c3bd2;
}

.select-options li .check-mark {
    margin-left: auto;
    opacity: 0;
    color: #6c3bd2;
}

.select-options li.active .check-mark {
    opacity: 1;
}

/* ========== ФИЛЬТРЫ ========== */
.filter-card {
    background: white;
    border-radius: 24px;
    position: sticky;
    top: 100px;
    padding: 20px;
    border: 1px solid #f0f0f0;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-section label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
}

/* ========== ОПЛАТА ========== */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.payment-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-card:hover {
    border-color: #6c3bd2;
    background: #f5f0ff;
}

.payment-card.selected {
    border-color: #6c3bd2;
    background: linear-gradient(135deg, #f5f0ff 0%, #e0f0ff 100%);
}

.payment-card i {
    font-size: 28px;
    color: #6c3bd2;
}

/* ========== ДОСТАВКА ========== */
.delivery-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.delivery-card.selected {
    border-color: #6c3bd2;
    background: linear-gradient(135deg, #f5f0ff 0%, #e0f0ff 100%);
    color: #6c3bd2;
    font-weight: 600;
}

/* ========== ПРОМОКОДЫ ========== */
.promocode-badge {
    display: inline-block;
    background: white;
    border: 1px dashed #6c3bd2;
    border-radius: 100px;
    padding: 6px 15px;
    margin-right: 10px;
    margin-bottom: 8px;
    font-family: monospace;
    font-weight: 600;
    color: #6c3bd2;
    cursor: pointer;
    transition: all 0.2s;
}

.promocode-badge:hover {
    background: #f5f0ff;
    transform: scale(1.02);
}

/* ========== ФУТЕР - ИСПРАВЛЕННАЯ ВЕРСИЯ ========== */
.footer {
    background: #34495e !important;
    color: #ecf0f1 !important;
    padding: 50px 0 25px !important;
    margin-top: 60px !important;
    width: 100% !important;
    clear: both !important;
    position: relative !important;
    display: block !important;
    border-top: none !important;
}

.footer .container {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.footer-row {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 30px !important;
    padding-bottom: 40px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    margin-bottom: 25px !important;
}

.footer-col {
    flex: 1 !important;
    min-width: 200px !important;
    display: flex !important;
    gap: 15px !important;
    align-items: flex-start !important;
    background: transparent !important;
    border: none !important;
}

.footer-col > i {
    font-size: 28px !important;
    color: #5dade2 !important;
    margin-top: 5px !important;
}

.footer-col-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.footer-col-content strong {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin-bottom: 5px !important;
    display: block !important;
}

.footer-col-content span {
    font-size: 13px !important;
    color: #bdc3c7 !important;
    line-height: 1.4 !important;
    display: block !important;
}

.contact-row, .links-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.contact-row a, .links-row a {
    font-size: 13px !important;
    color: #bdc3c7 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
    background: transparent !important;
    padding: 0 !important;
}

.contact-row a:hover, .links-row a:hover {
    color: #5dade2 !important;
}

.footer-vc {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 20px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 20px !important;
    flex-wrap: wrap !important;
}

.vc-logo {
    max-height: 35px !important;
    width: auto !important;
}

.footer-vc span {
    font-size: 12px !important;
    color: #95a5a6 !important;
}

.footer-copyright {
    text-align: center !important;
    font-size: 12px !important;
    color: #7f8c8d !important;
    padding-top: 10px !important;
}

/* Мобильная версия футера */
@media (max-width: 768px) {
    .footer-row {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    .footer-col {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .footer-col > i {
        margin: 0 auto 5px !important;
    }
    
    .contact-row, .links-row {
        align-items: center !important;
    }
    
    .footer-vc {
        flex-direction: column !important;
    }
}

/* ========== ЧАТ ========== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6c3bd2 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(108, 59, 210, 0.4);
    transition: all 0.3s;
}

.chat-button:hover {
    transform: scale(1.05);
}

.chat-button i {
    font-size: 28px;
    color: white;
}

.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

.chat-window.open {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #6c3bd2 0%, #3b82f6 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
}

.chat-message {
    margin-bottom: 12px;
    display: flex;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 13px;
    line-height: 1.4;
}

.chat-message.user .chat-bubble {
    background: linear-gradient(135deg, #6c3bd2 0%, #3b82f6 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.bot .chat-bubble {
    background: white;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

.chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 13px;
}

.chat-input-area button {
    background: #6c3bd2;
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    color: white;
    cursor: pointer;
}

/* ========== COOKIE CONSENT ========== */
.cookie-modal, .cookie-settings-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.cookie-modal-content, .cookie-settings-content {
    background: white;
    max-width: 550px;
    width: 90%;
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    margin: 20px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, #6c3bd2 0%, #3b82f6 100%);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

input:disabled + .slider {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== КОРЗИНА ========== */
.cart-item {
    transition: all 0.3s ease;
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #f0f0f0;
}

.cart-item:hover {
    box-shadow: 0 8px 25px rgba(108, 59, 210, 0.08);
    border-color: rgba(108, 59, 210, 0.2);
}

.btn-quantity {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: white;
    color: #6c3bd2;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-quantity:hover {
    background: #6c3bd2;
    color: white;
    border-color: #6c3bd2;
}

.quantity-value {
    min-width: 40px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.btn-remove {
    color: #dc3545;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 8px;
    border-radius: 50%;
}

.btn-remove:hover {
    color: #c82333;
    background: #fff0f0;
    transform: scale(1.1);
}

.promo-badge {
    display: inline-block;
    background: #f8f9fa;
    border: 1px dashed #6c3bd2;
    border-radius: 30px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #6c3bd2;
    cursor: pointer;
    transition: all 0.2s;
}

.promo-badge:hover {
    background: #f5f0ff;
    transform: translateY(-1px);
}

.cart-summary-card {
    background: white;
    border-radius: 24px;
    border: 1px solid #f0f0f0;
    padding: 24px;
}

.empty-cart-icon {
    opacity: 0.5;
}

.free-shipping-notice {
    font-size: 13px;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .chat-window {
        width: 300px;
        right: 15px;
        bottom: 80px;
    }
    
    .chat-button {
        width: 50px;
        height: 50px;
    }
    
    .footer-row {
        flex-direction: column;
        gap: 18px;
    }
    
    .footer-col {
        width: 100%;
    }
    
    .payment-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item .cart-item-quantity {
        margin: 12px 0 !important;
        justify-content: center;
    }
    
    .btn-quantity {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 24px;
    }
    
    .product-card {
        padding: 16px;
    }
    
    .product-img {
        height: 140px;
    }
    
    .hero {
        padding: 50px 0;
        border-radius: 0 0 32px 32px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
}

/* ========== ОБЩИЕ УЛУЧШЕНИЯ ========== */
.container, .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.rounded-2xl {
    border-radius: 20px;
}

.shadow-soft {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.transition-smooth {
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}
/* Таймер отмены заказа */
.cancel-timer {
    font-size: 11px;
    color: #dc3545;
}

.btn-cancel {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.2s;
}

.btn-cancel:hover {
    background: #c82333;
    transform: translateY(-1px);
}