#searchjet-searchbox-container{
  position: relative;
}
#searchjet-form {
  max-width: 500px;
  margin: 1.5rem auto;
  font-family: Arial, sans-serif;
}

#searchjet-query {
  width: 100%;
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

#searchjet-wrapper{
  position: relative;
}

#searchjet-results {
  margin-top: 12px;
  background: #fff;
  position: absolute;
  z-index: 9999;
  padding: 0;
  width: 100%;
}

#searchjet-results .searchjet-hit{
    border-radius: 0;
    margin-bottom: 0;
}

.searchjet-hit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  border-left: 1px solid #eee;
  border-top: 1px solid #eee;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s;
  margin: 10px !important;
}

.searchjet-hit:last-child {
  border-bottom: none;
}

.searchjet-hit:hover {
	border: 1px solid #b3c9e8;
  cursor: pointer;
  background-color: #f8f9fa00 !important;
}

.searchjet-hit a{
  font-size: 17px;
  text-decoration: none;
  color: #303030;
}

.searchjet-see-all {
  padding: 12px 16px;
  text-align: right;
  font-weight: bold;
  background-color: #f9f9f9;
  border-top: 1px solid #eee;
}

.searchjet-see-all a {
  text-decoration: none;
  font-size: 15px;
  color: #0073aa;
}
body.search.searchjet-js-mode main .wp-block-query {
  display: none !important;
}

#searchjet-page-results {
  margin: 2rem auto;
  max-width: 800px;
  padding: 0 1rem;
  font-family: Arial, sans-serif;
}

#searchjet-page-results .searchjet-hit {
  padding: 16px 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 16px;
  background-color: #fff;
}

#searchjet-page-results .searchjet-hit h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
}

#searchjet-page-results .searchjet-hit p {
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.5;
}

#searchjet-page-results .searchjet-pagination {
  text-align: center;
  margin-top: 2rem;
}

#searchjet-page-results .searchjet-pagination a {
  display: inline-block;
  margin: 0 6px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  color: #0073aa;
}

#searchjet-page-results .searchjet-pagination a:hover,
#searchjet-page-results .searchjet-pagination a:focus {
  background-color: #0073aa;
  color: #fff;
}


/* Overall Container - Merged styles */
#searchjet-results {
  font-family: var(--searchjet-font-family), Arial, sans-serif;
  width: 350px;
  border: 1px solid var(--searchjet-border-color);
  border-radius: var(--searchjet-border-radius);
  overflow: hidden;
  box-shadow: var(--searchjet-shadow);
  background-color: var(--searchjet-background);
}

/* Section Titles (Products, Pages) */
.searchjet-products,
.searchjet-page-section {
  padding: 15px 20px 0;
  color: #555;
  font-weight: bold;
  font-size: 1.1em;
}

h2.searchjet-product-title,
h2.searchjet-page-title {
  margin: 0;
  font-size: 1em;
  color: #333;
  font-weight: normal;
}

/* Product Section */
.searchjet-products {
  border-bottom: 1px solid #eee;
  margin-bottom: 10px;
}

.searchjet-product {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  gap: 15px;
  cursor: pointer;
}

.searchjet-product:hover {
  background-color: #f5f5f5;
}

.searchjet-product img {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  object-fit: cover;
}

.searchjet-product-detail {
  flex-grow: 1;
}

.searchjet-product-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}

.searchjet-product-price {
  font-weight: bold;
  color: #333;
  font-size: 1em;
  margin-left: 10px;
  white-space: nowrap;
}

.searchjet-product-excerpt {
  font-size: 0.85em;
  color: #777;
  line-height: 1.4;
  margin: 0;
}

/* Page Section */
.searchjet-page {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  gap: 15px;
  cursor: pointer;
}

.searchjet-page:hover {
  background-color: #f5f5f5;
}

.searchjet-page svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: #555;
}

.searchjet-page-description {
  flex-grow: 1;
}

.searchjet-page-description p {
  font-size: 0.85em;
  color: #777;
  line-height: 1.4;
  margin: 0;
}

