/* Africa Broadcast Store — Self-Hosted Fullscreen Search Overlay (Site Green Theme #008751) */
.abs-s-lock {
  overflow: hidden !important;
}

#abs-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10, 36, 24, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1e293b;
  opacity: 0;
  transition: opacity 0.16s ease;
}

#abs-search-overlay.abs-s-open {
  display: flex;
  opacity: 1;
}

.abs-s-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow: hidden;
}

/* Sticky Top Bar */
.abs-s-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #008751;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 59, 35, 0.22);
  position: relative;
  flex-shrink: 0;
}

.abs-s-brand-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.94);
}

.abs-s-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  max-width: 780px;
}

.abs-s-input-icon {
  position: absolute;
  left: 14px;
  color: #008751;
  font-size: 16px;
  pointer-events: none;
  display: flex;
  align-items: center;
}

#abs-s-input {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 42px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-size: 16px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#abs-s-input:focus {
  border-color: #66c29d;
  box-shadow: 0 0 0 3px rgba(102, 194, 157, 0.40);
}

.abs-s-clear-btn {
  position: absolute;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.abs-s-clear-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.abs-s-clear-btn.abs-s-visible {
  display: flex;
}

.abs-s-close-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.abs-s-close-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.abs-s-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: transparent;
  overflow: hidden;
}

.abs-s-progress.abs-s-loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #a7f3d0, #ffffff, #a7f3d0, transparent);
  animation: abs-s-slide 0.9s infinite linear;
}

@keyframes abs-s-slide {
  0% { left: -40%; }
  100% { left: 100%; }
}

/* Sub-toolbar (stats + sort + mobile filters trigger) */
.abs-s-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: #f5faf7;
  border-bottom: 1px solid #d9ece2;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.abs-s-stats {
  font-size: 13.5px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 8px;
}

.abs-s-stats strong {
  color: #003b23;
}

.abs-s-speed {
  font-size: 11.5px;
  color: #94a3b8;
}

.abs-s-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.abs-s-mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #b8d8c7;
  border-radius: 8px;
  background: #ffffff;
  color: #003b23;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.abs-s-filter-badge {
  background: #008751;
  color: #ffffff;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
}

.abs-s-sort {
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #1e293b;
  font-size: 13px;
  cursor: pointer;
}

.abs-s-sort:focus {
  outline: none;
  border-color: #008751;
}

/* Body: Sidebar + Main Results */
.abs-s-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.abs-s-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: #f5faf7;
  border-right: 1px solid #d9ece2;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.abs-s-sidebar-head {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #d9ece2;
}

.abs-s-facet-group {
  background: #ffffff;
  border: 1px solid #dfece5;
  border-radius: 10px;
  padding: 12px;
}

.abs-s-facet-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #003b23;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.abs-s-facet-search {
  width: 100%;
  padding: 6px 10px;
  margin-bottom: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12.5px;
  outline: none;
}

.abs-s-facet-search:focus {
  border-color: #008751;
}

.abs-s-facet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.abs-s-facet-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #334155;
  transition: background 0.12s;
  user-select: none;
}

.abs-s-facet-item label:hover {
  background: #ebf7f1;
}

.abs-s-facet-item input[type="checkbox"] {
  accent-color: #008751;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.abs-s-facet-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.abs-s-facet-cnt {
  font-size: 11.5px;
  color: #005c37;
  background: #ebf7f1;
  padding: 1px 6px;
  border-radius: 999px;
}

.abs-s-show-more {
  margin-top: 8px;
  background: none;
  border: none;
  color: #008751;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 0;
}

.abs-s-show-more:hover {
  color: #005c37;
  text-decoration: underline;
}

.abs-s-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.abs-s-price-input {
  width: 100%;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12.5px;
}

.abs-s-price-input:focus {
  outline: none;
  border-color: #008751;
}

.abs-s-price-apply {
  margin-top: 8px;
  width: 100%;
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  background: #008751;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.abs-s-price-apply:hover {
  background: #005c37;
}

.abs-s-price-hint {
  font-size: 11px;
  color: #64748b;
  margin-top: 6px;
}

/* Main Content Area */
.abs-s-main {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px 40px;
  background: #ffffff;
}

/* Active Chips */
.abs-s-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.abs-s-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ebf7f1;
  border: 1px solid #b8e0cb;
  color: #005c37;
  font-size: 12.5px;
  font-weight: 600;
}

