/**
 * Soulmkt SenSearch - Estilos
 *
 * @category    Soulmkt
 * @package     Soulmkt_SenSearch
 * @author      Soulmkt <dev@soulmkt.com.br>
 * @copyright   Copyright Soulmkt (http://soulmkt.com.br/)
 * @version     2.7.50
 */

/* =========================================================================
   DESIGN TOKENS (SenSearch)
   Raio theme-aware via atributo [theme] no <html> (page/1column.phtml:40).
   Precedente em produção: soulpayment/pricing-classic.css.
   Todo consumo deve usar var(--token, fallback) para blindar o default.
   ========================================================================= */

:root {
  /* Spacing (rem) */
  --sensearch-space-1: 0.25rem;
  --sensearch-space-2: 0.5rem;
  --sensearch-space-3: 0.75rem;
  --sensearch-space-4: 1rem;
  --sensearch-space-5: 1.5rem;
  --sensearch-space-6: 2rem;
  --sensearch-space-7: 3rem;

  /* Raio (default) */
  --sensearch-radius-sm: 0.375rem;
  --sensearch-radius-md: 0.5rem;
  --sensearch-radius-lg: 0.75rem;
  --sensearch-radius-panel: 1rem;
  --sensearch-radius-pill: 62.4375rem;

  /* Cores (theme-aware; accent herda a cor primária do tema quando disponível) */
  --sensearch-fg: var(--color-text, hsl(213 13% 14%));
  --sensearch-fg-muted: hsl(0 0% 40%);
  --sensearch-fg-subtle: hsl(218 11% 65%);
  --sensearch-surface: hsl(0 0% 100%);
  --sensearch-surface-page: hsl(36 20% 95%);
  --sensearch-surface-hover: hsl(220 14% 96%);
  --sensearch-border: hsl(220 13% 91%);
  --sensearch-border-strong: hsl(216 12% 84%);
  --sensearch-overlay: rgb(17 24 39 / 45%);
  --sensearch-accent: var(--theme-primary-color, hsl(221 39% 11%));
  --sensearch-accent-fg: hsl(0 0% 100%);
  --sensearch-price: var(--color-price, hsl(213 13% 14%));
  --sensearch-price-special: hsl(142 76% 36%);
  --sensearch-focus-ring: rgb(17 24 39 / 35%);
  --sensearch-shadow-panel: 0 0.5rem 1.5rem rgb(149 157 165 / 20%);
}

:root[theme='rounded'] {
  --sensearch-radius-sm: 0.25rem;
  --sensearch-radius-md: 0.25rem;
  --sensearch-radius-lg: 0.375rem;
  --sensearch-radius-panel: 0.5rem;
  --sensearch-radius-pill: 62.4375rem;
}

:root[theme='circle'] {
  --sensearch-radius-sm: 0.625rem;
  --sensearch-radius-md: 0.9375rem;
  --sensearch-radius-lg: 1.25rem;
  --sensearch-radius-panel: 1.5rem;
  --sensearch-radius-pill: 62.4375rem;
}

/* =========================================================================
   BUSCA - WRAPPER E BADGE IA (Mini Form)
   ========================================================================= */

.sensearch-search-wrapper {
  align-items: center;
  display: flex;
  position: relative;
}

/* Barra de busca em DESTAQUE quando o autocomplete está aberto (desktop, tipo Amazon).
   A classe .sensearch-ac-open é adicionada pelo JS (_showAutocomplete) só no desktop
   e removida no teardown único (_hideAutocomplete). z-index ACIMA do overlay (99998)
   e do painel (99999) para o input ficar "iluminado" sobre a página escurecida. */
.sensearch-search-wrapper.sensearch-ac-open {
  background: var(--sensearch-surface, hsl(0 0% 100%));
  border-radius: var(--sensearch-radius-md, 0.5rem);
  box-shadow: var(--sensearch-shadow-panel, 0 0.5rem 1.5rem rgb(149 157 165 / 20%));
  position: relative;
  z-index: 100000;
}

.sensearch-sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.sensearch-ai-badge {
  align-items: center;
  background: hsl(229 76% 66%);
  border-radius: 4px;
  color: hsl(0 0% 100%);
  cursor: help;
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  gap: 3px;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.sensearch-ai-badge svg {
  height: 12px;
  width: 12px;
}

/* =========================================================================
   BOTÃO AI MODE (Barra de busca)
   ========================================================================= */

.sensearch-ai-mode-btn {
  align-items: center;
  animation: sensearch-ai-btn-glow 3s ease-in-out infinite;
  background: var(--sensearch-ai-btn-bg, linear-gradient(135deg, hsl(229 76% 66%) 0%, hsl(270 37% 46%) 100%));
  border-radius: 5px;
  box-shadow: var(--sensearch-ai-btn-shadow, 0 2px 8px rgb(102 126 234 / 35%));
  color: hsl(0 0% 100%);
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 5px;
  letter-spacing: 0.3px;
  padding: 5px 12px;
  position: absolute;
  right: 70px;
  text-decoration: none;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  z-index: 2;
}

.sensearch-ai-mode-btn:hover {
  box-shadow: var(--sensearch-ai-btn-shadow-hover, 0 4px 16px rgb(102 126 234 / 50%));
  color: hsl(0 0% 100%);
  filter: brightness(1.1);
  text-decoration: none;
  transform: translateY(-50%) scale(1.05);
}

.sensearch-ai-mode-btn:active {
  transform: translateY(-50%) scale(0.98);
}

.sensearch-ai-mode-btn-icon {
  align-items: center;
  display: flex;
  justify-content: center;
}

.sensearch-ai-mode-btn-icon svg {
  height: 14px;
  width: 14px;
}

.sensearch-ai-mode-btn-text {
  line-height: 1;
}

.sensearch-ai-mode-btn-sparkle {
  animation: sensearch-sparkle-rotate 2s linear infinite;
  display: inline-block;
  font-size: 10px;
}

@keyframes sensearch-ai-btn-glow {
  0%,
  100% {
    box-shadow: var(--sensearch-ai-btn-shadow, 0 2px 8px rgb(102 126 234 / 35%));
  }

  50% {
    box-shadow: var(--sensearch-ai-btn-shadow-glow, 0 2px 16px rgb(118 75 162 / 50%));
  }
}

@keyframes sensearch-sparkle-rotate {
  0% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }

  50% {
    opacity: 0.7;
    transform: rotate(180deg) scale(1.3);
  }

  100% {
    opacity: 1;
    transform: rotate(360deg) scale(1);
  }
}

/* Mobile: botão mais compacto */
@media (width <= 768px) {
  .sensearch-ai-mode-btn {
    font-size: 10px;
    gap: 3px;
    padding: 4px 8px;
    right: 44px;
  }

  .sensearch-ai-mode-btn-text {
    display: none;
  }

  .sensearch-ai-mode-btn-icon svg {
    height: 12px;
    width: 12px;
  }
}

/* =========================================================================
   PÁGINA DE RESULTADOS
   ========================================================================= */

.sensearch-results-page {
  margin: 0;
  max-width: 1299px;
  overflow-x: hidden;
  padding: 20px 0 0;
}

/* Barra de busca na página de resultados */
.sensearch-results-search-bar {
  margin-bottom: 24px;
}

