@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Tektur:wght@400;500;700;900&display=swap');

:root {
    --red: #ff0000;
    --black: #050505;
    --gray: #121212;
    --white: #ffffff;
    --red-glow: rgba(255, 0, 0, 0.6);
    --font-accent: 'Russo One', sans-serif;
    --font-main: 'Tektur', sans-serif;
}

body { background: var(--black); color: var(--white); font-family: var(--font-main); text-transform: uppercase; margin: 0; overflow-x: hidden; scroll-behavior: smooth; }
.hidden { display: none !important; }

/* 🔥 ПРЕЛОАДЕР (ТАХОМЕТР) 🔥 */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 99999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: opacity 0.5s ease;
}
.gauge-container { position: relative; width: 150px; height: 150px; }
.gauge-body {
    width: 100%; height: 100%; border: 4px solid #333; border-radius: 50%;
    position: relative; background: radial-gradient(circle, #1a1a1a 60%, #000 100%);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.2);
}
.gauge-redline {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%; border: 4px solid transparent;
    border-top-color: var(--red); border-right-color: var(--red);
    transform: rotate(45deg); opacity: 0.8;
}
.gauge-center {
    position: absolute; top: 50%; left: 50%; width: 14px; height: 14px;
    background: #555; border-radius: 50%; transform: translate(-50%, -50%);
    z-index: 10; box-shadow: 0 0 5px black;
}
.needle {
    position: absolute; top: 50%; left: 50%; width: 60px; height: 4px;
    background: var(--red); transform-origin: 0% 50%;
    transform: rotate(-130deg); z-index: 5; border-radius: 2px;
    box-shadow: 0 0 10px var(--red);
    animation: revEngine 2s ease-out forwards;
}
.loading-text {
    margin-top: 20px; font-family: var(--font-accent); color: white;
    letter-spacing: 2px; font-size: 1.2em;
    animation: blinkText 0.5s infinite alternate;
}
@keyframes revEngine {
    0% { transform: rotate(-130deg); }
    30% { transform: rotate(-20deg); }
    40% { transform: rotate(-40deg); }
    100% { transform: rotate(140deg); }
}
@keyframes blinkText { from { opacity: 0.5; } to { opacity: 1; text-shadow: 0 0 10px var(--red); } }

/* ВІДЕО ФОН */
.hero-section { height: 65vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: 0.6; }
.hero-overlay { position: absolute; width:100%; height:100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2), var(--black)); z-index: 2; }
.hero-content { position: relative; z-index: 5; width: 100%; padding: 0 10px; }
.hero-btns { display: flex; gap: 15px; justify-content: center; padding: 20px; flex-wrap: wrap; }
.hero-title { font-family: var(--font-accent); font-size: 3.5em; margin: 0; text-shadow: 0 0 30px black; word-wrap: break-word; }
.hero-title span { color: var(--red); text-shadow: 0 0 20px var(--red); }

/* ІВЕНТ ТАЙМЕР */
#event-timer { font-family: var(--font-accent); font-size: 3em; color: var(--red); text-shadow: 0 0 20px var(--red); margin: 10px 0; }

