/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #111;
    color: #fff;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Видео */

#bg-video {
    position: static;
    top: 0;
    left: 0;
    width: 100vw;
    height: 75vh;
    object-fit: cover;
    z-index: -100;
    pointer-events: none; 
    user-select: none;
}

/* весь контент должен быть выше видео */
header, .container, section, footer {
    position: relative;
    z-index: 1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.container-contacts {
    width: 100%;
    margin: 0 auto;
    padding: 40px 0;
    background-color: #000000;
}

h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 2px;
    color: #fe7000; /* Красный рокерский акцент */
}

/* Шапка */
header {
    header {
    position: fixed;      /* Фиксируем шапку на экране */
    top: 0;               /* Прижимаем к самому верху */
    left: 0;              /* Растягиваем от левого края */
    width: 100%;          /* На всю ширину экрана */
    z-index: 1000;        /* Помещаем поверх всех остальных элементов сайта */
    
    /* Делаем фон слегка прозрачным и добавляем крутой эффект размытия */
    background: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(8px);      
    -webkit-backdrop-filter: blur(8px); /* Поддержка для Safari */
    
    border-bottom: 1px solid #111; /* Тонкая рокерская граница снизу */
    padding: 15px 0;
    transition: all 0.3s ease;     /* Плавность на всякий случай */
}
}

header .container {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: #fe7000;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav a:hover {
    color: #fe7000;
}

/* Главный баннер */
.hero-image {
    width: 100%;
    margin: 0;
    overflow: hidden;
    padding-top: 90px;
}



.hero-image img {
    width: 100%;
    height: 400px;
    display: block;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
}

/* Концерты */
.concerts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.concert-card {
    background-color: #222;
    padding: 20px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid #fe7000;
}

.concert-date {
    font-size: 1.2rem;
    font-weight: bold;
    color: #aaa;
}

.btn {
    display: inline-block;
    background-color: #fe7000;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #fe7000;
}

/* Стиль для кнопки покупки билетов */
.ticket-btn {
    display: inline-block;
    background-color: #fe7000; /* Твой фирменный оранжевый */
    color: #000; /* Черный текст для контраста */
    padding: 10px 20px;
    text-decoration: none; /* Убираем подчеркивание ссылки */
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase; /* Все буквы заглавные */
    transition: background-color 0.3s, transform 0.2s;
    text-align: center;
    margin-top: 10px;
}

/* Эффект при наведении курсора */
.ticket-btn:hover {
    background-color: #ff9a3d; /* Чуть светлее при наведении */
    transform: scale(1.05); /* Легкое увеличение */
}

/* Стиль для кнопки, если билетов еще нет в продаже */
.ticket-btn.disabled {
    background-color: #333;
    color: #777;
    cursor: not-allowed;
    transform: none;
}


/* Музыка */

/* --- СЕКЦИЯ МУЗЫКА НА INDEX.HTML --- */
.music-section {
    background-color: #0b0b0b;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.music-section .section-title {
    font-size: 2.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fe7000;
    margin-bottom: 10px;
}

.music-section .section-subtitle {
    font-size: 1.05rem;
    color: #888;
    margin-bottom: 40px;
}

/* Сетка кнопок */
.streaming-platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

/* Общий стиль кнопки */
.stream-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #141414;
    border: 1px solid #222;
    padding: 14px 24px;
    border-radius: 30px;
    color: #aaa;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: 190px;
}

/* Размер SVG иконок */
.stream-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

/* Эффекты при наведении курсора */
.stream-btn:hover {
    transform: translateY(-3px);
    color: #fff;
}

.stream-btn:hover svg {
    transform: scale(1.15);
}

/* Фирменные цвета при ховере */
.stream-btn.yandex-music:hover {
    background: #ffdb4d;
    border-color: #ffdb4d;
    color: #000;
    box-shadow: 0 5px 15px rgba(255, 219, 77, 0.3);
}

.stream-btn.vk-music:hover {
    background: #0077ff;
    border-color: #0077ff;
    box-shadow: 0 5px 15px rgba(0, 119, 255, 0.3);
}

.stream-btn.spotify:hover {
    background: #1ed760;
    border-color: #1ed760;
    color: #000;
    box-shadow: 0 5px 15px rgba(30, 215, 96, 0.3);
}

.stream-btn.apple-music:hover {
    background: #fc3c44;
    border-color: #fc3c44;
    box-shadow: 0 5px 15px rgba(252, 60, 68, 0.3);
}

