* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fa;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: auto;

}

/* ==================
   HEADER
   ================== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #111;
    text-shadow: none;
}

.logo-icon {
    font-size: 28px;
    animation: none;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 28px;
    animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.search {
    flex: 0.4;
    padding: 10px 16px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search:focus {
    outline: none;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.icons {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 18px;
}

.icon-link {
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.icon-link:hover {
    transform: scale(1.2);
}

.btn-admin {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-admin:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

#area-usuario button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#area-usuario button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

#area-usuario span {
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.carrinho-link {
    position: relative;
    font-size: 20px;
    text-decoration: none;
}

.carrinho-badge {
    position: absolute;
    top: -8px;
    right: -10px;

    background: red;
    color: white;

    font-size: 12px;
    font-weight: bold;

    border-radius: 50%;
    padding: 2px 6px;

    min-width: 18px;
    text-align: center;
}

#iconeCarrinho {
    position: relative;
    font-size: 22px;
    text-decoration: none;
}

#contadorCarrinho {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}

.container-voltar {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.voltar {
    text-decoration: none;
    font-weight: 500;
    color: #333;
}

.voltar:hover {
    text-decoration: underline;
}

.btn-add-carrinho {

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;

    border: none;
    padding: 14px 20px;

    font-size: 16px;
    font-weight: 600;

    border-radius: 8px;
    cursor: pointer;

    transition: all 0.2s ease;

    margin-top: 15px;
    width: 100%;

}

.quantidade-container {

    display: flex;
    align-items: center;
    gap: 10px;

    margin: 15px 0;

}

.quantidade-container button {

    width: 35px;
    height: 35px;

    border: none;
    background: #eee;

    font-size: 18px;
    cursor: pointer;

    border-radius: 6px;

}

.quantidade-container input {

    width: 50px;
    text-align: center;

    border: 1px solid #ccc;
    border-radius: 6px;

    height: 35px;

}

/* =========================
   TOAST CARRINHO
========================= */

.toast-carrinho {

    position: fixed;
    bottom: 30px;
    right: 30px;

    background: #2ecc71;
    color: white;

    padding: 14px 20px;

    border-radius: 8px;

    font-weight: 600;
    font-size: 14px;

    opacity: 0;
    transform: translateY(20px);

    transition: all 0.3s ease;

    z-index: 1900;
    pointer-events: none;
    /* Não interfere com cliques quando não está visível */

}

.toast-carrinho.mostrar {

    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    /* Permite interação quando visível */

}

.avaliacao {

    color: #f1c40f;
    font-size: 18px;

    margin-bottom: 10px;

}

.btn-add-carrinho:hover {

    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-2px);

}

.btn-add-carrinho:active {

    transform: scale(0.96);

}

/* =========================
   CARRINHO LATERAL
========================= */

.cart-drawer {

    position: fixed;
    top: 0;
    right: -420px;

    width: 420px;
    height: 100vh;

    background: white;

    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);

    transition: right 0.3s ease;

    z-index: 2000;

    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Evita overflow do container, mantém footer visível */

}

.cart-drawer.open {
    right: 0;
}


/* OVERLAY ESCURO */

.cart-overlay {

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100vh;

    background: rgba(0, 0, 0, 0.4);

    opacity: 0;
    visibility: hidden;

    transition: 0.3s;

    z-index: 1500;

}

.cart-overlay.open {

    opacity: 1;
    visibility: visible;

}


/* HEADER DO CARRINHO */

.cart-header {

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px;

    border-bottom: 1px solid #eee;

    font-size: 18px;
    font-weight: bold;

}

.cart-header button {

    background: none;
    border: none;

    font-size: 20px;
    cursor: pointer;

}


/* LISTA */

#lista-carrinho {

    flex: 1;

    overflow-y: auto;

    padding: 20px;

    min-height: 0;
    /* Permite que flex funcione corretamente com overflow */

}


/* FOOTER */

