﻿/* ============ ШРИФТ И СБРОС ============ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #000000;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ ПРЕЛОАДЕР ============ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

    .preloader.hidden {
        opacity: 0;
        visibility: hidden;
    }

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top: 3px solid #ff0000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============ ШАПКА ============ */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

    .header.scrolled {
        box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    }

.nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 22px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Меню */
.menu {
    display: flex;
    list-style: none;
    gap: 45px;
}

    .menu a {
        color: #000;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 2px;
        text-transform: uppercase;
        position: relative;
        transition: color 0.3s;
    }

        .menu a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: #ff0000;
            transition: width 0.3s ease;
        }

        .menu a:hover {
            color: #ff0000;
        }

            .menu a:hover::after {
                width: 100%;
            }

/* Иконки */
.header-icons {
    display: flex;
    gap: 25px;
    align-items: center;
}

.search-icon,
.cart-icon {
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.3s;
    position: relative;
}

    .search-icon:hover,
    .cart-icon:hover {
        transform: scale(1.15);
    }

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ff0000;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

    .burger span {
        width: 25px;
        height: 2px;
        background: #000;
        transition: all 0.3s;
        display: block;
    }

/* ============ ГЛАВНЫЙ ЭКРАН ============ */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('images/hero-bg.jpg') center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 100% );
}

.hero-content {
    position: relative;
    z-index: 2;
    perspective: 1000px;
}

/* ============ GLITCH ЗАГОЛОВОК ============ */
.glitch-interactive {
    font-size: 130px;
    font-weight: 900;
    letter-spacing: 15px;
    color: #fff;
    position: relative;
    display: inline-block;
    cursor: default;
    user-select: none;
    text-transform: uppercase;
    will-change: transform;
}

    .glitch-interactive::before {
        content: attr(data-text);
        position: absolute;
        inset: 0;
        color: #ff0000;
        z-index: -1;
        opacity: 0.85;
        animation: glitch-red 2.5s infinite;
    }

    .glitch-interactive::after {
        content: attr(data-text);
        position: absolute;
        inset: 0;
        color: #111;
        z-index: -2;
        opacity: 0.85;
        animation: glitch-black 2.5s infinite;
    }

@keyframes glitch-red {
    0%, 90%, 100% {
        transform: translate(0);
    }

    92% {
        transform: translate(-4px, 3px);
    }

    94% {
        transform: translate(-4px, -3px);
    }

    96% {
        transform: translate(4px, 3px);
    }

    98% {
        transform: translate(4px, -3px);
    }
}

@keyframes glitch-black {
    0%, 90%, 100% {
        transform: translate(0);
    }

    92% {
        transform: translate(4px, -3px);
    }

    94% {
        transform: translate(4px, 3px);
    }

    96% {
        transform: translate(-4px, -3px);
    }

    98% {
        transform: translate(-4px, 3px);
    }
}

/* Подзаголовок */
.hero-subtitle {
    font-size: 22px;
    color: rgba(255,255,255,0.85);
    margin: -10px 0 50px;
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
}

/* ============ КНОПКИ С ОСКОЛКАМИ ============ */
.crack-btn-wrapper {
    display: inline-block;
    position: relative;
}

.crack-btn {
    position: relative;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    outline: none;
    overflow: visible;
    transition: opacity 0.08s ease;
    z-index: 2;
}

    .crack-btn span {
        display: block;
        position: relative;
        z-index: 200;
        pointer-events: none;
        white-space: nowrap;
    }

/* Hero кнопка */
.btn-hero-crack {
    padding: 18px 65px;
    background: transparent;
    color: #fff;
    font-size: 15px;
    border: 2px solid #ff0000 !important;
}

/* Корзина */
.cart-crack-btn {
    padding: 11px 0; /* убираем боковые отступы, ширину задаст min-width */
    min-width: 195px; /* фиксируем ширину, чтобы кнопка не сжималась */
    text-align: center; /* текст всегда строго по центру */
    background: #000;
    color: #fff;
    font-size: 13px;
    border: 2px solid #000 !important;
}

