* {
  margin: 0;
  padding: 0;
}
body {
  overscroll-behavior: none;
  background-color: #f6f7f8;
  position: relative;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: #000;
  min-width: 320px;
  overflow-x: hidden;
  height: auto;
}

li {
  list-style-type: none;
}

.navbar-menu li a {
  text-decoration: none;
  padding: 10px;
  transition: all .07s ease-in-out;
  color: black;
}

.navbar-menu li a:hover .header-text {
  opacity: 1;
}

.header-text {
  opacity: 0.6;
  transition: opacity 0.07s ease-in-out;
}

.navbar-menu li a img {
  opacity: 1 !important;
}

.platforms_categories {
  margin-top: 1.5%;
  display: flex;
  flex-direction: row;
  height: 40px;
  width: 100%;
}

.platforms_categories a {
  flex: 1;
  height: 100%;
}

.platforms_categories_item {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platforms_categories_item first {
  border-radius: 20px 20px 0 0;
}

.platforms_categories_item_img {
  height: 100%;
}


.profile {
  margin-left: 30px;
  padding: 10px 30px;
  background-color: #f6f7f8;
  border-radius: 100px;
  color: black;
  text-decoration: none;
  transition: all .1s ease-in-out;
}
.profile:hover {
  transform: scale(1.04);
}


.callback {
  margin-left: 30px;
  padding: 0 30px;
  background: linear-gradient(to right, #548cc7, #546fc7);
  border-radius: 100px;
  color: white;
  text-decoration: none;
  transition: all .1s ease-in-out;
  display: flex;
  align-items: center;
  height: 40px;
  margin-top: auto;
  margin-bottom: auto;
}

.callback:hover {
  transform: scale(1.04);
}

.navbar-brand {
  font-weight: 700;
  font-size: 26px;
  text-decoration: none;
  color: black;
}

main {
  margin-left: 3%;
  margin-right: 3%;
  margin-bottom: 3%;
}

.main-container {
  background-color: white;
  margin-top: 1.5%;
  display: flex;
  flex-direction: column;
  padding: 24px;
  scrollbar-width: none; /* для Firefox */
  border-radius: 20px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.main-container h1 {
  font-size: 20px;
  font-weight: bold;
}



.top-prod-title {
  font-size: 24px;
  font-weight: bold;
  color: #0fc44d;
}


.top-tovar {
  width: 195px;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  background-color: #333;
}



.filters {
  margin-top: 1.5%;
  background: linear-gradient(to right, #548cc7, #546fc7);
  padding: 24px;
  border-radius: 20px;
  display: flex;
  align-items: center;
}

.filter_button {
  color: white;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 10px 20px;
  margin-right: 12px;
  white-space: nowrap; /* запрещаем перенос строк */
  display: inline-block;
  font-size: 16px;
}

.filter_button.active {
  background-color: white !important;
  color: black !important;
  border: 1px solid #ddd !important;
  font-weight: bold !important;
}

/* Затухания по краям */
.fade-left_filter, .fade-right_filter {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.fade-left_filter.hidden, .fade-right_filter.hidden {
opacity: 0; 
}

.fade-left_filter {
  left: 0;
  background: linear-gradient(to right, #548cc7 0%, transparent 100%);
}

.fade-right_filter {
  right: 0;
  background: linear-gradient(to left, #546fc7 0%, transparent 100%);
}

.product-grid-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
  margin-top: 20px;
  /* max-width: 600px; */
}  

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
  margin-top: 20px;
  /* max-width: 600px; */
}  

.product-card {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.2s ease;
  max-width: 420px;
}

.product-card_img {
  border-radius: 15px;
  width: 100%;
  aspect-ratio: 4 / 3; /* или 4 / 3 в зависимости от твоего желаемого формата */
  object-fit: cover;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}


.product-card .price {
  font-weight: bold;
  font-size: 18px;
  color: #0fc44d;
  margin-top: 10px;
  margin-bottom: 0;
  margin-left: 10px;
  margin-right: 10px;
  display: flex;          /* Добавьте это */
  align-items: center;    /* Добавьте это */
  gap: 4px;              /* Добавьте это - расстояние между числом и рублем */
}

.product-card .description {
  font-size: 16px;
  color: #333;
  margin: 0 10px 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rouble_img {
  width: 13px; 
  height: 14px; 
  border-radius: 0;
  display: inline-block; /* Убедитесь, что это есть */
  vertical-align: middle;
}

.stars_index {
  display: flex;
  align-items: center; 
  margin-bottom: 10px;
  margin-left: 10px;
  gap: 7px;
}

.reviews_index {
  color: #000;
  font-size: 14px;
}

.reviews {
  font-size: 15px;
  color: #888;
}

.star_img {
  height: 18px;
  width: 18px;
}

.channel {
  grid-area: channel;
}

.tags_filter {
  cursor: pointer;
  grid-area: tags;
}

.tags {
  grid-area: tags;
}

.cost {
  grid-area: cost;
}

.popularity_filter {
  cursor: pointer;
  grid-area: popularity;
}

.popularity {
  grid-area: popularity;
}
.socialmedia {
  grid-area: socialmedia;
}

.select {
  /*убираем стрелочку*/
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /*убираем дефолтную обводку*/
  outline: none;
  width: 100%;
  font-size: 16px;
  border: none;
  color: white;
  background-color: cornflowerblue;
  border-radius: 6px;
  padding-right: 15px;
  /*курсор изменяется при наведении */
  cursor: pointer;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 75px;
  transform: translateY(-50%);
  pointer-events: none;
/*  рисуем треугольник*/
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10.4px 6px 0 6px;
  border-color: white transparent transparent transparent;
}


.scroll-wrapper {
  position: relative;
  width: 100%;
}

.scroll-container {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
}

.scroll-container::-webkit-scrollbar {
  display: none; /* для Chrome/Safari */
}


/* Затухания по краям */
.fade-left, .fade-right {
position: absolute;
top: 0;
bottom: 0;
width: 60px;
z-index: 5;
pointer-events: none;
transition: opacity 0.3s ease;
}

.fade-left.hidden, .fade-right.hidden {
opacity: 0;
}

.fade-left {
left: 0;
background: linear-gradient(to right, white 0%, transparent 100%);
}

.fade-right {
right: 0;
background: linear-gradient(to left, white 0%, transparent 100%);
}


/* Стрелки */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: black;
  border: none;
  padding: 12px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  border-radius: 50%;
  transition: background 0.3s;
}

.scroll-btn:hover {
  background: rgba(0, 0, 0, 0.587);
}

.scroll-btn.left {
  left: 10px;
}

.scroll-btn.right {
  right: 10px;
}

.scroll-btn.hidden {
  display: none;
}



.product {
  margin-top: 10px;
  display: grid;
  grid-template-areas:
    'channel tags cost popularity socialmedia'
    '. . . chat more_details';
  grid-template-columns: 2fr repeat(3, 1fr) 160px;
  grid-template-rows: 30px;
  padding: 10px 30px;
  background-color: white;
  border-radius: 20px;
  color: black;
  justify-content: space-between;
  align-items: center;
  /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06); Добавим тень, чтобы было видно границу */
}

.chat {
  cursor: pointer;
  transition: all .1s ease-in-out;
  grid-area: chat;
  font-size: 16px;
  width: 160px;
  height: 40px;
  padding: 10px 30px;
  margin-top: 30px;
  background-color: limegreen;
  color: white;
  border-radius: 100px;
  border: none;
}
.chat:hover {
  transform: scale(1.04);
}

.more {
  cursor: pointer;
  transition: all .1s ease-in-out;
  grid-area: more_details;
  text-decoration: none;
  font-size: 16px;
  width: 160px;
  height: 40px;
  padding: 10px 30px;
  margin-top: 30px;
  background: darkturquoise;
  color: white;
  border-radius: 100px;
  border: none;
}
.more:hover {
  transform: scale(1.04);
}

.main-profile-container {
  margin-top: 1.5%;
  display: flex;
  background-color: white;
  width: 100%;
  height: 600px;
  border-radius: 20px;
  /* box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); Добавлена тень */
}


.left_analitics {
  display: flex;
  flex-direction: column;
  background-color: lightgray;
  width: 40%;
  height: 94%;
  margin: 20px;
  margin-right: 10px;
  border-radius: 20px;
}

.left_analitics_title {
  margin-left: 20px;
  margin-top: 15px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 50px;
}

.avatar {
  height: 40px;
  width: 40px;
  background-color: black;
  border-radius: 100px;
  margin-right: 10px;
}

.left_analitics_ul {
  margin-left: 5px;
  height: 300px;
}

.br_li {
  font-weight: bold;
  margin-top: 10px;
}

.right_container {
  display: flex;
  flex-direction: column;
  width: 60%;
}

.over_analitics {
  flex: 1;
  background-color: lightgray;
  margin: 20px;
  margin-left: 10px;
  border-radius: 20px;
  max-height: 270px;
}

.over_analitics_title {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  height: 50px;
}


.right_bottom {
  flex: 1;
  margin: 20px;
  margin-left: 10px;
  display: flex;
  flex-direction: column;
}

.right_bottom_top {
  display: flex;
  width: 100%;
  height: 50%;
  flex: 1;
}

.right_bottom_top_right {
  width: 50%;
}

.right_bottom_top_left {
  width: 50%;
}

.right_bottom_bottom_buttons {
  display: flex;
  height: 50%;
  width: 100%;
  align-items: flex-end;
  justify-content: flex-end;
  flex: 1;
}



.other_media a {
  text-decoration: none;
}

.give_id_container {
  margin-top: 1.5%;
  display: flex;
  background-color: white;
  width: 100%;
  height: 100px;
  border-radius: 20px;
}

.container_in_give_id_box {
  display: flex;
  margin: 20px;
  background-color: white;
  width: 100%;
  height: 60px;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

.select_for_id {
  /*убираем стрелочку*/
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  /*убираем дефолтную обводку*/
  outline: none;
  width: 100%;
  font-size: 16px;
  border: none;
  color: black;
  background-color: #f6f7f8;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  padding: 10px;
  /*курсор изменяется при наведении */
  cursor: pointer;
}

.form-field input[type="text"] {
  width: -webkit-fill-available;
  padding: 10px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  background-color: #f6f7f8;
}

form .checkbox {
  margin-right: 10px;
}


#tags-menu {
  position: absolute;
  top: 60px;
  left: 30%;
  width: 150px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 15px;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1001;
}

#tags-menu.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

#tags-menu label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

.platforms {
  margin-top: 24px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.category-item {
  flex: 0 0 auto;
  width: 134px;
  height: 172px; /* увеличим высоту под текст */
  margin-right: 20px;
  
  overflow: hidden;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column; /* теперь вертикально */
  justify-content: flex-start;
  align-items: center;
  background-color: white;
  padding: 10px 0; /* немного отступов */
  box-sizing: border-box;
}

.category-item img {
  max-width: 100%;
  max-height: 134px; /* ограничим по высоте */
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 10px;
}

.category-title {
  font-size: 14px;
  text-align: center;
  color: #333;
  word-break: break-word;
}

.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  max-width: 420px;
}

.footer {
  background-color: #f6f7f8;
  padding: 30px 20px;
  margin-top: 40px;
}

.footer h1 {
  font-size: 20px;
  font-weight: bold;
}

.footer h4 {
  margin-bottom: 10px;
  color: #888;
}

.footer_flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer_items {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
}

.footer_items h1 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.footer_items_item {
  display: flex;
  flex-direction: row;
  margin-top: 10px;
}

.footer_items_item a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer_items_item a:hover {
  color: #548cc7;
}

.footer h4 {
  margin-bottom: 10px;
  color: #888;
  font-size: 14px;
  text-align: center;
}

/* Стили для модального окна */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.modal-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.reset-btn {
  justify-self: start;
  color: black;
  padding: 0;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.reset-btn:hover {
  color: #548cc7;
}

.modal-top h3 {
  justify-self: center;
}

.close {
  color: #aaa;
  justify-self: end;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}

.radio_choice {
  cursor: pointer;
}

.price-options {
  margin: 20px 0;
}

.price-option {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 5px;
  transition: all 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-option:hover {
  background-color: #f5f5f5;
}

.price-option input[type="radio"] {
  margin-right: 10px;
}

.price-range {
  margin-top: 5px;
  margin-left: 25px;
  display: flex;
  gap: 10px;
}

.price-range input {
  width: 80px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.take_deal {
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(to right, #548cc7, #546fc7);
  width: 100%;
  height: 52px;
  font-weight: bold;
}

.apply-btn:hover {
  background-color: #45a049;
}

.price-option.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* Стили для модального окна подписчиков */
.subscribers-range {
  padding: 20px;
}

.range-inputs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.range-input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 100%;
}


.filter_button.active {
  background-color: white;
  color: black;
  border: 1px solid #ddd;
}

#loading {
  margin: 20px 0;
}

.end-message {
  margin: 30px 0;
  color: #666;
  font-size: 16px;
  text-align: center;
  grid-column: 1 / -1; /* Для grid-контейнера */
}
@media (max-width: 768px) {
  .product-grid {
      justify-content: center;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .product-grid-top {
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

  .main-container {
      margin: 1.5% 0 0 0;
      border-radius: 0;
      padding: 20px 10px;
  }

  .filters, header, .sticky > .relative > div:first-child {
      margin-left: 0 !important;
      margin-right: 0 !important;
      border-radius: 0 !important;
  }

  .sticky {
      position: static !important; /* убираем прикрепление */
  }

  main {
      margin-left: 0;
      margin-right: 0;
  }
}
@media (max-width: 1024px) {
  .footer {
    margin-left: 0;
    margin-right: 0;
    padding: 20px 15px;
    margin-bottom: 60px; /* Добавляем отступ для нижнего header'а */
  }
  
  .footer_flex {
    flex-direction: column;
    gap: 25px;
  }
  
  .footer_items {
    min-width: 100%;
    margin-bottom: 15px;
  }
  
  .footer_items h1 {
    font-size: 16px;
  }
  
  .footer_items_item a {
    font-size: 13px;
  }
  
  .footer h4 {
    font-size: 12px;
    line-height: 1.4;
  }
}

/* Для узких экранов */
@media (max-width: 480px) {
  .footer {
    padding: 15px 10px;
    margin-bottom: 56px;
  }
  
  .footer_flex {
    gap: 20px;
  }
  
  .footer_items h1 {
    font-size: 15px;
  }
  
  .footer_items_item a {
    font-size: 12px;
  }
  
  .footer h4 {
    font-size: 11px;
  }
}

/* Для самых узких экранов */
@media (max-width: 320px) {
  .footer {
    margin-bottom: 52px;
  }
  
  .footer_flex {
    gap: 15px;
  }
  
  .footer_items h1 {
    font-size: 14px;
  }
}

