.product-item-container {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.btn.popup-button-close {
  background: #F3F6FA;
  color: #484F55;
}

.popup-window.popup-window-with-titlebar {
  padding: 15px 20px;
  border-radius: 8px;
}

.popup-window .popup-window-titlebar {
  text-align: center;
}

.popup-window .popup-window-titlebar-text {
  color: inherit;
  padding: 0;
  font-size: clamp(18px, 3vw, 22px);
}

.popup-window-content {
  max-width: 464px;
  font-size: clamp(16px, 3vw, 18px);
  margin: 0;
  padding: 0;
}

.popup-window-content p {
  margin: 0;
}

.popup-window-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.popup-window-buttons:has(> *:only-child) {
  justify-content: center;
}

.product-item {
  background: #FFFFFF;
  transition: all 0.3s ease-out;
  height: 100%;
}

.product-item-image-wrapper {
  display: none !important;
}

.product-item__img {
  width: 100%;
}

.product-item__price-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.product-item__price-current {
  font-weight: 500;
  font-size: 24px;
}

.product-item__price-old {
  font-size: 14px;
  color: #484F55;
  text-decoration: line-through;
}

.product-item__stock {
  margin-top: 10px;
}

.product-item__stock--high {
  color: #3DAA3B;
}

.product-item__stock--low {
  color: #F70A09;
}

.product-item__stock--order {
  color: #0364ED;
}

.product-item__tags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-item__tag {
  width: -moz-fit-content;
  width: fit-content;
  display: block;
  font-size: clamp(14px, 3vw, 16px);
  padding: 5px 8px;
  border-radius: 8px;
}

.product-item__tag--rec {
  background: #E6ECF5;
  color: #0364ED;
}

.product-item__tag--hit {
  color: #fff;
  background: #0364ED;
}

.product-item__tag--new {
  background: linear-gradient(227.23deg, #BD0B02 3.6%, #F70A09 100%);
  color: #fff;
}

.product-item__title {
  flex: 1 0 auto;
  height: auto;
  margin-bottom: 15px;
  padding-left: 8px;
  padding-right: 8px;
}

.product-item__title a {
  text-decoration: none;
  color: inherit;
}

.product-item:hover {
  box-shadow: 0px 0px 8px rgba(13, 77, 163, 0.2);
}

.product-item__compare {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  position: absolute;
  top: 16px;
  right: 16px;
  font-weight: 500;
  font-size: 18px;
  background: #F3F6FA;
  border-radius: 8px;
  transition: all 0.3s ease-out;
}

.product-item__compare:has(.product-item__input:checked) {
  opacity: 1;
  background: #0364ED;
  color: #fff;
}

.product-item__compare:has(.product-item__input:checked) svg path {
  stroke: #fff;
}

.product-item:not(.list) {
  display: flex;
  flex-direction: column;
}

.product-item:not(.list) .product-item__price-container {
  margin-bottom: 15px;
}

.product-item:not(.list) .product-item__buy {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: all 0.3s ease-out;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 30px;
  color: #fff;
  background-color: #000;
  text-transform: uppercase;
  margin-top: 20px;
}

.product-item:not(.list) .product-item__buy svg path {
  stroke: #FFFFFF;
}

.product-item:not(.list) .product-item__inner {
  margin-top: auto;
  margin-bottom: auto;
}

.product-item:not(.list) .product-item__compare {
  width: 34px;
  height: 34px;
}

.product-item:not(.list) .product-item__compare input {
  display: none;
}

.product-item:not(.list) .product-item__compare svg {
  display: block;
  width: 17px;
  height: 15px;
}

.product-item:not(.list) .product-item__percent {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #3DAA3B;
  border-radius: 8px;
  font-weight: 500;
  font-size: 18px;
  color: #FFFFFF;
  padding: 5px 8px;
}

.product-item:not(.list):hover .product-item__compare,
.product-item:not(.list):hover .product-item__buy {
  opacity: 1;
}

.product-item.list {
  display: flex;
  gap: 40px;
  justify-content: space-between;
}

.product-item.list .product-item__info {
  max-width: 245px;
  width: 100%;
}

.product-item.list .product-item__price-container {
  margin-bottom: 23px;
}

.product-item.list .product-item__buy {
  max-height: 60px;
  height: 100%;
  width: 100%;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  background: #F70A09;
  border-radius: 8px;
  margin-left: auto;
  transition: all 0.3s ease-out;
  color: #FFFFFF;
  font-weight: 500;
  font-size: 18px;
  text-decoration: none;
  margin-bottom: 15px;
  opacity: 1;
}

.product-item.list .product-item__buy svg path {
  stroke: #FFFFFF;
}

.product-item.list .product-item__inner {
  position: relative;
  max-width: 365px;
  width: 100%;
}

.product-item.list .product-item__compare {
  position: relative;
  max-height: 60px;
  width: 100%;
  gap: 15px;
  margin-bottom: 23px;
  opacity: 1;
}

.product-item.list .product-item__compare input {
  display: none;
}

.product-item.list .product-item__compare:has(input:checked) {
  color: #0364ED;
}

.product-item.list .product-item__compare:has(input:checked) svg path {
  stroke: #0364ED;
}

.product-item.list .product-item__compare svg {
  display: block;
  width: 17px;
  height: 15px;
}

.product-item.list .product-item__percent {
  max-width: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #3DAA3B;
  border-radius: 8px;
  font-weight: 500;
  font-size: 18px;
  color: #FFFFFF;
  padding: 5px 8px;
  margin-bottom: 23px;
  position: static;
}


.product-item.list .product-item__preview {
  margin-bottom: 40px;
}

.product-item.list .product-item__description {
  width: 100%;
}

.product-item.list .product-item__lists {
  margin: 0;
  padding: 0;
}

.product-item.list .product-item__list {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #E7EDF6;
  padding: 10px 0;
  margin: 0;
}

.product-item.list .product-item__list-value {
  color: #1C2126;
}

@media (max-width: 992px) {
  .product-item {
    padding: 20px;
  }

  .product-item.list {
    flex-wrap: wrap;
  }

  .product-item.list .product-item__description {
    width: 49%;
    flex-grow: 1;
  }

  .product-item.list .product-item__inner {
    width: 49%;
    margin-left: auto;
    margin-right: auto;
  }

  .product-item.list .product-item__title {
    min-height: unset;
  }

  .product-item.list .product-item__compare {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 10px;
    margin-left: auto;
  }

  .product-item.list .product-item__info {
    margin-left: auto;
  }

  .product-item.list .product-item__price-container {
    justify-content: flex-end;
  }

  .product-item__price-current {
    font-size: 20px;
  }


  .product-item:not(.list) .product-item__title a {
    font-size: 16px;
    font-weight: 400;
  }

  .product-item.list .product-item__title a {
    font-size: 18px;
  }

  .product-item__buy svg {
    width: 24px;
  }
}

@media (max-width: 768px) {
  .product-item.list {
    gap: 20px;
  }

  .product-item.list .product-item__description {
    width: 60%;
  }

  .product-item__compare {
    opacity: 1;
  }
}

@media (max-width: 500px) {
  .product-item {
    padding: 10px;
  }

  .product-item__buy svg {
    width: 24px;
  }

  .popup-window-buttons .btn {
    width: 100%;
  }
}

.certificate-stub {
  text-align: center;
}

.certificate-title {
  color: #000;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 30px;
  letter-spacing: -0.5px;
}

.certificate-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.certificate-label {
  display: block;
  font-size: clamp(14px, 4vw, 18px);
  color: #666;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.certificate-input-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  max-width: 250px;
  border-bottom: 1px solid #000;
  margin-right: 10px;
}

.certificate-input {
  font-size: 28px;
  width: 150px;
  text-align: center;
  border: none;
  outline: none;
  font-weight: 300;
}

.certificate-input:focus {
  outline: none;
}

.certificate-currency {
  font-size: 24px;
  font-weight: 300;
  color: #000;
}

.certificate-button {
  cursor: pointer;
  font-family: "BasisGrotesqueArabicPro", sans-serif;
  transition: all 0.2s ease;
  width: 100%;
  min-width: 200px;
}

.certificate-button:hover {
  background: #000;
  color: #fff;
}

.certificate-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #999;
}

.certificate-button:disabled:hover {
  background: none;
  color: #000;
}

.certificate-input::-webkit-outer-spin-button,
.certificate-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.certificate-input[type=number] {
  -moz-appearance: textfield;
}

.certificate-message {
  padding: 7px 0 7px;
  font-size: 14px;
  min-height: 17px;
  opacity: 0;
  transition: opacity .4s ease;
}

.certificate-message.success {
  color: green;
}

.certificate-message.error {
  color: red;
}

.certificate-message.visible {
  opacity: 1;
}

@media (max-width: 576px) {
  .certificate-wrapper {
    justify-content: center;
  }
}