/**
 * styles.css - Folha de estilos principal
 * Versão: 1.1.2
 * Última atualização: 11/05/2025
 * Autor: Em Casa com Cecília
 * 
 * Estilos para o site de showcase de produtos, incluindo:
 * - Layout responsivo para desktop e mobile
 * - Estilos para cards de produtos e modo de destaque
 * - Barra de navegação e categorias
 * - Animações e transições para melhor UX
 */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Suporte para prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .product,
    .product:hover,
    .product.visible,
    .product.highlighted,
    .product-overlay,
    .product-overlay.active,
    .prices a,
    .links a,
    .close-highlight-btn,
    nav a,
    nav a:hover,
    nav a:focus,
    .product-image img,
    .store-logo,
    .youtube-link i,
    .review-logo,
    .copy-link-btn,
    .whatsapp-share-btn,
    .twitter-share-btn,
    .facebook-share-btn,
    .pinterest-share-btn,
    .tiktok-share-btn {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

/* Estilos gerais */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    background-color: #0c1826;
    color: #ffffff;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Cabeçalho */
header {
    background-color: #1a2634;
    color: #ffffff;
    padding: 12px 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-right: 10px;
}

.site-logo {
    width: 230px;
    height: auto;
    max-height: 70px;
    object-fit: contain;
    display: block;
}

.header-title {
    display: none;
}

.search-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-grow: 1;
    position: relative;
    gap: 8px;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    transition: all 0.3s ease;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a0a0;
    font-size: 18px;
    pointer-events: none;
}

.search-bar__input {
    width: 100%;
    padding: 8px 35px 8px 35px;
    font-size: 15px;
    border: none;
    border-radius: 50px;
    background-color: #ffffff;
    color: #2a3644;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.search-bar__input::placeholder { color: #a0a0a0; }

/* Atualizar os focos para incluir os novos botões */
.search-bar__input:focus,
.clear-search-btn:focus,
.header-nav-btn:focus,
nav a:focus,
.footer-contact-email:focus,
.close-highlight-btn:focus,
.copy-link-btn:focus,
.whatsapp-share-btn:focus,
.twitter-share-btn:focus,
.facebook-share-btn:focus,
.pinterest-share-btn:focus,
.tiktok-share-btn:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

.clear-search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 16px;
    cursor: pointer;
    display: none;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
    border-radius: 50%;
}
.clear-search-btn:hover, .clear-search-btn:focus { color: #ff6b6b; }

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 60px;
}

.header-nav-links {
    display: flex;
    gap: 8px;
}

.header-nav-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    background-color: #2a3644;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.header-nav-btn:hover, .header-nav-btn:focus { background-color: #ff6b6b; color: #ffffff; }
.nav-icon { font-size: 15px; }
.nav-text { font-weight: 500; }

/* Navegação por Categorias */
nav {
    background-color: #0c1826;
    padding: 15px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
    position: sticky;
    top: 72px;
    z-index: 90;
    border-top: 1px solid #2a3644;
    border-bottom: 1px solid #2a3644;
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    padding: 5px 0;
}

