html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
.site-dropdown-menu {
    text-align: center !important;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* wrapper должен РАСТЯГИВАТЬСЯ */
.wrapper {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* футер уходит вниз */
footer {
  margin-top: auto;
  flex-shrink: 0;
}
body {
  font-family: Arial, sans-serif;
  background: radial-gradient(circle at top right, #7489ff, #b8c2ff);
  color: white;
  display: flex;
  flex-direction: column;
  padding-top: 0 !important;
}

    body::before, body::after {
      content: "";
      position: fixed;
      border-radius: 50%;
      z-index: -1;
      pointer-events: none;
    }

    body::before {
      top: 100px;
      right: 30px;
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(255, 172, 253, 0.4), transparent);
    }

    body::after {
      bottom: 80px;
      left: 60px;
      width: 300px;
      height: 300px;
      background: radial-gradient(circle, rgba(119, 61, 255, 0.4), transparent);
    }
      .navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    height: 30px;
     overflow: visible;
  }
.site-dropdown {
  position: absolute;
  left: 20px;
  top: 1px;
  z-index: 1100;
}

.site-button {
  background: none;
  border: none;
  padding: 5px 12px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: none;
  color: white; /* теперь белый текст, как у .nav-button */
  transition: background 0.2s ease;
}

.site-button:hover {
  background: rgba(255, 255, 255, 0.2); /* как .nav-button:hover */
}

.site-dropdown.open .site-button,
.site-button.active {
  background: rgba(255, 255, 255, 0.3); /* как .nav-button.active */
}

.site-dropdown-menu {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  background-color: rgba(0, 0, 0, 0.06); /* стало темнее */
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); /* тоже чуть темнее */
  border-radius: 6px;
  padding: 8px 0;
  min-width: 180px;
  z-index: 1100;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2); /* контрастнее граница */
}
.site-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(255, 255, 255, 0.15); /* прозрачная стрелка */
  filter: blur(0.5px);
  backdrop-filter: blur(5px);
}

.site-dropdown-menu li {
  padding: 8px 20px;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.site-dropdown-menu li:hover {
  background-color: rgba(255, 255, 255, 0.2); /* как .nav-button:hover */
}

.site-dropdown-menu li a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}


