/* ==========================================================================
   AcctBank Phase 1 — Shopify Visual Polish × Z2U / G2G Marketplace Storefront
   Strictly Scoped to Staging Storefront UI (Zero Backend / DOM Hook Changes)
   ========================================================================== */

:root {
  --ab-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ab-font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ab-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --ab-bg-canvas: #F1F5F9;
  --ab-bg-well: #F8FAFC;
  --ab-bg-surface: #FFFFFF;
  --ab-bg-subtle: #E2E8F0;
  --ab-border: #CBD5E1;
  --ab-border-soft: #E2E8F0;
  --ab-border-strong: #94A3B8;

  --ab-text-heading: #0F172A;
  --ab-text-body: #334155;
  --ab-text-muted: #64748B;
  --ab-text-subtle: #94A3B8;

  --ab-brand: #0D9488;
  --ab-brand-hover: #0F766E;
  --ab-brand-deep: #042F34;
  --ab-brand-soft: #F0FDFA;
  --ab-brand-border: #99F6E4;

  --ab-trust: #059669;
  --ab-trust-soft: #ECFDF5;
  --ab-trust-border: #A7F3D0;

  --ab-shadow-xs: 0 4px 12px rgba(15, 23, 42, 0.05);
  --ab-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --ab-shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --ab-shadow-pop: 0 16px 36px -6px rgba(15, 23, 42, 0.14), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
}

html, body {
  font-family: var(--ab-font-sans) !important;
  background-color: var(--ab-bg-canvas) !important;
  color: var(--ab-text-heading);
  max-width: 100%;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .ab-display-font {
  font-family: var(--ab-font-display);
  letter-spacing: -0.02em;
}

/* ==========================================================================
   1. STICKY SHOPIFY × Z2U TOP HEADER
   ========================================================================== */
.header-top {
  display: none !important;
}

header.header-part.ab-shopify-header {
  position: sticky !important;
  top: 0 !important;
  border-top: 3px solid #0F172A !important;
  z-index: 1030 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--ab-border) !important;
  box-shadow: var(--ab-shadow-xs) !important;
  padding: 0 !important;
}

.ab-hdr-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 16px;
}

.ab-hdr-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 8px 0;
}

.ab-hdr-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Mobile Menu Trigger (.header-user preserved for main.js) */
.ab-shopify-header .header-user {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  background: var(--ab-bg-surface) !important;
  border: 1px solid var(--ab-border) !important;
  color: var(--ab-text-heading) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: background 0.15s ease, border-color 0.15s ease !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.ab-shopify-header .header-user:hover {
  background: var(--ab-bg-subtle) !important;
  border-color: var(--ab-border-strong) !important;
}

.ab-shopify-header .header-logo {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  margin: 0 !important;
}
.ab-shopify-header .header-logo img {
  max-height: 34px !important;
  width: auto !important;
  object-fit: contain !important;
}
html:not(.ab-dark-mode):not([data-theme="dark"]) .ab-shopify-header .header-logo .logo-dark {
  display: none !important;
}
html.ab-dark-mode .ab-shopify-header .header-logo .logo-light,
html[data-theme="dark"] .ab-shopify-header .header-logo .logo-light {
  display: none !important;
}

/* Quick Category Dropdown in Header */
.ab-qcat-wrap {
  position: relative;
}
.ab-qcat-btn {
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--ab-bg-canvas);
  border: 1px solid var(--ab-border);
  color: var(--ab-text-heading);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.ab-qcat-btn:hover,
.ab-qcat-wrap.open .ab-qcat-btn {
  background: var(--ab-brand-soft);
  border-color: var(--ab-brand);
  color: var(--ab-brand-hover);
}
.ab-qcat-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 540px;
  max-width: calc(100vw - 24px);
  max-height: 76vh;
  overflow-y: auto;
  background: var(--ab-bg-surface);
  border: 1px solid var(--ab-border);
  border-radius: 14px;
  box-shadow: var(--ab-shadow-pop);
  padding: 14px;
  z-index: 1060;
}
.ab-qcat-wrap.open .ab-qcat-menu {
  display: block;
}
.ab-qcat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 640px) {
  .ab-qcat-grid { grid-template-columns: 1fr; }
}
.ab-qcat-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--ab-border);
  background: var(--ab-bg-surface);
  text-decoration: none !important;
  color: var(--ab-text-heading) !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ab-qcat-card:hover {
  background: var(--ab-brand-soft);
  border-color: var(--ab-brand-border);
}
.ab-qcat-card img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Central Global Search Bar */
.ab-hdr-search {
  flex: 1 1 460px;
  max-width: 580px;
  position: relative;
  min-width: 0;
}
.ab-shopify-header .header-form {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 40px !important;
  background: var(--ab-bg-canvas) !important;
  border: 1px solid var(--ab-border-strong) !important;
  border-radius: 10px !important;
  padding: 0 5px 0 12px !important;
  margin: 0 !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease !important;
}
.ab-shopify-header .header-form:focus-within {
  background: var(--ab-bg-surface) !important;
  border-color: var(--ab-brand) !important;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12) !important;
}
.ab-shopify-header .header-form .ab-search-lead-ico {
  color: var(--ab-text-muted);
  font-size: 13.5px;
  margin-right: 8px;
  flex-shrink: 0;
}
.ab-shopify-header .header-form input#searchInput {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 36px !important;
  border: none !important;
  background: transparent !important;
  color: var(--ab-text-heading) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  padding: 0 6px 0 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
.ab-shopify-header .header-form input#searchInput::placeholder {
  color: var(--ab-text-muted) !important;
  font-weight: 400 !important;
}
.ab-shopify-header .header-form button[type="submit"] {
  height: 30px !important;
  padding: 0 12px !important;
  border-radius: 7px !important;
  background: var(--ab-text-heading) !important;
  color: #FFFFFF !important;
  border: none !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: background 0.15s ease !important;
}
.ab-shopify-header .header-form button[type="submit"]:hover {
  background: var(--ab-brand) !important;
}