.sensearch-results-input-wrapper {
  align-items: center;
  background: hsl(0 0% 100%);
  border: 2px solid hsl(220 13% 91%);
  border-radius: 12px;
  display: flex;
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.sensearch-results-input-wrapper:focus-within {
  border-color: hsl(229 76% 66%);
  box-shadow: 0 0 0 3px rgb(102 126 234 / 15%);
}

.sensearch-results-input {
  background: transparent;
  border: none;
  color: hsl(215 28% 17%);
  flex: 1;
  font-size: 16px;
  outline: none;
  padding: 14px 18px;
}

.sensearch-results-input::placeholder {
  color: hsl(218 11% 65%);
}

.sensearch-results-btn {
  align-items: center;
  background: hsl(229 76% 66%);
  border: none;
  color: hsl(0 0% 100%);
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  height: 48px;
  justify-content: center;
  transition: opacity 0.2s ease;
  width: 48px;
}

.sensearch-results-btn:hover {
  opacity: 0.9;
}

/* =========================================================================
   RESPOSTA DA IA (BUSCA CONVERSACIONAL)
   ========================================================================= */

.sensearch-ai-response {
  animation: sensearch-fadeIn 0.4s ease-out;
  background: hsl(216 33% 97%);
  border: 1px solid hsl(217 30% 86%);
  border-left: 4px solid hsl(229 76% 66%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 6%);
  margin-bottom: 24px;
  padding: 20px 24px;
}

.sensearch-ai-response.sensearch-ai-no-results {
  background: linear-gradient(135deg, hsl(48 100% 96%) 0%, hsl(48 96% 89%) 100%);
  border-color: hsl(46 97% 65%);
  border-left-color: hsl(38 92% 50%);
}

.sensearch-ai-header {
  align-items: center;
  border-bottom: 1px solid rgb(0 0 0 / 8%);
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.sensearch-ai-icon {
  align-items: center;
  background: hsl(229 76% 66%);
  border-radius: 50%;
  color: hsl(0 0% 100%);
  display: flex;
  flex-shrink: 0;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.sensearch-ai-icon svg {
  height: 16px;
  width: 16px;
}

.sensearch-ai-title {
  color: hsl(217 19% 27%);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sensearch-ai-badge-inline {
  align-items: center;
  background: hsl(229 76% 66%);
  border-radius: 4px;
  color: hsl(0 0% 100%);
  display: inline-flex;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 6px;
}

.sensearch-ai-content {
  color: hsl(215 14% 34%);
  font-size: 14px;
  line-height: 1.7;
}

.sensearch-ai-content p {
  margin-bottom: 8px;
}

.sensearch-ai-content p:last-child {
  margin-bottom: 0;
}

.sensearch-ai-link {
  border-bottom: 1px dashed hsl(229 76% 66%);
  color: hsl(229 76% 66%);
  font-weight: 600;
  text-decoration: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.sensearch-ai-link:hover {
  border-bottom-color: hsl(270 37% 46%);
  color: hsl(270 37% 46%);
  text-decoration: none;
}

/* =========================================================================
   CABEÇALHO DOS RESULTADOS
   ========================================================================= */

.sensearch-results-header {
  border-bottom: 1px solid hsl(220 13% 91%);
  margin-bottom: 24px;
  padding-bottom: 16px;
}

.sensearch-results-header h1 {
  color: hsl(215 28% 17%);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
}

.sensearch-meta {
  align-items: center;
  color: hsl(218 11% 65%);
  display: flex;
  font-size: 12px;
  gap: 4px;
  margin-top: 4px;
}

.sensearch-meta svg {
  flex-shrink: 0;
}

/* =========================================================================
   SEM RESULTADOS
   ========================================================================= */

.sensearch-no-results {
  padding: 20px 0;
}

.sensearch-no-results-content {
  padding: 40px 20px;
  text-align: center;
}

.sensearch-no-results-content svg {
  margin-bottom: 16px;
}

.sensearch-no-results-content h2 {
  color: hsl(217 19% 27%);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}

.sensearch-no-results-content p {
  color: hsl(0 0% 40%);
  font-size: 14px;
  margin: 0 0 20px;
}

.sensearch-suggestions {
  display: inline-block;
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.sensearch-suggestions li {
  color: hsl(0 0% 40%);
  font-size: 13px;
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.sensearch-suggestions li::before {
  color: hsl(229 76% 66%);
  content: '\2022';
  left: 6px;
  position: absolute;
}

/* =========================================================================
   AUTOCOMPLETE / INSTANT SEARCH - DROPDOWN CONTAINER
   ========================================================================= */

.sensearch-autocomplete {
  background: hsl(0 0% 99%);
  border: 0;
  box-shadow: var(--sensearch-shadow-panel, 0 0.5rem 1.5rem rgb(149 157 165 / 20%));
  overflow: hidden;
  overscroll-behavior: contain;
  position: fixed;
  scrollbar-width: thin;
  z-index: 99999;
}

/* Overlay do autocomplete (desktop): escurece a página atrás do painel.
   Criado lazily pelo JS (#sensearch-overlay), z-index ABAIXO do painel. */
#sensearch-overlay {
  background: var(--sensearch-overlay, rgb(17 24 39 / 45%));
  display: none;
  inset: 0;
  position: fixed;
  z-index: 99998;
}

#sensearch-overlay.sensearch-overlay-active {
  display: block;
}

@media (width >= 768px) {
  :has(.sensearch-overlay-active) #header-search {
    position: relative;
    z-index: 999999;

    #search_mini_form {
      border: none;
    }
  }
}

/* =========================================================================
   TELA NOVA DE BUSCA MOBILE (#sensearch-screen) — v2.7.49
   Container próprio (NÃO o dropdown promovido a fullscreen). Markup estático
   nos templates; o JS (SoulmktSenSearchScreen) só alterna display. No desktop
   fica oculto (regra dedicada mais abaixo); vale para form.mini e form.modal.
   ========================================================================= */

/* Escondido por padrão (o JS aplica display:flex ao abrir). No desktop a regra
   com !important garante que nunca apareça, mesmo com display inline do JS. */
#sensearch-screen {
  display: none;
}

/* Foco visível consistente em elementos interativos do SenSearch */
.sensearch-autocomplete :focus-visible,
.sensearch-ac-product-card:focus-visible,
.sensearch-ac-suggest-item:focus-visible,
.sensearch-ac-brand-tag:focus-visible {
  outline: 0.125rem solid var(--sensearch-focus-ring, rgb(17 24 39 / 35%));
  outline-offset: 0.125rem;
}

/* =========================================================================
   MODAL FULLSCREEN (form.modal.phtml) — reskin SÓ quando SenSearch ativo.
   Escopado em .c-search--sensearch: o fallback Amasty (.c-search sem o
   modificador) nunca é atingido por estas regras.
   ========================================================================= */

/* Header do modal: título "Busca" centralizado + X reposicionado à direita */
.sensearch-modal-header {
  display: none;
  padding-bottom: var(--sensearch-space-3);
  position: relative;
  text-align: center;
}

.sensearch-modal-title {
  color: var(--sensearch-fg, hsl(213 13% 14%));
  font-size: 1rem;
  font-weight: 700;
}

@media (width <= 768px) {
  /* Especificidade 0,2,0 (.c-search.c-search--sensearch) para VENCER a cascata
     contra o <style> inline de form.modal.phtml (.c-search, 0,1,0) que carrega
     depois deste arquivo. Sem isso o reskin (fundo/header/fullscreen) perde.
     O fallback Amasty (.c-search sem o modificador) permanece intocado. */
  .c-search.c-search--sensearch {
    background: var(--sensearch-surface-page, hsl(36 20% 95%));
  }

  /* Fullscreen SÓ quando aberto: sem altura de container o grid-template-rows:1fr
     colapsa para a altura do conteúdo. Aplicar height só em [open] preserva o
     estado fechado (grid 0fr colapsa a 0 e não bloqueia cliques na página).
     dvh cobre a barra de endereço em mobile; vh é fallback. */
  .c-search.c-search--sensearch[open] {
    height: 100vh;
    height: 100dvh;
  }

  .c-search.c-search--sensearch .sensearch-modal-header {
    display: block;
  }

  /* X no canto superior direito do header */
  .c-search.c-search--sensearch .c-search__close {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
  }

  /* Input arredondado (lupa + clear) */
  .c-search.c-search--sensearch .c-search__input {
    background-color: var(--sensearch-surface, hsl(0 0% 100%));
    border: 0.0625rem solid var(--sensearch-border, hsl(220 13% 91%));
    border-radius: var(--sensearch-radius-md, 0.5rem);
  }

  /* Container interno rola; body é travado pela classe sensearch-no-scroll */
  .c-search.c-search--sensearch .c-search-content {
    overscroll-behavior: contain;
  }

  /* --- TELA NOVA DE BUSCA MOBILE (#sensearch-screen) ---
     Container próprio, fixed inset:0, flex column. z-index acima do header
     sticky E do modal .c-search (9999) — reusa o mesmo teto do painel
     (99999). Fica FORA do subtree do modal (.searching-process tem filter:blur,
     que criaria stacking context aprisionando o fixed): o markup vive direto
     no <form>/nível de página, não dentro de .c-search-content. */
  #sensearch-screen {
    background: hsl(0 0% 99%);
    display: none;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    inset: 0;
    position: fixed;
    z-index: 99999;
  }

  :has(.sensearch-screen--open)
    :is(#soulmktcc-trigger, #scroll-top, .cookie-consent__icon, .sys_dev_tools, #dev-panel-trigger) {
    display: none !important;
  }

  /* Header FIXO no topo: título "Busca" + X (linha superior) + campo de busca. */
  .sensearch-screen-header {
    align-items: flex-start;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: var(--sensearch-space-5);
    padding: var(--sensearch-space-4) var(--sensearch-space-4) var(--sensearch-space-2);
  }

  /* Título "Busca" + X ficam numa linha superior; o campo abaixo. Usamos
     grid de duas linhas dentro do header via wrapper para o título/X. */
  .sensearch-screen-titlebar {
    align-items: center;
    display: flex;
    flex: 1 1 100%;
    justify-content: space-between;
    order: -1;
    width: 100%;
  }

  .sensearch-screen-title {
    color: hsl(194 16% 25%);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02rem;
    padding-left: 0.25rem;
  }

  .sensearch-screen-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--sensearch-fg, hsl(213 13% 14%));
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    line-height: 1;
    padding: var(--sensearch-space-1);
  }

  .sensearch-screen-close svg {
    height: 0.875rem;
    width: 0.875rem;
  }

  .sensearch-screen__input-wrap {
    display: flex;
    gap: var(--sensearch-space-2, 0.5rem);
    width: 100%;
  }

  /* Campo de busca próprio da tela */
  .sensearch-screen-input {
    background: var(--sensearch-surface, hsl(0 0% 100%));
    border: 0.0625rem solid var(--sensearch-border, hsl(220 13% 91%));
    border-radius: var(--sensearch-radius-md, 0.5rem);
    color: var(--sensearch-fg, hsl(213 13% 14%));
    flex: 1 1 auto;
    font-size: 1rem;
    height: auto;
    line-height: 1.5;
    min-width: 0;
    padding: var(--sensearch-space-2) var(--sensearch-space-4);
  }

  .sensearch-screen-input:focus {
    border-color: var(--sensearch-border-strong, hsl(216 12% 84%));
    outline: none;
  }

  /* Botão de submeter a busca — ao lado do input, ação sólida. */
  .sensearch-screen__submit {
    align-items: center;
    background: var(--sensearch-accent, hsl(221 39% 11%));
    border: 0;
    border-radius: var(--sensearch-radius-md, 0.5rem);
    color: var(--sensearch-accent-fg, hsl(0 0% 100%));
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    line-height: 1;
    min-height: 2.75rem;
    min-width: 2.75rem;
    padding: var(--sensearch-space-2);
    transition:
      filter 0.15s ease,
      transform 0.1s ease;
  }

  .sensearch-screen__submit svg {
    height: 1.25rem;
    width: 1.25rem;
  }

  .sensearch-screen__submit:hover {
    filter: brightness(0.92);
  }

  .sensearch-screen__submit:focus-visible {
    outline: 0.125rem solid var(--sensearch-accent, hsl(221 39% 11%));
    outline-offset: 0.125rem;
  }

  .sensearch-screen__submit:active {
    filter: brightness(0.85);
    transform: scale(0.96);
  }

  /* Corpo rolável — sugestões + grid rolam juntos. */
  .sensearch-screen-body {
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--sensearch-space-4);
    scrollbar-width: thin;
  }

  /* --- Seção de SUGESTÕES (termos/categorias/marcas), ACIMA do grid --- */
  .sensearch-screen-suggestions:not(:empty) {
    margin-bottom: var(--sensearch-space-4);
  }

  .sensearch-screen-suggest-group {
    margin-bottom: var(--sensearch-space-4);
  }

  .sensearch-screen-suggest-group:last-child {
    margin-bottom: 0;
  }

  .sensearch-screen-suggest-title {
    color: var(--sensearch-fg-muted, hsl(0 0% 40%));
    font-size: 0.6875rem;
    padding: 0 var(--sensearch-space-1) var(--sensearch-space-2);
    text-transform: uppercase;
  }

  .sensearch-screen-suggest-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .sensearch-screen-suggest-item {
    align-items: center;
    border-radius: var(--sensearch-radius-sm, 0.375rem);
    color: var(--sensearch-fg, hsl(213 13% 14%));
    cursor: pointer;
    display: flex;
    font-size: 0.9375rem;
    gap: var(--sensearch-space-2);
    line-height: 1.4;
    padding: var(--sensearch-space-2) var(--sensearch-space-1);
  }

  .sensearch-screen-suggest-item:active {
    background: var(--sensearch-surface-hover, hsl(220 14% 96%));
  }

  .sensearch-screen-suggest-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sensearch-screen-suggest-text strong {
    color: var(--sensearch-fg, hsl(213 13% 14%));
    font-weight: 700;
  }

  .sensearch-screen-suggest-count {
    color: var(--sensearch-fg-subtle, hsl(218 11% 65%));
    font-size: 0.75rem;
    font-weight: 400;
    margin-left: 0.125rem;
  }

  /* Lupa reusa .sensearch-ac-suggest-icon (definido fora do media query). */

  /* --- Marcas como chips --- */
  .sensearch-screen-brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sensearch-space-2);
  }

  .sensearch-screen-brand-tag {
    align-items: center;
    background: var(--sensearch-surface, hsl(0 0% 100%));
    border: 0.0625rem solid var(--sensearch-border, hsl(220 13% 91%));
    border-radius: var(--sensearch-radius-pill, 62.4375rem);
    color: var(--sensearch-fg, hsl(213 13% 14%));
    cursor: pointer;
    display: inline-flex;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: var(--sensearch-space-1) var(--sensearch-space-3);
    text-decoration: none;
  }

  .sensearch-screen-brand-tag:active {
    background: var(--sensearch-accent, hsl(221 39% 11%));
    border-color: var(--sensearch-accent, hsl(221 39% 11%));
    color: var(--sensearch-accent-fg, hsl(0 0% 100%));
  }

  /* Grid 2 colunas de cards elegantes (reusa .sensearch-ac-product-card). */
  .sensearch-screen-grid {
    display: grid;
    gap: var(--sensearch-space-3);
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  }
}

