/* Header search autocomplete — two-pane dropdown
   (left: category suggestions + top brands, right: product cards) */

.ts-suggestions {
  display: none;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  font-size: 14px;
  color: #1f2d3d;
}

.ts-panels {
  display: flex;
  align-items: stretch;
}

/* ── Left pane ── */
.ts-left {
  flex: 0 0 34%;
  max-width: 34%;
  padding: 14px 16px;
  border-right: 1px solid #eee;
  background: #fff;
}

.ts-section + .ts-section {
  margin-top: 14px;
}

.ts-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 8px;
}

.ts-cat-item,
.ts-brand-item {
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
  color: #0a3161;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ts-cat-item:hover,
.ts-cat-item.active,
.ts-brand-item:hover {
  background: #f3f6fb;
}

.ts-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ts-brand-item {
  border: 1px solid #d8dee9;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
}

/* ── Right pane ── */
.ts-right {
  flex: 1 1 auto;
  min-width: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}

.ts-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  flex: 1 1 auto;
}

.ts-product {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ts-product:hover .ts-product-name {
  text-decoration: underline;
}

.ts-product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #ececec;
  border-radius: 10px;
  overflow: hidden;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ts-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ts-product-name {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ts-product-price {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
  color: #0a3161;
}

.ts-seeall {
  display: block;
  margin-top: 14px;
  padding: 12px;
  text-align: center;
  background: #18b3a7;
  color: #fff !important;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
}

.ts-seeall:hover {
  background: #139a8f;
}

.ts-empty {
  padding: 18px 8px;
  color: #888;
  text-align: center;
}

/* ── Responsive: stack panes on small screens ── */
@media (max-width: 600px) {
  .ts-panels {
    flex-direction: column;
  }
  .ts-left {
    flex-basis: auto;
    max-width: none;
    border-right: 0;
    border-bottom: 1px solid #eee;
  }
  .ts-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
