.image-popup {
  height: 650px;
}

#prod-image {
  height: 650px;
  overflow: hidden;
}

.zoom-container {
  position: relative;
  display: inline-block;
}

.zoom-image {
  transition: transform 0.5s ease;
}

.zoom-lens {
  position: absolute;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: crosshair;
  width: 300px;
  height: 300px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  background: rgba(255, 255, 255, 0.5);
}

.zoom-container:hover .zoom-lens {
  opacity: 1;
}

.po-wrapper {
  position: relative;
  margin: 15px 0;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

.po-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 15px;
}

.po-item {
  flex: 0 0 auto;
  width: 280px;
  min-height: 140px; /* Ensure equal height */
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px;
  background-color: #fafafa;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  min-height: 10em;
}

.po-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.po-tag {
  background-color: #ff5722;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 3px;
  margin-right: 8px;
  flex-shrink: 0;
}

.po-info {
  flex-grow: 1; /* Takes available vertical space */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}



.po-title {
  color: #333;
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 3px 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.po-details {
  color: #666;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.po-highlight {
  color: #d32f2f;
  font-weight: bold;
}

.po-view-all-btn {
  background-color: #1976d2;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.po-view-all-btn:hover {
  background-color: #1565c0;
}

/* Modal styles */
.po-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 100;
  overflow-y: auto;
}

.po-applied-badge {
  align-self: flex-start; /* Keeps it in the flow */
  background-color: #4caf50;
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  transition: all 0.3s ease;
}


.po-applied-badge i {
  font-size: 14px;
  margin-right: 5px;
}
.po-item {
  position: relative;
  justify-content: space-between; /* ensure spacing */
  gap: 10px; /* spacing between icon and text */
}

.po-modal-content {
  background-color: white;
  margin: 50px auto;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  position: relative;
}

.po-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

.po-modal-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.po-modal-tag {
  font-size: 14px;
  padding: 4px 8px;
}

.po-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #555;
}

.po-modal-body {
  padding: 10px 0;
}

.po-detail-section {
  margin-bottom: 15px;
}

.po-detail-subtitle {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.po-detail-text {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

.po-detail-code {
  background-color: #f5f5f5;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px dashed #ccc;
  font-family: monospace;
  font-size: 14px;
  display: inline-block;
  margin: 5px 0;
}

.po-detail-expiry {
  font-size: 13px;
  color: #666;
  margin-top: 15px;
  font-style: italic;
}

.po-detail-action {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: inline-block;
  margin-top: 15px;
}

.po-detail-action:hover {
  background-color: #388e3c;
}

/* All Offers Modal */
.po-all-modal .po-modal-content {
  max-width: 800px;
}

.po-all-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 600px) {
  .po-item {
      width: 100%;
  }
  
  .po-modal-content {
      width: 95%;
      margin: 30px auto;
  }
}