/* Eigen zoek-dropdown (Doofinder-vervanger). Merk: donkerblauw #003459, CTA #ff6600. */

/* Shopware's eigen suggest-dropdown onderdrukken zolang onze dropdown actief is. */
.search-suggest-container { display: none !important; }

/* Shopware's eigen zoekkop ("X producten gevonden voor…") verbergen — onze
   resultatengrid heeft een eigen kop, anders staat het dubbel. */
.search-headline { display: none !important; }

/* iOS zoomt in bij focus op inputs met font-size < 16px → forceer 16px op ALLE
   zoekvelden. `html body` = hoge specificiteit zodat de thema-regels
   (die ook html body-prefix gebruiken) dit niet overschrijven. */
html body input.header-search-input,
html body input.cs-mobile-main-menu-header-search-input,
html body input[name="search"],
html body .header-search-form input[type="search"] { font-size: 16px !important; }

.cs-search-panel {
  position: fixed; z-index: 100000;
  background: #fff; border: 1px solid #e1e7ee; border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 52, 89, 0.18);
  padding: 6px; max-height: 72vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  text-align: left; font-size: 14px; color: #1a2b3c;
}

/* sectiekop */
.cs-search-h {
  margin: 6px 10px 4px; padding-bottom: 6px; font-size: 11px; letter-spacing: .6px;
  text-transform: uppercase; color: #6c7a89; font-weight: 700;
  border-bottom: 1px solid #eef2f6;
}
.cs-search-h + .cs-search-list { margin-bottom: 6px; }

.cs-search-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px;
  text-decoration: none; color: inherit;
}
.cs-search-row:hover { background: #f3f8fc; text-decoration: none; }
.cs-search-thumb {
  width: 46px; height: 46px; border-radius: 8px; object-fit: contain; background: #fff;
  flex: 0 0 46px; border: 1px solid #eaeff4; display: flex; align-items: center; justify-content: center;
}
.cs-search-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cs-search-name {
  font-size: 14px; color: #1a2b3c; line-height: 1.3; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cs-search-price { font-size: 14px; color: #003459; font-weight: 700; margin-top: 3px; }
.cs-search-vat { font-size: 11px; color: #93a0ad; font-weight: 400; }
.cs-search-empty { padding: 18px 12px; font-size: 14px; color: #5b6875; }

.cs-search-terms { display: flex; flex-wrap: wrap; gap: 7px; padding: 4px 8px 8px; }
.cs-search-term {
  display: inline-block; padding: 6px 13px; font-size: 13px; color: #33475b;
  background: #eef4f9; border-radius: 20px; text-decoration: none; line-height: 1.2;
}
.cs-search-term:hover { background: #dde9f2; color: #003459; text-decoration: none; }

.cs-search-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 1px solid #eef2f6; margin-top: 4px; padding: 12px 12px 8px;
}
.cs-search-cta a { color: #ff6600; font-weight: 700; font-size: 14px; text-decoration: none; }
.cs-search-cta a:hover { text-decoration: underline; }
.cs-search-cta span { font-size: 12px; color: #93a0ad; white-space: nowrap; }

/* Resultatenpagina (/search) */
.cs-results { padding: 4px 0 28px; }
.cs-results-head { font-size: 20px; color: #003459; font-weight: 700; margin: 0 0 18px; }
.cs-results .cs-search-h { font-size: 13px; margin: 18px 0 10px; }
.cs-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 8px; }
.cs-result-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid #e1e7ee;
  border-radius: 12px; padding: 12px; text-decoration: none; color: inherit; transition: box-shadow .15s ease;
}
.cs-result-card:hover { box-shadow: 0 8px 22px rgba(0, 52, 89, .13); text-decoration: none; }
.cs-result-img { width: 100%; height: 150px; object-fit: contain; background: #fff; border-radius: 8px; margin-bottom: 10px; }
.cs-result-img--ph { display: block; }
.cs-result-name {
  font-size: 14px; color: #1a2b3c; line-height: 1.35; flex: 1 1 auto; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.cs-result-price { font-size: 16px; color: #003459; font-weight: 700; }
