* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  background: #f4f5f7;
  color: #1c1c1e;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
header h1 { margin: 0; font-size: 20px; }

nav a, nav button {
  margin-left: 10px;
  font-size: 14px;
  color: #1f6feb;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

main { padding: 16px; max-width: 600px; margin: 0 auto; }
main h2.title { margin: 4px 0 14px; font-size: 20px; }

.back { display: inline-block; margin-bottom: 12px; font-size: 14px; color: #1f6feb; text-decoration: none; }

/* City and category tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  display: block;
  padding: 22px 12px;
  text-align: center;
  background: #fff;
  color: inherit;
  text-decoration: none;
  font-size: 17px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.tile small { display: block; margin-top: 4px; font-size: 13px; color: #6b6b70; }

/* Business cards */
.biz {
  background: #fff;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.biz h2 { margin: 0 0 4px; font-size: 18px; }
.tag { font-size: 13px; color: #6b6b70; margin-bottom: 8px; }
.biz p { margin: 0; font-size: 15px; }

#status { color: #6b6b70; }

/* Room at the bottom so the pay bar never covers content */
main { padding-bottom: 100px; }

.note { margin: 0 0 6px; font-size: 14px; color: #6b6b70; }

/* Pay bar, stuck to the bottom of the screen */
.pay-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
}
.pay-bar[hidden] { display: none; }
.pay-label { font-size: 12px; color: #6b6b70; }
.pay-total { font-size: 20px; font-weight: 700; }
.pay-bar button {
  padding: 12px 28px;
  font-size: 16px;
  border: none;
  border-radius: 10px;
  background: #1f6feb;
  color: #fff;
  cursor: pointer;
}
.pay-bar button:disabled { opacity: 0.6; }

/* Owner orders */
.order {
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.order-buyer { margin-bottom: 10px; font-weight: 600; word-break: break-word; }
.order-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  font-size: 15px;
}
.order-row.strong { font-weight: 700; }
.order hr { border: none; border-top: 1px solid #e5e5ea; margin: 10px 0; }
.order-ref { margin-top: 8px; font-size: 12px; color: #8e8e93; word-break: break-all; }
.rating-box[hidden] { display: none; }
.owner-link { display: block; margin: 8px 0; font-size: 15px; color: #1f6feb; text-decoration: none; }

/* Links wrapping a business card */
a.biz { display: block; color: inherit; text-decoration: none; }

/* Business page */
.section-title { margin: 22px 0 10px; font-size: 18px; }

.rating-box {
  margin: 14px 0;
  padding: 12px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.rating-summary { font-size: 16px; font-weight: 600; }
.stars button {
  background: none;
  border: none;
  padding: 0 2px;
  font-size: 32px;
  color: #cfcfd4;
  cursor: pointer;
}
.stars button.on { color: #f5a623; }
.small-msg { min-height: 18px; font-size: 14px; color: #6b6b70; }
.small-msg a { color: #1f6feb; }

/* Owner's add-product box */
.owner-box {
  margin: 14px 0;
  padding: 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.owner-box[hidden], #bizSection[hidden] { display: none; }
.owner-box h3 { margin: 0 0 6px; font-size: 18px; }
.owner-box label { display: block; margin: 12px 0 4px; font-size: 14px; }
.owner-box input, .owner-box select, .owner-box textarea {
  width: 100%;
  padding: 11px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #d0d0d5;
  border-radius: 8px;
}
.owner-box button[type="submit"] {
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background: #1f6feb;
  color: #fff;
  cursor: pointer;
}
.owner-box button:disabled { opacity: 0.6; }

/* Product card (picture left, details right) */
.product {
  display: flex;
  gap: 14px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.pimg {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 14px;
  background: #eee;
}
.pinfo { flex: 1; min-width: 0; }
.pinfo h3 { margin: 0 0 4px; font-size: 17px; }
.pinfo p { margin: 0 0 10px; font-size: 14px; color: #6b6b70; }
.prow { display: flex; justify-content: space-between; align-items: center; }
.price { font-weight: 600; }

.stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  background: #1c1c1e;
  color: #fff;
  border-radius: 20px;
}
.stepper button {
  background: none;
  border: none;
  padding: 0 4px;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
}

.del {
  margin-top: 10px;
  padding: 6px 12px;
  font-size: 13px;
  color: #c62828;
  background: none;
  border: 1px solid #c62828;
  border-radius: 8px;
  cursor: pointer;
}
.gif {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 24px auto;
  border-radius: 16px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .gif { max-width: 720px; border-radius: 20px; }
}

@media (min-width: 1200px) {
  .gif { max-width: 900px; }
}
.vbadge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 9px;
  background: #e8f1fe;
  color: #0b4fcf;
  font-size: 12px;
  font-weight: 500;
  border-radius: 999px;
  vertical-align: middle;
}

