/* assets/css/pages/products.css */
/* Scope: products.php page-only refinements (no inline styles) */

.products-topbar .row .btn{
  height:40px;
  padding:0 12px;
  font-weight:700;
}

.products-messages .msg{
  border:1px solid rgba(31,31,31,.10);
  background: var(--surface-1);
}
.products-messages .msg--err{
  border-color: rgba(214,69,69,.35);
  background: rgba(214,69,69,.06);
}
.products-messages .msg--ok{
  border-color: rgba(47,158,68,.28);
  background: rgba(47,158,68,.06);
}

.form-hint{
  margin-top:8px;
}

.table{
  width:100%;
  border-collapse: collapse;
}
.table th,
.table td{
  padding: 10px 8px;
  border-bottom: 1px solid rgba(31,31,31,.08);
  text-align: right;
  font-size: 14px;
}
.table th{
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
}

.actions{
  display:flex;
  gap:8px;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items:center;
}

.inline-edit{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap: wrap;
}
.inline-edit .input{
  min-width: 220px;
}

@media (max-width: 640px){
  /* table -> card view */
  .table, .table thead, .table tbody, .table th, .table td, .table tr{ display:block; }
  .table thead{ display:none; }
  .table tr{
    border: 1px solid rgba(31,31,31,.08);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 10px;
    background: var(--surface-1);
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
  }
  .table td{
    border: none;
    padding: 6px 0;
  }
  .table td[data-label]::before{
    content: attr(data-label) ": ";
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
  }

  .actions{
    margin-top: 8px;
  }
}
