/**
 * Overlay 20260901b — không Vite, không đụng index-BWYG2CSd.css.
 * - Nút thông số + fade thead.
 * - Panel /search lệch dưới header dính (banner cam).
 * - Thông số đi theo card sản phẩm.
 */

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

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%;
  box-sizing: border-box;
  padding-top: calc(var(--giasy-sticky-offset, 148px) + 12px);
  scroll-margin-top: calc(var(--giasy-sticky-offset, 148px) + 12px);
}

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

.giasy-spec-filter-panel {
  max-width: 1180px;
  margin: 0 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;
}

.giasy-product-specs,
.giasy-spec-filter-card .giasy-product-specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 8px;
  border: 1px solid #d7e8ef;
  border-radius: 8px;
  background: #f8fcff;
  list-style: none;
}

.giasy-product-specs li {
  display: flex;
  gap: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #334155;
}

.giasy-product-specs li b {
  flex: 0 0 auto;
  color: #0b4f6a;
  font-weight: 700;
}

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