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

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

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

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

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

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

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

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

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

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

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

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

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

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

@keyframes sensearch-ai-btn-glow {
    0%, 100% {
        box-shadow: var(--sensearch-ai-btn-shadow, 0 2px 8px rgba(102, 126, 234, 0.35));
    }
    50% {
        box-shadow: var(--sensearch-ai-btn-shadow-glow, 0 2px 16px rgba(118, 75, 162, 0.5));
    }
}

@keyframes sensearch-sparkle-rotate {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg) scale(1.3);
        opacity: 0.7;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

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

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

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

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

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

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

.sensearch-results-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.sensearch-results-input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.sensearch-results-input {
    flex: 1;
    border: none;
    padding: 14px 18px;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: #1f2937;
}

.sensearch-results-input::placeholder {
    color: #9ca3af;
}

.sensearch-results-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    background: #667eea;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

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

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

.sensearch-ai-response {
    background: #f5f7fa;
    border: 1px solid #d1d9e6;
    border-left: 4px solid #667eea;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    animation: sensearch-fadeIn 0.4s ease-out;
}

.sensearch-ai-response.sensearch-ai-no-results {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fcd34d;
}

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

.sensearch-ai-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #667eea;
    color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
}

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

.sensearch-ai-title {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sensearch-ai-badge-inline {
    display: inline-flex;
    align-items: center;
    background: #667eea;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.sensearch-ai-content {
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
}

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

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

.sensearch-ai-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed #667eea;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.sensearch-ai-link:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
    text-decoration: none;
}

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

.sensearch-results-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.sensearch-results-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.sensearch-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

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

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

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

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

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

.sensearch-no-results-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #374151;
    margin: 0 0 8px 0;
}

.sensearch-no-results-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px 0;
}

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

.sensearch-suggestions li {
    font-size: 13px;
    color: #6b7280;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.sensearch-suggestions li::before {
    content: '\2022';
    position: absolute;
    left: 6px;
    color: #667eea;
}

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

.sensearch-autocomplete {
    /* Posicionamento dinâmico via JS (movido para body, position:fixed) */
    position: fixed;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    overflow: hidden;
    /* Largura e posição definidas via JS para alinhar com div.main */
}

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

.sensearch-ac-container {
    display: flex;
    min-height: 100px;
}

/* --- Section title (used in both columns) --- */
.sensearch-ac-section-title {
    padding: 14px 16px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* --- Left column: Search term suggestions --- */
.sensearch-ac-suggestions {
    flex: 0 0 34%;
    max-width: 25%;
    border-right: 1px solid #f0f0f0;
    padding-bottom: 10px;
    overflow-y: auto;
    max-height: 500px;
}

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

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

.sensearch-ac-suggest-item {
    display: block;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.4;
}

.sensearch-ac-suggest-item:hover,
.sensearch-ac-suggest-item.active {
    background: #f5f5f5;
}

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

.sensearch-ac-suggest-text strong {
    font-weight: 700;
    color: #000;
}

/* Count badge in contextual suggestions */
.sensearch-ac-suggest-count {
    font-size: 11px;
    font-weight: 400;
    color: #9ca3af;
    margin-left: 2px;
}

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

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

.sensearch-ac-suggest-group .sensearch-ac-section-title {
    padding: 10px 16px 6px;
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: none;
}

.sensearch-ac-suggest-group:first-child .sensearch-ac-section-title {
    padding-top: 14px;
}

/* Search icon next to suggestion items */
.sensearch-ac-suggest-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    font-size: 12px;
    color: #9ca3af;
    flex-shrink: 0;
}

.sensearch-ac-suggest-item {
    display: flex;
    align-items: center;
}

/* --- Brand tags (badge style like Loja do Mecânico) --- */
.sensearch-ac-brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 16px 10px;
}

.sensearch-ac-brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.sensearch-ac-brand-tag:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    text-decoration: none;
}

.sensearch-ac-brand-tag:hover .sensearch-ac-suggest-icon {
    color: #fff;
}

.sensearch-ac-brand-tag .sensearch-ac-suggest-icon {
    width: 12px;
    height: 12px;
    font-size: 10px;
    margin-right: 2px;
}

/* --- Right column: Product suggestions (Samsung-style) --- */
.sensearch-ac-products {
    flex: 1;
    max-height: 500px;
    overflow-y: auto;
}

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

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

/* AI Mode button inside autocomplete */
.sensearch-ai-mode-btn-ac {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 5px;
    letter-spacing: 0.3px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: sensearch-ai-btn-glow-ac 3s ease-in-out infinite;
    white-space: nowrap;
}

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

.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-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0 8px 8px;
}

.sensearch-ac-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.sensearch-ac-product-card:hover,
.sensearch-ac-product-card.active {
    background: #f5f5f5;
    text-decoration: none;
    color: inherit;
}

.sensearch-ac-product-img {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    flex-shrink: 0;
}

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

.sensearch-ac-product-info {
    text-align: left;
    width: 100%;
}

.sensearch-ac-product-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.sensearch-ac-product-price {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
}