#total-carrinho {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.cart-footer {

    padding: 20px;
    border-top: 1px solid #eee;

    position: relative;
    z-index: 101;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    flex-shrink: 0;
    /* Garante que o footer não é comprimido e sempre fica visível */

}

.cart-footer button {

    width: 100%;
    padding: 14px;

    border: none;

    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;

    border-radius: 8px;

    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    pointer-events: auto;
    z-index: 101;
    position: relative;

}

.cart-footer button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cart-footer button:active {
    transform: translateY(0);
}

/* ==================
   BANNER - ESTILO MERCADO LIVRE
   ================== */
.banner-container {
    width: 100%;
    margin-top: 0;
    position: relative;
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.5s ease;
    background: #f5f5f5;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}

#carouselHome {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

/* Botão do banner */
.banner-btn {
    position: absolute;
    bottom: 50px;
    left: 50px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.banner-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.banner-btn:active {
    transform: translateY(-1px);
}

/* GRADIENTE QUE FAZ A TRANSIÇÃO PARA AS CATEGORIAS */
.carousel::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.95) 70%,
        rgba(255, 255, 255, 1) 100%
    );
    pointer-events: none;
    z-index: 5;
}

/* Indicadores (dots) */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    height: 8px;
    width: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #2d6cdf;
    width: 24px;
    border-radius: 4px;
}

.dot:hover {
    background: #2d6cdf;
    transform: scale(1.2);
}
/* BOTÃO */
.btn-filtrar {
  margin: 20px;
  padding: 10px 18px;
  background: #6C63FF;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* ========================
   LAYOUT PRINCIPAL
   ======================== */
.main-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
    padding: 20px;
    position: relative;
}

