h2 {
    text-align: center;
}

/* PRODUCT TABLE */
.productsTableWrap table {
  width: 100%;
  border-collapse: collapse;
  background: #111a2b;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0 35px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.productsTableWrap th {
  background: #151f33;
  color: var(--accent);
  padding: 12px;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.productsTableWrap td {
  padding: 12px;
  color: #e6eef6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.productsTableWrap tr:nth-child(even) {
  background: #0f1828;
}

.productsTableWrap tr:hover {
  background: #1c273d;
}

/* ACTION BUTTONS */
.actionButton {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-right: 4px;
  transition: 0.15s ease;
}

.actionButton.modify {
  background: var(--accent);
  color: white;
}

.actionButton.modify:hover {
  background: #443ad6;
}

.actionButton.delete {
  background: #d03737;
  color: white;
}

.actionButton.delete:hover {
  background: #b82e2e;
}

/* FORM */
#mainForm {
  background: #0f1828;
  padding: 22px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

#mainForm h3 {
  background: var(--accent);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 1rem;
  display: none;
}

#mainForm.editing h3 {
  display: block;
}

#mainForm label {
  font-weight: 500;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
  margin-top: 14px;
}

#mainForm input,
#mainForm textarea {
  width: 100%;
  padding: 10px 13px;
  background: #0b1220;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  border-radius: 8px;
  font-size: 0.95rem;
}

#mainForm input:focus,
#mainForm textarea:focus {
  border-color: var(--accent);
  outline: none;
}

/* BUTTONS */
.productButtons button {
  width: 100%;
  padding: 12px 16px;
  margin-top: 15px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
}

.productButtons .secondary {
  background: #d03737;
}

.productButtons .secondary:hover {
  background: #b62f2f;
}

/* RESPONSIVE TABLE (mobile) */
@media (max-width: 700px) {
  .productsTableWrap table,
  .productsTableWrap thead,
  .productsTableWrap tbody,
  .productsTableWrap th,
  .productsTableWrap td,
  .productsTableWrap tr {
    display: block;
  }

  .productsTableWrap th {
    display: none;
  }

  .productsTableWrap td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
  }

  .productsTableWrap td:before {
    content: attr(data-label);
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
  }
}