.sensearch-ac-price-old {
    text-decoration: line-through;
    color: #9ca3af;
    font-weight: 400;
    font-size: 11px;
    margin-right: 4px;
}

.sensearch-ac-price-special {
    color: #059669;
    font-weight: 700;
}

/* --- Footer --- */
.sensearch-ac-footer {
    padding: 10px 16px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
}

.sensearch-ac-footer a {
    font-size: 13px;
    color: #667eea;
    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 (max-width: 768px) {
    .sensearch-results-page {
        padding: 12px 0;
    }

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

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

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

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

    .sensearch-ac-suggestions {
        flex: none;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 6px;
    }

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

    .sensearch-ac-product-img {
        height: 100px;
    }

    .sensearch-ac-section-title {
        padding: 10px 12px 8px;
        font-size: 10px;
    }

    .sensearch-ac-suggest-item {
        padding: 6px 12px;
        font-size: 13px;
    }

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

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

@media (max-width: 480px) {
    .sensearch-ac-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sensearch-ac-product-img {
        height: 80px;
    }

    .sensearch-ac-product-name {
        font-size: 11px;
    }

    .sensearch-ac-product-price {
        font-size: 11px;
    }
}

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

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

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

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

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

.sensearch-chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.5);
}

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

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

/* Pulse badge no botão */
.sensearch-chat-badge-pulse {
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: sensearch-pulse 2s ease-in-out infinite;
}

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

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

.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 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--chat-bg, #667eea);
    color: #fff;
    flex-shrink: 0;
}

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

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

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

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

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

.sensearch-chat-header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sensearch-chat-header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

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

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

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

.sensearch-chat-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--chat-icon, #667eea);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

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

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

.sensearch-chat-msg-assistant .sensearch-chat-msg-text {
    background: #f3f4f6;
    color: #374151;
    border-bottom-left-radius: 4px;
}

.sensearch-chat-msg-user .sensearch-chat-msg-text {
    background: var(--chat-bg, #667eea);
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Links no chat */
.sensearch-chat-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed #667eea;
    transition: color 0.2s ease;
}

.sensearch-chat-link:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

.sensearch-chat-msg-user .sensearch-chat-link {
    color: #e0e7ff;
    border-bottom-color: #e0e7ff;
}

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

.sensearch-chat-products-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sensearch-chat-products-label svg {
    color: #667eea;
}

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

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

.sensearch-chat-products-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.sensearch-chat-products-grid::-webkit-scrollbar-thumb {
    background: #c4b5fd;
    border-radius: 2px;
}

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

.sensearch-chat-product-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    text-decoration: none;
    color: inherit;
}

.sensearch-chat-product-img {
    width: 100%;
    height: 100px;
    overflow: hidden;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.sensearch-chat-product-noimg {
    color: #d1d5db;
}

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

.sensearch-chat-product-name {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

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

.sensearch-chat-product-finalprice {
    font-weight: 700;
    color: #059669;
}

.sensearch-chat-product-oldprice {
    font-size: 10px;
    color: #9ca3af;
    text-decoration: line-through;
}

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

.sensearch-chat-inline-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    text-decoration: none;
    color: inherit;
}

.sensearch-chat-inline-card-img {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 6px;
    object-fit: cover;
    background: #f9fafb;
}

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

.sensearch-chat-inline-card-name {
    font-size: 11px;
    font-weight: 600;
    color: #374151;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sensearch-chat-inline-card-price {
    font-size: 11px;
    font-weight: 700;
    color: #059669;
}

.sensearch-chat-inline-card-oldprice {
    font-size: 10px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 400;
}

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

.sensearch-chat-typing-dots {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    background: #f3f4f6;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
}

.sensearch-chat-typing-dots span {
    width: 6px;
    height: 6px;
    background: #9ca3af;
    border-radius: 50%;
    animation: sensearch-typingBounce 1.4s ease-in-out infinite;
}

.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 {
    flex-shrink: 0;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

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

.sensearch-chat-input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.4;
    resize: none;
    outline: none;
    max-height: 100px;
    min-height: 38px;
    font-family: inherit;
    color: #374151;
    transition: border-color 0.2s ease;
}

.sensearch-chat-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.sensearch-chat-input::placeholder {
    color: #9ca3af;
}

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

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

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

/* Footer do chat */
.sensearch-chat-footer {
    text-align: center;
    padding: 4px 16px 10px;
    font-size: 10px;
    color: #d1d5db;
}

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

@media (max-width: 480px) {
    .sensearch-chat-widget {
        bottom: 12px;
        right: 12px;
        left: auto;
    }

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

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

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

    .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);
    }

    @keyframes sensearch-chatSlideUpMobile {
        from {
            opacity: 0;
            transform: translateY(100%);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-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 {
    display: flex;
    gap: 0;
    align-items: flex-start;
}

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

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

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

.sensearch-results-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
}

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

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

.sensearch-info-filters-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: #333;
    padding: 0;
    padding-right: 16px;
    margin-right: 16px;
    border-right: 1px solid #ccc;
}

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