/* Быстрый просмотр */
.quick-crack-btn {
    padding: 13px 32px;
    background: #fff;
    color: #000;
    font-size: 13px;
    border: 2px solid #000 !important;
}

/* Промо */
.promo-crack-btn {
    padding: 17px 55px;
    background: #ff0000;
    color: #fff;
    font-size: 15px;
    border: 2px solid #ff0000 !important;
}

.crack-btn.shattered {
    background: transparent !important;
    border-color: transparent !important;
}

.cart-crack-btn.shattered span {
    color: #ff0000;
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* ============ СКРОЛЛ ИНДИКАТОР ============ */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 28px;
    height: 46px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: #ff0000;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel-scroll 1.5s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

@keyframes wheel-scroll {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 28px;
        opacity: 0;
    }
}

/* ============ СЕКЦИЯ О НАС ============ */
.about-section {
    padding: 120px 20px;
    text-align: center;
    background: #000;
}

.section-title {
    font-size: 52px;
    font-weight: 900;
    color: #ff0000;
    letter-spacing: 6px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.about-text {
    font-size: 17px;
    color: rgba(255,255,255,0.75);
    max-width: 750px;
    margin: 0 auto;
    line-height: 2;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* ============ КАТАЛОГ ============ */
.catalog {
    padding: 120px 20px;
    background: #fff;
}

    .catalog .section-title {
        color: #000;
        text-align: center;
    }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 35px;
    margin-top: 70px;
}

/* ============ КАРТОЧКА ============ */
.product-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    will-change: transform;
}

    .product-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 25px 60px rgba(0,0,0,0.13);
    }

/* Бейдж */
.product-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    background: #ff0000;
    color: #fff;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    z-index: 10;
    text-transform: uppercase;
}

    .product-badge.hot {
        background: #000;
    }

/* Фото */
.product-image {
    width: 100%;
    height: 460px;
    overflow: hidden;
    position: relative;
    background: #f5f5f5;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: transform;
        display: block;
    }

.product-card:hover .product-image img {
    transform: scale(1.08);
}

/* Оверлей на фото */
.product-overlay {
    display: none !important;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

/* Инфо о товаре */
.product-info {
    padding: 22px 25px 25px;
}

.product-brand {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #999;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.product-name {
    font-size: 17px;
    font-weight: 600;
    color: #000;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.price {
    font-size: 22px;
    font-weight: 700;
    color: #ff0000;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* ============ ПРОМО БАННЕР ============ */
.promo-banner {
    padding: 110px 20px;
    background: #000;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .promo-banner::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 50%, rgba(255,0,0,0.08) 0%, transparent 60%), radial-gradient(circle at 80% 50%, rgba(255,0,0,0.08) 0%, transparent 60%);
    }

.promo-content {
    position: relative;
    z-index: 1;
}

    .promo-content h2 {
        font-size: 44px;
        color: #ff0000;
        font-weight: 900;
        letter-spacing: 4px;
        margin-bottom: 18px;
        text-transform: uppercase;
    }

    .promo-content p {
        font-size: 18px;
        color: rgba(255,255,255,0.7);
        margin-bottom: 45px;
        letter-spacing: 2px;
    }

/* ============ ФУТЕР ============ */
.footer {
    background: #0a0a0a;
    color: #fff;
    padding: 90px 20px 35px;
    border-top: 1px solid #1a1a1a;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 55px;
    margin-bottom: 60px;
}

/* Логотип в футере */
.footer-logo {
    margin-bottom: 22px;
}

    .footer-logo img {
        height: 200px; /* Размер — можешь крутить под себя (например, 100px или 140px) */
        width: auto;
        display: block;
        filter: invert(1) contrast(1.6); /* Делает штрихкод белым, а серый фон — чёрным */
        mix-blend-mode: screen; /* Полностью растворяет чёрный фон в футере */
        margin: -25px 0 -80px -40px; /* Срезает пустые поля вокруг штрихкода */
    }

        .footer-logo img:hover {
            opacity: 0.8;
        }

.footer-section p {
    color: rgba(255,255,255,0.45);
    line-height: 1.9;
    font-size: 14px;
}

.footer-section h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 22px;
}

.footer-section ul {
    list-style: none;
}

    .footer-section ul li {
        margin-bottom: 12px;
    }

        .footer-section ul li a {
            color: rgba(255,255,255,0.45);
            text-decoration: none;
            font-size: 14px;
            letter-spacing: 1px;
            transition: color 0.3s;
        }

            .footer-section ul li a:hover {
                color: #ff0000;
            }

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.social-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 12px;
    letter-spacing: 1px;
    transition: all 0.3s;
    text-transform: uppercase;
}

    .social-link:hover {
        background: #ff0000;
        border-color: #ff0000;
        color: #fff;
    }

