/* AchhaDeals SmartBuy — Complete Redesign v2.6 (results page: mobile layout, filters, tiers, alerts)
   previously v2.5 (audited: contrast, tablet grid, mobile capsule, admin bar, M7 offers panel)
   Location: rehub-blankchild/assets/smartbuy/smartbuy-app.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. TOKENS & WCAG AA CONTRAST TOKENS (Ground #F7F6F2, Muted >= 4.5:1 -> #5B6472)
   -------------------------------------------------------------------------- */
:root {
  --sb-ground: #F7F6F2;           /* Warm off-white background */
  --sb-surface: #FFFFFF;          /* Pure white cards/containers */
  --sb-surface-muted: #EFECE6;    /* Warm subtle fill */
  --sb-ink: #151A2D;              /* Deep ink body/headings */
  --sb-muted: #5B6472;            /* WCAG AA (4.6:1 contrast ratio against #F7F6F2) */
  --sb-line: #E2DDD3;             /* Warm hairline borders */
  --sb-primary: #2A3BA0;          /* Brand Navy */
  --sb-primary-hover: #1E2B7A;    /* Deep navy hover */
  --sb-accent-orange: #E8601C;    /* Decorative orange (dot, borders) — NOT for text/text backgrounds */
  --sb-accent-orange-ink: #C2410C; /* Orange for text & badge fills: 5.2:1 on white */
  --sb-font-heading: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sb-font-body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sb-radius-sm: 8px;
  --sb-radius-md: 14px;
  --sb-radius-lg: 20px;
  --sb-bar-h: 62px;
  --sb-ease: cubic-bezier(.16, 1, .3, 1);
}

/* --------------------------------------------------------------------------
   1. SCOPED THEME OVERRIDES (Hide competing search & blue bar, header gap)
   -------------------------------------------------------------------------- */
body.page-template-template-app-home .head_search,
body.page-template-template-app-home .search-header-contents,
body.page-template-template-app-home .main-nav,
body.page-template-template-app-home #main_header .rh-search-form-wrap,
body.page-template-template-app-home .nav-cat-wrap,
body.page-template-template-app-home .rehub-main-nav,
body.page-template-template-app-home .header_icons_menu .search-header-icon {
  display: none !important;
}

body.page-template-template-app-home #main_header a[href*="categories"],
body.page-template-template-app-home #main_header a[href*="smartbuy"],
body.page-template-template-app-home .header_icons_menu a,
body.page-template-template-app-home .top-nav a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.sb-app *,
.sb-app *::before,
.sb-app *::after {
  box-sizing: border-box;
}

.sb-app {
  min-height: 90dvh;
  background: var(--sb-ground);
  color: var(--sb-ink);
  font-family: var(--sb-font-body);
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   2. HERO STATE
   -------------------------------------------------------------------------- */
.sb-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 16px 20px;
  max-width: 1120px;
  margin: 0 auto;
  box-sizing: border-box;
}

.sb-back {
  display: none;
}

.sb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EAE6DD;
  border: 1px solid #D9D3C7;
  color: var(--sb-ink);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.sb-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sb-accent-orange);
}
.sb-eyebrow.is-live .sb-pulse-dot { animation: sbPulseDot 2s infinite ease-in-out; }

@keyframes sbPulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(232, 96, 28, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(232, 96, 28, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(232, 96, 28, 0); }
}

.sb-hero-lockup {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 30px;
}

.sb-hero-title {
  font-family: var(--sb-font-heading);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -1px;
  color: var(--sb-ink);
  margin: 0 0 16px;
  text-wrap: balance;
}

.sb-hero-highlight {
  color: var(--sb-primary);
  display: block;
  text-wrap: balance;
}

@media (min-width: 1024px) {
  .sb-nowrap-desktop {
    white-space: nowrap;
  }
}

.sb-hero-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--sb-muted);
  max-width: 560px;
  margin: 0 auto;
  text-wrap: balance;
  text-align: center;
}

.sb-capsule {
  view-transition-name: sb-capsule;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(720px, 100%);
  padding: 8px 10px 8px 18px;
  border: 2px solid var(--sb-line);
  border-radius: 999px;
  background: var(--sb-surface);
  box-shadow: 0 8px 28px rgba(21, 26, 45, 0.06);
  transition: border-color 0.2s var(--sb-ease), box-shadow 0.2s var(--sb-ease);
  box-sizing: border-box;
}

