/*
Theme Name: Technar
Theme URI: https://shop.technar.az
Author: Ali + Grok
Description: Премиум тёмный шаблон магазина компьютеров (Apple/Razer стиль)
Version: 1.6
Text Domain: technar
*/

:root {
    --primary: #00f5ff;
    --accent: #a855f7;
    --bg: #0a0a0a;
    --card: #111111;
    --border: #222222;
    --text: #e5e5e5;
    --text-light: #aaaaaa;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================== PREMIUM HEADER ===================== */
.header {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1100;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    flex-wrap: wrap;
}

.site-logo {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #00f5ff, #c084fc, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* МЕНЮ */
.main-nav ul {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.05rem;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.4s ease;
}

.main-nav a:hover {
    color: white;
    background: rgba(0, 245, 255, 0.12);
}

/* ИКОНКИ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 24px;
}

.header-icon {
    color: var(--text-light);
    transition: all 0.3s ease;
    position: relative;
}

.header-icon:hover {
    color: var(--primary);
    transform: scale(1.2);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #000;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================== HERO ===================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 680px;
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.85)), 
                url('https://images.unsplash.com/photo-1591799264318-7e6ef8b0b4e8?w=2000') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(10,10,10,0.9) 90%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 5.2rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #fff, #00f5ff, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.65rem;
    color: #e0e0e0;
    margin-bottom: 50px;
}

.hero-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 16px 44px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 60px;
    text-decoration: none;
    transition: all 0.4s;
}

.btn-primary {
    background: linear-gradient(90deg, #00f5ff, #a855f7);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,245,255,0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===================== CATEGORIES ===================== */
.categories-section {
    padding: 100px 0;
    background: var(--bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.category-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    transition: all 0.4s ease;
    color: inherit;
    text-decoration: none;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 245, 255, 0.12);
}

.category-icon {
    font-size: 4.5rem;
    margin-bottom: 24px;
    display: block;
    transition: transform 0.4s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.15);
}

.category-card h3 {
    font-size: 1.55rem;
    margin-bottom: 12px;
}

.category-card p {
    color: var(--text-light);
}

/* ===================== WHY TECHNAR ===================== */
.why-technar {
    padding: 100px 0;
    background: #0f0f0f;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.why-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 45px 30px;
    text-align: center;
    transition: all 0.4s ease;
}

.why-card:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.why-icon {
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.why-card h3 {
    font-size: 1.45rem;
    margin-bottom: 14px;
}

.why-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===================== POPULAR PRODUCTS ===================== */
.popular-products {
    padding: 100px 0;
    background: var(--bg);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.product:hover {
    transform: translateY(-12px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(0, 245, 255, 0.1);
}

/* ===================== АДАПТИВНОСТЬ ===================== */
@media (max-width: 992px) {
    .main-nav ul {
        gap: 20px;
    }
    .header-inner {
        flex-direction: column;
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.6rem;
    }
    .hero-subtitle {
        font-size: 1.4rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ===================== УЛУЧШЕННАЯ АНИМАЦИЯ МЕНЮ ===================== */
.main-nav a {
    color: var(--text-light);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.main-nav a:hover::before {
    left: 200%;
}

.main-nav a:hover {
    color: #ffffff;
    background: rgba(0, 245, 255, 0.08);
    transform: translateY(-3px);
}

/* Дополнительный эффект подчёркивания */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 16px;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transition: width 0.4s ease;
}

.main-nav a:hover::after {
    width: calc(100% - 32px);
}
