* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container{
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2%;
}

.clear{clear: both;}

/* ==========================================================================
   AJUSTES DO HEADER EXTERNO (Caso precise alinhar o flex e os menus)
   ========================================================================== */
header{
    background: #2196f3;
    position: sticky;
    top: 0;
    z-index: 9999;
}

header .container{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-container img {
    max-height: 40px; /* Ocê aumenta ou abaixa aqui se precisá */
    width: auto;
    object-fit: contain;
}

.logo{
    padding: 10px 0;
}

.logo a{
    font-size: 19px;
    letter-spacing: 3px;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
}

/* Menu Desktop do Header Externo */
nav.desktop{
    display: flex;
    align-items: center;
}

nav.desktop ul{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

nav.desktop li{
    font-weight: 300;
    display: inline-block;
}

nav.desktop a{
    display: inline-block;
    padding: 13px 15px;
    color: white;
    text-decoration: none;
}

.finalizar-pedido {
    display: inline-block;
}

.finalizar-pedido h2{
    display: inline-block;
    padding: 0 10px;
    color: white;
    font-weight: normal;
    font-size: 14px;
}

.btn-pagamento{
    display: inline-block;
    padding: 8px 12px;
    background: #1976d2;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.btn-pagamento:hover {
    background: #115293;
}

/* Menu Mobile do Header Externo */
.menu-mobile-icon {
    display: none;
    padding: 15px;
    cursor: pointer;
    color: white;
    font-size: 22px;
}

.menu-mobile {
    display: none;
    width: 100%;
    background: #1976d2;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 999;
}

.menu-mobile ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-mobile li {
    display: block;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.menu-mobile a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
}

.chamada-escolher{
    text-align: center;
    background: #42a5f5;
    padding: 15px 0;
}

.chamada-escolher h2{
    font-size: 21px;
    color: white;
    font-weight: 300;
}

.lista-items{
    padding: 40px 0;
}

.tabela-pedidos{
    margin-top: 40px;
}

.tabela-pedidos h2{
    margin: 15px 0;
    border-bottom: 2px solid #ccc;
    font-size: 24px;
    color: #ccc;
}

.tabela-pedidos table{
    width: 100%;
    border-collapse: collapse;
}

.tabela-pedidos tr:first-child td{
    font-weight: bold;
}

.tabela-pedidos td{
    padding: 8px;
    color: #4b4b4b;
    border: 1px solid #ccc;
}

/* ==========================================================================
   ESTILOS DA VITRINE - ESTER MODAS
   ========================================================================== */

.container-loja-principal {
    max-width: 1250px;
    margin: 20px auto;
    display: flex;
    gap: 30px;
    padding: 0 15px;
}

.sidebar-filtros {
    width: 250px;
    flex-shrink: 0;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eaeaea;
    height: fit-content;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.sidebar-filtros h3 {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 8px;
}

.sidebar-filtros .grupo-filtro {
    margin-bottom: 20px;
}

.sidebar-filtros .grupo-filtro h4 {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.sidebar-filtros .grupo-filtro ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-filtros .grupo-filtro ul li {
    margin-bottom: 6px;
}

.sidebar-filtros .grupo-filtro ul li a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-filtros .grupo-filtro ul li a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.form-filtro-preco {
    display: flex;
    align-items: center;
    gap: 5px;
}

.input-preco {
    width: 60px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
}

.form-filtro-preco span {
    font-size: 12px;
    color: #777;
}

.btn-filtrar {
    background: #2980b9;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-filtrar:hover {
    background: #1f618d;
}

.bloco-frete-sidebar {
    background: #fdfdfd;
    padding: 12px;
    border: 1px dashed #dcdcdc;
    border-radius: 6px;
}

.conteudo-vitrine {
    flex-grow: 1;
    min-width: 0;
}

.marcas-bolinhas-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    margin-bottom: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.marcas-bolinhas-wrapper::-webkit-scrollbar {
    height: 4px;
}

.marcas-bolinhas-wrapper::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.marca-item-bola a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 75px;
    flex-shrink: 0;
}

.bola-img {
    width: 65px;
    height: 65px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.marca-item-bola a:hover .bola-img {
    border-color: #2980b9;
    box-shadow: 0 4px 10px rgba(41,128,185,0.15);
    transform: translateY(-2px);
}

.bola-img img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.marca-item-bola span {
    font-size: 11px;
    color: #444;
    margin-top: 6px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

/* Grid de Produtos da Vitrine */
.grid-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.container-loja-principal .produto-single-box {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    text-align: left;
}

.container-loja-principal .produto-single-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.produto-imagem-wrapper {
    width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: #fcfcfc;
    margin-bottom: 10px;
}

.produto-imagem-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.produto-info h2 {
    font-size: 13px;
    text-align: center;
    font-weight: 600;
    color: #222;
    margin: 0 0 2px 0;
}

.cor-produto {
    font-size: 11px;
    text-align: center;
    color: #777;
    margin-bottom: 10px;
}

.controles-produto {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.tamanho-grupo {
    flex: 3;
}

.qtd-grupo {
    flex: 1;
}

.input-estilizado {
    width: 100%;
    padding: 6px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    font-size: 11px;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}

.preco-container {
    margin-bottom: 10px;
    text-align: center;
    background: #f8f9fa;
    padding: 6px;
    border-radius: 4px;
}

.preco-destaque {
    font-size: 14px;
    font-weight: bold;
    color: #2c3e50;
}

.texto-promocao {
    color: #e74c3c !important;
}

.preco-riscado {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
    font-weight: normal;
    margin-right: 4px;
}

.botoes-acao-wrapper {
    display: flex;
    gap: 6px;
}

.container-loja-principal .btn-comprar, 
.container-loja-principal .btn-carrinho {
    flex: 1;
    color: white;
    padding: 8px 4px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 11px;
    text-align: center;
    transition: background 0.2s;
}

.container-loja-principal .btn-comprar { background-color: #27ae60; }
.container-loja-principal .btn-comprar:hover { background-color: #219653; }
.container-loja-principal .btn-carrinho { background-color: #2980b9; }
.container-loja-principal .btn-carrinho:hover { background-color: #1f618d; }

/* ==========================================================================
   RESPONSIVIDADE MOBILE
   ========================================================================== */

@media screen and (max-width: 992px) {
    header .logo a {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .finalizar-pedido h2 {
        font-size: 12px;
        padding: 0 5px;
    }

    .btn-pagamento {
        font-size: 12px;
        padding: 6px 10px;
    }

    nav.desktop a {
        padding: 10px 10px;
        font-size: 13px;
    }

    /* Deixa o topo da sidebar organizado pra o botão Limpar não embolar */
    .topo-sidebar-filtros {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px;
    }

    .btn-limpar-filtros {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }

    /* Arruma o formulário de preço para empilhar e não vazar */
    .form-filtro-preco {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .form-filtro-preco span {
        text-align: center;
    }

    .input-preco {
        width: 100% !important;
    }

    .btn-filtrar {
        width: 100%;
        padding: 6px;
    }

    /* Garante que o input do frete e o botão fiquem certinhos na caixa */
    .bloco-frete-sidebar .form-filtro-preco {
        flex-direction: column;
        align-items: stretch;
    }
    
    #cep-destino-sidebar {
        width: 100% !important;
    }
}

/* Ajuste fino para telas menores (768px para baixo) */
@media screen and (max-width: 768px) {
    header .logo a {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .finalizar-pedido h2 {
        font-size: 11px;
    }

    .btn-pagamento {
        font-size: 11px;
        padding: 5px 8px;
    }

    .sidebar-filtros {
        width: 150px !important; /* Deixa a sidebar um pouco mais compacta */
        padding: 8px;
    }
    
    /* Diminui um pouco as fontes da sidebar para caber direitinho */
    .sidebar-filtros h3 { font-size: 14px; }
    .sidebar-filtros .grupo-filtro h4 { font-size: 12px; }
    .sidebar-filtros .grupo-filtro ul li a { font-size: 11px; }
    .input-preco { width: 45px; font-size: 11px; }
    .btn-filtrar { padding: 4px 6px; font-size: 11px; }

    .produto-imagem-wrapper {
    width: 100%;
    height: 260px !important; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: #fcfcfc;
    margin-bottom: 10px;
   }
}

/* Ajuste para celulares bem pequenos (480px para baixo) */
@media screen and (max-width: 480px) {
    header .logo a {
        font-size: 12px;
    }

    .finalizar-pedido h2 {
        display: none; /* Esconde o texto extra em telas muito pequenas para não embolar */
    }

    .sidebar-filtros {
        width: 130px !important; /* Largura enxuta para telas de celular estreitas */
        padding: 6px;
    }
    
    .container-loja-principal {
        gap: 6px;
        padding: 0 2px;
    }

    .produto-imagem-wrapper {
    width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: #fcfcfc;
    margin-bottom: 10px;
   }
}

@media screen and (max-width: 360px) {
    .sidebar-filtros {
        width: 130px !important; /* Largura enxuta para telas de celular estreitas */
        padding: 6px;
    }
    
    .container-loja-principal {
        gap: 6px;
        padding: 0 2px;
    }

    .produto-imagem-wrapper {
    width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: #fcfcfc;
    margin-bottom: 10px;
   }
}

/* Estilo do Menu Lateral Estático (Estilo ML com Hover) */
.menu-lateral-ml {
    position: fixed;
    top: 15;
    left: 0;
    width: 65px;
    height: 100vh;
    background-color: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 999;
    transition: width 0.3s ease;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.menu-lateral-ml:hover {
    width: 260px;
}
.menu-lateral-ml ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.menu-lateral-ml li a, .menu-lateral-ml .menu-item-toggle {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    font-size: 15px;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.menu-lateral-ml li a:hover, .menu-lateral-ml .menu-item-toggle:hover {
    background-color: #f5f5f5;
    color: #ff5722;
}
.menu-lateral-ml li i {
    font-size: 20px;
    min-width: 25px;
    text-align: center;
    margin-right: 15px;
    color: #555;
}
.menu-lateral-ml .texto-menu {
    opacity: 0;
    transition: opacity 0.2s ease;
}
.menu-lateral-ml:hover .texto-menu {
    opacity: 1;
}
/* Ajuste do container principal para ocupar a tela sem a sidebar antiga */
.container-loja-principal {
    margin-left: 75px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    width: calc(100% - 75px);
}
/* Submenus interativos dentro do menu lateral flutuante */
.submenu-lateral-conteudo {
    display: none;
    padding: 5px 15px 10px 45px;
    background: #fafafa;
    font-size: 13px;
    max-height: 200px;
    overflow-y: auto;
}
.menu-lateral-ml:hover .submenu-lateral-conteudo.ativo-aberto {
    display: block;
}
.submenu-lateral-conteudo ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.submenu-lateral-conteudo li {
    padding: 4px 0;
}
.submenu-lateral-conteudo a {
    color: #444;
    text-decoration: none;
    padding: 2px 0;
    display: inline-block;
}
.submenu-lateral-conteudo a:hover {
    color: #ff5722;
}
@media(max-width: 768px) {
    .menu-lateral-ml {
        width: 50px;
    }
    .menu-lateral-ml:hover {
        width: 220px;
    }
    .container-loja-principal {
        margin-left: 55px;
        width: calc(100% - 55px);
    }
}