/**
 * DGBay Omni Search - Amazon-style faceted search layout
 *
 * @package DGBay
 * @since   1.2.0
 */

/* ================================================================
   CSS Custom Properties
   ================================================================ */

:root {
  --omni-top-offset: 0px;
  --omni-header-h: 80px;
}

body.admin-bar {
  --omni-top-offset: 32px;
}

/* ================================================================
   Reset & Page Wrapper
   ================================================================ */

.dgbay-omni-page {
  margin: 0;
  padding: 0 clamp(16px, 2vw, 40px);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: #0f1111;
  min-height: 80vh;
}

.dgbay-omni-page *,
.dgbay-omni-page *::before,
.dgbay-omni-page *::after {
  box-sizing: border-box;
}

/* Prevent Salient theme global a { color } from bleeding into our components */
.dgbay-omni-page a {
  color: inherit;
  text-decoration: none;
}

.dgbay-omni-page .omni-refinement-label,
.dgbay-omni-page .omni-refinement-label .omni-refinement-text {
  color: #0f1111;
}

.dgbay-omni-page .omni-card {
  color: #0f1111;
}

/* ================================================================
   Header Search Bar Override (scoped to Omni page)
   ================================================================ */

/* Override Salient header row to flex layout on Omni page */
body.dgbay-omni-active header#top .container>.row {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap;
}

body.dgbay-omni-active header#top .container>.row>.col.span_3 {
  flex: 1 1 0%;
  width: auto !important;
  float: none !important;
  display: flex;
  align-items: center;
  min-width: 0;
}

body.dgbay-omni-active #logo {
  display: inline-flex !important;
  align-items: center;
  flex-shrink: 0;
}

body.dgbay-omni-active #logo .badge {
  float: none !important;
  margin: 0 0 0 6px !important;
}

body.dgbay-omni-active .dgbay-header-search-wrap {
  flex: 1;
  margin: 5px 24px;
  min-width: 0;
}

body.dgbay-omni-active .dgbay-hs-omni-page .dgbay-header-search-bar,
body.dgbay-omni-active .dgbay-hs-open .dgbay-header-search-bar {
  width: 100% !important;
  max-width: 900px;
  min-width: 0;
}

body.dgbay-omni-active header#top .container>.row>.col.span_9.col_last {
  flex: 0 0 auto;
  width: auto !important;
  float: none !important;
  margin-left: auto;
  position: relative !important;
}

/* Mobile search fallback (hidden on desktop, shown on <900px) */
.dgbay-omni-mobile-search {
  display: none;
}

/* Style switcher toggle (hidden on desktop, shown on <900px) */
.omni-style-switcher {
  display: none;
}

/* ================================================================
   Amazon-Style Search Bar
   ================================================================ */

.omni-searchbar {
  width: 100%;
  position: relative;
}

/* Hide native browser clear button for type="search" inputs */
.omni-searchbar-input::-webkit-search-cancel-button,
.omni-searchbar-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.omni-searchbar-input[type="search"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.omni-searchbar-form {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: none;
  border-radius: 6px;
  overflow: hidden;
  height: 40px;
  transition: box-shadow 0.1s ease;
}

.omni-searchbar-form:focus-within {
  box-shadow: 0 0 0 2px #0787ea, 0 0 0 3px rgba(7, 135, 234, 0.5);
}

/* Category dropdown */
.omni-searchbar-category {
  flex: 0 0 auto;
  max-width: 140px;
  padding: 0 26px 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
  background-color: #f3f3f3;
  border: none;
  border-right: 1px solid #cdcdcd;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 6px 0 0 6px;
  font-family: inherit;
}

.omni-searchbar-category:hover {
  background-color: #dadada;
  color: #111;
}

/* Search input */
.omni-searchbar-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 12px;
  font-size: 15px;
  outline: none;
  color: #0f1111;
  background: transparent;
  font-family: inherit;
  box-shadow: none !important;
}