/* Specific styling for the section titles "Products" and "Pages" */
.searchjet-results > div:nth-child(2),
.searchjet-results > div:nth-child(4) {
  padding: 15px 20px 0;
  color: #555;
  font-weight: bold;
  font-size: 1em;
  margin-bottom: 5px;
}

/* Adjusting the SVG size and fill for better resemblance */
.searchjet-page svg {
  width: 20px;
  height: 20px;
  fill: #666;
}


:root {
  --searchjet-primary-color: #007aff;
  --searchjet-background: #ffffff;
  --searchjet-border-color: #e5e5e5;
  --searchjet-text-color: #1d1d1f;
  --searchjet-text-secondary: #6e6e73;
  --searchjet-hover-bg: #f5f5f7;
  --searchjet-selected-bg: var(--searchjet-primary-color);
  --searchjet-border-radius: 8px;
  --searchjet-shadow: 0 4px 12px rgba(0,0,0,0.1);
  --searchjet-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --searchjet-font-size: 14px;
  --searchjet-spacing: 16px;
}

/* Main Results Container */
#searchjet-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--searchjet-background);
  border: 1px solid var(--searchjet-border-color);
  border-radius: var(--searchjet-border-radius);
  box-shadow: var(--searchjet-shadow);
  z-index: 1000;
  margin-top: 8px;
  max-height: 70vh;
  overflow-y: auto;
  font-family: var(--searchjet-font-family);
  font-size: var(--searchjet-font-size);
}

/* Group Titles (e.g., "Products", "Pages") */
.searchjet-group-title {
  font-size: var(--searchjet-font-size);
  font-weight: 600;
  color: var(--searchjet-text-secondary);
  padding: var(--searchjet-spacing) var(--searchjet-spacing) calc(var(--searchjet-spacing) / 2) var(--searchjet-spacing);
  margin: 0;
  text-transform: capitalize;
}

/* General Hit Styling */
.searchjet-hit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--searchjet-text-color);
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.searchjet-hit:hover {
  background-color: var(--searchjet-hover-bg);
  text-decoration: none;
}

.searchjet-hit:visited {
  color: var(--searchjet-text-color);
}

.searchjet-hit:focus {
  outline: 2px solid var(--searchjet-primary-color);
  outline-offset: -2px;
}

.hit-content {
  flex-grow: 1;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.hit-title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hit-description {
  font-size: 14px;
  color: #949494;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  line-height: 1.3;
  margin-bottom: 4px;
}

/* Product-specific styles */
.product-hit .product-image {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  background-color: #f5f5f7;
  flex-shrink: 0;
}

/* Default product image when no thumbnail */
.product-hit .product-image[src*="data:image/svg+xml"] {
  object-fit: cover;
  opacity: 0.7;
}

.hit-price {
  font-size: 12px;
  font-weight: 400;
  line-height: 20px;
  color: #002e7c;
  margin-top: 2px;
  background-color: #d0d9fe;
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: 20px;
}

.hit-stock.onbackorder {
    color: #fff;
    background-color: black;
}

.hit-category {
  font-size: 12px;
  line-height: 20px;
  font-weight: 400;
  color: #e9840d;
  margin-top: 2px;
  background-color: #f9dab5;
  padding: 2px 6px;
  border-radius: 20px;
}

.hit-rating {
  font-size: 12px;
  color: #ff9500;
  margin-top: 2px;
}

.hit-stock {
  font-size: 12px;
  line-height: 20px;
  font-weight: 400;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 2px;
  display: inline-block;
  border-radius: 20px;
}

.hit-stock.instock {
  background-color: #e8f5e8;
  color: #2d7d32;
}

.hit-stock.outofstock {
  background-color: #ffeaea;
  color: #d32f2f;
}

/* Page-specific styles */
.page-hit .page-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f7;
  border-radius: 4px;
  flex-shrink: 0;
}

.page-hit .page-icon svg {
  width: 20px;
  height: 20px;
  fill: #8a8a8e;
}

/* 'See all results' link */
.searchjet-see-all {
  padding: 12px 16px;
  border-top: 1px solid #e5e5e5;
  text-align: center;
}

