.main-container {
  max-width: 1440px; /* ограничение сверху */
  width: 100%; /* занимает всё доступное пространство до 1360px */
  margin: 0 auto; /* центрирование */
  padding: 0 20px; /* внутренние отступы от краёв экрана */
  box-sizing: border-box;
}

.top-menu-wrapper {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  gap: 15px;
  height: 38px;
}

.cur-lang-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
}

.currencies-box {
  display: block;
}

.store-data-wrapper {
  display: block;
}

.menu-mobile-new {
  display: none;
  width: 40px;
  height: 36px;
}

.logo-search-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-top: 8px;
  width: 100%;
  margin-bottom: 12px;
}

.logo-new {
  flex-shrink: 0;
  width: auto;
}

.search-wrapper-main {
  margin-top: 4px;
  flex: 1; /* занимает доступное пространство */
  min-width: 350px; /* можно уменьшить, если нужно */
  width: 550px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
}
.search-wrapper-main a {
  color: #333;
}

.main-data-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.column-right {
  width: 220px;
  flex-shrink: 0;
}

.categories-wrapper-new {
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  border-left: 1px solid #e5e5e5;
  margin-bottom: 40px;
}

.main-categories-text {
  color: #337ab7;
  font-size: 30px;
  margin-bottom: 4px;
}

.products-wrapper-new {
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  border-left: 1px solid #e5e5e5;
  margin-bottom: 64px;
}

.margin-20 {
  margin-bottom: 20px;
}

.margin-16 {
  margin-bottom: 16px;
}

.brands-color {
  background-color: #fff3b5;
  align-items: center;
  padding: 6px;
  border: 1px solid #e5e5e5;
  margin-bottom: 8px !important;
}

#brand-form label {
  margin-bottom: 0;
}
.products-navi-wrapper {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 16px;
  width: 100%;
  gap: 12px;
}

.products-sort {
  margin-left: 4px;
}

.category-wrapper {
  position: relative;
  width: 20%;
  border-right: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  height: 266px;
}

.category-wrapper:nth-child(-n + 5) {
  border-top: 1px solid #e5e5e5;
}

.product-wrapper {
  max-width: 208px;
}

.product-100 {
  width: 20%;
  height: 420px;
  position: relative;
}

.product-100:nth-child(-n + 5) {
  border-top: 1px solid #e5e5e5;
}

.filter-190 {
  /* box-sizing: content-box; */
  width: 220px;
}

.close-filters-button {
  display: none;
}

form[id="filter"] {
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
}

form[id="filter"]::-webkit-scrollbar {
  width: 6px; /* ширина полосы прокрутки */
}

form[id="filter"]::-webkit-scrollbar-track {
  background: #e0e0e0; /* цвет дорожки */
  border-radius: 10px;
}

form[id="filter"]::-webkit-scrollbar-thumb {
  background-color: #aaa; /* цвет бегунка */
  border-radius: 10px; /* скруглённый бегунок */
}

form[id="filter"]::-webkit-scrollbar-thumb:hover {
  background-color: #888; /* цвет при наведении */
}

.margin-16 {
  margin-top: 16px;
}

.total-quantity {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #337ab7;
  left: 16px;
  top: -11px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.manufacturer-190 {
  width: 100%;
}

.price-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 2px 12px 16px 12px;
  height: 60px;
  width: 100%;
}

/* карусель */

.carousel-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto 40px auto;
  overflow: hidden;
}

.carousel-new {
  overflow: hidden;
  width: 100%;
}

.carousel-track-new {
  display: flex;
  transition: transform 0.4s ease;
}

.product-carousel {
  position: relative;
  flex: 0 0 calc(20% - 8.5px);
  margin-right: 9px;
  border: 1px solid #e5e5e5;
  height: 420px;
}

