/* Component styles the shopper pages and the Merchant Center share.
   These lived in console.css, which now loads only on console pages, so the
   storefront lost its styling for chat, markets, deals, shorts, video and
   reviews. Loaded on every page, after app.css and before console.css. */

/* Monospaced values: SKUs, barcodes, pasted order lines. Used by the shopper
   B2B quote form as well as the console, so it cannot live in console.css. */
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }

.cell-thumb { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line-2); background: var(--bg-3); vertical-align: middle; }

.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); vertical-align: -2px; margin-right: 6px; }

.input-affix { display: flex; align-items: center; gap: 8px; }

.input-affix input { max-width: 110px; }

.prewrap { white-space: pre-line; }

.master-info h1 { font-size: 26px; line-height: 1.25; margin: 4px 0; font-weight: 400; overflow-wrap: anywhere; }

.master-price { font-size: 24px; font-weight: 500; margin: 12px 0 2px; }

.offer-list { list-style: none; margin: 0; padding: 0; }

.offer { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2); }

.offer-shop { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 760px) {
.offer { grid-template-columns: 1fr auto; }
.offer-stock { grid-column: 1; }
}

.media-credit { margin-top: 6px; overflow-wrap: anywhere; }

.rating-line { display: inline-flex; gap: 4px; align-items: center; margin: 6px 0; color: inherit; text-decoration: none; }

.highlights { margin: 12px 0; padding-left: 20px; display: grid; gap: 4px; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

.video-card { display: grid; gap: 4px; color: inherit; text-decoration: none; }

.video-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--bg-3); display: block; }

.video-thumb img { width: 100%; height: 100%; object-fit: cover; }

.video-play { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; font-size: 48px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }

.video-title { font-weight: 500; overflow-wrap: anywhere; }

.review-summary { display: grid; grid-template-columns: minmax(140px, max-content) minmax(0, 360px); gap: 24px; align-items: center; margin-bottom: 12px; }

.review-score b { font-size: 36px; font-weight: 400; display: block; }

.review-bar { display: grid; grid-template-columns: 34px 1fr 32px; gap: 8px; align-items: center; }

.review-bar .bar { height: 8px; border-radius: 4px; background: var(--bg-3); overflow: hidden; }

.review-bar .bar span { display: block; height: 100%; background: #e37400; }

.review-list { list-style: none; margin: 0; padding: 0; }

.review { padding: 12px 0; border-top: 1px solid var(--line-2); }

.review p { margin: 6px 0 0; overflow-wrap: anywhere; }

.review-reply { padding: 8px 12px; background: var(--bg-2); border-radius: 8px; }

@media (max-width: 760px) {
.review-summary { grid-template-columns: 1fr; gap: 12px; }
}

.dist { color: var(--good); }

.place-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

.place-list button { width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px;
  border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: inherit; cursor: pointer; font: inherit; }

.place-list button:hover { background: var(--bg-2); }

.master-offers-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Universal Page Container System: Services, Markets, Deals */
.services-hub,
.deals-hub,
.deals-page,
.markets-hub,
.feed-page {
  max-width: 1280px;
  margin: 0 auto 0 0 !important;
  padding: 16px 24px 48px;
  box-sizing: border-box;
  width: 100%;
}

@media (max-width: 768px) {
  .services-hub,
  .deals-hub,
  .deals-page,
  .markets-hub,
  .feed-page {
    padding: 12px 16px 32px;
  }
}

/* Products-Style Filter Menu System (Google Shopping design cue) */
.services-filters,
.deals-filters,
.markets-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 10px;
}

.services-filters .chip,
.deals-filters .chip,
.markets-filters .chip {
  height: 34px;
  padding: 0 12px 0 14px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: all .15s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
}

.services-filters .chip:hover,
.deals-filters .chip:hover,
.markets-filters .chip:hover {
  background: var(--bg-2);
  color: var(--text);
  border-color: var(--line);
}

.services-filters .chip.on,
.deals-filters .chip.on,
.markets-filters .chip.on {
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.12) 0%, rgba(18, 140, 126, 0.12) 100%);
  border-color: var(--brand-1);
  color: var(--brand-1);
  font-weight: 600;
}

.services-filters .menu,
.deals-filters .menu,
.markets-filters .menu {
  border-radius: 14px;
  border: 1px solid var(--line-2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 6px 0;
  min-width: 220px;
  background: var(--surface);
  position: absolute;
  top: 40px;
  left: 0;
  z-index: 30;
}

.services-filters .menu a,
.deals-filters .menu a,
.markets-filters .menu a {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  transition: background .12s ease;
}

.services-filters .menu a:hover,
.deals-filters .menu a:hover,
.markets-filters .menu a:hover {
  background: var(--bg-2);
}

.services-filters .menu a.on,
.deals-filters .menu a.on,
.markets-filters .menu a.on {
  color: var(--brand-1);
  font-weight: 600;
  background: rgba(26, 115, 232, 0.06);
}

.services-filters .menu .count,
.deals-filters .menu .count,
.markets-filters .menu .count {
  font-size: 11px;
  color: var(--text-3);
  background: var(--bg-2);
  padding: 2px 7px;
  border-radius: 10px;
}

/* Single-line horizontal scroll rail for quick categories / pills */
.services-quick-categories,
.deals-quick-rail,
.markets-quick-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  padding: 4px 0 10px;
  margin: 2px 0 8px;
  width: 100%;
}

.services-quick-categories::-webkit-scrollbar,
.deals-quick-rail::-webkit-scrollbar,
.markets-quick-rail::-webkit-scrollbar {
  display: none;
}

.svc-quick-chip,
.deal-quick-chip,
.mkt-quick-chip {
  flex: none;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .15s ease;
}

.svc-quick-chip:hover,
.deal-quick-chip:hover,
.mkt-quick-chip:hover {
  border-color: var(--brand-1);
  color: var(--brand-1);
}

.svc-quick-chip.on,
.deal-quick-chip.on,
.mkt-quick-chip.on {
  background: var(--brand-1);
  border-color: var(--brand-1);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.25);
}

/* Results Header & Toolbar across Hubs */
.services-toolbar,
.deals-toolbar,
.markets-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
  color: var(--text-2);
  flex-wrap: wrap;
}

.services-count,
.deals-count,
.markets-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-2);
}

.services-actions,
.deals-toolbar-actions,
.markets-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.feed-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }

.feed-head h1 { margin: 0 0 4px; }

.feed-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; max-width: 640px; margin: 12px 0 16px; }

.tool-search {
  position: relative;
  flex: 1 1 240px;
  max-width: 540px;
  display: flex;
  align-items: center;
}

.tool-search .ms {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--text-3);
  pointer-events: none;
}

.tool-search input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 44px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.tool-search input:focus {
  border-color: #5b3fe0;
  box-shadow: 0 2px 10px rgba(91, 63, 224, 0.15);
}

