:root {
            --blood: #880808;
            --dark-blood: #4a0404;
            --black: #050505;
            --gray: #1a1a1a;
            --text: #e0e0e0;
        }
@font-face {
    font-family: 'AncientMedium';
    src: url('/fonts/Ancient Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 18px max(40px, calc(50vw - 500px));
            border-bottom: 1px solid var(--blood);
            background: rgba(5, 5, 5, 0.95);
            position: sticky;
            top: 0;
            width: 100%;
            z-index: 1000;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
        }

        header.header-hidden {
            transform: none;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            scroll-behavior: smooth;
        }

        body {
            background-color: var(--black);
            color: var(--text);
            font-family: 'Oswald', sans-serif;
            overflow-x: hidden;
            padding-top: 0;
        }

        body::before {
            content: "";
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: radial-gradient(circle at 50% 50%, rgba(136, 8, 8, 0.1) 0%, transparent 80%);
            pointer-events: none;
            z-index: -1;
        }

        .logo-container {
            position: relative;
            display: inline-block;
        }

        .logo {
            font-family: 'AncientMedium', serif;
            font-size: 2.4rem;
            color: var(--blood);
            text-shadow: 0 0 10px rgba(136, 8, 8, 0.8);
            letter-spacing: 2px;
            position: relative;
            z-index: 2;
            animation: pulse-logo 3s infinite ease-in-out;
            animation-delay: var(--pulse-sync-delay, 0ms);
            margin: 0;
            line-height: 1;
        }

        @keyframes pulse-logo {
            0%, 100% { 
                color: var(--blood);
                text-shadow: 0 0 10px rgba(136, 8, 8, 0.8);
                filter: brightness(1);
            }
            50% { 
                color: #ff0000;
                text-shadow: 0 0 25px rgba(255, 0, 0, 1);
                filter: brightness(1.5);
            }
        }

        .container { max-width: 1400px; margin: 0 auto; padding: 40px 20px; }
        body[data-page="catalog"] .container { padding-top: 28px; }
        .hero-text { text-align: center; margin-bottom: 60px; text-transform: uppercase; }
        .hero-text h2 { font-size: 3rem; color: #fff; }
        .hero-text span { color: var(--blood); }
        .hero-text p { color: #888; letter-spacing: 2px; margin-top: 10px; }

        .size-btn {
            position: fixed; top: 50%; right: 0;
            transform: translateY(-50%) rotate(-90deg) translateX(50%);
            transform-origin: right bottom;
            background: var(--blood); color: white; padding: 10px 20px;
            border: none; cursor: pointer; z-index: 1001;
            font-weight: bold; text-transform: uppercase; letter-spacing: 1px;
        }

        .size-type-btn {
            font-family: inherit;
            font-size: 0.7rem;
            font-weight: bold;
        }

        .lang-ua .size-type-btn {
            font-size: 0.85rem;
        }

        .side-panel, .modal-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.9); display: none;
            justify-content: center; align-items: center; z-index: 2000;
        }
        .modal-overlay {
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .side-panel {
            right: -100%; left: auto; width: 100%; max-width: 500px;
            background: var(--black); border-left: 2px solid var(--blood);
            flex-direction: column; padding: 20px; transition: 0.5s; display: flex;
            opacity: 0; visibility: hidden; pointer-events: none;
        }
        .side-panel.active { right: 0; opacity: 1; visibility: visible; pointer-events: auto; }

        .modal-content {
            background: var(--gray); width: 90%; max-width: 500px;
            padding: 30px; border: 2px solid var(--blood); position: relative;
        }
        #orderModal .modal-content {
            max-height: 90vh;
            overflow-y: auto;
        }

        .close-btn { color: var(--blood); cursor: pointer; font-size: 1.5rem; position: absolute; top: 15px; right: 20px; z-index: 10; }

        .order-form input, .order-form textarea {
            width: 100%; padding: 12px; margin: 10px 0;
            background: #000; border: 1px solid #444; color: #fff;
            font-family: 'Oswald', sans-serif; font-size: 16px;
        }
        .order-form textarea {
            min-height: 80px;
            resize: vertical;
        }

        .region-switch {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }
        .region-btn {
            flex: 1;
            background: #111;
            color: #888;
            border: 1px solid #333;
            padding: 10px;
            cursor: pointer;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-family: 'Oswald', sans-serif;
            transition: 0.3s;
        }
        .region-btn.active {
            background: var(--blood);
            color: #fff;
            border-color: var(--blood);
            box-shadow: 0 0 15px rgba(136, 8, 8, 0.6);
        }

        .gallery-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.95); display: none;
            justify-content: center; align-items: center; z-index: 3000;
        }
        .gallery-overlay img {
            max-width: 90%;
            max-height: 80%;
            border: 2px solid var(--blood);
            object-fit: contain;
            cursor: zoom-in;
            user-select: none;
            -webkit-user-drag: none;
        }
        .gallery-overlay img.gallery-img-focus {
            cursor: zoom-out;
            transition: transform 0.2s ease;
        }
        .gallery-overlay img.gallery-img-focus.gallery-img-zoomed {
            touch-action: none;
            will-change: transform;
        }
        .gallery-overlay img.gallery-img-focus.gallery-img-zoomed.gallery-img-dragging {
            cursor: grabbing;
            transition: none;
        }
        .gallery-nav {
            position: absolute; top: 50%; transform: translateY(-50%);
            background: rgba(136, 8, 8, 0.5); color: white; border: none; padding: 15px; cursor: pointer; font-size: 1.5rem;
            z-index: 3001;
        }
        .prev { left: 10px; } .next { right: 10px; }
        @media (min-width: 992px) {
            .gallery-nav {
                padding: 20px 24px;
                font-size: 2.1rem;
            }
            .prev { left: calc(5vw + 14px); }
            .next { right: calc(5vw + 14px); }
        }

        .shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }

        .product-card {
            background: var(--gray); border: 1px solid #333; transition: 0.3s;
            position: relative; overflow: hidden; display: flex; flex-direction: column;
        }
        .product-card:hover { border-color: var(--blood); box-shadow: 0 0 20px rgba(136, 8, 8, 0.4); }
        .product-link {
            display: block;
            color: inherit;
            text-decoration: none;
        }
        .product-title-link {
            color: inherit;
            text-decoration: none;
            border-bottom: 1px solid transparent;
            transition: border-color 0.3s ease, color 0.3s ease;
        }
        .product-title-link:hover {
            border-color: transparent;
            color: #fff;
        }
        .product-open-link {
            display: inline-block;
            margin-top: 8px;
            color: var(--blood);
            font-size: 0.82rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            text-decoration: none;
            border-bottom: 1px solid var(--blood);
            padding-bottom: 2px;
        }
        .product-open-link:hover {
            color: #fff;
            border-bottom-color: #fff;
        }

        .product-img-container { width: 100%; height: 450px; overflow: hidden; position: relative; cursor: pointer; }
        .product-img, .product-img-alt { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
        .product-img-alt { position: absolute; top: 0; left: 0; opacity: 0; }
        
        @media (hover: hover) {
            .product-card:hover { transform: translateY(-5px); }
            .product-card:hover .product-img { opacity: 0; }
            .product-card:hover .product-img-alt { opacity: 1; }
        }

        .product-info { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
        .product-new-badge {
            display: inline-block;
            min-width: 112px;
            padding: 8px 16px;
            border: 1px solid #ff2a2a;
            background: #a00000;
            color: #fff;
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 1.1px;
            text-transform: uppercase;
            line-height: 1;
            text-align: center;
        }
        .product-new-badge-corner {
            position: absolute;
            top: 10px;
            left: 10px;
            z-index: 5;
            pointer-events: none;
        }
        .product-new-badge-detail-corner {
            top: 12px;
            left: 12px;
            font-size: 0.72rem;
        }
        .product-title { font-size: 1.6rem; margin-bottom: 10px; color: var(--blood); text-transform: uppercase; }
        .product-desc { font-size: 0.85rem; line-height: 1.5; margin-bottom: 15px; color: #bbb; }
        .price { font-size: 1.5rem; font-weight: bold; margin-bottom: 15px; color: #fff; }

        select {
            background-color: #000;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 15px center; /* Сдвигаем стрелочку на 15px левее края */
            background-size: 16px; /* Размер стрелочки */
            color: #fff; border: 1px solid var(--blood);
            padding: 12px 40px 12px 12px; width: 100%; margin-bottom: 15px; outline: none; font-size: 16px; font-family: 'Oswald', sans-serif;
            appearance: none; /* Скрываем стандартную браузерную стрелку */
            -webkit-appearance: none;
            cursor: pointer;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }

        select:hover {
            border-color: #ff1a1a;
            box-shadow: 0 0 10px rgba(136, 8, 8, 0.5);
        }

        @media (min-width: 992px) {
            select.is-open {
                background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 15 12 9 18 15'%3E%3C/polyline%3E%3C/svg%3E");
            }
        }

        .buy-btn {
            background: var(--blood); color: white; border: none; padding: 15px;
            width: 100%; font-weight: bold; cursor: pointer; text-transform: uppercase;
            letter-spacing: 1px; transition: 0.3s;
        }
        .buy-btn:hover:not(:disabled) {
            background: #a40a0a;
            box-shadow: 0 0 18px rgba(136, 8, 8, 0.7);
        }
        .buy-btn:disabled { background: #444; cursor: not-allowed; }

        .copy-line { display: flex; justify-content: space-between; align-items: center; background: #111; padding: 5px 10px; border: 1px solid #333; margin-top: 5px; }
        .mini-copy-btn { background: var(--blood); color: white; border: none; padding: 3px 8px; font-size: 0.7rem; cursor: pointer; text-transform: uppercase; }

        .cart-widget {
            position: fixed; bottom: 20px; right: 20px; background: var(--blood);
            width: 55px; height: 55px; border-radius: 50%; display: flex;
            align-items: center; justify-content: center; cursor: pointer; z-index: 1000;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .cart-widget:hover {
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(136, 8, 8, 0.6);
        }
        #cart-count { background: white; color: var(--blood); border-radius: 50%; padding: 2px 7px; font-size: 0.8rem; position: absolute; top: 5px; right: 5px; font-weight: bold; }

    @media (min-width: 992px) {
        .cart-widget {
            width: 65px;
            height: 65px;
            font-size: 1.4rem;
            bottom: 25px;
            right: 25px;
        }
        #cart-count {
            top: 6px;
            right: 6px;
            font-size: 0.9rem;
            padding: 3px 8px;
        }
    }

        .cart-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #333; font-size: 0.9rem; }
        .remove-item { color: var(--blood); cursor: pointer; }

        .seo-hidden {
            position: absolute !important;
            width: 1px !important;
            height: 1px !important;
            padding: 0 !important;
            margin: -1px !important;
            overflow: hidden !important;
            clip: rect(0, 0, 0, 0) !important;
            white-space: nowrap !important;
            border: 0 !important;
        }

        .product-page {
            max-width: 1200px;
            margin: 0 auto;
        }
        .breadcrumbs {
            margin-bottom: 20px;
            font-size: 0.8rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: #888;
        }
        .breadcrumbs a {
            color: var(--blood);
            text-decoration: none;
        }
        .product-detail-card {
            background: #0a0a0a;
            border: 1px solid #2a2a2a;
            display: grid;
            grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
            gap: 26px;
            padding: 22px;
            align-items: start;
        }
        .product-detail-media {
            position: relative;
        }
        .product-detail-main-img {
            width: 100%;
            height: 680px;
            object-fit: cover;
            border: 1px solid #2a2a2a;
            cursor: pointer;
        }
        .product-detail-thumbs {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
            margin-top: 10px;
        }
        .product-detail-thumbs img {
            width: 100%;
            height: 105px;
            object-fit: cover;
            border: 1px solid #2a2a2a;
            cursor: pointer;
            opacity: 0.85;
            transition: opacity 0.25s ease, border-color 0.25s ease;
        }
        .product-detail-thumbs img:hover {
            opacity: 1;
            border-color: var(--blood);
        }
        .product-detail-title {
            font-size: 2.2rem;
            color: var(--blood);
            text-transform: uppercase;
            margin-bottom: 10px;
            line-height: 1.1;
        }
        .product-detail-info {
            display: flex;
            flex-direction: column;
            align-self: stretch;
            position: relative;
        }
        .product-detail-info > *:not(.product-detail-filler-art) {
            position: relative;
            z-index: 1;
        }
        .product-detail-desc {
            font-size: 1.08rem;
            color: #f1f1f1;
            line-height: 1.7;
            margin-bottom: 18px;
            padding: 10px 12px;
            border-left: 3px solid rgba(136, 8, 8, 0.9);
            background: rgba(136, 8, 8, 0.08);
        }
        .product-detail-meta {
            color: #8f8f8f;
            font-size: 0.82rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            margin-bottom: 12px;
        }
        @media (min-width: 993px) {
            .container.product-page {
                max-width: 1680px;
                padding-top: clamp(26px, 3.2vw, 46px);
                padding-left: clamp(16px, 2.2vw, 36px);
                padding-right: clamp(16px, 2.2vw, 36px);
            }
            .product-page {
                max-width: 1680px;
            }
            .product-detail-card {
                background: transparent;
                border: none;
                padding: 0;
                gap: clamp(24px, 2.4vw, 44px);
                grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
            }
            .product-detail-main-img {
                height: clamp(620px, 70vh, 860px);
                border: none;
            }
            .product-detail-thumbs {
                gap: 10px;
                margin-top: 12px;
            }
            .product-detail-thumbs img {
                height: clamp(96px, 11vh, 128px);
                border: none;
                opacity: 0.9;
            }
            .product-detail-thumbs img:hover {
                border-color: transparent;
            }
            .product-detail-title {
                font-size: clamp(2.02rem, 2.35vw, 2.62rem);
            }
            .product-detail-info {
                min-height: 100%;
            }
            .product-detail-desc {
                font-size: clamp(1.03rem, 1.08vw, 1.14rem);
                line-height: 1.65;
                margin-bottom: 16px;
                padding: 12px 14px;
                border-left: 3px solid rgba(136, 8, 8, 0.9);
                background: rgba(136, 8, 8, 0.1);
            }
            .product-detail-info .price {
                font-size: clamp(1.62rem, 1.95vw, 1.9rem);
                margin-bottom: 18px;
            }
            .product-detail-actions select {
                font-size: 1.08rem;
            padding: 14px 40px 14px 14px;
            }
            .product-detail-actions .buy-btn {
                font-size: 1.02rem;
                padding: 16px;
            }
            .product-detail-meta {
                display: none;
            }
        }
        .product-detail-actions {
            margin-top: 18px;
        }
        .product-detail-actions .size-guide-btn {
            margin-top: 10px;
            background: linear-gradient(180deg, #1f1f1f 0%, #0d0d0d 100%);
            border: 1px solid #8f8f8f;
            color: #f2f2f2;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 0 12px rgba(136, 8, 8, 0.2);
        }
        .product-detail-actions .size-guide-btn:hover {
            background: linear-gradient(180deg, #2a2a2a 0%, #111111 100%);
            border-color: #d8d8d8;
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 16px rgba(136, 8, 8, 0.32);
            transform: translateY(-1px);
        }
        .product-detail-filler-art {
            position: absolute;
            left: 50%;
            bottom: 10px;
            transform: translateX(-50%);
            width: 62%;
            max-width: 360px;
            background: transparent;
            border: none;
            margin: 0;
            padding: 0;
            z-index: 0;
            pointer-events: none;
        }
        .product-detail-filler-art img {
            width: 100%;
            height: auto;
            object-fit: contain;
            background: transparent;
            filter: drop-shadow(0 0 10px rgba(136, 8, 8, 0.35));
            transform: scaleX(1.08);
            transform-origin: center center;
            animation: filler-art-sync-pulse 3s ease-in-out infinite;
            animation-delay: var(--pulse-sync-delay, 0ms);
            pointer-events: none;
            user-select: none;
            display: block;
        }
        @media (min-width: 993px) {
            .product-detail-info::after {
                content: "";
                position: absolute;
                left: 50%;
                top: clamp(620px, 70vh, 860px);
                bottom: auto;
                transform: translate(-50%, -100%);
                width: 106%;
                max-width: none;
                aspect-ratio: 2.45 / 1;
                height: auto;
                background: url('/images/photo_2026-03-13_20-42-54.png') center / contain no-repeat;
                filter: grayscale(1) contrast(1.28) brightness(0.74);
                mix-blend-mode: screen;
                mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.25) 100%);
                -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.55) 70%, rgba(0, 0, 0, 0.25) 100%);
                opacity: 0.52;
                pointer-events: none;
                z-index: 0;
            }
            .product-detail-info .product-detail-filler-art {
                display: none;
            }
        }

        @keyframes filler-art-sync-pulse {
            0%, 100% {
                filter: drop-shadow(0 0 10px rgba(136, 8, 8, 0.8)) brightness(1);
                opacity: 0.9;
            }
            50% {
                filter: drop-shadow(0 0 25px rgba(255, 0, 0, 1)) brightness(1.5);
                opacity: 1;
            }
        }
        .product-detail-back {
            display: inline-block;
            margin-bottom: 14px;
            color: #9f9f9f;
            text-decoration: none;
            border-bottom: 2px solid #6f6f6f;
            font-size: 0.82rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 1px;
            padding-bottom: 2px;
            text-shadow: 0 0 8px rgba(150, 150, 150, 0.28);
        }
        .product-detail-back:hover {
            color: #c0c0c0;
            border-bottom-color: #8a8a8a;
        }
        @media (max-width: 992px) {
            .product-detail-card {
                grid-template-columns: 1fr;
                background: transparent;
                border: none;
                padding: 0;
            }
            .product-detail-main-img {
                height: 430px;
            }
            .product-detail-filler-art {
                display: none;
            }
        }

        .socials {
            text-align: center;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
            padding: 40px 20px;
            margin: 0;
            background: #000;
            border-top: 1px solid #121212;
            border-bottom: 1px solid #121212;
        }
        .socials a {
            color: var(--blood);
            text-decoration: none;
            margin: 0;
            font-size: 1.22rem;
            font-weight: 700;
            letter-spacing: 1px;
            text-transform: uppercase;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 8px;
            transition: all 0.3s ease;
        }
        .socials a:hover {
            color: #ff1a1a;
            filter: drop-shadow(0 0 12px rgba(255, 0, 0, 0.6));
            transform: scale(1.05);
        }
        .socials a svg {
            width: 18px;
            height: 18px;
            display: block;
        }

        footer {
            text-align: center;
            margin-top: 0 !important;
            padding: 18px 20px 30px !important;
            font-size: 0.7rem;
            border-top: 1px solid #333;
            color: #555;
        }

        #toast-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; pointer-events: none; }
        .toast {
            background: var(--blood); color: white; padding: 15px 30px; border: 2px solid white;
            text-transform: uppercase; font-weight: bold; letter-spacing: 1px; margin-bottom: 10px;
            animation: slideDown 0.4s ease forwards, fadeOut 0.4s ease forwards 2.5s;
            box-shadow: 0 0 15px rgba(136, 8, 8, 0.6); text-align: center; min-width: 250px;
        }

        @keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
        @keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

        @media (max-width: 768px) {
            header { position: static; }
            header { padding: 14px 10px; }
            body[data-page="catalog"] .container { padding-top: 38px; }
            body[data-page="product"] .hero-text { display: none; }
            .logo { font-size: 2.24rem; }
            .hero-text h2 { font-size: 2.2rem; }
            .shop-grid { grid-template-columns: 1fr; gap: 25px; }
            .product-img-container { height: 380px; }
            .product-img-alt { display: none; } 
            .socials { gap: 14px; padding: 28px 14px; }
            .socials a { font-size: 1.02rem; gap: 6px; }
            .socials a svg { width: 16px; height: 16px; }
        }
/* Filter buttons */
.filter-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 10px 25px;
    margin: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    outline: none;
    font-family: 'Oswald', sans-serif;
}

/* Active filter button */
.filter-btn.active {
    background: var(--blood) !important; 
    border-color: var(--blood) !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(136, 8, 8, 0.8);
}

/* Hover effect for inactive filter button */
.filter-btn:hover:not(.active) {
    background: #fff;
    color: #000;
}

.catalog-search-wrap {
    margin: 14px auto 0;
    max-width: 460px;
    padding: 0 10px;
}

.catalog-search-shell {
    position: relative;
}

.catalog-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #7a7a7a;
    pointer-events: none;
    transition: color 0.25s ease;
}

.catalog-search-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.catalog-search-input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 42px;
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.92), rgba(8, 8, 8, 0.94));
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.8px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.catalog-search-input:focus {
    border-color: var(--blood);
    box-shadow: 0 0 0 2px rgba(136, 8, 8, 0.2), 0 0 24px rgba(136, 8, 8, 0.18);
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.96), rgba(10, 10, 10, 0.96));
}