/* Desktop: a tela nova nunca aparece (a busca desktop é o dropdown). */
@media (width >= 769px) {
  #sensearch-screen {
    display: none !important;
  }
}

/* =========================================================================
   AUTOCOMPLETE - TWO COLUMN LAYOUT (Samsung-inspired)
   ========================================================================= */

.sensearch-ac-container {
  display: flex;
  min-height: 6.25rem;
}

/* --- Section title (used in both columns) --- */
.sensearch-ac-section-title {
  color: var(--sensearch-fg-muted, hsl(0 0% 40%));
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.02rem;
  padding: var(--sensearch-space-4) var(--sensearch-space-5) var(--sensearch-space-3);
  text-transform: uppercase;
}

/* --- Left column: Search term suggestions --- */
.sensearch-ac-suggestions {
  border-right: 0.0625rem solid var(--sensearch-border, hsl(220 13% 91%));
  flex: 0 0 28%;
  max-width: 28%;
  overflow-y: auto;
  padding: var(--sensearch-space-2) var(--sensearch-space-2) var(--sensearch-space-3);
}

.sensearch-ac-suggestions.sensearch-ac-full {
  border-right: none;
  flex: 1;
  max-width: 100%;
}

.sensearch-ac-suggest-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sensearch-ac-suggest-item {
  align-items: center;
  border-radius: var(--sensearch-radius-sm, 0.375rem);
  color: var(--sensearch-fg, hsl(213 13% 14%));
  cursor: pointer;
  display: flex;
  font-size: 0.875rem;
  gap: var(--sensearch-space-2);
  line-height: 1.4;
  margin: 0 var(--sensearch-space-1);
  padding: var(--sensearch-space-2) var(--sensearch-space-3);
  transition: background 0.15s ease;
}

.sensearch-ac-suggest-item:hover,
.sensearch-ac-suggest-item.active {
  background: var(--sensearch-surface-hover, hsl(220 14% 96%));
}

.sensearch-ac-suggest-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sensearch-ac-suggest-text strong {
  color: var(--sensearch-fg, hsl(213 13% 14%));
  font-weight: 700;
}

/* Count badge in contextual suggestions */
.sensearch-ac-suggest-count {
  color: var(--sensearch-fg-subtle, hsl(218 11% 65%));
  font-size: 0.6875rem;
  font-weight: 400;
  margin-left: 0.125rem;
}

/* --- Suggestion groups (contextual facet sections) --- */
.sensearch-ac-suggest-group {
  margin-bottom: var(--sensearch-space-3);
}

.sensearch-ac-suggest-group:last-child {
  margin-bottom: 0;
}

.sensearch-ac-suggest-group .sensearch-ac-section-title {
  color: var(--sensearch-fg-muted, hsl(0 0% 40%));
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.02rem;
  padding: var(--sensearch-space-4) var(--sensearch-space-4) var(--sensearch-space-3);
  text-transform: uppercase;
}

/* Lupa (magnifier) icon at the left of each suggestion item */
.sensearch-ac-suggest-icon {
  align-items: center;
  color: var(--sensearch-fg-muted, hsl(0 0% 40%));
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.75rem;
  height: 1rem;
  justify-content: center;
  width: 1rem;
}