/* ==========================================================================
   MARKETS MODULE REVAMP SYSTEM
   ========================================================================== */

.markets-hub,
.markets-page {
  max-width: 1200px;
  margin: 0 auto 0 0;
  padding: 24px 20px 64px;
  box-sizing: border-box;
}

/* Markets Hero */
.markets-hero {
  background: linear-gradient(135deg, rgba(91, 63, 224, 0.08) 0%, rgba(124, 58, 237, 0.06) 50%, rgba(26, 115, 232, 0.06) 100%);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 36px 28px;
  margin-bottom: 24px;
  text-align: left;
}

.markets-hero-inner {
  max-width: 820px;
  margin: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.markets-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.markets-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(91, 63, 224, 0.25);
  font-size: 12px;
  font-weight: 700;
  color: #5b3fe0;
  box-shadow: 0 2px 6px rgba(91, 63, 224, 0.08);
}

.markets-sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}

.markets-hero-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
}

.markets-hero-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  color: var(--text);
  line-height: 1.15;
}

.markets-hero-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
  max-width: 680px;
}

.markets-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.markets-cta-btn {
  background: linear-gradient(135deg, #5b3fe0 0%, #7c3aed 100%) !important;
  border: none !important;
  border-radius: 24px !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(91, 63, 224, 0.25) !important;
}

/* Search Form */
.markets-search-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 640px;
  margin-top: 6px;
}

.markets-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 0 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.markets-input-wrap:focus-within {
  border-color: #5b3fe0;
  box-shadow: 0 2px 10px rgba(91, 63, 224, 0.15);
}

.markets-input-wrap span {
  color: var(--text-3);
}

.markets-input-wrap input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 14.5px;
  outline: none;
  color: var(--text);
}

.markets-search-btn {
  border-radius: 28px;
  padding: 0 24px;
  font-weight: 600;
  flex: none;
  background: linear-gradient(135deg, #5b3fe0 0%, #7c3aed 100%);
  border: none;
  color: #fff;
  box-shadow: 0 2px 8px rgba(91, 63, 224, 0.25);
}

/* Kind Pills in Hero */
.market-kind-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.kind-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line-2);
  text-decoration: none;
  transition: all .15s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.kind-pill:hover {
  background: var(--bg-2);
  color: var(--text);
  border-color: var(--line);
}

.kind-pill.active {
  background: linear-gradient(135deg, #5b3fe0 0%, #7c3aed 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(91, 63, 224, 0.28) !important;
  font-weight: 600;
}

.market-distance-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.markets-near-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 600;
  margin-right: 2px;
}

.dist-pill {
  padding: 5px 12px;
  font-size: 12px;
}

/* Trade Wire Card */
.b2b-wire-section {
  margin: 10px 0 24px !important;
  padding: 24px !important;
  border-radius: 20px !important;
  border: 1px solid var(--line-2) !important;
  background: linear-gradient(135deg, rgba(91, 63, 224, 0.05) 0%, rgba(26, 115, 232, 0.04) 100%) !important;
}

.b2b-wire-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.b2b-wire-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .5px;
  color: #5b3fe0;
  margin-bottom: 4px;
}

.b2b-wire-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
}

.b2b-wire-sub {
  font-size: 13.5px;
  color: var(--text-2);
  margin: 0;
}

.b2b-wire-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.b2b-rfq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.b2b-rfq-card {
  padding: 16px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.b2b-rfq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border-color: rgba(91, 63, 224, 0.3);
}

.b2b-rfq-text {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--text);
}

.b2b-rfq-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-3);
}

.b2b-rfq-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-3);
  border-top: 1px solid var(--line-2);
  padding-top: 8px;
}

.b2b-rfq-offers {
  font-weight: 700;
  color: #5b3fe0;
}

/* Market Cards Grid */
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.market-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.market-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border-color: rgba(91, 63, 224, 0.3);
}

.market-icon {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(91, 63, 224, 0.1);
  color: #5b3fe0;
  display: grid;
  place-items: center;
  font-size: 24px;
}

/* ==========================================================================
   DEALS MODULE REVAMP SYSTEM
   ========================================================================== */

.deals-hub,
.deals-page {
  max-width: 1200px;
  margin: 0 auto 0 0;
  padding: 24px 20px 64px;
  box-sizing: border-box;
}

/* Deals Hero */
.deals-hero {
  background: linear-gradient(135deg, rgba(234, 67, 53, 0.08) 0%, rgba(251, 188, 4, 0.07) 50%, rgba(106, 27, 154, 0.06) 100%);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 36px 28px;
  margin-bottom: 24px;
  text-align: left;
}

.deals-hero-inner {
  max-width: 780px;
  margin: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.deals-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid rgba(234, 67, 53, 0.25);
  font-size: 12px;
  font-weight: 700;
  color: #dc2626;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.08);
}

.deals-hero-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
  line-height: 1.15;
}

.deals-hero-desc {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0;
}

/* Mode / Discount Segmented Navigation */
.deals-mode-nav {
  display: inline-flex;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 30px;
  padding: 4px;
  gap: 4px;
  margin-top: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.deal-mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: all .15s ease;
}

.deal-mode-tab:hover {
  color: var(--text);
  background: var(--bg-2);
}

.deal-mode-tab.on {
  background: linear-gradient(135deg, #e11d48 0%, #ea580c 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.28);
}

.deal-mode-count {
  font-size: 11px;
  opacity: 0.9;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
}

.deal-mode-count.hot {
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
  font-weight: 700;
}

.deal-mode-tab.on .deal-mode-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

/* Search Form */
.deals-search-form {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 620px;
  margin-top: 8px;
}

.deals-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 0 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.deals-input-wrap span {
  color: var(--text-3);
}

.deals-input-wrap input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 0;
  font-size: 14px;
  outline: none;
  color: var(--text);
}

.deals-search-btn {
  border-radius: 28px;
  padding: 0 22px;
  font-weight: 600;
  flex: none;
  background: linear-gradient(135deg, #e11d48 0%, #ea580c 100%);
  border: none;
  color: #fff;
}

/* Category Filter Pills */
.deals-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.deal-chip {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: all .15s ease;
}

.deal-chip:hover {
  border-color: #e11d48;
  color: #e11d48;
}

.deal-chip.on {
  background: linear-gradient(135deg, #e11d48 0%, #ea580c 100%);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.25);
}

/* Toolbar */
.deals-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 24px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
}

.deals-count {
  font-size: 14px;
  color: var(--text-2);
}

.deals-reset-link {
  color: #e11d48;
  text-decoration: none;
  font-weight: 600;
}

.deals-reset-link:hover {
  text-decoration: underline;
}

.deals-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.deals-sort-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.deals-sort-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.deals-select {
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  cursor: pointer;
}

.deals-select:focus {
  border-color: #e11d48;
}

/* Spotlight Featured Drop Card */
.deal-spotlight-card {
  background: var(--surface);
  border: 2px solid rgba(225, 29, 72, 0.35);
  border-radius: 18px;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.08);
  position: relative;
}

