/* ========== ОСНОВНЫЕ НАСТРОЙКИ ========== */
:root {
    --primary-color: #8a2be2;
    --primary-dark: #6a0dad;
    --secondary-color: #20b2aa;
    --dark-color: #1a1a2e;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --catalog-green: #4CAF50;
    --catalog-green-dark: #45a049;
    --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;
}

/* ========== ШАПКА ========== */
.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;
}

/* ========== ГЛАВНЫЙ ЭКРАН (HERO) ========== */
.hero {
    background: var(--vape-gradient);
    color: white;
    padding: 3rem;
    border-radius: 10px;
    margin: 2rem 0 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;
}

.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);
}

/* ========== ТОВАРЫ ========== */
.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;
}

.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);
}

/* ========== КНОПКА "КАТАЛОГ ТОВАРОВ" ========== */
.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;
    padding: 40px 20px;
    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));
}

.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;
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
    transition: all 0.4s;
    text-transform: uppercase;
    letter-spacing: 1px;
    gap: 20px;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    border: none;
}

.btn-catalog-center::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--catalog-green-dark) 0%, #3d8b40 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);
}

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

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

/* ========== ФОРМЫ (ВХОД, РЕГИСТРАЦИЯ) ========== */
.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;
    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);
}

/* ========== ПОДВАЛ ========== */
.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);
}

/* ========== АДАПТИВНОСТЬ (МОБИЛЬНЫЕ) ========== */
@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 a {
        margin-bottom: 5px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .hero-image i {
        font-size: 5rem;
        margin-top: 1rem;
    }

    .catalog-container {
        flex-direction: column;
    }

    .categories-sidebar {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .btn-catalog-center {
        padding: 20px 40px;
        font-size: 18px;
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .btn-catalog-center {
        padding: 18px 30px;
        font-size: 16px;
        min-width: 200px;
    }

    .btn-catalog-center .btn-text {
        flex-direction: column;
        gap: 8px;
    }
}