.card {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.card .description {
  display: none;
}

.card:hover {
  z-index: 100;
  background: #fff;
  position: absolute;
  border-right: 1px solid #d0d0d0;
  border-top: 2px solid #d0d0d0;
  border-bottom: 1px solid #d0d0d0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.card:hover .description {
  display: block;
  padding: 0 15px 15px;
}

.card .thumbnail-new {
  position: relative;
  width: 100%;
  height: 190px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  padding-left: 4px;
  padding-right: 4px;
}

.card .thumbnail-new a {
  display: block;
  width: 100%;
  height: 100%;
}

.card .thumbnail-new a img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 🟢 сжимает с сохранением пропорций, не обрезает */
  display: block;
}

.card h4.title {
  -webkit-line-clamp: 5;
}

.not-avaiable {
  width: 100%;
  text-align: center;
  margin-bottom: 24px;
  font-weight: 600;
}

.carousel-btn {
  z-index: 9999;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 30px;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.carousel-btn.prev {
  left: 10px;
}
.carousel-btn.next {
  right: 10px;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 1);
}

/* конец карусели */

/* баннер */

.banner-carousel {
  position: relative;
  width: 100%;
  max-width: 1156px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.slide {
  flex: 0 0 100%; /* один баннер на экран */
}

.slide img {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.manufacturer-list select {
  background-color: #fff3b5; /* светло-серый фон */
  color: #333; /* цвет текста */
  border: 1px solid #ccc; /* рамка */
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  /* -webkit-appearance: none;
  appearance: none; */
}

.manufacturer-list select:focus {
  border: 1px solid #333;
  outline: none;
  box-shadow: none;
}

/* конец */

@media (max-width: 991px) {
  .menu-mobile-new {
    display: block;
  }

  .store-data-wrapper {
    position: absolute;
    z-index: 9999;
    top: 50px;
    right: -10px;
    width: 200px;
    padding: 10px;
    text-align: right;
    background: #f8faff;
    border: 1px solid #d0e3f5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    opacity: 0; /* 🫧 скрыто */
    transform: translateY(-10px); /* ⬆️ немного выше */
    pointer-events: none; /* 🚫 не кликабельно пока скрыто */
    transition: all 0.3s ease; /* ⚙️ плавный переход */
  }

  /* Когда меню активно */
  .store-data-wrapper.active {
    opacity: 1; /* 🟦 появляется */
    transform: translateY(0); /* 🧭 возвращается на место */
    pointer-events: auto; /* ✅ снова кликабельно */
  }

  .logo-search-wrapper {
    margin-top: 2px;
    display: block;
  }

  .logo-new {
    text-align: center;
    float: none;
  }
  .search-wrapper-main {
    width: 100%;
  }

  .main-data-wrapper {
    display: flex; /* остаётся flex-контейнером */
    flex-direction: column; /* колонки одна под другой */
    align-items: center;
  }

  .column-right {
    width: 100%;
    text-align: left;
  }

  .basket-mobile {
    display: block;
    position: absolute;
    left: -60px;
    top: 3px;
  }

  .total-quantity {
    width: 18px;
    height: 18px;
    background-color: #337ab7;
    left: 9px;
    top: -8px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
  }

  .top-menu-wrapper {
    height: 42px;
  }
}

/* grid media */
@media (min-width: 1181px) and (max-width: 1400px) {
  .category-wrapper {
    width: 25%;
    border-top: none;
  }

  .category-wrapper:nth-child(5),
  .product-100:nth-child(5) {
    border-top: none;
  }

  .product-100 {
    width: 25%;
    height: 420px;
  }
  .card {
    flex: 0 0 calc(25% - 8px);
  }

  .product-carousel {
    flex: 0 0 calc(25% - 8px);
  }
}

@media (min-width: 768px) and (max-width: 1180px) {
  .category-wrapper {
    width: 33.3333%;
    border-top: none;
  }

  .products-navi-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .category-wrapper:nth-child(5),
  .category-wrapper:nth-child(4),
  .product-100:nth-child(5),
  .product-100:nth-child(4) {
    border-top: none;
  }

  .product-100 {
    width: 33.3333%;
    height: 420px;
  }

  .card {
    flex: 0 0 calc(33.33% - 8px);
  }

  .product-carousel {
    flex: 0 0 calc(33.3% - 8px);
  }
}

@media (max-width: 767px) {
  .main-container {
    padding: 0 8px; /* внутренние отступы от краёв экрана */
  }
  .products-navi-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .categories-wrapper-new {
    margin-left: 0;
    margin-right: 0;
    border: 0;
  }
  .category-wrapper {
    width: 50%;
    border-right: 0;
  }

  .category-wrapper:nth-child(5),
  .category-wrapper:nth-child(4),
  .category-wrapper:nth-child(3),
  .product-100:nth-child(5),
  .product-100:nth-child(4),
  .product-100:nth-child(3) {
    border-top: none;
  }

  .product-100 {
    width: 50%;
  }

  .card {
    flex: 0 0 calc(50% - 8px);
    height: 440px;
  }

  .product-carousel {
    flex: 0 0 calc(50% - 8px);
    height: 440px;
  }

  .card h4 {
    font-size: 14px;
  }

  .price-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    height: auto;
  }

  .price {
    margin-right: 0;
    margin-bottom: 8px;
    display: flex;
    gap: 4px;
    align-items: flex-end;
  }

  .price-wrapper span.productOldPrice {
    font-size: 12px;
  }

  .product-list-name {
    padding: 0 8px;
    height: 100px;
  }

  .product-list h4 {
    font-size: 14px;
  }

  .product-list .thumbnail img {
    max-width: 180px;
  }

  .category-list {
    padding: 9px;
  }
}

@media (min-width: 992px) {
  .basket-mobile {
    display: none;
  }

  .button-filters {
    display: none;
  }
}

.filters-wrapper {
  position: relative;
}

.filters {
  position: static;
}

@media (max-width: 991px) {
  .button-filters {
    position: sticky;
    top: 6px;
    display: flex;
    padding: 6px 56px 6px 24px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    width: fit-content;
    font-size: 16px;
    font-weight: bold;
    background-color: #337ab7;
    color: white;
    border-radius: 8px;
    border: 2px solid #337ab7;
    margin-bottom: 16px;
    z-index: 999;
  }

  .button-filters::before,
  .button-filters::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: translateY(-50%) rotate(-45deg);
  }
  .button-filters::after {
    right: 22px;
    opacity: 0.85;
    transform: translateY(-50%) rotate(-45deg);
  }
  .button-filters:hover {
    color: #fff3b5;
  }

  .filters-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none; /* скрыто по умолчанию */
    z-index: 999;
  }

  .close-filters-button {
    display: block;
    position: absolute;
    top: 16px;
    right: 20px;
    width: 26px;
    height: 26px;
    border: 2px solid #888;
    border-radius: 50%;
    cursor: pointer;
    background: #fff;
  }

  .close-filters-button::before,
  .close-filters-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: #555;
    transform-origin: center;
    transition: background 0.2s;
  }

  .close-filters-button::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .close-filters-button::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .filters {
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: #f6f6f6;
    transition: left 0.3s ease;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.2);
    padding: 20px 20px 20px 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .filter-190 {
    width: 260px;
  }

  .filters form {
    padding: 8px;
  }
  /* Когда открыто */
  .filters-wrapper.active {
    display: block;
  }

  .filters-wrapper.active .filters {
    left: 0;
  }
}

