/* --------------------------------------------------- */
/* ESTILOS MODERNOS E VIBRANTES - VITRINE */
/* --------------------------------------------------- */
:root {
    /* --cor-principal é injetada via PHP no <style> do vitrine.php */
    --cor-secundaria: #1F2937; /* Cinza Escuro */
    --cor-sucesso: #10B981; /* Verde Esmeralda */
    --cor-alerta: #EF4444; /* Vermelho Forte */
    --fundo-claro: #F9FAFB;
    --cor-texto-principal: #1F2937; 
    --cor-texto-secundario: #6B7280; 
    --fundo-produto-info: #f9f9f9; 
}

body {
    font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.main-container { max-width: 1300px; margin: 0 auto; padding: 0 15px; }

/* Estilos do Cabeçalho da Loja */
.store-header {
    text-align: center;
    margin: 50px 0 20px; 
    padding: 30px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--cor-principal); /* APLICANDO A COR AQUI */
}
.store-logo {
    height: 120px;
    width: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #E5E7EB;
    background-color: white; 
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px #ddd; 
}
.store-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.store-header h1 { 
    font-size: 2.8em; 
    font-weight: 900; 
    color: var(--cor-texto-principal); 
    margin-bottom: 10px;
    line-height: 1.2;
}
.store-header p {
    color: var(--cor-texto-secundario);
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Área de Ação (WhatsApp/Copiar Link) */
.store-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; 
    margin-top: 25px;
}
.store-actions .action-btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.95em;
    box-sizing: border-box; 
}

.desktop-only-item {
    min-width: 190px; 
    max-width: 190px;
    height: 45px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.whatsapp-desktop-only {
    min-width: 190px; 
    height: 45px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.whatsapp-mobile-menu {
    display: none; 
    gap: 15px;
    width: 100%;
}

.whatsapp-mobile-half {
    flex: 1 1 auto; 
    padding: 10px 10px; 
    font-size: 1.0em; 
    height: 45px; 
    align-items: center; 
    justify-content: center; 
    white-space: nowrap; 
}
.btn-call-half {
    background-color: var(--cor-principal); 
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.4);
}

.store-actions .action-btn i {
    margin-right: 8px; 
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}
.btn-copy-link {
    background-color: #F3F4F6;
    color: var(--cor-secundaria);
    border-color: #D1D5DB;
}
.btn-copy-link:hover {
    background-color: #E5E7EB;
    transform: translateY(-2px);
}
.copy-success {
    background-color: var(--cor-sucesso) !important;
    color: white !important;
}

/* ========================================================== */
/* ESTILO BOTÃO PIX */
/* ========================================================== */
.btn-pix {
    background-color: var(--cor-principal); 
    color: white;
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.4);
}
.btn-pix:hover {
    background-color: #1B3F9B; 
    transform: translateY(-2px);
}
/* ========================================================== */

/* NOVO: ESTILO PARA EXIBIÇÃO DA CHAVE PIX (ZEBRADA/LINHA ÚNICA) */
.pix-display-container {
    margin-top: 10px;
    padding: 8px 15px; 
    border-radius: 8px;
    text-align: center;
    max-width: 450px; 
    margin-left: auto;
    margin-right: auto;
    font-size: 1.0em; 
    word-break: break-all; 
    transition: all 0.3s ease; 
    
    /* Efeito Zebrado */
    background-color: #fcfcfc;
    border: 2px dashed #ccc; 
}

.pix-display-container.copied-highlight {
    /* Altera a borda e o fundo sutilmente ao copiar */
    background-color: #e6ffed; 
    border-color: var(--cor-sucesso); /* Verde Sucesso */
}

.pix-display-value {
    font-family: monospace; 
    font-size: 1.0em; 
    color: #333;
    font-weight: 600;
}
/* FIM DO NOVO ESTILO PIX */

/* --------------------------------------------------- */
/* NOVO ESTILO: ÍCONES DE PAGAMENTO NO CABEÇALHO (Compacto e Discreto) */
/* --------------------------------------------------- */
.payment-icons-wrapper {
    display: flex;
    gap: 15px; /* Espaço entre os ícones */
    justify-content: center;
    align-items: center;
    padding: 0 10px; 
    flex-basis: 100%; /* Ocupa a largura total da linha */
    flex-wrap: wrap; 
    max-width: 450px; /* Limita a largura da caixa de ícones */
    margin: 15px auto 5px auto; /* Centraliza a caixa e dá um respiro discreto */
}