.site-dropdown.open .site-dropdown-menu {
  display: block;
}
    .back-button {
      position: absolute;
      top: 40px;
      left: 20px;
      background: #4460ff;
      color: white;
      border: none;
      padding: 8px 15px;
      border-radius: 20px;
      cursor: pointer;
      font-weight: bold;
      transition: 0.3s;
      text-decoration: none;
      z-index:10000;
    }
    .back-button:hover { background: #5871ff; }

.product-section {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 100px auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(88, 113, 255, 0.3);
  margin-bottom: 20px;
  overflow: hidden;
  box-sizing: border-box;
  text-align: center;
  min-height: 350px;
}

.product-section::before {
  content: "• • • • • • • • • • • • •";
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  color: #5871ff;
  font-size: 20px;
  letter-spacing: 8px;
  font-weight: bold;
  font-family: monospace;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.product-section::after {
  content: "• • • • • • • • • • • • •";
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  color: #5871ff;
  font-size: 20px;
  letter-spacing: 8px;
  font-weight: bold;
  font-family: monospace;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.product-section::before {
  top: 10px;
}

.product-section::after {
  bottom: 10px;
}
    .product-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 20px;
      margin-top: 30px;
    }

    .product-card {
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 12px;
      padding: 15px;
      text-align: center;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .product-card img {
      width: 100%;
      height: 180px;
      object-fit: contain;
      border-radius: 10px;
      margin-bottom: 10px;
    }

    .product-card h2 {
      font-size: 18px;
      margin: 10px 0;
      color: white;
    }

    .product-card .price {
      font-weight: bold;
      color: #4460ff;
      margin-bottom: 10px;
    }

    .product-card .btn {
      display: inline-block;
      background: #4460ff;
      color: white;
      padding: 8px 14px;
      border-radius: 6px;
      font-size: 14px;
      text-decoration: none;
      transition: background 0.2s;
    }

    .product-card .btn:hover {
      background: #5871ff;
    }

    .filter-btn {
      background: #fff;
      color: #4460ff;
      border: none;
      padding: 10px 16px;
      margin: 0 6px;
      border-radius: 20px;
      cursor: pointer;
      font-weight: bold;
      transition: 0.2s;
    }
    .filter-btn:hover {
      background: #4460ff;
      color: white;
    }
    .filter-btn.active {
      background: #4460ff;
      color: white;
    }

footer {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  padding: 20px 0;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  width: 100%;
  margin-top: auto; /* ← ДОБАВЬ ЭТО */
  flex-shrink: 0; /* ← ДОБАВЬ ЭТО */
  
}
footer a.button {
  display: inline-block;
  background: #4460ff;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 20px;
}

    footer .footer-grid {
      max-width: 900px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 40px;
      justify-content: center;
      font-size: 13px;
      padding: 0 20px;
        text-align: center;
    }


footer h3 {
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 5px;
  font-size: 15px;
  color: white;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: white;
}

.social-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 10px;
}

.social-icons img {
  width: 30px;
  height: 30px;
}
/* Центрирование кнопки "Связь с нами" в футере на десктопе */
footer a.button {
  display: inline-block;
  margin: 0 auto 20px; /* центрирование по горизонтали */
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
    .socials img { width: 30px; height: 30px; }
.custom-sort-dropdown {
  position: relative;
  float: left;
  margin: 20px 0;
  clear: both;
  z-index: 10000;
  transform: translateZ(0);
}


.custom-sort-btn {
  background: rgba(0, 0, 0, 0.01);
  z-index: 10000;
  position: relative;
  backdrop-filter: blur(5px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.custom-sort-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.custom-sort-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background-color: rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  min-width: 200px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 10000; /* ← УВЕЛИЧЬ Z-INDEX */
  padding: 0;
  list-style: none;
   margin-top: 5px;
    transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.custom-sort-menu li {
  color: white;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
  
}

.custom-sort-menu li:hover {
  background: rgba(255, 255, 255, 0.2);
}

.custom-sort-dropdown.open .custom-sort-menu {
  display: block;
  
}
.sort-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}

.sort-label {
  color: white;
  font-weight: bold;
  font-size: 14px;
}
.sort-search-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
  position: relative;
}

.sort-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.search-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

#searchInput {
  padding: 10px 16px;
  border-radius: 20px;
  border: none;
  outline: none;
  width: 260px;
  font-size: 14px;
  font-weight: bold;
  background: rgba(255,255,255,0.1);
  color: white;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
  transition: 0.3s ease;
}

#searchInput::placeholder {
  color: rgba(255,255,255,0.5);
}
.sort-search-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0;
  position: relative;
}

.sort-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
#searchInput {
  width: 100%;
  padding: 10px 15px;
  border-radius: 30px; /* Более округлённые углы */
  border: 2px solid #a5b8ff;
  background-color: #cfd6ff;
  color: #000000;
  font-size: 16px;
  font-weight: normal;
  margin-top: 5px;
  box-sizing: border-box;
  transition: border-color 0.3s, background-color 0.3s;
}