.catalog-search-shell:focus-within .catalog-search-icon {
    color: var(--blood);
}

.catalog-search-input::placeholder {
    color: #9a9a9a;
}

@media (min-width: 1024px) {
    .catalog-search-wrap {
        max-width: 620px;
    }

    .catalog-search-input {
        height: 52px;
        font-size: 1.08rem;
    }
}

/* Hide size guide trigger on catalog page, keep markup/logic in project */
body[data-page="catalog"] .size-btn {
    display: none !important;
}

/* Product card animation helper */
.product-card {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Hidden state with animation */
.product-card.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* About section */
.about-section {
    text-align: center;
    margin: 0 auto 100px;
    max-width: 1200px; 
    padding: 0 15px;
}

.about-logo-title {
    font-family: 'AncientMedium', serif;
    font-size: 3rem;
    color: var(--blood);
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(136, 8, 8, 0.8);
    text-transform: uppercase;
    letter-spacing: 10px;
}

.about-image {
    width: 500px;
    height: auto;
    border: 1px solid #222;
    filter: grayscale(1) contrast(1.2);
    transition: all 0.8s ease;
    margin-bottom: 60px;
    box-shadow: 0 0 40px rgba(0,0,0,0.9);
}

.about-image:hover {
    filter: grayscale(0);
    border-color: var(--blood);
    box-shadow: 0 0 50px var(--blood);
}

.manifesto {
    font-size: 1.3rem;
    line-height: 2.2;
    color: #eee;
    text-transform: uppercase;
    text-align: justify; 
    text-align-last: center;
    letter-spacing: 3px;
    font-weight: 500;
}

.manifesto p {
    margin-bottom: 40px;
    padding: 0 10px; 
}

.manifesto span {
    color: var(--blood);
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.manifesto a {
    color: var(--blood);
    text-decoration: none;
    border-bottom: 2px solid var(--blood);
    padding-bottom: 2px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .about-section { margin-bottom: 60px; }
    .about-logo-title { font-size: 2.3rem; letter-spacing: 4px; }
    .about-image { width: 90%; margin-bottom: 40px; }
    .manifesto { 
        font-size: 1rem; 
        text-align: center;
        letter-spacing: 1px;
    }
}

/* Center language switcher content */
.lang-switcher {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
}

/* Language buttons */
.lang-btn {
    cursor: pointer;
    font-size: 1.65rem;
    font-weight: 900;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) brightness(0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    height: 42px;
}

#lang-ua {
    background-image: url('https://flagcdn.com/w160/ua.png');
}

#lang-eng {
    background-image: url('https://flagcdn.com/w160/gb.png');
}

