/* 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;
}

/* ========================================================
   RESPONSIVIDADE COMPLETA PARA CELULAR & SMARTPHONES (RDC)
   ======================================================== */

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

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

/* ==========================================================================
   LAYOUT RESPONSIVO (REFERÊNCIA OFICIAL REI DOS COINS)
   ========================================================================== */

@media screen and (max-width: 767px) {
    .header-desktop {
        display: none !important;
    }

    .header-mobile {
        display: block !important;
    }

    .formas-pagamentos {
        display: none !important;
    }

    .codecoin-info-product {
        margin-right: 20px !important;
    }

    #top {
        margin: 0 0 0px 0 !important;
    }

    /* Header Mobile Oficial */
    header {
        padding: 5px 0 10px 0 !important;
        background: #ffffff !important;
    }

    .header-mobile #header-left {
        text-align: left !important;
        padding-top: 0 !important;
        margin-bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    .header-mobile #logo {
        margin: 0 !important;
        max-height: 80px !important;
        width: 80px !important;
        height: 80px !important;
        object-fit: contain !important;
        display: block !important;
    }

    .header-mobile #header-right {
        padding-top: 0 !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }

    /* Menus no Celular */
    .header-mobile .list-inline-menu {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 6px !important;
    }

    .header-mobile .list-inline-menu > li {
        display: inline-block !important;
        padding: 0 4px !important;
        text-align: center !important;
        flex: 0 0 auto !important;
    }

    .header-mobile .list-inline-menu > li > a {
        color: #2c2c56 !important;
        font-size: 8.5px !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        white-space: nowrap !important;
        text-decoration: none !important;
    }

    .header-mobile .list-inline-menu > li svg {
        width: 30px !important;
        height: 30px !important;
        stroke: #2c2c56 !important;
        margin-bottom: 2px !important;
        display: block !important;
    }

    /* Barra de busca 100% no celular */
    .header-mobile #search {
        padding-top: 0 !important;
        margin-bottom: 0 !important;
        position: relative !important;
    }

    .header-mobile #search.input-group {
        display: flex !important;
        width: 100% !important;
        height: 44px !important;
    }

    .header-mobile #search .input-lg,
    .header-mobile #search input.form-control {
        height: 44px !important;
        font-size: 14px !important;
        border-radius: 8px 0 0 8px !important;
        border: 2px solid #2c2c56 !important;
        border-right: none !important;
        padding: 6px 12px !important;
    }

    .header-mobile #search .btn-lg {
        height: 44px !important;
        padding: 0 20px !important;
        background-color: #2c2c56 !important;
        border: 2px solid #2c2c56 !important;
        border-radius: 0 8px 8px 0 !important;
        color: #ffffff !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Menu de Aviso Oficial no Celular */
    #menu {
        margin-top: 0px !important;
        margin-bottom: 10px !important;
        background-color: #2c2c56 !important;
        border-radius: 6px !important;
        min-height: auto !important;
        padding: 6px 10px !important;
    }

    .code-aviso-container {
        text-align: center !important;
    }

    #code-aviso-mobile {
        display: inline-block !important;
        color: #ffffff !important;
        font-size: 12px !important;
        font-weight: 700 !important;
    }

    #code-aviso {
        display: none !important;
    }

    /* Produtos Destaque Home no Celular (Cards Horizontais Oficiais) */
    .produtos-destaque-home {
        margin-top: 10px !important;
    }

    .produtos-destaque-home h3 {
        margin-bottom: 10px !important;
        margin-top: 16px !important;
        max-width: 100% !important;
        font-size: 19px !important;
        width: 100% !important;
        text-align: center !important;
    }

    .produtos-destaque-home .row {
        display: block !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
    }

    .produtos-destaque-home .product-layout,
    .product-layout.col-sm-2.porcent20,
    .product-layout {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-bottom: 10px !important;
        float: none !important;
    }

    .product-thumb,
    .product-thumb.principal-home {
        display: flex !important;
        background-color: #2c2c56 !important;
        border: 2px solid #e61c34 !important;
        align-items: center !important;
        padding: 5px !important;
        margin-bottom: 10px !important;
        border-radius: 10px !important;
        justify-content: flex-start !important;
        box-shadow: none !important;
    }

    .produtos-destaque-home .product-thumb {
        justify-content: flex-start !important;
    }

    .product-thumb .image {
        width: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
        display: block !important;
        margin-right: 10px !important;
        text-align: center !important;
    }

    .product-thumb picture {
        display: block !important;
        max-width: 50px !important;
        height: auto !important;
    }

    .product-thumb .image a {
        width: 50px !important;
        display: block !important;
    }

    .product-thumb picture img,
    .product-thumb .image img {
        width: 50px !important;
        max-width: 50px !important;
        height: auto !important;
        aspect-ratio: auto !important;
        border-radius: 6px !important;
        display: block !important;
        margin: 0 auto !important;
    }

    .product-thumb .caption {
        text-align: center !important;
        width: 100% !important;
        padding: 0 !important;
        flex-grow: 1 !important;
    }

    .product-thumb .caption > a {
        width: 100% !important;
        display: block !important;
    }

    .product-thumb h2,
    .product-thumb.principal-home .caption h2,
    .product-layout h2 {
        font-size: 17px !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .product-thumb h2 a,
    .product-layout h2 a {
        color: #ffffff !important;
        font-size: 17px !important;
    }

    .product-thumb .rating {
        display: none !important;
    }

    .product-thumb .price {
        font-size: 14px !important;
    }

    #tab-description img {
        width: 100% !important;
    }
}