.payment-icons-wrapper i {
    font-size: 1.5em; /* TAMANHO REDUZIDO: 1.5em para desktop (antes 1.8em) */
    color: var(--cor-principal); /* Usa a cor de destaque da loja */
    opacity: 0.8; /* Suaviza um pouco a cor */
    transition: opacity 0.2s;
    min-width: 30px; 
    text-align: center;
    cursor: pointer; /* Adicionado para indicar clicável */
}

.payment-icons-wrapper i:hover {
    opacity: 1;
}

/* NOVO: ESTILO PARA O TOAST DE PAGAMENTO */
.payment-toast {
    visibility: hidden; /* Oculto por padrão */
    min-width: 250px;
    background-color: var(--cor-secundaria); /* Cinza Escuro */
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    position: fixed;
    z-index: 2000; /* Acima de tudo */
    left: 50%;
    transform: translateX(-50%);
    bottom: 50px; /* Posição acima da borda inferior */
    font-size: 1em;
    font-weight: 600;
    transition: visibility 0s, opacity 0.5s ease-in-out;
    opacity: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.payment-toast.show {
    visibility: visible;
    opacity: 1;
}

/* --------------------------------------------------- */
/* NOVOS ESTILOS PARA BARRA DE PESQUISA */
/* --------------------------------------------------- */
.search-bar-container {
    margin-bottom: 30px;
    position: relative;
    display: flex; /* Adicionado display flex para acomodar o botão */
    align-items: center;
}
.search-bar-container .search-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.2em;
    z-index: 1; 
}
#product-search-bar {
    width: 100%;
    padding: 18px 55px 18px 55px; /* AJUSTADO: Padding lateral para acomodar ícones */
    font-size: 1.1em;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
    box-sizing: border-box; 
}
#product-search-bar:focus {
    border-color: var(--cor-principal);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.2);
}

/* NOVO: Estilo para o botão "X" de limpar busca */
.btn-clear-search-vitrine {
    position: absolute;
    right: 15px; 
    background: transparent !important; 
    border: none !important; 
    color: #70757a;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0; 
    display: none; /* Oculto por padrão */
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s, background-color 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent; 
    width: 30px; 
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    top: 50%; /* Centraliza verticalmente */
    transform: translateY(-50%);
}
.btn-clear-search-vitrine:hover {
    opacity: 1;
    background-color: #f0f0f0;
    color: var(--cor-secundaria); 
}
.search-bar-container.has-text .btn-clear-search-vitrine {
    display: flex;
}
/* --------------------------------------------------- */


/* Placeholder Sem Foto */
.no-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%; 
    max-height: 100%; 
    background-color: #e9ecef;
    color: #adb5bd;
    text-align: center;
    padding: 20px;
    box-sizing: border-box; 
}
.no-photo-placeholder i {
    font-size: 2.5em; 
    margin-bottom: 10px;
}
.no-photo-placeholder small {
    display: block;
    font-style: italic;
    margin-top: 5px;
    font-size: 0.8em;
}

/* Grid de Produtos */
.product-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 30px; 
    padding: 20px 0 50px; 
}

/* Cartão de Produto */
.product-card { 
    background: #ffffff; 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); 
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; 
    text-decoration: none;
    display: flex; 
    flex-direction: column;
    height: 100%;
    color: var(--cor-texto-principal); 
    /* ========================================================== */
    /* ATUALIZAÇÃO CRÍTICA: Borda preta de 1px como padrão */
    /* ========================================================== */
    border: 1px solid #000000; 
    position: relative; /* ESSENCIAL para o checkbox absoluto */
}
.product-card:hover {
    transform: translateY(-5px); 
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15); 
    /* Manter a cor preta ou um tone mais escuro no hover */
    border-color: #111111; 
}

/* Foto Ultra Compacta (160px) */
.product-photo-container {
    height: 160px; 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white; 
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0; 
    position: relative; 
}
.product-photo-container img { 
    width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
    transition: transform 0.5s;
}
.product-card:hover .product-photo-container img {
     transform: scale(1.05);
}

/* --------------------------------------------------- */
/* ESTILOS DE DESTAQUE E PROMOÇÃO (Sobrescrevem a borda preta) */
/* --------------------------------------------------- */

