/* ═══════════════════════════════════════════════════════
   WorkToGo — Page Styles v4 (2026)
   Changes: Home hero cleanup, banner fix, status badges,
   search polish, checkout improvements
═══════════════════════════════════════════════════════ */

/* ── HOME PAGE ─────────────────────────────────────── */

.home-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 14px 16px 20px;
  color: white;
}

.home-greeting {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 3px;
}

.home-tagline {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.home-location-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  cursor: pointer;
  padding: 6px 0;
}

.home-location-label {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.home-location-city {
  font-size: 15px;
  font-weight: 800;
  color: white;
  line-height: 1.2;
}

.home-location-eta {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.15);
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.home-location-arrow {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

.home-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 11px 14px;
  gap: 10px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.1s;
}

.home-search:active { background: rgba(255,255,255,0.22); }

.home-search span {
  flex: 1;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* ── BANNER STRIP ───────────────────────────────────── */

.banner-strip {
  padding: 12px 16px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.banner-strip::-webkit-scrollbar { display: none; }

.banner-card {
  min-width: 100px;
  max-width: 120px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 10px;
  flex-shrink: 0;
  cursor: pointer;
  color: white;
  overflow: hidden;
  transition: transform 0.15s var(--spring), opacity 0.1s;
}

.banner-card:active { transform: scale(0.93); opacity: 0.85; }

.banner-card small {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: 3px;
  line-height: 1;
}

.banner-card span {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.banner-grocery { background: linear-gradient(135deg, #10b981, #059669); }
.banner-shop    { background: linear-gradient(135deg, #f59e0b, #d97706); }
.banner-service { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }

@media (prefers-reduced-motion: reduce) {
  .banner-card { transition: opacity 0.1s; }
  .banner-card:active { transform: none; }
}

/* ── PRODUCT DETAIL ─────────────────────────────────── */

.product-detail-img {
  position: relative;
  background: var(--bg);
}

.product-img-main {
  width: 100%;
  height: 280px;
  object-fit: contain;
  padding: 12px;
}

.product-img-thumbs {
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.product-img-thumbs::-webkit-scrollbar { display: none; }

.product-thumb {
  width: 56px; height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.12s;
}

.product-thumb.active { border-color: var(--primary); }

.product-detail-info { background: white; padding: 16px; }

.product-detail-title {
  font-size: 18px; font-weight: 700;
  color: var(--text-1);
  line-height: 1.3;
  margin-bottom: 10px;
}

.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.detail-price-current  { font-size: 26px; font-weight: 800; color: var(--text-1); }
.detail-price-original { font-size: 16px; color: var(--text-3); text-decoration: line-through; }

.detail-discount {
  background: #fef3c7;
  color: #92400e;
  font-size: 13px; font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.store-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}

.store-link:active  { background: #e8f5f0; }
.store-link-info    { flex: 1; }
.store-link-info small  { font-size: 11px; color: var(--text-3); display: block; }
.store-link-info strong { font-size: 14px; color: var(--primary); }

/* ── CHECKOUT ───────────────────────────────────────── */

.checkout-section {
  background: white;
  padding: 16px;
  margin-bottom: 8px;
}

.checkout-section-title {
  font-size: 15px; font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
  margin-bottom: 8px;
}

.payment-option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.payment-radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.12s;
}

.payment-option.selected .payment-radio { border-color: var(--primary); }
.payment-option.selected .payment-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--primary);
}

.payment-label { font-size: 14px; font-weight: 600; }
.payment-sub   { font-size: 12px; color: var(--text-3); }

/* ── PROFILE ────────────────────────────────────────── */

.profile-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 30px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: white;
  text-align: center;
}

.profile-avatar {
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border: 2px solid rgba(255,255,255,0.3);
}

.profile-name  { font-size: 20px; font-weight: 700; }
.profile-email { font-size: 13px; opacity: 0.8; }

.menu-list { background: white; padding: 8px 0; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}

.menu-item:active      { background: var(--bg); }
.menu-item:last-child  { border-bottom: none; }
.menu-icon  { font-size: 20px; width: 24px; text-align: center; flex-shrink: 0; }
.menu-text  { flex: 1; font-size: 15px; color: var(--text-1); font-weight: 500; }
.menu-arrow { color: var(--text-3); font-size: 16px; }

/* Disabled / coming-soon menu item */
.menu-item-disabled {
  opacity: 0.55;
  cursor: default;
}

.menu-item-badge {
  font-size: 10px; font-weight: 700;
  background: var(--bg);
  color: var(--text-3);
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* ── AUTH ───────────────────────────────────────────── */

.auth-page {
  padding: 30px 20px 40px;
  max-width: 360px;
  margin: 0 auto;
}

.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo h1 {
  font-size: 26px; font-weight: 800;
  color: var(--primary);
  margin-top: 8px;
}
.auth-logo p { font-size: 14px; color: var(--text-3); margin-top: 4px; }

.auth-form { display: flex; flex-direction: column; gap: 14px; }

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: var(--text-2);
  padding-top: 10px;
}
.auth-switch a { color: var(--primary); font-weight: 600; cursor: pointer; }

/* ── SEARCH PAGE ────────────────────────────────────── */

.search-bar-page {
  padding: 12px 14px;
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.search-recents {
  padding: 12px 16px;
  background: white;
  border-bottom: 1px solid var(--border);
}

.search-recents-title {
  font-size: 12px; font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-recents-title a {
  font-size: 11px; font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

.search-recent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-recent-chip {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  background: white;
  transition: background 0.1s, border-color 0.1s;
}

.search-recent-chip:active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.search-results-count {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-3);
}

/* ── ORDER STATUS BADGES ────────────────────────────── */

.status-pending          { background: #fef3c7; color: #92400e; }
.status-processing       { background: #dbeafe; color: #1e3a8a; }
.status-completed        { background: #d1fae5; color: #065f46; }
.status-cancelled        { background: #fee2e2; color: #991b1b; }
.status-failed           { background: #fee2e2; color: #991b1b; }
.status-out-for-delivery { background: #e0f2fe; color: #0c4a6e; }
.status-refunded         { background: #f3f4f6; color: #374151; }
.status-on-hold          { background: #fef3c7; color: #92400e; }

/* ── DELIVERY ESTIMATE BOX ──────────────────────────── */

.delivery-estimate-box {
  background: var(--bg);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 4px;
  border: 1px solid var(--border);
  min-height: 48px;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

.delivery-estimate-box.loaded {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

/* ── QTY SELECTOR (product detail) ─────────────────── */

.qty-selector {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.qty-selector-label {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}