.spotlight-badge {
  background: linear-gradient(135deg, #e11d48 0%, #ea580c 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.spotlight-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 20px;
}

@media (max-width: 680px) {
  .spotlight-inner {
    grid-template-columns: 1fr;
  }
}

.spotlight-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  text-decoration: none;
}

.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.spotlight-media:hover img {
  transform: scale(1.04);
}

.spotlight-img-fallback {
  color: var(--text-3);
  display: grid;
  place-items: center;
  font-size: 36px;
}

.spotlight-discount-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #dc2626;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.spotlight-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.spotlight-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-3);
  flex-wrap: wrap;
}

.spotlight-shop {
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.spotlight-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.spotlight-title a {
  color: inherit;
  text-decoration: none;
}

.spotlight-title a:hover {
  color: #e11d48;
}

.spotlight-pricing {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.spotlight-price-now {
  font-size: 26px;
  font-weight: 800;
  color: #dc2626;
}

.spotlight-price-was {
  font-size: 16px;
  color: var(--text-3);
}

.spotlight-savings-pill {
  background: #dcfce7;
  color: #15803d;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

.spotlight-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #059669;
  font-weight: 600;
  font-size: 12.5px;
}

.spotlight-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.deals-spotlight-btn {
  background: linear-gradient(135deg, #e11d48 0%, #ea580c 100%) !important;
  border: none !important;
  border-radius: 24px !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
}

/* Deals Stream Grid */
.deal-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.deal-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}

.deal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(225, 29, 72, 0.35);
}

.deal-card.hot-deal {
  border-color: rgba(234, 88, 12, 0.35);
}

.deal-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--text-3);
  text-decoration: none;
}

.deal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.deal-card:hover .deal-img img {
  transform: scale(1.05);
}

.deal-img-fallback {
  color: var(--text-3);
  display: grid;
  place-items: center;
  font-size: 32px;
}

.deal-pct {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #e11d48 0%, #dc2626 100%);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.deal-hot-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.deal-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deal-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-title:hover {
  color: #e11d48;
}

.deal-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.deal-price b {
  font-size: 20px;
  font-weight: 800;
  color: #dc2626;
}

.deal-price s {
  font-size: 13.5px;
  color: var(--text-3);
}

.deal-savings-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 7px;
  border-radius: 6px;
}

.deal-shop-row {
  font-size: 12.5px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.deal-shop-link {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.deal-shop-link:hover {
  color: #e11d48;
}

.deal-guarantee-row {
  font-size: 11.5px;
  font-weight: 600;
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.deal-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.deal-view-btn {
  background: linear-gradient(135deg, #e11d48 0%, #ea580c 100%) !important;
  border: none !important;
  color: #fff !important;
  border-radius: 18px !important;
  font-weight: 600 !important;
  padding: 4px 12px !important;
}

/* Empty State Card */
.deals-empty-card {
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border: 1px dashed var(--line-2);
  border-radius: 20px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.deals-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(225, 29, 72, 0.1);
  color: #e11d48;
  display: grid;
  place-items: center;
  font-size: 28px;
}

.deals-empty-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.deals-empty-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
  max-width: 440px;
  line-height: 1.5;
}

.feed-more { grid-column: 1 / -1; display: flex; justify-content: center; padding: 8px; }

.follow-form { display: inline; }

.follow-btn.on { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

.note-list, .follow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }

.note-img { flex: none; width: 48px; height: 48px; border-radius: 8px; background: var(--bg-3); display: grid; place-items: center; overflow: hidden; }

.note-img img { width: 100%; height: 100%; object-fit: cover; }

.note-body { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }

.follow-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line-2); }

.follow-list form { margin-left: auto; }

.master-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }

.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }

.market-card { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); color: inherit; text-decoration: none; }

.market-card:hover { box-shadow: var(--shadow); }

.market-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }

.market-body { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }

.clip-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.market-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px; }

.market-head h1 { margin: 0 0 4px; font-weight: 400; }

.market-head-main { flex: 1 1 360px; min-width: 0; }

.market-head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }

.market-head-actions form { display: inline; }

.market-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }

.market-side { display: grid; gap: 12px; }

.market-side h2 { font-size: 16px; margin: 0 0 6px; }

.safety-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

.price-in { width: 110px; }

.post-kind { background: #1a73e8; }

.seller-card { margin-top: 12px; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; display: grid; gap: 4px; }

.keep-photo { display: grid; gap: 4px; font-size: 13px; }

.report-box summary { cursor: pointer; }

@media (max-width: 860px) {
.market-layout { grid-template-columns: 1fr; }
}

.inbox-list { list-style: none; margin: 0; padding: 0; }

.inbox-avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; overflow: hidden; color: var(--text-3); }

.inbox-avatar img { width: 100%; height: 100%; object-fit: cover; }

.inbox-body { flex: 1; min-width: 0; display: grid; gap: 2px; }

.inbox-body > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.inbox-top { display: flex; gap: 6px; align-items: baseline; }

.inbox-time { margin-left: auto; white-space: nowrap; }

.chat-head { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; background: var(--bg); z-index: 5; padding: 6px 0; border-bottom: 1px solid var(--line-2); }

.chat-title { flex: 1; min-width: 0; display: grid; }

.chat-title > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chat-menu .menu { right: 0; left: auto; }

.chat-menu .menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 12px; font: inherit; color: inherit; cursor: pointer; }

.chat-menu .menu button:hover { background: var(--bg-2); }

.chat-list { display: flex; flex-direction: column; gap: 6px; min-height: 40vh; max-height: 62vh; overflow-y: auto; padding: 8px 2px; }

.chat-card { display: flex; gap: 8px; align-items: center; color: inherit; text-decoration: none; background: var(--surface); border-radius: 10px; padding: 6px; }

.chat-card img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }

.chat-card span { display: grid; }

.chat-pay { display: grid; gap: 6px; }

.chat-caution { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: var(--warn-bg); color: var(--warn-fg); display: flex; gap: 6px; align-items: flex-start; }

.chat-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }

.chat-tools summary { list-style: none; cursor: pointer; }

.chat-composer { display: flex; gap: 6px; align-items: flex-end; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--bg); padding: 8px 0; }

.chat-composer textarea { flex: 1 1 200px; resize: vertical; min-height: 40px; max-height: 160px; padding: 9px 12px; border-radius: 20px; border: 1px solid var(--line); font: inherit; background: var(--surface); color: inherit; }

.about-chip { flex-basis: 100%; display: flex; gap: 4px; align-items: center; color: var(--text-2); }

.quick-pick { max-width: 140px; }

.attach { cursor: pointer; }

.shorts-head .page-actions { align-items: center; }
.shorts-title-wrap { display: flex; align-items: center; gap: 8px; }
.shorts-title-wrap h1 { display: flex; align-items: center; gap: 6px; margin: 0; }

