/**
 * Overlay hiển thị thật trên production recover (không Vite, không đụng index-BWYG2CSd.css).
 * - Fade thead bảng Hạng mục | Thông số (recover đang style inline #e8f4fc nên CSS cũ không ăn).
 * - Nút giá trị thông số nhìn rõ, không còn giống chữ 10px.
 * - Panel kết quả /search nằm dưới header, React xóa thì overlay gắn lại.
 */

:root {
  --giasy-specs-fade: linear-gradient(180deg, #7dd3fc 0%, #bae6fd 32%, #e0f2fe 68%, #f0f9ff 100%);
}

table[data-giasy-spec-filter="1"] thead th,
html.storefront-root table[data-giasy-spec-filter="1"] thead th {
  background: #e0f2fe var(--giasy-specs-fade) !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

html.storefront-root .spec-value-btn,
.spec-value-btn {
  display: inline-flex !important;
  position: relative;
  z-index: 5;
  max-width: 100%;
  align-items: center;
  cursor: pointer !important;
  pointer-events: auto !important;
  margin: 0;
  padding: 3px 9px !important;
  border: 1px solid #0284c7 !important;
  border-radius: 999px !important;
  background: #e0f2fe !important;
  color: #0c4a6e !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-align: left;
  text-decoration: underline !important;
  text-underline-offset: 2px;
  box-shadow: 0 1px 0 #7dd3fc;
}

html.storefront-root .spec-value-btn:hover,
.spec-value-btn:hover {
  background: #bae6fd !important;
  border-color: #0369a1 !important;
  color: #082f49 !important;
}

#giasy-spec-filter-results {
  display: block;
  width: 100%;
}

#giasy-spec-filter-results[hidden] {
  display: none !important;
}

.giasy-spec-filter-panel {
  max-width: 1180px;
  margin: 12px auto 20px;
  padding: 16px 18px 12px;
  background: #ffffff;
  border: 1px solid #0284c7;
  border-radius: 12px;
  color: #122033;
  box-shadow: 0 8px 24px rgba(8, 47, 73, 0.08);
}

.giasy-spec-filter-panel h1 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.3;
  color: #0b4f6a;
}

.giasy-spec-filter-panel > p {
  margin: 0 0 14px;
  color: #475569;
}

.giasy-spec-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.giasy-spec-filter-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d7e8ef;
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
  color: #122033;
}

.giasy-spec-filter-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #f4f9fb;
  border-radius: 8px;
}

.giasy-spec-filter-card strong {
  font-size: 14px;
  line-height: 1.35;
}

.giasy-spec-filter-card span {
  color: #0b4f6a;
  font-weight: 700;
}

html.storefront-root[data-giasy-spec-search="1"] .text-center.py-12 {
  display: none !important;
}
