/* -------------------------------------------------------------------------- */
/* ELITE FISHING - DESKTOP ARCHITECTURE (PREMIUM VERSION 4.0)                 */
/* -------------------------------------------------------------------------- */

@media (min-width: 769px) {
    
    /* --- 1. ESTRUTURA GLOBAL E LAYOUT --- */
    
    .header-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 40px;
        width: 100%;
        animation: fadeInUp 0.8s ease-out; /* Animação de entrada suave */
    }

    .main-content {
        max-width: 1240px;
        margin: 0 auto;
        padding: 40px 28px 120px 28px; 
        min-height: 80vh;
    }

    /* --- 2. HEADER E IDENTIDADE VISUAL (CORRIGIDO E PROFISSIONAL) --- */

    .main-header {
        position: relative; 
        padding: 25px 0; /* Altura otimizada para profissionalismo */
        background: var(--white);
        border-bottom: 1px solid var(--gray-100);
        transition: all 0.4s ease;
    }

    .top-nav {
        display: grid;
        /* Estrutura: [Sociais] [Espaço] [Logo Central] [Espaço] [Ação] */
        grid-template-columns: 150px 1fr auto 1fr 150px; 
        align-items: center;
        gap: 20px;
    }

    /* Container para Instagram e TikTok à esquerda */
    .nav-social-group {
        display: flex;
        gap: 12px;
        grid-column: 1;
    }

    /* Container para botões de ação à direita */
    .nav-action-group {
        display: flex;
        justify-content: flex-end;
        grid-column: 5;
    }

    .brand-identity {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        grid-column: 3; /* Logo centralizado no meio exato */
    }

    .main-logo {
        height: 70px; /* Altura equilibrada */
        width: auto;
        margin-bottom: 8px;
        filter: drop-shadow(0 10px 20px rgba(3, 4, 94, 0.15));
        transition: transform 0.3s ease;
    }

    .store-name {
        font-size: 20px;
        font-weight: 900;
        color: var(--gray-900);
        letter-spacing: 2px;
        text-transform: uppercase;
        background: linear-gradient(135deg, var(--primary-dark), var(--primary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    /* --- 3. BOTÕES E COMPONENTES DO CABEÇALHO --- */

    .social-btn {
        width: 45px;
        height: 45px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--white);
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .social-btn svg { 
        width: 22px; 
        height: 22px; 
        fill: currentColor;
    }

    .social-btn.instagram { background: #E1306C; }
    .social-btn.tiktok { background: #000000; } /* Estilização profissional do TikTok */

    .social-btn:hover { 
        transform: translateY(-3px); 
        filter: brightness(1.1);
    }

    /* Botão Envie seu Vídeo */
    .btn-send-video {
        background: var(--primary);
        color: var(--white);
        padding: 12px 20px;
        border-radius: 12px;
        font-size: 13px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        white-space: nowrap;
        border: none;
    }

    .btn-send-video:hover {
        background: var(--primary-dark);
        box-shadow: 0 5px 15px rgba(0, 119, 182, 0.3);
        transform: translateY(-2px);
    }

    /* --- 4. ÁREA DE BUSCA E FILTROS --- */

    .search-area {
        margin-bottom: 60px;
        max-width: 950px;
        margin-left: auto;
        margin-right: auto;
        padding: 0 20px;
    }

    .search-flex {
        display: flex;
        gap: 25px;
        align-items: center;
    }

    .search-box {
        position: relative;
        flex: 3;
        background: var(--gray-100);
        border: 2px solid transparent;
        border-radius: 24px;
        padding: 22px 30px 22px 75px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    }

    .search-box:focus-within {
        background: var(--white);
        border-color: var(--primary-light);
        box-shadow: 0 0 0 10px rgba(0, 119, 182, 0.08);
        transform: translateY(-2px);
    }

    .search-icon {
        position: absolute;
        left: 30px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 28px;
        color: var(--gray-500);
        pointer-events: none;
    }

    .search-box input {
        width: 100%;
        border: none;
        background: transparent;
        outline: none;
        font-size: 19px;
        font-weight: 500;
        color: var(--gray-900);
    }

    .sort-select {
        flex: 1;
        height: 74px;
        background: var(--gray-100);
        border-radius: 24px;
        padding: 0 30px;
        font-size: 17px;
        font-weight: 700;
        color: var(--primary);
        cursor: pointer;
        border: 2px solid transparent;
        transition: 0.3s;
    }

    .sort-select:hover {
        background: var(--white);
        border-color: var(--gray-200);
    }

    /* --- 5. CATEGORIAS PILLS (DETALHAMENTO VISUAL) --- */

    .category-pills {
        display: flex;
        justify-content: center;
        gap: 30px;
        padding: 2px 0 5px 0;
    }

    .pill {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        cursor: pointer;
        border: none;
        background: none;
        transition: all 0.3s ease;
        padding: 5px;
    }

    .pill-img {
        width: 95px;
        height: 95px;
        border-radius: 50%;
        background-size: cover;
        background-position: center;
        border: 4px solid var(--gray-200);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: var(--shadow-sm);
        position: relative;
    }

    .pill:hover .pill-img {
        transform: translateY(-8px) scale(1.05);
        border-color: var(--primary-light);
        box-shadow: var(--shadow-md);
    }

    .pill.active .pill-img {
        border-color: var(--primary);
        box-shadow: 0 0 0 6px rgba(0, 119, 182, 0.15);
        transform: scale(1.05);
    }

    .pill span {
        font-size: 15px;
        font-weight: 800;
        color: var(--gray-500);
        text-transform: uppercase;
        letter-spacing: 1.2px;
        transition: 0.3s;
    }

    .pill.active span {
        color: var(--primary);
        text-shadow: 0 2px 4px rgba(0, 119, 182, 0.1);
    }

    /* --- 6. GRID DE PRODUTOS --- */

    .products-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr); 
        gap: 10px; 
    }

    .product-card {
        background: var(--white);
        border-radius: 32px; 
        overflow: hidden;
        box-shadow: 0 15px 35px rgba(0,0,0,0.06);
        display: flex;
        flex-direction: column;
        border: 1px solid var(--gray-100);
        transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        height: 100%;
        cursor: pointer;
        position: relative;
    }

    .product-card:hover { 
        transform: translateY(-20px);
        box-shadow: 0 40px 80px rgba(0, 119, 182, 0.18);
        border-color: var(--primary-light);
    }

    .card-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1; /* Garante que o container seja sempre quadrado */
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* A imagem preenche o quadrado sem sobrar espaços brancos */
    transition: transform 0.5s ease;
}

    .product-card:hover .card-img-wrapper img { 
        transform: scale(1.15) rotate(-2deg); 
    }

    /* SELOS (BADGES) FLUTUANTES */
    .product-badge {
        position: absolute;
        top: 25px;
        right: 25px;
        padding: 10px 16px;
        border-radius: 14px;
        font-size: 11px;
        font-weight: 900;
        color: var(--white);
        z-index: 10;
        box-shadow: 0 8px 15px rgba(0,0,0,0.12);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: flex;
        align-items: center;
        gap: 6px;
        background: var(--primary); 
    }

    .product-badge.promo { background: #ef4444; }

    /* DETALHES DO PRODUTO */
    .product-details {
        padding: 30px 35px 35px; 
        display: flex; 
        flex-direction: column; 
        gap: 15px; 
        flex-grow: 1;
        background: linear-gradient(to bottom, var(--white), var(--gray-50));
    }

    .prod-id {
        font-size: 13px;
        font-weight: 700;
        color: var(--gray-400);
        letter-spacing: 1px;
    }

    .product-title {
        font-size: 18px; 
        font-weight: 800; 
        color: var(--gray-900);
        line-height: 1.4; 
        height: 50px; 
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .price-tag {
        font-size: 28px; 
        font-weight: 950; 
        color: var(--primary);
        margin-top: auto;
        letter-spacing: -0.5px;
    }

    /* --- 7. MODAL DE DETALHES --- */

    .modal-overlay {
        position: fixed; 
        inset: 0; 
        background: rgba(3, 4, 94, 0.9);
        backdrop-filter: blur(15px); 
        display: none; 
        align-items: center; 
        justify-content: center; 
        z-index: 9999;
        padding: 40px;
    }

    .modal-overlay:not(.hidden) { 
        display: flex; 
    }

    .modal-container {
        width: 100%; 
        max-width: 1150px; 
        background: var(--white);
        border-radius: 48px; 
        display: flex; 
        overflow: hidden; 
        position: relative;
        box-shadow: 0 50px 100px rgba(0,0,0,0.5);
        animation: modalFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .modal-body {
        display: flex;
        width: 100%;
        min-height: 650px;
    }

    .modal-img-wrapper {
        flex: 1.2; 
        background: #fdfdfd;
        display: flex; 
        align-items: center; 
        justify-content: center;
        padding: 60px; 
        border-right: 1px solid var(--gray-100);
        position: relative;
    }

    .modal-img-wrapper img {
        max-width: 100%;
        max-height: 550px;
        object-fit: contain;
        filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08));
    }

    .modal-info {
        flex: 1; 
        padding: 70px;
        display: flex; 
        flex-direction: column; 
        justify-content: center;
        text-align: left;
    }

    .modal-info h2 {
        font-size: 36px;
        font-weight: 900;
        color: var(--gray-900);
        margin-bottom: 25px;
        line-height: 1.2;
    }

    .modal-info span {
        font-size: 54px;
        font-weight: 950;
        color: var(--primary);
        margin-bottom: 45px;
        display: block;
        letter-spacing: -1.5px;
    }

    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .btn {
        width: 100%;
        padding: 24px;
        border-radius: 20px;
        font-weight: 800;
        font-size: 18px;
        text-align: center;
        text-transform: uppercase;
        display: block;
        letter-spacing: 0.8px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .btn-primary { 
        background: var(--primary); 
        color: var(--white); 
        box-shadow: 0 15px 35px rgba(0, 119, 182, 0.35); 
    }

    .btn-primary:hover { 
        transform: translateY(-5px); 
        background: var(--primary-dark);
        box-shadow: 0 20px 45px rgba(0, 119, 182, 0.45);
    }

    .btn-secondary { 
        border: 2.5px solid var(--primary); 
        color: var(--primary); 
        background: transparent;
    }

    .btn-secondary:hover { 
        background: var(--primary); 
        color: var(--white); 
        transform: translateY(-5px);
    }

    .btn-share {
        background: var(--gray-100);
        color: var(--gray-500);
        font-size: 14px;
        margin-top: 15px;
        border-radius: 14px;
        padding: 15px;
    }

    .btn-share:hover {
        background: var(--gray-200);
        color: var(--gray-900);
    }

    .btn-close {
        position: absolute; 
        top: 35px; 
        right: 35px; 
        width: 60px; 
        height: 60px;
        background: var(--gray-100); 
        border-radius: 50%; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        font-weight: bold;
        font-size: 22px;
        z-index: 100;
        transition: all 0.4s;
    }

    .btn-close:hover { 
        background: var(--primary); 
        color: white; 
        transform: rotate(180deg); 
    }

    /* --- 8. RODAPÉ (FOOTER) --- */

 .main-footer {
    background: #020617; /* Azul escuro profundo e profissional */
    color: #f8fafc;
    padding: 60px 20px 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr; /* Layout em colunas no desktop */
    gap: 40px;
    text-align: left;
}

/* Garante que a logo apareça corretamente sem filtros que a "apaguem" */
.footer-logo-clean {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
    filter: none !important; /* Remove filtros de inversão de cor */
    display: block;
}

.footer-column h3, .footer-column h4 {
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.footer-email {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-light);
    font-weight: 600;
    margin-top: 15px;
    transition: 0.3s;
}

.footer-email:hover {
    color: white;
    text-decoration: underline;
}

/* Botões de Redes Sociais no Rodapé */
.footer-social-icons {
    display: flex;
    gap: 15px;
}

.social-icon-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.social-icon-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-icon-btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 0.6;
    font-size: 13px;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo-clean, .footer-email, .footer-social-icons {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
}
    .filter-section {
    position: sticky;
    top: 0;
    transition: transform 0.3s ease-in-out; /* Transição suave para sumir */
    z-index: 900;
}

/* Classe que será aplicada via JS para esconder */
.filter-section.hidden-nav {
    transform: translateY(-100%);
}

}