/* Базовые настройки */
body {
    font-family: 'Inter', sans-serif;
    background-color: #050403;
    color: #ffffff;
    overflow-x: hidden;
    margin: 0;
}

/* ТИПОГРАФИКА */
h1, h2, h3, .font-heading { font-family: 'Montserrat', sans-serif; }
.font-minecraft { font-family: 'Minecraft Rus', sans-serif !important; font-weight: normal !important; }
.font-logo { font-family: 'Russo One', sans-serif !important; letter-spacing: 2px; }

/* ФОНОВЫЕ ЭФФЕКТЫ */
.bg-glow {
    position: fixed; top: 50%; left: 50%;
    width: 150vw; height: 150vh;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, rgba(5, 4, 3, 0) 60%);
    transform: translate(-50%, -50%); z-index: -2; pointer-events: none;
}
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    z-index: -1; pointer-events: none;
}

@keyframes kenburns { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }
.animate-kenburns { animation: kenburns 25s ease-in-out infinite; }

/* ГЛАССМОРФИЗМ */
.glass-panel {
    background: rgba(25, 15, 5, 0.4);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
}
.glass-panel:hover { border-color: rgba(249, 115, 22, 0.3); }

/* ИНПУТЫ */
.glass-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(249, 115, 22, 0.2);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}
.glass-input:focus {
    outline: none; border-color: #f97316;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5), 0 0 20px rgba(249, 115, 22, 0.2);
}

/* ОСНОВНАЯ КНОПКА */
.btn-gradient {
    background: linear-gradient(135deg, #f97316 0%, #eab308 100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none; color: #000; position: relative; z-index: 1; overflow: hidden;
}
.btn-gradient::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #eab308 0%, #f97316 100%);
    z-index: -1; transition: opacity 0.4s ease; opacity: 0;
}
.btn-gradient:hover::before { opacity: 1; }
.btn-gradient:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 15px 30px rgba(249, 115, 22, 0.4); }

/* КНОПКА В КОРЗИНЕ */
.btn-cart {
    font-weight: 700;
    border: none;
    cursor: pointer;
}
.btn-cart-added {
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.4) !important;
    color: #f97316 !important;
    cursor: pointer;
}
.btn-cart-added:hover {
    background: rgba(249, 115, 22, 0.25);
    transform: none;
}

/* КНОПКИ КОЛИЧЕСТВА */
.qty-btn { cursor: pointer; border: none; background: none; }

/* КАТЕГОРИИ ФИЛЬТР */
.cat-btn { cursor: pointer; border: none; }
.cat-active {
    background: linear-gradient(135deg, #f97316, #eab308);
    color: #000;
    box-shadow: 0 4px 15px rgba(249,115,22,0.35);
}
.cat-inactive {
    background: rgba(255,255,255,0.05);
    color: #9ca3af;
}
.cat-inactive:hover {
    background: rgba(249,115,22,0.1);
    color: #f97316;
}

/* 3D КАРТОЧКИ */
.card-container { perspective: 1000px; }
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, border-color 0.3s;
    will-change: transform;
}
.card-content-z { transform: translateZ(20px); }
.card-icon-z { transform: translateZ(40px); filter: drop-shadow(0px 10px 15px rgba(0,0,0,0.7)); }
.card-button-z { transform: translateZ(30px); }

/* Пульсация при добавлении */
@keyframes card-pulse-anim {
    0%   { box-shadow: 0 0 0 0 rgba(249,115,22,0.5); }
    70%  { box-shadow: 0 0 0 15px rgba(249,115,22,0); }
    100% { box-shadow: 0 0 0 0 rgba(249,115,22,0); }
}
.card-pulse .card-3d { animation: card-pulse-anim 0.6s ease-out; }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Скроллбар */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050403; }
::-webkit-scrollbar-thumb { background: #3d1c00; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #f97316; }

.text-glow { text-shadow: 0 0 30px rgba(249, 115, 22, 0.6); }

/* Лоадер */
.loader {
    border: 3px solid rgba(249, 115, 22, 0.1);
    border-top: 3px solid #f97316;
    border-radius: 50%;
    width: 40px; height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Модалка */
.modal-overlay { opacity: 0; pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(10px); }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { transform: scale(0.9); transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.modal-overlay.active .modal-content { transform: scale(1); }

/* Мобильное Меню (Анимация выезда) */
#mobileMenu {
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.mobile-menu-active {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}
.mobile-menu-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
}

/* Уведомления */
.toast {
    position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%);
    background: rgba(15, 10, 5, 0.95); color: white; padding: 14px 28px;
    border-radius: 100px; font-weight: 700;
    transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000; box-shadow: 0 10px 40px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(20px);
    white-space: nowrap;
}
.toast.show { bottom: 40px; }

/* ПЛАВАЮЩИЙ БЕЙДЖ КОРЗИНЫ */
.cart-float-badge {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.cart-float-badge.translate-y-32 { transform: translateY(120px); }
.cart-float-badge.opacity-0 { opacity: 0; }
.cart-float-badge.translate-y-0 { transform: translateY(0); }
.cart-float-badge.opacity-100 { opacity: 1; }

/* Фейдин для строк корзины */
@keyframes fadein { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.animate-fadein { animation: fadein 0.3s ease-out forwards; }

/* Анимация пустой корзины */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Блок корзины — выделяем */
#cartBlock { border-color: rgba(249, 115, 22, 0.3) !important; }