body {
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:#f4f4f6;
}

/* HEADER */

.topbar {
  background:#111;
  color:white;
  padding:12px;
}

.topbar-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.topbar input {
  width:100%;
  margin-top:8px;
  padding:8px;
  border-radius:8px;
  border:none;
}

/* CATEGORIES BAR */

.category-bar {
  display:flex;
  overflow-x:auto;
  gap:12px;
  padding:12px;
  background:white;
  border-bottom:1px solid #e5e5e5;
}

.category-btn {
  flex:0 0 auto;
  text-align:center;
  min-width:80px;
  cursor:pointer;
  font-size:12px;
}

.category-btn img {
  width:55px;
  height:55px;
  object-fit:contain;
  background:#f8f8f8;
  border-radius:10px;
  padding:6px;
  margin-bottom:5px;
}

/* GRID */

.grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
  padding:12px;
}

@media(min-width:768px){
  .grid {
    grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  }
}

/* CARD (structure originale respectée) */

.card {
  background:white;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 4px 10px rgba(0,0,0,0.06);
  cursor:pointer;
  display:flex;
  flex-direction:column;
}

.image {
  width:100%;
  height:160px;
  background:white;
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:1px solid #f0f0f0;
}

.image img {
  max-width:85%;
  max-height:85%;
  object-fit:contain;
}

.title {
  padding:8px;
  font-size:13px;
  min-height:36px;
}

.price {
  padding:0 8px 8px;
  font-weight:bold;
  color:#e60023;
}

.addBtn {
  margin:8px;
  padding:8px;
  border:none;
  background:black;
  color:white;
  border-radius:10px;
  cursor:pointer;
}

.addBtn:hover {
  background:#333;
}

/* MODAL */

.modal {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.4);
  display:flex;
  align-items:center;
  justify-content:center;
}

.hidden { display:none; }

.modal-content {
  background:white;
  padding:20px;
  width:90%;
  max-width:400px;
  border-radius:16px;
}

.customer-form {
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:10px;
}

.customer-form input {
  padding:8px;
  border-radius:8px;
  border:1px solid #ddd;
}