/* ПАРТНЕРИ */
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; padding: 20px; }
.partner-card { background: #111; border: 1px solid #333; padding: 30px; text-align: center; transition: 0.3s; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; }
.partner-card:hover { border-color: var(--red); transform: translateY(-5px); }
.partner-logo { width: 100px; height: 100px; object-fit: contain; margin-bottom: 15px; } 
.partner-card i { font-size: 3em; color: var(--red); margin-bottom: 15px; }
.partner-card h3 { margin: 10px 0 5px; color: white; }
.partner-card p { color: #888; font-size: 0.8em; margin: 0; }

/* ЗАГАЛЬНІ СТИЛІ */
.product-gallery { width: 100%; height: 400px; background: #000; position: relative; overflow: hidden; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 0.5s ease; }
.product-gallery:hover img { transform: scale(1.08); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; padding: 20px; max-width: 1400px; margin: 0 auto; }
.card { background: var(--gray); border: 1px solid #222; position: relative; transition: all 0.3s ease; display: flex; flex-direction: column; }
.card:hover { border-color: var(--red); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(255, 0, 0, 0.15); }
.card-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.price { color: var(--red); font-family: var(--font-accent); font-size: 1.8em; margin: 15px 0; display: block; }
.btn-action { background: var(--red); color: white; border: none; padding: 18px; width: 100%; font-family: var(--font-accent); font-weight: bold; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%); margin-top: 10px; font-size: 0.9em; text-align: center; }
.btn-action:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 0 20px var(--red-glow); background: #ff1a1a; }
.btn-alt-border { background: rgba(0,0,0,0.6) !important; border: 2px solid white !important; backdrop-filter: blur(5px); }
.btn-alt-border:hover { border-color: var(--red) !important; color: var(--red) !important; box-shadow: 0 0 15px var(--red-glow); }

/* HEADER & NAV */
.main-header { display: flex; justify-content: center; align-items: center; padding: 20px 0; background: var(--black); margin-bottom: 20px; }
.logo { font-family: var(--font-accent); color: white; letter-spacing: 2px; font-size: 2.5em; }
.logo span { color: var(--red); }

/* 🔥 ВИПРАВЛЕНА НАВІГАЦІЯ ДЛЯ МОБІЛЬНИХ 🔥 */
.nav-bar { 
    display: flex; 
    justify-content: center; 
    background: rgba(0,0,0,0.95); 
    padding: 15px 0 3px; /* Прибрали бокові відступи, щоб скрол був на всю ширину */
    border-bottom: 2px solid var(--red); 
    position: sticky; top: 0; z-index: 1000; 
    backdrop-filter: blur(10px); 
    overflow-x: auto; /* Дозволяє скрол всієї панелі */
}
.nav-scroll { 
    display: flex; 
    gap: 15px; 
    align-items: center;
    overflow-x: auto; /* Горизонтальний скрол */
    white-space: nowrap; /* ЗАБОРОНА ПЕРЕНОСУ РЯДКІВ */
    padding: 0 20px 12px; /* відступ щоб скролбар не наліз на підкреслення */
    width: 100%; /* На всю ширину */
    /* Вирівнювання: на ПК по центру, на мобільному зліва */
    justify-content: center; 
}
/* Ховаємо скролбар для краси */
.nav-scroll::-webkit-scrollbar { height: 0px; background: transparent; }

.nav-bar a { 
    color: #888; 
    text-decoration: none; 
    font-family: var(--font-accent); 
    cursor: pointer; 
    font-size: 0.9em; 
    transition: 0.3s; 
    padding: 5px 10px; 
    display: inline-block; 
}
.nav-bar a:hover { color: white; text-shadow: 0 0 10px var(--red); }
.nav-bar a.active { color: white; border-bottom: 2px solid var(--red); }
.nav-divider { color: #333; font-weight: bold; margin: 0 5px; }

/* UI */
.input-row { display: flex; gap: 10px; }
.admin-tabs { display: flex; gap: 5px; padding: 15px 20px 0; overflow-x: auto; }
.btn-tab { flex: 1; background: #1a1a1a; color: #666; padding: 12px; border: none; border-bottom: 3px solid transparent; font-family: var(--font-accent); cursor: pointer; font-size: 0.8em; transition: 0.3s; min-width: 100px; }
.btn-tab:hover { background: #222; color: white; }
.btn-tab.active { color: var(--red); border-bottom-color: var(--red); background: #250505; }
.admin-size-box { background: #080808; padding: 15px; border: 1px solid #333; margin: 15px 0; text-align: left; }
.size-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0; }
.size-grid label { display: flex; align-items: center; gap: 10px; background: #111; padding: 10px; border: 1px solid #222; cursor: pointer; font-size: 0.9em; }
.size-grid label:hover { border-color: var(--red); color: white; }
.one-size-label { display: flex; align-items: center; gap: 10px; margin-top: 15px; cursor: pointer; font-weight: bold; color: var(--red); }

input, select, textarea { width: 100%; padding: 14px; margin: 8px 0; background: #080808; border: 1px solid #333; color: white; font-family: var(--font-main); box-sizing: border-box; font-size: 1em; transition: 0.3s; }
input:focus, textarea:focus, select:focus { border-color: var(--red); outline: none; box-shadow: 0 0 10px rgba(255, 0, 0, 0.3); }

.modal { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--gray); border: 1px solid var(--red); z-index: 2000; width: 90%; max-width: 450px; max-height: 90vh; overflow-y: auto; box-shadow: 0 0 50px #000; animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.modal-large { max-width: 700px; }
.modal-header { background: linear-gradient(90deg, var(--red), #000); padding: 15px 20px; font-family: var(--font-accent); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 200; }
.overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 1500; backdrop-filter: blur(8px); transition: opacity 0.3s; }
.cart-status { position: fixed; bottom: 30px; right: 30px; background: var(--red); width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1001; box-shadow: 0 0 20px var(--red); border: 2px solid white; animation: pulseRed 2s infinite; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--red); color: white; padding: 15px 30px; border-radius: 5px; z-index: 3000; font-family: var(--font-accent); box-shadow: 0 5px 20px black; animation: slideUpFade 0.3s ease-out; }
.search-wrapper { position: relative; margin-bottom: 15px; z-index: 50; }
.dropdown-list { position: absolute; top: 100%; left: 0; right: 0; background: #111; border: 1px solid var(--red); max-height: 250px; overflow-y: auto; z-index: 10000; display: none; box-shadow: 0 10px 30px rgba(0,0,0,0.9); }
.dropdown-item { padding: 15px; font-size: 0.9em; cursor: pointer; border-bottom: 1px solid #222; color: #fff; transition: 0.2s; background: #111; }
.dropdown-item:hover { background: var(--red); color: white; }
.section-label { margin: 0 0 10px 0; color: #666; font-size: 0.8em; font-weight: bold; }
.custom-checkbox { display: flex; align-items: center; gap: 10px; margin-top: 10px; cursor: pointer; font-size: 0.85em; color: #ccc; }
.custom-checkbox input { width: 20px; height: 20px; margin: 0; accent-color: var(--red); cursor: pointer; }
#cart-content::-webkit-scrollbar, .dropdown-list::-webkit-scrollbar { width: 6px; }
#cart-content::-webkit-scrollbar-thumb, .dropdown-list::-webkit-scrollbar-thumb { background: var(--red); }
.social-grid { display: flex; justify-content: center; gap: 15px; padding: 40px 20px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.social-card { flex: 1; min-width: 220px; background: #111; border: 1px solid #222; padding: 25px; text-decoration: none; color: white; font-family: var(--font-accent); display: flex; align-items: center; justify-content: center; gap: 15px; transition: 0.3s; }
.social-card:hover { border-color: var(--red); transform: translateY(-5px); background: #1a0505; }
.social-card i { font-size: 1.5em; color: var(--red); }
.order-admin-card { background: #111; border: 1px solid #333; border-left: 4px solid var(--red); padding: 15px; margin-bottom: 15px; font-size: 0.85em; position: relative; }
.order-status { position: absolute; top: 15px; right: 15px; padding: 5px 10px; font-weight: bold; border-radius: 4px; font-family: var(--font-accent); }
.status-new { background: #ffcc00; color: black; }
.status-sent { background: #00ccff; color: black; }
.status-done { background: #00ff00; color: black; }
.review-item { border-bottom: 1px solid #222; padding: 10px 0; margin-bottom: 10px; }
.review-author { color: var(--red); font-weight: bold; font-size: 0.9em; }
.review-text { color: #ccc; font-size: 0.9em; margin-top: 5px; text-transform: none; }

/* АНІМАЦІЇ */
@keyframes slideUpFade { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes modalPop { 0% { opacity: 0; transform: translate(-50%, -60%) scale(0.9); } 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes pulseRed { 0% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); } }
.main-tab:not(.hidden) { animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1); }

/* 🔥 АДАПТИВНІСТЬ ДЛЯ ВСІХ ПРИСТРОЇВ 🔥 */
@media (max-width: 1024px) { 
    .grid { grid-template-columns: repeat(2, 1fr); } 
}
@media (max-width: 768px) {
    .logo { font-size: 1.8em; }
    .hero-title { font-size: 2.2em; word-wrap: break-word; }
    .hero-btns { flex-direction: column; width: 100%; gap: 15px; padding: 0 20px; box-sizing: border-box; }
    .grid { grid-template-columns: 1fr; gap: 20px; padding: 15px; }
    .product-gallery { height: 350px; }
    .social-grid { flex-direction: column; padding: 20px; }
    
    /* Скрол меню для телефонів - вирівнюємо зліва для зручності */
    .nav-scroll { justify-content: flex-start; } 
    
    .size-grid { grid-template-columns: repeat(2, 1fr); }
    #event-timer { font-size: 2em; }
    .modal { width: 95%; max-width: none; }
    .cart-status { width: 55px; height: 55px; bottom: 20px; right: 20px; }
}
/* 🔥 СТИЛІ ДЛЯ ФІЛЬТРІВ ТОВАРІВ 🔥 */

.filter-bar {
    display: flex;
    gap: 12px;
    padding: 10px 20px 25px;
    overflow-x: auto; /* Дозволяє скрол на мобільних */
    scrollbar-width: none; /* Ховаємо скролбар для Firefox */
    justify-content: center;
    margin-bottom: 10px;
}

/* Ховаємо скролбар для Chrome/Safari */
.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background: rgba(20, 20, 20, 0.8);
    color: #888;
    border: 1px solid #333;
    padding: 12px 25px;
    font-family: var(--font-accent);
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); /* Скошені краї як у кнопок дій */
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover {
    color: var(--white);
    border-color: var(--red);
    background: rgba(40, 0, 0, 0.4);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--red);
    color: white;
    border-color: var(--red);
    box-shadow: 0 0 15px var(--red-glow);
    transform: scale(1.05);
}

/* Тег категорії всередині картки товару */
.category-tag {
    display: inline-block;
    color: var(--red);
    font-size: 0.65em;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 8px;
    border-left: 3px solid var(--red);
    padding-left: 8px;
    text-transform: uppercase;
}

/* Адаптивність для фільтрів */
@media (max-width: 768px) {
    .filter-bar {
        justify-content: flex-start; /* На мобільних скрол зліва направо */
        padding-bottom: 20px;
    }
    .filter-btn {
        padding: 10px 28px; /* більший відступ бо скошені краї зрізали текст */
        font-size: 0.75em;
        min-width: 100px;
        flex-shrink: 0; /* щоб кнопки не стискались */
        text-align: center;
    }
}
/* Додайте до вашого існуючого файлу */

.item-select {
    background: #111;
    border: 1px solid #333;
    color: white;
    padding: 10px;
    font-family: var(--font-main);
    font-size: 0.8em;
    cursor: pointer;
    outline: none;
    transition: 0.3s;
}

.item-select:focus {
    border-color: var(--red);
}

.product-options {
    margin: 10px 0;
}

/* дублікат, перебивав стилі фільтрів вище */
/*
.filter-bar {
    display: flex;
    gap: 10px;
    padding: 10px 20px;
    overflow-x: auto;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-btn {
    background: #111;
    border: 1px solid #333;
    color: #888;
    padding: 10px 20px;
    font-family: var(--font-accent);
    font-size: 0.8em;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
}

.filter-btn.active {
    background: var(--red);
    color: white;
    border-color: var(--red);
}
*/
/* вкладка Про Нас */
.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
}

.about-lead {
    font-family: 'Russo One', sans-serif;
    color: var(--red);
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

.about-text {
    font-family: 'Tektur', sans-serif;
    color: var(--white);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-transform: none;
    opacity: 0.9;
}

.about-card {
    background: var(--gray);
    border: 1px solid #222;
    border-left: 3px solid var(--red);
    padding: 25px;
    margin: 30px 0;
}

.about-card-title {
    font-family: 'Russo One', sans-serif;
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-list li {
    font-family: 'Tektur', sans-serif;
    color: var(--white);
    opacity: 0.9;
    padding: 8px 0 8px 20px;
    position: relative;
    text-transform: none;
}

.about-list li::before {
    content: "▸";
    color: var(--red);
    position: absolute;
    left: 0;
}

.about-outro {
    font-family: 'Russo One', sans-serif;
    color: var(--red);
    font-size: 1.2rem;
    text-align: center;
    margin-top: 30px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .about-lead,
    .about-outro {
        font-size: 1.1rem;
    }
    .about-text {
        font-size: 0.95rem;
    }
}

/* відступ зліва для заголовків вкладок */
.section-title {
    padding-left: 40px;
}

@media (max-width: 768px) {
    .section-title {
        padding-left: 20px;
    }
}

/* активне поле поверх сусідніх, щоб список не перекривався */
.search-wrapper:focus-within {
    z-index: 100;
}

/* хрестик закриття вікон */
.modal-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.6em;
    line-height: 1;
    cursor: pointer;
    padding: 0 5px;
    transition: 0.2s;
}
.modal-close-btn:hover {
    color: var(--red);
    transform: scale(1.2);
}

/* пробник: біла підложка під лого партнерів (видалити блок щоб вернути як було) */
.partner-card img,
.partner-logo {
    background: #ffffff;
    padding: 12px;
    border-radius: 8px;
    box-sizing: content-box;
}
/* ===== кінець пробника ===== */
