/* Product Modal - Side Panel Design */

.product-side-panel {
  position: fixed;
  top: 0;
  right: -600px;
  width: 600px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease-in-out;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.product-side-panel.open {
  right: 0;
}

.product-side-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.product-side-panel-overlay.open {
  display: block;
}

.product-side-panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
}

.product-side-panel-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.product-side-panel-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6b7280;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.product-side-panel-close:hover {
  background: #e5e7eb;
  color: #111827;
}

.product-side-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.product-side-panel-section {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.product-side-panel-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.product-side-panel-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-form-group {
  margin-bottom: 16px;
}

.product-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.product-form-group input[type="text"],
.product-form-group input[type="email"],
.product-form-group input[type="url"],
.product-form-group input[type="number"],
.product-form-group input[type="datetime-local"],
.product-form-group select,
.product-form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  color: #111827;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-form-group input:focus,
.product-form-group select:focus,
.product-form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.product-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.product-form-group input[type="file"] {
  width: 100%;
  padding: 8px 0;
  font-size: 14px;
}

.product-checkbox-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.product-checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #374151;
}

.product-checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.product-form-hint {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.product-side-panel-footer {
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.product-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.product-btn-primary {
  background: #3b82f6;
  color: white;
}

.product-btn-primary:hover {
  background: #2563eb;
}

.product-btn-secondary {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
}

.product-btn-secondary:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.product-required {
  color: #ef4444;
  margin-left: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .product-side-panel {
    width: 100%;
    right: -100%;
  }
}