.sensearch-ac-suggest-icon svg {
  height: 1rem;
  width: 1rem;
}

/* --- Brand tags (pill style) --- */
.sensearch-ac-brand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sensearch-space-2);
  padding: var(--sensearch-space-1) var(--sensearch-space-4) var(--sensearch-space-2);
}

.sensearch-ac-brand-tag {
  align-items: center;
  background: var(--sensearch-surface, hsl(0 0% 100%));
  border: 0.0625rem solid var(--sensearch-border, hsl(220 13% 91%));
  border-radius: var(--sensearch-radius-pill, 62.4375rem);
  color: var(--sensearch-fg, hsl(213 13% 14%));
  cursor: pointer;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 600;
  gap: var(--sensearch-space-1);
  padding: var(--sensearch-space-1) var(--sensearch-space-3);
  text-decoration: none;
  transition: all 0.15s ease;
}

.sensearch-ac-brand-tag:hover {
  background: var(--sensearch-accent, hsl(221 39% 11%));
  border-color: var(--sensearch-accent, hsl(221 39% 11%));
  color: var(--sensearch-accent-fg, hsl(0 0% 100%));
  text-decoration: none;
}

.sensearch-ac-brand-tag:hover .sensearch-ac-suggest-icon {
  color: var(--sensearch-accent-fg, hsl(0 0% 100%));
}

.sensearch-ac-brand-tag .sensearch-ac-suggest-icon {
  font-size: 0.625rem;
  height: 0.75rem;
  margin-right: 0.125rem;
  width: 0.75rem;
}

/* --- Right column: Product suggestions --- */
.sensearch-ac-products {
  flex: 1;
  max-height: 80vh;
  min-width: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Header row: title + AI Mode button */
.sensearch-ac-products-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-right: var(--sensearch-space-3);
}

.sensearch-ac-products-header .sensearch-ac-section-title {
  padding-right: 0;
}

/* AI Mode button inside autocomplete (pill) */
.sensearch-ai-mode-btn-ac {
  align-items: center;
  animation: sensearch-ai-btn-glow-ac 3s ease-in-out infinite;
  border-radius: var(--sensearch-radius-pill, 62.4375rem);
  color: hsl(0 0% 100%);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.6875rem;
  font-weight: 700;
  gap: var(--sensearch-space-1);
  letter-spacing: 0.02rem;
  padding: var(--sensearch-space-1) var(--sensearch-space-3);
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.sensearch-ai-mode-btn-ac:hover {
  color: hsl(0 0% 100%);
  filter: brightness(1.1);
  text-decoration: none;
  transform: scale(1.05);
}

.sensearch-ai-mode-btn-ac:active {
  transform: scale(0.98);
}

@keyframes sensearch-ai-btn-glow-ac {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.15);
  }
}

.sensearch-ac-products.sensearch-ac-full {
  flex: 1;
  max-width: 100%;
}

.sensearch-ac-products {
  container-type: inline-size;
}

.sensearch-ac-products-grid {
  --_min-item-width: 12rem;

  align-items: stretch;
  display: grid;
  gap: var(--sensearch-space-4) var(--sensearch-space-5);
  grid-template-columns: repeat(auto-fill, minmax(var(--_min-item-width), 1fr));
  padding: var(--sensearch-space-4) var(--sensearch-space-5);
  padding-block-start: 0;

  @container (width <= 991px) {
    --_min-item-width: 11rem;

    gap: 1rem;
  }
}

/* Card moderno: grid interno de 3 tracks (imagem / nome / preço).
   Isso alinha o preço no rodapé e a linha de nome ao topo, sem subgrid real
   (os cards do autocomplete não passam pelo helper soulcore/grid_product). */
.sensearch-ac-product-card {
  background: var(--sensearch-surface, hsl(0 0% 100%));
  border: 1px solid hsl(0 0% 97%);
  border-radius: var(--sensearch-radius-lg, 0.75rem);
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: var(--sensearch-space-2);
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.15s ease;
}

.sensearch-ac-product-card:hover,
.sensearch-ac-product-card.active {
  box-shadow: var(--sensearch-shadow-panel, 0 0.5rem 1.5rem rgb(149 157 165 / 20%));
  color: inherit;
  text-decoration: none;
}

.sensearch-ac-product-img {
  align-items: center;
  aspect-ratio: 1;
  background: hsl(0 0% 100%);
  border-radius: var(--sensearch-radius-md, 0.5rem);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
  width: 100%;
}

.sensearch-ac-product-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.sensearch-ac-product-info {
  padding-block-end: var(--sensearch-space-3);
  padding-inline: var(--sensearch-space-3);
  text-align: left;
  width: 100%;
}

/* Nome COMPLETO: sem ellipsis de linha única; -webkit-line-clamp:2 como salvaguarda */
.sensearch-ac-product-name {
  -webkit-box-orient: vertical;
  color: var(--sensearch-fg, hsl(213 13% 14%));
  display: -webkit-box;
  font-size: 0.875rem;
  font-weight: 500;
  -webkit-line-clamp: 3;
  line-height: 1.1;
  overflow: hidden;
  text-wrap: balance;
}

.sensearch-ac-product-price {
  align-self: end;
  color: var(--sensearch-price, hsl(213 13% 14%));
  font-size: 0.8125rem;
  font-weight: 700;
}

/* Slot reservado para add-to-cart (fora de escopo — sem funcionalidade) */
.sensearch-ac-product-action {
  display: none;
}

.sensearch-ac-price-old {
  color: var(--sensearch-fg-subtle, hsl(218 11% 65%));
  font-size: 0.6875rem;
  font-weight: 400;
  margin-right: var(--sensearch-space-1);
  text-decoration: line-through;
}

.sensearch-ac-price-special,
.sensearch-ac-price-pix {
  color: var(--sensearch-price-special, hsl(142 76% 36%));
  font-weight: 700;
}

/* --- Empty state (nenhum produto): NÃO esconder o painel --- */
.sensearch-ac-empty {
  align-items: center;
  color: var(--sensearch-fg-muted, hsl(0 0% 40%));
  display: flex;
  flex-direction: column;
  font-size: 0.875rem;
  gap: var(--sensearch-space-3);
  padding: var(--sensearch-space-6) var(--sensearch-space-4);
  text-align: center;
}

.sensearch-ac-empty-text {
  color: var(--sensearch-fg-muted, hsl(0 0% 40%));
}

.sensearch-ac-empty-text strong {
  color: var(--sensearch-fg, hsl(213 13% 14%));
}

/* --- Skeleton (loading durante o debounce) --- */
.sensearch-ac-skeleton-line {
  animation: sensearch-shimmer 1.4s ease infinite;
  background: linear-gradient(
    90deg,
    var(--sensearch-surface-hover, hsl(220 14% 96%)) 25%,
    var(--sensearch-border, hsl(220 13% 91%)) 37%,
    var(--sensearch-surface-hover, hsl(220 14% 96%)) 63%
  );
  background-size: 400% 100%;
  border-radius: var(--sensearch-radius-sm, 0.375rem);
  height: 0.875rem;
  margin: var(--sensearch-space-2) var(--sensearch-space-4);
}

.sensearch-ac-skeleton-line:nth-child(2) {
  width: 70%;
}

.sensearch-ac-skeleton-line:nth-child(3) {
  width: 55%;
}

.sensearch-ac-skeleton-card {
  border: 0.0625rem solid var(--sensearch-border, hsl(220 13% 91%));
  border-radius: var(--sensearch-radius-lg, 0.75rem);
  display: grid;
  gap: var(--sensearch-space-2);
  grid-template-rows: auto 0.875rem 0.875rem;
  padding: var(--sensearch-space-3);
}

.sensearch-ac-skeleton-card::before {
  animation: sensearch-shimmer 1.4s ease infinite;
  aspect-ratio: 1;
  background: linear-gradient(
    90deg,
    var(--sensearch-surface-hover, hsl(220 14% 96%)) 25%,
    var(--sensearch-border, hsl(220 13% 91%)) 37%,
    var(--sensearch-surface-hover, hsl(220 14% 96%)) 63%
  );
  background-size: 400% 100%;
  border-radius: var(--sensearch-radius-md, 0.5rem);
  content: '';
}

.sensearch-ac-skeleton-card .sensearch-ac-skeleton-line {
  margin: 0;
  width: 100%;
}

@keyframes sensearch-shimmer {
  0% {
    background-position: 100% 0;
  }

  100% {
    background-position: 0 0;
  }
}

