/* Основные стили */
:root {
    --primary-color: #8a2be2;
    --primary-dark: #6a0dad;
    --secondary-color: #20b2aa;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --catalog-green: #4CAF50;
    --catalog-green-dark: #45a049;
    --catalog-green-darker: #3d8b40;
    --vape-gradient: linear-gradient(135deg, #8a2be2, #20b2aa);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Шапка */
.header {
    background: var(--dark-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav a:hover,
.nav a.active {
    background: var(--primary-color);
}

/* Мобильное меню */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    background: none;
    border: none;
    padding: 5px;
}

/* Основной контент */
.main {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
    width: 100%;
    overflow: hidden;
}

.hero {
    background: var(--vape-gradient);
    color: white;
    padding: 3rem;
    border-radius: 10px;
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-image i {
    font-size: 8rem;
    opacity: 0.7;
}

/* Секции */
.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    text-align: center;
}

/* Стили для каталога */
.catalog-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.categories-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.categories-sidebar h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

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

.categories-list li {
    margin-bottom: 5px;
}

.categories-list li a {
    display: block;
    padding: 12px 15px;
    background: white;
    border-radius: 5px;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    font-weight: 500;
}

.categories-list li a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.categories-list li.active a {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.catalog-products {
    flex-grow: 1;
}

.breadcrumbs {
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--gray-color);
    margin: 0 5px;
}

.breadcrumbs .current {
    color: var(--dark-color);
    font-weight: 600;
}

.product-category {
    margin: 5px 0;
    font-size: 0.9rem;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-category i {
    color: var(--primary-color);
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Стили для админ-панели категорий */
.add-category-form {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.add-category-form h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.category-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.category-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.category-slug {
    display: inline-block;
    padding: 3px 8px;
    background: #f0f0f0;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-top: 5px;
}

.category-meta {
    margin: 10px 0;
    font-size: 0.85rem;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-meta i {
    color: var(--primary-color);
}

.category-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.categories-list-admin h4 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 1.3rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.category-products-count {
    display: inline-block;
    padding: 2px 8px;
    background: var(--secondary-color);
    color: white;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* Карточки товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
    height: 200px;
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-image i {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-description {
    color: var(--gray-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Кнопки товаров */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-order, .btn-buy {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    min-height: 44px;
}

.btn-order {
    background: var(--secondary-color);
    color: white;
}

.btn-order:hover {
    background: #1a968f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(32, 178, 170, 0.3);
}

.btn-buy {
    background: var(--success-color);
    color: white;
}

.btn-buy:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Основные кнопки */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-size: 1rem;
    text-align: center;
    min-height: 44px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(138, 43, 226, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(32, 178, 170, 0.3);
}

.btn-block {
    width: 100%;
}

/* Кнопка удаления товара */
.btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    background: var(--danger-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    gap: 5px;
    min-height: 36px;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Кнопка удаления заказа */
.btn-delete-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    background: var(--danger-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    gap: 5px;
    min-height: 36px;
}

.btn-delete-order:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Кнопка удаления категории */
.btn-delete-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    background: var(--danger-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    gap: 5px;
    flex: 1;
    min-height: 36px;
}

.btn-delete-category:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Кнопка редактирования категории */
.btn-edit-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    background: var(--warning-color);
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    gap: 5px;
    flex: 1;
    min-height: 36px;
}

.btn-edit-category:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

/* Формы */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vape-gradient);
    padding: 20px;
}

.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    color: var(--gray-color);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Алерты */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Админ-панель */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-color);
    transition: all 0.3s;
    min-height: 44px;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
}

.tab-btn:hover:not(.active) {
    background: #f0f0f0;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.tab-content.active {
    display: block;
}

.admin-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
}

.admin-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

/* Заказы */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.order-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.confirmed {
    background: #d4edda;
    color: #155724;
}

.order-status.processing {
    background: #cce5ff;
    color: #004085;
}

.order-status.completed {
    background: #d1ecf1;
    color: #0c5460;
}

/* Бейджи типов заказов */
.order-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-type-badge.order {
    background: var(--secondary-color);
    color: white;
}

.order-type-badge.buy {
    background: var(--success-color);
    color: white;
}

.order-body p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-body strong {
    min-width: 120px;
    color: var(--dark-color);
}

.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* ЧАТ - ОСНОВНЫЕ СТИЛИ */
.chat-container {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 600px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--dark-color);
    color: white;
    padding: 1.5rem;
    flex-shrink: 0;
}

.chat-header h2 {
    margin-bottom: 1rem;
}

.order-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
}

.order-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 0;
}

.message {
    max-width: 80%;
    padding: 1rem;
    border-radius: 10px;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    animation: messageAppear 0.3s ease;
}

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

.message.system {
    align-self: center;
    background: #e9ecef;
    color: var(--gray-color);
    text-align: center;
    max-width: 95%;
    padding: 0.8rem;
    font-size: 0.9rem;
}

.message.incoming {
    align-self: flex-start;
    background: white;
    border: 1px solid #dee2e6;
}

.message.outgoing {
    align-self: flex-end;
    background: var(--primary-color);
    color: white;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.8;
}

.chat-input {
    padding: 1.5rem;
    border-top: 1px solid #dee2e6;
    background: white;
    flex-shrink: 0;
}

.chat-input form {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    min-width: 0;
    transition: border-color 0.3s;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

.chat-closed {
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    color: var(--gray-color);
}

.chat-closed i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--danger-color);
}

.chat-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    text-align: center;
}

/* Профиль */
.profile-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.profile-avatar i {
    font-size: 4rem;
    color: var(--primary-color);
}

.profile-role {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #e9ecef;
    color: var(--gray-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-role.admin {
    background: var(--primary-color);
    color: white;
}

.profile-role.user {
    background: var(--secondary-color);
    color: white;
}

/* Футер */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Уведомления */
.no-products, .no-orders, .no-messages {
    text-align: center;
    padding: 3rem;
    color: var(--gray-color);
}

.no-products i, .no-orders i, .no-messages i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-categories {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    color: var(--gray-color);
}

.no-categories i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--gray-color);
    opacity: 0.5;
}

/* СТИЛИ ДЛЯ ЦЕНТРАЛЬНОЙ КНОПКИ КАТАЛОГ ТОВАРОВ */
.catalog-section {
    width: 100%;
    margin: 40px 0;
    padding: 0 20px;
}

.catalog-center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    padding: 40px 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.catalog-center-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--catalog-green), var(--catalog-green-dark));
}

