/* Riêng cho modules/sku-search.js — ô nhập mã, công tắc thị trường, lưới nguồn tra cứu */

/* --- hàng nhãn + công tắc thị trường DE/UK --- */
.sku-topline {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 6px;
}
.sku-label { font-size: 12.5px; font-weight: 600; color: var(--ink-muted); }

.sku-market {
  display: inline-flex; gap: 2px; padding: 2px;
  background: var(--surface-muted); border-radius: 100px;
}
.sku-market-btn {
  border: none; background: transparent; cursor: pointer;
  padding: 5px 13px; border-radius: 100px;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-muted);
  transition: background .12s ease, color .12s ease;
}
.sku-market-btn:hover { color: var(--ink); }
.sku-market-btn.is-on { background: var(--surface); color: var(--accent-ink); box-shadow: var(--shadow-card); }

/* --- ô nhập + badge nhận dạng + nút Paste nằm trong ô --- */
.sku-input-wrap { position: relative; display: block; }
.sku-input-wrap input { width: 100%; padding-right: 132px; }

.sku-detect {
  position: absolute; right: 78px; top: 50%; transform: translateY(-50%);
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 100px; pointer-events: none;
}
.sku-detect.is-sku { background: var(--accent-soft); color: var(--accent-ink); }
.sku-detect.is-asin { background: var(--amber-soft); color: var(--amber); }
.sku-detect.is-name { background: var(--violet-soft); color: var(--violet); }

.sku-paste {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  padding: 5px 13px; border-radius: 100px;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--ink-muted);
  transition: border-color .12s ease, color .12s ease;
}
.sku-paste:hover { border-color: var(--accent); color: var(--accent-ink); }

/* --- chip tra nhanh ngay dưới ô nhập --- */
.sku-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.sku-chips:empty { display: none; }
.sku-chip { border: none; cursor: pointer; font: inherit; font-size: 11.5px; }
/* Chip gợi ý "Tra mã 100030" khi anh dán chuỗi lẫn cả mã và tên */
.sku-suggest { background: var(--sage-soft); color: var(--sage); font-weight: 600; }

/* --- nút Full Search: riêng 1 hàng, rộng hết thẻ --- */
.sku-full {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 12px; padding: 11px;
}
.sku-full-hint { font-size: 11.5px; font-weight: 500; opacity: .8; }
.sku-full-hint:empty { display: none; }

/* --- lưới nguồn tra cứu --- */
.tile-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px; margin-top: 12px;
}
@media (max-width: 760px) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.link-tile {
  display: flex; flex-direction: column; gap: 5px; text-align: left;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); background: var(--surface);
  font: inherit; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, opacity .12s ease;
}
.link-tile:hover { border-color: var(--accent); box-shadow: var(--shadow-card); transform: translateY(-1px); }
/* Nút không hợp loại mã đang gõ: mờ đi để anh liếc thấy, nhưng vẫn bấm được */
.link-tile.is-off { opacity: .45; }
.link-tile.is-off:hover { opacity: 1; }

.tile-icon { font-size: 17px; color: var(--accent); }
.tile-name { font-weight: 600; font-size: 13.5px; }
.tile-desc { font-size: 11.5px; color: var(--ink-muted); word-break: break-word; }