.h2-name {
  margin-top: 32px;
}
/* карусель картинок */

.main-pics-wrapper {
  height: 632px;
  border-right: 1px solid #e5e5e5;
  padding-right: 12px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
  box-sizing: border-box;
}

.pic-show {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
}

.pic-show img {
  max-width: 600px;
  max-height: 600px;
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
}

.thumbs-carousel {
  flex: 0 0 auto;
  overflow-y: auto;
  width: 148px;
  height: 632px;
}

.thumbs-track {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.4s ease;
  gap: 8px;
  width: 130px;
}

.thumbs-carousel::-webkit-scrollbar {
  width: 12px;
}

.thumbs-carousel::-webkit-scrollbar-track {
  background: #e5e5e5;
  border-radius: 6px;
}

.thumbs-carousel::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 6px;
}

.thumbs-carousel::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.thumb {
  position: relative;
  border: 1px solid #e5e5e5;
  width: 120px;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: zoom-in;
  border-radius: 4px;
}

.thumb:hover {
  border: 1px solid #888;
  box-shadow: 0 0 3px 2px #e5e5e5;
}

.thumb img {
  width: 110px;
  height: 110px;
  object-fit: contain; /* сохраняет пропорции, без обрезания */
}

.carousel-next {
  width: 0;
  height: 0;
  border-top: 50px solid transparent; /* половина высоты */
  border-bottom: 50px solid transparent; /* половина высоты */
  border-left: 30px solid #999; /* ширина + цвет стрелки */
  cursor: pointer;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.2));
}

