:root { --primary: #e31d1d; --dark: #1e272e; --gray: #808e9b; --light-bg: #f8f9fa; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Roboto, sans-serif; margin: 0; background: var(--light-bg); padding-top: 155px; }

.fixed-top-wrapper { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header { width: 100%; padding: 10px 0; display: flex; justify-content: center; }
.logo-main { max-width: 95%; height: auto; object-fit: contain; }

@media (max-width: 600px) { .logo-main { max-height: 70px; } body { padding-top: 135px; } }
@media (min-width: 601px) { .logo-main { max-height: 100px; } body { padding-top: 175px; } }

.category-nav { border-top: 1px solid #f1f1f1; background: #fff; }
.category-scroll { display: flex; overflow-x: auto; padding: 12px; gap: 8px; scrollbar-width: none; max-width: 1000px; margin: 0 auto; }
.category-scroll::-webkit-scrollbar { display: none; }
.cat-link { text-decoration: none; border: 1px solid #dcdde1; background: #fff; padding: 6px 14px; border-radius: 20px; font-size: 13px; color: var(--gray); white-space: nowrap; font-weight: 500; }

.menu-container { width: 95%; max-width: 1000px; margin: 0 auto; padding-bottom: 120px; }
.category-section { scroll-margin-top: 200px; }
.category-title { font-size: 18px; color: var(--dark); padding-left: 8px; border-left: 4px solid var(--primary); margin: 25px 0 15px; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: stretch; }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card { background: #fff; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0,0,0,0.05); border: 1px solid #eee; transition: transform 0.2s; }

/* Ajustes para Suporte a GIF */
.product-img-container { 
    position: relative; 
    width: 100%; 
    height: 110px; 
    cursor: pointer; 
    overflow: hidden; 
    background: #fff;
}

/* Imagem Estática */
.product-img-container img.img-static { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    display: block;
}

/* Imagem GIF (Camada Superior) */
.product-img-container img.img-gif { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
    opacity: 0; 
    transition: opacity 0.3s ease-in-out;
    z-index: 2;
}

/* Efeito Hover (Desktop) */
@media (min-width: 1025px) {
    .product-card:hover .img-gif {
        opacity: 1;
    }
}

/* Ativação via Scroll (Mobile - JS) */
.product-card.active-gif .img-gif {
    opacity: 1;
}

.product-info { padding: 10px; flex-grow: 1; display: flex; flex-direction: column; }
.text-content { flex-grow: 1; cursor: pointer; }
.product-info h3 { font-size: 11px; margin: 0; font-weight: 700; text-transform: uppercase; color: var(--dark); }
.composition-text { font-size: 9px; color: var(--gray); margin: 6px 0; line-height: 1.3; }

.price-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; }
.price-tag { color: var(--primary); font-weight: 800; font-size: 13px; background: #fff0f0; padding: 4px 8px; border-radius: 5px; }
.btn-add-inline { width: 32px; height: 32px; background: var(--primary); color: #fff; border: none; border-radius: 50%; font-size: 20px; font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.cart-footer { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 500px; background: var(--dark); padding: 15px 20px; border-radius: 15px; z-index: 2000; box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.cart-content { display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 14px; }
.btn-checkout { background: var(--primary); color: #fff; border: none; padding: 8px 18px; border-radius: 8px; font-weight: bold; cursor: pointer; text-transform: uppercase; font-size: 12px; }