@import url('components.css');

.main_slider {
  width: 70%;
  float: left;
  border-radius: 5px;
}

.slider_holder_thumbs {
  padding-left: 5px;
  padding-top: 5px;
  height: 440px;
  width: 100px;
  overflow: hidden;
  float: left;
  margin-right: 20px;
}

.product_information {
  font-family: var(--basic_font_2);
}

.product_information_2 {
  padding: 30px;
  box-shadow: 0px 0px 4px 6px rgb(241, 241, 241);
  border-radius: 5px;
}

.swiper_thumbs {
  width: 85px;
  height: 335px;
  float: left;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.4s;
  border: 1px solid white;
}

.swiper-wrapper .swiper-slide-thumb-active {
  border: 1px solid rgb(0, 0, 0);
  border-radius: 5px;
  transition: 0.4s;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
}

.product_information h1 {
  margin-top: 0px;
  font-family: var(--basic_font_2);
  font-size: 26px;
}

.short_description {
  font-family: var(--basic_font_2);
  font-size: 16px;

}

.short_description_lower_level {
  color: rgb(61, 61, 61);
  font-family: var(--basic_font_2);
  font-size: 16px;
  text-decoration: underline;
  margin-left: 5px;
}

.short_description_lower_level:hover {
  color: #1650bb;

}

.list_characteristics {
  list-style: none;
  padding-left: 0px;
  color: rgb(150, 149, 149);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-top: 0px;
  margin-bottom: 0px
}

.sticker_light_green {
  background-color: #1ada5a;
  border: 0px;
  border-radius: 3px;
  padding-left: 7px;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-right: 7px;
  color: white;
  font-size: 16px;
  font-family: var(--basic_font_2);

  margin-right: 10px;
  margin-bottom: 10px;
}


.sticker_red {
  background-color: rgb(255, 0, 13);
  border: 0px;
  border-radius: 3px;
  padding-left: 7px;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-right: 7px;
  color: white;
  font-size: 16px;
  font-family: var(--basic_font_2);

  margin-right: 10px;
  margin-bottom: 10px;
}

.sticker_blue {
  background-color: rgb(68, 1, 252);
  border: 0px;
  border-radius: 3px;
  padding-left: 7px;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-right: 7px;
  color: white;
  font-size: 16px;
  font-family: var(--basic_font_2);

  margin-right: 10px;
  margin-bottom: 10px;
}




.price,
.currency {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
  font-size: 24px;
}

.plus {
  float: right;
  width: 40px;
  height: 40px;
}

.vertical,
.horizontal {
  border: none;
  height: 2px;
  background: black;
  opacity: 1;
  width: 14px;
  transition: 0.2s;
}

.vertical {
  margin-top: 13px;
}

.horizontal {
  border: none;
  height: 2px;
  background: black;
  opacity: 1;
  width: 14px;
  transition: 0.2s;
  transform: rotate(90deg);
  margin-top: -10px;
}

.horizontal_active {
  -webkit-transform-origin: 110% 110%;
  -ms-transform-origin: 110% 110%;
  transform: rotate(0deg);
  transform-origin: 110% 110%;
}




.mySwiper {
  width: 100%;
  font-family: var(--basic_font_2);
}

.product_card {
  border-radius: 5px;
  border: 1px solid #ececec;

  padding: 20px;
  margin-bottom: 10px;
}

.product_card button {
  background-color: #22b352;
  color: rgb(255, 255, 255);
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  width: 100px;
  height: 30px;
  border: 0px;
}

.product_card button:hover {
  background-color: #249c4c;
}







/* Основная кнопка */
.add-to-cart {
  display: block;
  font-family: var(--basic_font_2);
  color: rgb(255, 255, 255);
  width: 100%;
  background-color: #22b352;
  border: 0px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 600;
  padding: 14px 28px;
}


.add-to-cart_hidden {
  display: none;
}


.add-to-cart:hover {
  background-color: #249c4c;
}

/* Счетчик */
.counter {
  font-family: var(--basic_font_2);
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
  border: 1px solid rgb(230, 230, 230);
}

.counter_hidden {
  display: none;
}

