/* -------------------------------------------------------------------------- */
/* ELITE FISHING - MOBILE ARCHITECTURE (OCEAN BLUE & REFINED DETAILS)         */
/* -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    
    /* --- 0. CORREÇÃO DE OVERFLOW GLOBAL --- */
    html, body {
        overflow-x: hidden; /* Impede o deslizamento para a direita */
        position: relative;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* --- 1. HEADER SYSTEM (CORREÇÃO DE ALINHAMENTO) --- */
    .main-header {
        position: relative;
        top: 0;
        z-index: 1000;
        padding: 12px 0;
        background: var(--white);
        border-bottom: 1px solid rgba(2, 62, 138, 0.08);
        width: 100%;
        box-sizing: border-box;
    }

    .header-container {
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Sistema de 3 colunas para manter Social, Logo e Botão na mesma linha */
    .top-nav {
        display: grid;
        grid-template-columns: 85px 1fr 85px; 
        align-items: center;
        gap: 10px;
    }

    .nav-social-group {
        display: flex;
        gap: 8px;
        justify-content: flex-start;
    }

    .brand-identity {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1;
        animation: fadeInUp 0.6s ease-out;
    }

    .main-logo {
        height: 44px;
        width: auto;
        margin-bottom: 2px;
        filter: drop-shadow(0 4px 8px rgba(0, 119, 182, 0.15));
    }

    .store-name {
        font-size: 10px;
        font-weight: 900;
        color: #03045e;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        white-space: nowrap;
        background: linear-gradient(90deg, #03045e, #0077b6);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .nav-action-group {
        display: flex;
        justify-content: flex-end;
    }

    .social-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border: 1px solid #f1f5f9;
        background: transparent;
    }

    .social-btn img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .btn-send-video {
        background: var(--primary);
        color: white;
        padding: 8px 10px;
        border-radius: 8px;
        font-size: 9px;
        font-weight: 800;
        text-transform: uppercase;
        text-decoration: none;
        white-space: nowrap;
    }

    /* --- 2. BUSCA E FILTROS --- */
    .search-area {
        margin: 15px 0 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .search-flex {
        display: flex;
        gap: 12px;
        align-items: center;
    }

    .search-box {
        position: relative;
        flex: 2;
        background: #f1f5f9;
        border-radius: 16px;
        padding: 14px 14px 14px 45px;
    }

    .search-icon {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        color: var(--gray-500);
    }

    .search-box input {
        width: 100%;
        border: none;
        background: transparent;
        outline: none;
        font-size: 14px;
        font-weight: 600;
        color: var(--gray-900);
    }

    .sort-select {
        flex: 1;
        height: 50px;
        background: #f1f5f9;
        border-radius: 16px;
        border: none;
        font-size: 12px;
        font-weight: 700;
        color: #0077b6;
        padding: 0 10px;
        text-align: center;
    }

    /* --- 3. CATEGORIAS (AJUSTADO PARA NÃO QUEBRAR A LARGURA) --- */
    .category-pills {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        padding: 10px 0 20px 0;
        margin: 0; /* Removida margem negativa que causava overflow */
        scrollbar-width: none;
        width: 100%;
        box-sizing: border-box;
    }

    .category-pills::-webkit-scrollbar { display: none; }

    .pill {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        min-width: 75px;
        border: none;
        background: none;
    }

    .pill-img {
        width: 62px;
        height: 62px;
        border-radius: 50%;
        background-size: cover;
        background-position: center;
        border: 2px solid #e2e8f0;
    }

    .pill span {
        font-size: 11px;
        font-weight: 800;
        color: #64748b;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .pill.active .pill-img {
        border-color: #0077b6;
    }

    .pill.active span {
        color: #0077b6;
    }

    /* --- 4. GRID DE PRODUTOS --- */
    .main-content {
        padding: 10px 15px 40px;
        width: 100%;
        box-sizing: border-box;
    }

    .products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .product-card {
        background: var(--white);
        border-radius: 20px;
        overflow: hidden;
        border: 1px solid #f1f5f9;
        box-shadow: 0 4px 15px rgba(0,0,0,0.03);
        display: flex;
        flex-direction: column;
    }

    .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-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        border-radius: 6px;
        font-size: 9px;
        font-weight: 900;
        color: white;
        text-transform: uppercase;
    }
    .product-badge.promo { background: #ef4444; }
    .product-badge.top { background: #023e8a; }

    .product-details {
        padding: 12px 14px 16px;
    }

    .prod-id {
        font-size: 10px;
        font-weight: 700;
        color: #94a3b8;
        margin-bottom: 4px;
        display: block;
    }

    .product-title {
        font-size: 13px;
        font-weight: 700;
        color: #1e293b;
        line-height: 1.4;
        height: 36px;
        overflow: hidden;
        margin-bottom: 8px;
    }

    .price-tag {
        font-size: 18px;
        font-weight: 900;
        color: #0077b6;
    }

    /* --- 5. MODAL BOTTOM SHEET --- */
    .modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(3, 4, 94, 0.5);
        backdrop-filter: blur(8px);
        z-index: 2000;
        display: flex;
        align-items: flex-end;
    }

    .modal-container {
        width: 100%;
        background: var(--white);
        border-radius: 30px 30px 0 0;
        padding: 20px 24px 40px;
        animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        position: relative;
    }

    .btn-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
        background: #f1f5f9;
        border-radius: 50%;
        font-weight: bold;
        z-index: 10;
    }

    .modal-body img {
        width: 100%;
        height: 280px;
        object-fit: contain;
        background: #f8fafc;
        border-radius: 20px;
        margin-bottom: 20px;
    }

    .modal-info h2 {
        font-size: 18px;
        font-weight: 800;
        color: #0f172a;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .modal-info span {
        font-size: 28px;
        font-weight: 950;
        color: #0077b6;
        display: block;
        margin-bottom: 25px;
    }

    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 18px;
        border-radius: 14px;
        font-weight: 800;
        font-size: 15px;
        text-align: center;
        text-transform: uppercase;
        display: block;
    }

    .btn-primary { 
        background: #0077b6; 
        color: white; 
        box-shadow: 0 8px 20px rgba(0, 119, 182, 0.2);
    }
    
    .btn-secondary { 
        border: 2px solid #0077b6; 
        color: #0077b6; 
        background: transparent;
    }

    .btn-share {
        background: #f1f5f9;
        color: #64748b;
        font-size: 13px;
    }

    /* --- 6. RODAPÉ MOBILE (ESTRUTURA LIMPA) --- */
   .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;
    }
}

    /* Empty State */
    .empty-state {
        text-align: center;
        padding: 60px 20px;
        font-weight: 600;
        color: var(--gray-500);
    }
}