/* Right Header Actions */
.ab-hdr-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ab-hdr-link-pill {
  height: 36px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--ab-border);
  background: var(--ab-bg-surface);
  color: var(--ab-text-body) !important;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ab-hdr-link-pill i {
  color: var(--ab-brand);
  font-size: 13px;
}
.ab-hdr-link-pill:hover {
  background: var(--ab-bg-canvas);
  border-color: var(--ab-border-strong);
  color: var(--ab-text-heading) !important;
}

/* Prominent Wallet Balance Pill */
.ab-wallet-pill {
  height: 36px;
  padding: 0 5px 0 11px;
  border-radius: 999px;
  background: var(--ab-trust-soft);
  border: 1px solid var(--ab-trust-border);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.ab-wallet-pill-bal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #065F46 !important;
  font-family: var(--ab-font-mono);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}
.ab-wallet-pill-bal i {
  color: var(--ab-trust);
  font-size: 12.5px;
}
.ab-wallet-pill-add {
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--ab-trust);
  color: #FFFFFF !important;
  border: none;
  font-family: var(--ab-font-sans);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ab-wallet-pill-add:hover {
  background: #047857;
}

/* Compact Icon Buttons (Bell, Cart, Theme) */
.ab-hdr-icon-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 9px !important;
  background: var(--ab-bg-surface) !important;
  border: 1px solid var(--ab-border) !important;
  color: var(--ab-text-body) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  text-decoration: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: all 0.15s ease !important;
}
.ab-hdr-icon-btn:hover {
  background: var(--ab-bg-subtle) !important;
  color: var(--ab-text-heading) !important;
  border-color: var(--ab-border-strong) !important;
}
.ab-hdr-icon-btn sup#numCart {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ab-brand);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

/* Profile Chip & Guest Auth Buttons */
.ab-hdr-profile {
  height: 36px;
  padding: 0 10px 0 5px;
  border-radius: 999px;
  border: 1px solid var(--ab-border);
  background: var(--ab-bg-surface);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none !important;
  color: var(--ab-text-heading) !important;
  font-size: 12.5px;
  font-weight: 600;
  max-width: 150px;
}
.ab-hdr-profile:hover {
  background: var(--ab-bg-canvas);
  border-color: var(--ab-border-strong);
}
.ab-hdr-profile img {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}
.ab-hdr-profile-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ab-btn-signin {
  height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid var(--ab-border-strong);
  background: var(--ab-bg-surface);
  color: var(--ab-text-heading) !important;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  white-space: nowrap;
}
.ab-btn-register {
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  background: var(--ab-brand);
  color: #FFFFFF !important;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.ab-btn-register:hover {
  background: var(--ab-brand-hover);
}

/* Secondary Desktop Utility Strip (.navbar-part) */
nav.navbar-part.ab-subnav-bar {
  background: #F8FAFC !important;
  border-bottom: 1px solid var(--ab-border) !important;
  padding: 0 !important;
}
.ab-subnav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
}
.ab-subnav-bar .sknav-menu {
  padding: 4px 0 !important;
  gap: 4px !important;
}
.ab-subnav-bar .sknav-link {
  padding: 5px 10px !important;
  border-radius: 7px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--ab-text-body) !important;
}
.ab-subnav-bar .sknav-link:hover {
  background: #FFFFFF !important;
  border-color: var(--ab-border) !important;
  color: var(--ab-text-heading) !important;
}
.ab-subnav-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ab-text-muted);
  white-space: nowrap;
}
.ab-subnav-trust span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ab-subnav-trust i {
  color: var(--ab-trust);
}

/* Prevent duplicate floating top-right Inbox pill from colliding with sticky header */
#ab-global-notif-floating {
  display: none !important;
}

/* ==========================================================================
   2. G2G / Z2U HORIZONTAL PLATFORM CATEGORY STRIP
   ========================================================================== */
.ab-platform-strip-shell {
  background: var(--ab-bg-surface);
  border-bottom: 1px solid var(--ab-border);
  position: sticky;
  top: 64px;
  z-index: 1010;
}
.ab-platform-strip-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ab-plat-scroll-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--ab-border);
  background: var(--ab-bg-surface);
  color: var(--ab-text-body);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 12px;
  box-shadow: var(--ab-shadow-xs);
}
.ab-plat-scroll-btn:hover {
  background: var(--ab-bg-subtle);
  color: var(--ab-text-heading);
}
#ab-cat-ribbon.ab-cat-ribbon {
  flex: 1 1 auto;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 7px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 1px 2px !important;
}
#ab-cat-ribbon.ab-cat-ribbon::-webkit-scrollbar {
  display: none;
}