.featured-badge {
    position: absolute;
    top: 10px; 
    right: 0; 
    background-color: var(--cor-principal); 
    color: white;
    padding: 4px 8px; 
    font-size: 0.8em; 
    font-weight: 700;
    border-radius: 5px 0 0 5px; 
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ALTERADO: Movido o badge de PROMOÇÃO para a direita, abaixo do destaque */
.promo-badge {
    position: absolute;
    top: 35px; /* NOVO: Para ficar abaixo do destaque */
    right: 0; /* NOVO: Move para a direita */
    left: auto; /* NOVO: Remove o left: 0 */
    background-color: var(--cor-alerta); 
    color: white;
    padding: 4px 8px; 
    font-size: 0.8em; 
    font-weight: 700;
    border-radius: 5px 0 0 5px; /* NOVO: Muda para canto arredondado da direita */
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Usando borda de 2px para garantir que a cor sobrescreva a borda padrão de 1px */
.product-card.featured-product {
    border: 2px solid var(--cor-principal); /* Borda Azul */
    box-shadow: 0 10px 30px rgba(29, 78, 216, 0.3); 
}

.product-card.promo-product {
    border: 2px solid var(--cor-alerta); /* Borda Vermelha */
}

.product-card.featured-product:hover {
    border-color: var(--cor-principal);
}
.product-card.promo-product:hover {
    border-color: var(--cor-alerta);
}

/* NOVO: Classe para marcar o produto (aplicada via JS) */
.product-card.selected {
    border: 2px solid var(--cor-principal); /* Borda em destaque ao selecionar */
    box-shadow: 0 12px 30px rgba(29, 78, 216, 0.2); 
    background-color: #f0fff4; /* Fundo leve para indicar seleção */
}

/* Área de Informação */
.product-info { 
    padding: 10px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--fundo-produto-info); 
}

.product-sku {
    font-size: 0.75em; 
    color: #999; 
    font-weight: 500;
    margin-top: 2px; 
    margin-bottom: 2px; 
    display: block;
    text-align: right; 
    text-transform: uppercase;
}

.product-info h2 { 
    font-weight: 800; 
    margin-top: 0; 
    margin-bottom: 3px; 
    overflow: hidden; 
    color: #000000; 
    font-size: 1.2em; 
    line-height: 1.3; 
    max-height: 3.2em; 
}

.product-price { 
    margin-top: 8px; 
    padding-top: 5px; 
    border-top: 1px dashed #e0e0e0; 
}

.original-price { 
    color: var(--cor-texto-secundario); 
    font-size: 0.8em; 
    text-decoration: line-through; 
    display: block;
    font-weight: 500; 
}

.selling-price { 
    color: var(--cor-alerta); 
    font-size: 1.5em; 
    font-weight: 900; 
    display: block;
    margin-top: 3px; 
}

/* ========================================================== */
/* NOVO: ESTILO PARA A DICA DE DETALHES DO PRODUTO */
/* ========================================================== */
.product-detail-hint {
    background-color: #F3F4F6; /* Fundo cinza claro */
    color: var(--cor-principal); /* Texto na cor de destaque */
    font-size: 0.8em;
    font-weight: 600;
    padding: 5px 10px;
    text-align: center;
    border-top: 1px solid #E5E7EB;
    transition: background-color 0.2s;
    /* Garante que ocupe a largura total */
    display: block; 
}
.product-detail-hint i {
    margin-right: 5px;
    font-size: 0.9em;
}
.product-card:hover .product-detail-hint {
    background-color: #E5E7EB; /* Escurece um pouco no hover do card */
}
/* ========================================================== */

/* Mensagem de "Nenhum produto cadastrado" (PHP) */
.no-products {
    text-align: center; 
    padding: 60px; 
    font-size: 1.3em;
    color: #555;
    border: 3px dashed var(--cor-principal); 
    border-radius: 15px;
    max-width: 800px;
    margin: 50px auto;
    font-style: italic;
    background-color: #fff;
}

/* --- NOVOS ESTILOS PARA O PAINEL DE SELEÇÃO FLUTUANTE (MOBILE & DESKTOP) --- */

/* Contêiner Fixo Mobile/Desktop */
.floating-selection-panel {
    position: fixed; /* Fixo na tela */
    right: 20px;
    bottom: 20px;
    z-index: 1001; /* Acima de tudo (e do fixed-footer do carrinho) */
    width: 320px; /* Largura padrão */
    max-width: 90%; /* Limite para telas pequenas */
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--cor-principal);
    display: none; /* Inicia oculto */
    transition: all 0.3s ease-in-out;
}

.selection-header {
    background-color: var(--cor-principal);
    color: white;
    padding: 10px 15px;
    border-radius: 9px 9px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

/* NOVO: Estilo para o botão de fechar/minimizar no header */
.selection-header .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 0;
}
.selection-header .close-btn:hover {
    transform: scale(1.1);
}