.sb-capsule:focus-within {
  border-color: var(--sb-primary);
  box-shadow: 0 10px 32px rgba(42, 59, 160, 0.12);
}

.sb-input-affordance {
  display: inline-flex;
  align-items: center;
  color: var(--sb-muted);
}

.sb-capsule input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--sb-font-body);
  font-size: 16px;
  line-height: 1.4;
  padding: 8px 0;
  color: var(--sb-ink);
  font-weight: 500;
}

.sb-capsule input::placeholder {
  color: #6B7280;
}

.sb-voice-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--sb-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  transition: background 0.15s, color 0.15s;
}

.sb-voice-btn:hover {
  background: var(--sb-surface-muted);
  color: var(--sb-ink);
}

.sb-go {
  flex: none;
  border: 0;
  border-radius: 999px;
  padding: 0 26px;
  min-height: 46px;
  background: var(--sb-primary);
  color: #FFFFFF;
  font-family: var(--sb-font-heading);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s;
}

.sb-go:hover {
  background: var(--sb-primary-hover);
}

.sb-store-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--sb-muted);
  flex-wrap: wrap;
}

.sb-store-strip-lbl {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sb-muted);
}

.sb-store-tag {
  font-weight: 700;
  color: var(--sb-ink);
  letter-spacing: -0.2px;
}

.sb-store-dot {
  color: #C3BFB4;
}

/* --------------------------------------------------------------------------
   3. DISCOVERY RAILS & POPULAR CHIPS
   -------------------------------------------------------------------------- */
.sb-hero-extras {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 0;
  max-width: 1120px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}

.sb-popular-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 16px 0 44px;
  width: 100%;
}

.sb-popular-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--sb-muted);
  margin-bottom: 12px;
}

.sb-chips-track {
  width: 100%;
  display: flex;
  justify-content: center;
}

.sb-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.sb-chips[hidden] {
  display: none;
}

.sb-chip {
  flex: none;
  border: 1px solid var(--sb-line);
  background: var(--sb-surface);
  border-radius: 999px;
  padding: 7px 15px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sb-ink);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: border-color 0.15s, background-color 0.15s, transform 0.15s;
}

.sb-chip svg {
  color: var(--sb-muted);
  transition: transform 0.15s;
}

.sb-chip:hover {
  border-color: var(--sb-primary);
  background: #F0F2FA;
  transform: translateY(-1px);
}

.sb-chip:hover svg {
  color: var(--sb-primary);
  transform: translate(1px, -1px);
}

.sb-chip-recent {
  background: transparent !important;
  border: 1px dashed var(--sb-muted) !important;
  color: var(--sb-muted) !important;
  box-shadow: none !important;
}

.sb-chip-recent::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: none;
  margin-right: 2px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%235B6472" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>');
}

.sb-chip-recent:hover {
  border-color: var(--sb-ink) !important;
  color: var(--sb-ink) !important;
}

.sb-chips-label {
  align-self: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--sb-muted);
}

.sb-chip-clear {
  border: 0;
  background: none;
  color: var(--sb-muted);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  min-height: 44px;
}

.sb-chip-clear:hover {
  color: var(--sb-ink);
}

/* --------------------------------------------------------------------------
   4. EXAMPLE RESULT CARD
   -------------------------------------------------------------------------- */
.sb-sample-section {
  width: 100%;
  max-width: 840px;
  margin: 0 auto 60px;
}

.sb-sample-header {
  margin-bottom: 12px;
}

.sb-sample-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--sb-primary);
  background: #E8EBF8;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.sb-sample-title {
  font-family: var(--sb-font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--sb-ink);
  margin: 0 0 4px;
}

.sb-sample-meta {
  font-size: 12.5px;
  color: var(--sb-muted);
}

.sb-sample-card {
  background: var(--sb-surface);
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius-md);
  box-shadow: 0 4px 18px rgba(21, 26, 45, 0.04);
  overflow: hidden;
}

.sb-sample-row:last-child { border-bottom: 0; }