.ab-cat-tab {
  flex: 0 0 auto !important;
  height: 34px;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: var(--ab-bg-surface) !important;
  border: 1px solid var(--ab-border) !important;
  color: var(--ab-text-body) !important;
  font-family: var(--ab-font-sans) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease !important;
}
.ab-cat-tab:hover {
  background: var(--ab-bg-canvas) !important;
  border-color: var(--ab-border-strong) !important;
  color: var(--ab-text-heading) !important;
}
.ab-cat-tab.active {
  background: var(--ab-text-heading) !important;
  border-color: var(--ab-text-heading) !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14) !important;
}
.ab-cat-tab img {
  width: 16px !important;
  height: 16px !important;
  border-radius: 4px;
  object-fit: contain;
}
.ab-cat-tab .ab-plat-ico {
  font-size: 13.5px;
  line-height: 1;
}
.ab-cat-tab .ab-cat-cnt {
  font-family: var(--ab-font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--ab-bg-subtle);
  color: var(--ab-text-muted);
}
.ab-cat-tab.active .ab-cat-cnt {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

/* Subcategory Strip */
#ab-sub-ribbon.ab-sub-ribbon {
  max-width: 1360px;
  margin: 0 auto;
  padding: 8px 16px 0;
  display: none;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 6px !important;
  scrollbar-width: none;
}
#ab-sub-ribbon.ab-sub-ribbon::-webkit-scrollbar { display: none; }
.ab-sub-pill {
  flex: 0 0 auto !important;
  height: 30px;
  padding: 0 11px !important;
  border-radius: 8px !important;
  background: var(--ab-bg-surface) !important;
  border: 1px solid var(--ab-border) !important;
  color: var(--ab-text-body) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap !important;
}
.ab-sub-pill:hover {
  border-color: var(--ab-brand);
  color: var(--ab-brand-hover) !important;
}
.ab-sub-pill.active {
  background: var(--ab-brand-soft) !important;
  border-color: var(--ab-brand) !important;
  color: var(--ab-brand-hover) !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   3. STOREFRONT CONTAINER & HORIZONTAL FILTER BAR
   ========================================================================== */
.ab-store {
  max-width: 1360px !important;
  margin: 14px auto 96px !important;
  padding: 0 16px !important;
}

.ab-filter-toolbar {
  background: var(--ab-bg-surface);
  border: 1px solid var(--ab-border);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--ab-shadow-xs);
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ab-filter-row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.ab-filter-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.ab-select-wrap {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 36px !important;
  padding: 0 8px 0 10px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  border: 1px solid #CBD5E1 !important;
  background-color: #F8FAFC !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.ab-select-wrap:hover,
.ab-select-wrap:focus-within {
  border-color: #0D9488 !important;
  background-color: #FFFFFF !important;
}
.ab-select-wrap i {
  position: static !important;
  font-size: 12px !important;
  color: #0D9488 !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  pointer-events: none;
}
.ab-filter-select {
  position: static !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  height: 34px !important;
  margin: 0 !important;
  padding: 0 22px 0 2px !important;
  border: none !important;
  background-color: transparent !important;
  color: #0F172A !important;
  font-family: var(--ab-font-sans) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 2px center !important;
  text-overflow: ellipsis !important;
}
.ab-filter-select:hover,
.ab-filter-select:focus {
  border-color: var(--ab-brand);
  background-color: var(--ab-bg-surface);
}

.ab-chip-btn {
  height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--ab-border);
  background: var(--ab-bg-surface);
  color: var(--ab-text-body);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.ab-chip-btn:hover {
  background: var(--ab-bg-canvas);
  border-color: var(--ab-border-strong);
  color: var(--ab-text-heading);
}
.ab-chip-btn.active {
  background: var(--ab-brand-soft);
  border-color: var(--ab-brand);
  color: var(--ab-brand-hover);
  font-weight: 700;
}
.ab-chip-btn .ab-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ab-trust);
}

.ab-filter-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.ab-view-segmented {
  display: inline-flex;
  align-items: center;
  background: var(--ab-bg-subtle);
  border: 1px solid var(--ab-border);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}
.ab-view-btn {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--ab-text-muted);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
}
.ab-view-btn.active {
  background: var(--ab-bg-surface);
  color: var(--ab-text-heading);
  box-shadow: var(--ab-shadow-xs);
}

.ab-filter-row-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #F1F5F9;
  flex-wrap: wrap;
  min-width: 0;
}
#ab-access-pills.ab-quick-pills-scroll,
.ab-quick-pills-scroll {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
  -webkit-overflow-scrolling: touch !important;
  max-width: 100% !important;
  padding: 4px 2px !important;
}
.ab-quick-pills-scroll::-webkit-scrollbar { display: none; }

.ab-qpill-divider {
  width: 1px !important;
  height: 20px !important;
  background: #CBD5E1 !important;
  flex-shrink: 0 !important;
  margin: 0 2px !important;
}

button.ab-qpill,
.ab-qpill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  height: auto !important;
  min-height: 32px !important;
  padding: 6px 13px !important;
  margin: 0 !important;
  border-radius: 9999px !important;
  border: 1px solid #E2E8F0 !important;
  background: #F8FAFC !important;
  color: #334155 !important;
  font-family: var(--ab-font-sans) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}
button.ab-qpill:hover,
.ab-qpill:hover {
  border-color: #CBD5E1 !important;
  background: #FFFFFF !important;
  color: #0F172A !important;
}
button.ab-qpill.active,
.ab-qpill.active {
  background: #0F172A !important;
  border-color: #0F172A !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.14) !important;
}
.ab-qpill .ab-qpill-cnt,
.ab-qpill em.ab-qpill-cnt,
.ab-qpill-cnt {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: 5px !important;
  padding: 1px 6px !important;
  border-radius: 9999px !important;
  background: rgba(15, 23, 42, 0.07) !important;
  color: #0F172A !important;
  font-family: var(--ab-font-mono) !important;
  font-style: normal !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
}
button.ab-qpill.active .ab-qpill-cnt,
.ab-qpill.active .ab-qpill-cnt {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #FFFFFF !important;
}

@media (max-width: 768px) {
  .ab-filter-row-sub {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding-top: 6px !important;
  }
  #ab-access-pills.ab-quick-pills-scroll,
  .ab-quick-pills-scroll {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 8px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  button.ab-qpill,
  .ab-qpill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    padding: 7px 14px !important;
    min-height: 34px !important;
    border-radius: 9999px !important;
    border: 1px solid #E2E8F0 !important;
    background: #FFFFFF !important;
    font-size: 12px !important;
  }
  button.ab-qpill.active,
  .ab-qpill.active {
    background: #0F172A !important;
    border-color: #0F172A !important;
    color: #FFFFFF !important;
  }
  .ab-qpill .ab-qpill-cnt,
  .ab-qpill em.ab-qpill-cnt,
  .ab-qpill-cnt {
    margin-left: 5px !important;
    font-weight: 600 !important;
  }
  .ab-filter-row-sub .ab-results-summary {
    padding: 0 12px 2px !important;
    justify-content: flex-end !important;
  }
}