/* NOVO: Estilo para o Painel no estado MINIMIZADO (Oculta o corpo) */
.floating-selection-panel.minimized {
    width: 55px; /* Largura mínima para o botão de reabrir */
    height: 55px;
    border-radius: 50%; /* Transforma em um círculo */
    padding: 0;
    overflow: hidden; /* Oculta o conteúdo */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 3px solid white; /* Efeito de borda branca */
}

/* NOVO: Esconde o Header (que contém o botão fechar) quando minimizado */
.floating-selection-panel.minimized .selection-header {
    background-color: transparent; /* Remove a cor */
    border-radius: 50%;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex; /* Garante que o ícone fique centralizado */
    align-items: center;
    justify-content: center;
}

/* NOVO: Oculta o Conteúdo quando Minimizado */
.floating-selection-panel.minimized .selection-content {
    display: none;
}

/* NOVO: Estilo para o botão de fechar/minimizar quando o painel estiver minimizado */
.floating-selection-panel.minimized .close-btn {
    font-size: 1.5em; /* Aumenta o ícone de reabrir */
    color: white; 
    background-color: var(--cor-principal);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* NOVO: Oculta a contagem de texto quando minimizado */
.floating-selection-panel.minimized .selection-header span {
     display: none; 
}

/* NOVO: Garante o display flex para o header no estado minimizado */
.floating-selection-panel.minimized .selection-header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.selection-content {
    padding: 15px;
}

.selection-content h3 {
    font-size: 1.1em;
    font-weight: 700;
    margin-top: 0;
    color: var(--cor-texto-principal);
    border-bottom: 1px dashed #eee;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

#selected-list-preview {
    list-style: none;
    padding: 0;
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 15px;
}

#selected-list-preview li {
    font-size: 0.9em;
    color: #555;
    padding: 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-actions-container-floating {
    display: flex;
    flex-direction: column; 
    gap: 8px;
    margin-top: 10px;
}

.action-btn-copy-float {
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Botão de Link Rápido (Azul/Verde) */
.btn-quick-link {
    background-color: #28a745; 
    color: white;
}
.btn-quick-link:hover {
    background-color: #1e7e34;
    transform: translateY(-1px);
}

/* Botão de Copiar Link e Ir para Carrinho (Cor Principal) */
.btn-copy-float {
    background-color: var(--cor-principal);
    color: white;
}
.btn-copy-float:hover {
    background-color: #1B3F9B; /* Cor principal um pouco mais escura */
    transform: translateY(-1px);
}

/* Botão de Limpar (Cinza Claro/Perigo) */
#clear-selection-btn-float {
    background: #f8d7da; /* Vermelho/Alerta Suave */
    color: #721c24; 
    font-size: 0.85em;
    padding: 5px;
    border-radius: 6px;
    margin-top: 5px;
    width: 100%;
    margin-bottom: 5px;
}
#clear-selection-btn-float:hover {
    background-color: #f5c6cb;
}

/* --- Ajuste CRÍTICO para o Checkbox do Produto --- */
/* Checkbox flutuando no canto do card - AGORA ESCONDIDO */
.product-selector-vitrine {
    display: none; 
}

/* --------------------------------------------------- */
/* NOVO: HOTSPOT DE SELEÇÃO RÁPIDA (melhor usabilidade) */
/* --------------------------------------------------- */
.quick-select-hotspot {
    position: absolute;
    top: 0;
    left: 0;
    /* NOVO: Define uma área de clique grande no canto superior esquerdo (ex: 50x50px) */
    width: 50px; 
    height: 50px; 
    cursor: pointer;
    z-index: 101; /* Acima do badge */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent; /* Invisível */
    transition: all 0.2s;
}