.shorts-chips-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.shorts-chips-bar::-webkit-scrollbar { display: none; }

.shorts-feed {
  display: grid;
  gap: 20px;
  scroll-snap-type: y mandatory;
  padding-bottom: 40px;
}

.short-card {
  position: relative;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 440px;
  min-height: 580px;
  max-height: calc(100vh - 140px);
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: #0b0f17;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.short-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  z-index: 1;
  cursor: pointer;
  user-select: none;
}

.short-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.short-yt-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.short-yt-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.short-yt-play-btn {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 64px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.short-yt-play-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.short-scrim-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 130px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.short-scrim-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 380px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.25) 75%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* ---- Top Overlay: Creator, Verified Badge & Sound ---- */
.short-overlay-top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
  color: #fff;
}

.creator-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.creator-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.creator-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.creator-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.creator-name {
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.verified-maker-badge {
  background: #1a73e8;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.sound-ticker {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 210px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.top-ctrls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.short-sound {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.short-sound:hover {
  transform: scale(1.08);
  background: rgba(0, 0, 0, 0.75);
}

/* ---- Right Floating Viral Action Rail ---- */
.short-rail {
  position: absolute;
  right: 12px;
  bottom: 84px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  z-index: 4;
}

.rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rail-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(18, 22, 30, 0.7);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
}
.rail-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}
.rail-btn:active {
  transform: scale(0.92);
}

.rail-label {
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  margin-top: 3px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.like-btn.on {
  color: #ff2d55;
  background: rgba(255, 45, 85, 0.25);
  border-color: #ff2d55;
}

.promo-rail-btn {
  background: linear-gradient(135deg, #e37400, #ea8600);
  border-color: rgba(255, 255, 255, 0.6);
  animation: pulsePromo 2.4s infinite ease-in-out;
}
.promo-pct {
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

@keyframes pulsePromo {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 134, 0, 0.7); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(234, 134, 0, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 134, 0, 0); }
}

.rail-more summary { list-style: none; }
.rail-more summary::-webkit-details-marker { display: none; }
.danger-rail-btn:hover { background: rgba(239, 68, 68, 0.8); }

/* ---- Bottom Content & Shoppable Product Tray ---- */
.short-overlay-bottom {
  position: absolute;
  left: 14px;
  right: 68px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3;
  color: #fff;
}

.short-caption-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.short-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
  line-height: 1.3;
}
.short-title:hover {
  text-decoration: underline;
}

.short-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cat-pill {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 12px;
}

.loc-pill {
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.short-caption {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Shoppable Product Tray */
.short-product-tray {
  margin-top: 2px;
}

.tray-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(18, 22, 30, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.tray-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #1e293b;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
}
.tray-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tray-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tray-product-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tray-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: #fff;
}

.promo-price {
  color: #4ade80;
  font-weight: 700;
}

.discount-pill {
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 6px;
}

.tray-buy-btn {
  flex-shrink: 0;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Glowing Promo Code Clipboard Bar */
.promo-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: linear-gradient(135deg, rgba(234, 134, 0, 0.9), rgba(197, 34, 31, 0.9));
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}
.promo-code-bar:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(234, 134, 0, 0.4);
}
.promo-code-bar:active {
  transform: scale(0.98);
}

.promo-bar-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.code-hl {
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 5px;
  border-radius: 4px;
}

.copy-pill {
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Scrub Progress Bar */
.short-scrub-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: -56px;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  z-index: 5;
}

.short-scrub-fill {
  height: 100%;
  width: 0%;
  background: var(--brand-1, #1a73e8);
  transition: width 0.1s linear;
}

/* Play/Pause Center Indicator */
.play-pause-pulse {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.65);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.play-pause-pulse.show {
  opacity: 1;
  transform: scale(1);
}

/* Double-tap Beating Heart Animation */
.heart-burst-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  overflow: hidden;
}

.heart-burst {
  position: absolute;
  color: #ff2d55;
  font-size: 72px;
  transform: translate(-50%, -50%) scale(0);
  animation: heartBurstAnim 0.75s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(255, 45, 85, 0.6));
}

@keyframes heartBurstAnim {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  35% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
  65% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -80px) scale(1.4); opacity: 0; }
}

/* Floating Promotional Toast */
.promo-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #0f172a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.promo-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.inner-card { padding: 10px; display: grid; gap: 8px; }
.sponsored-pill { background: #5f6368; }
.ad-card { border-style: dashed; }
.sponsored-offer { border: 1px dashed var(--line); border-radius: 10px; padding: 10px; color: inherit; text-decoration: none; margin-bottom: 6px; }
.shorts-ad .ad-card { display: grid; grid-template-columns: 120px 1fr; grid-template-rows: none; }

.home-section { display: grid; gap: 10px; }

.home-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

.home-section-head h2 { font-size: 18px; font-weight: 500; margin: 0; }

.dim-pills-bar {
  margin: 14px 0 8px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-radius: 10px;
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dim-pills-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.dim-guidance-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-weight: 500;
}

.dim-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dim-pill.active .dim-count {
  color: #fff !important;
  opacity: 0.9;
}

.dim-guide-drawer {
  margin: 10px 0 16px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
}

.dim-guide-summary {
  padding: 10px 14px;
  cursor: pointer;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  user-select: none;
}

.dim-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  padding: 14px;
}

.dim-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dim-chip {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 11px;
}

.dim-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-2);
}

.offer-dim-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.dim-tag {
  background: var(--bg-3);
  color: var(--text-1);
  font-size: 11px;
  padding: 2px 6px;
  font-weight: 500;
}

.dim-pack-tag {
  font-size: 11px;
  color: var(--text-2);
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
}

.offer-unit-context {
  font-size: 12px;
  font-weight: 500;
  color: var(--good-fg, #137333);
  margin-top: 2px;
}

.date-picker-btn .chev {
  font-size: 16px;
  color: var(--text-3);
  transition: transform .2s ease;
}

details[open] > .date-picker-btn .chev {
  transform: rotate(180deg);
}

.date-presets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.date-custom-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line-2);
  padding-top: 12px;
}

.date-inputs-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.date-apply-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-end;
}

.date-apply-btn:hover {
  filter: brightness(1.08);
}

/* ==========================================================================
   GOOGLE MY BUSINESS (GMB) PLACE CARDS
   ========================================================================== */
.gmb-card {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-2);
  transition: all 0.15s ease;
  background: var(--surface);
  position: relative;
}

.gmb-card:hover {
  background: var(--bg-2);
}

.gmb-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.gmb-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.gmb-title a {
  color: var(--text);
  text-decoration: none;
}

.gmb-title a:hover {
  color: var(--brand-1);
  text-decoration: underline;
}

.gmb-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(37, 211, 102, 0.12);
  color: #128c7e;
  font-size: 11px;
  font-weight: 600;
}

.gmb-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.gmb-score {
  font-weight: 700;
  color: var(--text);
}