.ab-results-summary {
  font-size: 12px;
  color: var(--ab-text-muted);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.ab-results-summary strong {
  color: var(--ab-text-heading);
  font-weight: 700;
}

/* ==========================================================================
   4. MARKETPLACE OFFER CARDS & COMPACT ROWS (Z2U / G2G × SHOPIFY)
   ========================================================================== */

/* Mode A: High-Density Compact Offer Rows (Desktop Z2U/G2G Table-Row Feel) */
.ab-offers-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Mode B: Crisp Responsive Offer Grid */
.ab-offers-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 600px) {
  .ab-offers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .ab-offers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 1280px) {
  .ab-offers-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}

/* Shared Offer Surface (.ab-pcard preserved for all hooks!) */
.ab-pcard {
  background: var(--ab-bg-surface) !important;
  border: 1px solid var(--ab-border) !important;
  border-radius: 12px !important;
  box-shadow: var(--ab-shadow-xs) !important;
  transform: none !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease !important;
  min-width: 0;
  box-sizing: border-box;
}
.ab-pcard:hover {
  border-color: #94A3B8 !important;
  box-shadow: var(--ab-shadow-md) !important;
  transform: translateY(-1px) !important;
}

/* Compact Row Layout on Desktop */
.ab-offers-rows .ab-pcard {
  padding: 13px 16px !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

/* Card Grid Layout */
.ab-offers-grid .ab-pcard {
  padding: 14px !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.ab-offer-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

/* Platform Icon / Product Thumbnail */
.ab-offer-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ab-bg-canvas);
  border: 1px solid var(--ab-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  text-decoration: none !important;
  position: relative;
}
.ab-offer-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ab-offer-icon .ab-brand-glyph {
  font-size: 20px;
  line-height: 1;
}

.ab-offer-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ab-offer-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.ab-offer-title {
  font-family: var(--ab-font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ab-text-heading) !important;
  text-decoration: none !important;
  line-height: 1.35;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ab-offer-title:hover {
  color: var(--ab-brand) !important;
}

/* Spec Chips + Scannable Snippet */
.ab-offer-specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.ab-spec-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--ab-text-body);
  background: var(--ab-bg-subtle);
  border: 1px solid #E2E8F0;
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1.3;
}
.ab-spec-tag.is-highlight {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #92400E;
}

.ab-offer-snippet {
  font-size: 12px;
  color: var(--ab-text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ab-offers-grid .ab-offer-snippet {
  -webkit-line-clamp: 2;
}

/* Trust & Verification Metadata Row */
.ab-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 2px;
}

.ab-seller-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ab-text-heading) !important;
  text-decoration: none !important;
  padding: 2px 8px 2px 6px;
  border-radius: 6px;
  background: var(--ab-bg-canvas);
  border: 1px solid var(--ab-border);
  max-width: 190px;
}
.ab-seller-chip:hover {
  border-color: var(--ab-brand);
  color: var(--ab-brand-hover) !important;
}
.ab-seller-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ab-online-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #10B981;
  flex-shrink: 0;
}

.ab-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ab-brand-hover);
  background: var(--ab-brand-soft);
  border: 1px solid var(--ab-brand-border);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.ab-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ab-text-body);
  background: var(--ab-bg-surface);
  border: 1px solid var(--ab-border);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.ab-rating-pill .ab-star {
  color: #F59E0B;
}

.ab-delivery-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.ab-delivery-pill.instant {
  color: #047857;
  background: var(--ab-trust-soft);
  border: 1px solid var(--ab-trust-border);
}
.ab-delivery-pill.manual {
  color: #475569;
  background: var(--ab-bg-subtle);
  border: 1px solid var(--ab-border);
}

.ab-stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--ab-font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ab-text-body);
  background: var(--ab-bg-canvas);
  border: 1px solid var(--ab-border);
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
}
.ab-stock-pill strong {
  color: var(--ab-trust);
  font-weight: 700;
}