@media (min-width: 768px) {
  .sb-sample-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    column-gap: 16px;
  }
}

.sb-sample-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--sb-line);
}

.sb-sample-row.is-best {
  background: #FFF7F2;
  box-shadow: inset 3px 0 0 var(--sb-accent-orange);
}

.sb-sample-col-store {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
}

.sb-sample-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--sb-accent-orange-ink);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 4px;
}

.sb-store-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--sb-ink);
}

.sb-sample-col-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sb-price-main {
  font-family: var(--sb-font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--sb-ink);
}

.sb-sample-row.is-best .sb-price-main {
  color: var(--sb-accent-orange-ink);
}

.sb-delivery-note {
  font-size: 12px;
  color: var(--sb-muted);
}

.sb-sample-col-cta {
  min-width: 105px;
  text-align: right;
}

.sb-mock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--sb-primary);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  user-select: none;
  cursor: pointer;
  text-decoration: none;
}

.sb-mock-btn-secondary {
  background: var(--sb-surface-muted);
  color: var(--sb-ink);
}

.sb-sample-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #F4F2EC;
  font-size: 12px;
  color: var(--sb-muted);
}

/* --------------------------------------------------------------------------
   5. HOW SMARTBUY WORKS
   -------------------------------------------------------------------------- */
.sb-steps-section {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 60px;
  text-align: center;
}

.sb-section-eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--sb-primary);
  margin-bottom: 6px;
}

.sb-section-heading {
  font-family: var(--sb-font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--sb-ink);
  letter-spacing: -0.4px;
  margin: 0 0 32px;
}

.sb-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.sb-step-card {
  background: var(--sb-surface);
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius-md);
  padding: 24px;
  position: relative;
}

.sb-step-num {
  font-family: var(--sb-font-heading);
  font-size: 32px;
  font-weight: 900;
  color: #DFDAD0;
  position: absolute;
  top: 18px;
  right: 20px;
  line-height: 1;
}

.sb-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #E8EBF8;
  color: var(--sb-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.sb-step-title {
  font-family: var(--sb-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--sb-ink);
  margin: 0 0 8px;
}

.sb-step-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--sb-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   6. HOW WE STAY NEUTRAL
   -------------------------------------------------------------------------- */
.sb-neutral-section {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 50px;
}

.sb-neutral-box {
  background: var(--sb-surface);
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius-lg);
  padding: 36px 32px;
}

.sb-neutral-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.sb-neutral-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.sb-neutral-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #E8EBF8;
  color: var(--sb-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.sb-neutral-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--sb-ink);
  margin: 0 0 6px;
  line-height: 1.35;
}

.sb-neutral-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--sb-muted);
  margin: 0;
}

.sb-neutral-action {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--sb-line);
  text-align: center;
}

.sb-neutral-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--sb-primary);
  text-decoration: none;
}

.sb-neutral-link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   7. FOOTER DOCK
   -------------------------------------------------------------------------- */
.sb-home-footer-dock {
  width: 100%;
  border-top: 1px solid var(--sb-line);
  padding: 24px 16px 20px;
  margin-top: 20px;
  text-align: center;
}

.sb-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.sb-footer-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--sb-muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.sb-footer-links a:hover {
  color: var(--sb-ink);
  text-decoration: underline;
}

.sb-footer-dot {
  color: var(--sb-muted);
  font-size: 13px;
}

