/* ==========================================
   ИМПОРТ ФУТУРИСТИЧНОГО ШРИФТА
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    background: #030305; /* Чуть глубже черный */
    color: white;
    overflow-x: hidden;
}

/* Твой крутой фоновый эффект задней сетки, сделали чуть заметнее */
body:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(45deg, #bc00dd 25%, transparent 25%),
        linear-gradient(-45deg, #bc00dd 25%, transparent 25%);
    background-size: 40px 40px;
    opacity: .03;
    z-index: 1;
}

/* ==========================================
   HEADER (ШАПКА)
   ========================================== */
header {
    height: 80px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(7, 7, 11, 0.8);
    backdrop-filter: blur(10px); /* Эффект матового стекла */
    border-bottom: 1px solid #9b00ff;
    position: relative;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(155, 0, 255, 0.1);
}

.brand {
    font-family: 'Orbitron', sans-serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(155, 0, 255, 0.6);
}

.brand::first-letter {
    color: #00f0ff; /* Сделали первую букву неоново-циановой для контраста */
    text-shadow: 0 0 10px #00f0ff;
}

/* ==========================================
   КНОПКИ (НЕОНОВЫЙ ПРОКАЧ)
   ========================================== */
button {
    background: transparent;
    color: white;
    border: 2px solid #a000ff;
    padding: 12px 24px;
    border-radius: 8px; /* Чуть строже углы для киберпанк стиля */
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(160, 0, 255, 0.3);
}

button:hover {
    background: #a000ff;
    border-color: #00f0ff;
    box-shadow: 0 0 20px #a000ff, 0 0 5px #00f0ff;
    transform: translateY(-2px);
}

/* ==========================================
   HERO СЕКЦИЯ
   ========================================== */
.hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 50px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 70px;
    margin: 0;
    text-transform: uppercase;
    background: linear-gradient(45deg, #fff 50%, #bc00dd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(188, 0, 221, 0.4));
}

.hero p {
    color: #cfcfcf;
    font-size: 22px;
    margin-top: 10px;
    margin-bottom: 25px;
}

/* ==========================================
   ТОТ САМЫЙ SOURCE ENGINE ERROR PATTERN
   ========================================== */
.pattern {
    width: 260px;
    height: 260px;
    background-image: url("images/pider.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    border: 2px solid #ff00ff;
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.5), 0 0 10px rgba(0, 240, 255, 0.3);
    animation: glitchGlow 3s infinite alternate;
}

@keyframes glitchGlow {
    0% { box-shadow: 0 0 30px rgba(255, 0, 255, 0.4); }
    100% { box-shadow: 0 0 50px rgba(255, 0, 255, 0.7), 0 0 15px #00f0ff; }
}

/* ==========================================
   МАГАЗИН И ТОВАРЫ
   ========================================== */
#shop {
    padding: 60px 8%;
    position: relative;
    z-index: 2;
}

#shop h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 3px;
    text-shadow: 0 0 15px rgba(160, 0, 255, 0.5);
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.product {
    background: #08080d;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #1f1f30;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product:hover {
    border-color: #ff00cc;
    box-shadow: 0 0 25px rgba(255, 0, 204, 0.25);
    transform: translateY(-5px);
}

.productImg {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.product h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    margin: 10px 0;
    color: #00f0ff; /* Названия подсвечены бирюзовым */
}

.product p {
    color: #aaa;
    font-size: 15px;
    margin-bottom: 15px;
}

.product b {
    font-size: 22px;
    color: #fff;
    display: block;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* ==========================================
   МОДАЛКИ (КОРЗИНА И УСПЕХ)
   ========================================== */
#cart, #success {
    display: none; /* Переключается скриптом в flex */
    position: fixed;
    inset: 0;
    background: rgba(3, 3, 5, 0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.cartBox {
    background: #09090f;
    padding: 40px;
    border-radius: 16px;
    border: 2px solid #a000ff;
    box-shadow: 0 0 35px rgba(160, 0, 255, 0.4);
    min-width: 320px;
    text-align: center;
}

.cartBox h2 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
}

#items {
    margin: 20px 0;
    color: #ccc;
}

a {
    color: #00f0ff;
    font-size: 20px;
    text-decoration: none;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

a:hover {
    text-decoration: underline;
}

/* Адаптив под мобилки */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 30px;
    }
    .hero h1 {
        font-size: 42px;
    }
}