.omni-searchbar-input:focus {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.omni-searchbar-input::placeholder {
  color: #999;
  font-weight: 400;
}

/* Reset button */
.omni-searchbar-reset {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0 10px;
  cursor: pointer;
  color: #bbb;
  transition: color 0.15s;
}

.omni-searchbar-reset:hover {
  color: #cc0c39;
}

.omni-searchbar-reset svg {
  width: 14px;
  height: 14px;
}

/* Submit button */
.omni-searchbar-submit {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #febd69;
  border: none;
  padding: 0 16px;
  cursor: pointer;
  color: #333;
  transition: background 0.15s;
}

/* Override Salient theme's slightly_rounded button style (specificity 0,3,0 > 0,2,2) */
.omni-searchbar .omni-searchbar-form .omni-searchbar-submit {
  border-radius: 0 !important;
}

.omni-searchbar-submit:hover {
  background: #f3a847;
}

.omni-searchbar-submit svg {
  width: 20px;
  height: 20px;
}

/* ================================================================
   Recent Searches Dropdown
   ================================================================ */

.omni-searchbar-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 10000;
  max-height: 400px;
  overflow-y: auto;
  padding: 6px 0;
}

.omni-searchbar-dropdown.omni-searchbar-dropdown--open {
  display: block;
}

.omni-dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.1s;
  gap: 10px;
}

.omni-dropdown-item:hover {
  background: #f0f6ff;
}

.omni-dropdown-icon {
  flex: 0 0 auto;
  color: #888;
  display: flex;
  align-items: center;
}

.omni-dropdown-text {
  flex: 1;
  font-size: 14px;
  color: #0f1111;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.omni-dropdown-delete {
  flex: 0 0 auto;
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.15s;
}

.omni-dropdown-delete:hover {
  color: #cc0c39;
}

/* Dropdown section labels */
.omni-dropdown-section-label {
  padding: 6px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #888;
  border-top: 1px solid #eee;
  margin-top: 2px;
}

.omni-dropdown-section-label:first-child {
  border-top: none;
  margin-top: 0;
}

/* Keyboard / hover active state */
.omni-dropdown-item--active,
.omni-dropdown-item--active:hover {
  background: #f0f6ff;
}

/* Product suggestion items */
.omni-dropdown-item--suggestion {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.1s;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.omni-dropdown-item--suggestion:hover {
  background: #f0f6ff;
  text-decoration: none;
  color: inherit;
}

.omni-dropdown-item-image {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
}

.omni-dropdown-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.omni-dropdown-item-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.omni-dropdown-item-title {
  font-size: 14px;
  font-weight: 500;
  color: #0f1111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.omni-dropdown-item-title mark {
  background: transparent;
  font-weight: 700;
  color: #0f1111;
}

.omni-dropdown-item-meta {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  margin-top: 1px;
}

.omni-dropdown-item-price {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  color: #0f1111;
  white-space: nowrap;
}

/* ================================================================
   Active Refinement Breadcrumbs
   ================================================================ */

.dgbay-omni-breadcrumbs {
  padding: 4px 0;
  min-height: 4px;
}

.dgbay-omni-breadcrumbs-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.omni-current-refinements-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.omni-current-refinements-item {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.omni-current-refinements-label {
  font-size: 12px;
  font-weight: 600;
  color: #565959;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.omni-current-refinements-category {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #eef5fc;
  border: 1px solid #0787ea;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 13px;
  color: #0f1111;
  font-weight: 500;
}

.omni-current-refinements-delete {
  background: none;
  border: none;
  padding: 0 0 0 4px;
  cursor: pointer;
  color: #888;
  font-size: 14px;
  line-height: 1;
}

.omni-current-refinements-delete:hover {
  color: #c00;
}

.omni-clear-refinements-btn {
  background: none;
  border: 1px solid #d5d9d9;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 13px;
  color: #0787ea;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
  transition: background 0.15s;
}

.omni-clear-refinements-btn:hover {
  background: #f7fafa;
  border-color: #0787ea;
}

.omni-clear-refinements-btn--disabled {
  display: none;
}

/* ================================================================
   Main Layout: Sidebar + Content
   ================================================================ */

.dgbay-omni-layout {
  display: flex;
  gap: 24px;
  padding: 12px 0;
  align-items: flex-start;
}

/* ================================================================
   Sidebar
   ================================================================ */

.dgbay-omni-sidebar {
  width: 270px;
  min-width: 270px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--omni-top-offset, 0px) + var(--omni-header-h, 80px) + 12px);
  max-height: calc(100vh - var(--omni-top-offset, 0px) - var(--omni-header-h, 80px) - 24px);
  overflow-y: auto;
  padding-right: 16px;
  border-right: 1px solid #e3e6e6;
  scrollbar-width: thin;
}

