* { box-sizing: border-box; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  background: #f6f5f2;
  color: #222;
  padding-bottom: 90px;
}
header {
  background: #1f2a24;
  color: #fff;
  padding: 20px 16px;
  text-align: center;
}
header h1 { margin: 0 0 4px; font-size: 1.4rem; }
header p { margin: 0; opacity: .8; font-size: .9rem; }

.currency-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border-bottom: 1px solid #e5e2da;
}
.currency-bar button {
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: .85rem;
}
.currency-bar button.active { background: #1f2a24; color: #fff; border-color: #1f2a24; }

.categories { max-width: 720px; margin: 16px auto 0; padding: 0 12px; }
.category-title { font-size: 1.1rem; font-weight: 700; margin: 18px 0 8px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
}
.product-card img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; background: #eee; }
.product-card .name { font-weight: 600; font-size: .95rem; }
.product-card .desc { font-size: .8rem; color: #666; flex-grow: 1; margin: 4px 0 8px; }
.product-card .price { font-weight: 700; margin-bottom: 8px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; }
.qty-row button {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ccc;
  background: #fff; font-size: 1rem; cursor: pointer;
}
.qty-row span { min-width: 20px; text-align: center; }

.cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #1f2a24; color: #fff;
  padding: 12px 16px; display: none;
  align-items: center; justify-content: space-between;
  cursor: pointer;
}
.cart-bar.visible { display: flex; }

.modal-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  align-items: flex-end; justify-content: center; z-index: 50;
}
.modal-overlay.visible { display: flex; }
.modal {
  background: #fff; width: 100%; max-width: 480px;
  border-radius: 16px 16px 0 0; padding: 20px; max-height: 88vh; overflow-y: auto;
}
.modal h2 { margin-top: 0; }
.modal label { display: block; margin: 12px 0 4px; font-size: .85rem; font-weight: 600; }
.modal input[type=text], .modal input[type=tel], .modal input[type=email],
.modal input[type=datetime-local], .modal textarea, .modal select {
  width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 8px; font-size: .95rem;
}
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-group label {
  border: 1px solid #ccc; border-radius: 20px; padding: 6px 12px;
  font-weight: 400; font-size: .85rem; cursor: pointer; margin: 0;
}
.radio-group input { display: none; }
.radio-group input:checked + span { font-weight: 700; }
.radio-group label:has(input:checked) { background: #1f2a24; color: #fff; border-color: #1f2a24; }

.cart-line { display: flex; justify-content: space-between; font-size: .9rem; padding: 4px 0; }
.bank-box { background: #f1f0eb; border-radius: 8px; padding: 10px; font-size: .82rem; white-space: pre-line; margin-top: 8px; }

button.primary {
  width: 100%; padding: 14px; background: #1f2a24; color: #fff; border: none;
  border-radius: 10px; font-size: 1rem; font-weight: 600; margin-top: 16px; cursor: pointer;
}
button.secondary {
  width: 100%; padding: 10px; background: #fff; color: #1f2a24; border: 1px solid #1f2a24;
  border-radius: 10px; font-size: .9rem; margin-top: 8px; cursor: pointer;
}
.error-text { color: #b3261e; font-size: .85rem; margin-top: 8px; }
.confirmation { text-align: center; padding: 20px 0; }
.confirmation .big { font-size: 1.6rem; font-weight: 700; margin: 8px 0; }