.gmb-stars {
  color: #fbbc04;
  letter-spacing: 1px;
}

.gmb-reviews {
  color: var(--text-2);
}

.gmb-snippet {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.45;
  margin: 6px 0 8px;
}

.gmb-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12.5px;
}

.gmb-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
}

.gmb-meta-item a {
  color: var(--brand-1);
  text-decoration: none;
  font-weight: 500;
}

.gmb-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
}

.gmb-status-pill.open {
  background: rgba(37, 211, 102, 0.12);
  color: #128c7e;
}

.gmb-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 6px #25d366;
}

.gmb-actions .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--text);
  text-decoration: none;
  transition: all 0.15s ease;
}

.gmb-actions .pill:hover {
  background: var(--bg-2);
  border-color: var(--line);
  transform: translateY(-1px);
}

.gmb-actions .gmb-dir-btn {
  background: rgba(26, 115, 232, 0.08);
  border-color: rgba(26, 115, 232, 0.3);
  color: var(--brand-1);
  font-weight: 600;
}

.gmb-actions .gmb-source-btn {
  background: rgba(18, 140, 126, 0.08);
  border-color: rgba(18, 140, 126, 0.3);
  color: #128c7e;
  font-weight: 600;
}

/* ---- Interactive Cart Slide-Out Drawer (Mini-Cart Flyout) ---- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
  opacity: 0;
  transition: opacity .22s ease, visibility .22s ease;
}

.cart-drawer-overlay.open {
  visibility: visible;
  opacity: 1;
}

.cart-drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: pointer;
}

.cart-drawer {
  position: relative;
  z-index: 10;
  width: min(440px, 100vw);
  height: 100%;
  background: var(--surface);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .26s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.cart-drawer-overlay.open .cart-drawer {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-2);
  flex-shrink: 0;
}

.cart-drawer-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-drawer-icon {
  font-size: 22px;
  color: var(--primary);
}

.cart-drawer-title-row h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.cart-drawer-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 24px;
  color: var(--text-2);
  font-size: 14px;
}

.cart-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cart-drawer-perk {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(52, 168, 83, 0.08);
  border-bottom: 1px solid rgba(52, 168, 83, 0.18);
  color: #1e7e34;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.cart-drawer-lines {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-drawer-line {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
  align-items: start;
}

.cart-drawer-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-drawer-img {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
}

.cart-drawer-img.ph {
  display: grid;
  place-items: center;
  color: var(--text-3);
  font-size: 24px;
}

.cart-drawer-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cart-drawer-line-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-drawer-line-title:hover {
  color: var(--primary);
}

.cart-drawer-line-source {
  font-size: 11.5px;
  color: var(--text-3);
}

.cart-drawer-line-price {
  font-size: 14px;
  color: var(--text);
  font-weight: 700;
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.cart-drawer-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.qty-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
  overflow: hidden;
}

.qty-btn {
  background: transparent;
  border: none;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--text-2);
  display: grid;
  place-items: center;
  transition: background .12s ease;
}

.qty-btn:hover {
  background: var(--bg-3);
  color: var(--text);
}

.qty-num {
  padding: 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  min-width: 22px;
  text-align: center;
}

.cart-drawer-remove {
  background: transparent;
  border: none;
  font-size: 11.5px;
  color: var(--text-3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color .12s ease;
}

.cart-drawer-remove:hover {
  color: var(--bad-fg, #d93025);
}

.cart-drawer-footer {
  padding: 16px 20px;
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.cart-drawer-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14.5px;
}

.cart-drawer-total {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

.cart-drawer-tax-hint {
  font-size: 11px;
  color: var(--text-3);
}

.cart-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.cart-drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 12px;
  margin: auto;
}

.cart-drawer-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--text-3);
  display: grid;
  place-items: center;
  font-size: 32px;
}

.cart-drawer-empty h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.cart-drawer-empty p {
  margin: 0;
  max-width: 280px;
}

.cart-drawer-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}

/* Search Clear Button */
.sb-clear {
  border: 0;
  background: none;
  color: var(--text-3);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0 6px;
  transition: color 0.15s ease;
}
.sb-clear:hover {
  color: var(--text);
}
.sb-input::-webkit-search-cancel-button {
  display: none;
}

/* Floating Toast Notification */
.sp-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: var(--surface-card, #1e293b);
  color: #fff;
  border: 1px solid var(--border, #334155);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  padding: 10px 18px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.sp-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 640px) {
  .sp-toast {
    bottom: 80px;
    width: calc(100% - 32px);
    justify-content: center;
  }
}

/* Free Shipping Meter */
.cart-free-shipping {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 6px;
}
.cart-free-shipping.unlocked {
  color: #059669;
  font-weight: 600;
}
.cart-free-shipping-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-3, #e2e8f0);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 12px;
}
.cart-free-shipping-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  border-radius: 9999px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Market Bookmark Button */
.market-bookmark-btn {
  border: 0;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}
.market-bookmark-btn:hover {
  color: var(--accent);
  background: rgba(26, 115, 232, 0.08);
}
.market-bookmark-btn.saved {
  color: #f59e0b;
}