.sb-footer-attribution {
  font-size: 12px;
  color: var(--sb-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. RESULTS STATE
   -------------------------------------------------------------------------- */
body.is-searched .sb-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-direction: row;
  justify-content: flex-start;
  min-height: var(--sb-bar-h);
  padding: 8px 16px;
  background: rgba(247, 246, 242, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sb-line);
  box-shadow: 0 4px 16px rgba(21, 26, 45, 0.05);
  margin-bottom: 0;
  max-width: 100% !important;
}

body.is-searched .sb-hero-lockup,
body.is-searched .sb-store-strip,
body.is-searched .sb-hero-extras {
  display: none !important;
}

body.is-searched .sb-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: none;
  color: var(--sb-ink);
  font-family: var(--sb-font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

body.is-searched .sb-capsule {
  flex: 1;
  width: auto;
  max-width: 760px;
  padding: 2px 4px 2px 14px;
  box-shadow: none;
  border-width: 1.5px;
}

body.is-searched .sb-go {
  padding: 0 18px;
  min-height: 40px;
  font-size: 13.5px;
}

.sb-results {
  padding: 16px 16px 48px;
  max-width: 1240px;
  margin: 0 auto;
}

body:not(.is-searched) .sb-results:empty {
  display: none;
}

@media (max-width: 480px) {
  body.is-searched .sb-bar { padding: 6px 10px; gap: 4px; }
  body.is-searched .sb-back { padding: 0 6px; }
  body.is-searched .sb-back span {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  body.is-searched .sb-go { padding: 0 14px; }
}

body.admin-bar.is-searched .sb-bar { top: 32px; }
@media (max-width: 782px) { body.admin-bar.is-searched .sb-bar { top: 46px; } }
@media (max-width: 600px) { body.admin-bar.is-searched .sb-bar { top: 0; } }

/* --------------------------------------------------------------------------
   9. MOBILE & TABLET RESPONSIVE ADAPTATIONS
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
  .sb-steps-grid,
  .sb-neutral-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .sb-step-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
    align-items: start;
    padding: 18px 20px;
  }
  .sb-step-icon { grid-row: span 2; margin-bottom: 0; }
  .sb-step-num { font-size: 22px; top: 16px; right: 18px; }
  .sb-step-title { padding-right: 36px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .sb-hero-title { font-size: 42px; }
}

@media (max-width: 767px) {
  .sb-bar {
    padding: 28px 16px 16px;
  }
  .sb-hero-title {
    font-size: 32px;
    letter-spacing: -0.6px;
  }
  .sb-hero-sub {
    font-size: 15px;
    line-height: 1.5;
    max-width: 100%;
    padding: 0 8px;
    text-wrap: pretty;
  }
  .sb-capsule {
    padding: 4px 6px 4px 16px;
    gap: 4px;
  }
  .sb-input-affordance {
    display: none;
  }
  .sb-store-strip {
    gap: 6px 10px;
    font-size: 13px;
  }
  .sb-store-strip-lbl {
    flex-basis: 100%;
    text-align: center;
  }
  .sb-chips {
    scroll-snap-type: x proximity;
    scroll-padding-inline: 0;
  }
  .sb-chip { scroll-snap-align: start; }
  #sb-recent.sb-chips {
    -webkit-mask-image: none;
            mask-image: none;
  }
  .sb-go {
    padding: 0 16px;
    font-size: 13.5px;
  }
  .sb-popular-wrap {
    align-items: flex-start;
  }
  .sb-chips-track {
    justify-content: flex-start;
  }
  .sb-chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 4px;
    -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent);
            mask-image: linear-gradient(90deg, #000 84%, transparent);
  }
  .sb-chips::-webkit-scrollbar {
    display: none;
  }
  .sb-sample-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
  }
  .sb-sample-col-store {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .sb-sample-col-price {
    width: 100%;
  }
  .sb-sample-col-cta {
    width: 100%;
    text-align: left;
    margin-top: 4px;
  }
  .sb-mock-btn {
    width: 100%;
  }
  .sb-steps-grid,
  .sb-neutral-grid {
    grid-template-columns: 1fr;
  }
  .sb-neutral-box {
    padding: 24px 20px;
  }
}

/* --------------------------------------------------------------------------
   10. SKELETONS, CAROUSELS, ERRORS & REDUCED MOTION
   -------------------------------------------------------------------------- */
::view-transition-group(sb-capsule) {
  animation-duration: 280ms;
  animation-timing-function: var(--sb-ease);
}
::view-transition-old(sb-capsule),
::view-transition-new(sb-capsule) {
  height: 100%;
}

.sb-loading { max-width: 1200px; margin: 0 auto; }
.sb-progress { height: 3px; margin: 4px 0 12px; border-radius: 3px; background: var(--sb-line); overflow: hidden; }
.sb-progress span { display: block; width: 40%; height: 100%; background: var(--sb-primary); animation: sbIndet 1.3s var(--sb-ease) infinite; }
@keyframes sbIndet { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.sb-loading-msg { margin: 0 0 4px; font-size: 14px; color: var(--sb-muted); }
.sb-loading-note { margin: 0 0 12px; font-size: 13px; color: var(--sb-muted); }
.sb-elapsed { margin-left: 6px; opacity: .7; font-variant-numeric: tabular-nums; }

.sb-skel-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .sb-skel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .sb-skel-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84vw; overflow: hidden; }
}
.sb-skel-card { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--sb-line); border-radius: var(--sb-radius-md); background: #ffffff; }
.sb-skel-card i {
  display: block; height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, #F4F2EC 0%, #E6E2D8 50%, #F4F2EC 100%);
  background-size: 200% 100%; animation: sbShimmer 1.4s linear infinite;
}
.sb-skel-card i:nth-child(1) { height: 140px; border-radius: 10px; }
.sb-skel-card i:nth-child(2) { width: 80%; }
.sb-skel-card i:nth-child(3) { width: 55%; }
.sb-skel-card i:nth-child(4) { height: 40px; border-radius: 999px; }
@keyframes sbShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

[data-sb-module~="carousel"] {
  overscroll-behavior-x: contain;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
}
[data-sb-module~="carousel"]::-webkit-scrollbar { display: none; }

.sb-dots { display: flex; justify-content: center; align-items: center; gap: 4px; margin: 12px 0 6px; }
.sb-dot { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.sb-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 999px; background: #D5D1C6;
  transition: width .2s var(--sb-ease), background-color .2s;
}
.sb-dot[aria-current="true"]::before { width: 18px; background: var(--sb-primary); }
.sb-scrollbar { width: 120px; height: 4px; border-radius: 4px; background: var(--sb-line); overflow: hidden; }
.sb-scrollbar span { display: block; height: 100%; background: var(--sb-primary); transform-origin: left; transform: scaleX(.08); }
@media (min-width: 1025px) { .sb-dots { display: none; } }

.sb-hint > * { animation: sbNudge 1.1s var(--sb-ease) .5s 2; }
@keyframes sbNudge { 0%, 100% { transform: none; } 45% { transform: translateX(-28px); } }
.sb-swiped .sb-swipe-cue { display: none; }

.sb-badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px;
  border-radius: 999px; background: var(--sb-primary); color: #FFFFFF; font-size: 11px; font-weight: 700;
}
.sb-badge[hidden] { display: none; }

.sb-error { max-width: 520px; margin: 40px auto; text-align: center; padding: 24px; background: #fff; border: 1px solid var(--sb-line); border-radius: var(--sb-radius-md); }
.sb-error-title { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--sb-ink); font-family: var(--sb-font-heading); }
.sb-error-body { margin: 0 0 16px; color: var(--sb-muted); font-size: 13.5px; }
.sb-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--sb-primary); border-radius: 999px; background: var(--sb-primary); color: #fff; font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: none; }
.sb-btn-ghost { background: transparent; color: var(--sb-primary); margin-left: 8px; }

