* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #111;
  color: #fff;
  padding-bottom: 78px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1b1b1b;
  border-bottom: 4px solid #f6b21a;
  box-shadow: 0 3px 8px rgba(0,0,0,.5);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 4px;
}
.brand img { height: 58px; max-width: 110px; object-fit: contain; }
h1 { margin: 0; color: #f6d12a; font-size: 24px; }
p { margin: 4px 0; }
.page-buttons {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 10px 10px;
  white-space: nowrap;
}
.page-buttons button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: #244fc8;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}
main { max-width: 1050px; margin: 0 auto; padding: 14px; }
.page-section {
  scroll-margin-top: 136px;
  margin-bottom: 24px;
  border: 2px solid #f6b21a;
  border-radius: 18px;
  overflow: hidden;
  background: #1d1d1d;
}
.page-title {
  margin: 0;
  padding: 14px 16px;
  background: linear-gradient(90deg, #f6b21a, #db6515);
  color: #151515;
  font-size: 30px;
}
.group { padding: 12px; }
.group-title {
  color: #d8ff33;
  border-bottom: 2px solid #444;
  padding-bottom: 6px;
  margin: 8px 0 10px;
  font-size: 22px;
}
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.item {
  text-align: left;
  border: 1px solid #444;
  border-radius: 14px;
  background: #050505;
  color: white;
  padding: 12px;
  min-height: 104px;
  cursor: pointer;
}
.item:hover { outline: 3px solid #f6b21a; }
.item-name { color: #fff; font-size: 19px; font-weight: bold; }
.item-desc { color: #ccc; font-size: 14px; margin-top: 5px; min-height: 32px; }
.item-price { color: #f6d12a; font-size: 18px; font-weight: bold; margin-top: 8px; }
.bottom-cart {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 101;
  background: #222;
  border-top: 4px solid #f6b21a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  font-size: 20px;
}
.bottom-cart button {
  font-size: 20px;
  font-weight: bold;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  background: #2e9e45;
  color: white;
}
.modal.hidden { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.modal-card {
  background: #fff;
  color: #111;
  width: min(620px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border-radius: 18px;
  padding: 18px;
  position: relative;
}
.close {
  position: absolute;
  top: 8px; right: 10px;
  font-size: 34px;
  background: none;
  border: none;
}
.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px;
  margin: 8px 0;
  font-size: 19px;
}
.option-row input { transform: scale(1.35); }
textarea {
  width: 100%;
  min-height: 70px;
  font-size: 18px;
  margin: 10px 0;
}
.add {
  width: 100%;
  padding: 14px;
  font-size: 22px;
  font-weight: bold;
  border: 0;
  border-radius: 12px;
  background: #244fc8;
  color: white;
}
@media (max-width: 650px) {
  h1 { font-size: 18px; }
  .brand img { height: 42px; }
  .page-buttons button { font-size: 15px; padding: 10px 12px; }
  .page-title { font-size: 24px; }
  .item-grid { grid-template-columns: 1fr; }
  .page-section { scroll-margin-top: 118px; }
}