.footer-bottom {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid #1a1a1a;
    color: rgba(255,255,255,0.25);
    font-size: 13px;
    letter-spacing: 1px;
}

/* ============ КНОПКА НАВЕРХ ============ */
.scroll-top {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 48px;
    height: 48px;
    background: #ff0000;
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .scroll-top.visible {
        opacity: 1;
        visibility: visible;
    }

    .scroll-top:hover {
        background: #000;
        transform: translateY(-4px);
    }

/* ============ МОБИЛЬНОЕ МЕНЮ ============ */
.menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px 40px;
    border-top: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 20px;
    z-index: 999;
}

/* ============ АДАПТИВ ============ */
@media (max-width: 1024px) {
    .glitch-interactive {
        font-size: 90px;
    }
}

@media (max-width: 768px) {
    .menu {
        display: none;
    }

    .burger {
        display: flex;
    }

    .glitch-interactive {
        font-size: 52px;
        letter-spacing: 6px;
    }

    .hero-subtitle {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 32px;
        letter-spacing: 3px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .nav {
        padding: 18px 20px;
    }

    .promo-content h2 {
        font-size: 28px;
    }

    .about-section {
        padding: 80px 20px;
    }

    .catalog {
        padding: 80px 20px;
    }

    .btn-hero-crack {
        padding: 15px 40px !important;
        font-size: 13px !important;
    }

    .product-image {
        height: 320px;
    }
}

@media (max-width: 480px) {
    .glitch-interactive {
        font-size: 38px;
        letter-spacing: 4px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}
/* ============ КНОПКА СМЕНЫ ТЕМЫ ============ */
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.25);
    color: #000000;
    width: 34px;
    height: 34px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

    .theme-toggle:hover {
        border-color: #ff0000;
        color: #ff0000;
    }

/* ============ ЧЕРНАЯ ТЕМА (ВКЛЮЧАЕТСЯ КНОПКОЙ) ============ */
body.dark-theme {
    background-color: #050505;
    color: #ffffff;
}

    body.dark-theme .theme-toggle {
        border-color: rgba(255, 255, 255, 0.25);
        color: #ffffff;
    }

        body.dark-theme .theme-toggle:hover {
            border-color: #ff0000;
            color: #ff0000;
        }

    body.dark-theme .header {
        background: rgba(10, 10, 10, 0.92);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

        body.dark-theme .header.scrolled {
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
        }

    body.dark-theme .menu a {
        color: #ffffff;
    }

    body.dark-theme .burger span {
        background: #ffffff;
    }

    body.dark-theme .menu.active {
        background: #0a0a0a;
        border-top: 1px solid #1f1f1f;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    }

    body.dark-theme .catalog {
        background: #050505;
    }

        body.dark-theme .catalog .section-title {
            color: #ffffff;
        }

    body.dark-theme .product-card {
        background: #0d0d0d;
        border: 1px solid #1f1f1f;
    }

        body.dark-theme .product-card:hover {
            border-color: rgba(255, 0, 0, 0.45);
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
        }

    body.dark-theme .product-image {
        background: #141414;
    }

    body.dark-theme .product-brand {
        color: #777777;
    }

    body.dark-theme .product-name {
        color: #ffffff;
    }

    body.dark-theme .cart-crack-btn {
        background: #ffffff;
        color: #000000;
        border: 2px solid #ffffff !important;
    }

    /* Обязательно прячем фон и белую рамку при разлете */
    body.dark-theme .crack-btn.shattered {
        background: transparent !important;
        border-color: transparent !important;
    }
    }

    body.dark-theme .scroll-top:hover {
        background: #ffffff;
        color: #000000;
    }

/* ============ ВЫДВИЖНАЯ КОРЗИНА (DRAWER) ============ */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

    .cart-overlay.open {
        opacity: 1;
        visibility: visible;
    }

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 440px;
    max-width: 100%;
    height: 100vh;
    background: #070707;
    color: #ffffff;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #1e1e1e;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.85);
}

    .cart-drawer.open {
        transform: translateX(0);
    }

/* Шапка корзины */
.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 25px 20px;
    border-bottom: 1px solid #1a1a1a;
}