.sb-toast {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 10000;
  max-width: calc(100vw - 32px); padding: 10px 18px; border-radius: 999px; background: var(--sb-ink); color: #fff;
  font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transform: translate(-50%, 20px);
  transition: opacity .2s, transform .2s var(--sb-ease); box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.sb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .sb-pulse-dot, .sb-progress span, .sb-skel-card i, .sb-hint > * { animation: none !important; }
  .sb-dot::before, .sb-toast, .sb-chip { transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* --------------------------------------------------------------------------
   11. SPEC v1 POST-SEARCH RESULTS MODULES (P0)
   -------------------------------------------------------------------------- */
.sb-results-wrapper {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 0 40px;
}

.sb-results-header {
  margin-bottom: 20px;
}

.sb-summary-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sb-surface);
  border: 1px solid var(--sb-line);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sb-ink);
  margin-bottom: 12px;
}

.sb-summary-dot {
  color: var(--sb-muted);
}

.sb-coverage-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--sb-muted);
  flex-wrap: wrap;
}

.sb-coverage-lbl {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.sb-coverage-item.is-ok strong {
  color: var(--sb-ink);
}

.sb-coverage-count {
  background: #E8EBF8;
  color: var(--sb-primary);
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11.5px;
  margin-left: 2px;
}

.sb-coverage-warn {
  color: #92400E;
  font-size: 12px;
}

.sb-retry-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--sb-primary);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
}

