/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f7fa;
    overflow-x: hidden;
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: #072B66;
    color: white;
    font-size: 0.7rem;
    font-weight: 400;
    padding: 0 16px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    letter-spacing: 0.2px;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar a {
    color: white;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.top-bar a:hover {
    color: #d0e0ff;
}

.top-bar-left {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity 0.2s;
    font-size: 0.7rem;
}

.top-bar-left:hover {
    opacity: 0.9;
}

.top-bar-left i,
.top-bar-center i,
.top-bar-right i {
    font-size: 0.65rem;
}

.top-bar-center {
    font-weight: 400;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    padding: 4px 0;
}

.top-bar-center::-webkit-scrollbar {
    display: none;
}

.top-bar-center i {
    margin-right: 4px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.top-bar-right i {
    margin-right: 2px;
}

.top-bar-right .sep {
    width: 1px;
    height: 12px;
    background-color: rgba(255,255,255,0.25);
}

/* ===== HEADER PRINCIPAL ===== */
.main-header {
    background-color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    flex-wrap: wrap;
    gap: 12px;
}

.logo-area {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    transform: rotate(-1deg) scale(1.02);
    transition: transform 0.2s;
}

/* BARRA DE PESQUISA */
.search-wrapper {
    flex: 1 1 300px;
    min-width: 200px;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: #F1F5FF;
    border-radius: 40px;
    padding: 0 12px;
    height: 44px;
    border: 1px solid transparent;
    transition: border 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
    border-color: #0A3D91;
    box-shadow: 0 0 0 3px rgba(10,61,145,0.1);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.9rem;
    font-weight: 400;
    color: #1e293b;
    padding: 8px 0;
    min-width: 120px;
}

.search-box input::placeholder {
    color: #5e6f8c;
    font-weight: 400;
    opacity: 0.8;
    font-size: 0.85rem;
}

.search-box button {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: #0A3D91;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.search-box button:hover {
    color: #1558D6;
}

/* ÍCONES DO HEADER (DESKTOP) */
.header-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    font-size: 0.65rem;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}

.icon-item i {
    font-size: 1.3rem;
    margin-bottom: 2px;
    color: #0A3D91;
}

.icon-item:hover i {
    color: #1558D6;
}

/* ===== MENU DE NAVEGAÇÃO (DESKTOP) ===== */
.nav-menu {
    background-color: white;
    padding: 0 16px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e9edf4;
    box-shadow: 0 4px 10px rgba(0,0,0,0.01);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.departamentos {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0A3D91;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s;
    min-height: 44px;
    padding: 0 8px;
}

.departamentos:hover {
    color: #1558D6;
}

.departamentos i {
    font-size: 1.3rem;
}

.nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top: 1px solid #e9edf4;
}

.nav-links.active {
    display: flex;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s;
    font-weight: 500;
    width: 100%;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.nav-item:last-child {
    border-bottom: none;
}

.nav-item i.fa-chevron-down {
    font-size: 0.8rem;
    opacity: 0.6;
}

.nav-item:hover {
    background-color: #F1F5FF;
    color: #1558D6;
}

/* ===== BOTTOM NAVIGATION (MOBILE) ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 4px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    border-top: 1px solid #e9edf4;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.7rem;
    transition: color 0.2s;
    cursor: pointer;
    padding: 4px 0;
    flex: 1;
}

.bottom-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 2px;
    color: #0A3D91;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: #0A3D91;
}

.bottom-nav-item span {
    font-size: 0.6rem;
}

.bottom-nav-spacer {
    display: none;
    height: 70px;
    width: 100%;
}

/* ===== MODAIS ===== */
.modal-overlay,
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 16px;
}

.modal-overlay.active,
.search-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container,
.search-modal-container {
    background-color: white;
    border-radius: 12px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-container,
.search-modal-overlay.active .search-modal-container {
    transform: translateY(0);
}

.modal-container {
    max-width: 800px;
    max-height: 90vh;
}

.search-modal-container {
    max-width: 450px;
}

.modal-header,
.search-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background-color: #0A3D91;
    color: white;
}

.search-modal-header {
    padding: 20px;
}

.modal-header h3 {
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-modal-header h3 {
    flex: 1;
    font-size: 1.2rem;
    font-weight: 500;
}

.modal-close,
.search-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.search-modal-close {
    font-size: 1.8rem;
}

.modal-close:hover,
.search-modal-close:hover {
    background-color: rgba(255,255,255,0.2);
}

.modal-content,
.search-modal-content {
    padding: 16px;
}

.search-modal-content {
    padding: 40px 20px;
    text-align: center;
}

.search-modal-content i {
    font-size: 4rem;
    color: #0A3D91;
    margin-bottom: 20px;
}

.maps-frame {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 8px;
}

.modal-footer,
.search-modal-footer {
    padding: 14px 18px;
    border-top: 1px solid #e9edf4;
    text-align: right;
}

.search-modal-footer {
    padding: 20px;
    text-align: center;
}

.btn-fechar,
.btn-ok {
    padding: 10px 24px;
    background-color: #0A3D91;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    min-height: 44px;
}

.btn-ok {
    padding: 12px 40px;
    font-size: 1rem;
}

.btn-fechar {
    min-width: 100px;
}

.btn-fechar:hover,
.btn-ok:hover {
    background-color: #1558D6;
}

.update-message {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.update-submessage {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* ===== CONTEÚDO PRINCIPAL ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    color: #0A3D91;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    font-weight: 600;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #1558D6;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* BANNER */
.welcome-banner {
    background: linear-gradient(135deg, #0A3D91 0%, #1558D6 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.welcome-text h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    font-weight: 700;
}

.welcome-text .highlight {
    color: #FFD700;
    font-weight: 700;
}

.welcome-text p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

/* SOBRE NÓS */
.about-section {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #0A3D91;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* PRODUTOS EM GRADE - NOSSOS MELHORES PRODUTOS */
.products-section {
    background-color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.product-icon {
    width: 120px;
    height: 120px;
    background-color: #F1F5FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.product-icon i {
    font-size: 3.5rem;
    color: #0A3D91;
    transition: transform 0.2s;
}

.product-card:hover .product-icon i {
    transform: scale(1.1);
}

.product-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 8px 0 4px;
}

.product-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* PRODUTOS MAIS VENDIDOS - ESTILO MERCADO LIVRE */
.bestsellers-section {
    background-color: #f5f7fa;
}

.bestsellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.product-card-dun {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

.product-card-dun:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #0A3D91;
}

.product-image-dun {
    background-color: white;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    border-bottom: 1px solid #f0f0f0;
}

.product-image-dun img {
    width: 100%;
    max-width: 160px;
    height: 160px;
    object-fit: contain;
    transition: transform 0.2s;
}

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

.product-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: #333;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
    line-height: 1.4;
}

.price-old {
    font-size: 0.8rem;
    color: #999;
    text-decoration: line-through;
    margin: 2px 0;
}

.price-current {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.price-current sup {
    font-size: 0.7rem;
    font-weight: 500;
    top: -0.3em;
    margin-left: 1px;
}

.discount-badge-green {
    background: #e6f7e6;
    color: #00a650;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

/* NEWSLETTER */
.newsletter-section {
    background: #0A3D91;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.newsletter-section h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.newsletter-section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 15px 30px;
    background: #FFD700;
    color: #333;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background: #ffed4a;
}

/* WHATSAPP */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s;
    z-index: 999;
    font-weight: 500;
}

.whatsapp-button i {
    font-size: 1.8rem;
}

.whatsapp-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    background: #20ba5a;
}

/* ===== UTILITÁRIOS ===== */
.desktop-only {
    display: flex;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-stats {
        gap: 10px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .whatsapp-button span {
        display: none;
    }
    
    .whatsapp-button {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        bottom: 80px; /* Ajusta para não ficar atrás do bottom nav */
    }
    
    .whatsapp-button i {
        font-size: 2rem;
        margin: 0;
    }
    
    .products-grid,
    .bestsellers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-image-dun {
        height: 160px;
        padding: 15px;
    }
    
    .product-image-dun img {
        max-width: 120px;
        height: 120px;
    }
    
    .price-current {
        font-size: 1.2rem;
    }

    .product-icon {
        width: 100px;
        height: 100px;
    }

    .product-icon i {
        font-size: 2.8rem;
    }

    /* MOBILE STYLES */
    .desktop-only {
        display: none !important;
    }

    .main-header {
        flex-direction: row;
        align-items: center;
        padding: 10px 12px;
        gap: 8px;
    }

    .logo-img {
        height: 35px;
        max-width: 100px;
    }

    .search-wrapper {
        flex: 1;
        min-width: 0;
    }

    .search-box {
        height: 38px;
    }

    .search-box input {
        font-size: 0.85rem;
        padding: 6px 0;
    }

    .search-box input::placeholder {
        font-size: 0.8rem;
    }

    .search-box button {
        font-size: 1rem;
    }

    /* Bottom Navigation */
    .bottom-nav {
        display: flex;
    }

    .bottom-nav-spacer {
        display: block;
    }

    /* Ajuste para o último conteúdo não ficar escondido */
    .newsletter-section {
        margin-bottom: 0;
        padding-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 6px 10px;
        min-height: auto;
    }
    
    .top-bar-left,
    .top-bar-center,
    .top-bar-right {
        justify-content: center;
        text-align: center;
        font-size: 0.65rem;
    }
    
    .top-bar-center {
        white-space: normal;
        text-align: center;
        font-size: 0.65rem;
        padding: 2px 0;
    }
    
    .top-bar-right {
        justify-content: center;
        gap: 6px;
    }
    
    .main-header {
        padding: 8px 10px;
        gap: 6px;
    }
    
    .logo-img {
        height: 30px;
        max-width: 85px;
    }
    
    .search-box {
        height: 36px;
    }
    
    .search-box input {
        font-size: 0.8rem;
    }
    
    .search-box input::placeholder {
        font-size: 0.75rem;
    }
    
    .products-grid,
    .bestsellers-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .welcome-banner {
        padding: 30px 12px;
    }

    .welcome-text h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .welcome-text p {
        font-size: 0.9rem;
    }

    .product-icon {
        width: 80px;
        height: 80px;
    }

    .product-icon i {
        font-size: 2.2rem;
    }

    .bottom-nav {
        padding: 6px 0 4px;
    }

    .bottom-nav-item i {
        font-size: 1.2rem;
    }

    .bottom-nav-item span {
        font-size: 0.55rem;
    }

    .whatsapp-button {
        bottom: 70px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-button i {
        font-size: 1.8rem;
    }
}

/* Ajuste para telas muito pequenas */
@media (max-width: 360px) {
    .welcome-banner {
        padding: 25px 10px;
    }

    .welcome-text h1 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .logo-img {
        height: 28px;
        max-width: 75px;
    }

    .search-box {
        height: 34px;
    }

    .search-box input {
        font-size: 0.75rem;
    }

    .bottom-nav-item i {
        font-size: 1.1rem;
    }
}

@media (min-width: 481px) and (max-width: 600px) {
    .top-bar {
        padding: 6px 14px;
    }
    
    .top-bar-center {
        font-size: 0.6rem;
    }
    
    .main-header {
        padding: 8px 14px;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .search-box {
        height: 37px;
    }
}

@media (min-width: 601px) and (max-width: 768px) {
    .top-bar {
        padding: 0 16px;
    }
    
    .main-header {
        padding: 10px 16px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .search-box {
        height: 38px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .top-bar,
    .main-header,
    .nav-menu {
        padding: 0 24px;
    }
}

@media (min-width: 1025px) {
    .top-bar {
        padding: 0 40px;
        height: 38px;
        flex-wrap: nowrap;
    }
    
    .main-header {
        padding: 0 40px;
        height: 80px;
        flex-wrap: nowrap;
    }
    
    .logo-img {
        height: 70px;
    }
    
    .search-wrapper {
        flex: 0 1 600px;
        margin: 0 20px;
    }
    
    .header-icons {
        gap: 28px;
    }
    
    .nav-menu {
        padding: 0 40px;
        height: 56px;
        display: flex;
    }
    
    .nav-links {
        display: flex !important;
        position: static;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 28px;
        flex: 1;
        padding: 0;
        box-shadow: none;
        border-top: none;
        background-color: transparent;
    }
    
    .nav-item {
        width: auto;
        padding: 0;
        border-bottom: none;
        justify-content: flex-start;
    }
    
    .nav-item:hover {
        background-color: transparent;
    }
    
    .departamentos {
        width: auto;
    }

    .bottom-nav,
    .bottom-nav-spacer {
        display: none;
    }
}

/* UTILITÁRIOS */
.hide-on-mobile {
    display: none;
}

@media (min-width: 769px) {
    .hide-on-mobile {
        display: initial;
    }
}