.cart-drawer-title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

    .cart-drawer-title span {
        font-size: 12px;
        font-weight: 500;
        color: #888;
        margin-left: 8px;
        letter-spacing: 1.5px;
    }

.cart-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

    .cart-close:hover {
        color: #ff0000;
        transform: rotate(90deg);
    }

/* Шкала скидок */
.cart-discount-section {
    padding: 18px 25px 22px;
    border-bottom: 1px solid #1a1a1a;
    background: #0b0b0b;
}

.cart-discount-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 10px;
}

.cart-discount-current {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

    .cart-discount-current span {
        font-size: 26px;
        color: #ff0000;
        margin-right: 4px;
    }

.cart-discount-next {
    text-align: right;
    font-size: 12px;
    color: #ccc;
    line-height: 1.4;
}

    .cart-discount-next strong {
        color: #fff;
        font-size: 14px;
    }

    .cart-discount-next span {
        color: #ff0000;
        font-weight: 700;
    }

.cart-progress-wrap {
    position: relative;
    padding: 12px 0;
}

.cart-progress-bar {
    height: 4px;
    background: #242424;
    border-radius: 4px;
    overflow: hidden;
}

.cart-progress-fill {
    height: 100%;
    width: 0%;
    background: #ff0000;
    transition: width 0.4s ease;
}

.cart-progress-nodes {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2% 0 18%;
}

.progress-node {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #141414;
    border: 2px solid #2e2e2e;
    color: #666;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .progress-node.reached {
        background: #ff0000;
        border-color: #ff0000;
        color: #ffffff;
    }

    .progress-node.next {
        border-color: #ff0000;
        color: #ff0000;
    }

/* Тело корзины (скролл) */
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 25px;
}

    .cart-drawer-body::-webkit-scrollbar {
        width: 5px;
    }

    .cart-drawer-body::-webkit-scrollbar-thumb {
        background: #2a2a2a;
    }