/* Right-Aligned (Rows) / Bottom-Pinned (Grid & Mobile) Price + Action Block */
.ab-offer-aside {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.ab-offers-rows .ab-offer-aside {
  padding-left: 16px;
  border-left: 1px solid #F1F5F9;
  min-width: 245px;
  justify-content: space-between;
}

.ab-offers-grid .ab-offer-aside {
  padding-top: 11px;
  border-top: 1px solid #F1F5F9;
  justify-content: space-between;
  width: 100%;
}

.ab-price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}
.ab-offers-grid .ab-price-stack {
  align-items: flex-start;
}
.ab-unit-price {
  font-family: var(--ab-font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--ab-text-heading);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.ab-unit-lbl {
  font-size: 11px;
  font-weight: 500;
  color: var(--ab-text-muted);
  margin-top: 2px;
  white-space: nowrap;
}

.ab-cta-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ab-pbtn-info {
  height: 36px !important;
  padding: 0 10px !important;
  border-radius: 8px !important;
  background: var(--ab-bg-surface) !important;
  border: 1px solid var(--ab-border-strong) !important;
  color: var(--ab-text-body) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
}
.ab-pbtn-info:hover {
  background: var(--ab-bg-subtle) !important;
  color: var(--ab-text-heading) !important;
}

.ab-pbtn-buy {
  height: 36px !important;
  padding: 0 15px !important;
  border-radius: 8px !important;
  background: var(--ab-brand) !important;
  border: 1px solid var(--ab-brand) !important;
  color: #FFFFFF !important;
  font-family: var(--ab-font-sans) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 2px rgba(13, 148, 136, 0.2) !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease !important;
}
.ab-pbtn-buy:hover {
  background: var(--ab-brand-hover) !important;
  border-color: var(--ab-brand-hover) !important;
}

/* ==========================================================================
   5. CATEGORY DIRECTORY CARDS & VERIFIED STORES STRIP
   ========================================================================== */
.ab-cat-dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 12px;
}
.ab-cat-dir-card {
  background: var(--ab-bg-surface);
  border: 1px solid var(--ab-border);
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--ab-shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.ab-cat-dir-card:hover {
  border-color: var(--ab-brand);
  box-shadow: var(--ab-shadow-md);
  transform: translateY(-1px);
}

/* Verified Stores Spotlight Strip */
.ab-shops-spotlight {
  margin-top: 26px;
  background: var(--ab-bg-surface);
  border: 1px solid var(--ab-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--ab-shadow-xs);
}
.ab-shops-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 1px 2px;
}
.ab-shops-track::-webkit-scrollbar { display: none; }
.ab-shop-mini-card {
  flex: 0 0 268px;
  min-width: 268px;
  background: var(--ab-bg-canvas);
  border: 1px solid var(--ab-border);
  border-radius: 12px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  text-decoration: none !important;
  color: var(--ab-text-heading) !important;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.ab-shop-mini-card:hover {
  background: var(--ab-bg-surface);
  border-color: var(--ab-brand);
  box-shadow: var(--ab-shadow-sm);
}

/* ==========================================================================
   6. MOBILE PERFECTION (<= 991px & <= 768px iPhone Viewports)
   ========================================================================== */
@media (max-width: 991px) {
  .ab-hide-tablet {
    display: none !important;
  }
  nav.navbar-part.ab-subnav-bar {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .ab-hdr-container {
    padding: 0 12px;
  }
  .ab-hdr-main {
    flex-wrap: wrap;
    min-height: auto;
    padding: 8px 0 10px;
    gap: 8px;
  }
  .ab-hdr-left {
    order: 1;
    gap: 8px;
  }
  .ab-shopify-header .header-logo img {
    max-height: 28px !important;
  }
  .ab-qcat-wrap {
    display: none !important;
  }
  .ab-hdr-right {
    order: 2;
    gap: 6px;
    margin-left: auto;
  }
  .ab-hdr-link-pill.ab-hide-mobile {
    display: none !important;
  }
  .ab-hdr-profile {
    padding: 0 4px;
    max-width: 36px;
  }
  .ab-hdr-profile-name {
    display: none !important;
  }
  .ab-wallet-pill {
    height: 32px;
    padding: 0 4px 0 9px;
    gap: 5px;
  }
  .ab-wallet-pill-bal {
    font-size: 12px;
  }
  .ab-wallet-pill-add {
    height: 24px;
    padding: 0 7px;
    font-size: 11px;
  }
  .ab-hdr-icon-btn,
  .ab-shopify-header .header-user {
    width: 34px !important;
    height: 34px !important;
  }

  /* Full-width Central Search Row on Mobile */
  .ab-hdr-search {
    order: 3;
    flex: 1 1 100%;
    max-width: 100%;
    width: 100%;
  }
  .ab-shopify-header .header-form {
    height: 38px !important;
  }
  .ab-shopify-header .header-form input#searchInput {
    font-size: 13px !important;
  }

  /* Sticky Category Strip adjusts below 2-row mobile header */
  .ab-platform-strip-shell {
    top: 98px;
  }
  .ab-platform-strip-inner {
    padding: 7px 12px;
  }
  .ab-plat-scroll-btn {
    display: none !important;
  }
  .ab-cat-tab {
    height: 32px;
    padding: 0 11px !important;
    font-size: 12px !important;
  }

  /* Filter Bar on Mobile: Zero Overflow, Clean Horizontal Scroll */
  .ab-store {
    padding: 0 12px !important;
    margin: 10px auto 115px !important;
  }
  .ab-filter-toolbar {
    padding: 12px !important;
    gap: 10px !important;
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
  }
  .ab-filter-row-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .ab-filter-controls,
  .ab-filter-right {
    display: contents !important;
  }
  .ab-filter-row-main .ab-select-wrap,
  .ab-filter-row-main #ab-stock-btn,
  .ab-filter-row-main .ab-view-segmented {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    justify-content: center !important;
  }
  .ab-filter-row-main .ab-select-wrap {
    justify-content: flex-start !important;
    padding: 0 8px 0 10px !important;
  }
  .ab-filter-row-main .ab-filter-select {
    width: 100% !important;
    height: 36px !important;
    font-size: 12px !important;
    padding: 0 18px 0 2px !important;
  }
  .ab-filter-row-main .ab-view-segmented .ab-view-btn {
    flex: 1 1 0 !important;
    justify-content: center !important;
    padding: 0 6px !important;
  }
  .ab-results-summary {
    font-size: 11.5px;
  }

  /* Mobile Offer Cards: Clean 1-Column Card with Bottom-Pinned Price & CTA */
  .ab-offers-rows .ab-pcard {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px !important;
    gap: 10px;
  }
  .ab-offers-rows .ab-offer-aside {
    padding-left: 0;
    padding-top: 10px;
    border-left: none;
    border-top: 1px solid #F1F5F9;
    min-width: 0;
    width: 100%;
    justify-content: space-between;
  }
  .ab-offers-rows .ab-price-stack {
    align-items: flex-start;
  }
  .ab-offer-icon {
    width: 40px;
    height: 40px;
  }
  .ab-offer-title {
    font-size: 13.5px;
  }
  .ab-unit-price {
    font-size: 17.5px;
  }
  .ab-pbtn-buy {
    height: 35px !important;
    padding: 0 13px !important;
    font-size: 12px !important;
  }
  .ab-pbtn-info {
    height: 35px !important;
    padding: 0 9px !important;
  }
}

/* Dark Mode Harmony */
html.ab-dark-mode body,
html[data-theme="dark"] body {
  background-color: #0B1120 !important;
  color: #F1F5F9 !important;
}
html.ab-dark-mode header.header-part.ab-shopify-header,
html[data-theme="dark"] header.header-part.ab-shopify-header,
html.ab-dark-mode .ab-platform-strip-shell,
html[data-theme="dark"] .ab-platform-strip-shell {
  background: rgba(15, 23, 42, 0.96) !important;
  border-color: #1E293B !important;
}
html.ab-dark-mode .ab-filter-toolbar,
html.ab-dark-mode .ab-pcard,
html.ab-dark-mode .ab-shops-spotlight,
html.ab-dark-mode .ab-cat-dir-card {
  background: #131C31 !important;
  border-color: #24324D !important;
  color: #F1F5F9 !important;
}
html.ab-dark-mode .ab-offer-title,
html.ab-dark-mode .ab-unit-price {
  color: #F8FAFC !important;
}
html.ab-dark-mode .ab-cat-tab:not(.active),
html.ab-dark-mode .ab-filter-select,
html.ab-dark-mode .ab-chip-btn:not(.active),
html.ab-dark-mode .ab-hdr-link-pill,
html.ab-dark-mode .ab-hdr-icon-btn,
html.ab-dark-mode .ab-shopify-header .header-form {
  background-color: #1E293B !important;
  border-color: #334155 !important;
  color: #E2E8F0 !important;
}
html.ab-dark-mode .ab-shopify-header .header-form input#searchInput {
  color: #F8FAFC !important;
}