/* Hover effect */
.lang-btn:hover {
    color: transparent;
    filter: grayscale(0%) brightness(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    transform: scale(1.1);
}

/* Active language state */
.lang-btn.active {
    color: transparent;
    filter: grayscale(0%) brightness(1.1) drop-shadow(0 0 15px rgba(255, 0, 0, 0.8));
    transform: scale(1.2);
}

/* Animated underline for active language */
.lang-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--blood);
    box-shadow: 0 0 15px var(--blood);
    animation: line-grow 0.5s forwards;
}

@keyframes line-grow {
    from { width: 0; left: 50%; }
    to { width: 100%; left: 0; }
}

/* FAQ block styles */
.faq-btn {
    background: transparent;
    border: 1px solid var(--blood);
    color: var(--blood);
    padding: 10px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    margin: 10px 0;
}

.faq-btn:hover {
    background: var(--blood);
    color: white;
}

#faqSection {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #111;
    padding: 0 15px;
    border: 1px solid #333;
    margin-bottom: 15px;
}

#faqSection.faq-open {
    max-height: 500px;
    padding: 15px;
}

#faqSection ul {
    list-style: none;
    font-size: 0.9rem;
    color: #bbb;
}

#faqSection li {
    margin-bottom: 15px;
}

#faqSection h4 {
    color: var(--blood);
    margin-bottom: 5px;
    font-size: 1rem;
}