/* SIDEBAR FILTROS (DESKTOP) */
.painel-filtros {
    width: 280px;
    position: sticky;
    top: 80px;
    height: fit-content;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.topo-filtros {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 12px;
}

.topo-filtros h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.close-filtros {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
    padding: 0;
    display: none;
}

.close-filtros:hover {
    color: #333;
}

/* FILTROS */
.filtro {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filtro h4 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.filtro label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.filtro input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 14px;
    color: #555;
}

.price-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-input input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-input input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.price-input input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.price-input span {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
}

/* BOTÃO APLICAR */
.btn-aplicar {
    margin-top: auto;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.btn-aplicar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.btn-aplicar:active {
    transform: translateY(0);
}

/* OVERLAY */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.overlay.ativo {
    opacity: 1;
    visibility: visible;
}

/* CONTEÚDO PRODUTOS */
.conteudo-produtos {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* BOTÃO FILTRAR (MOBILE) */
.btn-filtrar-mobile {
    display: none;
}

/* ========================
   RESPONSIVIDADE FILTROS
   ======================== */
@media (max-width: 1024px) {
    .main-layout {
        gap: 15px;
        padding: 15px;
    }
    
    .painel-filtros {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
        gap: 20px;
        padding: 10px;
    }
    
    .painel-filtros {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        border-radius: 0;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .painel-filtros.ativo {
        left: 0;
    }
    
    .close-filtros {
        display: block;
    }
    
    .btn-filtrar-mobile {
        display: block;
        padding: 12px 16px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        font-size: 14px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
        width: 100%;
    }
    
    .btn-filtrar-mobile:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
    }
}
/* ==================
   CATEGORIAS
   ================== */
.categorias-container {
    max-width: 1400px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin: 40px auto;
    padding: 0 20px;
}

.categoria-card {
    width: 120px;
    height: 120px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.categoria-card img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    margin-bottom: 10px;
}

.categoria-card span {
    font-size: 14px;
    text-align: center;
}

.categoria-card {
    background: white;
    border-radius: 50%;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.categoria-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.categoria-card img {
    width: 100%;
    max-height: 140px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: transform 0.3s ease;
}

.categoria-card:hover img {
    transform: scale(1.1);
}

.categoria-card span {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* ==================
   PRODUTOS
   ================== */
.produtos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    z-index: 1;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    border-color: #e0e0e0;
    z-index: 2;
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.08);
}

.card h3 {
    font-size: 15px;
    margin: 10px 0 8px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
    min-height: 30px;
}

.card .preco {
    font-weight: bold;
    color: #667eea;
    font-size: 16px;
    margin-bottom: 8px;
}

.card button {
    padding: 10px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    width: 100%;
}

.card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.card button:active {
    transform: translateY(0);
}

.card {
    position: relative;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff3b3b 0%, #ff6b6b 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 6px;
    z-index: 10;
}


.preco-antigo {
    text-decoration: line-through;
    color: #999;
    font-size: 12px;
    margin: 0;
}

.preco-promocional {
    color: #2ecc71;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* PAGINA PRODUTO */

.produto {
    display: flex;
    gap: 40px;
    padding: 40px;
    max-width: 1200px;
    margin: auto;
}

/* GALERIA */

.galeria {
    display: flex;
    gap: 15px;
}

.miniaturas {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.miniaturas img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
}

.miniaturas img:hover {
    border: 2px solid #000;
}

.imagem-principal img {
    width: 400px;
    border-radius: 8px;
}

/* INFO PRODUTO */

.produto-info {
    max-width: 400px;
}

.produto-info h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.produto-info p {
    font-size: 20px;
    margin-bottom: 15px;
}

/* BOTAO */

#btnComprar {
    background: #000;
    color: #fff;
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
}

#btnComprar:hover {
    background: #333;
}

/* ESTOQUE */

.estoque-ok {
    color: green;
    font-weight: bold;
}

.estoque-zero {
    color: red;
    font-weight: bold;
}

/* DESCRIÇÃO */

.descricao {
    max-width: 1200px;
    margin: auto;
    padding: 40px;
}

.descricao h2 {
    margin-bottom: 15px;
}

.voltar {
    display: inline-block;
    margin: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
}


/* ==================
   BENEFÍCIOS
   ================== */
.beneficios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 90%;
    margin: 50px auto;
    padding: 40px 0;
}

.beneficios div {
    background: white;
    padding: 24px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.beneficios div:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

/* ==================
   RESPONSIVO
   ================== */
@media (max-width: 1024px) {
    .header {
        padding: 12px 20px;
    }

    .search {
        flex: 0.5;
    }

    .categorias-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .banner {
        padding: 40px 30px;
    }

    .banner h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        gap: 15px;
        padding: 12px 15px;
    }

    .logo-container {
        width: 100%;
        justify-content: center;
    }

    .search {
        width: 100%;
        flex: unset;
        order: 3;
    }

    .icons {
        width: 100%;
        justify-content: center;
        order: 4;
    }

    .produtos-container,
    .categorias-container {
        width: 95%;
    }

    .categorias-container {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 15px;
        margin: 30px auto;
    }

    .produtos-container {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
        margin: 30px auto;
    }

    .banner {
        padding: 30px 20px;
        margin: 15px auto;
        width: 95%;
    }

    .banner h2 {
        font-size: 24px;
    }

    .banner p {
        font-size: 14px;
    }

    .beneficios {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 95%;
        margin: 30px auto;
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }

    .logo-icon {
        font-size: 22px;
    }

    .search {
        font-size: 13px;
        padding: 8px 12px;
    }

    .icons {
        gap: 15px;
        font-size: 16px;
    }

    .categorias-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin: 20px auto;
    }

    .categoria-card {
        padding: 15px;
    }

    .categoria-card img {
        max-height: 100px;
    }

    .categoria-card span {
        font-size: 13px;
    }

    .produtos-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
        margin: 20px auto;
    }

    .card {
        padding: 12px;
    }

    .card img {
        height: 140px;
    }

    .card h3 {
        font-size: 14px;
    }

    .card .preco {
        font-size: 16px;
    }

    .card button {
        padding: 8px 12px;
        font-size: 13px;
    }

    .banner {
        padding: 20px 15px;
        margin: 10px auto;
    }

    .banner h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .banner p {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .beneficios {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px 0;
    }

    .beneficios div {
        padding: 15px;
    }
}