.wiper-card {
  display: flex;
  justify-content: space-between;
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 20px;
  gap: 20px;
  align-items: stretch;
  height: 300px;
  box-sizing: border-box;
}

.wiper-left {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wiper-title {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 700;
}

.wiper-body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.wiper-image.zoom-container {
  width: 200px;
  height: 200px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  display: block;
}

.wiper-image .zoom-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.wiper-image.zoom-container {
  border: 1px solid #ddd;
}

.wiper-params {
  display: flex;
  flex-direction: column;
  gap: 0px;
  font-size: 13px;
  min-width: 200px;
}

.wiper-param {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding: 4px 0;
}

.wiper-param span {
  font-weight: 600;
  color: #333;
}

.wiper-buy {
  display: flex;
  flex-direction: column;
  width: 180px;
  max-width: 220px;
  height: 100%;
  gap: 10px;
}

.wiper-buy > div {
  flex: 1;
  display: flex;
}

.buy-button {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: white;
  --border-radius: 5px;
  font-weight: 600;
  padding: 10px;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  width: 100%;
}

.buy-button img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.button-wb a {
  background: #7030A0;
}
.button-wb a:hover {
  background: #9A57CD;
}

.button-ozon a {
  background: #538DD5;
}
.button-ozon a:hover {
  background: #7DA9DF;
}

.button-where-buy a {
  background: #e0e0e0;
  color: #353535;
  text-decoration: none !important;
}
.button-where-buy a:hover {
  background: #f0f0f0;
}

.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	display: none; /* скрыто по умолчанию */
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.modal-content {
  background-color: #fff;
  margin: 50px auto;
  padding: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.modal-content .close-modal {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 24px;
	cursor: pointer;
}

.table {
	display: table;
	width: 100%;
	border-collapse: collapse;
}
.table-row {
	display: table-row;
}
.table-cell {
	display: table-cell;
	padding: 8px 12px;
	border: 1px solid #ccc;
	vertical-align: top;
}
.table-cell.empty {
	background: #f9f9f9;
}

@media (max-width: 600px) {
  .wiper-card {
    flex-direction: column;
    height: auto;
	width: 100% !important;
  }
  
  .wiper-image.zoom-container {
	  width: 100% !important;
	  height: auto;
   }

  .wiper-buy {
    display: flex;
    flex-direction: column;
	width: 100% !important;
    gap: 10px;
    margin-top: 15px;
	max-width: 600px;
  }

  .wiper-buy > div {
    width: 100%;
  }

  .buy-button {
    display: block;
    width: 100%;
    padding: 16px;
    text-align: center;
    background-color: #353535;
	text-decoration: none !important;
  }

  .buy-button img {
    max-width: 100%;
    height: auto;
    max-height: 32px;
    display: block;
    margin: 0 auto;
  }
  
  .button-where-buy a {
	  background: #e0e0e0;
	  color: #353535;
	  text-decoration: none !important;
	}
 
   .wiper-body {
    flex-direction: column;
    align-items: stretch;
  }

  .wiper-params {
    width: 100%;
    min-width: unset;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .wiper-param {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
    word-break: break-word;
  }

  .wiper-param span {
    flex-shrink: 0;
    font-weight: 600;
  }
}