.sb-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: var(--sb-surface);
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius-md);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.sb-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sb-filter-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sb-muted);
  text-transform: uppercase;
}

.sb-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--sb-line);
  border-radius: 999px;
  background: var(--sb-ground);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.sb-filter-chip input {
  margin: 0;
  cursor: pointer;
}

.sb-sort-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sb-select {
  padding: 6px 12px;
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius-sm);
  background: var(--sb-ground);
  color: var(--sb-ink);
  font-weight: 600;
  font-size: 13px;
  outline: 0;
}

.sb-cards-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sb-product-card {
  background: var(--sb-surface);
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius-md);
  box-shadow: 0 4px 18px rgba(21, 26, 45, 0.04);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sb-card-top {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.sb-card-thumb {
  width: 90px;
  height: 90px;
  flex: none;
  background: #FFF;
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius-sm);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sb-card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sb-card-headings {
  flex: 1;
  min-width: 0;
}

.sb-card-brand {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--sb-primary);
  display: block;
  margin-bottom: 4px;
}

.sb-card-title {
  font-family: var(--sb-font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--sb-ink);
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sb-spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sb-spec-chip {
  background: var(--sb-ground);
  border: 1px solid #EAE6DD;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  color: var(--sb-muted);
}

.sb-price-table {
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius-sm);
  overflow: hidden;
}

.sb-price-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1.8fr;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--sb-line);
  background: var(--sb-surface);
}

.sb-price-row:last-child {
  border-bottom: 0;
}

.sb-price-row.is-cheapest {
  background: #FFF7F2;
  box-shadow: inset 3px 0 0 var(--sb-accent-orange);
}

.sb-row-store {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sb-store-badge {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--sb-ink);
}

.sb-lowest-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--sb-accent-orange-ink);
  color: #FFF;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 2px;
}

.sb-savings-note,
.sb-single-store-note {
  font-size: 11px;
  color: var(--sb-muted);
  font-weight: 600;
}

.sb-row-pricing {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sb-net-price {
  font-family: var(--sb-font-heading);
  font-size: 19px;
  font-weight: 800;
  color: var(--sb-ink);
}

.sb-price-row.is-cheapest .sb-net-price {
  color: var(--sb-accent-orange-ink);
}

.sb-mrp-struck {
  font-size: 12px;
  color: var(--sb-muted);
  text-decoration: line-through;
}

.sb-inflated-chip {
  align-self: flex-start;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.sb-delivery-tag {
  font-size: 11.5px;
  color: var(--sb-muted);
}

.sb-row-cta {
  text-align: right;
}

.sb-deal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.sb-deal-btn.is-primary {
  background: var(--sb-primary);
  color: #FFF;
}

.sb-deal-btn.is-primary:hover {
  background: var(--sb-primary-hover);
}

.sb-deal-btn.is-secondary {
  background: var(--sb-surface-muted);
  color: var(--sb-ink);
  border: 1px solid var(--sb-line);
}

.sb-deal-btn.is-secondary:hover {
  border-color: var(--sb-ink);
}

/* --------------------------------------------------------------------------
   12. P1 OFFERS PANEL & COUPONS ACCORDION (M7)
   -------------------------------------------------------------------------- */
.sb-offers-accordion {
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius-sm);
  background: var(--sb-ground);
  overflow: hidden;
  margin-top: 4px;
}

.sb-offers-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--sb-primary);
  cursor: pointer;
  user-select: none;
  background: #F0F2FA;
}

.sb-offers-summary svg {
  transition: transform 0.2s var(--sb-ease);
}

.sb-offers-accordion[open] .sb-offers-summary svg {
  transform: rotate(180deg);
}

.sb-offers-content {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--sb-line);
  background: var(--sb-surface);
  font-size: 13px;
}

.sb-promo-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sb-promo-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--sb-muted);
  letter-spacing: 0.5px;
}