.dgbay-omni-sidebar::-webkit-scrollbar {
  width: 4px;
}

.dgbay-omni-sidebar::-webkit-scrollbar-thumb {
  background: #d5d9d9;
  border-radius: 2px;
}

.dgbay-omni-sidebar-header {
  display: none;
  /* Only shown on mobile/tablet */
}

/* Filter sections */
.dgbay-omni-filter-section {
  padding: 10px 0;
  border-bottom: 1px solid #e3e6e6;
}

.dgbay-omni-filter-section:last-child {
  border-bottom: none;
}

/* Hide filter sections that have no data */
.dgbay-omni-filter-section--empty {
  display: none;
}

.dgbay-omni-filter-heading {
  font-size: 13px;
  font-weight: 700;
  color: #0f1111;
  margin: 0 0 8px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.dgbay-omni-filter-heading::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #555;
  transition: transform 0.2s;
}

.dgbay-omni-filter-section--collapsed .dgbay-omni-filter-heading::after {
  transform: rotate(-90deg);
}

.dgbay-omni-filter-section--collapsed>div,
.dgbay-omni-filter-section--collapsed>.dgbay-omni-flight-group {
  display: none;
}

/* Refinement list styling */
.dgbay-omni-page .omni-refinement-list,
.dgbay-omni-page .omni-refinement-list .omni-refinement-item {
  list-style: none;
  list-style-type: none;
}

.omni-refinement-list {
  margin: 0;
  padding: 0;
}

.omni-refinement-item {
  margin: 0;
  padding: 0;
}

.omni-refinement-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  cursor: pointer;
  font-size: 13px;
  color: #0f1111;
  line-height: 1.4;
}

.omni-refinement-label:hover {
  color: #0379bf;
}

.omni-refinement-item--selected .omni-refinement-label,
.omni-refinement-item--selected .omni-refinement-label .omni-refinement-text {
  font-weight: 600;
  color: #0787ea;
}

.omni-refinement-checkbox {
  accent-color: #0787ea;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.omni-refinement-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.omni-refinement-count {
  font-size: 12px;
  color: #565959;
  flex-shrink: 0;
}

.omni-refinement-count::before {
  content: '(';
}

.omni-refinement-count::after {
  content: ')';
}

.omni-refinement-show-more {
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 12px;
  color: #0787ea;
  cursor: pointer;
}

.omni-refinement-show-more:hover {
  text-decoration: underline;
  color: #0379bf;
}

.omni-refinement-show-more--disabled {
  display: none;
}

/* Searchable refinement input */
.omni-refinement-search input {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid #d5d9d9;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 6px;
  outline: none;
}

/* Hide native browser clear button on filter search inputs */
.omni-refinement-search input[type="search"]::-webkit-search-cancel-button,
.omni-refinement-search input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.omni-refinement-search input:focus {
  border-color: #0787ea;
  box-shadow: 0 0 0 2px rgba(7, 135, 234, 0.15);
}

/* Hide the blue submit button on filter search boxes -- filtering is instant */
.omni-refinement-search button[type="submit"],
.omni-refinement-search .ais-SearchBox-submit {
  display: none !important;
}