.stream-btn.youtube-music:hover {
    background: #ff0000;
    border-color: #ff0000;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.stream-btn.sber-zvuk:hover {
    background: #24d07b;
    border-color: #24d07b;
    color: #000;
    box-shadow: 0 5px 15px rgba(36, 208, 123, 0.3);
}


.stream-btn.kion-music:hover {
    background: #8c00ff; /* Фирменный красный МТС / KION */
    border-color: #8c00ff;
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 0, 43, 0.4);
}

/* Мерч */

/* Сетка мерча */
.products-grid {
    display: grid;
    /* Создает 4 колонки одинаковой ширины (1fr) */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; /* Отступы между карточками по горизонтали и вертикали */
    width: 100%;
    margin-top: 20px;
    transition: all 0.4s ease;
}

.product-card {
    background: #1a1a1a;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 15px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column; /* Элементы внутри карточки идут сверху вниз */
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: #fe7000;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-card .price {
    font-size: 1.3rem;
    color: #fe7000;
    font-weight: bold;
    margin-bottom: 15px;
}


/* Если сетка свернута, скрываем все элементы с 5-го и далее */
.products-grid.collapsed .product-card:nth-child(n+5) {
    display: none !important;
}

/* Контейнер для кнопки раскрытия */
.merch-expand-container {
    text-align: center;
    margin-top: 30px;
}

/* Рокерская кнопка со стрелкой */
#expandBtn {
    background: transparent;
    color: #fe7000;
    border: 2px solid #fe7000;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#expandBtn:hover {
    background: #fe7000;
    color: #000;
    box-shadow: 0 0 15px rgba(254, 112, 0, 0.4);
}

/* Изначально поворачиваем стрелку вниз */
#expandBtn .btn-arrow {
    display: inline-block;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

/* Когда список раскрыт, разворачиваем стрелку вверх */
#expandBtn.open .btn-arrow {
    transform: rotate(-90deg);
}


/* Контакты */

.contacts {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
    text-align: center;
}

.contacts a{
    color: #fe7000;
    text-decoration: none;
    transition: color 0.3s;
}

/* Кнопки соц сетей и тд */
footer {
    background-color: #000000;
    text-align: center;
    padding: 30px 0;
    color: #666;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-content p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.privacy-link {
    color: #999;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    border-bottom: 1px dashed #444;
    padding-bottom: 2px;
}

.privacy-link:hover {
    color: #fe7000; /* Подсветка фирменным оранжевым при наведении */
    border-bottom-color: #fe7000;
}

.social-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}


/* Стили product.html*/

.product-page-main {
    padding-top: 120px; /* Отступ сверху, чтобы шапка не перекрывала контент */
    min-height: 80vh;
}

/* Контейнер карусели */
.product-carousel {
    flex: 1;             /* Занимает ровно половину (или пропорционально) пространства */
    max-width: 500px;    /* Чтобы фотка не раздувалась на ультрашироких мониторах */
    width: 100%;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #333;
    aspect-ratio: 1 / 1; /* Делаем карусель квадратной */
}

/* Обертка слайдов */
.carousel-slides {
    width: 100%;
    height: 100%;
}

/* Базовый стиль для каждого слайда */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, visibility 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Класс для активного слайда */
.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Адаптивность медиа внутри слайдов */
.carousel-slide video,
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    background-color: #000;
}

.product-info {
    flex: 1;             /* Занимает оставшуюся половину экрана справа */
    display: flex;
    flex-direction: column; /* Элементы внутри колонки идут строго сверху вниз */
    color: #fff;
}