.sb-coupon-list,
.sb-bank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sb-coupon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--sb-ground);
  border: 1px dashed var(--sb-line);
  padding: 8px 12px;
  border-radius: var(--sb-radius-sm);
}

.sb-coupon-details {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sb-code-pill {
  background: #E8EBF8;
  color: var(--sb-primary);
  font-family: monospace;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12.5px;
  flex: none;
}

.sb-coupon-desc {
  font-size: 12.5px;
  color: var(--sb-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sb-copy-btn {
  flex: none;
  background: var(--sb-primary);
  color: #FFF;
  border: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.sb-copy-btn:hover {
  background: var(--sb-primary-hover);
}

.sb-bank-list li {
  font-size: 12.5px;
  color: var(--sb-muted);
  padding-left: 14px;
  position: relative;
}

.sb-bank-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--sb-primary);
  font-weight: bold;
}

/* Integrity & Disclosures Footer */
.sb-results-disclosures {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--sb-line);
  font-size: 12px;
  color: var(--sb-muted);
  line-height: 1.6;
}

.sb-neutrality-line {
  margin: 0 0 8px;
  font-weight: 500;
}

.sb-neutrality-line a {
  color: var(--sb-primary);
  text-decoration: underline;
}

.sb-amazon-disclaimer {
  margin: 0;
  font-style: italic;
  color: #767E8D;
}

@media (max-width: 767px) {
  .sb-price-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px;
  }
  .sb-row-store {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .sb-deal-btn {
    width: 100%;
  }
}

/* ==========================================================================
   13. RESULTS PAGE v2.6 — new elements + mobile-first layout
   ========================================================================== */
.sb-app [hidden] { display: none !important; }   /* author display rules must not override [hidden] */

.sb-coverage-item.is-none strong,
.sb-coverage-item.is-fail strong { color: var(--sb-muted); font-weight: 600; }

.sb-stale-note {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: var(--sb-radius-sm);
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #78350F;
  font-size: 13px;
}

/* Filters toggle (mobile only) */
.sb-filter-toggle { display: none; }

.sb-price-range { gap: 6px; }
.sb-price-range input {
  width: 96px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius-sm);
  background: var(--sb-ground);
  font-size: 14px;
  color: var(--sb-ink);
}

/* Thumbnail fallback + platform chip */
.sb-card-thumb { width: 120px; height: 120px; }
.sb-thumb-fallback { color: #B8B2A6; }
.sb-card-thumb:has(.sb-thumb-fallback) { background: var(--sb-surface-muted); border-color: transparent; }
.sb-platform-chip { background: #E8EBF8; border-color: #D5DAF2; color: var(--sb-primary); font-weight: 700; }

/* Exact vs similar */
.sb-tier-divider {
  margin: 12px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--sb-line);
  font-family: var(--sb-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--sb-muted);
}

/* Card actions */
.sb-card-actions { display: flex; justify-content: flex-end; gap: 4px; margin-top: -6px; }
.sb-card-action {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 12px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--sb-muted); font-size: 13px; font-weight: 600; cursor: pointer;
}
.sb-card-action:hover { background: var(--sb-surface-muted); color: var(--sb-ink); }

/* Coupons meta */
.sb-coupon-details { flex-wrap: wrap; }
.sb-coupon-meta { flex-basis: 100%; font-size: 11.5px; color: var(--sb-muted); }
.sb-copy-btn { min-height: 36px; }

