/* Teknes Search — estilos del overlay */
#tks-overlay {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(16, 30, 46, .55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  display: none; padding: 4vh 16px;
}
#tks-overlay.tks-open { display: flex; justify-content: center; align-items: flex-start; }
html.tks-lock, html.tks-lock body { overflow: hidden; }

.tks-panel {
  width: 100%; max-width: 880px; max-height: 92vh;
  background: #fff; border-radius: 14px; overflow: hidden auto;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 64px rgba(16, 30, 46, .35);
  font-family: inherit;
}

.tks-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid #e6ebf0;
  position: sticky; top: 0; background: #fff; z-index: 2;
}
.tks-lupa { color: #1B3A5C; flex: none; }
#tks-input {
  flex: 1; border: 0; outline: 0; font-size: 17px; color: #101e2e;
  background: transparent; padding: 6px 0;
}
#tks-close {
  flex: none; border: 0; background: #f1f4f7; color: #1B3A5C;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 20px; line-height: 1; cursor: pointer;
}
#tks-close:hover { background: #e2e8ee; }

#tks-facets { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
#tks-facets:empty { padding: 0; }
.tks-chip {
  border: 1px solid #d6dee6; background: #fff; color: #1B3A5C;
  border-radius: 999px; padding: 4px 12px; font-size: 12.5px;
  cursor: pointer; transition: background .15s;
}
.tks-chip:hover { background: #f1f5f9; }
.tks-chip-on { background: #1B3A5C; border-color: #1B3A5C; color: #fff; }

#tks-meta { padding: 8px 16px 0; font-size: 12.5px; color: #6b7a89; }

#tks-results { padding: 12px 16px 18px; }
.tks-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px;
}
.tks-card {
  display: flex; flex-direction: column; text-decoration: none;
  border: 1px solid #e6ebf0; border-radius: 10px; overflow: hidden;
  background: #fff; transition: box-shadow .15s, transform .15s;
}
.tks-card:hover { box-shadow: 0 8px 22px rgba(16, 30, 46, .12); transform: translateY(-2px); }
.tks-img { aspect-ratio: 1; background: #f7f9fb; display: flex; align-items: center; justify-content: center; }
.tks-img img { width: 100%; height: 100%; object-fit: contain; }
.tks-info { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.tks-marca { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #6b7a89; }
.tks-name { font-size: 13.5px; line-height: 1.35; color: #101e2e; }
.tks-name mark { background: #dbeafe; color: inherit; padding: 0 1px; border-radius: 2px; }
.tks-precio { font-size: 15px; font-weight: 600; color: #1B3A5C; margin-top: 2px; }
.tks-stock { font-size: 11.5px; font-weight: 600; }
.tks-out { color: #b42318; }
.tks-back { color: #b25e09; }

.tks-empty { padding: 42px 16px; text-align: center; color: #6b7a89; font-size: 14.5px; }

@media (max-width: 560px) {
  #tks-overlay { padding: 0; }
  .tks-panel { max-height: 100vh; height: 100%; border-radius: 0; }
  .tks-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* modo admin */
.tks-sku { font-size: 11.5px; color: #6b7a89; font-family: monospace; }
.tks-edit { font-size: 12px; font-weight: 600; color: #1B3A5C; margin-top: 4px; }
#tks-overlay { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