.searchjet-see-all a {
  font-size: 15px;
  color: #007aff;
  text-decoration: none;
  font-weight: 500;
}

.searchjet-no-results {
    padding: 16px;
    color: #6e6e73;
}

/* Added spacing fallback when thumbnail is hidden */
.searchjet-hit.no-thumbnail {
  padding-left: 20px;
}

/* Utility class for vertical spacing control */
.hit-details > *:not(:last-child) {
  margin-bottom: 4px;
}

/* Responsive styles for small screens */
@media (max-width: 480px) {
  #searchjet-results {
    max-height: 60vh;
    margin-top: 4px;
  }

  .searchjet-hit {
    padding: 12px;
    gap: 8px;
  }

  .product-hit .product-image,
  .page-hit .page-icon {
    width: 40px;
    height: 40px;
  }

  .hit-details {
    margin: 0;
  }

  .hit-price {
    font-size: 14px;
  }

  .searchjet-group-title {
    padding: 12px 12px 6px 12px;
    font-size: 13px;
  }
}
/* Sale and Regular Price Styling */
.hit-price .sale-price {
  color: #d10000;
  font-weight: 600;
  margin-right: 6px;
}

.hit-price .regular-price {
  text-decoration: line-through;
  color: #888;
  font-size: 90%;
}

/* Loading and Error States */
.searchjet-loading {
  padding: 16px;
  text-align: center;
  color: #6e6e73;
  font-style: italic;
}

.searchjet-error {
  padding: 16px;
  text-align: center;
  color: #d10000;
  background-color: #ffeaea;
  border-radius: 4px;
  margin: 8px;
}

/* Keyboard Navigation */
.searchjet-hit.selected {
  background-color: var(--searchjet-selected-bg) !important;
  color: white;
}

.searchjet-hit.selected .hit-title,
.searchjet-hit.selected .hit-description,
.searchjet-hit.selected .hit-price {
  color: white;
}

/* Theme Integration */
.searchjet-theme-dark {
  --searchjet-background: #1c1c1e;
  --searchjet-text-color: #ffffff;
  --searchjet-text-secondary: #8e8e93;
  --searchjet-border-color: #38383a;
  --searchjet-hover-bg: #2c2c2e;
}

.searchjet-theme-minimal {
  --searchjet-border-radius: 0;
  --searchjet-shadow: 0 1px 3px rgba(0,0,0,0.1);
  --searchjet-spacing: 12px;
}

.searchjet-theme-rounded {
  --searchjet-border-radius: 16px;
}

/* Focus States for Accessibility */
.searchjet-hit:focus {
  outline: 2px solid #007aff;
  outline-offset: -2px;
}

/* Loading Animation */
.searchjet-loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #e5e5e5;
  border-top: 2px solid #007aff;
  border-radius: 50%;
  animation: searchjet-spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes searchjet-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Admin UI Styling */
.searchjet-color-input {
  width: 60px;
  height: 40px;
  border: 1px solid var(--searchjet-border-color);
  border-radius: 4px;
  cursor: pointer;
}

.searchjet-checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.searchjet-checkbox-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.searchjet-checkbox-option:hover {
  background-color: #f5f5f7;
}

.searchjet-checkbox-option input[type="checkbox"] {
  margin: 0;
}

/* Dynamic CSS Injection */
.searchjet-custom-styles {
  /* Dynamically generated styles will be injected here */
}

/* SearchJet Connect Integration - uses existing styles */
.searchjet-wrapper {
  position: relative;
  width: 100%;
}

.searchjet-searchbox {
  position: relative;
  width: 100%;
}

.searchjet-hits-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  margin-top: 8px;
}

/* Search Form Shortcode Styles */
.searchjet-form-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

.searchjet-search-form {
  position: relative;
}

.searchjet-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--searchjet-border-color, #e5e5e5);
  border-radius: var(--searchjet-border-radius, 8px);
  background: var(--searchjet-background, #fff);
  overflow: hidden;
}

.searchjet-input-wrapper .search-field {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
}