/* ==========================================================================
   7. PHASE 2 — OFFER DETAIL & STICKY HIGH-CONVERSION CHECKOUT CARD
   ========================================================================== */
.ab-pdp-shell {
  max-width: 1280px;
  margin: 14px auto 96px;
  padding: 0 16px;
}

.ab-pdp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ab-pdp-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ab-text-muted);
}
.ab-pdp-breadcrumb a {
  color: var(--ab-text-body) !important;
  text-decoration: none !important;
  font-weight: 600;
}
.ab-pdp-breadcrumb a:hover {
  color: var(--ab-brand) !important;
}
.ab-pdp-breadcrumb .ab-bc-sep {
  color: var(--ab-text-subtle);
}
.ab-pdp-breadcrumb .ab-bc-cur {
  color: var(--ab-text-muted);
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ab-pdp-quick-tools {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.ab-pdp-tool-btn {
  height: 34px;
  padding: 0 11px;
  border-radius: 8px;
  background: var(--ab-bg-surface);
  border: 1px solid var(--ab-border);
  color: var(--ab-text-body);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ab-pdp-tool-btn:hover {
  border-color: var(--ab-brand);
  color: var(--ab-brand-hover);
  background: var(--ab-brand-soft);
}
.ab-pdp-tool-btn.favorited {
  border-color: #FDA4AF;
  background: #FFF1F2;
  color: #E11D48;
}

/* Two-Column Desktop Layout */
.ab-pdp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.46fr) 410px;
  gap: 20px;
  align-items: start;
}

.ab-pdp-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.ab-pdp-right {
  position: sticky;
  top: 80px;
  min-width: 0;
}

.ab-pdp-card {
  background: var(--ab-bg-surface);
  border: 1px solid var(--ab-border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--ab-shadow-xs);
}

/* Left Hero Header */
.ab-pdp-hero-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ab-pdp-icon-frame {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  background: var(--ab-bg-canvas);
  border: 1px solid var(--ab-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
}
.ab-pdp-icon-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.ab-pdp-title {
  margin: 0 0 8px;
  font-family: var(--ab-font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--ab-text-heading);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.ab-pdp-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

/* Account Specification Bullets Grid */
.ab-pdp-spec-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #F1F5F9;
}
.ab-pdp-sec-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ab-text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ab-pdp-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.ab-pdp-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ab-bg-canvas);
  border: 1px solid var(--ab-border);
}
.ab-pdp-spec-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ab-bg-surface);
  border: 1px solid var(--ab-border);
  color: var(--ab-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.ab-pdp-spec-k {
  font-size: 11px;
  font-weight: 600;
  color: var(--ab-text-muted);
  line-height: 1.2;
}
.ab-pdp-spec-v {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ab-text-heading);
  margin-top: 2px;
  line-height: 1.3;
}

/* Seller Store Mini-Card inside Offer Detail */
.ab-seller-mini-card {
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid var(--ab-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ab-seller-mini-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.ab-seller-mini-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--ab-brand-soft);
  border: 1px solid var(--ab-brand-border);
  color: var(--ab-brand-hover);
  font-family: var(--ab-font-display);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.ab-seller-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ab-seller-mini-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ab-text-muted);
  margin-top: 3px;
}
.ab-seller-mini-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Package / Option Cards (#productPlansGrid) */
.ab-plans-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ab-pdp-shell .product-plan-card {
  background: var(--ab-bg-surface) !important;
  border: 1px solid var(--ab-border) !important;
  border-radius: 11px !important;
  padding: 12px 14px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: none !important;
  transform: none !important;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease !important;
}
.ab-pdp-shell .product-plan-card:hover:not(.out-of-stock) {
  border-color: #94A3B8 !important;
  background: #FCFDFE !important;
}
.ab-pdp-shell .product-plan-card.active {
  border-color: var(--ab-brand) !important;
  background: var(--ab-brand-soft) !important;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.12) !important;
}
.ab-pdp-shell .product-plan-card.out-of-stock {
  opacity: 0.62;
  background: var(--ab-bg-canvas) !important;
}
.ab-plan-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--ab-border-strong);
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.ab-pdp-shell .product-plan-card.active .ab-plan-radio {
  border-color: var(--ab-brand);
  background: var(--ab-brand);
}
.ab-pdp-shell .product-plan-card.active .ab-plan-radio::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF;
}

/* Sticky Checkout Card (Right Column) */
.ab-checkout-card {
  background: var(--ab-bg-surface) !important;
  border: 1px solid var(--ab-border) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  box-shadow: var(--ab-shadow-md) !important;
}

.ab-checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 16px;
}