#faqSection p {
    color: #ddd;
    line-height: 1.4;
}

.footer-policy-links {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-policy-btn {
    background: transparent;
    border: none;
    color: #9a9a9a;
    cursor: pointer;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer-policy-btn:hover {
    color: #ffffff;
}

.footer-policy-sep {
    color: #666;
    font-size: 10px;
}

#policyModalBody p {
    margin-bottom: 10px;
    color: #ccc;
    font-size: 0.85rem;
    line-height: 1.6;
}

.operator-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.telegram-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.92;
}

.operator-handle {
    font-weight: 700;
}

.operator-online {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 1px;
    color: #9ad8a8;
    text-transform: uppercase;
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38d667;
    box-shadow: 0 0 0 rgba(56, 214, 103, 0.7);
    animation: operator-online-pulse 1.4s ease-in-out infinite;
}

.account-btn {
    color: #d8d8d8;
    border: 1px solid #333;
    background: #101010;
    text-decoration: none;
    padding: 10px 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.account-btn:hover {
    color: #fff;
    border-color: var(--blood);
    box-shadow: 0 0 12px rgba(136, 8, 8, 0.5);
}

.account-icon-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(20, 20, 20, 0.8);
}

.account-icon-btn svg {
    display: block;
    width: 30px;
    height: 30px;
}