.product-info h1 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.product-info .price {
    font-size: 2rem;
    color: #fe7000;      /* Твой фирменный оранжевый рокерский цвет */
    font-weight: bold;
    margin-bottom: 25px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

/* Блок описания */
.description-block {
    margin-bottom: 30px;
}

.description-block h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.description-block p {
    color: #ccc;
    font-size: 1.05rem;
    line-height: 1.6;
}


/* Контейнер для выбора размеров */
.size-select-box {
    margin-bottom: 25px;
}

.size-select-box label {
    display: block;
    
    font-weight: bold;
}

.size-title {
    display: block;

    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    color: #fff; /* Или используйте ваш основной цвет текста */
}

/* Сетка для вариантов размера */
.size-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.size-option {
    position: relative;
}

/* Полностью скрываем стандартный радио-кружок */
.size-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Стилизация текстовой метки под кнопку */
.size-option label {
    display: inline-block;
    min-width: 45px;
    height: 45px;
    padding: 0 8px;
    line-height: 43px; /* Выравнивание текста по вертикали */
    text-align: center;
    border: 2px solid #555;
    background-color: transparent;
    color: #fff;
    font-weight: bold;
    font-size: 11pt;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

/* Эффект при наведении на размер */
.size-option label:hover {
    border-color: #fe7000; /* Ваш фирменный яркий рок-цвет (например, красный/неоновый) */
    color: #fe7000;
}

/* Стили для ВЫБРАННОГО размера (когда radio в состоянии :checked) */
.size-option input[type="radio"]:checked + label {
    background-color: #fe7000; /* Заливка выбранной кнопкой */
    border-color: #fe7000;
    color: #000; /* Цвет текста внутри активной кнопки (черный для контраста) */
    box-shadow: 0 0 12px #fe7000; /* Легкое рокерское свечение */
}

.purchase-form {
    background: #111;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    margin-bottom: 25px;
}


/* Рокерская кнопка добавления в корзину */
.buy-btn {
    width: 100%;
    padding: 15px;
    background: #fe7000;
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.buy-btn:hover {
    background: #ff8522;
    box-shadow: 0 0 20px rgba(254, 112, 0, 0.4);
    transform: translateY(-2px);
}

/* Ссылка возврата назад */
.back-link {
    color: #888;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    align-self: flex-start; /* Чтобы ссылка не растягивалась на всю ширину */
}

.back-link:hover {
    color: #fe7000;
}


/* Стрелки навигации */
.carousel-btn {
    position: absolute;
    top: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(254, 112, 0, 0.3); /* Оранжевая рок-рамка */
    font-size: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    user-select: none;
    z-index: 10;
}

.carousel-btn:hover {
    background: #fe7000; /* Фирменный оранжевый при наведении */
    color: #000;
    box-shadow: 0 0 15px rgba(254, 112, 0, 0.6);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* Индикаторы (точки) */
.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #fe7000;
    transform: scale(1.2);
}



.product-detail-container {
    display: flex;
    flex-direction: row; /* Выстраиваем колонки горизонтально */
    gap: 50px;           /* Расстояние между колонкой фото и колонкой текста */
    align-items: flex-start; /* Прижимаем блоки к верху */
    background: #1a1a1a; /* Темный бэкграунд для карточки */
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #222;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.product-detail-img {
    flex: 1;
    text-align: center;
}

.product-detail-img img {
    max-width: 100%;
    max-height: 450px;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.product-detail-info {
    flex: 1;
}

.product-detail-info h2 {
    text-align: left;
    margin-bottom: 15px;
}

.product-detail-price {
    font-size: 1.8rem;
    color: #fe7000;
    font-weight: bold;
    margin-bottom: 25px;
}

.product-description h3 {
    color: #fe7000;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.product-description p {
    color: #bbb;
    margin-bottom: 25px;
}




.form-submit-btn {
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 250px;
    display: block;
}

.product-link {
    text-decoration: none;
    color: inherit;
}

.remove-btn{
    color: #fe7000; /* Черный текст для контраста */
    padding: 5px 5px;
    text-decoration: none; /* Убираем подчеркивание ссылки */
    text-transform: uppercase; /* Все буквы заглавные */
    transition: background-color 0.3s, transform 0.2s;
}

/* Стили для формы оформления заказа */
.checkout-section {
    margin-top: 50px;
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #222;
}

.checkout-title {
    font-size: 1.8rem;
    color: #fe7000;
    margin-bottom: 25px;
    text-transform: uppercase;
    text-align: left;
    letter-spacing: 1px;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.form-group label {
    font-weight: bold;
    font-size: 0.95rem;
    color: #ccc;
}

.form-group .required {
    color: #fe7000;
}

.form-group input, 
.form-group textarea {
    background-color: #0d0d0d;
    border: 1px solid #333;
    color: #fff;
    padding: 12px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #fe7000;
    box-shadow: 0 0 5px rgba(254, 112, 0, 0.5);
}

/* Кнопка оформления заказа */
.btn-submit-order {
    background-color: #fe7000;
    color: #000;
    border: none;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    margin-top: 10px;
    align-self: flex-start;
}

.btn-submit-order:hover {
    background-color: #ff9a3d;
}

.btn-submit-order:active {
    transform: scale(0.98);
}

        .cart-container { gap: 40px; margin-top: 40px; }
        .cart-table { width: 100%; border-collapse: collapse; }
        .cart-table th, .cart-table td { padding: 15px; text-align: left; border-bottom: 1px solid #333; }
        .checkout-form { background: #222; padding: 20px; border-radius: 5px; border-top: 4px solid #fe7000; }
        .form-group { margin-bottom: 15px; }
        .form-group label { display: block; margin-bottom: 5px; color: #aaa; }
        .form-group input { width: 100%; padding: 10px; background: #111; border: 1px solid #404040; color: #fff; border-radius: 3px; }
        .remove-link { color: #ff3333; text-decoration: none; font-size: 0.9rem; }

.no-concerts p {
    text-align: center;
    font-size: 1.2rem;
    color: #ccc;
    font-style: italic;
    line-height: 1.6;
}



/* Адаптивность для мобилок */
@media (max-width: 402px) {
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    .btn-submit-order {
        width: 100%;
    }
    .stream-btn {
        width: 100%; /* На мобильных кнопки встают в полную ширину */
    }
    .concert-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* --- СТИЛИ ДЛЯ КНОПКИ НА ПК (СКРЫТА) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002; /* Кнопка должна быть выше оверлея */
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #fff; /* Белые рокерские полоски */
    border-radius: 3px;
    transition: all 0.3s ease;
}




/* ==========================================================================
   ПОЛНЫЙ БРОНЕБОЙНЫЙ АДАПТИВ ДЛЯ СМАРТФОНОВ (ЭКРАНЫ МЕНЬШЕ 768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* --- 1. ШАПКА И БУРГЕР-МЕНЮ --- */
    header .container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 15px 5% !important;
        width: 100% !important;
    }

    .menu-toggle {
        display: flex !important;
    }

    header nav.nav-menu {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: rgba(17, 17, 17, 0.98) !important;
        z-index: 1001 !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 25px !important;
    }

    header nav.nav-menu.active {
        display: flex !important;
    }

    header nav.nav-menu a {
        font-size: 22px !important;
        color: #fff !important;
        text-transform: uppercase !important;
        font-weight: bold !important;
    }


    /* --- 2. ГЛАВНАЯ СТРАНИЦА: СЕТКА МЕРЧА (ИСПРАВЛЕНИЕ ОБРЕЗАНИЯ) --- */
    /* Сбрасываем фиксированную высоту и overflow, которые прятали карточки */
    main section .products-grid,
    .products-grid, 
    .products-grid.collapsed {
        display: flex !important;
        flex-direction: column !important; /* Карточки строго друг под другом */
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .products-grid.collapsed .product-card:nth-child(n+3) {
    display: none !important;
}

    /* Настраиваем сами карточки мерча на мобильных */
    .merch-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
    }


    /* --- 3. СТРАНИЦА ТОВАРА (PRODUCT.HTML) --- */
    /* Главный контейнер деталей товара */
    .product-detail-container {
        display: flex !important;
        flex-direction: column !important; /* Левая и правая часть встают в один ряд сверху вниз */
        align-items: stretch !important;
        gap: 25px !important;
        padding: 15px !important;
        margin-top: 10px !important;
    }

    /* Левый блок: Карусель картинок/видео */
    .product-images {
        width: 100% !important;
        max-width: 100% !important;
    }

    .product-carousel {
        height: auto !important;
        max-height: 380px !important;
        aspect-ratio: 1 / 1 !important; /* Идеальный квадрат для мобилок */
    }

    .carousel-slide img,
    .carousel-slide video {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important; /* Убирает искажения, контент красиво вписывается */
    }

    /* Правый блок: Название, цена, размеры, кнопка */
    .product-info {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 5px !important;
        text-align: center !important;
    }

    .product-info h2 {
        font-size: 24px !important;
        margin-bottom: 10px !important;
    }

    .price {
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }

    /* Сетка выбора размеров */
    .size-options {
        display: flex !important;
        flex-wrap: wrap !important; /* Разрешаем перенос кнопок на новую строку */
        gap: 10px !important;
        margin-bottom: 25px !important;
    }

    /* Превращаем текстовые label размеров в большие удобные кнопки */
    .size-options label {
        flex: 1 1 calc(25% - 10px) !important;
        min-width: 55px !important;
        
        font-size: 16px !important;
        text-align: center !important;
        border: 1px solid #444 !important;
        box-sizing: border-box !important;
    }

    /* Кнопка "Добавить в корзину" */
    .product-info .btn {
        display: block !important;
        width: 100% !important; /* Растягиваем на всю ширину дисплея */
        padding: 16px !important;
        font-size: 18px !important;
        font-weight: bold !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
    .cart-container {
                grid-template-columns: 1fr !important;
                gap: 30px !important;
                margin-top: 20px !important;
                padding: 0 10px !important;
            }

            /* Превращаем громоздкую таблицу в карточки товаров */
            .cart-table {
                display: block !important;
                width: 100% !important;
            }

            /* Скрываем стандартную шапку таблицы (на телефонах заголовки колонок не нужны) */
            .cart-table thead {
                display: none !important;
            }

            .cart-table tbody {
                display: block !important;
                width: 100% !important;
            }

            /* Каждая строка товара становится отдельным блоком-карточкой */
            .cart-table tr {
                display: block !important;
                background: #1c1c1c !important;
                margin-bottom: 15px !important;
                padding: 15px !important;
                border-radius: 6px !important;
                border: 1px solid #333 !important;
            }

            /* Делаем ячейки строки блочными элементами, чтобы они красиво ложились друг под друга */
            .cart-table td {
                display: block !important;
                width: 100% !important;
                padding: 6px 0 !important;
                border-bottom: none !important;
                font-size: 16px !important;
            }

            /* Добавляем текстовые маркеры перед данными, чтобы пользователь понимал, где что */
            .cart-table td:nth-child(1)::before {
                content: "Товар: ";
                color: #fe7000;
                font-weight: bold;
            }

            .cart-table td:nth-child(2)::before {
                content: "Цена: ";
                color: #aaa;
            }

            .cart-table td:nth-child(3)::before {
                content: "Размер: ";
                color: #aaa;
            }

            /* Особый стиль для ссылки "Удалить" */
            .cart-table td:last-child {
                text-align: right !important;
                margin-top: 10px !important;
                padding-top: 10px !important;
                border-top: 1px dashed #333 !important;
            }

            .remove-link {
                display: inline-block !important;
                background-color: rgba(255, 51, 51, 0.1) !important;
                padding: 8px 14px !important;
                border-radius: 4px !important;
                border: 1px solid #ff3333 !important;
            }

            /* Делаем форму оформления заказа удобной для ввода на сенсорном экране */
            .checkout-form {
                padding: 20px 15px !important;
                margin-bottom: 40px !important; /* Отступ снизу страницы */
            }

            .checkout-form h3 {
                font-size: 20px !important;
                margin-bottom: 15px !important;
            }

            /* Увеличиваем высоту инпутов и текстовых полей для удобных тапов пальцем */
            .form-group input,
            .form-group textarea,
            .form-control {
                padding: 12px !important;
                font-size: 16px !important;
            }

            /* Кнопка отправки заказа во всю ширину */
            .checkout-form .btn-success {
                display: block !important;
                width: 100% !important;
                padding: 15px !important;
                font-size: 18px !important;
                font-weight: bold !important;
            }
            .concert-card {
                flex-direction: column;
                text-align: center;
                gap: 15px;
            }
            #mobile-menu-btn.menu-toggle {
                position: relative !important;
                z-index: 1005 !important; /* Ставим слой выше, чем у видео и шапки */
                cursor: pointer !important;
                pointer-events: auto !important; /* Разрешаем клики */
            }

            /* Поднимаем само выпадающее меню, чтобы оно перекрывало страницу при открытии */
            header nav.nav-menu {
                z-index: 1004 !important;
            }
            
            /* Убедимся, что при добавлении класса active меню точно показывается */
            header nav.nav-menu.active {
                display: flex !important;
            }
            header nav.nav-menu, 
    nav.nav-menu {
        display: none !important; /* Изначально скрыто */
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: rgba(17, 17, 17, 0.98) !important; /* Плотный темный фон */
        z-index: 1004 !important; /* Чуть ниже кнопки, но выше сайта */
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 25px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 🔥 ЭТОТ КЛАСС ДОБАВЛЯЕТ JS ПРИ КЛИКЕ — ПОКАЗЫВАЕМ МЕНЮ */
    header nav.nav-menu.active,
    nav.nav-menu.active {
        display: flex !important;
    }

    /* Ссылки внутри мобильного меню */
    header nav.nav-menu a,
    nav.nav-menu a {
        font-size: 24px !important;
        color: #fff !important;
        text-transform: uppercase !important;
        font-weight: bold !important;
        text-decoration: none !important;
        display: block !important;
        padding: 10px 20px !important;
    }

    /* Подсветка активной ссылки или корзины */
    nav.nav-menu a.cart-btn-nav {
        color: #fe7000 !important; /* Выделяем корзину оранжевым */
    }

    /* АНИМАЦИЯ БУРГЕРА: Превращаем полоски в крестик (X) при открытии */
    .menu-toggle.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg) !important;
    }
    .menu-toggle.open span:nth-child(2) {
        opacity: 0 !important; /* Прячем среднюю полоску */
    }
    .menu-toggle.open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg) !important;
    }
    /* 🔥 ПОЛНАЯ ИЗОЛЯЦИЯ МЕНЮ НАД КОНТЕНТОМ СТРАНИЦЫ: */
    header nav.nav-menu, 
    nav.nav-menu {
        display: none !important; /* Изначально скрыто, пока нет класса .active */
        position: fixed !important; /* Фиксируем на одном месте относительно экрана */
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important; /* Растягиваем на всю ширину телефона */
        height: 100vh !important; /* Растягиваем на всю высоту телефона */
        background-color: rgba(17, 17, 17, 0.98) !important; /* Плотный темный фон, чтобы картинки не просвечивали */
        
        /* КРИТИЧЕСКИЙ ПАРАМЕТР: ставим слой выше, чем у слайдеров, картинок и видео */
        z-index: 99999 !important; 
        
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 30px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Когда JavaScript добавляет класс active, меню принудительно встает поверх всего */
    header nav.nav-menu.active,
    nav.nav-menu.active {
        display: flex !important;
    }

    /* Убедимся, что ссылки внутри меню тоже доступны для кликов и хорошо видны */
    header nav.nav-menu a,
    nav.nav-menu a {
        font-size: 24px !important;
        color: #ffffff !important;
        text-transform: uppercase !important;
        font-weight: bold !important;
        text-decoration: none !important;
        position: relative !important;
        z-index: 100000 !important; /* Слой самих ссылок внутри меню */
        padding: 10px 20px !important;
    }

    /* Кнопку-бургер тоже поднимаем на самый верх, чтобы она была доступна для закрытия (крестик) */
    .menu-toggle {
        z-index: 100001 !important; 
    }
    @media (max-width: 768px) {
    /* 1. Выстраиваем шапку в один ряд: Логотип слева, Бургер справа */
    header .container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 15px 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 2. Принудительно показываем кнопку-бургер и делаем её кликабельной */
    #mobile-menu-btn.menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 30px !important;
        height: 22px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0 !important;
        position: relative !important;
        z-index: 999999 !important; /* Выше абсолютно всего на странице */
    }

    #mobile-menu-btn.menu-toggle span {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        background-color: #ffffff !important;
        border-radius: 2px !important;
        transition: transform 0.3s ease, opacity 0.3s ease !important;
    }

    /* Анимация превращения бургера в крестик при открытии */
    #mobile-menu-btn.menu-toggle.open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg) !important;
    }
    #mobile-menu-btn.menu-toggle.open span:nth-child(2) {
        opacity: 0 !important;
    }
    #mobile-menu-btn.menu-toggle.open span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg) !important;
    }

    /* 3. Превращаем nav-menu в полноэкранное темное оверлей-меню */
    #nav-menu.nav-menu {
        display: none !important; /* Изначально скрыто */
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: rgba(10, 10, 10, 0.98) !important; /* Полностью непрозрачный темный рок-фон */
        z-index: 999998 !important; /* Строго под кнопкой-крестиком, но НАД фотками мерча */
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 30px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 4. Класс, который навешивает JS — принудительно включает флекс-режим */
    #nav-menu.nav-menu.active {
        display: flex !important;
    }

    /* Ссылки внутри открытого мобильного меню */
    #nav-menu.nav-menu a {
        font-size: 24px !important;
        color: #ffffff !important;
        text-decoration: none !important;
        text-transform: uppercase !important;
        font-weight: bold !important;
        letter-spacing: 1px !important;
        padding: 10px 20px !important;
        width: auto !important;
        text-align: center !important;
    }

    #nav-menu.nav-menu a:hover {
        color: #fe7000 !important;
    }
}
}
