/* ============================================================
   Windows-pro.store — «Ледяное стекло» (Frost Glass Web 3.0)
   Подключать ПОСЛЕ style.css:
   <link rel="stylesheet" href="/views/winprostore/css/glass-web3-frost.css">
   ============================================================ */

:root {
  --accent: #7c3aed;
  --accent-2: #0ea5e9;
  --ink: #1e2430;
  --gray: #5c6470;
  --bg: #eef1fa;
}

/* ---------- Фон: морозный градиент + плывущие орбы ---------- */

body {
  background: var(--bg);
  color: var(--ink);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(130px);
  z-index: -1;
  pointer-events: none;
}
body::before {
  width: 560px; height: 560px;
  background: rgba(167, 139, 250, 0.38);
  top: -14%; left: -10%;
  animation: orb-a 26s ease-in-out infinite alternate;
}
body::after {
  width: 500px; height: 500px;
  background: rgba(125, 211, 252, 0.36);
  bottom: -12%; right: -8%;
  animation: orb-b 32s ease-in-out infinite alternate;
}
@keyframes orb-a {
  from { transform: translate(0, 0); }
  to   { transform: translate(120px, 80px); }
}
@keyframes orb-b {
  from { transform: translate(0, 0); }
  to   { transform: translate(-100px, -70px); }
}

/* ---------- Стекло: общие свойства ---------- */

.sidebar,
.product__box,
.desc__box,
.trust__box,
.store-card,
.category-card,
.product-index,
.cookiebar,
.nav,
.footer {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.45) 100%
  );
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(255, 255, 255, 0.4),
    0 10px 40px rgba(30, 36, 48, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s ease;
}

/* Верхняя светящаяся кромка */
.sidebar::before,
.product__box::before,
.desc__box::before,
.trust__box::before,
.store-card::before,
.category-card::before,
.product-index::before {
  content: '';
  position: absolute;
  top: 0; left: 12%;
  width: 76%; height: 2px;
  border-radius: 2px;
  /*background: linear-gradient(90deg, transparent, var(--accent-2), var(--accent), transparent);*/
  opacity: .7;
  pointer-events: none;
  transition: opacity .4s ease;
}

/* Пробегающий блику солнечный отсвет */
.product-index::after {
  content: '';
  position: absolute;
  top: -60%; left: -80%;
  width: 55%; height: 220%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 45%,
    rgba(255, 255, 255, 0.1) 60%,
    transparent 100%
  );
  transform: rotate(18deg);
  transition: left .7s ease;
  pointer-events: none;
}
.product-index:hover::after {
  left: 130%;
}

/* ---------- Hover: подъём, свечение, кромка ярче ---------- */

.store-card:hover,
.category-card:hover,
.product-index:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 20px 50px rgba(124, 58, 237, 0.25),
    0 4px 16px rgba(14, 165, 233, 0.18);
}
.store-card:hover::before,
.category-card:hover::before,
.product-index:hover::before {
  opacity: 1;
}

/* ---------- Шапка и меню: парящее стекло ---------- */

.topbar {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--gray);
}
.topbar a { color: var(--gray); }
.header { background: transparent; padding: 20px 0; }
.header__slogan { color: var(--gray); }
.header__slogan strong { color: var(--ink); }

.nav {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 30px rgba(30, 36, 48, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 0;
}
.nav a {
  color: var(--ink);
  font-weight: 600;
  border-radius: 0;
  transition: background .25s ease, color .25s ease;
}
.nav a:hover {
  background: rgba(124, 58, 237, 0.10);
  color: var(--accent);
  text-decoration: none;
}

/* ---------- Крошки ---------- */

.breadcrumbs, .breadcrumbs a { color: var(--gray); }
.breadcrumbs a:hover { color: var(--accent); }

/* ---------- Сайдбар ---------- */

.sidebar { padding: 14px; }
.sidebar__group {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 12px;
  color: var(--ink);
  transition: background .25s ease, border-color .25s ease;
}
.sidebar__group:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.35);
}
.sidebar li a { color: #333e48; border-radius: 10px; }
.sidebar li a:hover {
  color: var(--accent);
  background: rgba(124, 58, 237, 0.10);
  font-weight: 600;
}
.sidebar__extra {
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 12px;
}

/* ---------- Страница товара ---------- */

.product__box { padding: 24px; gap: 28px; }
.specs li { border-bottom: 1px solid rgba(30, 36, 48, 0.08); }
.product__delivery {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 12px;
}
.product__delivery strong { color: #365b7e; }
.price__new {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.buy { border-left: 1px solid rgba(30, 36, 48, 0.08); }
.buy__btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.30);
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}
.buy__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.45);
}
.desc code {
  background: rgba(124, 58, 237, 0.08);
  color: var(--accent);
}

/* ---------- Заголовки и hero ---------- */

h1, h2, h3, h4 { color: var(--ink); }
.hero h1,
.hero .hero__title {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.slider { border-radius: 20px; overflow: hidden; }

/* ---------- Футер и cookie ---------- */

.footer {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  color: var(--gray);
  margin-top: 24px;
}
.footer a { color: var(--gray); }
.footer a:hover { color: var(--accent); }
.footer__copy { color: var(--gray); }

.cookiebar { background: rgba(255, 255, 255, 0.7); border-radius: 16px; }
.cookiebar__actions button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 12px;
}
.cookiebar__secondary {
  background: rgba(30, 36, 48, 0.08) !important;
  color: var(--ink) !important;
}

/* ---------- Доступность и мобильные ---------- */

@media (prefers-reduced-motion: reduce) {
  body::before, body::after { animation: none; }
  .store-card::after, .category-card::after, .product-index::after { display: none; }
}

@media (max-width: 480px) {
  .sidebar, .product__box, .desc__box, .trust__box,
  .store-card, .category-card, .product-index, .nav, .footer {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.9);
  }
}
