/* ===================================================================
   ПОЛНЫЙ КРАСНО-ЧЁРНО-БЕЛЫЙ ШАБЛОН С АНИМАЦИЯМИ ДЛЯ GAMESTORES.APP
   =================================================================== */

/* ===== ПЕРЕМЕННЫЕ ЦВЕТОВ ===== */
:root {
  --color-red: #e10600;
  --color-red-dark: #a00400;
  --color-red-light: #ff2a1f;
  --color-black: #0a0a0a;
  --color-black-soft: #141414;
  --color-white: #ffffff;
  --color-white-dim: #b8b8b8;
  --radius: 10px;
  --transition: 0.3s ease;
}

/* ===== ФОН СТРАНИЦЫ ===== */
/* ===== ФОН СТРАНИЦЫ (ИСПРАВЛЕННЫЙ) ===== */
html {
  background-image: url('https://i.ibb.co/3Ysvtzwn/Ij-Iz-Z-vo-J1-Jy2x-Cpa-Pps-Fj-F7f-Zp-Lm-Gfs-BCLn-Fm-Pl-MB1-Ce-RVg-7av-Ds7-E0j1f-UNl-Pndp-GRZNYAKp-FSTPH.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: var(--color-black);
}

body {
  background: transparent !important;
  color: var(--color-white);
  min-height: 100vh;
  position: relative;
}

/* Затемняющий слой */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(10, 10, 10, 0.75) 50%,
    rgba(225, 6, 0, 0.15) 100%
  );
  z-index: 0;
  pointer-events: none;
}

/* Весь контент — поверх затемнения */
body > * {
  position: relative;
  z-index: 1;
}

/* Убираем анимацию появления фона — она часто вызывает мигание */

/* ===== ОБЩИЕ БЛОКИ ===== */
.main-content,
#page,
.wrapper {
  background-color: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(6px);
  border-radius: var(--radius);
  border: 1px solid rgba(225, 6, 0, 0.25);
  animation: contentFadeUp 1s ease-out both;
}

@keyframes contentFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== ШАПКА ===== */
header {
  background-color: rgba(10, 10, 10, 0.95) !important;
  border-bottom: 2px solid var(--color-red) !important;
  backdrop-filter: blur(8px);
  animation: contentFadeUp 1s ease-out 0.2s both;
}

header a,
nav a {
  color: var(--color-white) !important;
  position: relative;
  transition: color var(--transition);
}

header a:hover,
nav a:hover {
  color: var(--color-red-light) !important;
}

nav a::after,
header a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width var(--transition);
}

nav a:hover::after,
header a:hover::after {
  width: 100%;
}

/* ===== ЛОГОТИП ===== */
.logo,
.site-logo,
header .logo {
  filter: drop-shadow(0 0 8px rgba(225, 6, 0, 0.6));
  transition: filter var(--transition);
}

.logo:hover,
.site-logo:hover {
  filter: drop-shadow(0 0 16px rgba(225, 6, 0, 1));
}

/* ===== ЗАГОЛОВКИ ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-white);
  letter-spacing: 0.5px;
}

h1 {
  text-shadow: 0 0 20px rgba(225, 6, 0, 0.5);
}

h2 {
  border-left: 4px solid var(--color-red);
  padding-left: 14px;
}

/* ===== КНОПКИ ===== */
button,
.btn,
a.button,
input[type="submit"],
.button {
  background: linear-gradient(135deg, var(--color-red) 0%, var(--color-red-dark) 100%) !important;
  color: var(--color-white) !important;
  border: 2px solid var(--color-red) !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 24px !important;
  transition: all var(--transition) !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

button:hover,
.btn:hover,
a.button:hover,
input[type="submit"]:hover,
.button:hover {
  background: var(--color-red-light) !important;
  border-color: var(--color-white) !important;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(225, 6, 0, 0.6);
}

button:active,
.btn:active,
a.button:active {
  transform: translateY(0) scale(0.98);
}

button::before,
.btn::before,
a.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

button:hover::before,
.btn:hover::before,
a.button:hover::before {
  left: 100%;
}

/* ===== КАРТОЧКИ ТОВАРОВ (СЕЛЕКТОРЫ ДЛЯ ВАШЕЙ ТЕМЫ) ===== */
/* Ищем по частичному совпадению класса Product-module__card / item / wrapper */
[class*="Product-module__card"],
[class*="Product-module__item"],
[class*="Product-module__wrapper"] {
  background-color: var(--color-black-soft) !important;
  border: 1px solid rgba(225, 6, 0, 0.3) !important;
  border-radius: var(--radius) !important;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease !important;
}

[class*="Product-module__card"]:hover,
[class*="Product-module__item"]:hover,
[class*="Product-module__wrapper"]:hover {
  transform: translateY(-8px);
  border-color: var(--color-red) !important;
  box-shadow: 0 15px 40px rgba(225, 6, 0, 0.4);
}

/* Картинка товара — точно ваш класс */
.Product-module__img,
[class*="Product-module__img"] {
  transition: transform 0.5s ease, filter 0.5s ease;
}

[class*="Product-module__card"]:hover [class*="Product-module__img"],
[class*="Product-module__item"]:hover [class*="Product-module__img"],
[class*="Product-module__wrapper"]:hover [class*="Product-module__img"] {
  transform: scale(1.08);
  filter: brightness(1.1) contrast(1.05);
}

/* ===== ЦЕНЫ ===== */
.price,
.product-price,
.product-card .price {
  color: var(--color-red-light) !important;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(225, 6, 0, 0.5);
}

.price-old,
.old-price,
del {
  color: var(--color-white-dim) !important;
  text-decoration: line-through;
}

/* ===== ФОРМЫ / ИНПУТЫ ===== */
input,
textarea,
select {
  background-color: var(--color-black-soft) !important;
  border: 1px solid rgba(225, 6, 0, 0.4) !important;
  color: var(--color-white) !important;
  border-radius: var(--radius) !important;
  padding: 10px 14px !important;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: var(--color-red) !important;
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.25) !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-white-dim) !important;
}

/* ===== ССЫЛКИ ===== */
a {
  color: var(--color-red-light);
  transition: color var(--transition);
}

a:hover {
  color: var(--color-white);
}

/* ===== СКРОЛЛБАР ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-black);
}

::-webkit-scrollbar-thumb {
  background: var(--color-red);
  border-radius: 5px;
  transition: background var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-red-light);
}

/* ===== ФУТЕР ===== */
footer {
  background-color: rgba(10, 10, 10, 0.95) !important;
  border-top: 2px solid var(--color-red) !important;
  color: var(--color-white-dim) !important;
  animation: contentFadeUp 1s ease-out 0.6s both;
}

footer a {
  color: var(--color-white-dim);
}

footer a:hover {
  color: var(--color-red-light);
}

/* ===== РАЗДЕЛИТЕЛИ ===== */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-red), transparent);
  margin: 24px 0;
}

/* ===== ПЛАВНАЯ ПРОКРУТКА ===== */
html {
  scroll-behavior: smooth;
}

/* ===== АДАПТИВ ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .main-content,
  #page,
  .wrapper {
    backdrop-filter: none;
    background-color: rgba(10, 10, 10, 0.92);
  }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
}

/* ===== ДОСТУПНОСТЬ ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}