/**
 * Estilos para a página de Resultados de Pesquisa
 */

/* Cabeçalho da página de pesquisa */
.fm-search-header {
    background-color: #082745;
    padding: 40px 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.fm-search-header h1 {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 2px;
}

.fm-search-header p {
    color: #ffffff;
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 1.5rem auto 0;
}

/* Estilo dos Cards de Produtos */
.fm-search-product-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.fm-search-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

.fm-search-product-card .position-relative {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.fm-search-product-card img {
    width: 100%;
    height: 250px !important;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.fm-search-product-card:hover img {
    transform: scale(1.05);
}

.fm-search-product-card .badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.85rem;
    padding: 8px 15px;
    z-index: 2;
}

.fm-search-product-card .p-3,
.fm-search-product-card .p-4 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fm-search-product-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fm-search-product-card .text-center {
    margin-top: auto;
}

.fm-search-detail-btn {
    background-color: #082745;
    color: #fff;
    border: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    width: auto;
    margin: 0 auto;
}

.fm-search-detail-btn:hover {
    background-color: transparent;
    color: #082745 !important;
    border-color: #082745;
}

.fm-search-detail-btn i {
    transition: transform 0.3s ease;
}

.fm-search-detail-btn:hover i {
    transform: translateX(5px);
}

/* Estilo da Sidebar */
.fm-search-sidebar {
    position: sticky;
    top: 150px;
    height: auto;
    width: 100%;
    background-color: #fff;
    border-radius: 24px;
}

.fm-search-form .input-group {
    border: 2px solid #082745;
    border-radius: 24px;
    overflow: hidden;
}

.fm-search-form .form-control {
    border: none;
    padding: 0.75rem 1rem;
}

.fm-search-form .form-control:focus {
    box-shadow: none;
    border-color: #082745;
}

.fm-search-form .btn-outline-secondary {
    border: none;
    color: #082745;
    padding: 0.75rem 1rem;
}

.fm-search-form .btn-outline-secondary:hover {
    background-color: #082745;
    color: #fff;
}

.fm-search-categories .fm-search-category-link {
    color: #333;
    text-decoration: none;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e9ecef;
}

.fm-search-categories li:last-child .fm-search-category-link {
    border-bottom: none;
}

.fm-search-categories .fm-search-category-link:hover {
    color: #082745;
    padding-left: 5px;
}

.fm-search-categories .fa-chevron-right {
    font-size: 0.8rem;
    color: #082745;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.fm-search-categories .fm-search-category-link:hover .fa-chevron-right {
    transform: translateX(5px);
    opacity: 1;
}

/* Resultado da pesquisa */
.fm-search-main .lead {
    color: #082745;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Paginação */
.fm-search-pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.75rem;
    color: #082745;
    border: 1px solid #082745;
    border-radius: 0.25rem;
    margin: 0 3px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.fm-search-pagination .page-item.active .page-link {
    background-color: #082745;
    border-color: #082745;
}

.fm-search-pagination .page-item .page-link:hover {
    background-color: #082745;
    color: white;
}

/* Resultados de pesquisa para conteúdos não-produtos */
.fm-search-results .fm-search-item {
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.fm-search-results .fm-search-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.fm-search-results .card-title .fm-search-link {
    color: #082745;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fm-search-results .card-title .fm-search-link:hover {
    color: #4a6d8c;
}

.fm-search-read-btn {
    background-color: #082745;
    color: #fff;
    border: 2px solid transparent;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.fm-search-read-btn:hover {
    background-color: transparent;
    color: #082745 !important;
    border-color: #082745;
}

.fm-search-read-btn i {
    transition: transform 0.3s ease;
}

.fm-search-read-btn:hover i {
    transform: translateX(5px);
}

/* Adaptação para dispositivos móveis */
@media (max-width: 991px) {
    .fm-search-header {
        padding: 50px 0;
    }
    
    .fm-search-header h1 {
        font-size: 2.2rem;
    }
    
    .fm-search-header p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .fm-search-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .fm-search-product-card .position-relative,
    .fm-search-product-card img {
        height: 200px !important;
    }
    
    .fm-search-product-card h2 {
        font-size: 1.1rem;
        min-height: 2.2rem;
    }
    
    .fm-search-detail-btn {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 767px) {
    .fm-search-product-card .position-relative,
    .fm-search-product-card img {
        height: 220px !important;
    }
} 