.abs-s-chip button {
  background: none;
  border: none;
  color: #005c37;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.abs-s-chip-clear {
  background: #fee2e2;
  color: #b91c1c;
  border: none;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

/* Promo Banners */
.abs-s-banners {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.abs-s-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 59, 35, 0.16);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.abs-s-banner:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  color: #ffffff;
}

.abs-s-banner-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  padding: 4px;
  flex-shrink: 0;
}

.abs-s-banner-text {
  flex: 1;
}

.abs-s-banner-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 2px 0;
}

.abs-s-banner-sub {
  font-size: 13px;
  opacity: 0.92;
  margin: 0;
}

.abs-s-banner-cta {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.95);
  color: #003b23;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* Zero-query Welcome Sections */
.abs-s-welcome-block {
  margin-bottom: 22px;
}

.abs-s-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #005c37;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.abs-s-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 1px solid #d9ece2;
  border-radius: 999px;
  background: #f5faf7;
  color: #1e293b;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.14s ease;
}

.abs-s-pill:hover {
  background: #ebf7f1;
  border-color: #008751;
  color: #005c37;
}

.abs-s-pill-del {
  font-size: 14px;
  color: #94a3b8;
  margin-left: 2px;
}

.abs-s-pill-del:hover {
  color: #dc2626;
}

/* Results Grid */
.abs-s-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1360px) {
  .abs-s-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .abs-s-brand-mini {
    display: none;
  }
  .abs-s-mobile-filter-btn {
    display: inline-flex;
  }
  .abs-s-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85vw;
    max-width: 320px;
    z-index: 100005;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
  }
  .abs-s-sidebar.abs-s-drawer-open {
    transform: translateX(0);
  }
  .abs-s-sidebar-head {
    display: flex;
  }
  .abs-s-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .abs-s-main {
    padding: 14px 12px 32px;
  }
  .abs-s-header {
    padding: 10px 12px;
  }
  .abs-s-subbar {
    padding: 8px 12px;
  }
}

@media (max-width: 400px) {
  .abs-s-grid {
    grid-template-columns: 1fr;
  }
}

/* Product Card */
.abs-s-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.abs-s-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 59, 35, 0.11);
  border-color: #008751;
  color: inherit;
  text-decoration: none;
}

.abs-s-card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  z-index: 2;
}

.abs-s-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 5px;
  color: #ffffff;
}

.abs-s-badge-promo { background: #dc2626; }
.abs-s-badge-kit { background: #005c37; }
.abs-s-badge-new { background: #008751; }
.abs-s-badge-pin { background: #d97706; }

.abs-s-img-box {
  height: 170px;
  padding: 12px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.abs-s-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.abs-s-card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 5px;
}

.abs-s-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.abs-s-brand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #008751;
  letter-spacing: 0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.abs-s-mpn {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.abs-s-title {
  font-size: 13.5px;
  line-height: 1.38;
  color: #334155;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.9em;
}

.abs-s-card mark {
  background: #d1fae5;
  color: #003b23;
  padding: 0 2px;
  border-radius: 2px;
}

.abs-s-avail {
  font-size: 11.5px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.abs-s-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
}

.abs-s-dot.abs-s-instock {
  background: #008751;
}

.abs-s-price-box {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.abs-s-price-orig {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  display: block;
}

.abs-s-price {
  font-size: 16px;
  font-weight: 800;
  color: #b91c1c;
  line-height: 1.2;
}

.abs-s-price.abs-s-price-private {
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
}

.abs-s-vat {
  font-size: 11px;
  color: #64748b;
  margin-left: 4px;
  font-weight: 500;
}

/* Load More & Empty State */
.abs-s-load-wrap {
  text-align: center;
  margin-top: 24px;
}

.abs-s-load-btn {
  padding: 10px 26px;
  border: 1px solid #008751;
  border-radius: 10px;
  background: #ffffff;
  color: #008751;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.abs-s-load-btn:hover {
  background: #008751;
  color: #ffffff;
}

.abs-s-empty {
  text-align: center;
  padding: 48px 20px;
  color: #475569;
}

.abs-s-empty h3 {
  font-size: 19px;
  color: #0f172a;
  margin: 0 0 8px 0;
}

/* Mobile Drawer Backdrop */
.abs-s-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 36, 24, 0.45);
  z-index: 100004;
}

.abs-s-drawer-backdrop.abs-s-show {
  display: block;
}

/* Preview indicator pill */
.abs-s-preview-pill {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 99990;
  background: #003b23;
  color: #f8fafc;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  gap: 8px;
}

.abs-s-preview-pill a {
  color: #6ee7b7;
  text-decoration: underline;
}
