/* Дополнительные стили для главной страницы в стиле админ панели */

/* Переопределение стилей Bootstrap для соответствия дизайну админ панели */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
}

/* Стили для шапки в стиле админ панели */
.admin-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.admin-header h1 {
    margin: 0;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.admin-header nav {
    position: relative;
    z-index: 1;
}

.admin-header nav ul {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-header nav ul li {
    margin: 0;
}

.admin-header nav ul li a {
    color: #fff;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

.admin-header nav ul li a:hover,
.admin-header nav ul li a.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* Контейнер в стиле админ панели */
.admin-container {
    width: 95%;
    max-width: 1400px;
    margin: 30px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);

/* Стили для валидации форм */
.form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Анимация для валидации */
.form-control.is-valid,
.form-control.is-invalid {
    transition: all 0.3s ease;
}

/* Стили для сообщений об ошибках валидации */
.invalid-feedback {
    display: none; /* Скрыто по умолчанию */
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.valid-feedback {
    display: none; /* Скрыто по умолчанию */
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #28a745;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    font-weight: 500;
}

/* Показываем сообщения только когда нужно */
.invalid-feedback.show {
    display: block;
}

.valid-feedback.show {
    display: block;
}
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Стили для карточек */
.card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    border: none;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

/* Стили для кнопок */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
}

.btn-outline-primary {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background: #007bff;
    color: #fff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-width: 80px;
}

.btn-qty-minus, .btn-qty-plus {
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Стили для форм */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* Стили для бейджей */
.badge {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

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

.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
}

.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
}

/* Стили для иконок */
.fa-3x {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

/* Стили для изображений товаров */
.card-img-top {
    transition: all 0.3s ease;
}

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

/* Стили для цен */
.text-primary {
    color: #007bff !important;
    font-weight: 700;
}

/* Стили для футера */
footer.admin-header {
    margin-top: 50px;
}

footer h6 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
}

footer .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer a.text-white-50:hover {
    color: #fff !important;
    text-decoration: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .admin-header h1 {
        font-size: 2rem;
    }
    
    .admin-header nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .admin-container {
        width: 98%;
        padding: 20px;
        margin: 20px auto;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .btn {
        min-width: 100px;
        padding: 10px 20px;
    }
}

@media (max-width: 576px) {
    .admin-header h1 {
        font-size: 1.8rem;
    }
    
    .admin-container {
        width: 100%;
        border-radius: 0;
        margin: 0;
    }
    
    .card-header {
        padding: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .btn {
        min-width: 80px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Убрать стрелочки у input[type=number] в корзине */
input[type="number"].cart-qty-input::-webkit-outer-spin-button,
input[type="number"].cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"].cart-qty-input {
    -moz-appearance: textfield;
}

/* Фикс для input-group в корзине */
.input-group.input-group-sm {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
}
.input-group.input-group-sm .btn,
.input-group.input-group-sm .form-control {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    display: inline-block !important;
}
.input-group.input-group-sm .btn {
    min-width: 32px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: center !important;
}
.input-group.input-group-sm .form-control {
    min-width: 0 !important;
    max-width: 48px !important;
    text-align: center !important;
}

/* Стили для отключенных кнопок количества */
.btn-qty-minus:disabled,
.btn-qty-plus:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #6c757d;
}

.btn-qty-minus:disabled:hover,
.btn-qty-plus:disabled:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #6c757d;
}

/* Стили для поля ввода количества */
#quantity:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#quantity:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Подсказка для поля количества */
#quantity[title]:hover::after {
    content: attr(title);
    position: absolute;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-top: -30px;
    margin-left: -50px;
}

/* Стили для мобильной версии корзины */
.cart-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.cart-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.cart-card.out-of-stock {
    opacity: 0.7;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.cart-card-header {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
    border-bottom: 1px solid #f8f9fa;
}

.cart-card-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.cart-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-card-info {
    flex: 1;
    min-width: 0;
}

.cart-card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.cart-card-category {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

.cart-card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #007bff;
}

.cart-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-card-stock {
    font-size: 0.9rem;
}

.cart-card-quantity {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-card-quantity label {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.cart-card-quantity .input-group {
    max-width: 150px;
}

.cart-card-total {
    font-size: 1.1rem;
    color: #28a745;
    text-align: right;
    padding-top: 0.5rem;
    border-top: 1px solid #f8f9fa;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 576px) {
    .cart-card-header {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .cart-card-image {
        width: 70px;
        height: 70px;
    }
    
    .cart-card-title {
        font-size: 1rem;
    }
    
    .cart-card-price {
        font-size: 1.1rem;
    }
    
    .cart-card-body {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .cart-card-quantity .input-group {
        max-width: 120px;
    }
    
    .cart-card-total {
        font-size: 1rem;
    }
}

/* Скрытие таблицы на мобильных устройствах */
@media (max-width: 768px) {
    .table-responsive {
        display: none;
    }
}

/* Показ карточек только на мобильных устройствах */
@media (min-width: 769px) {
    .cart-cards {
        display: none;
    }
}

/* Исправление проблемы с "прыгающей" клавиатурой на мобильных устройствах */
@media (max-width: 768px) {
    /* Предотвращаем масштабирование при фокусе на input */
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="number"],
    textarea,
    .form-control {
        font-size: 16px !important;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        transform: none !important;
        -webkit-transform: none !important;
        zoom: 1 !important;
        -webkit-zoom: 1 !important;
        -webkit-text-size-adjust: 100% !important;
        -ms-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }
    
    /* Отключаем автоматическое масштабирование при фокусе */
    input[type="text"]:focus,
    input[type="tel"]:focus,
    input[type="email"]:focus,
    input[type="number"]:focus,
    textarea:focus,
    .form-control:focus {
        font-size: 16px !important;
        transform: none !important;
        -webkit-transform: none !important;
        zoom: 1 !important;
        -webkit-zoom: 1 !important;
        -webkit-text-size-adjust: 100% !important;
        -ms-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }
    
    /* Предотвращаем изменение viewport при фокусе */
    body {
        -webkit-text-size-adjust: 100% !important;
        -ms-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Устанавливаем правильный viewport для мобильных устройств */
    html {
        -webkit-text-size-adjust: 100% !important;
        -ms-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }
    
    /* Отключаем любые анимации и переходы для полей ввода */
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="number"],
    textarea,
    .form-control {
        transition: none !important;
        -webkit-transition: none !important;
        animation: none !important;
        -webkit-animation: none !important;
    }
    
    /* Предотвращаем любые изменения позиции */
    input[type="text"]:focus,
    input[type="tel"]:focus,
    input[type="email"]:focus,
    input[type="number"]:focus,
    textarea:focus,
    .form-control:focus {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
}

/* Стили для кнопок категорий */
.btn.category-filter-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid #667eea !important;
    color: #667eea !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.btn.category-filter-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.btn.category-filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4) !important;
}

/* Специальные цвета для конкретных категорий */
.btn.category-filter-btn[href*="Прочие"] {
    border-color: #17a2b8 !important;
    color: #17a2b8 !important;
}

.btn.category-filter-btn[href*="Прочие"]:hover,
.btn.category-filter-btn[href*="Прочие"].active {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%) !important;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3) !important;
}

.btn.category-filter-btn[href*="Видеонаблюдение"] {
    border-color: #007bff !important;
    color: #007bff !important;
}

.btn.category-filter-btn[href*="Видеонаблюдение"]:hover,
.btn.category-filter-btn[href*="Видеонаблюдение"].active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3) !important;
}

/* Стили для иконок в кнопках категорий */
.btn.category-filter-btn i {
    font-size: 1.1em !important;
    margin-right: 0.5rem !important;
}

/* Стили для кнопки "Все товары" */
.btn.btn-outline-primary:not(.category-filter-btn) {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid #667eea !important;
    color: #667eea !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.btn.btn-outline-primary:not(.category-filter-btn):hover,
.btn.btn-outline-primary:not(.category-filter-btn).active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

/* Стили для категорий на карточках товаров */
p.product-category {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 20px !important;
    display: inline-block !important;
    margin: 0.5rem 0 !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    border: 2px solid transparent !important;
    transition: all 0.3s ease !important;
}

p.product-category:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Специальные стили для конкретных категорий */
p.product-category .text-info {
    color: #17a2b8 !important;
    border-color: #17a2b8 !important;
}

p.product-category .text-primary {
    color: #007bff !important;
    border-color: #007bff !important;
}

p.product-category .text-danger {
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}

/* Стили для баннера cookie */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #fff;
}

.cookie-banner-text p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.cookie-banner-text a {
    color: #ffd700;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.cookie-banner-text a:hover {
    color: #ffed4e;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 120px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.cookie-btn-decline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Адаптивность для баннера cookie */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem;
        border-radius: 12px 12px 0 0;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    
    .cookie-banner-text {
        min-width: auto;
        text-align: center;
    }
    
    .cookie-banner-text h6 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.4rem;
    }
    
    .cookie-banner-buttons {
        justify-content: center;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    
    .cookie-btn {
        min-width: 120px;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        border-radius: 6px;
        flex: 1;
        max-width: 150px;
    }
    
    .cookie-btn i {
        font-size: 0.8rem;
        margin-right: 0.3rem !important;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 0.8rem;
        border-radius: 10px 10px 0 0;
    }
    
    .cookie-banner-content {
        gap: 0.6rem;
    }
    
    .cookie-banner-text h6 {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 0.3rem;
    }
    
    .cookie-banner-buttons {
        gap: 0.4rem;
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        min-width: auto;
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
        border-radius: 8px;
        max-width: none;
    }
    
    .cookie-btn i {
        font-size: 0.75rem;
        margin-right: 0.25rem !important;
    }
}

p.product-category .text-success {
    color: #28a745 !important;
    border-color: #28a745 !important;
}

p.product-category .text-warning {
    color: #ffc107 !important;
    border-color: #ffc107 !important;
}

/* Улучшенные стили для иконок категорий */
p.product-category i {
    font-size: 1.1em !important;
    margin-right: 0.5rem !important;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.1)) !important;
}

/* Стили для индикаторов наличия товаров */
.stock-indicator-left .badge,
.stock-indicator-right .badge {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.stock-indicator-left .badge:hover,
.stock-indicator-right .badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stock-indicator-left .badge.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
}

.stock-indicator-left .badge.bg-danger {
    background: linear-gradient(135deg, #dc3545, #e74c3c) !important;
    color: white !important;
}

.stock-indicator-left .badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
    color: white !important;
}

.stock-indicator-right .badge.bg-info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1) !important;
    color: white !important;
}

/* Анимация для индикаторов */
.stock-indicator-left .badge.bg-success i {
    animation: pulse-green 2s infinite;
}

.stock-indicator-left .badge.bg-danger i {
    animation: pulse-red 2s infinite;
}

.stock-indicator-left .badge.bg-warning i {
    animation: pulse-yellow 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes pulse-yellow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Дополнительные стили для индикаторов на странице products.php */
.stock-info .badge {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.stock-info .badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stock-info .badge.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white !important;
}

.stock-info .badge.bg-danger {
    background: linear-gradient(135deg, #dc3545, #e74c3c) !important;
    color: white !important;
}

.stock-info .badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
    color: white !important;
}

.stock-info .badge.bg-info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1) !important;
    color: white !important;
}