* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f5f3ee;
  color: #2b2b2b;
}

header {
  background: #2b2b40;
  color: #fff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

header h1 {
  margin: 0;
  font-size: 1.4rem;
}

header nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 18px;
  font-size: 0.95rem;
}

header nav a:hover {
  text-decoration: underline;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.grid-carti {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.card-carte {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-carte img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #ddd;
}

.card-carte .continut {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-carte h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.card-carte .autor {
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.card-carte .descriere {
  font-size: 0.85rem;
  color: #444;
  flex: 1;
  margin-bottom: 10px;
}

.card-carte .pret-stoc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.pret {
  font-weight: bold;
  color: #1a5c2a;
}

.stoc-ok {
  color: #1a5c2a;
}

.stoc-zero {
  color: #a3392f;
  font-weight: bold;
}

button, .btn {
  background: #2b5cab;
  color: #fff;
  border: none;
  padding: 9px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
}

button:hover {
  background: #204685;
}

button:disabled {
  background: #aaa;
  cursor: not-allowed;
}

button.secundar {
  background: #6b6b6b;
}

button.secundar:hover {
  background: #4d4d4d;
}

button.pericol {
  background: #a3392f;
}

button.pericol:hover {
  background: #7f2c24;
}

.cos-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.cos-item img {
  width: 60px;
  height: 84px;
  object-fit: cover;
  border-radius: 4px;
}

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

.cos-item .cantitate-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cos-item .cantitate-control input {
  width: 48px;
  text-align: center;
  padding: 4px;
}

.total-comanda {
  text-align: right;
  font-size: 1.2rem;
  margin: 16px 0;
}

form.formular {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  max-width: 480px;
}

form.formular label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

form.formular input,
form.formular textarea {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.mesaj {
  padding: 10px 14px;
  border-radius: 5px;
  margin-bottom: 16px;
}

.mesaj.succes {
  background: #e0f5e4;
  color: #1a5c2a;
  border: 1px solid #b9e5c2;
}

.mesaj.eroare {
  background: #fbe4e1;
  color: #a3392f;
  border: 1px solid #f0bdb6;
}

.cos-gol, .lista-goala {
  color: #666;
  font-style: italic;
}

/* Banda afisata sus pe paginile publice cand MOD_DEMO=true */
.banda-demo {
  background: #ece6d6;
  color: #5a5340;
  border-bottom: 1px solid #ddd4bd;
  padding: 6px 16px;
  text-align: center;
  font-size: 0.85rem;
}

.banda-demo a {
  color: inherit;
  text-decoration: underline;
}

.mesaj.info {
  background: #e7eef8;
  color: #2b4a73;
  border: 1px solid #c4d4ea;
}