.account-btn.account-btn-auth {
    color: #fff;
    border-color: var(--blood);
    background: var(--blood);
    box-shadow: 0 0 14px rgba(136, 8, 8, 0.55);
}

.account-btn.account-btn-auth:hover {
    border-color: #ff1a1a;
    background: #a40a0a;
    box-shadow: 0 0 18px rgba(136, 8, 8, 0.7);
}

.account-shell {
    max-width: 1200px;
    padding-top: 20px;
}

.panel-card {
    max-width: 760px;
    margin: 0 auto;
    border: 1px solid #2a2a2a;
    background:
        radial-gradient(circle at top right, rgba(136, 8, 8, 0.14), transparent 38%),
        #0b0b0b;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.panel-title {
    color: var(--blood);
    font-size: 2rem;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.panel-subtitle {
    color: #8b8b8b;
    margin-bottom: 18px;
}

.panel-message {
    min-height: 26px;
    margin-bottom: 14px;
    color: #bdbdbd;
    font-size: 0.9rem;
}

.panel-message.error {
    color: #ff6b6b;
}

.panel-message.success {
    color: #8fe18f;
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    max-width: 560px;
    margin: 0 auto;
}

.auth-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 8px;
}

.auth-toggle-btn {
    border: 1px solid #323232;
    background: linear-gradient(180deg, #151515 0%, #0f0f0f 100%);
    color: #bdbdbd;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.82rem;
    padding: 12px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-toggle-btn:hover {
    color: #fff;
    border-color: #666;
}

.auth-toggle-btn.active {
    color: #fff;
    border-color: var(--blood);
    background: linear-gradient(180deg, rgba(136, 8, 8, 0.28) 0%, rgba(136, 8, 8, 0.12) 100%);
    box-shadow: inset 0 0 0 1px rgba(136, 8, 8, 0.45), 0 0 14px rgba(136, 8, 8, 0.25);
}

.panel-form {
    border: 1px solid #232323;
    background: #070707;
    padding: 20px;
    border-radius: 2px;
}

.panel-form h3 {
    margin-bottom: 14px;
    color: #f0f0f0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.field-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9a9a9a;
    margin: 10px 0 5px;
}

.panel-form input,
.panel-form select,
.panel-form textarea {
    width: 100%;
    border: 1px solid #2f2f2f;
    background-color: #000;
    color: #fff;
    padding: 12px;
    margin-bottom: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
}

.panel-form select {
    padding-right: 40px;
}

.panel-form input:focus,
.panel-form select:focus,
.panel-form textarea:focus {
    outline: none;
    border-color: var(--blood);
    box-shadow: 0 0 0 2px rgba(136, 8, 8, 0.25);
}

.phone-row {
    display: grid;
    grid-template-columns: minmax(185px, 1fr) minmax(0, 1.3fr);
    gap: 8px;
    margin-bottom: 8px;
}

.panel-phone-select,
.panel-phone-input {
    margin-bottom: 0 !important;
}

.account-area {
    display: block;
}

.auth-grid[hidden],
.account-area[hidden],
.panel-form[hidden] {
    display: none !important;
}

.account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.account-phone {
    font-size: 1.1rem;
    color: #fff;
}

.account-logout {
    max-width: 180px;
    margin-left: auto;
}

.orders-title {
    margin: 14px 0;
    font-size: 1.25rem;
    text-transform: uppercase;
    color: #e3e3e3;
}

.orders-list {
    display: grid;
    gap: 12px;
    margin-top: 6px;
}

.order-card {
    border: 1px solid #2a2a2a;
    background: #060606;
    padding: 14px;
}

.account-socials {
    margin-top: 0;
    border-top: 1px solid #171717;
    border-bottom: none;
    background: #000;
}

.order-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    color: #d6d6d6;
    margin-bottom: 6px;
}

.order-status {
    color: #f0b2b2;
    margin-bottom: 4px;
}

.order-total {
    color: #b4b4b4;
    margin-bottom: 8px;
}

.order-items {
    margin-left: 18px;
    color: #d8d8d8;
}

.admin-login {
    max-width: 420px;
}

.admin-order-actions {
    margin-top: 10px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.2fr) auto;
    gap: 10px;
    align-items: end;
}

.admin-order-actions .admin-save-btn {
    width: auto;
    min-width: 170px;
}

.admin-ttn-wrap[hidden] {
    display: none !important;
}

.admin-ttn-label {
    margin: 0 0 5px;
}

.admin-ttn-input {
    margin-bottom: 0 !important;
}

@media (max-width: 840px) {
    .auth-grid {
        grid-template-columns: 1fr;
    }

    .lang-switcher {
        gap: 14px;
    }

    .lang-btn {
        font-size: 1.35rem;
        height: 38px;
    }

    .account-btn {
        padding: 7px 11px;
        font-size: 0.76rem;
    }

    .account-icon-btn {
        width: 42px;
        height: 42px;
        padding: 0;
    }

    .admin-order-actions {
        grid-template-columns: 1fr;
    }

    .admin-order-actions .admin-save-btn {
        width: 100%;
    }

    .phone-row {
        grid-template-columns: 1fr;
    }
}

@keyframes operator-online-pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(56, 214, 103, 0.7);
    }
    50% {
        opacity: 0.45;
        box-shadow: 0 0 0 6px rgba(56, 214, 103, 0);
    }
}