.catalog-center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-align: center;
}

.btn-catalog-center {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 25px 70px;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--catalog-green) 0%, var(--catalog-green-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
    gap: 20px;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

.btn-catalog-center::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--catalog-green-dark) 0%, var(--catalog-green-darker) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-catalog-center:hover::before {
    opacity: 1;
}

.btn-catalog-center:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.4);
    letter-spacing: 1.2px;
}

.btn-catalog-center:active {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.1s ease;
}

.btn-catalog-center i {
    font-size: 28px;
    transition: transform 0.4s ease;
}

.btn-catalog-center:hover i {
    transform: rotate(10deg) scale(1.2);
}

/* Анимация пульсации для привлечения внимания */
@keyframes pulse-catalog {
    0% {
        box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3), 0 0 0 0 rgba(76, 175, 80, 0.5);
    }
    70% {
        box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3), 0 0 0 15px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3), 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.btn-catalog-center {
    animation: pulse-catalog 2s infinite;
}

/* Эффект при наведении - прекращение анимации */
.btn-catalog-center:hover {
    animation: none;
}

/* Дополнительные улучшения для кнопки */
.btn-catalog-center span {
    position: relative;
    z-index: 2;
}

.btn-catalog-center .btn-text {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

/* Для всех мобильных устройств */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-color);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }
    
    .nav ul.show {
        display: flex;
    }
    
    .nav ul li {
        width: 100%;
    }
    
    .nav ul li a {
        display: block;
        padding: 12px;
        border-radius: 4px;
        margin-bottom: 5px;
    }
    
    .header-content {
        position: relative;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-image i {
        font-size: 5rem;
        margin-top: 1rem;
    }
    
    /* Адаптивность для каталога */
    .catalog-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .categories-sidebar {
        width: 100%;
    }
    
    .categories-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .categories-list li {
        margin-bottom: 0;
    }
    
    .categories-list li a {
        padding: 10px 15px;
        white-space: nowrap;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-actions {
        flex-direction: column;
    }
    
    .btn-edit-category,
    .btn-delete-category {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
    }
    
    /* УЛУЧШЕННЫЙ ЧАТ ДЛЯ МОБИЛЬНЫХ */
    .chat-container {
        height: calc(100vh - 180px);
        margin: 0 -20px;
        border-radius: 0;
        box-shadow: none;
    }
    
    .chat-header {
        padding: 1rem;
    }
    
    .chat-header h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .order-info {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .order-info p {
        margin-bottom: 0.3rem;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .order-info strong {
        min-width: 80px;
        margin-right: 5px;
    }
    
    .chat-messages {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .message {
        max-width: 90%;
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .message.system {
        max-width: 95%;
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .message-header {
        font-size: 0.75rem;
    }
    
    .chat-input {
        padding: 1rem;
    }
    
    .chat-input form {
        flex-direction: column;
        gap: 10px;
    }
    
    .chat-input input {
        padding: 14px;
        font-size: 1rem;
    }
    
    .chat-input button {
        width: 100%;
        padding: 14px;
    }
    
    .chat-info {
        margin: 1rem -20px 0;
        padding: 1rem;
        border-radius: 0;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Контейнер для чата на мобильных */
    .container {
        padding: 0;
    }
    
    /* Восстанавливаем паддинг для других страниц */
    body:not(.chat-page) .container {
        padding: 0 20px;
    }
    
    /* Для админских действий в чате */
    .admin-chat-actions {
        margin: 1rem -20px 0;
        padding: 1rem;
        border-radius: 0;
    }
    
    /* АДАПТИВНОСТЬ ДЛЯ ЦЕНТРАЛЬНОЙ КНОПКИ КАТАЛОГА */
    .catalog-section {
        margin: 30px 0;
        padding: 0 15px;
    }
    
    .catalog-center-wrapper {
        min-height: 200px;
        padding: 30px 15px;
        margin: 0 15px;
        border-radius: 15px;
    }
    
    .btn-catalog-center {
        padding: 20px 40px;
        font-size: 18px;
        gap: 15px;
        min-width: 250px;
        border-radius: 12px;
    }
    
    .btn-catalog-center i {
        font-size: 22px;
    }
    
    .btn-catalog-center:hover {
        transform: translateY(-5px) scale(1.03);
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Адаптивность для каталога на маленьких экранах */
    .categories-list {
        flex-direction: column;
    }
    
    .categories-list li a {
        width: 100%;
        text-align: center;
    }
    
    .category-card {
        padding: 15px;
    }
    
    .category-actions {
        flex-direction: column;
    }
    
    .chat-container {
        height: calc(100vh - 160px);
    }
    
    .chat-header h2 {
        font-size: 1.2rem;
    }
    
    .order-info {
        font-size: 0.85rem;
    }
    
    .message {
        max-width: 95%;
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    .message.system {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    /* Улучшаем отображение информации о заказе */
    .order-info p {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0.5rem;
    }
    
    .order-info strong {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 2px;
    }
    
    .order-type-badge, .order-status {
        display: inline-block;
        margin-top: 2px;
        font-size: 0.75rem;
        padding: 3px 8px;
    }
    
    /* АДАПТИВНОСТЬ ДЛЯ ЦЕНТРАЛЬНОЙ КНОПКИ КАТАЛОГА НА МАЛЕНЬКИХ ЭКРАНАХ */
    .catalog-section {
        margin: 20px 0;
        padding: 0 10px;
    }
    
    .catalog-center-wrapper {
        min-height: 180px;
        padding: 20px 10px;
        margin: 0 10px;
        border-radius: 12px;
    }
    
    .btn-catalog-center {
        padding: 18px 30px;
        font-size: 16px;
        gap: 12px;
        min-width: 200px;
        border-radius: 10px;
        letter-spacing: 0.5px;
    }
    
    .btn-catalog-center i {
        font-size: 20px;
    }
    
    .btn-catalog-center .btn-text {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-catalog-center span {
        display: block;
    }
    
    /* Уменьшаем анимацию пульсации на маленьких экранах */
    @keyframes pulse-catalog-mobile {
        0% {
            box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3), 0 0 0 0 rgba(76, 175, 80, 0.4);
        }
        70% {
            box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3), 0 0 0 10px rgba(76, 175, 80, 0);
        }
        100% {
            box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3), 0 0 0 0 rgba(76, 175, 80, 0);
        }
    }
    
    .btn-catalog-center {
        animation: pulse-catalog-mobile 2s infinite;
    }
}

/* Для горизонтальной ориентации на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .chat-container {
        height: calc(100vh - 140px);
    }
    
    .chat-header {
        padding: 0.8rem;
    }
    
    .chat-messages {
        padding: 0.8rem;
    }
    
    .message {
        max-width: 85%;
        padding: 0.7rem;
    }
    
    /* Центральная кнопка каталога в ландшафте */
    .catalog-center-wrapper {
        min-height: 150px;
    }
    
    .btn-catalog-center {
        padding: 15px 30px;
        font-size: 16px;
        min-width: 200px;
    }
}

/* Специальные стили для страницы чата */
body.chat-page {
    overflow: hidden;
}

.chat-page .main {
    padding: 0;
}

.chat-page .container {
    max-width: 100%;
    padding: 0;
}

/* Улучшаем скролл для чата */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Улучшаем отображение длинных сообщений */
.message-body {
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
    line-height: 1.5;
}

/* Для очень длинных слов */
.message-body {
    hyphens: auto;
}

/* Анимации и переходы */
.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-up {
    animation: slideUp 0.5s ease;
}

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

/* Улучшения для доступности */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Фокус-стили для доступности */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Плавные переходы для всех интерактивных элементов */
a, button, input, select, textarea {
    transition: all 0.3s ease;
}