body {
    overflow-x: hidden;
    margin: 0;
    background: #f7f7f8;
    -webkit-touch-callout: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body, p, span, small, h1, h2, h3, h4, h5, h6 {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ───── Topbar ───── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #FF4D1C;
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
}

.topbar-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 4px;
  color: #fff;
  cursor: pointer;
}

/* ───── Search box ───── */
.search-section {
  position: sticky;
  top: 52px;
  z-index: 900;
  background: #f7f7f8;
  padding: 14px 16px 8px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: border-color .15s;
}

.search-box:focus-within {
  border-color: #FF4D1C;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  color: #222;
}

.search-box input::placeholder {
  color: #999;
}

#sp-clear {
  display: none;
  color: #999;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  padding: 2px 4px;
}

/* ───── Status states (loading / empty / prompt) ───── */
.sp-status {
  text-align: center;
  color: #888;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  padding: 60px 20px;
}

/* ───── Outlet-count summary ───── */
.sp-summary {
  margin: 4px 16px 0;
  padding: 10px 14px;
  background: #fff3ee;
  border: 1px solid #ffd9c9;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  color: #b8390f;
  text-align: center;
}

.sp-summary b {
  font-weight: 700;
  color: #FF4D1C;
}

/* ───── Restaurant result group ───── */
.rg-group {
  background: #fff;
  margin: 10px 12px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.rg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f2f2f2;
}

.rg-header:active {
  background: #fafafa;
}

.rg-name {
  font-weight: 700;
  font-size: 15px;
  color: #222;
  font-family: 'Poppins', sans-serif;
}

.rg-closed-badge {
  font-size: 10px;
  font-weight: 700;
  color: #c0392b;
  background: #fdecea;
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 8px;
  white-space: nowrap;
}

.rg-chevron {
  color: #bbb;
  font-size: 13px;
  flex-shrink: 0;
}

.rg-match-badge {
  font-size: 10px;
  font-weight: 700;
  color: #1a5fb4;
  background: #eaf1fd;
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 8px;
  white-space: nowrap;
}

.rg-subline {
  padding: 8px 16px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: #6b7280;
}

/* ───── Product grid (reused visual language from the per-restaurant
   search pages) ───── */
.homepage_products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 8px;
    gap: 6px;
}

.homepage_products p {
    width: 100%;
    height: 280px;
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    margin: 0;
    overflow: hidden;
    cursor: default;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #111827;
}

.product-qty {
    font-size: 10px;
    font-weight: 400;
    color: #6b7280;
    margin-top: 2px;
}

.product-price {
    font-size: 12px;
    margin-top: 2px;
    font-weight: 600;
}
.price-compare {
  position: relative;
  display: block;
  height: 13px;
  font-size: 10px;
  margin-top: -8px;
  overflow: hidden;
}
.price-compare span {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  animation: pcCycle 6s infinite;
}
.price-compare .pc-our {
  color: #2563eb;
  animation-delay: 0s;
}
.price-compare .pc-other {
  color: #6b7280;
  animation-delay: 3s;
}
@keyframes pcCycle {
  0%, 4% { opacity: 0; }
  8%, 42% { opacity: 1; }
  46%, 100% { opacity: 0; }
}


.homepage_products b {
    height: 120px;
    display: block;
}

.homepage_products b img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    background: #f0f0f0;
}

.station_cart {
    position: relative;
    display: block;
    padding: 5px;
    border-radius: 6px;
    background-color: green;
    z-index: 4;
    float: right;
    margin-top: -20px;
}

.station_cart button {
    border: none;
    background: transparent;
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
}

.station_cart span {
    color: white;
    font-size: 12px;
    min-width: 12px;
    text-align: center;
}

/* ───── Floating cart icon ───── */
#floatingIcon {
    position: fixed;
    bottom: 90px;
    right: 16px;
    width: 56px;
    height: 56px;
    background: black;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

@media (max-width: 360px) {
  .homepage_products { grid-template-columns: repeat(2, 1fr); }
}
