/* میوه‌جو — quick-buy page */

.qb-page { padding-bottom: 10px; }

/* Mobile top bar */
.qb-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 10px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.qb-topbar .icon-btn { font-size: 26px; width: 42px; height: 42px; }
.qb-topbar-title {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 6px;
}
.qb-topbar-title i, .qb-head h1 i { color: var(--brand); }
.qb-bell { position: relative; }
.qb-bell i { font-size: 23px; }
.qb-dot {
  position: absolute; top: 7px; left: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #34a43a; border: 2px solid #fff;
}
.qb-notifs { min-width: 270px; border: 0; border-radius: 16px; padding: 10px; box-shadow: 0 14px 40px rgba(20, 30, 10, .16); }
.qb-notifs h6 { font-weight: 800; padding: 4px 8px 8px; margin: 0; }
.qb-notif { display: flex; gap: 10px; padding: 10px 8px; border-radius: 12px; color: var(--ink); }
.qb-notif:hover { background: #f4f8f1; color: var(--ink); }
.qb-notif i { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; background: #eef5ea; color: var(--brand); display: flex; align-items: center; justify-content: center; }
.qb-notif span { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.qb-notif b { font-size: 13px; color: var(--ink); }

/* Desktop heading */
.qb-head { align-items: flex-end; justify-content: space-between; gap: 20px; }
.qb-head h1 { font-size: 32px; font-weight: 900; margin: 0; display: flex; align-items: center; gap: 8px; }
.qb-head p { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.qb-crumb { margin: 0 0 6px; font-size: 13px; }
.qb-crumb a { color: var(--muted); }
.qb-crumb .active { color: var(--brand); }

.nav-quick.active { color: var(--brand); }

/* Address + search */
.qb-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.qb-address, .qb-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 16px;
  border: 1px solid #efefeb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(20, 30, 10, .04);
}
.qb-address > i { color: var(--brand); font-size: 22px; }
.qb-addr-label { color: var(--brand); font-weight: 800; font-size: 15px; white-space: nowrap; }
.qb-addr-text { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qb-addr-change {
  border: 0; background: transparent; color: var(--brand);
  font: inherit; font-weight: 800; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px;
}
.qb-addr-change i { font-size: 13px; }
.qb-search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 15px; background: transparent; min-width: 0; }
.qb-search input::placeholder { color: #8a8c84; }
.qb-search button { border: 0; background: transparent; font-size: 22px; color: #6f716a; padding: 0; }
.qb-search:focus-within { border-color: #a9c99f; box-shadow: 0 0 0 4px rgba(43, 106, 37, .08); }

.qb-cats {
  margin: 0 -12px 14px;
  padding: 8px 12px 4px;
}
.qb-cats .sh-fruits {
  justify-content: flex-start;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0;
  padding: 6px 2px 10px;
}

.qb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  overflow-x: clip;
}
.qb-item {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.qb-item:not(:has(.mj-plus-card)) { display: none; }
.qb-item .best-card,
.qb-item .mj-plus-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  overflow: hidden;
}
.qb-item .p-img img {
  max-width: 100%;
}
.qb-more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0 8px;
}
.qb-more .spinner-border {
  width: 2rem;
  height: 2rem;
  color: var(--brand);
  border-width: 0.22em;
}

.qb-empty { text-align: center; padding: 50px 20px; border: 1px dashed #dfe3d9; border-radius: 18px; }
.qb-empty > i { font-size: 40px; color: #b5bbae; }
.qb-empty p { margin: 12px 0 18px; color: var(--muted); }

/* Features strip */
.qb-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 22px;
  border: 1px solid #efefeb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(20, 30, 10, .04);
}
.qb-feature { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 18px 12px; }
.qb-feature + .qb-feature { border-inline-start: 1px solid #f0f0ec; }
.qb-feature strong { display: block; color: var(--brand); font-size: 16px; font-weight: 800; margin-bottom: 2px; }
.qb-feature span { font-size: 13px; color: var(--muted); }
.qb-feature i { font-size: 36px; color: var(--brand); }
.qb-feature img { height: 48px; width: auto; }

/* Delivery banner */
.qb-banner {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 40px;
  border-radius: 20px;
  background: linear-gradient(90deg, #f3f3f1, #fafaf8 50%, #f2f2f0);
  min-height: 190px;
  overflow: hidden;
}
.qb-banner-scooter { height: 160px; width: auto; animation: ride 3.5s ease-in-out infinite; }
.qb-banner-clock { height: 160px; width: auto; }
.qb-banner-text { flex: 1; text-align: center; }
.qb-banner-text h2 { font-size: 32px; font-weight: 900; margin: 0 0 10px; }
.qb-banner-text p { font-size: 20px; color: var(--ink-2); margin: 0; }
@keyframes ride { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-10px); } }

/* Address modal */
.addr-options { display: grid; gap: 10px; }
.addr-opt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; border: 1px solid #ecece7; border-radius: 14px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.addr-opt input { margin-top: 5px; accent-color: var(--brand); }
.addr-opt span { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.addr-opt b { font-size: 14px; color: var(--ink); }
.addr-opt:has(input:checked) { border-color: #a9c99f; background: #f6faf3; }

/* Responsive */
@media (min-width: 992px) {
  .qb-cats .sh-fruits {
    justify-content: flex-start;
    overflow-x: auto;
  }
  .qb-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .qb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}

@media (max-width: 1199.98px) {
  .qb-banner-text h2 { font-size: 26px; }
  .qb-banner-scooter, .qb-banner-clock { height: 130px; }
}

@media (max-width: 991.98px) {
  .qb-page { padding-top: 4px; }
  .qb-tools { grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
  .qb-address, .qb-search { height: 52px; border-radius: 14px; }
  .qb-features { grid-template-columns: repeat(2, 1fr); }
  .qb-feature { justify-content: flex-start; padding: 14px 12px; }
  .qb-feature:nth-child(3) { border-inline-start: 0; }
  .qb-feature:nth-child(n+3) { border-top: 1px solid #f0f0ec; }
  .qb-banner { padding: 14px 16px; min-height: 130px; }
  .qb-banner-text h2 { font-size: 20px; }
  .qb-banner-text p { font-size: 15px; }
  .qb-banner-scooter, .qb-banner-clock { height: 100px; }
}

@media (max-width: 575.98px) {
  .qb-topbar-title { font-size: 24px; }
  .qb-addr-label { font-size: 14px; }
  .qb-addr-text { font-size: 13px; }
  .qb-feature { gap: 8px; padding: 12px 10px; }
  .qb-feature strong { font-size: 14px; }
  .qb-feature span { font-size: 11px; line-height: 1.6; display: block; }
  .qb-feature i { font-size: 28px; }
  .qb-feature img { height: 38px; }
  .qb-banner { gap: 6px; padding: 12px; }
  .qb-banner-text h2 { font-size: 16px; line-height: 1.7; margin-bottom: 4px; }
  .qb-banner-text p { font-size: 13px; }
  .qb-banner-scooter { height: 78px; }
  .qb-banner-clock { height: 82px; }
}
