/* ==== Search bar ==== */
.damsearch-bar-wrap {
  position: relative;
  max-width: 640px;
  margin: 10px auto;
}
.damsearch-bar { display: flex; gap: 8px; }
.damsearch-input { flex: 1; min-width: 0; }

/* The shop's own search fields open the overlay (autocomplete.js, Motive
   take-over): this module's bar would be a second one. The overlay template
   stays in the page. */
.damsearch-bridged .damsearch-bar-wrap > .damsearch-bar { display: none; }
.damsearch-bridged .damsearch-bar-wrap { margin: 0; }

/* ==== Full-screen overlay (DAM Marine style) ==== */
body.damsearch-overlay-open { overflow: hidden; }

.damsearch-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  overflow-y: auto;
}
.damsearch-overlay[hidden] { display: none; }

.damsearch-overlay-panel {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 48px 60px;
  position: relative;
  min-height: 100vh;
}

/* --- Top bar: logo + cart + close --- */
.damsearch-overlay-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  margin-bottom: 8px;
}
.damsearch-overlay-logo { display: inline-flex; }
.damsearch-overlay-logo img { max-height: 56px; max-width: 180px; width: auto; }
.damsearch-overlay-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.damsearch-overlay-cart {
  color: #0a1929;
  display: inline-flex;
  align-items: center;
  padding: 6px;
  text-decoration: none;
}
.damsearch-overlay-cart:hover { color: #002b5c; }
.damsearch-overlay-cart .material-icons { font-size: 26px; }

.damsearch-overlay-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #002b5c;
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
  padding: 0;
}
.damsearch-overlay-close:hover { background: #003a7a; }
.damsearch-overlay-close .material-icons { font-size: 24px; color: #fff; }

/* --- Search input (underline style) --- */
.damsearch-overlay-form {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0 16px;
  border-bottom: 1px solid #0a1929;
  margin: 8px 0 24px;
}
.damsearch-overlay-icon {
  color: #0a1929;
  font-size: 26px;
  opacity: 0.6;
}
.damsearch-overlay-input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 22px;
  font-weight: 400;
  color: #0a1929;
  padding: 4px 0;
}
.damsearch-overlay-input::placeholder { color: #9aa5b3; font-weight: 400; }

/* --- Layout: left sidebar + main body (2 columns) --- */
/* DAM Search palette, taken from the shop's own navy. Declared on the overlay
   so the tokens cannot collide with the theme's. */
.damsearch-overlay {
  --dam-navy: #0b2c5d;
  --dam-text: #0c192a;
  --dam-muted: #526580;
  --dam-surface: #fff;
  --dam-bg: #f4f6fa;
  --dam-tab: #eaedf5;
  --dam-border: #dce3ee;
}

.damsearch-overlay-layout {
  display: grid;
  /* An explicit aside + main grid, never a float: results cannot wrap under
     the filter column however tall the open groups get. */
  grid-template-columns: clamp(240px, 20vw, 300px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
/* Without this a long product title or a wide card row makes the main column
   grow past its track and push into the filters. */
.damsearch-overlay-body { min-width: 0; }

/* --- Sidebar (categories / manufacturers / prices) --- */
.damsearch-overlay-sidebar {
  position: sticky;
  top: 8px;
  align-self: start;
  /* The variable is measured by the component; 100dvh is only the fallback
     for the first paint, since the column starts below the search field. */
  max-height: calc(var(--dam-search-available-height, 100dvh) - 16px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding-right: 8px;
  scrollbar-width: thin;
}
.damsearch-overlay-sidebar::-webkit-scrollbar { width: 6px; }
.damsearch-overlay-sidebar::-webkit-scrollbar-thumb { background: #d0d6de; border-radius: 3px; }

.damsearch-sidebar-section {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid #eef1f5;
}
.damsearch-sidebar-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Accordion-style toggle on each section header. The whole header is a
 * <button> for keyboard support; chevron rotates on collapse and the
 * body is hidden via the `damsearch-sidebar-collapsed` modifier on the
 * parent section. */
.damsearch-sidebar-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 12px;
  margin: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.damsearch-sidebar-section.damsearch-sidebar-collapsed .damsearch-sidebar-toggle {
  padding-bottom: 0;
}
.damsearch-sidebar-section.damsearch-sidebar-collapsed {
  padding-bottom: 0;
}
.damsearch-sidebar-section.damsearch-sidebar-collapsed .damsearch-sidebar-body {
  display: none;
}
.damsearch-sidebar-chevron {
  font-size: 18px;
  color: #7a869a;
  transition: transform .15s ease;
}
.damsearch-sidebar-section.damsearch-sidebar-collapsed .damsearch-sidebar-chevron {
  transform: rotate(-90deg);
}

.damsearch-sidebar-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #0a1929;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.damsearch-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.damsearch-sidebar-list li { margin: 0; }

.damsearch-sidebar-item {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  color: #0a1929;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: background .12s, color .12s;
}
.damsearch-sidebar-item:hover {
  background: #eef1f5;
  color: #002b5c;
  text-decoration: none;
}
.damsearch-sidebar-item.active {
  background: #002b5c;
  color: #fff;
}
.damsearch-sidebar-item.active .damsearch-sidebar-count {
  color: #cbd5e0;
}
.damsearch-sidebar-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.damsearch-sidebar-count {
  flex: 0 0 auto;
  font-size: 11px;
  color: #7a869a;
  font-variant-numeric: tabular-nums;
}
.damsearch-sidebar-empty {
  font-size: 13px;
  color: #7a869a;
  margin: 0;
}

/* Truncated list items (beyond the first N=data-damsearch-collapse-after).
 * The "Voir les N autres" button toggles them. */
.damsearch-sidebar-item-hidden { display: none; }
.damsearch-sidebar-more {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 0;
  background: transparent;
  border: 0;
  color: #002b5c;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
.damsearch-sidebar-more:hover { color: #0d4d8a; }
.damsearch-sidebar-more[hidden] { display: none; }

/* --- Sidebar: availability (checkbox-style row) --- */
.damsearch-sidebar-avail {
  cursor: pointer;
  user-select: none;
}
.damsearch-sidebar-avail input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 0 8px 0 0;
  width: 14px;
  height: 14px;
  accent-color: #002b5c;
  cursor: pointer;
}
.damsearch-sidebar-avail:hover { background: #eef1f5; }

/* --- Sidebar: dual-handle price range slider --- */
.damsearch-price-slider {
  padding: 4px 4px 0;
}
.damsearch-price-values {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #0a1929;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.damsearch-price-value-sep { color: #7a869a; font-weight: 400; }
.damsearch-price-track-wrap {
  position: relative;
  height: 24px;
  margin: 0 6px;
}
.damsearch-price-track {
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 3px;
  margin-top: -1.5px;
  background: #d6dde6;
  border-radius: 2px;
  pointer-events: none;
}
.damsearch-price-track-fill {
  position: absolute;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  background: #002b5c;
  border-radius: 2px;
  pointer-events: none;
  left: 0; right: 0;
}
/* Two stacked native ranges: only thumbs intercept clicks. */
.damsearch-price-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  pointer-events: none;
}
.damsearch-price-input:focus { outline: none; }
.damsearch-price-input::-webkit-slider-runnable-track {
  background: transparent;
  border: 0;
  height: 24px;
}
.damsearch-price-input::-moz-range-track {
  background: transparent;
  border: 0;
  height: 24px;
}
.damsearch-price-input::-webkit-slider-thumb {
  -webkit-appearance: none;
          appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #002b5c;
  box-shadow: 0 1px 3px rgba(10,25,41,0.18);
  cursor: grab;
  margin-top: -7px;
}
.damsearch-price-input::-webkit-slider-thumb:active { cursor: grabbing; }
.damsearch-price-input::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #002b5c;
  box-shadow: 0 1px 3px rgba(10,25,41,0.18);
  cursor: grab;
}
/* Stack the max thumb above so it's always reachable when both are at the same value. */
.damsearch-price-input-max { z-index: 2; }
.damsearch-price-input-min { z-index: 1; }

.damsearch-price-reset {
  display: inline-block;
  margin-top: 12px;
  background: transparent;
  border: 0;
  color: #7a869a;
  cursor: pointer;
  padding: 4px 0;
  font-size: 12px;
  text-decoration: underline;
}
.damsearch-price-reset:hover { color: #0a1929; }
.damsearch-price-reset[hidden] { display: none; }

/* --- Active filter chips (above the tabs) --- */
.damsearch-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.damsearch-active-filters[hidden] { display: none; }
.damsearch-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px 5px 12px;
  background: #002b5c;
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.damsearch-chip-category     { background: #002b5c; }
.damsearch-chip-manufacturer { background: #0d4d8a; }
.damsearch-chip-price        { background: #0d7f3f; }
.damsearch-chip-availability { background: #b86200; }
.damsearch-chip-label {
  white-space: nowrap;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.damsearch-chip-clear {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 2px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  opacity: 0.85;
}
.damsearch-chip-clear:hover { opacity: 1; background: rgba(255,255,255,0.15); }
.damsearch-chip-clear .material-icons { font-size: 16px; }

/* Availability pill under the price on product cards. Two variants
 * mapped to DAM Marine's only two states. The dot mimics the small
 * "live status" indicator e-commerce sites use under price quotes. */
.damsearch-card-availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.damsearch-card-availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.damsearch-card-availability-in_stock { color: #0d7f3f; }
.damsearch-card-availability-on_order { color: #b86200; }

/* Inline "Add to cart" button rendered at the bottom of every product
 * card. Sits inside the parent <a> but the JS click handler stops
 * propagation so clicking the button never navigates to the PDP. */
.damsearch-card-add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  padding: 8px 10px;
  background: #002b5c;
  color: #fff;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background .15s, transform .08s;
}
.damsearch-card-add-to-cart:hover { background: #0d4d8a; }
.damsearch-card-add-to-cart:active { transform: translateY(1px); }
.damsearch-card-add-to-cart .material-icons { font-size: 16px; }
.damsearch-card-add-to-cart.is-loading {
  background: #4a6a8a;
  cursor: progress;
}
.damsearch-card-add-to-cart.is-done {
  background: #0d7f3f;
  cursor: default;
}
.damsearch-card-add-to-cart.is-error {
  background: #a02323;
  cursor: not-allowed;
}

/* Fallback when an image fails to load */
.damsearch-card-thumb-fallback {
  background: #f4f6fa;
}
.damsearch-card-thumb-fallback::before {
  content: "image";
  font-family: 'Material Icons';
  font-size: 42px;
  color: #c8d1e0;
}

/* --- Body, sections --- */
.damsearch-overlay-body { padding: 0; min-width: 0; }

.damsearch-overlay-section { margin-bottom: 32px; }
.damsearch-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.damsearch-section-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0a1929;
  text-transform: none;
  letter-spacing: 0;
}
.damsearch-section-count { font-size: 13px; color: #7a869a; }

/* --- Recents --- */
.damsearch-recents-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.damsearch-recents-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f5;
}
.damsearch-recents-list li:last-child { border-bottom: 0; }
.damsearch-recent-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0a1929;
  text-decoration: none;
  font-size: 15px;
  flex: 1;
}
.damsearch-recent-item:hover { color: #002b5c; text-decoration: none; }
.damsearch-recent-icon { font-size: 18px; color: #7a869a; }
.damsearch-recent-remove {
  background: transparent;
  border: 0;
  color: #7a869a;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
}
.damsearch-recent-remove:hover { background: #eef1f5; color: #0a1929; }
.damsearch-recent-remove .material-icons { font-size: 18px; }
.damsearch-recent-ts {
  margin-left: auto;
  font-size: 11px;
  color: #9aa6b6;
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
  padding-right: 6px;
}
.damsearch-recents-expand {
  background: transparent;
  border: 0;
  color: #002b5c;
  cursor: pointer;
  padding: 10px 0 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  display: block;
}
.damsearch-recents-expand:hover { color: #0d4d8a; }
.damsearch-recents-expand[hidden] { display: none; }
.damsearch-recents-actions {
  margin-top: 12px;
  font-size: 13px;
  color: #7a869a;
}
.damsearch-recents-actions button {
  background: transparent;
  border: 0;
  color: #7a869a;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 13px;
}
.damsearch-recents-actions button:hover { color: #0a1929; text-decoration: underline; }
.damsearch-recents-sep { margin: 0 2px; }

/* --- Cards row (horizontal scroll for popular + per-source in Tous) --- */
.damsearch-cards-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 14px;
  scrollbar-width: thin;
}
.damsearch-cards-row::-webkit-scrollbar { height: 6px; }
.damsearch-cards-row::-webkit-scrollbar-thumb { background: #d0d6de; border-radius: 3px; }

.damsearch-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  padding: 4px 0 14px;
}

/* --- Product card (DAM style) --- */
.damsearch-card {
  flex: 0 0 180px;
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: transform .15s;
}
.damsearch-cards-grid .damsearch-card { flex: 0 0 auto; width: auto; }
.damsearch-card:hover { transform: translateY(-2px); }
/* The clickable area within the card (thumb + textual info). The cart
 * button sits OUTSIDE this anchor so it's a valid HTML sibling, not a
 * forbidden interactive descendant of <a>. */
.damsearch-card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.damsearch-card-link:hover,
.damsearch-card-link:focus { text-decoration: none; color: inherit; }

.damsearch-card-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  margin-bottom: 12px;
}
.damsearch-card-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.damsearch-card-noimage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6fa;
  color: #c8d1e0;
}
.damsearch-card-noimage .material-icons { font-size: 42px; }

.damsearch-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  padding: 0 6px;
}
.damsearch-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #0a1929;
  text-transform: uppercase;
  line-height: 1.3;
  letter-spacing: 0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
}
.damsearch-card-title mark { background: #fff3cd; padding: 0 1px; }
.damsearch-card-sku {
  font-size: 12px;
  color: #7a869a;
  margin-top: 2px;
}
.damsearch-card-prices {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.damsearch-card-price-ttc {
  font-size: 16px;
  font-weight: 700;
  color: #0a1929;
}
.damsearch-card-price-ht {
  font-size: 12px;
  color: #9aa5b3;
}

/* Source-specific hint on card (no colored badge on DAM style, but keep
   a subtle marker via left accent for non-product rows) */
.damsearch-card-exploded_views .damsearch-card-thumb {
  background: #fafafa;
}
/* Engines have no image at all, so the thumb slot is always the placeholder. */
.damsearch-card-engines .damsearch-card-thumb {
  background: #fafafa;
}

/* --- Results state --- */
.damsearch-results-wrap { display: block; }
.damsearch-overlay-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  overflow-x: auto;
}
.damsearch-tab {
  background: #f4f6fa;
  border: 0;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #42526e;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.damsearch-tab:hover { background: #e6eaf3; }
.damsearch-tab.active { background: #002b5c; color: #fff; }
.damsearch-tab-count { margin-left: 4px; font-size: 11px; opacity: 0.9; }
/* A scope with no match for the current query stays visible but recedes, so
   the three kinds of result remain discoverable instead of disappearing. */
.damsearch-tab-empty { opacity: .45; }
.damsearch-tab-empty.active { opacity: 1; }

/* --- Banner ------------------------------------------------------------ */
.damsearch-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
  margin: 2px 0 18px;
  padding: 20px 26px;
  overflow: hidden;
  border-radius: 10px;
  color: #fff;
  background: var(--dam-navy, #0b2c5d);
}
.damsearch-banner-title {
  margin: 0 0 4px;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.2;
}
.damsearch-banner-sub { margin: 0; font-size: 14px; opacity: .85; }
.damsearch-banner-art {
  flex: 0 0 auto;
  font-size: 92px !important;
  line-height: 1;
  opacity: .18;
}

/* --- Result sections --------------------------------------------------- */
.damsearch-sections {
  display: grid;
  gap: 18px;
  padding: 16px;
  border-radius: 12px;
  background: var(--dam-bg, #f4f6fa);
}
.damsearch-results-section {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--dam-border, #dce3ee);
  /* The left accent is what makes the three kinds tellable apart at a glance
     without relying on reading the heading. */
  border-left: 4px solid var(--dam-navy, #0b2c5d);
  border-radius: 10px;
  background: var(--dam-surface, #fff);
}
.damsearch-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dam-border, #dce3ee);
}
.damsearch-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.damsearch-section-headings { min-width: 0; }
.damsearch-section-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--dam-navy, #0b2c5d);
  background: var(--dam-bg, #f4f6fa);
}
.damsearch-section-icon .material-icons { font-size: 22px; }
.damsearch-section-title {
  margin: 0;
  color: var(--dam-navy, #0b2c5d);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}
.damsearch-section-title:focus-visible { outline: 3px solid var(--dam-navy, #0b2c5d); outline-offset: 3px; }
.damsearch-section-title .damsearch-section-count { font-variant-numeric: tabular-nums; }
.damsearch-section-description {
  margin: 2px 0 0;
  color: var(--dam-muted, #526580);
  font-size: 13px;
}
.damsearch-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--dam-navy, #0b2c5d);
  border-radius: 6px;
  color: var(--dam-navy, #0b2c5d);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.damsearch-view-all:hover,
.damsearch-view-all:focus { color: #fff; background: var(--dam-navy, #0b2c5d); }

/* Closing call-to-action on the sources that have no cart button. */
.damsearch-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--dam-navy, #0b2c5d);
  font-size: 13px;
  font-weight: 600;
}
.damsearch-card-meta {
  margin-top: 2px;
  color: var(--dam-muted, #526580);
  font-size: 12px;
}
/* Engines have no photography yet: the card is text-only and needs its own
   breathing room where the thumbnail would have been. */
.damsearch-card-engines .damsearch-card-info { padding-top: 4px; }
.damsearch-card-engines,
.damsearch-card-exploded_views {
  padding: 12px;
  border: 1px solid var(--dam-border, #dce3ee);
  border-radius: 8px;
  background: #fff;
}

.damsearch-results-section { margin-bottom: 0; }

.damsearch-overlay-loading,
.damsearch-overlay-empty {
  padding: 60px 20px;
  text-align: center;
  color: #7a869a;
}
.damsearch-overlay-empty p { margin: 4px 0; font-size: 15px; }
.damsearch-overlay-empty-hint { font-size: 13px; opacity: 0.8; }

/* --- Footer "See all" --- */
.damsearch-overlay-footer {
  text-align: center;
  margin-top: 20px;
  padding: 20px 0;
}
.damsearch-overlay-seeall {
  display: inline-block;
  padding: 10px 24px;
  background: #002b5c;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.damsearch-overlay-seeall:hover { background: #003a7a; color: #fff; text-decoration: none; }

/* Mobile layout (filter sheet, compact header, list cards), filter
   accordions and focus rings for the overlay live in front-correctif.css,
   loaded after the theme. A mobile block here only fought with it. */

/* The results page has its own stylesheet, search-page.css, loaded only there. */