/* Tactile Quantity Stepper */
.ab-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.ab-qty-stepper {
  display: inline-flex;
  align-items: center;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--ab-border-strong);
  background: var(--ab-bg-canvas);
  padding: 3px;
  gap: 2px;
}
.ab-qty-stepper .qty-btn {
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  border: none !important;
  background: var(--ab-bg-surface) !important;
  color: var(--ab-text-heading) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: var(--ab-shadow-xs) !important;
  transition: background 0.14s ease, color 0.14s ease !important;
}
.ab-qty-stepper .qty-btn:hover {
  background: var(--ab-brand) !important;
  color: #FFFFFF !important;
}
.ab-qty-stepper input#orderQuantity {
  width: 64px !important;
  height: 34px !important;
  border: none !important;
  background: transparent !important;
  text-align: center !important;
  font-family: var(--ab-font-mono) !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: var(--ab-text-heading) !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  -moz-appearance: textfield;
}
.ab-qty-stepper input#orderQuantity::-webkit-outer-spin-button,
.ab-qty-stepper input#orderQuantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Promo / Coupon Box */
.ab-coupon-box {
  margin-bottom: 14px;
  border: 1px solid var(--ab-border);
  border-radius: 10px;
  background: var(--ab-bg-canvas);
  overflow: hidden;
}
.ab-coupon-trigger {
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ab-text-body);
  cursor: pointer;
}
.ab-coupon-trigger:hover {
  color: var(--ab-brand-hover);
}
.ab-coupon-body {
  padding: 0 12px 12px;
}
.ab-coupon-body .coupon-input-group {
  display: flex;
  gap: 6px;
}
.ab-coupon-body input#couponCode {
  flex: 1 1 auto;
  height: 36px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--ab-border-strong);
  background: var(--ab-bg-surface);
  font-family: var(--ab-font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ab-text-heading);
  text-transform: uppercase;
  outline: none;
}
.ab-coupon-body input#couponCode:focus {
  border-color: var(--ab-brand);
}
.ab-coupon-body button#btnApplyCoupon {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: none;
  background: var(--ab-text-heading);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.ab-coupon-body button#btnApplyCoupon:hover {
  background: var(--ab-brand);
}

/* Price Summary + Live Wallet Balance Comparison */
.ab-price-summary-box {
  background: var(--ab-bg-canvas);
  border: 1px solid var(--ab-border);
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 12px;
}
.ab-price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ab-text-muted);
  margin-bottom: 7px;
}
.ab-price-line.is-discount span:last-child {
  color: var(--ab-trust);
  font-weight: 700;
  font-family: var(--ab-font-mono);
}
.ab-price-total-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 9px;
  margin-top: 6px;
  border-top: 1px solid var(--ab-border);
}
.ab-price-total-lbl {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ab-text-heading);
}
.ab-price-total-val {
  font-family: var(--ab-font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--ab-text-heading);
  letter-spacing: -0.02em;
}

.ab-wallet-compare-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--ab-border-strong);
  font-size: 12px;
}
.ab-wallet-compare-bal {
  font-family: var(--ab-font-mono);
  font-weight: 700;
  color: var(--ab-trust);
}
.ab-wallet-compare-bal.is-short {
  color: #DC2626;
}

.ab-topup-nudge {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.ab-topup-nudge.is-visible {
  display: flex;
}
.ab-topup-nudge-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  background: #0F172A;
  color: #FFFFFF !important;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
  flex-shrink: 0;
}
.ab-topup-nudge-btn:hover {
  background: var(--ab-brand);
}

/* Primary Buy Instantly CTA */
.ab-checkout-cta-row {
  display: flex;
  gap: 8px;
}
.ab-checkout-card #btnSubmitOrder {
  flex: 1 1 auto !important;
  height: 46px !important;
  border-radius: 10px !important;
  background: var(--ab-brand) !important;
  border: 1px solid var(--ab-brand) !important;
  color: #FFFFFF !important;
  font-family: var(--ab-font-display) !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.24) !important;
  transition: background 0.15s ease, transform 0.12s ease !important;
}
.ab-checkout-card #btnSubmitOrder:hover:not(:disabled) {
  background: var(--ab-brand-hover) !important;
  border-color: var(--ab-brand-hover) !important;
  transform: translateY(-1px) !important;
}
.ab-checkout-card #btnSubmitOrder:disabled {
  background: #94A3B8 !important;
  border-color: #94A3B8 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}
.ab-checkout-card #btnAddToCart {
  width: 46px !important;
  height: 46px !important;
  border-radius: 10px !important;
  background: var(--ab-bg-surface) !important;
  border: 1px solid var(--ab-border-strong) !important;
  color: var(--ab-text-heading) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}
.ab-checkout-card #btnAddToCart:hover {
  border-color: var(--ab-brand) !important;
  color: var(--ab-brand) !important;
  background: var(--ab-brand-soft) !important;
}

/* Escrow Guarantee Trust Strip */
.ab-escrow-trust-strip {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ab-trust-soft);
  border: 1px solid var(--ab-trust-border);
  color: #065F46;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

/* Mobile Sticky Bottom-Sheet Checkout Bar (<= 768px) */
.ab-mobile-pdp-sheet {
  display: none;
}

@media (max-width: 991px) {
  .ab-pdp-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .ab-pdp-right {
    position: static;
  }
}

@media (max-width: 768px) {
  .ab-pdp-shell {
    padding: 0 12px;
    margin: 10px auto 150px;
  }
  .ab-pdp-card {
    padding: 14px;
    border-radius: 12px;
  }
  .ab-pdp-hero-head {
    gap: 12px;
  }
  .ab-pdp-icon-frame {
    width: 54px;
    height: 54px;
    border-radius: 12px;
  }
  .ab-pdp-title {
    font-size: 17px;
  }
  .ab-pdp-spec-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .ab-mobile-pdp-sheet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 58px;
    z-index: 1025;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--ab-border);
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
    padding: 9px 14px;
  }
}

/* ==========================================================================
   8. PHASE 2 — BUYER ORDERS, CREDENTIAL VAULT & WALLET TOP-UP
   ========================================================================== */
.ab-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.ab-status-pill.is-completed {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #047857;
}
.ab-status-pill.is-escrow {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
}
.ab-status-pill.is-disputed {
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  color: #BE123C;
}
.ab-status-pill.is-refunded {
  background: #F5F3FF;
  border: 1px solid #DDD6FE;
  color: #6D28D9;
}
.ab-status-pill.is-pending {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #B45309;
}
.ab-status-pill.is-cancelled {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #475569;
}