/* ==========================================================================
   LAYOUT DESKTOP / COMPUTADOR (Telas >= 768px)
   Restauração Completa da Visualização Original para Computador / PC
   ========================================================================== */
@media screen and (min-width: 768px) {
    .header-desktop {
        display: block !important;
    }

    .header-mobile {
        display: none !important;
    }

    #code-aviso {
        display: inline !important;
    }

    #code-aviso-mobile {
        display: none !important;
    }

    #menu {
        margin-top: 0px !important;
        margin-bottom: 0px !important;
        background-color: #2c2c56 !important;
        border-radius: 0 !important;
        min-height: 40px !important;
        padding: 10px 0 !important;
    }

    .produtos-destaque-home {
        margin-top: 20px !important;
    }

    .produtos-destaque-home h3 {
        text-align: left !important;
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }

    .produtos-destaque-home .row {
        display: flex !important;
        flex-wrap: wrap !important;
        margin-left: -15px !important;
        margin-right: -15px !important;
    }

    .produtos-destaque-home .product-layout,
    .product-layout.porcent20,
    .porcent20 {
        width: 20% !important;
        max-width: 20% !important;
        flex: 0 0 20% !important;
        padding-right: 5px !important;
        padding-left: 5px !important;
        margin-bottom: 20px !important;
        float: left !important;
        display: flex !important;
        flex-direction: column !important;
        box-sizing: border-box !important;
    }

    .product-thumb,
    .product-thumb.principal-home {
        display: flex !important;
        flex-direction: column !important;
        flex-grow: 1 !important;
        justify-content: space-between !important;
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 10px 10px 1px !important;
        margin-bottom: 0px !important;
        box-shadow: none !important;
        align-items: stretch !important;
    }

    .product-thumb .image {
        width: 100% !important;
        min-width: auto !important;
        max-width: 204px !important;
        margin: 0 auto !important;
        text-align: center !important;
        display: block !important;
        position: relative !important;
    }

    .product-thumb picture {
        display: block !important;
        width: 100% !important;
        max-width: 204px !important;
        height: auto !important;
        margin: 0 auto !important;
    }

    .product-thumb .image a {
        width: 100% !important;
        display: block !important;
    }

    .product-thumb picture img,
    .product-thumb .image img {
        width: 100% !important;
        max-width: 204px !important;
        height: auto !important;
        aspect-ratio: 204 / 286 !important;
        border-radius: 10px !important;
        display: block !important;
        margin: 0 auto !important;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    }

    .product-thumb .caption {
        text-align: center !important;
        width: 100% !important;
        padding: 0 !important;
        margin-top: 10px !important;
        flex-grow: 1 !important;
    }

    .product-thumb .caption > a {
        width: 100% !important;
        display: block !important;
    }

    .product-thumb h2,
    .product-thumb.principal-home .caption h2,
    .product-layout h2 {
        font-size: 16px !important;
        color: #666666 !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        margin-top: 10px !important;
        margin-bottom: 20px !important;
        text-align: center !important;
        white-space: normal !important;
    }

    .product-thumb h2 a,
    .product-layout h2 a {
        color: #666666 !important;
        font-size: 16px !important;
    }

    .product-thumb .rating {
        display: block !important;
    }

    .product-thumb .price {
        font-size: 14px !important;
        color: #999999 !important;
    }
}