nav a {
    color: #ffffff;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: 500;
    border-radius: 50px;
    background-color: #2a3644;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

nav a:hover, nav a:focus {
    color: #ffffff;
    background-color: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

nav a.active {
    color: #ffffff;
    background-color: #ff6b6b;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

nav a:hover::after, nav a:focus::after, nav a.active::after {
    width: 0; /* Removendo o sublinhado já que temos o botão com fundo */
}

.prev-category-btn,
.next-category-btn {
    display: none;
    background: #2a3644;
    border: none;
    color: #ffffff;
    font-size: 16px;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
}

.prev-category-btn:hover,
.next-category-btn:hover,
.prev-category-btn:focus,
.next-category-btn:focus {
    background-color: #ff6b6b;
    transform: scale(1.1);
}

/* Container Principal */
.container {
    max-width: 100%;
    margin: 0;
    padding: 0 0 10px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #0c1826;
    position: relative;
    min-height: 100vh;
}

/* Remover Barra de Filtros e Paginação */
.filters-bar,
.pagination {
    display: none;
}

/* Lista de Produtos */
#products-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    justify-content: center;
    gap: 20px;
    padding: 20px;
    margin: 0 0 auto 0; /* Auto margin no bottom */
    background-color: #0c1826;
    position: relative;
    z-index: 1;
    min-height: 200px; /* Altura mínima para evitar espaço vazio em categorias com poucos itens */
}

/* Card do Produto */
.product {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid #2a3644;
    border-radius: 12px;
    background-color: #1a2634;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.6s ease, border-color 0.3s ease;
    width: 100%;
    max-width: 350px;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

.product.visible {
    opacity: 1;
    transform: translateY(0);
}

.product:hover {
    border-color: #ff6b6b; /* Apenas borda colorida */
}

/* Modo de Destaque */
.product.highlighted {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    background-color: #1a2634;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border: 2px solid #ff6b6b;
    opacity: 1;
    padding: 20px;
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.25); }
    100% { transform: translate(-50%, -50%) scale(1.2); }
}

.product-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    opacity: 0;
    backdrop-filter: blur(3px);
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
}

.product-overlay.active {
    display: block;
    opacity: 1;
    backdrop-filter: blur(5px);
}

.close-highlight-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    display: none;
    z-index: 1002;
}

.product.highlighted .close-highlight-btn {
    display: block !important;
}

.close-highlight-btn:hover, .close-highlight-btn:focus {
    color: #ff6b6b;
    transform: scale(1.2) rotate(90deg);
}

/* Exibição Seletiva */
.product .prices a:not(.lowest-price),
.product .links,
.product .share-actions {
    display: none;
}

.product.expanded .prices a:not(.lowest-price),
.product.expanded .links {
    display: inline-flex;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    animation-delay: 0.2s;
}

.product.highlighted .prices a:not(.lowest-price),
.product.highlighted .links,
.product.highlighted .share-actions {
    display: flex;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
    animation-delay: 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #2a3644;
    align-items: center;
}

.share-actions span {
    font-size: 13px;
    color: #ffffff;
}

.copy-link-btn,
.whatsapp-share-btn,
.twitter-share-btn,
.facebook-share-btn,
.pinterest-share-btn,
.tiktok-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 16px;
    color: #ffffff;
    background-color: #2a3644;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.copy-link-btn:hover,
.copy-link-btn:focus,
.twitter-share-btn:hover,
.twitter-share-btn:focus,
.facebook-share-btn:hover,
.facebook-share-btn:focus,
.pinterest-share-btn:hover,
.pinterest-share-btn:focus,
.tiktok-share-btn:hover,
.tiktok-share-btn:focus {
    background-color: #ff6b6b;
    transform: translateY(-2px);
}

.whatsapp-share-btn {
    background-color: #25D366;
}

.whatsapp-share-btn:hover,
.whatsapp-share-btn:focus {
    background-color: #1DA851;
}

.twitter-share-btn {
    background-color: #1DA1F2;
}

.twitter-share-btn:hover,
.twitter-share-btn:focus {
    background-color: #1a91da;
}

.facebook-share-btn {
    background-color: #4267B2;
}

.facebook-share-btn:hover,
.facebook-share-btn:focus {
    background-color: #365899;
}

.pinterest-share-btn {
    background-color: #E60023;
}

.pinterest-share-btn:hover,
.pinterest-share-btn:focus {
    background-color: #cc0000;
}

.tiktok-share-btn {
    background-color: #000000;
}

.tiktok-share-btn:hover,
.tiktok-share-btn:focus {
    background-color: #333333;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: #a0a0a0;
    border-bottom: 1px dashed #2a3644;
    padding-bottom: 8px;
}