.searchjet-input-wrapper .search-submit {
  padding: 12px 16px;
  border: none;
  background: var(--searchjet-primary-color, #007aff);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.searchjet-input-wrapper .search-submit:hover {
  background: var(--searchjet-primary-color-dark, #0056cc);
}

/* Enhanced Search Results Page */
.searchjet-page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e5e5;
}

.searchjet-page-hit {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s ease;
}

.searchjet-page-hit:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.searchjet-page-hit .hit-media img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 6px;
}

.searchjet-page-hit .hit-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.searchjet-page-hit .hit-title a {
  text-decoration: none;
  color: #1d1d1f;
}

.searchjet-page-hit .hit-title a:hover {
  color: var(--searchjet-primary-color);
}

.searchjet-pagination {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.searchjet-pagination-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.searchjet-pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: white;
  color: #1d1d1f;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.searchjet-pagination-item:hover {
  background: var(--searchjet-primary-color, #007aff);
  color: white;
  border-color: var(--searchjet-primary-color, #007aff);
}

.searchjet-pagination-item--active {
  background: var(--searchjet-primary-color, #007aff);
  color: white;
  border-color: var(--searchjet-primary-color, #007aff);
}

.searchjet-pagination-item:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.searchjet-pagination-link {
  display: inline-flex;
  align-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  text-decoration: none;
  color: #1d1d1f;
  margin: 0 4px;
}

.searchjet-pagination-link:hover,
.searchjet-pagination-link.current {
  background: var(--searchjet-primary-color);
  color: white;
}

#searchjet-results .searchjet-group-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    padding: 0 0 0.5rem 0.5rem;
    border-bottom: none;
}

/* Search Results Page Section Titles */
.searchjet-page-hits .searchjet-group-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e5e5;
}

.searchjet-page-hits .searchjet-group-title:first-child {
  margin-top: 0;
}

/* Product-specific styling for search results page */
.searchjet-page-hit.product-hit .hit-category {
  font-size: 0.875rem;
  color: #6e6e73;
  margin: 0.25rem 0;
}

.searchjet-page-hit.product-hit .hit-price {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-top: 0.5rem;
}

.searchjet-page-hit.product-hit .hit-price .sale-price {
  color: #d10000;
  margin-right: 0.5rem;
}

.searchjet-page-hit.product-hit .hit-price .regular-price {
  text-decoration: line-through;
  color: #888;
  font-size: 0.9em;
}

/* Page-specific styling for search results page */
.searchjet-page-hit.page-hit .hit-type {
  font-size: 0.875rem;
  color: #6e6e73;
  margin-top: 0.25rem;
  text-transform: capitalize;
}

/* Footer with navigation instructions */
.searchjet-footer {
  padding: 12px 16px;
  background-color: #f5f5f7;
  border-top: 1px solid #e5e5e5;
  color: #6e6e73;
  font-size: 12px;
  text-align: center;
  border-bottom-left-radius: var(--searchjet-border-radius);
  border-bottom-right-radius: var(--searchjet-border-radius);
}

.searchjet-footer strong {
  color: #1d1d1f;
  font-weight: 600;
}

.hit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#searchjet-results .searchjet-group-title {
	padding: 0.5rem !important;
}

/* AI Answer Styles */
.searchjet-ai-answer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.searchjet-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  backdrop-filter: blur(10px);
}

