.product-details-modal {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 500px;
  margin: 2rem auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  position: relative;
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 2px solid #ecf0f1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.modal-header h2 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: 700;
  flex: 1;
}
.modal-header .close-modal {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #7f8c8d;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  margin-left: 1rem;
}
.modal-header .close-modal:hover {
  background: #f8f9fa;
  color: #2c3e50;
  transform: rotate(90deg);
}
.modal-header .close-modal:active {
  transform: rotate(90deg) scale(0.95);
}

.modal-body {
  padding: 2rem;
}

.product-details-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-group {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid #ecf0f1;
}
.detail-group:last-child {
  border-bottom: none;
}

.detail-group label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 1rem;
  min-width: 140px;
  margin-right: 1rem;
}

.detail-value {
  color: #7f8c8d;
  font-size: 1rem;
  text-align: right;
  flex: 1;
}

.low-stock {
  color: #e74c3c;
  font-weight: 600;
}

.normal-stock {
  color: #27ae60;
  font-weight: 600;
}

.profit-margin {
  color: #27ae60;
  font-weight: 600;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 2px solid #ecf0f1;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  background: #f8f9fa;
}

.btn-secondary, .btn-primary {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover, .btn-primary:hover {
  transform: translateY(-1px);
}
.btn-secondary:active, .btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #95a5a6;
  color: white;
}
.btn-secondary:hover {
  background: #7f8c8d;
}

.btn-primary {
  background: #3498db;
  color: white;
}
.btn-primary:hover {
  background: #2980b9;
}

@media (max-width: 576px) {
  .product-details-modal {
    width: 95%;
    margin: 1rem auto;
  }
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1.25rem;
  }
  .modal-header .close-modal {
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }
  .detail-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  .detail-group label,
  .detail-value {
    text-align: left;
    min-width: auto;
  }
  .modal-footer {
    flex-direction: column;
  }
  .modal-footer button {
    width: 100%;
  }
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
}

/*# sourceMappingURL=product-details.css.map */
