/* custom.css — estilos extraidos do header.tpl inline (14/05/2026) */

.code-aviso-container { text-align: center; }
@media screen and (min-width: 768px) { #code-aviso-mobile { display: none; } }
@media screen and (max-width: 767px) { #code-aviso { display: none; } }

/* Bolinha de contagem do Carrinho */
.cart-badge {
    position: absolute;
    top: 0px;
    right: 8px;
    width: 22px;
    height: 22px;
    background-color: #e4153f;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    line-height: 22px;
    text-align: center;
    z-index: 10;
    padding: 0;
    animation: cartPulse 2s ease-in-out infinite;
}

@keyframes cartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Animacao de bounce ao adicionar produto */
@keyframes cartBounce {
    0% { transform: scale(1); }
    20% { transform: scale(1.4); }
    50% { transform: scale(0.9); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.cart-badge.bounce {
    animation: cartBounce 0.5s ease-in-out;
}

/* Esconde o header mobile no desktop */
.header-mobile {
    display: none;
}

/* Esconde o header desktop no mobile */
@media (max-width: 768px) {
    .header-desktop { display: none; }
    .header-mobile { display: block; }

    .list-inline-menu {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin: 0;
        gap: 4px;
    }

    .list-inline-menu li {
        list-style: none;
        text-align: center;
        min-width: auto;
        max-width: 90px;
        flex: 0 1 auto;
        margin: 0 2px;
    }

    .list-inline-menu li a {
        display: block;
        text-align: center;
        font-size: 11px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .list-inline-menu li img {
        display: block;
        margin: 0 auto 3px;
        max-width: 35px;
        max-height: 35px;
        height: auto;
    }

    .list-inline-menu .dropdown-toggle br { display: inline; }
    .list-inline-menu .dropdown-toggle .caret { margin-left: 2px; vertical-align: middle; }

    #logo { width: 80px; height: 80px; object-fit: contain; }
    #header-left { padding-left: 8px; }
}

/* Paginacao */
.pagination > .active > a, .pagination > .active > a:focus, .pagination > .active > a:hover, .pagination > .active > span, .pagination > .active > span:focus, .pagination > .active > span:hover {
    z-index: 2;
    color: #fff;
    cursor: default;
    background-color: #2c2c55;
    border-color: #2c2c55;
}

@media (max-width: 576px) {
    #footer .row {
        display: flex;
        flex-wrap: wrap;
    }

    #footer .col-sm-3 {
        width: 100%;
    }

    #footer .col-sm-3:nth-child(1),
    #footer .col-sm-3:nth-child(2) {
        width: 50%;
    }

    #footer .col-sm-3:nth-child(2) {
        text-align: left;
    }

    #footer .col-sm-3:nth-child(3),
    #footer .col-sm-3:nth-child(4) {
        text-align: center;
    }

    #footer .col-sm-3:nth-child(3) h3,
    #footer .col-sm-3:nth-child(4) h3 {
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }

    #footer .col-sm-3:nth-child(3) {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #footer .col-sm-3:nth-child(3) .security-icons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
        padding: 0 10px;
        overflow-x: auto;
    }

    #footer .col-sm-3:nth-child(3) .security-icons img {
        max-height: 32px;
        height: auto;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        flex-shrink: 1;
    }

    #footer .col-sm-3:nth-child(4) {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #footer .col-sm-3:nth-child(4) .social-icons {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: nowrap;
        margin-top: 10px;
        align-items: flex-end;
    }

    #footer .col-sm-3:nth-child(4) .social-icons img {
        width: 35px;
        height: auto;
        display: inline-block;
    }

    .pull-right:has(#button-payment-method) {
        float: none !important;
        display: block;
        text-align: center;
        width: 100%;
        margin-top: 15px;
    }

    #button-payment-method {
        display: block;
        width: 100%;
        height: 50px;
        border-radius: 10px;
        margin: 10px auto 0 auto;
    }

    .pull-right:has(#button-payment-method) input[type="checkbox"] {
        vertical-align: middle;
        margin-left: 5px;
    }
}

.fa-home::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path d="M575.8 255.5c0 18-15 32.1-32 32.1l-32 0 .7 160.2c0 2.7-.2 5.4-.5 8.1l0 16.2c0 22.1-17.9 40-40 40l-16 0c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1L416 512l-24 0c-22.1 0-40-17.9-40-40l0-24 0-64c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32l0 64 0 24c0 22.1-17.9 40-40 40l-24 0-31.9 0c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2l-16 0c-22.1 0-40-17.9-40-40l0-112c0-.9 0-1.9 .1-2.8l0-69.7-32 0c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.owl-item img { width: 100%; }

@media screen and (min-width: 768px) {
    .product-grid h2 {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        height: 3em;
        line-height: 1.0em;
    }

    .product-grid h4 {
        height: 50px;
    }

    .principal-home h2 {
        height: 25px;
    }
}

nav#top {
    display: none;
}

footer li {
    margin-bottom: 5px;
}