#searchInput::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#searchInput:focus {
  border-color: #7489ff;
  background-color: #ffffff;
  color: #000000;
}
@media (max-width: 768px) {

  body {
    display: flex !important;
    flex-direction: column !important;
  }

  .wrapper {
    flex: 1 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  footer {
    margin-top: auto !important;
    flex-shrink: 0 !important;
    position: relative !important;
  }
}

/* 📱 Адаптив под мобильные устройства */
@media (max-width: 768px) {

  /* 🔹 Навбар */
  .navbar {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    height: 30px;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-button {
    padding: 12px;
    width: 100%;
    font-size: 14px;
  }

  .second-navbar {
    display: none !important;
  }

  .site-dropdown {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    left: auto;
    transform: none;
    width: 100%;
    margin-bottom: 10px;
  }

  .site-dropdown ul,
  .site-dropdown footer {
    text-align: center;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .site-dropdown button,
  .site-dropdown .nav-button,
  .site-dropdown a.btn,
  .site-dropdown .btn-pay {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 10px auto !important;
    text-align: center !important;
    width: auto !important;
    min-width: 140px;
  }


  .top-right-logo {
    position: static;
    display: flex;
    justify-content: center;
    margin: 10px auto;
    height: 100px;
  }

  .top-right-logo img {
    height: 80px;
  }



  .back-button {
    position: absolute !important;
    top: 50px !important;
    left: 20px !important;
    margin: 0 !important;
    transform: none !important;
  }

  .product-section {
    width: 90% !important;
    max-width: 700px !important;
    padding: 20px 15px !important;
    border-radius: 25px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-sizing: border-box !important;
    text-align: center !important;
    position: relative !important;
  }


  .product-section h1 {
    font-size: 22px !important;
    margin-bottom: 15px !important;
    text-align: center !important;
  }

.product-section::before,
.product-section::after {
  content: "• • • • • • • • • • • • •";
  position: absolute;
  left: 0;
  right: 0;
  color: #5871ff;
  font-size: 20px;
  letter-spacing: 8px;
  font-weight: bold;
  font-family: monospace;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  padding: 0 20px; /* Добавлено чтобы точки не прилипали к краям */
  box-sizing: border-box;
}

.product-section::before {
  top: 10px;
}

.product-section::after {
  bottom: 10px;
}

  /* 🔹 Поиск и сортировка */
  .sort-search-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    margin: 20px auto !important;
    width: 100% !important;
    position: static !important;
  }

  .search-center {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    position: static !important;
    transform: none !important;
  }

  #searchInput {
    width: 90% !important;
    max-width: 300px !important;
    padding: 10px 15px !important;
    border-radius: 30px !important;
    border: 2px solid #a5b8ff !important;
    background-color: #cfd6ff !important;
    color: #000 !important;
    font-size: 15px !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .sort-left {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: center !important;
  }

  .custom-sort-btn {
    background: rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(5px) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    max-width: 160px !important;
  }

  /* 🔹 Сетка карточек */
  .product-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
    justify-items: center !important;
  }

  @media (max-width: 520px) {
    .product-grid {
      grid-template-columns: 1fr !important;
    }
  }

  /* 🔹 Карточка товара */
  .product-card {
    width: 100% !important;
    max-width: 260px !important;
    padding: 12px !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    text-align: center !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .product-card img {
    width: 100% !important;
    border-radius: 10px !important;
  }

  .product-card h2 {
    font-size: 15px !important;
  }

  .product-card .price {
    font-size: 14px !important;
  }

  .product-card .btn {
    font-size: 13px !important;
    padding: 6px 12px !important;
    margin-top: 8px !important;
  }

}

@media (max-width: 768px) {
  body::before {
    top: 100px !important;
    right: 30px !important;
    width: 300px !important;
    height: 300px !important;
  }

  body::after {
    bottom: 80px !important;
    left: 60px !important;
    width: 200px !important;
    height: 200px !important;
  }
}

@media (max-width: 480px) {
  body::before {
    top: 100px !important;
    right: 20px !important;
    width: 250px !important;
    height: 250px !important;
  }

  body::after {
    bottom: 80px !important;
    left: 40px !important;
    width: 180px !important;
    height: 180px !important;
  }
}

/* 📱 Очень узкие экраны */
@media (max-width: 480px) {
  .navbar {
    padding: 10px 0 !important;
  }

  .site-button {
    font-size: 13px !important;
  }

  .product-card h2 {
    font-size: 14px !important;
  }

  .product-card .btn {
    font-size: 13px !important;
    padding: 6px 10px !important;
  }

  footer {
    font-size: 13px !important;
  }



}
 /* Футер */
 @media (max-width: 768px) {
  footer,
  .footer-inner,
  .footer-links,
  .footer-block,
  footer > div,
  footer ul,
  footer li {
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
  }

  footer a,
  footer button,
  footer .btn,
  footer .pay-btn,
  footer a[href*="wa.me"],
  footer .footer-button,
  footer a.button {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 10px auto !important;
    text-align: center !important;
    float: none !important;
    position: static !important;
    left: auto !important;
    transform: none !important;
  }

  /* если кнопки внутри flex-контейнера */
  footer div[style*="display:flex"] {
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    text-align: center !important;
    gap: 10px !important;
  }
}


/* --- Фикс скролла и полосы на мобильных --- */
@media (max-width: 768px) {

  html, body {
    width: 100% !important;
    overflow-x: hidden !important;
    padding: 0;
    margin: 0;
  }

body {
  background: radial-gradient(circle at top right, #7489ff, #b8c2ff);
  background-attachment: relative;
  background-size: 100% 130vh;
  background-repeat: no-repeat;
}

  .wrapper {
    flex: 1 0 auto !important;
    overflow-y: auto !important;     /* <-- переносим скролл сюда */
    -webkit-overflow-scrolling: touch;
    
  }

  footer {
    position: relative !important;   /* <-- возвращаем нормальный футер */
    bottom: 0;
    left: 0;
    right: 0;
    margin-top: auto !important;
  }

  /* Чтобы круги больше НЕ давали горизонтальный скролл */
  body::before,
  body::after {
    overflow: hidden !important;
    max-width: 100% !important;
    clip-path: inset(0 0 0 0);
  }
}