/* 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;
}

/* Breadcrumb responsivo — evita overflow em telas intermediárias */
@media (max-width: 767px) {
    .breadcrumb {
        margin-top: 15px;
    }
    .breadcrumb a {
        font-size: 13px;
    }
    .breadcrumb i {
        font-size: 13px;
    }
    .breadcrumb > li {
        white-space: normal;
        padding: 0 8px;
    }
    .breadcrumb li {
        padding: 0 8px 0 0;
        margin: 0 2px 0 0;
    }
}

/* CLS fix — reserva espaço do slider antes do Swiper inicializar */
.container-fluid.sg-pdnone {
    min-height: 160px;
    aspect-ratio: 409 / 191;
    overflow: hidden;
    contain: layout;
}

@media (min-width: 768px) {
    .container-fluid.sg-pdnone {
        min-height: 280px;
        aspect-ratio: 1905 / 351;
    }
}
@media (min-width: 1200px) {
    .container-fluid.sg-pdnone {
        min-height: 351px;
    }
}


    /* --- Barra de Pesquisa Global --- */
        [v-cloak] > * { display: none !important; }

        /* --- Barra de Pesquisa Alinhada e Padronizada --- */
        #search.input-group {
            display: flex !important;
            align-items: stretch !important;
            width: 100% !important;
            max-width: 100% !important;
            height: 44px !important;
            position: relative !important;
            margin-bottom: 0 !important;
            box-sizing: border-box !important;
        }

        #search .form-control.input-lg {
            display: block !important;
            flex: 1 1 auto !important;
            width: 1% !important;
            height: 44px !important;
            min-height: 44px !important;
            max-height: 44px !important;
            line-height: 42px !important;
            padding: 0 16px !important;
            font-size: 14px !important;
            color: #333333 !important;
            background-color: #ffffff !important;
            border: 1px solid #dcdde1 !important;
            border-right: none !important;
            border-radius: 8px 0 0 8px !important;
            box-shadow: none !important;
            box-sizing: border-box !important;
            outline: none !important;
            transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
        }

        #search .form-control.input-lg:focus {
            border-color: #2C2C56 !important;
            box-shadow: 0 0 0 2px rgba(44, 44, 86, 0.15) !important;
            outline: none !important;
            z-index: 2 !important;
        }

        #search .form-control.input-lg::placeholder {
            color: #8f92a1 !important;
            opacity: 1 !important;
            font-size: 14px !important;
        }

        #search .input-group-btn {
            display: flex !important;
            width: auto !important;
            align-items: stretch !important;
            white-space: nowrap !important;
            font-size: 0 !important;
            padding: 0 !important;
            margin: 0 !important;
        }

        #search .input-group-btn .btn.btn-lg {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            height: 44px !important;
            min-height: 44px !important;
            max-height: 44px !important;
            padding: 0 28px !important;
            margin: 0 !important;
            background-color: #2C2C56 !important;
            border: 1px solid #2C2C56 !important;
            border-radius: 0 8px 8px 0 !important;
            color: #ffffff !important;
            box-shadow: none !important;
            outline: none !important;
            cursor: pointer !important;
            box-sizing: border-box !important;
            transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out !important;
            line-height: 1 !important;
        }

        #search .input-group-btn .btn.btn-lg:hover {
            background-color: #3d3d6b !important;
            border-color: #3d3d6b !important;
        }

        #search .input-group-btn .btn.btn-lg:active,
        #search .input-group-btn .btn.btn-lg:focus {
            background-color: #242446 !important;
            border-color: #242446 !important;
            box-shadow: none !important;
            outline: none !important;
        }

        #search .input-group-btn .btn.btn-lg svg {
            display: block !important;
            width: 14px !important;
            height: 14px !important;
            fill: #ffffff !important;
            margin: 0 auto !important;
        }

        /* --- Dropdown de Resultados (#results) --- */
        #search #results {
            position: absolute !important;
            top: 100% !important;
            left: 0 !important;
            z-index: 1050 !important;
            background: #fff !important;
            width: 100% !important;
            margin-top: 4px !important;
            padding-top: 0 !important;
            max-height: 480px !important;
            overflow-y: auto !important;
            border: 2px solid #2C2C56 !important;
            border-radius: 8px !important;
            box-shadow: 0 8px 24px rgba(44, 44, 86, 0.18) !important;
        }

        #search #results ul {
            margin: 0 !important;
            padding: 0 !important;
            list-style: none !important;
        }

        #search #results ul li {
            padding: 8px 15px !important;
            transition: background 0.2s ease-in-out !important;
            border-bottom: 1px solid #f0f0f3 !important;
        }

        #search #results ul li:last-child {
            border-bottom: none !important;
        }

        #search #results ul li:hover,
        #search #results ul li:active {
            background-color: rgba(44, 44, 86, 0.06) !important;
            cursor: pointer !important;
        }

        #search #results ul li a {
            font-size: 14px !important;
            color: #333 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: flex-start !important;
            font-weight: 600 !important;
            text-decoration: none !important;
        }

        #search #results ul li a:hover {
            color: #2C2C56 !important;
        }

        #search #results .sp-divisor {
            padding: 10px 15px 6px 15px !important;
            margin: 0 !important;
            font-size: 12px !important;
            font-weight: 700 !important;
            text-transform: uppercase !important;
            letter-spacing: 0.5px !important;
            display: block !important;
            color: #2C2C56 !important;
            background-color: #f5f5f7 !important;
            border-top: 1px solid #eee !important;
            border-bottom: 1px solid #eee !important;
        }

        #search #results .sp-loading,
        #search #results .sp-no-results {
            padding: 18px 15px !important;
            text-align: center !important;
            color: #999 !important;
            font-size: 13px !important;
        }
    