.sensearch-info-count {
    font-size: 0.8rem;
    color: #333;
}

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

.sensearch-info-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: #999;
}

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

.sensearch-sort-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #333;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

.sensearch-sort-label span {
    color: #333;
}

.sensearch-sort-select {
    appearance: none;
    -webkit-appearance: none;
    background: none;
    border: none;
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    padding-right: 24px;
    white-space: nowrap;
}

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

.sensearch-sort-arrow {
    position: absolute;
    right: 0;
    pointer-events: none;
    color: #333;
}

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

/* --- Sidebar de filtros --- */
.sensearch-sidebar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 16px;
    padding-top: 8px;
    position: relative;
}

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

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

.sensearch-sidebar-close {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #333;
}

/* --- Grupos de filtro (accordion) --- */
.sensearch-filter-group {
    margin-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 12px;
}

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

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

.sensearch-filter-title:hover {
    color: #333;
}

.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 {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    cursor: pointer;
    font-size: 0.85rem;
    color: #333;
    line-height: 1.4;
}

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

.sensearch-filter-option:hover {
    color: #333;
}

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

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

.sensearch-filter-option input[type="checkbox"]:checked + .sensearch-filter-checkbox {
    background: #2563eb;
    border-color: #2563eb;
    border-radius: 5px;
}

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

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

.sensearch-filter-count {
    color: #333;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* --- Barra promocional do Assistente IA (v2.7.5) --- */
.sensearch-ai-promo {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 20px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 0;
}
.sensearch-ai-promo:hover {
    border-color: #bbb;
    text-decoration: none;
}
.sensearch-ai-promo-text {
    font-size: 0.92rem;
    line-height: 1.4;
    color: #333;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    visibility: hidden;
}
.sensearch-ai-promo-icon-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sensearch-ai-promo-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

/* --- Chips de filtros ativos --- */
.sensearch-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

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

.sensearch-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.sensearch-chip:hover {
    background: #1d4ed8;
}

.sensearch-chip svg {
    opacity: 0.8;
}

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

.sensearch-clear-all-filters:hover {
    color: #dc2626;
}

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

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

.sensearch-show-more:hover {
    color: #333;
}

.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 {
    position: relative;
    height: 36px;
    margin: 12px 0 8px;
}

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

.sensearch-price-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1a1a1a;
    cursor: pointer;
    pointer-events: all;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);
    margin-top: -9px;
}

.sensearch-price-slider-container input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1a1a1a;
    cursor: pointer;
    pointer-events: all;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.sensearch-price-slider-container input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
}

.sensearch-price-slider-container input[type="range"]::-moz-range-track {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
}

.sensearch-price-values {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 8px;
}

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

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

.sensearch-price-currency {
    font-size: 0.82rem;
    color: #555;
    font-weight: 500;
}

.sensearch-price-separator {
    font-size: 1rem;
    color: #999;
    padding: 0 2px;
}

.sensearch-price-inputs input[type="number"] {
    flex: 1;
    min-width: 50px;
    max-width: 80px;
    padding: 6px 4px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.82rem;
    text-align: center;
    color: #333;
    background: #f8f8f8;
    -moz-appearance: textfield;
}

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

.sensearch-price-inputs input[type="number"]:focus {
    outline: none;
    border-color: #333;
    background: #fff;
}

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

.sensearch-price-apply:hover {
    color: #555;
}

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

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

.sensearch-load-more-btn:hover {
    background: #111;
}

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

.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 {
    margin-top: 8px;
    font-size: 0.82rem;
    color: #333;
}

/* --- Botão mobile para abrir filtros --- */
.sensearch-mobile-filter-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
    margin-bottom: 12px;
}

.sensearch-mobile-filter-btn:hover {
    background: #e5e7eb;
}

/* --- Overlay mobile --- */
.sensearch-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

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

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

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

.sensearch-no-results-content h2 {
    font-size: 1.3rem;
    color: #333;
    margin: 16px 0 8px;
}

.sensearch-no-results-content p {
    color: #333;
    margin-bottom: 16px;
}

.sensearch-suggestions {
    list-style: disc;
    display: inline-block;
    text-align: left;
    color: #333;
    font-size: 0.9rem;
}

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

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

/* Tablet */
@media (max-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 (max-width: 768px) {
    .sensearch-results-layout {
        flex-direction: column;
    }

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

    .sensearch-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 85%;
        max-width: 320px;
        height: 100%;
        z-index: 1000;
        border-radius: 0;
        border: none;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sensearch-sidebar.sensearch-sidebar-open {
        display: block;
        transform: translateX(0);
    }

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

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

    .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 {
        white-space: normal;
        font-size: 0.85rem;
    }

    /* 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 {
        overflow-x: auto;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }

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

    /* AI response box: evitar overflow */
    .sensearch-ai-response {
        word-wrap: break-word;
        overflow-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 {
        width: 100%;
        float: none;
    }
}

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

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

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

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

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

    .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;
    }
}