/* Range input styling */
.omni-range-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.omni-range-input {
  width: 60px;
  padding: 4px 6px;
  border: 1px solid #d5d9d9;
  border-radius: 4px;
  font-size: 12px;
  text-align: center;
  outline: none;
}

.omni-range-input:focus {
  border-color: #0787ea;
}

.omni-range-separator {
  color: #888;
  font-size: 12px;
}

.omni-range-submit {
  padding: 4px 8px;
  background: #f0f2f2;
  border: 1px solid #d5d9d9;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  color: #0f1111;
}

.omni-range-submit:hover {
  background: #e3e6e6;
}

/* Flight rating group */
.dgbay-omni-flight-group {
  margin-bottom: 8px;
}

.dgbay-omni-flight-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #565959;
  margin-bottom: 4px;
}

/* Sidebar overlay (mobile) */
.dgbay-omni-sidebar-overlay {
  display: none;
}

/* ================================================================
   Main Content
   ================================================================ */

.dgbay-omni-main {
  flex: 1;
  min-width: 0;
}

/* Toolbar */
.dgbay-omni-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 12px;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 16px;
  gap: 10px;
  position: sticky;
  top: var(--omni-header-h, 80px);
  z-index: 50;
  background: #fff;
}

.dgbay-omni-toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 1;
  min-width: 0;
}

.dgbay-omni-toolbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Filter toggle button (hidden on desktop, shown < 900px) */
.dgbay-omni-filter-toggle {
  display: none;
  position: relative;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid #d5d9d9;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: #0f1111;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.dgbay-omni-filter-toggle:hover {
  background: #f0f7fe;
  border-color: #0787ea;
  color: #0787ea;
}

.dgbay-omni-filter-toggle--active {
  background: #e8f4fd;
  border-color: #0787ea;
  color: #0787ea;
}

.dgbay-omni-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #0787ea;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  margin-left: 2px;
}

/* Stats */
.omni-stats {
  font-size: 14px;
  color: #565959;
}

.omni-stats-count {
  font-weight: 700;
  color: #111;
}

.omni-stats-time {
  font-size: 12px;
  color: #999;
}

/* View toggle */
.dgbay-omni-view-toggle {
  display: flex;
  align-items: center;
}

.dgbay-omni-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #d5d9d9;
  background: #fff;
  color: #888;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.dgbay-omni-view-btn:first-child {
  border-radius: 6px 0 0 6px;
}

.dgbay-omni-view-btn:last-child {
  border-radius: 0 6px 6px 0;
  margin-left: -1px;
}

.dgbay-omni-view-btn:hover {
  background: #f5f5f5;
  color: #555;
}

.dgbay-omni-view-btn--active {
  background: #0787ea;
  color: #fff;
  border-color: #0787ea;
  z-index: 1;
  position: relative;
}

.dgbay-omni-view-btn--active:hover {
  background: #0670c4;
  color: #fff;
}

/* Sort & hits per page dropdowns */
.dgbay-omni-dropdown-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.omni-sort,
.omni-hits-per-page {
  display: flex;
  align-items: center;
  gap: 6px;
}

.omni-dropdown-label {
  font-size: 12px;
  font-weight: 600;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.omni-sort-select,
.omni-hpp-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 32px 7px 12px;
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: #f7f7f7 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='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
  color: #0f1111;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, background-color 0.15s;
}

.omni-sort-select:hover,
.omni-hpp-select:hover {
  background-color: #fff;
  border-color: #bbb;
}

.omni-sort-select:focus,
.omni-hpp-select:focus {
  border-color: #0787ea;
  background-color: #fff;
  box-shadow: 0 0 0 2px rgba(7, 135, 234, 0.15);
}

/* ================================================================
   Hit Cards Grid
   ================================================================ */

.omni-hits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.omni-hits-item {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Card */
.omni-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e3e6e6;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #0f1111;
  transition: border-color 0.15s, box-shadow 0.15s;
  height: 100%;
}