.cart-empty {
    text-align: center;
    padding: 40px 10px;
    color: #666;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Товар в корзине */
.cart-item {
    display: flex;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #1a1a1a;
}

.cart-item-img {
    width: 82px;
    height: 98px;
    object-fit: cover;
    border: 1px solid #262626;
    border-radius: 4px;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.cart-item-price {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.cart-item-brand {
    font-size: 11px;
    color: #777;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 4px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
}

.qty-box {
    display: flex;
    align-items: center;
    border: 1px solid #2c2c2c;
    background: #111;
}

.qty-btn {
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

    .qty-btn:hover {
        background: #ff0000;
    }

.qty-value {
    min-width: 28px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.cart-remove-btn {
    background: transparent;
    border: none;
    color: #666;
    font-size: 15px;
    cursor: pointer;
    transition: color 0.2s;
}

    .cart-remove-btn:hover {
        color: #ff0000;
    }

/* Блок You May Also Like */
.cart-upsell {
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid #1a1a1a;
}

.upsell-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #888;
}

    .upsell-header small {
        color: #ff0000;
        margin-left: 6px;
    }

.upsell-arrows button {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #fff;
    width: 26px;
    height: 26px;
    font-size: 16px;
    cursor: pointer;
    margin-left: 4px;
    transition: border-color 0.2s, color 0.2s;
}

    .upsell-arrows button:hover {
        border-color: #ff0000;
        color: #ff0000;
    }

.upsell-card {
    display: flex;
    gap: 15px;
    background: #0f0f0f;
    border: 1px solid #1f1f1f;
    padding: 12px;
    border-radius: 4px;
}

.upsell-img {
    width: 90px;
    height: 115px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.upsell-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.upsell-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.upsell-tag {
    display: inline-block;
    background: #ff0000;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    letter-spacing: 1px;
    margin-bottom: 6px;
    width: fit-content;
}

.upsell-price {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.upsell-add-btn {
    width: 100%;
    padding: 9px 12px;
    background: #ff0000;
    color: #fff;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

    .upsell-add-btn:hover {
        background: #cc0000;
    }

/* Футер корзины */
.cart-drawer-footer {
    padding: 18px 25px 24px;
    border-top: 1px solid #1a1a1a;
    background: #0a0a0a;
}

.cart-promo-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #141414;
    border: 1px solid #222;
    padding: 10px 14px;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ff0000;
}

.cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #999;
}

    .cart-subtotal-row #cartSubtotal {
        font-size: 20px;
        font-weight: 900;
        color: #ffffff;
        letter-spacing: 0.5px;
    }

.cart-checkout-btn {
    width: 100%;
    padding: 16px;
    background: #ff0000;
    color: #ffffff;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
}

    .cart-checkout-btn:hover {
        background: #d60000;
    }

    .cart-checkout-btn:active {
        transform: scale(0.99);
    }
/* ============ ВЫПАДАЮЩЕЕ МЕНЮ CATALOG ============ */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.25s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: #ff0000;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 10px 0;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    /* Плавное появление */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

    /* Невидимый мостик, чтобы меню не закрывалось пока ведешь мышку вниз */
    .dropdown-menu::before {
        content: '';
        position: absolute;
        top: -16px;
        left: 0;
        width: 100%;
        height: 16px;
    }

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #000000;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .dropdown-menu a:hover {
        color: #ff0000;
        padding-left: 26px;
        background: rgba(255, 0, 0, 0.04);
    }

/* Темная тема для выпадающего меню */
body.dark-theme .dropdown-menu {
    background: #0d0d0d;
    border: 1px solid #222222;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}

    body.dark-theme .dropdown-menu a {
        color: #ffffff;
    }

        body.dark-theme .dropdown-menu a:hover {
            color: #ff0000;
            background: rgba(255, 0, 0, 0.08);
        }
/* ============ ВЫБОР РАЗМЕРА НА КАРТОЧКЕ ============ */
.size-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 14px;
}

.size-btn {
    min-width: 34px;
    padding: 5px 8px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: inherit;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .size-btn:hover {
        border-color: #ff0000;
        color: #ff0000;
    }

    .size-btn.active {
        background: #ff0000;
        border-color: #ff0000;
        color: #ffffff;
    }

body.dark-theme .size-btn {
    border-color: #333333;
    color: #cccccc;
}

    body.dark-theme .size-btn.active {
        background: #ff0000;
        border-color: #ff0000;
        color: #ffffff;
    }
/* Масштаб 80% по умолчанию на ПК */
@media (min-width: 769px) {
    html {
        zoom: 0.8;
    }
}
/* ============ МОДАЛКА ТОВАРА (QUICK VIEW) ============ */
.product-image,
.product-name {
    cursor: pointer;
}

.pm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    will-change: opacity;
}

    .pm-overlay.open {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease, visibility 0s linear 0s;
    }

.pm-box {
    position: relative;
    width: 100%;
    max-width: 920px;
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    color: #0a0a0a;
    border: 1px solid #e2e2e2;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    opacity: 0;
    transform: translateY(28px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    will-change: transform, opacity;
}

.pm-overlay.open .pm-box {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.pm-close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 10;
    background: transparent;
    border: none;
    color: inherit;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

    .pm-close:hover {
        color: #ff0000;
        transform: rotate(90deg);
    }

.pm-gallery {
    background: #f5f5f5;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pm-main-wrap {
    position: relative;
    width: 100%;
    height: 460px;
    background: #eaeaea;
    overflow: hidden;
}

    .pm-main-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.pm-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

    .pm-arrow:hover {
        background: #ff0000;
    }

.pm-prev {
    left: 10px;
}

.pm-next {
    right: 10px;
}

.pm-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.pm-thumb {
    width: 68px;
    height: 68px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s;
    flex-shrink: 0;
}

    .pm-thumb:hover,
    .pm-thumb.active {
        border-color: #ff0000;
        opacity: 1;
    }

.pm-details {
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
}

.pm-brand {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pm-name {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    line-height: 1.25;
}

.pm-price {
    font-size: 24px;
    font-weight: 900;
    color: #ff0000;
    margin-bottom: 22px;
}

.pm-specs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 0;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 18px;
}

.pm-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
}

    .pm-spec-row span {
        color: #777;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        font-size: 10px;
    }

    .pm-spec-row strong {
        text-align: right;
        font-weight: 700;
    }

.pm-desc {
    font-size: 13px;
    line-height: 1.65;
    color: #666;
    margin-bottom: 20px;
}

.pm-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.pm-size-block {
    margin-bottom: 22px;
}

.pm-add-btn {
    margin-top: auto;
    width: 100%;
    padding: 16px;
    background: #ff0000;
    color: #ffffff;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

    .pm-add-btn:hover {
        background: #d40000;
    }

/* Тёмная тема для модалки */
body.dark-theme .pm-box {
    background: #0d0d0d;
    color: #ffffff;
    border-color: #222222;
}

body.dark-theme .pm-gallery {
    background: #080808;
}

body.dark-theme .pm-main-wrap {
    background: #141414;
}

body.dark-theme .pm-specs {
    border-color: #222222;
}

body.dark-theme .pm-desc {
    color: #999999;
}

@media (max-width: 768px) {
    .pm-box {
        grid-template-columns: 1fr;
    }

    .pm-main-wrap {
        height: 320px;
    }

    .pm-details {
        padding: 24px 20px;
    }
}
/* ============ ПОИСК ПО КАТАЛОГУ ============ */
.search-bar {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    z-index: 998;
    padding: 0 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.25s ease, padding 0.25s ease;
}

    .search-bar.open {
        max-height: 80px;
        opacity: 1;
        padding: 12px 20px;
    }

.search-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 900px;
}

.search-bar input {
    flex: 1;
    padding: 11px 14px;
    background: #f5f5f5;
    border: 1px solid #dcdcdc;
    color: #000000;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    outline: none;
}

    .search-bar input:focus {
        border-color: #ff0000;
    }

.search-clear {
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid #dcdcdc;
    color: #000000;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

    .search-clear:hover {
        border-color: #ff0000;
        color: #ff0000;
    }

body.dark-theme .search-bar {
    background: rgba(10, 10, 10, 0.98);
    border-bottom-color: #222222;
}

    body.dark-theme .search-bar input {
        background: #141414;
        border-color: #2a2a2a;
        color: #ffffff;
    }

body.dark-theme .search-clear {
    border-color: #2a2a2a;
    color: #ffffff;
}

@media (max-width: 768px) {
    .search-bar {
        top: 66px;
    }
}
.search-reset {
    height: 38px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid #dcdcdc;
    color: #000000;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}

    .search-reset:hover {
        border-color: #ff0000;
        color: #ff0000;
    }

body.dark-theme .search-reset {
    border-color: #2a2a2a;
    color: #ffffff;
}

/* ============ МОБИЛЬНАЯ ВЕРСИЯ (ФИКСЫ) ============ */
@media (max-width: 768px) {
    /* Выпадающее меню CATALOG внутри бургера */
    .menu.active {
        top: 66px;
        padding: 20px 24px;
        max-height: calc(100vh - 66px);
        overflow-y: auto;
    }

    .nav-dropdown {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 8px;
        padding: 4px 0 4px 12px;
        box-shadow: none;
        border: none;
        border-left: 2px solid #ff0000;
        background: transparent !important;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

        .dropdown-menu::before {
            display: none;
        }

    /* Отключаем hover на мобилках, открываем только по классу .open */
    .nav-dropdown:hover .dropdown-menu {
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: flex;
    }

    .nav-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
        color: #ff0000;
    }

    .dropdown-menu a {
        padding: 8px 10px;
    }

    /* Компактная корзина на телефоне */
    .cart-drawer-header,
    .cart-discount-section,
    .cart-drawer-body,
    .cart-drawer-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    /* Чтобы цена и кнопка не ломали карточку на узких экранах */
    .product-info {
        padding: 18px 16px 20px;
    }

    .cart-crack-btn {
        min-width: 155px;
        font-size: 11px;
        padding: 11px 8px;
    }

    .price {
        font-size: 19px;
    }

    /* Поиск на узких экранах */
    .search-bar input {
        font-size: 12px;
        padding: 10px;
    }

    .search-reset {
        padding: 0 10px;
        font-size: 10px;
    }
}

/* ============ ФИКС ШИРИНЫ ЭКРАНА И КНОПКИ НАВЕРХ НА МОБИЛКАХ ============ */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

.hero,
.promo-banner,
.product-card {
    overflow: hidden;
}

@media (max-width: 768px) {
    .scroll-top {
        display: none !important;
    }

    .promo-content h2 {
        font-size: 22px;
        letter-spacing: 1.5px;
    }

    .nav {
        padding: 16px 20px;
    }
}

/* ============ ПЛАВНЫЕ АНИМАЦИИ МОБИЛЬНОГО МЕНЮ И БУРГЕРА ============ */
.burger span {
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, background-color 0.25s ease;
    transform-origin: center;
}

.burger.active span:nth-child(1),
body.dark-theme .burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background-color: #ff0000;
}

.burger.active span:nth-child(2),
body.dark-theme .burger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.burger.active span:nth-child(3),
body.dark-theme .burger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background-color: #ff0000;
}

@media (max-width: 768px) {
    /* Меню всегда в потоке, но скрыто через opacity + transform для плавного выезда */
    .menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 66px;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 20px 24px;
        border-top: 1px solid #eee;
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.14);
        gap: 20px;
        z-index: 999;
        max-height: calc(100vh - 66px);
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-16px);
        transition: opacity 0.28s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.3s;
    }

    body.dark-theme .menu {
        background: #0a0a0a;
        border-top: 1px solid #1f1f1f;
        box-shadow: 0 14px 35px rgba(0, 0, 0, 0.75);
    }

    .menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition: opacity 0.28s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
    }

    /* Поочерёдный выезд пунктов меню */
    .menu > li {
        opacity: 0;
        transform: translateX(-14px);
        transition: opacity 0.25s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .menu.active > li {
        opacity: 1;
        transform: translateX(0);
    }

        .menu.active > li:nth-child(1) {
            transition-delay: 0.04s;
        }

        .menu.active > li:nth-child(2) {
            transition-delay: 0.09s;
        }

        .menu.active > li:nth-child(3) {
            transition-delay: 0.14s;
        }

        .menu.active > li:nth-child(4) {
            transition-delay: 0.19s;
        }

    /* Плавное раскрытие категорий внутри CATALOG */
    .dropdown-menu,
    .nav-dropdown:hover .dropdown-menu {
        display: flex !important;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin-top: 0;
        padding: 0 0 0 12px;
        transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, margin-top 0.25s ease, padding 0.25s ease;
    }

    .nav-dropdown.open .dropdown-menu {
        max-height: 320px;
        opacity: 1;
        margin-top: 10px;
        padding: 4px 0 4px 12px;
    }
}
.footer-logo {
    margin-top: -70px; /* Чем больше минус (например -55px), тем выше поднимется весь блок */
}