.counter button {
  background-color: #1db850;
  border: 0px;
  color: white;
  font-size: 25px;
  font-weight: 500;
  cursor: pointer;
  width: 36px;
  margin-left: auto;
  margin-right: auto;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.counter button:hover {
  background-color: #444;
}

.counter button:active {
  background-color: #2a2a2a;
}

.counter-value {
  color: rgb(15, 15, 15);
  margin: 0 16px;
  min-width: 30px;
  text-align: center;
  font-weight: 500;
  font-size: 24px;
}

.product-wrapper {
  width: 25%;
}

.category_catalog {
  text-decoration: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: black;
  font-size: 16px;
  display: block;
  margin-top: 10px;
  margin-left: 10px;
}

.product-card {
  border: 1px solid #e4e4e4;
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s ease;
  margin: 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: left;
  cursor: pointer;
}

.product-card hr {
  border: 0px;
  border-bottom: 1px solid rgb(216, 216, 216);
}

.add_from_catalog {
  display: block;
  background-color: #22b352;
  color: rgb(255, 255, 255);
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
  width: auto;
  padding: 8px;
  border: 0px;
  float: left;
  margin-bottom: 15px;
}

.add_from_catalog_hide {
  display: none;
}

.title_product {
  font-weight: 600;
}

.add_from_catalog:hover {
  background-color: #249c4c;
}

.product-card:hover .title_product {
  color: #1650bb;
}

.image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.product-image.hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.image-container:hover .product-image.main {
  opacity: 0;
}

.image-container:hover .product-image.hover {
  opacity: 1;
}

.product-info {
  padding: 15px;

}

.product-info a {
  text-decoration: none;
  color: black;
}

.title_product_container {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

.product-title {
  font-size: 18px;
  margin: 0 0 10px 0;
}

.product-price {
  font-size: 20px;
  font-weight: bold;
  color: #e53935;
}

.product-description {
  font-size: 14px;
  color: #666;
  margin: 10px 0;
}




/* Вкладки */
.tabs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  border-bottom: 1px solid #ddd;
  font-family: var(--basic_font_2);
  font-size: 15px;
}

.tab-item {
  padding: 10px 20px;
  cursor: pointer;
  position: relative;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #1ee438;
  /* Салатовый цвет */
}

.tab-content {
  display: none;
  padding: 20px;
  font-family: var(--basic_font_2);
  font-size: 16px;
  border-bottom: 1px solid #ddd;
}

.tab-content.active {
  display: block;
}


@media screen and (max-width: 500px) {
  .tabs {
    display: contents;
  }
}





/* Стили для отзывов */
.review {
  border-bottom: 1px solid rgb(230, 230, 230);
  padding: 10px;
  margin-bottom: 15px;

}

.feedback {
  width: 200px;
  background-color: white;
  border-radius: 5px;
  border: 1px solid #1ada5a;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 10px;
  padding-bottom: 10px;
  float: right;
  color: #1ee438;
  cursor: pointer;
  font-size: 17px;
  transition: 0.2s;
  font-family: var(--basic_font_2);
}

.feedback:hover {
  background-color: #22b352;
  color: white;
}







.certificates-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.certificate-block {
  background-color: white;
  border-radius: 10px;
  padding: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  /* height: 100%; */
  border: 1px solid #e4e4e4;
}


.certificate-title {
  font-size: 1rem;
  color: #2c3e50;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 600;
  flex-grow: 0;
}

.certificate-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.certificate-image-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 15px;
  flex-grow: 1;
}

/* Модальное окно для полноэкранного просмотра */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  padding: 20px;
}

.modal-content {
  max-width: 95%;
  max-height: 95%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 5px;
}

.close-modal {
  position: absolute;
  top: -45px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.3s;
  z-index: 1001;
}

.close-modal:hover {
  color: #ddd;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.prev-cert {
  left: 20px;
}

.next-cert {
  right: 20px;
}

.modal-title {
  color: white;
  text-align: center;
  margin-top: 15px;
  font-size: 1.3rem;
  max-width: 80%;
}

@media screen and (max-width: 1070px) {
  .certificates-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media screen and (max-width: 360px) {
  .modal-title {
    font-size: 1rem;
  }

  .modal-content {
    max-width: 93%;
    max-height: 93%;
    }
}









@media screen and (max-width: 1070px) {
  .product-wrapper {
    width: calc(32% - 20px);
  }
}

@media screen and (max-width: 740px) {
  .product-wrapper {
    width: calc(50% - 20px);
  }
}

@media screen and (max-width: 540px) {
  .product-wrapper {
    width: calc(100% - 20px);
  }
}