.omni-card:hover {
  border-color: #565959;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Card image */
.omni-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #f7f8f8;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.omni-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.omni-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #e3e6e6;
}

.omni-card-image-placeholder span {
  font-size: 36px;
  font-weight: 700;
  color: #888;
}

/* Out of stock badge */
.omni-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.omni-card-badge--oos {
  background: #fef0f0;
  color: #cc0c39;
  border: 1px solid #fbb;
}

/* Card body */
.omni-card-body {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

/* Type badge */
.omni-card-type {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 3px;
  background: #f0f2f2;
  color: #565959;
  width: fit-content;
}

/* Hide the PRODUCTS badge since nearly all results are products */
.omni-card-type--product {
  display: none;
}

.omni-card-type--disc {
  background: #d4edda;
  color: #155724;
}

.omni-card-type--manufacturer {
  background: #cce5ff;
  color: #004085;
}

.omni-card-type--pro {
  background: #e8daef;
  color: #6c3483;
}

.omni-card-type--post {
  background: #f5f5f5;
  color: #555;
}

.omni-card-type--page {
  background: #f5f5f5;
  color: #555;
}

/* Title */
.omni-card-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #0f1111;
}

.omni-card:hover .omni-card-title {
  color: #0787ea;
  text-decoration: underline;
}

.omni-card-title mark {
  background: #fef3cd;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

/* Sub-info */
.omni-card-manufacturer {
  font-size: 12px;
  color: #565959;
  margin: 0;
}

.omni-card-manufacturer mark {
  background: #fef3cd;
  color: inherit;
}

/* Combined info line: category + vendor */
.omni-card-info-line {
  font-size: 12px;
  color: #565959;
  margin: 0;
  line-height: 1.4;
}

.omni-card-info-line .omni-card-vendor-name {
  color: #0787ea;
}

/* Legacy separate category / vendor (kept for backward compat) */
.omni-card-category {
  font-size: 12px;
  color: #565959;
  margin: 0;
}

.omni-card-vendor {
  font-size: 12px;
  color: #565959;
  margin: 0;
}

.omni-card-plastic {
  font-size: 11px;
  color: #888;
  margin: 0;
}

/* Price */
.omni-card-price {
  font-size: 18px;
  font-weight: 700;
  color: #B12704;
  margin: 4px 0 0;
}

/* Flight ratings */
.omni-card-flight {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.omni-fr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.omni-fr--speed {
  background: #e74c3c;
}

.omni-fr--glide {
  background: #3498db;
}

.omni-fr--turn {
  background: #2ecc71;
}

.omni-fr--fade {
  background: #9b59b6;
}

/* Meta */
.omni-card-meta {
  font-size: 12px;
  color: #888;
  margin: 0;
}

/* Tags */
.omni-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
  padding-top: 6px;
}

.omni-card-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  background: #f0f2f2;
  color: #565959;
}

.omni-card-tag--more {
  background: transparent;
  color: #888;
  padding: 3px 4px;
}

/* ================================================================
   List View Layout
   ================================================================ */

.omni-hits--list-view .omni-hits-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.omni-hits--list-view .omni-card {
  flex-direction: row;
  border-radius: 0;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: none;
}

.omni-hits--list-view .omni-card:hover {
  box-shadow: none;
  background: #fafbfc;
}

.omni-hits--list-view .omni-hits-item {
  border-radius: 0;
}

.omni-hits--list-view .omni-card-image {
  width: 140px;
  min-width: 140px;
  height: auto;
  min-height: 140px;
  border-radius: 0;
}

.omni-hits--list-view .omni-card-image img {
  border-radius: 0;
}

.omni-hits--list-view .omni-card-body {
  flex: 1;
  padding: 14px 18px;
  min-width: 0;
}

.omni-hits--list-view .omni-card-title {
  font-size: 15px;
}

.omni-hits--list-view .omni-card-flight {
  margin-top: 6px;
}