/* --- Footer --- */
.sensearch-ac-footer {
  background: var(--sensearch-surface, hsl(0 0% 100%));
  border-radius: 0 0 var(--sensearch-radius-panel, 1rem) var(--sensearch-radius-panel, 1rem);
  border-top: 0.0625rem solid var(--sensearch-border, hsl(220 13% 91%));
  padding: var(--sensearch-space-2) var(--sensearch-space-4);
  text-align: center;
}

.sensearch-ac-footer a {
  color: var(--sensearch-accent, hsl(221 39% 11%));
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.sensearch-ac-footer a:hover {
  text-decoration: underline;
}

/* =========================================================================
   ANIMAÇÕES
   ========================================================================= */

@keyframes sensearch-fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================================
   RESPONSIVO
   ========================================================================= */

@media (width <= 768px) {
  .sensearch-results-page {
    padding: 12px 0;
  }

  .sensearch-ai-response {
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 14px 16px;
  }

  .sensearch-ai-content {
    font-size: 13px;
  }

  .sensearch-ai-badge {
    font-size: 9px;
    padding: 1px 4px;
    right: 44px;
  }

  /* Mobile: stack columns vertically */
  .sensearch-ac-container {
    flex-direction: column;
  }

  .sensearch-ac-suggestions {
    border-bottom: 0.0625rem solid var(--sensearch-border, hsl(220 13% 91%));
    border-right: none;
    flex: none;
    max-width: 100%;
    padding-bottom: var(--sensearch-space-1);
  }

  .sensearch-ac-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sensearch-ac-section-title {
    font-size: 0.625rem;
    padding: var(--sensearch-space-2) var(--sensearch-space-3);
  }

  .sensearch-ac-suggest-item {
    font-size: 0.8125rem;
    padding: var(--sensearch-space-2) var(--sensearch-space-3);
  }

  .sensearch-results-header h1 {
    font-size: 18px;
  }

  .sensearch-results-input {
    font-size: 14px;
    padding: 12px 14px;
  }
}

/* =========================================================================
   CHAT CONVERSACIONAL - WIDGET FLUTUANTE
   ========================================================================= */

.sensearch-chat-widget {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  position: fixed;
  z-index: 99999;
}

.sensearch-chat-bottom-right {
  bottom: 20px;
  right: 20px;
}

.sensearch-chat-bottom-left {
  bottom: 20px;
  left: 20px;
}

/* Botão flutuante (FAB) */
.sensearch-chat-toggle {
  align-items: center;
  background: var(--chat-bg, hsl(229 76% 66%));
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgb(102 126 234 / 40%);
  color: hsl(0 0% 100%);
  cursor: pointer;
  display: flex;
  height: 60px;
  justify-content: center;
  outline: none;
  position: relative;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  width: 60px;
}

.sensearch-chat-toggle:hover {
  box-shadow: 0 6px 24px rgb(102 126 234 / 50%);
  transform: scale(1.08);
}

.sensearch-chat-toggle:active {
  transform: scale(0.95);
}

.sensearch-chat-toggle-icon,
.sensearch-chat-toggle-close {
  align-items: center;
  display: flex;
  justify-content: center;
}

/* Pulse badge no botão */
.sensearch-chat-badge-pulse {
  animation: sensearch-pulse 2s ease-in-out infinite;
  background: hsl(142 71% 45%);
  border: 2px solid hsl(0 0% 100%);
  border-radius: 50%;
  height: 14px;
  position: absolute;
  right: 0;
  top: 0;
  width: 14px;
}

@keyframes sensearch-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.3);
  }
}

/* Janela do chat */
.sensearch-chat-window {
  animation: sensearch-chatSlideUp 0.3s ease-out;
  background: hsl(0 0% 100%);
  border-radius: 16px;
  bottom: 72px;
  box-shadow:
    0 8px 40px rgb(0 0 0 / 15%),
    0 0 0 1px rgb(0 0 0 / 5%);
  display: flex;
  flex-direction: column;
  max-height: 560px;
  overflow: hidden;
  position: absolute;
  width: 380px;
}

.sensearch-chat-bottom-right .sensearch-chat-window {
  right: 0;
}

.sensearch-chat-bottom-left .sensearch-chat-window {
  left: 0;
}

@keyframes sensearch-chatSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Cabeçalho do chat */
.sensearch-chat-header {
  align-items: center;
  background: var(--chat-bg, hsl(229 76% 66%));
  color: hsl(0 0% 100%);
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  padding: 14px 16px;
}

.sensearch-chat-header-info {
  align-items: center;
  display: flex;
  gap: 10px;
}