.category-tag {
    background-color: #2a3644;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.category-tag:hover,
.category-tag:focus {
    background-color: #ff6b6b;
    color: #ffffff;
    transform: scale(1.05);
}

.category-tag::before {
    content: '#';
    opacity: 0.7;
    margin-right: 2px;
}

.date-updated {
    color: #a0a0a0;
    font-size: 12px;
    display: inline-block;
}

.product-top {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.product-image {
    flex-shrink: 0;
    width: 120px;
    height: 90px;
    overflow: hidden;
    border-radius: 5px;
    background-color: #2a3644;
}

.product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.product:hover .product-image img {
    transform: scale(1.05);
}

.product-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-details h3 {
    margin: 0 0 10px 0;
    line-height: 1.3;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prices {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 10px;
}

.prices a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    background-color: #2a3644;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.prices a:hover, .prices a:focus {
    background-color: #ff6b6b;
    color: #ffffff;
    transform: translateY(-2px);
}

.prices a.lowest-price {
    background-color: #ff6b6b;
    color: #ffffff;
    font-weight: bold;
}

.store-logo {
    vertical-align: middle;
    margin-right: 8px;
    display: inline-block;
    width: 20px;
    height: 20px;
    object-fit: contain;
    background-color: #fff;
    border-radius: 3px;
    transition: transform 0.3s ease;
}

.prices a:hover .store-logo {
    transform: scale(1.1);
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #2a3644;
}

.links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.links a:hover, .links a:focus {
    text-decoration: none;
    transform: translateY(-2px);
}

/* Atualizar o estilo do link do YouTube */
.youtube-link {
    background-color: #ff0000;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.youtube-link:hover,
.youtube-link:focus {
    background-color: #cc0000;
    transform: translateY(-2px);
}

.youtube-link i {
    font-size: 16px;
}

.review-link { background-color: #4a5a6a; color: #ffffff; }
.review-link:hover, .review-link:focus { background-color: #3a4a5a; }

.youtube-logo,
.review-logo {
    display: inline-block;
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.links a:hover .youtube-logo,
.links a:hover .review-logo {
    transform: scale(1.1);
}

/* Mensagem "Nenhum Resultado" */
.no-results {
    display: none;
    text-align: center;
    color: #a0a0a0;
    padding: 30px 20px;
    background-color: #1a2634;
    border: 1px solid #2a3644;
    border-radius: 8px;
    margin: 20px;
}
.no-results.visible { display: block; }

.no-results p {
    font-size: 1.1em;
    margin-bottom: 15px;
}

.other-category-message {
    color: #ff6b6b;
    font-weight: 500;
    margin: 15px 0 10px 0;
    font-size: 1em;
}

.suggestions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}
.suggestions-list .product {
    background-color: #2a3644;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.suggestions-list .product:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Mensagem de Erro */
.error-message {
    text-align: center;
    color: #ff6b6b;
    font-size: 1.1em;
    padding: 20px;
    background-color: #2a3644;
    border: 1px solid #ff6b6b;
    border-radius: 8px;
    margin: 20px;
}

/* Rodapé */
.affiliate-disclaimer {
    text-align: left;
    padding: 20px 30px;
    background-color: #1a2634;
    color: #a0a0a0;
    border-top: 1px solid #2a3644;
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer-title { font-size: 22px; font-weight: 600; color: #ffffff; }
.footer-subtitle { font-size: 13px; color: #a0a0a0; }
.footer-contact-email { font-size: 15px; color: #ffffff; text-decoration: underline; transition: color 0.3s ease; }
.footer-contact-email:hover, .footer-contact-email:focus { color: #ff6b6b; }
.footer-copyright { font-size: 12px; color: #a0a0a0; margin-top: 8px; }

.footer-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #ff6b6b;
    text-decoration: underline;
}

.social-media {
    display: flex;
    gap: 15px;
}

.social-media a {
    color: #ffffff;
    font-size: 20px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-media a:hover,
.social-media a:focus {
    color: #ff6b6b;
    transform: scale(1.1);
}

/* Media Queries para Responsividade */
@media (max-width: 768px) {
    header { 
        padding: 8px 12px; 
    }

    .header-content { 
        gap: 4px; 
    }

    .site-logo { 
        width: 180px; 
        max-height: 55px; 
    }
    
    /* Ajustar posição da barra de categorias para o header mobile */
    nav { 
        padding: 10px 0; 
        top: 55px; /* Ajustado para o tamanho reduzido do header no mobile */
    }

    .search-bar {
        width: 100%;
        max-width: 100%; /* Full width on mobile */
    }

    .header-nav-links { gap: 5px; }
    .header-nav-btn { padding: 6px; }
    .nav-icon { font-size: 18px; }
    .nav-text { display: none; }

    nav { 
        padding: 10px 0; 
        gap: 0; 
        overflow: hidden;
        border-top: 1px solid #2a3644;
        border-bottom: 1px solid #2a3644;
        margin-bottom: 10px;
    }
    
    .category-links {
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        white-space: nowrap;
        padding: 0 10px;
        justify-content: flex-start;
        gap: 6px;
    }
    
    .category-links::-webkit-scrollbar {
        display: none;
    }
    
    nav a {
        display: inline-flex;
        margin: 0;
        font-size: 12px;
        padding: 6px 12px;
        min-width: auto;
        box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    }
    
    /* Os botões são escondidos via JavaScript no mobile */
    .prev-category-btn,
    .next-category-btn {
        display: none;
    }

    #products-list {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
        max-height: none;
        overflow-y: visible;
        margin-bottom: 0;
        position: relative;
        z-index: 1;
        min-height: 100px;
    }

    .product {
        padding: 8px;
        max-width: none;
    }

    .product-top { 
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }

    .product-image { 
        width: 80px;
        height: 60px;
    }

    .product-details h3 { 
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 6px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .product-meta {
        margin-bottom: 6px;
        padding-bottom: 4px;
        font-size: 10px;
    }

    .prices { 
        gap: 6px 8px;
        margin-bottom: 6px;
    }

    .prices a { 
        font-size: 14px;
        padding: 4px 8px;
    }

    .store-logo { 
        width: 20px;
        height: 20px;
        margin-right: 6px;
    }

    .links { 
        gap: 6px;
        padding-top: 6px;
    }

    .links a { 
        font-size: 11px;
        padding: 3px 6px;
        gap: 3px;
    }

    .youtube-logo, .review-logo { 
        width: 12px;
        height: 12px;
    }

    .copy-link-btn,
    .whatsapp-share-btn,
    .twitter-share-btn,
    .facebook-share-btn,
    .pinterest-share-btn,
    .tiktok-share-btn {
        font-size: 14px;
        padding: 4px;
    }

    .copy-icon,
    .whatsapp-icon {
        width: 16px;
        height: 16px;
    }

    .product.highlighted {
        max-width: 90%;
        max-height: 80vh;
        padding: 15px;
        transform: translate(-50%, -50%) scale(1.05);
    }

    .product.highlighted .product-top {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .product.highlighted .product-image {
        width: 80%;
        height: auto;
        max-height: 200px;
    }

    .product.highlighted .product-details {
        align-items: center;
        text-align: center;
    }

    .product.highlighted .product-details h3 {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 10px;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .product.highlighted .product-meta {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-bottom: 10px;
        padding-bottom: 8px;
        font-size: 12px;
    }

    .product.highlighted .prices {
        justify-content: center;
        gap: 8px 12px;
        margin-bottom: 10px;
    }

    .product.highlighted .links {
        justify-content: center;
        gap: 10px;
        padding-top: 10px;
    }

    .product.highlighted .share-actions {
        justify-content: center;
        gap: 8px;
        margin-top: 8px;
        padding-top: 8px;
    }

    .suggestions-list { 
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .affiliate-disclaimer { 
        position: relative;
        z-index: 2;
        margin-top: auto;
    }
    .footer-top { flex-direction: column; align-items: flex-start; }
    .footer-right { align-items: flex-start; }
    .footer-title { font-size: 20px; }
    .footer-subtitle, .footer-copyright { font-size: 12px; }
    .footer-contact-email { font-size: 14px; }
    .social-media { margin-top: 10px; }
    
    /* Garantir que o contador de resultados apareça no mobile */
    #results-count-wrapper {
        padding: 8px 0;
        margin: 0;
        order: 5;
        position: relative;
        z-index: 5;
        border-bottom: none;
        border-top: 1px solid #2a3644;
        background-color: #1a2634; /* Mesma cor de fundo do rodapé */
    }
    
    #results-count {
        font-size: 12px;
        padding: 3px 8px;
    }

    .container {
        min-height: 100vh;
        padding-bottom: 0;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    main {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        background-color: #0c1826;
        min-height: 50vh;
        position: relative;
        z-index: 1;
    }

    /* Adicionar divisor visual sutil entre o contador e o rodapé */
    #results-count:after {
        content: '';
        display: block;
        width: 80%;
        height: 1px;
        background-color: #2a3644;
        margin: 8px auto 0;
        opacity: 0.5;
    }

    .plus-icon {
        font-size: 16px;
        margin-left: 6px;
    }
}

@media (max-width: 480px) {
    .site-logo { 
        width: 150px; 
        max-height: 48px; 
    }
    
    .header-nav-btn { 
        padding: 5px; 
    }
    
    .nav-icon { 
        font-size: 16px; 
    }
    
    nav { 
        top: 48px; /* Ajustado para o tamanho ainda menor do header */
    }
    
    nav a { 
        font-size: 11px; 
        padding: 6px 10px; 
        margin: 0 2px; 
    }
    
    /* Efeito de borda também no mobile */
    .product:hover {
        transform: translateY(-3px); /* Movimento um pouco menor no mobile */
        border-color: #ff6b6b;
    }
    
    .product:hover:before {
        opacity: 0.5; /* Um pouco menos intenso no mobile */
    }

    #products-list {
        gap: 8px;
        padding: 8px;
        max-height: calc(100vh - 130px);
    }

    .product { padding: 6px; }

    .product-top { 
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }

    .product-image { 
        width: 70px;
        height: 50px;
    }

    .product-details h3 { 
        font-size: 15px;
        line-height: 1.2;
        margin-bottom: 4px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .product-meta {
        margin-bottom: 4px;
        padding-bottom: 3px;
        font-size: 9px;
    }

    .prices { 
        gap: 4px 6px;
        margin-bottom: 4px;
    }

    .prices a { 
        font-size: 13px;
        padding: 3px 6px;
    }

    .store-logo { 
        width: 18px;
        height: 18px;
        margin-right: 5px;
    }

    .links { 
        gap: 4px;
        padding-top: 4px;
    }

    .links a { 
        font-size: 10px;
        padding: 2px 5px;
        gap: 2px;
    }

    .youtube-logo, .review-logo { 
        width: 10px;
        height: 10px;
    }

        .copy-link-btn,
        .whatsapp-share-btn,
        .twitter-share-btn,
        .facebook-share-btn,
        .pinterest-share-btn,
        .tiktok-share-btn {
            font-size: 12px;
            padding: 3px;
        }

    .copy-icon,
    .whatsapp-icon {
        width: 14px;
        height: 14px;
    }

    .product.highlighted {
        max-width: 95%;
        max-height: 75vh;
        padding: 12px;
        transform: translate(-50%, -50%) scale(1);
    }

    .product.highlighted .product-top {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .product.highlighted .product-image {
        width: 80%;
        height: auto;
        max-height: 180px;
    }

    .product.highlighted .product-details {
        align-items: center;
        text-align: center;
    }

    .product.highlighted .product-details h3 {
        font-size: 15px;
        line-height: 1.2;
        margin-bottom: 8px;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .product.highlighted .product-meta {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-bottom: 8px;
        padding-bottom: 6px;
        font-size: 10px;
    }

    .product.highlighted .prices {
        justify-content: center;
        gap: 6px 8px;
        margin-bottom: 8px;
    }

    .product.highlighted .links {
        justify-content: center;
        gap: 8px;
        padding-top: 8px;
    }

    .product.highlighted .share-actions {
        justify-content: center;
        gap: 6px;
        margin-top: 6px;
        padding-top: 6px;
    }

    .close-highlight-btn {
        font-size: 20px;
        top: 8px;
        right: 8px;
    }

    .affiliate-disclaimer { padding: 12px 15px; }
    .footer-title { font-size: 18px; }
    
    /* Contador de resultados em telas ainda menores */
    #results-count-wrapper {
        padding: 5px 0;
    }
    
    #results-count {
        font-size: 11px;
        padding: 2px 5px;
    }

    .plus-icon {
        font-size: 14px;
        margin-left: 4px;
    }
}

/* Ajuste da foto no modo destaque para desktop */
.product.highlighted .product-image {
    width: 300px;
    height: 225px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 5px;
    background-color: #2a3644;
}

.product.highlighted .product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.product.highlighted:hover .product-image img {
    transform: scale(1.05);
}

#results-count-wrapper {
    width: 100%;
    display: block;
    margin: 10px 0 0 0;
    padding: 10px 0;
    position: relative;
    background-color: #1a2634;
    border-top: 1px solid #2a3644;
    text-align: center;
}

#results-count {
    display: inline-block;
    text-align: center;
    color: #a0a0a0;
    font-size: 14px;
    margin: 0;
    padding: 5px 10px;
    background-color: transparent;
    position: static !important;
    width: auto;
    border-radius: 4px;
}

/* Main content */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #0c1826;
    min-height: 50vh;
    position: relative;
    z-index: 1;
}

/* Estilos para o ícone "+" ao lado do menor preço */
.plus-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    font-size: 18px;
    color: #ff6b6b;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease, transform 0.2s ease;
    animation: pulse-icon 1.5s infinite ease-in-out;
}

.plus-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes pulse-icon {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Esconder o ícone "+" nos cards destacados */
.product.highlighted .plus-icon {
    display: none;
}

/* Garantir que o container do card seja position: relative */
.product {
    position: relative;
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Montserrat Regular'), local('Montserrat-Regular'),
         url('https://fonts.gstatic.com/s/montserrat/v25/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtr6Hw5aXp-p7K4KLg.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local('Montserrat Medium'), local('Montserrat-Medium'),
         url('https://fonts.gstatic.com/s/montserrat/v25/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtZ6Hw5aXp-p7K4KLg.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Montserrat SemiBold'), local('Montserrat-SemiBold'),
         url('https://fonts.gstatic.com/s/montserrat/v25/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCu173w5aXp-p7K4KLg.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Montserrat Bold'), local('Montserrat-Bold'),
         url('https://fonts.gstatic.com/s/montserrat/v25/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCuM73w5aXp-p7K4KLg.woff2') format('woff2');
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin-bottom: 20px;
    padding: 0 10px;
}

#results-count {
    font-size: 14px;
    color: #a0a0a0;
}

.sort-select {
    padding: 8px 12px;
    border: none;
    border-radius: 50px;
    background-color: #2a3644;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-width: 120px;
}

.sort-select:hover,
.sort-select:focus {
    background-color: #ff6b6b;
    outline: none;
}

.sort-select option {
    background-color: #1a2634;
    color: #ffffff;
    padding: 8px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .search-bar {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .search-bar__input {
        width: 100%;
        font-size: 16px; /* Melhora a legibilidade no mobile */
        padding: 12px 40px; /* Aumenta a área de toque */
    }

    .results-header {
        flex-direction: row;
        gap: 10px;
        align-items: flex-start;
    }

    .sort-select {
        width: 100%;
        max-width: 150px;
        font-size: 12px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .search-bar__input {
        font-size: 16px;
        padding: 12px 40px;
    }

    .sort-select {
        width: 100%;
        max-width: 180px;
        font-size: 14px;
        padding: 10px;
    }
}