.omni-hits--list-view .omni-card-tags {
  flex-direction: row;
}

/* Empty states */
.omni-empty-state,
.omni-no-results {
  text-align: center;
  padding: 60px 20px;
  color: #565959;
}

.omni-empty-state h3,
.omni-no-results h3 {
  font-size: 20px;
  font-weight: 500;
  color: #0f1111;
  margin: 0 0 8px;
}

.omni-empty-state p,
.omni-no-results p {
  font-size: 14px;
  margin: 0;
}

/* ================================================================
   Pagination
   ================================================================ */

.omni-pagination {
  padding: 24px 0;
}

/* Hide pagination when there's only one page */
.omni-pagination--single-page {
  display: none;
}

.omni-pagination-list {
  display: flex;
  justify-content: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.omni-pagination-item {
  margin: 0;
}

.omni-pagination-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d5d9d9;
  border-radius: 4px;
  font-size: 14px;
  color: #0f1111;
  text-decoration: none;
  transition: background 0.15s;
}

.omni-pagination-link:hover {
  background: #f7fafa;
  border-color: #0787ea;
}

.omni-pagination-item--active .omni-pagination-link {
  background: #0787ea;
  border-color: #0787ea;
  color: #fff;
  font-weight: 700;
}

.omni-pagination-item--disabled .omni-pagination-link {
  color: #d5d9d9;
  pointer-events: none;
}

/* ================================================================
   Responsive: Ultra-wide (> 2560px)
   ================================================================ */

@media (min-width: 2561px) {
  .dgbay-omni-sidebar {
    width: 300px;
    min-width: 300px;
  }
}

/* ================================================================
   Responsive: Tablet / Pixel Fold Unfolded (< 900px)
   ================================================================ */