.product-data-wrapper {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  margin-top: 24px;
  border-top: 1px solid #e5e5e5;
  padding-top: 16px;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 16px;
}

.product-column {
  box-sizing: border-box;
}

.product-pics-section {
  flex: 0 0 55.5%;
}

.product-price-section {
  flex: 0 1 50%;
  border-right: 1px solid #e5e5e5;
  padding-right: 12px;
}

.product-delivery-section {
  background-color: #f6f6f6;
  padding: 16px;
}

.price-delivery-wrapper {
  display: flex;
  gap: 16px;
}

@media (max-width: 1180px) {
  .product-data-wrapper {
    flex-direction: column;
  }
  .price-delivery-wrapper {
    border-top: 1px solid #e5e5e5;
    padding-top: 12px;
  }
}

@media (max-width: 767px) {
  .price-delivery-wrapper {
    flex-direction: column;
  }
  .main-pics-wrapper,
  .product-price-section {
    border-right: none;
    padding-right: 0;
  }

  .main-pics-wrapper,
  .thumbs-carousel {
    height: 505px;
  }

  .pic-show img {
    max-height: 480px;
  }
}

.new-buy-btn {
  width: 100%;
  margin-bottom: 9px;
}

.specifications {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.phone-call {
  display: flex;
  justify-content: flex-end;
}

.not-available {
  font-weight: 700;
  margin-top: 12px;
}

/* модалка для продуктов */
.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.show-modal {
  opacity: 1;
}

.hidden {
  display: none;
}

.content-wrapper {
  opacity: 1;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  height: 90%;
  display: flex;
  flex-direction: column;
}

.modal-content-new {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.dots-wrapper {
  height: 40px;
  width: 100%;
  margin-bottom: 12px;
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 равных колонки */
  gap: 16px;
  align-items: center;
}

.modal-name {
  text-align: right;
  font-weight: 700;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}

.viewer {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#bigImage {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
}

#prev {
  left: 10px;
}
#next {
  right: 10px;
}

.dots {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.dots div {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #bbb;
  cursor: pointer;
  transition: background 0.3s;
}

.dots div.active {
  width: 16px;
  height: 16px;
  background: #337ab7;
}

@media (max-width: 1180px) {
  .dots-wrapper {
    height: 70px;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .dots-wrapper {
    height: 70px;
    grid-template-columns: 1fr; /* одна колонка на мобилках */
    justify-items: center; /* по горизонтали */
    align-items: center; /* по вертикали */
    margin-bottom: 20px;
  }

  .content-wrapper {
    border-radius: 0;
    width: 100%;
    height: 100%;
  }

  /* #prev,
  #next {
    font-size: 30px;
    color: white;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    user-select: none;
    border-radius: 8px;
  } */

  #prev {
    left: 4px;
  }
  #next {
    right: 4px;
  }
  .modal-name {
    text-align: center;
  }
}

.margin-120 {
  margin-bottom: 120px;
}

.navigation-shopping {
  display: flex;
  justify-content: space-between;
}

.but-checkout {
  display: flex;
  justify-content: end;
}

@media (max-width: 768px) {
  .navigation-shopping {
    flex-direction: column;
    gap: 16px;
  }

  .but-checkout {
    justify-content: flex-start;
  }
}