.sensearch-chat-header-icon {
  align-items: center;
  background: rgb(255 255 255 / 20%);
  border-radius: 50%;
  display: flex;
  flex-shrink: 0;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.sensearch-chat-header-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.sensearch-chat-header-badge {
  background: rgb(255 255 255 / 25%);
  border-radius: 3px;
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-top: 2px;
  padding: 1px 5px;
}

.sensearch-chat-header-actions {
  display: flex;
  gap: 4px;
}

.sensearch-chat-header-btn {
  align-items: center;
  background: rgb(255 255 255 / 15%);
  border: none;
  border-radius: 8px;
  color: hsl(0 0% 100%);
  cursor: pointer;
  display: flex;
  height: 32px;
  justify-content: center;
  transition: background 0.2s ease;
  width: 32px;
}

.sensearch-chat-header-btn:hover {
  background: rgb(255 255 255 / 30%);
}

/* Área de mensagens */
.sensearch-chat-messages {
  flex: 1;
  max-height: 360px;
  min-height: 200px;
  overflow-y: auto;
  padding: 16px;
  scroll-behavior: smooth;
}

/* Mensagem individual */
.sensearch-chat-msg {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.sensearch-chat-msg-user {
  flex-direction: row-reverse;
}

.sensearch-chat-msg-avatar {
  align-items: center;
  background: var(--chat-icon, hsl(229 76% 66%));
  border-radius: 50%;
  color: hsl(0 0% 100%);
  display: flex;
  flex-shrink: 0;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.sensearch-chat-msg-user .sensearch-chat-msg-avatar {
  display: none;
}

.sensearch-chat-msg-content {
  max-width: 80%;
}

.sensearch-chat-msg-text {
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.6;
  padding: 10px 14px;
  word-wrap: break-word;
}

.sensearch-chat-msg-assistant .sensearch-chat-msg-text {
  background: hsl(220 14% 96%);
  border-bottom-left-radius: 4px;
  color: hsl(217 19% 27%);
}

.sensearch-chat-msg-user .sensearch-chat-msg-text {
  background: var(--chat-bg, hsl(229 76% 66%));
  border-bottom-right-radius: 4px;
  color: hsl(0 0% 100%);
}

/* Links no chat */
.sensearch-chat-link {
  border-bottom: 1px dashed hsl(229 76% 66%);
  color: hsl(229 76% 66%);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sensearch-chat-link:hover {
  border-bottom-color: hsl(270 37% 46%);
  color: hsl(270 37% 46%);
}

.sensearch-chat-msg-user .sensearch-chat-link {
  border-bottom-color: hsl(226 100% 94%);
  color: hsl(226 100% 94%);
}

/* Product Cards */
.sensearch-chat-products {
  margin-top: 10px;
}

.sensearch-chat-products-label {
  align-items: center;
  color: hsl(218 11% 65%);
  display: flex;
  font-size: 11px;
  font-weight: 700;
  gap: 4px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.sensearch-chat-products-label svg {
  color: hsl(229 76% 66%);
}

.sensearch-chat-products-grid {
  display: flex;
  gap: 8px;
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.sensearch-chat-products-grid::-webkit-scrollbar {
  height: 4px;
}

.sensearch-chat-products-grid::-webkit-scrollbar-track {
  background: hsl(0 0% 95%);
  border-radius: 2px;
}

.sensearch-chat-products-grid::-webkit-scrollbar-thumb {
  background: hsl(253 95% 85%);
  border-radius: 2px;
}

.sensearch-chat-product-card {
  background: hsl(0 0% 100%);
  border: 1px solid hsl(220 13% 91%);
  border-radius: 10px;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  max-width: 140px;
  min-width: 120px;
  overflow: hidden;
  scroll-snap-align: start;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.sensearch-chat-product-card:hover {
  border-color: hsl(229 76% 66%);
  box-shadow: 0 2px 8px rgb(102 126 234 / 15%);
  color: inherit;
  text-decoration: none;
}

.sensearch-chat-product-img {
  align-items: center;
  background: hsl(210 20% 98%);
  display: flex;
  height: 100px;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

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

.sensearch-chat-product-noimg {
  color: hsl(216 12% 84%);
}

.sensearch-chat-product-info {
  padding: 6px 8px 8px;
}

.sensearch-chat-product-name {
  -webkit-box-orient: vertical;
  color: hsl(217 19% 27%);
  display: -webkit-box;
  font-size: 11px;
  font-weight: 600;
  -webkit-line-clamp: 2;
  line-height: 1.3;
  margin-bottom: 4px;
  overflow: hidden;
}

.sensearch-chat-product-price {
  font-size: 12px;
}

.sensearch-chat-product-finalprice {
  color: hsl(161 94% 30%);
  font-weight: 700;
}

.sensearch-chat-product-oldprice {
  color: hsl(218 11% 65%);
  font-size: 10px;
  text-decoration: line-through;
}

/* Cards inline de produto (dentro do texto da resposta) */
.sensearch-chat-inline-card {
  align-items: center;
  background: hsl(0 0% 100%);
  border: 1px solid hsl(220 13% 91%);
  border-radius: 10px;
  color: inherit;
  display: flex;
  gap: 8px;
  margin: 6px 0;
  overflow: hidden;
  padding: 6px 10px 6px 6px;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.sensearch-chat-inline-card:hover {
  border-color: hsl(229 76% 66%);
  box-shadow: 0 2px 8px rgb(102 126 234 / 15%);
  color: inherit;
  text-decoration: none;
}

.sensearch-chat-inline-card-img {
  background: hsl(210 20% 98%);
  border-radius: 6px;
  height: 50px;
  min-width: 50px;
  object-fit: cover;
  width: 50px;
}

.sensearch-chat-inline-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sensearch-chat-inline-card-name {
  -webkit-box-orient: vertical;
  color: hsl(217 19% 27%);
  display: -webkit-box;
  font-size: 11px;
  font-weight: 600;
  -webkit-line-clamp: 2;
  line-height: 1.3;
  overflow: hidden;
}

.sensearch-chat-inline-card-price {
  color: hsl(161 94% 30%);
  font-size: 11px;
  font-weight: 700;
}

.sensearch-chat-inline-card-oldprice {
  color: hsl(218 11% 65%);
  font-size: 10px;
  font-weight: 400;
  text-decoration: line-through;
}

/* Indicador de digitação */
.sensearch-chat-typing {
  align-items: center;
  display: flex;
  gap: 8px;
  padding: 0 16px 12px;
}

.sensearch-chat-typing-dots {
  background: hsl(220 14% 96%);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 4px;
  padding: 10px 14px;
}

.sensearch-chat-typing-dots span {
  animation: sensearch-typingBounce 1.4s ease-in-out infinite;
  background: hsl(218 11% 65%);
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.sensearch-chat-typing-dots span:nth-child(1) {
  animation-delay: 0s;
}

.sensearch-chat-typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.sensearch-chat-typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes sensearch-typingBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-6px);
  }
}

/* Área de input */
.sensearch-chat-input-area {
  background: hsl(0 0% 100%);
  border-top: 1px solid hsl(220 13% 91%);
  flex-shrink: 0;
}

.sensearch-chat-input-wrapper {
  align-items: flex-end;
  display: flex;
  gap: 8px;
  padding: 12px 16px 8px;
}

.sensearch-chat-input {
  border: 1px solid hsl(220 13% 91%);
  border-radius: 12px;
  color: hsl(217 19% 27%);
  flex: 1;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  max-height: 100px;
  min-height: 38px;
  outline: none;
  padding: 10px 14px;
  resize: none;
  transition: border-color 0.2s ease;
}

.sensearch-chat-input:focus {
  border-color: hsl(229 76% 66%);
  box-shadow: 0 0 0 2px rgb(102 126 234 / 10%);
}

.sensearch-chat-input::placeholder {
  color: hsl(218 11% 65%);
}

.sensearch-chat-send {
  align-items: center;
  background: var(--chat-bg, hsl(229 76% 66%));
  border: none;
  border-radius: 50%;
  color: hsl(0 0% 100%);
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  height: 38px;
  justify-content: center;
  transition:
    opacity 0.2s ease,
    transform 0.1s ease;
  width: 38px;
}

.sensearch-chat-send:hover:not(:disabled) {
  transform: scale(1.05);
}

.sensearch-chat-send:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

/* Footer do chat */
.sensearch-chat-footer {
  color: hsl(216 12% 84%);
  font-size: 10px;
  padding: 4px 16px 10px;
  text-align: center;
}

/* =========================================================================
   CHAT - RESPONSIVO
   ========================================================================= */

@media (width <= 480px) {
  @keyframes sensearch-chatSlideUpMobile {
    from {
      opacity: 0;
      transform: translateY(100%);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .sensearch-chat-widget {
    bottom: 12px;
    left: auto;
    right: 12px;
  }

  .sensearch-chat-bottom-left {
    left: 12px;
    right: auto;
  }

  .sensearch-chat-toggle {
    height: 52px;
    width: 52px;
  }

  .sensearch-chat-window {
    animation: sensearch-chatSlideUpMobile 0.3s ease-out;
    border-radius: 16px 16px 0 0;
    bottom: 0;
    left: 0;
    max-height: 85vh;
    position: fixed;
    right: 0;
    width: 100%;
  }

  .sensearch-chat-bottom-right .sensearch-chat-window,
  .sensearch-chat-bottom-left .sensearch-chat-window {
    left: 0;
    right: 0;
  }

  .sensearch-chat-messages {
    max-height: calc(85vh - 180px);
  }
}

@media (width <= 420px) {
  .sensearch-chat-window {
    width: 100%;
  }
}

/* =========================================================================
   PÁGINA DE RESULTADOS — Filtros Laterais + Carregar Mais (v2.7.0)
   ========================================================================= */

/* --- Layout 2 colunas (segue padrão SoulCore: sidebar 25% + main 75%) --- */
.sensearch-results-layout {
  align-items: flex-start;
  display: flex;
  gap: 0;
}

.sensearch-results-layout.sensearch-has-sidebar .sensearch-sidebar {
  box-sizing: border-box;
  float: left;
  padding: 0 10px;
  width: 25%;
}

.sensearch-results-layout.sensearch-has-sidebar .sensearch-main-content {
  box-sizing: border-box;
  float: left;
  min-width: 0;
  padding: 0 10px;
  width: 75%;
}

/* --- Linha 1: Título + Barra IA (v2.7.5) --- */
.sensearch-header-row {
  align-items: center;
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}

.sensearch-results-title {
  color: hsl(0 0% 20%);
  flex-shrink: 0;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
}

/* --- Linha 2: Barra de informações (v2.7.5) --- */
.sensearch-info-bar {
  align-items: center;
  border-bottom: 1px solid hsl(220 13% 91%);
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.sensearch-info-bar-left {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.sensearch-info-filters-btn {
  background: none;
  border: none;
  color: hsl(0 0% 20%);
  cursor: pointer;
  font-size: 0.875rem;
  margin-right: 1rem;
  padding: 0;
  padding-right: 1rem;
}

.sensearch-info-filters-btn strong {
  font-weight: 700;
}

.sensearch-info-count {
  color: hsl(0 0% 20%);
  font-size: 0.875rem;
}

.sensearch-info-count strong {
  font-weight: 700;
}

.sensearch-info-meta {
  align-items: center;
  color: hsl(0 0% 60%);
  display: inline-flex;
  font-size: 0.875rem;
  gap: 4px;
}

.sensearch-info-meta svg {
  height: 0.875rem;
  width: 0.875rem;
}

.sensearch-info-bar-right {
  align-items: center;
  display: flex;
}

.sensearch-sort-label {
  align-items: center;
  color: hsl(0 0% 20%);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.8rem;
  gap: 6px;
  position: relative;
  white-space: nowrap;
}

.sensearch-sort-label span {
  color: hsl(0 0% 20%);
  font-size: 0.875rem;
}

.sensearch-sort-select {
  appearance: none;
  background: none;
  color: hsl(0 0% 20%);
  cursor: pointer;
  font-size: 0.8rem;
  padding-right: 1.5rem;
  white-space: nowrap;
}

.sensearch-sort-select:focus {
  outline: none;
}

.sensearch-sort-arrow {
  color: hsl(0 0% 20%);
  pointer-events: none;
  position: absolute;
  right: 0.25rem;
}

/* --- Barra de busca removida (usa header) --- */
.sensearch-results-search-bar {
  display: none;
}

/* --- Sidebar de filtros (desktop) --- */
.sensearch-sidebar {
  background: var(--sensearch-surface, hsl(0 0% 100%));
  border-radius: var(--sensearch-radius-md, 0.5rem);
  padding: var(--sensearch-space-4);
  padding-inline-end: var(--sensearch-space-2);
  position: relative;
}

/* Handle (barrinha) do bottom-sheet — só visível no mobile */
.sensearch-sidebar-handle {
  display: none;
}

.sensearch-sidebar-header {
  display: none;
}

/* Rodapé do bottom-sheet (Limpar / Aplicar) — só visível no mobile */
.sensearch-sidebar-footer {
  display: none;
}

.sensearch-sidebar-header h3 {
  color: hsl(0 0% 20%);
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 5px;
  text-transform: uppercase;
}

.sensearch-sidebar-close {
  background: none;
  border: none;
  color: hsl(0 0% 20%);
  cursor: pointer;
  display: none;
  padding: 4px;
}

/* --- Grupos de filtro (accordion) --- */
.sensearch-filter-group {
  border-bottom: 1px solid hsl(220 14% 96%);
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.sensearch-filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sensearch-filter-title {
  align-items: center;
  background: none;
  border: none;
  color: hsl(0 0% 20%);
  cursor: pointer;
  display: flex;
  font-size: 0.8rem;
  font-weight: 600;
  justify-content: space-between;
  margin-bottom: 10px;
  margin-top: 20px;
  padding: 0;
  text-transform: uppercase;
  width: 100%;
}

.sensearch-filter-title:hover {
  color: hsl(0 0% 20%);
}

.sensearch-filter-arrow {
  transition: transform 0.2s ease;
}

.sensearch-filter-collapsed .sensearch-filter-arrow {
  transform: rotate(-90deg);
}

.sensearch-filter-collapsed .sensearch-filter-options {
  display: none;
}

/* --- Opções de filtro (checkboxes) --- */
.sensearch-filter-options {
  /* Sem max-height fixo — o "Ver mais" controla a visibilidade */
}

.sensearch-filter-option {
  align-items: center;
  color: hsl(0 0% 20%);
  cursor: pointer;
  display: flex;
  font-size: 0.85rem;
  gap: 8px;
  line-height: 1.4;
  padding: 4px 0;
}

/* Esconder opções com contagem 0 após filtrar */
.sensearch-filter-option.sensearch-filter-zero {
  display: none;
}

.sensearch-filter-option:hover {
  color: hsl(0 0% 20%);
}

.sensearch-filter-option input[type='checkbox'] {
  height: 0;
  opacity: 0;
  position: absolute;
  width: 0;
}

.sensearch-filter-checkbox {
  border: 1px solid hsl(0 0% 20%);
  border-radius: 5px;
  display: inline-block;
  flex-shrink: 0;
  font-weight: 600;
  height: 20px;
  position: relative;
  transition: all 0.15s ease;
  width: 20px;
}

.sensearch-filter-option input[type='checkbox']:checked + .sensearch-filter-checkbox {
  background: hsl(221 83% 53%);
  border-color: hsl(221 83% 53%);
  border-radius: 5px;
}

.sensearch-filter-option input[type='checkbox']:checked + .sensearch-filter-checkbox::after {
  border: solid hsl(0 0% 100%);
  border-width: 0 2px 2px 0;
  content: '';
  height: 10px;
  left: 6px;
  position: absolute;
  top: 2px;
  transform: rotate(45deg);
  width: 6px;
}

.sensearch-filter-label {
  white-space: normal;
  word-break: break-word;
}

.sensearch-filter-count {
  color: hsl(0 0% 20%);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* --- Barra promocional do Assistente IA (v2.7.5) --- */
.sensearch-ai-promo {
  align-items: center;
  background: hsl(0 0% 100%);
  border: 1px solid hsl(0 0% 88%);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex: 1;
  min-width: 0;
  padding: 10px 20px;
  text-decoration: none;
  transition: border-color 0.2s;
}

.sensearch-ai-promo:hover {
  border-color: hsl(0 0% 73%);
  text-decoration: none;
}

.sensearch-ai-promo-text {
  color: hsl(0 0% 20%);
  font-size: 0.92rem;
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  visibility: hidden;
}

.sensearch-ai-promo-icon-link {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
}

.sensearch-ai-promo-icon {
  height: 70px;
  object-fit: contain;
  width: 70px;
}

/* --- Chips de filtros ativos --- */
.sensearch-active-filters {
  align-items: center;
  background: hsl(210 20% 98%);
  border: 1px solid hsl(220 13% 91%);
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 14px;
}

.sensearch-active-filters-list {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 6px;
}

.sensearch-chip {
  align-items: center;
  background: hsl(221 83% 53%);
  border: none;
  border-radius: 20px;
  color: hsl(0 0% 100%);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.78rem;
  gap: 4px;
  padding: 4px 10px;
  transition: background 0.15s ease;
}

.sensearch-chip:hover {
  background: hsl(224 76% 48%);
}

.sensearch-chip svg {
  opacity: 0.8;
}

.sensearch-clear-all-filters {
  background: none;
  border: none;
  color: hsl(0 0% 20%);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.8rem;
  text-decoration: underline;
  white-space: nowrap;
}

.sensearch-clear-all-filters:hover {
  color: hsl(0 72% 51%);
}

/* --- Grid de produtos --- */
.sensearch-product-grid {
  min-height: 200px;
}

/* --- "Ver mais" / "Ver menos" --- */
.sensearch-show-more {
  align-items: center;
  background: none;
  border: none;
  color: hsl(0 0% 20%);
  cursor: pointer;
  display: flex;
  font-size: 0.8rem;
  font-weight: 600;
  gap: 14px;
  margin-top: 5px;
  padding: 10px 0;
}

.sensearch-show-more:hover {
  color: hsl(0 0% 20%);
}

.sensearch-show-more-arrow {
  transition: transform 0.2s ease;
}

/* Opções escondidas pelo "Ver mais" */
.sensearch-filter-hidden {
  display: none;
}

/* --- Range slider de preço (estilo Samsung) --- */
.sensearch-price-filter {
  padding: 8px 0 4px;
}

.sensearch-price-slider-container {
  height: 36px;
  margin: 12px 0 8px;
  position: relative;
}

.sensearch-price-slider-container input[type='range'] {
  appearance: none;
  background: transparent;
  height: 36px;
  margin: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
}

.sensearch-price-slider-container input[type='range']::-webkit-slider-thumb {
  appearance: none;
  background: hsl(0 0% 10%);
  border: 3px solid hsl(0 0% 100%);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgb(0 0 0 / 35%);
  cursor: pointer;
  height: 22px;
  margin-top: -9px;
  pointer-events: all;
  width: 22px;
}

.sensearch-price-slider-container input[type='range']::-moz-range-thumb {
  background: hsl(0 0% 10%);
  border: 3px solid hsl(0 0% 100%);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgb(0 0 0 / 35%);
  cursor: pointer;
  height: 22px;
  pointer-events: all;
  width: 22px;
}

.sensearch-price-slider-container input[type='range']::-webkit-slider-runnable-track {
  background: hsl(0 0% 88%);
  border-radius: 2px;
  height: 4px;
}

.sensearch-price-slider-container input[type='range']::-moz-range-track {
  background: hsl(0 0% 88%);
  border-radius: 2px;
  height: 4px;
}

.sensearch-price-values {
  color: hsl(0 0% 20%);
  display: flex;
  font-size: 0.8rem;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sensearch-price-inputs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 10px;
}

.sensearch-price-label {
  display: none;
}

.sensearch-price-currency {
  color: hsl(0 0% 33%);
  font-size: 0.82rem;
  font-weight: 500;
}

.sensearch-price-separator {
  color: hsl(0 0% 60%);
  font-size: 1rem;
  padding: 0 2px;
}

.sensearch-price-inputs input[type='number'] {
  appearance: textfield;
  background: hsl(0 0% 97%);
  border: 1px solid hsl(216 12% 84%);
  border-radius: 6px;
  color: hsl(0 0% 20%);
  flex: 1;
  font-size: 0.82rem;
  max-width: 80px;
  min-width: 50px;
  padding: 6px 4px;
  text-align: center;
}

.sensearch-price-inputs input[type='number']::-webkit-outer-spin-button,
.sensearch-price-inputs input[type='number']::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.sensearch-price-inputs input[type='number']:focus {
  background: hsl(0 0% 100%);
  border-color: hsl(0 0% 20%);
  outline: none;
}

.sensearch-price-apply {
  background: none;
  border: none;
  border-radius: 0;
  color: hsl(0 0% 10%);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.sensearch-price-apply:hover {
  color: hsl(0 0% 33%);
}

/* --- Botão "Carregar Mais" --- */
.sensearch-load-more {
  padding: 24px 0;
  text-align: center;
}

.sensearch-load-more-btn {
  align-items: center;
  background: hsl(0 0% 20%);
  border: none;
  border-radius: 6px;
  color: hsl(0 0% 100%);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 500;
  gap: 8px;
  justify-content: center;
  min-width: 200px;
  padding: 12px 32px;
  transition: background 0.2s ease;
}

.sensearch-load-more-btn:hover {
  background: hsl(0 0% 7%);
}

.sensearch-load-more-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.sensearch-load-more-spinner svg {
  animation: sensearch-spin 1s linear infinite;
}

@keyframes sensearch-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.sensearch-load-more-info {
  color: hsl(0 0% 20%);
  font-size: 0.82rem;
  margin-top: 8px;
}

/* --- Botão mobile para abrir filtros --- */
.sensearch-mobile-filter-btn {
  align-items: center;
  background: hsl(220 14% 96%);
  border: 1px solid hsl(216 12% 84%);
  border-radius: 6px;
  color: hsl(0 0% 20%);
  cursor: pointer;
  display: none;
  font-size: 0.85rem;
  gap: 6px;
  margin-bottom: 12px;
  padding: 8px 16px;
}

.sensearch-mobile-filter-btn:hover {
  background: hsl(220 13% 91%);
}

/* --- Overlay mobile (backdrop do bottom-sheet) --- */
.sensearch-sidebar-overlay {
  background: var(--sensearch-overlay, rgb(17 24 39 / 45%));
  display: none;
  inset: 0;
  position: fixed;
  z-index: 999;
}

.sensearch-overlay-visible {
  display: block;
}

.sensearch-no-scroll {
  overflow: hidden;
}

/* --- Chips de "Ordenar por" e "Preço" no bottom-sheet ---
   Renderizados no PHTML; escondidos no desktop (a info-bar mantém o select). */
.sensearch-sheet-chips {
  display: none;
}

.sensearch-sheet-chip {
  align-items: center;
  background: var(--sensearch-surface, hsl(0 0% 100%));
  border: 0.0625rem solid var(--sensearch-border, hsl(220 13% 91%));
  border-radius: var(--sensearch-radius-pill, 62.4375rem);
  color: var(--sensearch-fg, hsl(213 13% 14%));
  cursor: pointer;
  display: inline-flex;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: var(--sensearch-space-2) var(--sensearch-space-3);
  transition: all 0.15s ease;
}

.sensearch-sheet-chip.sensearch-sheet-chip-active {
  background: var(--sensearch-accent, hsl(221 39% 11%));
  border-color: var(--sensearch-accent, hsl(221 39% 11%));
  color: var(--sensearch-accent-fg, hsl(0 0% 100%));
}

/* --- Sem resultados --- */
.sensearch-no-results {
  padding: 48px 16px;
  text-align: center;
}

.sensearch-no-results-content h2 {
  color: hsl(0 0% 20%);
  font-size: 1.3rem;
  margin: 16px 0 8px;
}

.sensearch-no-results-content p {
  color: hsl(0 0% 20%);
  margin-bottom: 16px;
}

.sensearch-suggestions {
  color: hsl(0 0% 20%);
  display: inline-block;
  font-size: 0.9rem;
  list-style: disc;
  text-align: left;
}

.sensearch-suggestions li {
  margin-bottom: 4px;
}

/* =========================================================================
   RESPONSIVO — Filtros Laterais (v2.7.0)
   ========================================================================= */

/* Tablet */
@media (width <= 1024px) {
  .sensearch-results-layout.sensearch-has-sidebar .sensearch-sidebar {
    width: 30%;
  }

  .sensearch-results-layout.sensearch-has-sidebar .sensearch-main-content {
    width: 70%;
  }
}

/* Mobile */
@media (width <= 768px) {
  .sensearch-results-layout {
    flex-direction: column;
  }

  .sensearch-mobile-filter-btn {
    display: inline-flex;
  }

  /* Bottom-sheet: card branco subindo de baixo com cantos superiores arredondados */
  .sensearch-sidebar {
    border: none;
    border-radius: var(--sensearch-radius-panel, 1rem) var(--sensearch-radius-panel, 1rem) 0 0;
    box-shadow: 0 -0.5rem 1.5rem rgb(149 157 165 / 20%);
    display: flex;
    flex-direction: column;
    height: auto;
    inset: auto 0 0;
    max-height: 85vh;
    max-width: 100%;
    overflow: hidden;
    padding: 0 var(--sensearch-space-4) var(--sensearch-space-4);
    position: fixed;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    width: 100%;
    z-index: 1000;
  }

  .sensearch-sidebar.sensearch-sidebar-open {
    transform: translateY(0);
  }

  body:has(.sensearch-sidebar.sensearch-sidebar-open)
    :is(#soulmktcc-trigger, .cookie-consent__icon, #scroll-top, .sys_dev_tools, #dev-panel-trigger) {
    display: none !important;
  }

  /* Área rolável interna do sheet (grupos de filtro) */
  .sensearch-sidebar .sensearch-filter-group,
  .sensearch-sidebar .sensearch-sheet-chips {
    flex-shrink: 0;
  }

  .sensearch-sidebar-handle {
    background: var(--sensearch-border-strong, hsl(216 12% 84%));
    border-radius: var(--sensearch-radius-pill, 62.4375rem);
    display: block;
    flex-shrink: 0;
    height: 0.25rem;
    margin: var(--sensearch-space-3) auto var(--sensearch-space-2);
    width: 2.5rem;
  }

  .sensearch-sidebar-header {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    justify-content: space-between;
  }

  .sensearch-sidebar-close {
    display: block;
  }

  /* Grupos rolam; handle/header/footer ficam fixos */
  .sensearch-sidebar-scroll {
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: var(--sensearch-space-2);
    scrollbar-width: thin;
  }

  /* Chips de ordenar/preço aparecem no sheet */
  .sensearch-sheet-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sensearch-space-2);
    margin-bottom: var(--sensearch-space-4);
  }

  /* Rodapé fixo com Limpar / Aplicar */
  .sensearch-sidebar-footer {
    border-top: 0.0625rem solid var(--sensearch-border, hsl(220 13% 91%));
    display: flex;
    flex-shrink: 0;
    gap: var(--sensearch-space-3);
    padding-top: var(--sensearch-space-3);
  }

  .sensearch-sheet-btn {
    border-radius: var(--sensearch-radius-md, 0.5rem);
    cursor: pointer;
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    padding: var(--sensearch-space-3);
    transition: all 0.15s ease;
  }

  .sensearch-sheet-btn-clear {
    background: var(--sensearch-surface, hsl(0 0% 100%));
    border: 0.0625rem solid var(--sensearch-border-strong, hsl(216 12% 84%));
    color: var(--sensearch-fg, hsl(213 13% 14%));
  }

  .sensearch-sheet-btn-apply {
    background: var(--sensearch-accent, hsl(221 39% 11%));
    border: 0.0625rem solid var(--sensearch-accent, hsl(221 39% 11%));
    color: var(--sensearch-accent-fg, hsl(0 0% 100%));
  }

  .sensearch-results-header h1 {
    font-size: 1.1rem;
  }

  /* v2.7.54 — Mobile layout fixes */
  .sensearch-header-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .sensearch-results-title {
    font-size: 0.85rem;
    white-space: normal;
  }

  /* Esconder AI promo banner no mobile — ocupa muito espaço */
  .sensearch-ai-promo,
  .sensearch-ai-promo-icon-link {
    display: none;
  }

  /* Info bar: empilhar no mobile */
  .sensearch-info-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .sensearch-info-bar-left {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Esconder meta (tempo de busca) no mobile */
  .sensearch-info-meta {
    display: none;
  }

  /* Debug panel: scroll horizontal ou esconder no mobile */
  .sensearch-debug-panel {
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }

  .sensearch-debug-panel table {
    min-width: 600px;
  }

  /* AI response box: evitar overflow */
  .sensearch-ai-response {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  /* Sidebar widths reset no mobile */
  .sensearch-results-layout.sensearch-has-sidebar .sensearch-sidebar,
  .sensearch-results-layout.sensearch-has-sidebar .sensearch-main-content {
    float: none;
    width: 100%;
  }
}

/* Mobile pequeno */
@media (width <= 480px) {
  .sensearch-active-filters {
    align-items: flex-start;
    flex-direction: column;
  }

  .sensearch-load-more-btn {
    width: 100%;
  }

  /* v2.7.54 — Mobile pequeno layout fixes */
  .sensearch-info-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .sensearch-info-bar-right {
    width: 100%;
  }

  .sensearch-sort-label {
    justify-content: space-between;
    width: 100%;
  }

  .sensearch-info-filters-btn {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
  }

  .sensearch-header-row {
    gap: 8px;
  }

  .sensearch-results-title {
    font-size: 0.8rem;
  }
}