/* --- Tag Oferta Especial GTA VI (Posicionada na base sem tampar a logo) --- */
.product-badge-instant {
    position: absolute !important;
    bottom: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: auto !important;
    right: auto !important;
    z-index: 10 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    background: linear-gradient(135deg, #e4153f 0%, #ff5e36 100%) !important;
    color: #ffffff !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(228, 21, 63, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    pointer-events: none !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
    animation: pulseBadge 2.5s ease-in-out infinite !important;
}

@keyframes pulseBadge {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(228, 21, 63, 0.4);
    }
    50% {
        transform: translateX(-50%) scale(1.04);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55), 0 3px 8px rgba(228, 21, 63, 0.6);
    }
}

@media (min-width: 768px) {
    .product-badge-instant.mobile-only {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .product-badge-instant.desktop-only {
        display: none !important;
    }

    .product-badge-instant.mobile-only {
        position: static !important;
        transform: none !important;
        display: inline-flex !important;
        font-size: 9.5px !important;
        font-weight: 800 !important;
        padding: 2px 7px !important;
        letter-spacing: 0.2px !important;
        border-radius: 10px !important;
        margin-left: 6px !important;
        vertical-align: middle !important;
        animation: none !important;
        box-shadow: 0 2px 6px rgba(228, 21, 63, 0.4) !important;
    }
}
