/* Стили для страницы управления товарами */
.product-form-card {
  background: linear-gradient(145deg, #0a0a0a, #050505);
  border-radius: 32px;
  border: 1px solid rgba(59,130,246,0.1);
  overflow: hidden;
  margin-bottom: 32px;
}

.product-form-header {
  padding: 24px 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.product-form-body {
  padding: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ccc;
  margin-bottom: 8px;
}

.required-star {
  color: #ef4444;
}

.radio-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #3b82f6;
}

.image-upload-area {
  border: 2px dashed #2a2a2a;
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #0a0a0a;
}

.image-upload-area:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

.image-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.image-preview-item {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-image {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.7rem;
  color: white;
}

.remove-image:hover {
  background: #ef4444;
}

.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.btn-primary {
  flex: 1;
  padding: 14px 24px;
  background: linear-gradient(105deg, #3b82f6, #2563eb);
  border: none;
  border-radius: 40px;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}



.btn-secondary {
  flex: 1;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  color: #ccc;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}



.products-list-container {
  background: linear-gradient(145deg, #0a0a0a, #050505);
  border-radius: 32px;
  border: 1px solid rgba(59,130,246,0.1);
  padding: 24px;
}

.products-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.products-list-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-item-card {
  background: #0f0f0f;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.2s;
  border: 1px solid rgba(255,255,255,0.03);
}

.product-item-card:hover {
  background: #141414;
}

.product-item-img {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: cover;
  background: #1a1a1a;
  flex-shrink: 0;
}

.product-item-info {
  flex: 1;
}

.product-item-title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 6px;
  color: white;
}

.product-item-price {
  color: #22c55e;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-item-keyword {
  font-size: 0.7rem;
  color: #8f8f9e;
  background: rgba(59,130,246,0.15);
  padding: 2px 10px;
  border-radius: 20px;
  display: inline-block;
}

.product-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.edit-product-btn, .delete-product-btn {
  background: rgba(59, 130, 246, 0.2);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-product-btn {
  color: #3b82f6;
}

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

.delete-product-btn {
  color: #ef4444;
}

.delete-product-btn:hover {
  background: #ef4444;
  color: white;
}

.empty-products-state {
  text-align: center;
  padding: 50px 20px;
}

.empty-products-state i {
  font-size: 3rem;
  color: #8f8f9e;
  margin-bottom: 16px;
  opacity: 0.4;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-actions {
    flex-direction: column;
  }
  .product-item-card {
    flex-wrap: wrap;
  }
  .product-item-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .radio-group {
    flex-direction: column;
    gap: 12px;
  }
}

/* Кнопки и поля ввода */
.input-modern {
  width: 100%;
  padding: 14px 16px;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  border-radius: 10px;
  color: white;
  font-size: 0.95rem;
  outline: none;
}

.input-modern:focus {
  border-color: var(--accent-primary);
  background: #111111;
}

.btn-glow {
  width: 100%;
  padding: 14px;
  background: linear-gradient(100deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.btn-glow:hover {
  transform: scale(0.98);
  opacity: 0.92;
}