/* O Estilo visual agora está no LABEL (que contém o ícone) */
.quick-select-label {
    position: absolute;
    top: 5px; /* Ajusta a posição */
    left: 5px; /* Ajusta a posição */
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Transforma em círculo */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px; /* Tamanho do ícone */
    background-color: white;
    border: 2px solid var(--cor-principal);
    color: var(--cor-principal);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

/* Estilo do Hotspot quando o produto estiver SELECIONADO */
.product-card.selected .quick-select-label {
    background-color: var(--cor-principal);
    color: white; /* Ícone branco */
}

/* O Hover no Hotspot muda o estilo para indicar clique */
.quick-select-hotspot:hover .quick-select-label {
    transform: scale(1.1);
}

/* Responsividade */
@media (max-width: 768px) {
    .store-header { margin: 15px 0 20px; padding: 20px; border-radius: 0; }
    .store-header h1 { font-size: 2.2em; }
    .product-grid { 
        gap: 15px; 
        padding: 10px 0 30px; 
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    }
    
    .product-photo-container { 
        height: 150px; 
    }
    
    .product-info { 
        padding: 8px; 
    }
    
    .product-info h2 { 
        font-size: 1.1em; 
        /* ATUALIZAÇÃO CRÍTICA FINAL: Aumentado o max-height para 6.1em (cerca de 5 linhas) para garantir espaço suficiente no A16 */
        max-height: 6.1em; 
    } 
    
    .selling-price { 
        font-size: 1.4em; 
    } 
    
    .product-sku { 
        /* AJUSTE PARA MOBILE: Garante que o SKU fique na esquerda e tenha margem inferior para não encostar no preço */
        text-align: left; 
        margin-bottom: 5px;
        /* Garante que o SKU não encoste no h2, dando um pequeno respiro */
        margin-top: 5px; 
    } 
    
    /* Outros ajustes móveis (mantidos do código anterior) */
    #product-search-bar {
        padding: 16px 45px 16px 45px; /* AJUSTADO: Padding lateral para acomodar ícones */
        font-size: 1em;
    }
    .search-bar-container .search-icon {
        left: 15px;
        font-size: 1.1em;
    }
    .btn-clear-search-vitrine {
        right: 10px; /* Ajusta a posição do */
    }
    
    .whatsapp-desktop-only,
    .desktop-only-item { 
        display: none !important; 
    }
    
    .whatsapp-mobile-menu {
        display: flex !important; 
        gap: 15px;
        width: 100%;
        justify-content: center; 
        flex-wrap: wrap; 
    }

    .whatsapp-mobile-menu .btn-whatsapp.btn-message { 
        padding: 10px; 
        min-width: 45px; 
        max-width: 45px; 
        flex: 0 0 auto;
        justify-content: center; 
    }
    
    .whatsapp-mobile-menu .btn-whatsapp.btn-message span {
        display: none; 
    }

    .whatsapp-mobile-menu .action-btn.btn-call-half { 
        flex: 1 1 100px; 
        padding: 10px 15px;
        font-size: 0.9em;
        height: 45px;
        min-width: unset; 
        max-width: unset;
        justify-content: center;
    }

    .whatsapp-mobile-menu .btn-copy-link,
    .whatsapp-mobile-menu .btn-pix { 
        flex: 1 1 45%; 
        padding: 10px 15px; 
        font-size: 0.9em; 
        min-width: unset; 
        max-width: unset;
        justify-content: center;
        height: 45px;
        white-space: nowrap; 
        text-align: center; 
    }
    
    .whatsapp-mobile-menu .action-btn i {
        margin-right: 5px; 
    }
    
    .whatsapp-mobile-menu .btn-whatsapp.btn-message i {
        margin-right: 0; 
    }
    
    /* CORREÇÃO CRÍTICA MOBILE: Separa o DESTAQUE da PROMOÇÃO em mobile */
    .featured-badge { /* Mantém o Destaque no topo */
        top: 8px; 
        font-size: 0.7em; 
        padding: 3px 6px; 
    }

    .promo-badge { /* Ajusta o Promo para ficar abaixo do destaque em mobile */
        top: 30px; /* 8px do destaque + altura do badge + espaço */
        right: 0; 
        left: auto; 
        font-size: 0.7em; 
        padding: 3px 6px;
    }

    /* Ajuste do Painel Flutuante no Mobile */
    .floating-selection-panel {
        right: 10px;
        bottom: 10px;
        width: 90%; 
        max-width: 350px;
    }
    .selection-content {
        padding: 10px;
    }
    /* Ajuste para garantir que o minimizado funcione bem no mobile */
    .floating-selection-panel.minimized {
         right: 10px;
         bottom: 10px;
    }

    /* Ajuste para a dica de detalhes no mobile */
    .product-detail-hint {
        font-size: 0.7em;
        padding: 4px 8px;
    }
    
    /* Ajuste mobile para os ícones de pagamento (Mais compacto) */
    .payment-icons-wrapper {
        gap: 10px; /* Reduzido o gap */
        margin: 10px auto 5px auto;
    }
    .payment-icons-wrapper i {
        font-size: 1.3em; /* Reduzido o tamanho do ícone */
    }
    
    /* Ajuste para o Toast de Pagamento em mobile */
    .payment-toast {
        bottom: 10px; /* Mais perto da borda inferior no mobile */
        min-width: 90%;
        max-width: 300px;
    }
}