.searchjet-ai-badge svg {
  width: 14px;
  height: 14px;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.searchjet-ai-content {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
  font-weight: 400;
}

.searchjet-ai-disclaimer {
  font-size: 11px;
  opacity: 0.8;
  font-style: italic;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 8px;
  margin-top: 8px;
}

/* AI Loading State */
.searchjet-ai-loading {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ee 100%);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.searchjet-ai-loading .searchjet-ai-badge {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

.searchjet-ai-skeleton {
  margin-top: 12px;
}

.searchjet-skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  margin-bottom: 8px;
}

.searchjet-skeleton-line.short {
  width: 70%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
/* AI Upgrade Message */
.searchjet-ai-upgrade {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border: 2px dashed #667eea;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.searchjet-ai-upgrade .searchjet-ai-badge {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
}

.searchjet-ai-upgrade .searchjet-ai-content {
  color: #333;
  margin: 12px 0 16px 0;
  font-size: 15px;
  line-height: 1.5;
}

.searchjet-upgrade-button {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.searchjet-upgrade-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}

/* =========================================
   Federated Search Demo Styles
   ========================================= */

.searchjet-federated-container {
    max-width: 1200px;
    margin: 0 auto;
}

.searchjet-federated-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.searchjet-federated-header p {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.5;
}

.searchjet-federated-input-wrapper {
    position: relative;
}

.searchjet-federated-input-wrapper .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    width: 20px;
    height: 20px;
    z-index: 1;
}

.searchjet-federated-input-wrapper .searchjet-federated-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    font-size: 16px;
    color: #333;
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.searchjet-federated-input::placeholder {
    color: #9ca3af;
}

.searchjet-federated-input-wrapper .searchjet-federated-input:focus {
    border-color: #3b82f6;
}

/* Results Layout */
.searchjet-federated-results {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    animation: fadeIn 0.3s ease;
}

.searchjet-federated-main {
    flex: 3;
}

.searchjet-federated-sidebar {
    flex: 1;
    min-width: 280px;
}

.searchjet-section-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.searchjet-section-title .count {
    color: #777;
    font-weight: 400;
    font-size: 14px;
}

/* Grid Layout */
.searchjet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Wider cards */
    gap: 20px;
}

/* Product Card */
.searchjet-federated-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column; /* Better for vertical alignment */
}

.searchjet-federated-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: #d1d9e6;
}

.searchjet-federated-card .searchjet-hit {
    text-decoration: none;
    color: inherit;
    display: block;
    flex-grow: 1; /* Allow content to push button down */
    padding: 0 !important;
    border: none !important;
    display: block !important;
    transition: none !important;
}

.searchjet-federated-card:hover .searchjet-hit {
     background-color: transparent !important;
     border: none !important;
}

.federated-image-wrapper {
    width: 100%;
    height: 200px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.federated-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.federated-details {
    padding: 16px;
}

.federated-category {
    font-size: 12px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.federated-title {
    font-size: 16px;
    margin: 0 0 8px 0;
    line-height: 1.4;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.federated-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.federated-price {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.federated-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #007aff;
    color: white;
    font-weight: 600;
    padding: 10px;
    text-decoration: none;
    border-radius: 0 0 12px 12px; /* Rounded bottom corners */
    margin: 0; /* Flush with bottom */
    transition: background 0.2s;
}

.federated-add-btn:hover {
    background: #0056cc;
    color: white;
}

/* Sidebar Lists */
.searchjet-sidebar-section {
    background: #fff; /* Design shows clean white or transparent? Assuming transparent on white bg */
    margin-bottom: 30px;
}

.searchjet-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.searchjet-suggestion-item {
    padding: 10px 0;
    cursor: pointer;
    color: #444;
    transition: color 0.2s;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.searchjet-suggestion-item:hover {
    color: #007aff;
    padding-left: 4px; /* subtle interaction */
}

.searchjet-page-item {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between;
    padding: 12px !important;
    background: #fff;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
     margin: 0 !important; /* override default */
}

.searchjet-page-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-color: #007aff !important;
     background-color: #fff !important;
}

.searchjet-page-item h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
}

.searchjet-page-item p {
    margin: 0;
    font-size: 12px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.searchjet-page-item .arrow {
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s;
    flex-shrink: 0;
    margin-left: 8px;
}

.searchjet-page-item:hover .arrow {
    opacity: 1;
    transform: translateX(0);
    color: #007aff;
}

/* Empty State */
.searchjet-federated-empty {
    text-align: center;
    padding: 60px;
    color: #777;
    font-size: 18px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .searchjet-federated-results {
        flex-direction: column;
    }
    
    .searchjet-federated-main,
    .searchjet-federated-sidebar {
        flex: auto;
        min-width: 100%;
    }

    .searchjet-federated-input {
        padding: 14px 16px 14px 44px;
        font-size: 16px;
    }
    
    .searchjet-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }
}
