.main-catalogue_product-button-buy {
  background: white;
  border: none;
  font-size: 20px;
  padding: 9px 18px;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.main-catalogue_product-button-buy:hover {
  background: #d3d3d3;
}

.main-catalogue_product-button-details {
  background: #5d6328;
  color: white;
  padding: 10px 20px;
  border: none;
  font-size: 20px;
  transition: 0.3s;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.main-catalogue_product-button-details:hover {
  background: #696e2e;
}

.main-catalogue_product-details {
  font-size: 20px;
  margin-left: 10px;
}

.main-catalogue_product-card {
  justify-self: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  transition: all 0.4s ease;
}

.main-catalogue_product-card.hide {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.popup {
  display: none;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

.popup.active {
  display: flex;
  animation: fadeIn 0.3s ease forwards;
}

.popup-content {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  min-width: 320px;
  max-width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  opacity: 0;
  animation: popupShow 0.25s ease forwards;
}

.popup-content p {
  white-space: normal;
  overflow-wrap: break-word;
  font-size: 20px;
}

.popup-content h2 {
  font-size: 30px;
}

.close {
  position: absolute;
  top: 10px;
  right: 14px;
  cursor: pointer;
  font-size: 24px;
  color: #666;
}

@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes popupShow {
  to { transform: scale(1); opacity: 1; }
}

.not-allowed {
  display: none;
}

.hide {
  display: none;
}

.main-catalogue_product-card-none {
  display: none;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.contact-links img {
  width: 30px;
  height: 30px;
}

.contact-links a {
  text-decoration: none;
  color: black;
  display: flex;
  align-items: center;
}

.cardbuycontacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cardbuycontacts img {
  width: 30px;
  height: 30px;
}

.cardbuycontacts a {
  text-decoration: none;
  color: black;
  display: flex;
  align-items: center;
}

.popup-content img {
  max-width: 100%;
  height: auto;
  display: block;
  justify-self: center;
}

.popup-content p {
  justify-self: center;
}