/* Related searches, empty states */
.sb-related { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.sb-filter-empty { margin: 16px 0; padding: 16px; text-align: center; color: var(--sb-muted); background: var(--sb-surface); border: 1px dashed var(--sb-line); border-radius: var(--sb-radius-md); }
.sb-empty-state { max-width: 560px; margin: 32px auto; text-align: center; }
.sb-empty-title { font-family: var(--sb-font-heading); font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.sb-empty-body { color: var(--sb-muted); margin: 0 0 16px; }
.sb-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* Price-alert dialog */
.sb-alert-dialog {
  width: min(420px, calc(100vw - 32px));
  border: 1px solid var(--sb-line);
  border-radius: var(--sb-radius-lg);
  padding: 20px;
  background: var(--sb-surface);
  color: var(--sb-ink);
}
.sb-alert-dialog::backdrop { background: rgba(21, 26, 45, .45); }
.sb-alert-dialog .sb-alert { border: 0; padding: 0; margin: 0; }
.sb-alert-title { font-family: var(--sb-font-heading); font-size: 18px; margin: 0 0 4px; }
.sb-alert-field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.sb-alert-field input { min-height: 44px; padding: 0 12px; font-size: 16px; border: 1px solid var(--sb-line); border-radius: 10px; }
.sb-alert-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* ---------- Mobile (<768px): compact, stacked, one-hand friendly ---------- */
@media (max-width: 767px) {
  .sb-results { padding: 12px 12px 40px; }

  .sb-summary-pill {
    display: flex; flex-wrap: wrap; gap: 2px 6px;
    border-radius: var(--sb-radius-sm);
    font-size: 12.5px;
  }
  .sb-coverage-strip { font-size: 12px; gap: 4px 10px; row-gap: 4px; }
  .sb-coverage-lbl { flex-basis: 100%; }
  .sb-store-dot { display: none; }

  /* Filters collapse behind one button */
  .sb-filter-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    min-height: 44px; margin: 4px 0 12px; padding: 0 16px;
    border: 1px solid var(--sb-line); border-radius: 999px;
    background: var(--sb-surface); color: var(--sb-ink);
    font-weight: 700; font-size: 14px; cursor: pointer;
  }
  .sb-filter-bar { display: none; flex-direction: column; align-items: stretch; gap: 12px; margin-bottom: 16px; }
  .sb-filter-bar.is-open { display: flex; }
  .sb-filter-group, .sb-sort-group { width: 100%; }
  .sb-filter-chip { min-height: 40px; padding: 0 12px; }
  .sb-select { flex: 1; min-height: 44px; font-size: 16px; }
  .sb-price-range input { flex: 1; min-height: 44px; font-size: 16px; }

  /* Card: image left, text right; no box-in-box */
  .sb-cards-list { gap: 12px; }
  .sb-product-card { padding: 14px; gap: 12px; border-radius: 12px; }
  .sb-card-top { gap: 12px; }
  .sb-card-thumb { width: 76px; height: 76px; }
  .sb-thumb-fallback { width: 32px; height: 32px; }
  .sb-card-title { font-size: 15px; margin-bottom: 6px; }
  .sb-spec-chip { font-size: 11px; }
  .sb-spec-chips .sb-spec-chip:nth-child(n+4) { display: none; }   /* max 3 chips on phones */

  .sb-price-table { border: 0; border-radius: 0; margin: 0 -14px; border-top: 1px solid var(--sb-line); }
  .sb-price-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "store price"
      "note  note"
      "cta   cta";
    align-items: center;
    gap: 6px 12px;
    padding: 12px 14px;
  }
  .sb-price-row.is-cheapest { box-shadow: inset 3px 0 0 var(--sb-accent-orange); }
  .sb-row-store { grid-area: store; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
  .sb-store-badge { font-size: 14px; }
  .sb-lowest-badge { margin-top: 0; font-size: 10px; white-space: nowrap; }
  .sb-savings-note, .sb-single-store-note { flex-basis: 100%; font-size: 12px; }
  .sb-row-pricing { grid-area: price; align-items: flex-end; text-align: right; }
  .sb-net-price { font-size: 18px; }
  .sb-row-cta { grid-area: cta; }
  .sb-deal-btn { width: 100%; min-height: 44px; font-size: 14px; }
  .sb-price-row:not(.is-cheapest) .sb-deal-btn.is-secondary { min-height: 40px; }

  .sb-offers-accordion { margin: 0 -14px; border-radius: 0; border-left: 0; border-right: 0; }
  .sb-card-actions { margin-top: 0; justify-content: space-between; }
  .sb-coupon-item { flex-direction: column; align-items: stretch; }
  .sb-copy-btn { width: 100%; min-height: 40px; }
  .sb-related { margin-top: 20px; }
  .sb-related .sb-chip { white-space: normal; }
}

@media (min-width: 768px) {
  .sb-product-card { position: relative; }
  .sb-card-actions { position: absolute; top: 12px; right: 12px; margin: 0; }
  .sb-card-headings { padding-right: 96px; }
}