/* Visual Order Tracking Stepper */
.order-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  margin: 20px 0 24px;
  padding: 0 10px;
}
.order-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
  text-align: center;
}
.order-step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-3, #e2e8f0);
  color: var(--text-3, #64748b);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.25s ease;
  margin-bottom: 8px;
  border: 2px solid transparent;
}
.order-step.completed .order-step-circle {
  background: #059669;
  color: #fff;
}
.order-step.current .order-step-circle {
  background: var(--surface, #fff);
  color: var(--accent, #1a73e8);
  border-color: var(--accent, #1a73e8);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.15);
  animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(26, 115, 232, 0); }
  100% { box-shadow: 0 0 0 0 rgba(26, 115, 232, 0); }
}
.order-step-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.order-step.pending .order-step-title {
  color: var(--text-3);
  font-weight: 500;
}
.order-step-time {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}
.order-stepper-track {
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: var(--bg-3, #e2e8f0);
  z-index: 1;
}
.order-stepper-fill {
  height: 100%;
  background: #059669;
  transition: width 0.4s ease;
}
@media (max-width: 600px) {
  .order-stepper {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-left: 20px;
  }
  .order-stepper-track {
    top: 15px;
    bottom: 15px;
    left: 36px;
    width: 3px;
    height: auto;
    right: auto;
  }
  .order-step {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-align: left;
  }
  .order-step-circle {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

/* Delivery & Dispatch Estimator */
.delivery-estimate-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-2, #f8fafc);
  border: 1px solid var(--line-2, #e2e8f0);
  border-radius: var(--radius-3, 8px);
  margin: 12px 0 16px;
}
.delivery-estimate-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2, #475569);
}

/* Frequently Bought Together (FBT) Bundle */
.fbt-bundle-card {
  padding: 20px;
  border-radius: var(--radius-3, 12px);
  background: var(--surface, #ffffff);
  border: 1px solid var(--line-2, #e2e8f0);
  box-shadow: 0 4px 16px -2px rgba(0,0,0,0.04);
  margin: 24px 0;
}
.fbt-bundle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.fbt-bundle-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2, #e2e8f0);
}
.fbt-bundle-images {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.fbt-thumb-link {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: var(--radius-2, 8px);
  border: 1px solid var(--line-2, #e2e8f0);
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.fbt-thumb-link:hover {
  transform: translateY(-2px);
  border-color: var(--accent, #1a73e8);
}
.fbt-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fbt-thumb.ph {
  display: grid;
  place-items: center;
  color: var(--text-3, #94a3b8);
}
.fbt-plus {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-3, #94a3b8);
}
.fbt-bundle-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.fbt-bundle-price-box {
  text-align: right;
}
.fbt-total-price {
  font-size: 20px;
  color: var(--text, #0f172a);
  display: block;
}
.fbt-bundle-items-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fbt-item-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}
.fbt-item-title {
  color: var(--text, #1e293b);
  flex: 1;
}
.fbt-item-price {
  color: var(--text, #0f172a);
}

/* Product Detail Accordion / Tabs */
.product-tabs {
  margin: 28px 0;
  border: 1px solid var(--line-2, #e2e8f0);
  border-radius: var(--radius-3, 10px);
  overflow: hidden;
  background: var(--surface, #ffffff);
}
.product-tab {
  border-bottom: 1px solid var(--line-2, #e2e8f0);
}
.product-tab:last-child {
  border-bottom: none;
}
.product-tab-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  user-select: none;
  background: var(--surface, #ffffff);
  transition: background 0.15s ease;
}
.product-tab-summary:hover {
  background: var(--bg-2, #f8fafc);
}
.product-tab-summary::-webkit-details-marker {
  display: none;
}
.product-tab-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text, #0f172a);
}
.expand-icon {
  transition: transform 0.2s ease;
  color: var(--text-3, #64748b);
}
.product-tab[open] .expand-icon {
  transform: rotate(180deg);
}
.product-tab-body {
  padding: 0 20px 20px;
  color: var(--text-2, #475569);
  font-size: 14px;
  line-height: 1.6;
}
.clean-bullet-list {
  padding-left: 20px;
  margin: 10px 0 0;
}
.clean-bullet-list li {
  margin-bottom: 6px;
}
.shipping-perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 6px;
}
.shipping-perk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  background: var(--bg-2, #f8fafc);
  border-radius: var(--radius-2, 8px);
}
.shipping-perk strong {
  display: block;
  font-size: 13px;
  color: var(--text, #0f172a);
  margin-bottom: 2px;
}

/* Gallery Zoom Button */
.gallery-zoom-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-2, #cbd5e1);
  color: var(--text, #1e293b);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.15s ease, background 0.15s ease;
}
.gallery-zoom-btn:hover {
  transform: scale(1.08);
  background: #ffffff;
}

/* Sticky Bottom Add-to-Cart Bar */
.sticky-product-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface, #ffffff);
  border-top: 1px solid var(--line-2, #e2e8f0);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  z-index: 900;
  padding: 10px 16px;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.sticky-product-bar.visible {
  transform: translateY(0);
}
.sticky-product-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sticky-product-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sticky-product-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-2, 6px);
  object-fit: cover;
  border: 1px solid var(--line-2, #e2e8f0);
  flex-shrink: 0;
}
.sticky-product-text {
  min-width: 0;
}
.sticky-product-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-product-price {
  font-size: 15px;
  color: var(--accent, #1a73e8);
}
.sticky-product-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .sticky-product-bar {
    bottom: 56px; /* Above mobile bottom-nav */
    padding: 8px 12px;
  }
  .sticky-product-text {
    max-width: 140px;
  }
}

/* Image Lightbox Modal */
.image-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-lightbox-modal[hidden] {
  display: none;
}
.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(6px);
}
.image-lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-3, 8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.image-lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.image-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Services Showcase, Booking Drawer & Sticky Service Bar
   ========================================================================== */
.service-showcase-page { max-width: 1140px; margin: 0 auto; }
.svc-showcase-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; margin-bottom: 28px; }
@media (max-width: 860px) { .svc-showcase-grid { grid-template-columns: 1fr; } }
.svc-showcase-main { display: flex; flex-direction: column; gap: 20px; }
.svc-hero-card { overflow: hidden; border-radius: 20px; padding: 0; position: relative; }
.svc-hero-media { position: relative; width: 100%; aspect-ratio: 16/9; background: var(--bg-2); overflow: hidden; }
.svc-hero-img { width: 100%; height: 100%; object-fit: cover; }
.svc-badges-overlay { position: absolute; top: 12px; left: 12px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 2; }
.svc-pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(15, 23, 42, 0.8); color: #fff; backdrop-filter: blur(4px); }
.svc-pill.quote { background: rgba(2, 132, 199, 0.9); }
.svc-pill.direct { background: rgba(16, 185, 129, 0.9); }
.svc-pill.inquiry { background: rgba(100, 116, 139, 0.9); }
.svc-hero-body { padding: 24px; }
.svc-summary-lead { font-size: 16px; margin: 8px 0 16px; line-height: 1.5; }
.svc-facts-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; padding: 14px 16px; background: var(--bg-2); border-radius: 12px; border: 1px solid var(--line-2); }
.svc-fact-item { display: flex; align-items: center; gap: 8px; }
.svc-fact-item > div { display: flex; flex-direction: column; line-height: 1.2; }
.svc-fact-item small { font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }
.svc-fact-item span { font-size: 13px; font-weight: 600; }
.svc-deliverables-card { border-radius: 16px; padding: 20px 24px; }
.svc-section-title { font-size: 18px; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.svc-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.svc-checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; }
.svc-checklist .check-icon { color: #10b981; flex-shrink: 0; margin-top: 2px; }
.svc-details-card { border-radius: 16px; padding: 20px 24px; }
.svc-notice-box { border-radius: 12px; }
.svc-action-box { position: sticky; top: 20px; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--lift-1); }
.svc-pricing-block { display: flex; flex-direction: column; gap: 4px; }
.svc-pricing-label { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.svc-pricing-value { font-size: 28px; line-height: 1.1; color: var(--text); }
.svc-pricing-value b { font-weight: 700; }
.svc-rate-unit, .svc-from-prefix { font-size: 15px; color: var(--text-2); font-weight: 400; }
.svc-free-badge { color: #10b981; }
.svc-action-buttons { display: flex; flex-direction: column; gap: 8px; }
.svc-main-cta { font-size: 15px; font-weight: 600; padding: 12px 18px; }
.svc-reassurance { font-size: 11px; color: var(--text-3); display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0; }
.svc-action-divider { border: 0; border-top: 1px solid var(--line-2); margin: 0; }
.svc-trust-summary { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-2); }
.svc-trust-row { display: flex; align-items: center; gap: 8px; }
.booking-drawer { border-radius: 20px; padding: 24px; margin-top: 16px; display: none; }
.booking-drawer:target, .booking-drawer.drawer-open { display: block; }
.booking-drawer-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.booking-drawer-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--sf); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.slot-cluster { margin-bottom: 16px; }
.slot-cluster-label { font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; display: flex; align-items: center; gap: 4px; }

/* Booking Stepper & Receipt */
.booking-receipt-card { border-radius: 20px; padding: 28px; }
.booking-receipt-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.booking-receipt-stamp { width: 56px; height: 56px; border-radius: 50%; background: rgba(16, 185, 129, 0.1); display: grid; place-items: center; flex-shrink: 0; }

/* Services Hub Search Box & Trust */
.svc-hub-header { text-align: center; margin: 24px auto 32px; max-width: 720px; }
.svc-hub-title { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.svc-hub-sub { font-size: 15px; color: var(--text-2); margin-bottom: 20px; line-height: 1.5; }
.svc-search-form { display: flex; align-items: center; background: var(--surface); border: 2px solid var(--line-2); border-radius: 999px; padding: 4px 6px 4px 18px; box-shadow: 0 4px 16px rgba(0,0,0,0.04); transition: border-color .15s ease; position: relative; }
.svc-search-form:focus-within { border-color: var(--accent, #1a73e8); }
.svc-search-input { border: none; background: transparent; outline: none; font-size: 15px; width: 100%; color: var(--text); padding-right: 32px; }
.svc-search-suggest { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.svc-suggest-chip { font-size: 12px; padding: 4px 12px; border-radius: 999px; background: var(--surface); color: var(--text-2); border: 1px solid var(--line-2); text-decoration: none; transition: all .15s ease; }
.svc-suggest-chip:hover { border-color: var(--accent, #1a73e8); color: var(--text); background: var(--bg-2); }
.svc-trust-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0 32px; }
.svc-trust-card { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; }
.svc-trust-card .ms { color: #10b981; font-size: 26px; flex-shrink: 0; }
.svc-trust-card h4 { font-size: 13.5px; margin: 0 0 2px 0; font-weight: 600; }
.svc-trust-card p { font-size: 11.5px; margin: 0; color: var(--text-3); }

/* ==========================================================================
   Places & Local Discovery Hub (Google Maps / Apple Maps / GMB Style)
   ========================================================================== */

/* Discovery Hub Omnibar Filters */
.maps-hub-filterbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.maps-city-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.maps-city-pills::-webkit-scrollbar { display: none; }

.city-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--line-2);
  text-decoration: none;
  white-space: nowrap;
  transition: all .15s ease;
}
.city-pill:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--accent);
}
.city-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.25);
}

.maps-cat-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.maps-cat-scroll::-webkit-scrollbar { display: none; }

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--line-2);
  text-decoration: none;
  white-space: nowrap;
  transition: all .15s ease;
}
.cat-chip:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--bg-2);
}
.cat-chip.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  font-weight: 600;
}

.maps-hub-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}

.maps-toolbar-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.maps-counter {
  font-size: 13px;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.maps-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text-2);
  text-decoration: none;
  transition: all .15s ease;
}
.maps-filter-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}
.maps-filter-chip.active {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: #10b981;
  font-weight: 600;
}

.map-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--accent);
  cursor: pointer;
  transition: all .15s ease;
}
.map-toggle-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.maps-canvas-wrap {
  position: relative;
  width: 100%;
}

.map-search-area-btn {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-2);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  cursor: pointer;
  transition: all .15s ease;
}
.map-search-area-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Custom Teardrop Map Pin Marker */
.gmb-map-pin-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.pin-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  transition: transform .2s ease, box-shadow .2s ease;
  border: 2px solid #fff;
}
.pin-bubble .ms {
  transform: rotate(45deg);
  color: #fff;
  font-size: 16px;
}
.gmb-map-pin-wrap:hover .pin-bubble {
  transform: rotate(-45deg) scale(1.15);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

.pin-default .pin-bubble { background: #1a73e8; }
.pin-bakery .pin-bubble { background: #d97706; }
.pin-cafe .pin-bubble { background: #78350f; }
.pin-clinic .pin-bubble { background: #059669; }
.pin-repair .pin-bubble { background: #0284c7; }
.pin-studio .pin-bubble { background: #9333ea; }
.pin-retail .pin-bubble { background: #ea580c; }
.pin-safe .pin-bubble { background: #dc2626; }

/* Rich Leaflet Popup */
.leaflet-popup-content-wrapper {
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4;
}
.gmb-map-popup {
  width: 250px;
  display: flex;
  flex-direction: column;
}
.popup-thumb {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}
.popup-content {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.popup-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.popup-rating {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.popup-hours {
  font-size: 11.5px;
  color: var(--text-2);
  margin-top: 2px;
}
.popup-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.popup-actions .pill {
  padding: 4px 10px;
  font-size: 11px;
}

/* Elevated GMB Place Cards */
.place.gmb-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  transition: all .2s ease;
  margin-bottom: 14px;
  cursor: pointer;
  position: relative;
}
.place.gmb-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}
.place.gmb-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
  background: var(--bg-2);
}

.gmb-card-layout {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
@media (max-width: 600px) {
  .gmb-card-layout {
    grid-template-columns: 1fr;
  }
}

.gmb-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-2);
  cursor: pointer;
}
.gmb-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.gmb-media:hover .gmb-thumb {
  transform: scale(1.05);
}
.gmb-thumb-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
}

.gmb-main-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.gmb-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.gmb-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
}
.gmb-title a {
  color: var(--text);
  text-decoration: none;
}
.gmb-title a:hover {
  color: var(--accent);
}

.gmb-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.gmb-rating-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 1.3;
}
.gmb-score {
  font-weight: 700;
  color: var(--text);
}
.gmb-stars {
  color: #f59e0b;
  letter-spacing: 1px;
  font-size: 12px;
}
.gmb-reviews {
  color: var(--text-2);
}
.gmb-dot {
  color: var(--text-3);
}
.gmb-cat {
  font-size: 12.5px;
}
.gmb-distance {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.gmb-snippet {
  color: var(--text-2);
  line-height: 1.4;
  margin: 2px 0;
}

.gmb-meta-grid {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
}
.gmb-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-2);
}
.gmb-meta-item a {
  color: inherit;
  text-decoration: none;
}
.gmb-meta-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.gmb-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.gmb-status-pill.open {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}
.gmb-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.gmb-amenities-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 2px 0 4px;
}
.gmb-amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--line-2);
}

.gmb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.gmb-actions .pill {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
}
.gmb-wa-btn {
  background: rgba(37, 211, 102, 0.1) !important;
  color: #128c7e !important;
  border-color: rgba(37, 211, 102, 0.3) !important;
}
.gmb-wa-btn:hover {
  background: #25d366 !important;
  color: #fff !important;
}

/* ==========================================================================
   Place Drawer / Slide-out Profile Sheet (Google Maps / Apple Maps style)
   ========================================================================== */
.place-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility .25s ease;
}
.place-drawer.open, .place-drawer:not([hidden]) {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.place-drawer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.place-drawer-panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: var(--surface);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}
.place-drawer.open .place-drawer-panel,
.place-drawer:not([hidden]) .place-drawer-panel {
  transform: translateX(0);
}

.place-drawer-head {
  position: relative;
  width: 100%;
  height: 220px;
  background: var(--bg-2);
  flex-shrink: 0;
}
.place-drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .15s ease;
}
.place-drawer-close:hover {
  background: rgba(0, 0, 0, 0.85);
}