@media (max-width: 900px) {
  .dgbay-omni-page {
    padding: 0 12px;
  }

  /* Sidebar becomes a drawer */
  .dgbay-omni-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    min-width: 280px;
    height: 100vh;
    max-height: 100vh;
    background: #fff;
    z-index: 1000;
    border-right: 1px solid #e3e6e6;
    padding: 0 16px 16px;
    transition: left 0.3s ease;
    box-shadow: none;
  }

  .dgbay-omni-sidebar--open {
    left: 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
  }

  .dgbay-omni-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #e3e6e6;
    margin-bottom: 8px;
  }

  .dgbay-omni-sidebar-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
  }

  .dgbay-omni-sidebar-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #565959;
    padding: 4px;
    line-height: 1;
  }

  .dgbay-omni-sidebar-close:hover {
    color: #0f1111;
  }

  /* Overlay */
  .dgbay-omni-sidebar-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
  }

  .dgbay-omni-sidebar-overlay--visible {
    opacity: 1;
    visibility: visible;
  }

  body.dgbay-omni-sidebar-active {
    overflow: hidden;
  }

  /* Show filter toggle button */
  .dgbay-omni-filter-toggle {
    display: flex;
  }

  /* Grid adjustments -- auto-fill handles this but set a smaller min */
  .omni-hits-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
  }

  .omni-card-body {
    padding: 8px;
  }

  .omni-card-title {
    font-size: 13px;
  }

  .omni-card-price {
    font-size: 16px;
  }

  /* Toolbar wrapping */
  .dgbay-omni-toolbar {
    padding: 8px 10px;
    margin-bottom: 10px;
    gap: 8px;
    flex-wrap: wrap;
    position: sticky;
    top: var(--omni-header-h, 80px);
    border-bottom: 1px solid #e8e8e8;
    background: #fff;
  }

  .omni-dropdown-label {
    display: none;
  }

  .dgbay-omni-view-btn {
    width: 30px;
    height: 30px;
  }

  .dgbay-omni-view-btn svg {
    width: 16px;
    height: 16px;
  }

  .omni-sort-select,
  .omni-hpp-select {
    padding: 6px 28px 6px 10px;
    font-size: 12px;
  }

  /* List view on mobile: smaller image */
  .omni-hits--list-view .omni-card-image {
    width: 110px;
    min-width: 110px;
    min-height: 110px;
  }

  /* ================================================================
     MOBILE SEARCH BAR — Shared rules (always active)
     ================================================================ */

  /* Hide desktop header search on mobile */
  .dgbay-omni-header-search {
    display: none !important;
  }

  /* Show searchbox when JS moves it into the mobile container */
  .dgbay-omni-mobile-search #dgbay-omni-searchbox {
    display: block !important;
  }

  /* Hide category dropdown on mobile */
  .omni-searchbar-category {
    display: none;
  }

  /* 16px prevents iOS auto-zoom on input focus */
  .dgbay-omni-mobile-search .omni-searchbar-input {
    font-size: 16px;
  }

  /* ================================================================
     MOBILE SEARCH BAR OPTIONS
     Switched live via .omni-search-a / .omni-search-b / .omni-search-c
     class on #dgbay-omni. Toggle UI is rendered by dgbay-omni.js.
     ================================================================ */

  /* --- Option A: Fixed Top Bar (Amazon Mobile) -------------------- */

  .omni-search-a .dgbay-omni-mobile-search {
    display: block;
    position: fixed;
    top: calc(var(--omni-top-offset, 0px) + var(--omni-header-h, 80px));
    left: 0;
    right: 0;
    z-index: 200;
    background: #fff;
    padding: 8px 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .omni-search-a > .dgbay-omni-breadcrumbs {
    padding-top: 60px;
  }

  .omni-search-a .dgbay-omni-mobile-search .omni-searchbar-form {
    height: 44px;
    border: 2px solid #0787ea;
    border-radius: 8px;
  }

  .omni-search-a .dgbay-omni-mobile-search .omni-searchbar-form:focus-within {
    border-color: #0670c4;
    box-shadow: 0 0 0 3px rgba(7, 135, 234, 0.25);
  }

  .omni-search-a .dgbay-omni-mobile-search .omni-searchbar .omni-searchbar-form .omni-searchbar-submit {
    background: #0787ea;
    color: #fff;
    padding: 0 14px;
    border-radius: 0 6px 6px 0 !important;
  }

  .omni-search-a .dgbay-omni-mobile-search .omni-searchbar-submit:hover {
    background: #0670c4;
  }

  .omni-search-a .dgbay-omni-mobile-search .omni-searchbar-submit svg {
    stroke: #fff;
  }

  /* --- Option B: Floating Bottom Pill (iOS style) ----------------- */

  .omni-search-b .dgbay-omni-mobile-search {
    display: block;
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    top: auto;
    left: 16px;
    right: 16px;
    z-index: 1000;
    padding: 0;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
  }

  .omni-search-b > .dgbay-omni-breadcrumbs {
    padding-top: 0;
  }

  .omni-search-b .dgbay-omni-mobile-search .omni-searchbar-form {
    height: 48px;
    border: none;
    border-radius: 24px;
    background: transparent;
    padding-left: 4px;
  }

  .omni-search-b .dgbay-omni-mobile-search .omni-searchbar-form:focus-within {
    box-shadow: none;
  }

  .omni-search-b .dgbay-omni-mobile-search .omni-searchbar-input {
    padding: 0 16px;
  }

  .omni-search-b .dgbay-omni-mobile-search .omni-searchbar-input::placeholder {
    color: #8e8e93;
  }

  .omni-search-b .dgbay-omni-mobile-search .omni-searchbar .omni-searchbar-form .omni-searchbar-submit {
    background: #0787ea;
    color: #fff;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 4px;
    flex: 0 0 40px;
  }

  .omni-search-b .dgbay-omni-mobile-search .omni-searchbar-submit:hover {
    background: #0670c4;
  }

  .omni-search-b .dgbay-omni-mobile-search .omni-searchbar-submit svg {
    stroke: #fff;
    width: 18px;
    height: 18px;
  }

  .omni-search-b .dgbay-omni-mobile-search .omni-searchbar-reset {
    padding: 0 6px;
  }

  .omni-search-b .dgbay-omni-mobile-search .omni-searchbar-dropdown {
    bottom: calc(100% + 8px);
    top: auto;
    border-radius: 16px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    max-height: 50vh;
  }

  /* --- Option C: Embedded Compact Bar (Google style) -------------- */

  .omni-search-c .dgbay-omni-mobile-search {
    display: block;
    padding: 8px 0 4px;
  }

  .omni-search-c > .dgbay-omni-breadcrumbs {
    padding-top: 0;
  }

  .omni-search-c .dgbay-omni-mobile-search .omni-searchbar-form {
    height: 36px;
    background: #f1f3f4;
    border: 1px solid transparent;
    border-radius: 24px;
  }

  .omni-search-c .dgbay-omni-mobile-search .omni-searchbar-form:focus-within {
    background: #fff;
    border-color: #0787ea;
    box-shadow: 0 1px 6px rgba(7, 135, 234, 0.2);
  }

  .omni-search-c .dgbay-omni-mobile-search .omni-searchbar-input {
    padding: 0 14px;
    color: #202124;
  }

  .omni-search-c .dgbay-omni-mobile-search .omni-searchbar-input::placeholder {
    color: #80868b;
    font-size: 14px;
  }

  .omni-search-c .dgbay-omni-mobile-search .omni-searchbar .omni-searchbar-form .omni-searchbar-submit {
    background: transparent;
    color: #0787ea;
    padding: 0 12px;
    border-radius: 0 24px 24px 0 !important;
  }

  .omni-search-c .dgbay-omni-mobile-search .omni-searchbar-submit:hover {
    background: rgba(7, 135, 234, 0.08);
  }

  .omni-search-c .dgbay-omni-mobile-search .omni-searchbar-submit svg {
    stroke: #0787ea;
    width: 18px;
    height: 18px;
  }

  .omni-search-c .dgbay-omni-mobile-search .omni-searchbar-reset {
    padding: 0 6px;
  }

  .omni-search-c .dgbay-omni-mobile-search .omni-searchbar-reset svg {
    width: 12px;
    height: 12px;
  }

  /* --- Style Switcher Toggle UI ----------------------------------- */

  .omni-style-switcher {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 9999;
    display: flex;
    gap: 0;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  }

  .omni-search-b .omni-style-switcher {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .omni-style-switcher button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  }

  .omni-style-switcher button:hover {
    color: #fff;
  }

  .omni-style-switcher button.active {
    background: #0787ea;
    color: #fff;
  }
}