/* Monospace Credential Vault Box */
.ab-mono-vault-box {
  background: #0F172A;
  border: 1px solid #1E293B;
  border-radius: 12px;
  padding: 12px 14px;
  color: #E2E8F0;
  font-family: var(--ab-font-mono);
  font-size: 12.5px;
  line-height: 1.55;
}
.ab-mono-vault-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 6px;
  word-break: break-all;
}
.ab-mono-vault-line:last-child {
  margin-bottom: 0;
}

/* Wallet Top-Up Switcher & Payment Selector */
.ab-recharge-shell {
  max-width: 1240px;
  margin: 16px auto 80px;
  padding: 0 16px;
}
.ab-recharge-hero {
  background: var(--ab-bg-surface);
  border: 1px solid var(--ab-border);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: var(--ab-shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ab-recharge-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.ab-pay-selector-grid {
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.ab-pay-selector-grid::-webkit-scrollbar { display: none; }

.ab-pay-tab-card {
  flex: 0 0 auto;
  min-width: 185px;
  padding: 10px 13px;
  border-radius: 11px;
  border: 1px solid var(--ab-border);
  background: var(--ab-bg-canvas);
  color: var(--ab-text-heading) !important;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.15s ease;
}
.ab-pay-tab-card:hover {
  border-color: var(--ab-brand);
  background: var(--ab-bg-surface);
}
.ab-pay-tab-card.active {
  border-color: var(--ab-brand);
  background: var(--ab-brand-soft);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.12);
}
.ab-pay-tab-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--ab-trust-soft);
  border: 1px solid var(--ab-trust-border);
  color: #047857;
  white-space: nowrap;
}

.ab-amt-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}
.ab-amt-preset-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--ab-border-strong);
  background: var(--ab-bg-canvas);
  color: var(--ab-text-heading);
  font-family: var(--ab-font-mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}
.ab-amt-preset-btn:hover,
.ab-amt-preset-btn.active {
  border-color: var(--ab-brand);
  background: var(--ab-brand-soft);
  color: var(--ab-brand-hover);
}


/* ==========================================================================
   6. PHASE 3: SELLER DESK, SUPPORT DESK, ORDER CHAT & TICKET WORKSPACES
   ========================================================================== */
.ab-desk-shell {
  font-family: var(--ab-font-sans);
  background: var(--ab-bg-canvas);
  color: var(--ab-text-heading);
  max-width: 100vw;
  overflow-x: hidden;
}

.ab-desk-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ab-desk-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

.ab-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 768px) {
  .ab-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.ab-kpi-tile {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.ab-kpi-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.ab-kpi-value {
  font-family: 'Plus Jakarta Sans', var(--ab-font-sans);
  font-size: 22px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin-top: 6px;
  line-height: 1.15;
}
.ab-kpi-sub {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Sticky Escrow Order Summary Bar (Order Chat, Support Desk, Ticket Detail) */
.ab-escrow-sticky-bar {
  position: sticky;
  top: 0;
  z-index: 25;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.ab-escrow-pill-held {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #047857;
}
.ab-escrow-pill-disputed {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  color: #BE123C;
}

/* Role Badges for Chat Messages */
.ab-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
}
.ab-role-buyer {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
}
.ab-role-seller {
  background: #F0FDFA;
  border: 1px solid #99F6E4;
  color: #0F766E;
}
.ab-role-admin {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  color: #92400E;
}

/* Buyer Support Tickets & Ticket Detail Shopify Polish */
.ticket-detail-page .ticket-chat-wrapper,
.ticket-detail-page .ticket-sidebar-card,
.support-tickets-page .tickets-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  overflow: hidden !important;
}
.ticket-detail-page .ticket-chat-header {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border-bottom: 1px solid #E2E8F0 !important;
  padding: 14px 18px !important;
}
.ticket-detail-page .ticket-chat-header h5 {
  color: #0F172A !important;
  font-family: 'Plus Jakarta Sans', var(--ab-font-sans) !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  margin: 0 !important;
}
.ticket-detail-page .ticket-chat-messages {
  background: #F8FAFC !important;
  padding: 16px !important;
}
.ticket-detail-page .chat-message .chat-bubble {
  border-radius: 12px !important;
  padding: 11px 14px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  max-width: min(85%, 560px) !important;
  word-break: break-word !important;
}
.ticket-detail-page .chat-message.is-user .chat-bubble {
  background: #0F172A !important;
  color: #FFFFFF !important;
  border: 1px solid #0F172A !important;
}
.ticket-detail-page .chat-message.is-user .chat-bubble p,
.ticket-detail-page .chat-message.is-user .chat-sender,
.ticket-detail-page .chat-message.is-user .chat-time {
  color: #F8FAFC !important;
}
.ticket-detail-page .chat-message.is-admin .chat-bubble {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid #99F6E4 !important;
}
@media (max-width: 768px) {
  .ticket-detail-page,
  .support-tickets-page {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  .ticket-detail-page .chat-message .chat-bubble {
    max-width: 88% !important;
  }
}


/* ==========================================================================
   9. MULTI-TONE CONTRAST WELLS, MOBILE PDP & FLOATING PILL CALIBRATION
   ========================================================================== */
.ab-filter-toolbar,
.ab-pcard,
.ab-shops-spotlight,
.ab-cat-dir-card,
.ab-pdp-card,
.ab-checkout-card {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}

.ab-shop-mini-card,
.ab-pdp-spec-item,
.ab-price-summary-box,
.ab-coupon-box,
.ab-qty-stepper {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
}

.ab-cat-tab.active,
button.ab-qpill.active,
.ab-qpill.active {
  background: #0F172A !important;
  border-color: #0F172A !important;
  color: #FFFFFF !important;
}

.ab-mobile-pdp-sheet {
  display: none !important;
}

@media (max-width: 768px) {
  #ab-support-root {
    bottom: 78px !important;
    right: 12px !important;
    transform: scale(0.9) !important;
    transform-origin: bottom right !important;
  }
}