.place-drawer-hero-media {
  width: 100%;
  height: 100%;
  position: relative;
}
.place-drawer-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.drawer-cat-pill {
  position: absolute;
  bottom: 12px;
  left: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.place-drawer-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.place-drawer-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.place-drawer-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

.place-drawer-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 6px 0;
}
.drawer-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px;
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line-2);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.drawer-action-btn:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}
.drawer-action-btn.primary {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(26, 115, 232, 0.3);
}
.drawer-action-btn.wa {
  background: rgba(37, 211, 102, 0.1);
  color: #128c7e;
  border-color: rgba(37, 211, 102, 0.3);
}
.drawer-action-btn.wa:hover {
  background: #25d366;
  color: #fff;
}

.drawer-divider {
  border: 0;
  border-top: 1px solid var(--line-2);
  margin: 4px 0;
}

.place-drawer-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.drawer-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
}
.drawer-info-row > .ms {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.drawer-weekly-hours {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  background: var(--bg-2);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
}
.weekly-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.weekly-row span { color: var(--text-2); }
.weekly-row b { font-weight: 600; }

.drawer-amenities-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.place-drawer-foot {
  margin-top: auto;
}
.full-w {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
}

/* ==========================================================================
   Markets Discovery Hub & Local Trade Moat (Fully Blown)
   ========================================================================== */

/* Markets Hub Hero */
.markets-hub-hero {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.markets-hero-content {
  max-width: 820px;
}
.markets-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.markets-hero-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px 0;
  color: var(--text);
  line-height: 1.2;
}
.markets-hero-sub {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.5;
  margin: 0 0 20px 0;
}

/* Dynamic Ecosystem Stat Chips */
.markets-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}
.stat-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-radius: 12px;
  border: 1px solid var(--line-2);
}
.stat-chip .ms {
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
}
.stat-chip > div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.stat-chip b {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.stat-chip span {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .3px;
}

/* Quick Market Navigation Rail Enhancements */
.markets-quick-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 12px;
}
.markets-quick-rail::-webkit-scrollbar { display: none; }
.rail-divider {
  width: 1px;
  height: 20px;
  background: var(--line-2);
  margin: 0 4px;
  flex-shrink: 0;
}