/* ================================================================
   Responsive: Small Mobile (< 480px) - Pixel Fold Folded
   ================================================================ */

@media (max-width: 479px) {
  .dgbay-omni-page {
    padding: 0 8px;
  }

  .omni-hits-grid {
    grid-template-columns: 1fr;
  }

  .omni-card {
    flex-direction: row;
  }

  .omni-card-image {
    width: 140px;
    min-width: 140px;
    aspect-ratio: auto;
    height: 140px;
  }

  .omni-card-image img {
    padding: 4px;
  }

  .omni-card-body {
    padding: 10px;
  }

  .omni-card-price {
    font-size: 16px;
  }

  .dgbay-omni-toolbar-left {
    width: 100%;
  }

  .dgbay-omni-toolbar-right {
    width: 100%;
    justify-content: flex-end;
  }

  .omni-stats {
    font-size: 13px;
  }

  .dgbay-omni-filter-toggle {
    font-size: 13px;
    padding: 6px 12px;
  }

  /* List view on small mobile: even smaller image */
  .omni-hits--list-view .omni-card-image {
    width: 100px;
    min-width: 100px;
    min-height: 100px;
  }

  .omni-fr {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .omni-search-b .dgbay-omni-mobile-search {
    left: 10px;
    right: 10px;
  }
}