/* ===== ОСНОВНЫЕ НАСТРОЙКИ ===== */
:root {
    --bg-dark: #0a0c0f;
    --bg-card: #14171c;
    --bg-card-hover: #1a1e24;
    --accent-gold: #ffd700;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: #2a2e35;
    --price-old: #6b7280;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===== ШАПКА САЙТА ===== */
.site-header {
    background: linear-gradient(135deg, #1a1f25 0%, #0f1217 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    margin-bottom: 40px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-gold);
}

.header-info {
    color: var(--text-secondary);
    font-size: 14px;
}

.header-info i {
    color: var(--accent-gold);
    margin-right: 5px;
}

/* ===== НАВИГАЦИЯ ===== */
.nav-menu {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin: 30px 0;
    padding: 0 20px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent-gold);
}

.nav-link.active {
    color: var(--accent-gold);
    border-bottom: 2px solid var(--accent-gold);
}

/* ===== ОСНОВНОЙ КОНТЕЙНЕР ===== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== БАННЕР/СТАТУС СЕРВЕРА ===== */
.server-status-banner {
    background: linear-gradient(135deg, #1e2329 0%, #14181f 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.server-title h1 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.server-title h1 small {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-left: 10px;
}

.server-description {
    color: var(--text-secondary);
    font-size: 16px;
}

.server-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700, #ffa500);
    color: #000;
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.online-count {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.online-count i {
    color: #28a745;
    font-size: 12px;
}

.online-number {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 18px;
}

/* ===== КАТЕГОРИИ ТОВАРОВ ===== */
.categories-section {
    margin-bottom: 40px;
}

.categories-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.categories-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.category-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 10px 25px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.category-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-gold);
    color: var(--text-primary);
}

.category-item.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #000;
    font-weight: 600;
}

.category-count {
    color: var(--text-secondary);
    font-size: 13px;
    margin-left: 5px;
}

/* ===== СЕТКА ТОВАРОВ ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.2s;
    position: relative;
}

.product-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    padding-right: 50px;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-price {
    margin: 15px 0;
}

.price-current {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-gold);
    display: block;
}

.price-old {
    color: var(--price-old);
    text-decoration: line-through;
    font-size: 14px;
    margin-left: 10px;
}

.price-from {
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== СТРАНИЦА ТОВАРА ===== */
.product-page {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

.product-gallery {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-dark);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.product-main-image img {
    max-width: 80%;
    max-height: 80%;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    background: var(--bg-dark);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.thumbnail:hover {
    border-color: var(--accent-gold);
}

.product-info {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

.product-meta {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
}

.product-stats {
    display: flex;
    gap: 30px;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 12px;
}

.btn-buy {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #ffd700, #ffa500);
    border: none;
    border-radius: 12px;
    color: #000;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    margin: 20px 0;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .server-status-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .product-page {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        flex-wrap: wrap;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        justify-content: center;
    }
}