/* Elevated Market Cards */
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.market-card-wrap {
  position: relative;
  display: flex;
  height: 100%;
}
.market-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  text-decoration: none;
  color: inherit;
  transition: all .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.market-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.market-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.market-kind-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--line-2);
}
.kind-trade .market-kind-tag {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.2);
}
.kind-interest .market-kind-tag {
  background: rgba(147, 51, 234, 0.1);
  color: #9333ea;
  border-color: rgba(147, 51, 234, 0.2);
}
.kind-area .market-kind-tag {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.2);
}

.market-bookmark-btn {
  background: transparent;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all .15s ease;
}
.market-bookmark-btn:hover {
  color: var(--accent);
  background: var(--bg-2);
}
.market-bookmark-btn.saved {
  color: #f59e0b;
}

.market-card-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.market-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}
.market-card-title a {
  color: var(--text);
  text-decoration: none;
}
.market-card-title a:hover {
  color: var(--accent);
}

.market-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-2);
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.meta-dot {
  color: var(--text-3);
}
.meta-item.distance {
  color: var(--accent);
  font-weight: 600;
}
.meta-item.region {
  color: var(--text-2);
}

.market-desc {
  margin: 4px 0 0 0;
  color: var(--text-2);
  line-height: 1.45;
}

.market-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-2);
}
.market-trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
}
.market-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.markets-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.markets-section-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Safe Zones Showcase on Directory */
.markets-safe-zones-card {
  padding: 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line-2);
}
.safe-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.safe-zones-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px 0;
}
.safe-zones-sub {
  font-size: 13.5px;
  color: var(--text-2);
  margin: 0 0 18px 0;
  max-width: 720px;
  line-height: 1.45;
}
.safe-zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.safe-zone-box {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
}
.safe-zone-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.safe-zone-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.safe-zone-info h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.safe-zone-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--line-2);
}

/* Market Single Detail Hero Header */
.market-hero-card {
  padding: 24px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.market-kind-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.market-kind-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.market-kind-pill.trade {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
}
.market-kind-pill.interest {
  background: rgba(147, 51, 234, 0.12);
  color: #9333ea;
}
.market-kind-pill.area {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}
.market-region-tag, .market-radius-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text-2);
  border: 1px solid var(--line-2);
}
.market-safe-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}
.market-title {
  font-size: 26px;
  font-weight: 800;
  margin: 4px 0 8px 0;
  line-height: 1.25;
}
.market-stat-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 8px;
}
.m-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.m-dot {
  color: var(--text-3);
}
.market-lead {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 6px 0 0 0;
}
.safe-zone-quick-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #059669;
  margin-top: 4px;
}

/* Sidebar Safe Zones */
.market-safe-zones-side {
  padding: 16px;
  border-radius: 14px;
}
.safe-zone-side-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.safe-zone-side-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  padding: 8px;
  background: var(--bg-2);
  border-radius: 8px;
  border: 1px solid var(--line-2);
}
.safe-zone-side-item .ms {
  color: #059669;
  margin-top: 2px;
}




/* Chat Pro: pinned messages, in-chat search, private notes, counter-offers */
.chat-pins{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 12px;background:var(--accent-soft);border-bottom:1px solid var(--line-2)}
.chat-pin-chip{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 10px;border-radius:999px;background:var(--surface,#fff);border:1px solid var(--line-2);font-size:12px;text-decoration:none;color:inherit}
.chat-find{display:flex;gap:8px;align-items:center;padding:6px 12px}
.chat-find input{flex:1;border:0;background:transparent;font:inherit;outline:none}
.chat-found{margin:6px 12px;padding:10px 12px}
.chat-notes{margin:6px 12px;padding:10px 12px;border-left:4px solid #f9ab00}
.chat-notes summary{cursor:pointer;font-weight:600;display:flex;gap:6px;align-items:center}
.chat-note{padding:8px 0;border-top:1px solid var(--line-2)}
.wa-counter{display:inline-block}
.wa-counter .wa-drawer-form{display:grid;gap:6px;padding:8px 0}
